From a122dd16ec21e4651e42aea13b3f7b14b5759416 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Tue, 1 Dec 2026 13:42:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8A=8A=E5=86=85=E6=A0=B8=E6=81=A2?= =?UTF-8?q?=E5=A4=8D=E6=88=90=20GitHub=20=E5=8E=9F=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kernel/Documentation/ABI/README | 190 +++--- .../ABI/obsolete/sysfs-driver-hid-roccat-savu | 154 ++--- .../Documentation/ABI/stable/firewire-cdev | 222 +++---- .../ABI/stable/sysfs-bus-firewire | 272 ++++----- .../ABI/testing/debugfs-driver-dcc | 254 ++++---- .../ABI/testing/debugfs-driver-genwqe | 182 +++--- .../ABI/testing/debugfs-driver-qat | 218 +++---- .../kernel/Documentation/ABI/testing/evm | 216 +++---- .../Documentation/ABI/testing/sysfs-ata | 280 ++++----- .../ABI/testing/sysfs-block-device | 238 ++++---- .../Documentation/ABI/testing/sysfs-bus-acpi | 196 +++---- .../Documentation/ABI/testing/sysfs-bus-cdx | 242 ++++---- .../testing/sysfs-bus-coresight-devices-etb10 | 164 +++--- .../sysfs-bus-event_source-devices-events | 200 +++---- .../sysfs-bus-event_source-devices-hv_24x7 | 196 +++---- .../sysfs-bus-i2c-devices-turris-omnia-mcu | 226 +++---- .../testing/sysfs-bus-pci-devices-aer_stats | 238 ++++---- .../testing/sysfs-bus-pci-drivers-xhci_hcd | 174 +++--- .../Documentation/ABI/testing/sysfs-bus-rpmsg | 190 +++--- .../Documentation/ABI/testing/sysfs-bus-siox | 180 +++--- .../ABI/testing/sysfs-class-extcon | 202 +++---- .../ABI/testing/sysfs-class-firmware | 154 ++--- .../ABI/testing/sysfs-class-intel_pmt | 238 ++++---- .../ABI/testing/sysfs-class-net-queues | 242 ++++---- .../ABI/testing/sysfs-class-remoteproc | 208 +++---- .../ABI/testing/sysfs-class-scsi_tape | 218 +++---- .../ABI/testing/sysfs-class-watchdog | 258 ++++---- .../testing/sysfs-devices-platform-ACPI-TAD | 234 ++++---- .../sysfs-devices-platform-kunpeng_hccs | 162 +++--- .../testing/sysfs-devices-platform-soc-ipa | 228 ++++---- .../testing/sysfs-devices-platform-trackpoint | 230 ++++---- .../ABI/testing/sysfs-devices-soc | 190 +++--- .../ABI/testing/sysfs-driver-hid-wiimote | 170 +++--- .../ABI/testing/sysfs-driver-intel-xe-hwmon | 220 +++---- .../ABI/testing/sysfs-driver-intel_sdsi | 180 +++--- .../ABI/testing/sysfs-firmware-dmi-entries | 228 ++++---- .../ABI/testing/sysfs-firmware-qemu_fw_cfg | 206 +++---- .../Documentation/ABI/testing/sysfs-fs-ext4 | 236 ++++---- .../ABI/testing/sysfs-platform-dfl-port | 202 +++---- .../ABI/testing/sysfs-platform-hidma-mgmt | 194 +++--- .../PCI/endpoint/pci-endpoint-cfs.rst | 276 ++++----- .../PCI/endpoint/pci-vntb-function.rst | 258 ++++---- .../kernel/Documentation/RCU/NMI-RCU.rst | 246 ++++---- .../kernel/Documentation/RCU/rcu.rst | 186 +++--- .../Documentation/admin-guide/LSM/Yama.rst | 150 ++--- .../acpi/fan_performance_states.rst | 180 +++--- .../acpi/initrd_table_override.rst | 230 ++++---- .../Documentation/admin-guide/binderfs.rst | 174 +++--- .../admin-guide/cgroup-v1/pids.rst | 186 +++--- .../Documentation/admin-guide/cputopology.rst | 202 +++---- .../admin-guide/device-mapper/dm-io.rst | 150 ++--- .../device-mapper/dm-service-time.rst | 202 +++---- .../admin-guide/device-mapper/era.rst | 232 ++++---- .../admin-guide/device-mapper/unstriped.rst | 270 ++++----- .../admin-guide/device-mapper/writecache.rst | 228 ++++---- .../Documentation/admin-guide/efi-stub.rst | 200 +++---- .../admin-guide/gpio/gpio-aggregator.rst | 222 +++---- .../admin-guide/hw-vuln/cross-thread-rsb.rst | 182 +++--- .../hw-vuln/reg-file-data-sampling.rst | 208 +++---- .../admin-guide/hw-vuln/vmscape.rst | 220 +++---- .../Documentation/admin-guide/hw_random.rst | 208 +++---- .../admin-guide/lockup-watchdogs.rst | 166 +++--- .../admin-guide/media/avermedia.rst | 188 +++--- .../admin-guide/media/cx23885-cardlist.rst | 534 ++++++++--------- .../media/dvb-usb-dib0700-cardlist.rst | 324 +++++------ .../admin-guide/media/imx6q-sabreauto.dot | 102 ++-- .../admin-guide/media/imx6q-sabresd.dot | 112 ++-- .../admin-guide/media/other-usb-cardlist.rst | 156 ++--- .../admin-guide/media/pci-cardlist.rst | 218 +++---- .../admin-guide/media/platform-cardlist.rst | 178 +++--- .../admin-guide/media/tuner-cardlist.rst | 204 +++---- .../Documentation/admin-guide/media/vimc.rst | 220 +++---- .../admin-guide/mm/shrinker_debugfs.rst | 266 ++++----- .../admin-guide/nfs/nfs-idmapper.rst | 156 ++--- .../admin-guide/perf/alibaba_pmu.rst | 210 +++---- .../admin-guide/perf/dwc_pcie_pmu.rst | 188 +++--- .../kernel/Documentation/arch/arc/arc.rst | 170 +++--- .../kernel/Documentation/arch/arm/memory.rst | 206 +++---- .../Documentation/arch/arm/nwfpe/nwfpe.rst | 148 ++--- .../Documentation/arch/arm/nwfpe/todo.rst | 144 ++--- .../arch/arm/samsung/bootloader-interface.rst | 162 +++--- .../arm/samsung/clksrc-change-registers.awk | 332 +++++------ .../kernel/Documentation/arch/arm/setup.rst | 216 +++---- .../kernel/Documentation/arch/arm/sunxi.rst | 340 +++++------ .../kernel/Documentation/arch/arm64/amu.rst | 238 ++++---- .../Documentation/arch/arm64/cpu-hotplug.rst | 158 ++--- .../kernel/Documentation/arch/arm64/kdump.rst | 184 +++--- .../arch/openrisc/openrisc_port.rst | 242 ++++---- .../arch/powerpc/dawr-power9.rst | 202 +++---- .../Documentation/arch/powerpc/dscr.rst | 174 +++--- .../kernel/Documentation/arch/riscv/cmodx.rst | 196 +++---- .../kernel/Documentation/arch/s390/mm.rst | 222 +++---- .../kernel/Documentation/arch/s390/pci.rst | 266 ++++----- .../arch/s390/vfio-ap-locking.rst | 230 ++++---- .../Documentation/arch/x86/amd_hsmp.rst | 210 +++---- .../Documentation/arch/x86/entry_64.rst | 220 +++---- .../Documentation/arch/x86/intel-hfi.rst | 144 ++--- .../kernel/Documentation/arch/x86/tlb.rst | 166 +++--- .../arch/x86/x86_64/fake-numa-for-cpusets.rst | 156 ++--- .../Documentation/arch/x86/x86_64/fred.rst | 192 +++--- .../kernel/Documentation/block/pr.rst | 238 ++++---- .../kernel/Documentation/block/stat.rst | 206 +++---- .../block/writeback_cache_control.rst | 190 +++--- .../Documentation/bpf/bpf_licensing.rst | 184 +++--- .../Documentation/bpf/map_cgrp_storage.rst | 218 +++---- .../kernel/Documentation/bpf/map_of_maps.rst | 260 ++++----- .../Documentation/bpf/map_queue_stack.rst | 292 +++++----- .../Documentation/bpf/prog_sk_lookup.rst | 196 +++---- .../Documentation/cdrom/packet-writing.rst | 278 ++++----- .../Documentation/core-api/floating-point.rst | 156 ++--- .../kernel/Documentation/core-api/netlink.rst | 204 +++---- .../core-api/protection-keys.rst | 240 ++++---- .../Documentation/core-api/union_find.rst | 212 +++---- .../kernel/Documentation/cpu-freq/core.rst | 226 +++---- .../dev-tools/gpio-sloppy-logic-analyzer.rst | 186 +++--- .../Documentation/dev-tools/kunit/index.rst | 218 +++---- .../dev-tools/kunit/run_manual.rst | 200 +++---- .../kernel/Documentation/dev-tools/sparse.rst | 208 +++---- .../devicetree/bindings/arm/apple.yaml | 228 ++++---- .../bindings/arm/apple/apple,pmgr.yaml | 270 ++++----- .../bindings/arm/arm,coresight-etm.yaml | 318 +++++----- .../bindings/arm/arm,coresight-tmc.yaml | 274 ++++----- .../bindings/arm/bcm/brcm,bcmbca.yaml | 302 +++++----- .../arm/hisilicon/controller/sysctrl.yaml | 298 +++++----- .../bindings/arm/keystone/ti,sci.yaml | 248 ++++---- .../bindings/arm/mediatek/mediatek,mmsys.yaml | 234 ++++---- .../devicetree/bindings/arm/omap/omap.txt | 252 ++++---- .../devicetree/bindings/arm/pmu.yaml | 248 ++++---- .../bindings/arm/qcom,coresight-tpda.yaml | 248 ++++---- .../bindings/arm/qcom,coresight-tpdm.yaml | 292 +++++----- .../devicetree/bindings/arm/secure.txt | 140 ++--- .../arm/sunxi/allwinner,sun4i-a10-mbus.yaml | 336 +++++------ .../arm/tegra/nvidia,tegra194-cbb.yaml | 194 +++--- .../devicetree/bindings/ata/ahci-common.yaml | 246 ++++---- .../bindings/ata/nvidia,tegra-ahci.yaml | 350 +++++------ .../bindings/auxdisplay/hit,hd44780.yaml | 254 ++++---- .../bindings/bus/qcom,ssc-block-bus.yaml | 288 ++++----- .../bus/socionext,uniphier-system-bus.yaml | 206 +++---- .../bindings/cache/sifive,ccache0.yaml | 348 +++++------ .../clock/allwinner,sun4i-a10-ccu.yaml | 306 +++++----- .../clock/allwinner,sun4i-a10-usb-clk.yaml | 332 +++++------ .../clock/amlogic,c3-peripherals-clkc.yaml | 240 ++++---- .../bindings/clock/arm,syscon-icst.yaml | 220 +++---- .../bindings/clock/atmel,at91rm9200-pmc.yaml | 312 +++++----- .../bindings/clock/brcm,kona-ccu.yaml | 362 ++++++------ .../bindings/clock/imx25-clock.yaml | 356 ++++++------ .../bindings/clock/imx7ulp-pcc-clock.yaml | 220 +++---- .../devicetree/bindings/clock/lpc1850-cgu.txt | 262 ++++----- .../bindings/clock/qcom,dispcc-sm8x50.yaml | 246 ++++---- .../bindings/clock/qcom,gcc-sc8280xp.yaml | 244 ++++---- .../devicetree/bindings/clock/qcom,rpmcc.yaml | 320 +++++----- .../bindings/clock/renesas,cpg-mssr.yaml | 252 ++++---- .../bindings/clock/renesas,emev2-smu.yaml | 280 ++++----- .../clock/samsung,exynosautov920-clock.yaml | 324 +++++------ .../bindings/clock/sprd,sc9860-clk.yaml | 318 +++++----- .../bindings/clock/st,stm32-rcc.txt | 276 ++++----- .../clock/starfive,jh7110-syscrg.yaml | 236 ++++---- .../devicetree/bindings/clock/ti/divider.txt | 230 ++++---- .../devicetree/bindings/clock/ti/dpll.txt | 206 +++---- .../devicetree/bindings/clock/ti/gate.txt | 210 +++---- .../devicetree/bindings/clock/xgene.txt | 262 ++++----- .../bindings/clock/xlnx,versal-clk.yaml | 292 +++++----- .../bindings/crypto/fsl,sec-v4.0-mon.yaml | 324 +++++------ .../devicetree/bindings/crypto/fsl-sec6.txt | 314 +++++----- .../devicetree/bindings/crypto/qcom-qce.yaml | 342 +++++------ .../allwinner,sun4i-a10-display-engine.yaml | 234 ++++---- .../display/allwinner,sun4i-a10-hdmi.yaml | 340 +++++------ .../display/amlogic,meson-dw-hdmi.yaml | 314 +++++----- .../bindings/display/arm,malidp.yaml | 238 ++++---- .../bindings/display/brcm,bcm2711-hdmi.yaml | 282 ++++----- .../bindings/display/bridge/cdns,dsi.yaml | 360 ++++++------ .../display/bridge/cdns,mhdp8546.yaml | 328 +++++------ .../bridge/fsl,imx8qxp-pixel-combiner.yaml | 288 ++++----- .../bridge/fsl,imx8qxp-pixel-link.yaml | 288 ++++----- .../bindings/display/bridge/ite,it6505.yaml | 312 +++++----- .../bindings/display/bridge/sil,sii9022.yaml | 262 ++++----- .../bindings/display/bridge/ti,sn65dsi83.yaml | 324 +++++------ .../bindings/display/fsl,lcdif.yaml | 402 ++++++------- .../bindings/display/imx/fsl-imx-drm.txt | 324 +++++------ .../bindings/display/imx/nxp,imx8mq-dcss.yaml | 214 +++---- .../bindings/display/lvds-data-mapping.yaml | 168 +++--- .../display/mediatek/mediatek,ovl.yaml | 218 +++---- .../display/mediatek/mediatek,rdma.yaml | 244 ++++---- .../bindings/display/msm/qcom,mdp5.yaml | 314 +++++----- .../display/msm/qcom,sc8280xp-mdss.yaml | 310 +++++----- .../bindings/display/msm/qcom,sm7150-dpu.yaml | 286 ++++----- .../bindings/display/msm/qcom,sm8450-dpu.yaml | 278 ++++----- .../bindings/display/msm/qcom,sm8550-dpu.yaml | 266 ++++----- .../display/panel/panel-edp-legacy.yaml | 234 ++++---- .../panel/panel-simple-lvds-dual-ports.yaml | 244 ++++---- .../display/panel/sitronix,st7701.yaml | 286 ++++----- .../bindings/display/renesas,rzg2l-du.yaml | 304 +++++----- .../display/rockchip/rockchip,dw-hdmi.yaml | 368 ++++++------ .../rockchip/rockchip,dw-mipi-dsi.yaml | 340 +++++------ .../display/rockchip/rockchip,lvds.yaml | 340 +++++------ .../display/samsung/samsung,exynos5-dp.yaml | 326 +++++------ .../samsung/samsung,exynos5433-decon.yaml | 290 ++++----- .../devicetree/bindings/display/ste,mcde.yaml | 336 +++++------ .../display/tegra/nvidia,tegra124-dpaux.yaml | 302 +++++----- .../display/tegra/nvidia,tegra20-dsi.yaml | 316 +++++----- .../display/tegra/nvidia,tegra20-gr3d.yaml | 426 +++++++------- .../devicetree/bindings/dma/arm-pl08x.yaml | 280 ++++----- .../bindings/dma/cirrus,ep9301-dma-m2p.yaml | 288 ++++----- .../devicetree/bindings/dma/fsl,imx-sdma.yaml | 302 +++++----- .../bindings/dma/mediatek,uart-dma.yaml | 248 ++++---- .../bindings/dma/nvidia,tegra186-gpc-dma.yaml | 234 ++++---- .../bindings/dma/renesas,rz-dmac.yaml | 294 +++++----- .../bindings/dma/snps,dw-axi-dmac.yaml | 310 +++++----- .../bindings/dma/stm32/st,stm32-dma.yaml | 240 ++++---- .../bindings/dma/stm32/st,stm32-mdma.yaml | 212 +++---- .../bindings/edac/apm-xgene-edac.txt | 224 +++---- .../devicetree/bindings/eeprom/at25.yaml | 298 +++++----- .../bindings/extcon/wlf,arizona.yaml | 252 ++++---- .../devicetree/bindings/gpio/gpio-ep9301.yaml | 314 +++++----- .../devicetree/bindings/gpio/gpio-mmio.yaml | 234 ++++---- .../bindings/gpio/loongson,ls-gpio.yaml | 278 ++++----- .../devicetree/bindings/gpio/mrvl-gpio.yaml | 344 +++++------ .../bindings/gpio/renesas,rcar-gpio.yaml | 306 +++++----- .../bindings/gpio/sprd,gpio-eic.yaml | 248 ++++---- .../bindings/gpio/xlnx,gpio-xilinx.yaml | 308 +++++----- .../bindings/gpu/arm,mali-valhall-csf.yaml | 294 +++++----- .../gpu/host1x/nvidia,tegra234-nvdec.yaml | 312 +++++----- .../devicetree/bindings/gpu/nvidia,gk20a.txt | 230 ++++---- .../devicetree/bindings/hwmon/adt7475.yaml | 276 ++++----- .../bindings/hwmon/baikal,bt1-pvt.yaml | 210 +++---- .../bindings/hwmon/nuvoton,nct7802.yaml | 290 ++++----- .../devicetree/bindings/hwmon/ti,ina3221.yaml | 242 ++++---- .../bindings/i2c/atmel,at91sam-i2c.yaml | 284 ++++----- .../bindings/i2c/i2c-arb-gpio-challenge.yaml | 270 ++++----- .../devicetree/bindings/i2c/i2c-exynos5.yaml | 286 ++++----- .../bindings/i2c/i2c-mux-gpmux.yaml | 246 ++++---- .../bindings/i2c/i2c-mux-pca954x.yaml | 348 +++++------ .../devicetree/bindings/i2c/i2c-rk3x.yaml | 286 ++++----- .../bindings/i2c/renesas,rmobile-iic.yaml | 298 +++++----- .../bindings/i2c/samsung,s3c2410-i2c.yaml | 328 +++++------ .../bindings/i2c/snps,designware-i2c.yaml | 298 +++++----- .../bindings/i2c/st,nomadik-i2c.yaml | 304 +++++----- .../devicetree/bindings/iio/accel/lis302.txt | 238 ++++---- .../bindings/iio/adc/adi,ad7124.yaml | 314 +++++----- .../bindings/iio/adc/adi,ad7380.yaml | 364 ++++++------ .../bindings/iio/adc/adi,ad7476.yaml | 350 +++++------ .../bindings/iio/adc/adi,max11410.yaml | 354 +++++------ .../iio/adc/amlogic,meson-saradc.yaml | 302 +++++----- .../bindings/iio/adc/maxim,max34408.yaml | 278 ++++----- .../iio/adc/renesas,rcar-gyroadc.yaml | 282 ++++----- .../bindings/iio/adc/samsung,exynos-adc.yaml | 336 +++++------ .../bindings/iio/adc/ti,ads1119.yaml | 310 +++++----- .../bindings/iio/adc/ti,ads131e08.yaml | 364 ++++++------ .../bindings/iio/addac/adi,ad74413r.yaml | 344 +++++------ .../iio/afe/temperature-transducer.yaml | 228 ++++---- .../bindings/iio/dac/adi,ad5758.yaml | 280 ++++----- .../bindings/iio/dac/adi,ltc2672.yaml | 320 +++++----- .../bindings/iio/dac/adi,ltc2688.yaml | 294 +++++----- .../bindings/iio/frequency/adi,admfm2000.yaml | 254 ++++---- .../bindings/iio/frequency/adi,admv1013.yaml | 308 +++++----- .../bindings/iio/frequency/adi,admv1014.yaml | 290 ++++----- .../bindings/iio/imu/adi,adis16475.yaml | 330 +++++------ .../bindings/iio/imu/adi,adis16480.yaml | 274 ++++----- .../iio/proximity/semtech,sx9310.yaml | 262 ++++----- .../bindings/input/adc-joystick.yaml | 254 ++++---- .../bindings/input/adi,adp5588.yaml | 278 ++++----- .../bindings/input/atmel,maxtouch.yaml | 240 ++++---- .../bindings/input/brcm,bcm-keypad.txt | 214 +++---- .../devicetree/bindings/input/dlg,da7280.txt | 216 +++---- .../input/touchscreen/adi,ad7879.yaml | 300 +++++----- .../touchscreen/brcm,iproc-touchscreen.txt | 174 +++--- .../input/touchscreen/cypress,cy8ctma340.yaml | 296 +++++----- .../input/touchscreen/edt-ft5x06.yaml | 278 ++++----- .../input/touchscreen/zinitix,bt400.yaml | 250 ++++---- .../bindings/interconnect/mediatek,cci.yaml | 284 ++++----- .../interconnect/qcom,msm8998-bwmon.yaml | 274 ++++----- .../bindings/interconnect/qcom,rpmh.yaml | 290 ++++----- .../bindings/interconnect/qcom,sm6115.yaml | 304 +++++----- .../interconnect/qcom,sm8550-rpmh.yaml | 278 ++++----- .../interrupt-controller/apple,aic.yaml | 266 ++++----- .../interrupt-controller/apple,aic2.yaml | 286 ++++----- .../interrupt-controller/fsl,ls-extirq.yaml | 274 ++++----- .../interrupt-controller/img,pdc-intc.txt | 210 +++---- .../interrupt-controller/interrupts.txt | 244 ++++---- .../bindings/interrupt-controller/msi.txt | 270 ++++----- .../interrupt-controller/mti,gic.yaml | 292 +++++----- .../interrupt-controller/ti,sci-inta.yaml | 236 ++++---- .../interrupt-controller/ti,sci-intr.yaml | 214 +++---- .../bindings/iommu/renesas,ipmmu-vmsa.yaml | 282 ++++----- .../bindings/leds/awinic,aw200xx.yaml | 346 +++++------ .../leds/backlight/lm3630a-backlight.yaml | 284 ++++----- .../leds/backlight/lp855x-backlight.yaml | 298 +++++----- .../bindings/leds/kinetic,ktd202x.yaml | 342 +++++------ .../devicetree/bindings/leds/leds-lm3532.txt | 210 +++---- .../devicetree/bindings/leds/leds-lp50xx.yaml | 318 +++++----- .../devicetree/bindings/leds/leds-mt6360.yaml | 384 ++++++------ .../bindings/leds/qcom,spmi-flash-led.yaml | 242 ++++---- .../bindings/leds/richtek,rt8515.yaml | 222 +++---- .../bindings/mailbox/nvidia,tegra186-hsp.yaml | 248 ++++---- .../bindings/media/brcm,bcm2835-unicam.yaml | 254 ++++---- .../bindings/media/i2c/adv7180.yaml | 358 ++++++------ .../bindings/media/i2c/imi,rdacm2x-gmsl.yaml | 274 ++++----- .../bindings/media/i2c/maxim,max96712.yaml | 236 ++++---- .../bindings/media/i2c/maxim,max96717.yaml | 314 +++++----- .../bindings/media/i2c/mipi-ccs.yaml | 266 ++++----- .../bindings/media/i2c/ovti,ov02a10.yaml | 296 +++++----- .../bindings/media/i2c/ovti,ov5640.yaml | 298 +++++----- .../bindings/media/i2c/ovti,ov5693.yaml | 282 ++++----- .../bindings/media/i2c/sony,imx258.yaml | 278 ++++----- .../bindings/media/i2c/sony,imx290.yaml | 286 ++++----- .../devicetree/bindings/media/i2c/tvp5150.txt | 314 +++++----- .../bindings/media/mediatek,mdp3-rdma.yaml | 336 +++++------ .../media/mediatek,mt8195-jpegenc.yaml | 280 ++++----- .../bindings/media/nxp,imx8-jpeg.yaml | 200 +++---- .../bindings/media/qcom,msm8996-venus.yaml | 314 +++++----- .../bindings/media/qcom,sdm660-venus.yaml | 318 +++++----- .../devicetree/bindings/media/rc.yaml | 328 +++++------ .../bindings/media/renesas,rzg2l-csi2.yaml | 300 +++++----- .../media/samsung,exynos4210-csis.yaml | 340 +++++------ .../media/samsung,exynos4210-fimc.yaml | 304 +++++----- .../bindings/media/samsung,s5c73m3.yaml | 330 +++++------ .../bindings/media/samsung,s5p-mfc.yaml | 390 ++++++------- .../bindings/media/starfive,jh7110-camss.yaml | 360 ++++++------ .../devicetree/bindings/media/ti,cal.yaml | 354 +++++------ .../bindings/memory-controllers/arm,pl172.txt | 254 ++++---- .../memory-controllers/arm,pl35x-smc.yaml | 312 +++++----- .../bindings/memory-controllers/atmel,ebi.txt | 274 ++++----- .../ddr/jedec,lpddr-channel.yaml | 292 +++++----- .../ddr/jedec,lpddr2-timings.yaml | 270 ++++----- .../ddr/jedec,lpddr3-timings.yaml | 314 +++++----- .../memory-controllers/exynos-srom.yaml | 256 ++++---- ...intel,ixp4xx-expansion-bus-controller.yaml | 214 +++---- .../memory-controllers/mediatek,smi-larb.yaml | 286 ++++----- .../memory-controllers/renesas,rpc-if.yaml | 298 +++++----- .../samsung,exynos5422-dmc.yaml | 278 ++++----- .../snps,dw-umctl2-ddrc.yaml | 234 ++++---- .../memory-controllers/st,stm32-fmc2-ebi.yaml | 256 ++++---- .../mfd/allwinner,sun8i-a23-prcm.yaml | 336 +++++------ .../mfd/brcm,bcm6318-gpio-sysctl.yaml | 354 +++++------ .../mfd/brcm,bcm6328-gpio-sysctl.yaml | 324 +++++------ .../mfd/hisilicon,hi6421-spmi-pmic.yaml | 266 ++++----- .../bindings/mfd/kontron,sl28cpld.yaml | 306 +++++----- .../devicetree/bindings/mfd/max77650.yaml | 298 +++++----- .../bindings/mfd/maxim,max5970.yaml | 312 +++++----- .../bindings/mfd/maxim,max77686.yaml | 264 ++++----- .../bindings/mfd/maxim,max77843.yaml | 290 ++++----- .../bindings/mfd/maxim,max8925.yaml | 290 ++++----- .../bindings/mfd/mediatek,mt6357.yaml | 270 ++++----- .../devicetree/bindings/mfd/mscc,ocelot.yaml | 338 +++++------ .../bindings/mfd/richtek,rt5033.yaml | 276 ++++----- .../bindings/mfd/rohm,bd9571mwv.yaml | 254 ++++---- .../bindings/mfd/rohm,bd9576-pmic.yaml | 246 ++++---- .../bindings/mfd/st,stm32-timers.yaml | 360 ++++++------ .../devicetree/bindings/mfd/ti,tps65086.yaml | 250 ++++---- .../devicetree/bindings/mips/brcm/soc.txt | 332 +++++------ .../bindings/mips/cavium/bootbus.txt | 252 ++++---- .../bindings/misc/qcom,fastrpc.yaml | 294 +++++----- .../devicetree/bindings/mmc/cdns,sdhci.yaml | 312 +++++----- .../bindings/mmc/rockchip-dw-mshc.yaml | 254 ++++---- .../devicetree/bindings/mmc/sdhci-st.txt | 220 +++---- .../devicetree/bindings/mtd/ingenic,nand.yaml | 278 ++++----- .../bindings/mtd/jedec,spi-nor.yaml | 246 ++++---- .../bindings/mtd/mediatek,mtk-nfc.yaml | 308 +++++----- .../bindings/mtd/raw-nand-chip.yaml | 222 +++---- .../mtd/rockchip,nand-controller.yaml | 330 +++++------ .../bindings/mtd/st,stm32-fmc2-nand.yaml | 316 +++++----- .../devicetree/bindings/mux/reg-mux.yaml | 292 +++++----- .../bindings/net/airoha,en7581-eth.yaml | 286 ++++----- .../devicetree/bindings/net/altr,tse.yaml | 336 +++++------ .../bindings/net/apm-xgene-enet.txt | 182 +++--- .../net/bluetooth/brcm,bluetooth.yaml | 326 +++++------ .../bindings/net/brcm,asp-v2.0.yaml | 318 +++++----- .../bindings/net/can/nxp,sja1000.yaml | 272 ++++----- .../bindings/net/can/renesas,rcar-can.yaml | 278 ++++----- .../bindings/net/can/xilinx,can.yaml | 338 +++++------ .../bindings/net/cortina,gemini-ethernet.yaml | 276 ++++----- .../devicetree/bindings/net/cpsw.txt | 264 ++++----- .../devicetree/bindings/net/dsa/brcm,sf2.yaml | 334 +++++------ .../bindings/net/dsa/qca,ar9331.yaml | 322 +++++----- .../bindings/net/dsa/renesas,rzn1-a5psw.yaml | 304 +++++----- .../bindings/net/fsl,fman-mdio.yaml | 246 ++++---- .../devicetree/bindings/net/fsl-tsec-phy.txt | 178 +++--- .../bindings/net/hisilicon-hns-dsaf.txt | 180 +++--- .../bindings/net/intel,ixp4xx-hss.yaml | 246 ++++---- .../bindings/net/mdio-mux-gpio.yaml | 270 ++++----- .../net/microchip,lan966x-switch.yaml | 342 +++++------ .../bindings/net/nfc/marvell,nci.yaml | 340 +++++------ .../bindings/net/nvidia,tegra234-mgbe.yaml | 324 +++++------ .../bindings/net/pcs/renesas,rzn1-miic.yaml | 342 +++++------ .../net/pse-pd/microchip,pd692x0.yaml | 352 +++++------ .../devicetree/bindings/net/qca,ar803x.yaml | 268 ++++----- .../bindings/net/renesas,ether.yaml | 258 ++++---- .../bindings/net/rockchip-dwmac.yaml | 288 ++++----- .../devicetree/bindings/net/sff,sfp.yaml | 286 ++++----- .../bindings/net/starfive,jh7110-dwmac.yaml | 380 ++++++------ .../devicetree/bindings/net/ti,dp83822.yaml | 232 ++++---- .../bindings/net/ti,k3-am654-cpts.yaml | 306 +++++----- .../bindings/net/wireless/silabs,wfx.yaml | 264 ++++----- .../allwinner,sun50i-h6-operating-points.yaml | 268 ++++----- .../devicetree/bindings/pci/apple,pcie.yaml | 350 +++++------ .../bindings/pci/brcm,iproc-pcie.yaml | 346 +++++------ .../bindings/pci/fsl,imx6q-pcie-ep.yaml | 316 +++++----- .../devicetree/bindings/pci/pci-iommu.txt | 342 +++++------ .../devicetree/bindings/pci/pci.txt | 168 +++--- .../bindings/pci/rcar-gen4-pci-host.yaml | 260 ++++----- .../bindings/pci/rcar-pci-host.yaml | 278 ++++----- .../bindings/pci/rockchip,rk3399-pcie.yaml | 266 ++++----- .../bindings/pci/rockchip-dw-pcie-common.yaml | 252 ++++---- .../bindings/pci/rockchip-dw-pcie-ep.yaml | 190 +++--- .../bindings/pci/rockchip-dw-pcie.yaml | 260 ++++----- .../bindings/pci/starfive,jh7110-pcie.yaml | 240 ++++---- .../devicetree/bindings/pci/ti-pci.txt | 204 +++---- .../bindings/pci/xlnx,nwl-pcie.yaml | 312 +++++----- .../bindings/pci/xlnx,xdma-host.yaml | 292 +++++----- .../phy/allwinner,sun8i-h3-usb-phy.yaml | 334 +++++------ .../bindings/phy/brcm,brcmstb-usb-phy.yaml | 392 ++++++------- .../bindings/phy/fsl,mxs-usbphy.yaml | 290 ++++----- .../bindings/phy/phy-cadence-sierra.yaml | 332 +++++------ .../devicetree/bindings/phy/phy-miphy28lp.txt | 234 ++++---- .../phy/phy-rockchip-naneng-combphy.yaml | 284 ++++----- .../bindings/phy/phy-rockchip-usbdp.yaml | 296 +++++----- .../phy/qcom,msm8996-qmp-pcie-phy.yaml | 378 ++++++------ .../phy/qcom,msm8998-qmp-usb3-phy.yaml | 368 ++++++------ .../phy/qcom,sc8280xp-qmp-ufs-phy.yaml | 344 +++++------ .../phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 400 ++++++------- .../bindings/phy/renesas,usb2-phy.yaml | 268 ++++----- .../bindings/phy/rockchip,inno-usb2phy.yaml | 406 ++++++------- .../phy/socionext,uniphier-usb3hs-phy.yaml | 326 +++++------ .../devicetree/bindings/phy/ti-phy.txt | 196 +++---- .../pinctrl/aspeed,ast2400-pinctrl.yaml | 446 +++++++------- .../pinctrl/awinic,aw9523-pinctrl.yaml | 278 ++++----- .../bindings/pinctrl/brcm,bcm2835-gpio.txt | 198 +++---- .../pinctrl/brcm,bcm6318-pinctrl.yaml | 302 +++++----- .../pinctrl/brcm,bcm63268-pinctrl.yaml | 344 +++++------ .../bindings/pinctrl/cirrus,madera.yaml | 228 ++++---- .../bindings/pinctrl/cypress,cy8c95x0.yaml | 316 +++++----- .../bindings/pinctrl/fsl,imx-pinctrl.txt | 186 +++--- .../bindings/pinctrl/fsl,imx6ul-pinctrl.yaml | 232 ++++---- .../pinctrl/intel,pinctrl-keembay.yaml | 272 ++++----- .../pinctrl/marvell,armada-375-pinctrl.txt | 164 +++--- .../pinctrl/marvell,armada-37xx-pinctrl.txt | 390 ++++++------- .../pinctrl/marvell,armada-39x-pinctrl.txt | 168 +++--- .../pinctrl/marvell,orion-pinctrl.txt | 186 +++--- .../pinctrl/microchip,sparx5-sgpio.yaml | 336 +++++------ .../pinctrl/nuvoton,ma35d1-pinctrl.yaml | 356 ++++++------ .../pinctrl/nuvoton,wpcm450-pinctrl.yaml | 324 +++++------ .../pinctrl/nvidia,tegra124-xusb-padctl.txt | 270 ++++----- .../pinctrl/nvidia,tegra20-pinmux.yaml | 220 +++---- .../pinctrl/nxp,s32g2-siul2-pinctrl.yaml | 246 ++++---- .../bindings/pinctrl/pincfg-node.yaml | 312 +++++----- .../bindings/pinctrl/pinctrl-bindings.txt | 218 +++---- .../bindings/pinctrl/pinctrl-max77620.txt | 254 ++++---- .../bindings/pinctrl/pinctrl-palmas.txt | 210 +++---- .../pinctrl/qcom,apq8084-pinctrl.yaml | 258 ++++---- .../bindings/pinctrl/qcom,ipq5018-tlmm.yaml | 246 ++++---- .../bindings/pinctrl/qcom,ipq5332-tlmm.yaml | 236 ++++---- .../pinctrl/qcom,ipq6018-pinctrl.yaml | 236 ++++---- .../pinctrl/qcom,ipq8074-pinctrl.yaml | 242 ++++---- .../bindings/pinctrl/qcom,ipq9574-tlmm.yaml | 228 ++++---- .../bindings/pinctrl/qcom,mdm9607-tlmm.yaml | 238 ++++---- .../pinctrl/qcom,msm8976-pinctrl.yaml | 244 ++++---- .../bindings/pinctrl/qcom,qcm2290-tlmm.yaml | 244 ++++---- .../bindings/pinctrl/qcom,qdu1000-tlmm.yaml | 238 ++++---- .../bindings/pinctrl/qcom,sa8775p-tlmm.yaml | 250 ++++---- .../bindings/pinctrl/qcom,sc7180-pinctrl.yaml | 288 ++++----- .../bindings/pinctrl/qcom,sc8180x-tlmm.yaml | 276 ++++----- .../bindings/pinctrl/qcom,sdm670-tlmm.yaml | 224 +++---- .../bindings/pinctrl/qcom,sdx55-pinctrl.yaml | 244 ++++---- .../bindings/pinctrl/qcom,sdx75-tlmm.yaml | 262 ++++----- .../qcom,sm4250-lpass-lpi-pinctrl.yaml | 236 ++++---- .../bindings/pinctrl/qcom,sm4450-tlmm.yaml | 270 ++++----- .../bindings/pinctrl/qcom,sm6115-tlmm.yaml | 276 ++++----- .../bindings/pinctrl/qcom,sm6125-tlmm.yaml | 274 ++++----- .../bindings/pinctrl/qcom,sm7150-tlmm.yaml | 292 +++++----- .../bindings/pinctrl/qcom,sm8250-pinctrl.yaml | 240 ++++---- .../bindings/pinctrl/qcom,sm8350-tlmm.yaml | 270 ++++----- .../qcom,sm8450-lpass-lpi-pinctrl.yaml | 246 ++++---- .../bindings/pinctrl/qcom,sm8450-tlmm.yaml | 268 ++++----- .../qcom,sm8550-lpass-lpi-pinctrl.yaml | 226 +++---- .../pinctrl/renesas,rzn1-pinctrl.yaml | 256 ++++---- .../samsung,pinctrl-wakeup-interrupt.yaml | 248 ++++---- .../bindings/pinctrl/semtech,sx1501q.yaml | 416 ++++++------- .../bindings/pinctrl/sprd,pinctrl.txt | 166 +++--- .../pinctrl/starfive,jh7110-sys-pinctrl.yaml | 284 ++++----- .../bindings/pinctrl/ste,nomadik.txt | 296 +++++----- .../bindings/power/amlogic,meson-ee-pwrc.yaml | 368 ++++++------ .../bindings/power/avs/qcom,cpr.yaml | 322 +++++----- .../bindings/power/fsl,imx-gpc.yaml | 294 +++++----- .../bindings/power/fsl,imx-gpcv2.yaml | 288 ++++----- .../bindings/power/power_domain.txt | 224 +++---- .../bindings/power/renesas,sysc-rmobile.yaml | 242 ++++---- .../bindings/power/supply/bq24257.yaml | 248 ++++---- .../bindings/power/supply/bq25890.yaml | 254 ++++---- .../power/supply/qcom,pm8916-lbc.yaml | 256 ++++---- .../supply/stericsson,ab8500-charger.yaml | 254 ++++---- .../devicetree/bindings/powerpc/fsl/srio.txt | 208 +++---- .../devicetree/bindings/pwm/pwm-samsung.yaml | 258 ++++---- .../regulator/active-semi,act8846.yaml | 334 +++++------ .../regulator/active-semi,act8865.yaml | 316 +++++----- .../bindings/regulator/dlg,slg51000.yaml | 264 ++++----- .../bindings/regulator/fixed-regulator.yaml | 320 +++++----- .../devicetree/bindings/regulator/lp872x.txt | 322 +++++----- .../bindings/regulator/maxim,max8973.yaml | 282 ++++----- .../regulator/mediatek,mt6332-regulator.yaml | 224 +++---- .../bindings/regulator/pwm-regulator.yaml | 254 ++++---- .../regulator/qcom,rpm-regulator.yaml | 256 ++++---- .../regulator/richtek,rt5190a-regulator.yaml | 282 ++++----- .../regulator/richtek,rtmv20-regulator.yaml | 320 +++++----- .../regulator/rohm,bd71815-regulator.yaml | 234 ++++---- .../regulator/rohm,bd71828-regulator.yaml | 210 +++---- .../bindings/regulator/tps6586x.txt | 270 ++++----- .../bindings/remoteproc/fsl,imx-rproc.yaml | 300 +++++----- .../remoteproc/qcom,qcs404-cdsp-pil.yaml | 328 +++++------ .../bindings/remoteproc/qcom,sa8775p-pas.yaml | 320 +++++----- .../remoteproc/qcom,sc8280xp-pas.yaml | 296 +++++----- .../bindings/remoteproc/qcom,sm6115-pas.yaml | 312 +++++----- .../bindings/remoteproc/qcom,sm6350-pas.yaml | 336 +++++------ .../bindings/remoteproc/qcom,sm6375-pas.yaml | 290 ++++----- .../bindings/remoteproc/qcom,sm8150-pas.yaml | 350 +++++------ .../bindings/reserved-memory/ramoops.yaml | 288 ++++----- .../bindings/rtc/allwinner,sun6i-a31-rtc.yaml | 390 ++++++------- .../devicetree/bindings/rtc/st,stm32-rtc.yaml | 344 +++++------ .../bindings/scsi/hisilicon-sas.txt | 196 +++---- .../bindings/serial/fsl-imx-uart.yaml | 306 +++++----- .../serial/nvidia,tegra20-hsuart.yaml | 250 ++++---- .../devicetree/bindings/serial/serial.yaml | 266 ++++----- .../bindings/serial/snps-dw-apb-uart.yaml | 354 +++++------ .../bindings/soc/fsl/cpm_qe/fsl,qe.yaml | 296 +++++----- .../bindings/soc/fsl/cpm_qe/fsl,ucc-hdlc.yaml | 280 ++++----- .../bindings/soc/imx/fsl,imx-anatop.yaml | 256 ++++---- .../soc/imx/fsl,imx8mm-vpu-blk-ctrl.yaml | 328 +++++------ .../soc/imx/fsl,imx8mp-media-blk-ctrl.yaml | 338 +++++------ .../bindings/soc/mediatek/mediatek,mutex.yaml | 246 ++++---- .../bindings/soc/mediatek/mediatek,pwrap.yaml | 304 +++++----- .../bindings/soc/qcom/qcom,geni-se.yaml | 330 +++++------ .../bindings/soc/qcom/qcom,gsbi.yaml | 264 ++++----- .../bindings/soc/qcom/qcom,saw2.yaml | 238 ++++---- .../bindings/soc/qcom/qcom,smd-rpm.yaml | 304 +++++----- .../bindings/soc/qcom/qcom,smp2p.yaml | 292 +++++----- .../bindings/soc/qcom/qcom,smsm.yaml | 300 +++++----- .../bindings/soc/qcom/qcom,wcnss.yaml | 268 ++++----- .../soc/ti/keystone-navigator-dma.txt | 222 +++---- .../bindings/sound/adi,max98396.yaml | 282 ++++----- .../sound/allwinner,sun4i-a10-i2s.yaml | 294 +++++----- .../bindings/sound/audio-graph-port.yaml | 262 ++++----- .../bindings/sound/cirrus,cs35l45.yaml | 318 +++++----- .../bindings/sound/cirrus,madera.yaml | 236 ++++---- .../devicetree/bindings/sound/da7218.txt | 204 +++---- .../bindings/sound/davinci-mcasp-audio.yaml | 404 ++++++------- .../bindings/sound/fsl,qmc-audio.yaml | 294 +++++----- .../devicetree/bindings/sound/fsl,rpmsg.yaml | 268 ++++----- .../devicetree/bindings/sound/fsl,spdif.yaml | 306 +++++----- .../devicetree/bindings/sound/fsl,xcvr.yaml | 320 +++++----- .../sound/google,sc7280-herobrine.yaml | 364 ++++++------ .../bindings/sound/mediatek,mt2701-audio.yaml | 232 ++++---- .../bindings/sound/mediatek,mt7986-afe.yaml | 320 +++++----- .../bindings/sound/mediatek,mt8365-afe.yaml | 260 ++++----- .../bindings/sound/nuvoton,nau8821.yaml | 296 +++++----- .../bindings/sound/nuvoton,nau8824.yaml | 380 ++++++------ .../sound/nvidia,tegra210-admaif.yaml | 258 ++++---- .../bindings/sound/qcom,lpass-tx-macro.yaml | 320 +++++----- .../bindings/sound/qcom,lpass-va-macro.yaml | 308 +++++----- .../sound/qcom,pm8916-wcd-analog-codec.yaml | 306 +++++----- .../sound/qcom,q6dsp-lpass-ports.yaml | 328 +++++------ .../bindings/sound/qcom,wcd9335.yaml | 312 +++++----- .../bindings/sound/realtek,rt5645.yaml | 262 ++++----- .../bindings/sound/realtek,rt5682s.yaml | 300 +++++----- .../bindings/sound/renesas,rz-ssi.yaml | 260 ++++----- .../bindings/sound/samsung,aries-wm8994.yaml | 306 +++++----- .../bindings/sound/samsung,midas-audio.yaml | 290 ++++----- .../bindings/sound/samsung-i2s.yaml | 324 +++++------ .../bindings/sound/snps,designware-i2s.yaml | 394 ++++++------- .../devicetree/bindings/sound/st,sta32x.txt | 202 +++---- .../bindings/sound/ti,j721e-cpb-audio.yaml | 278 ++++----- .../bindings/sound/ti,tlv320aic3x.yaml | 332 +++++------ .../bindings/sound/wlf,arizona.yaml | 238 ++++---- .../devicetree/bindings/sound/wlf,wm8994.yaml | 388 ++++++------ .../bindings/spi/brcm,bcm63xx-hsspi.yaml | 268 ++++----- .../bindings/spi/cdns,qspi-nor.yaml | 352 +++++------ .../devicetree/bindings/spi/renesas,rspi.yaml | 310 +++++----- .../devicetree/bindings/spi/spi-davinci.txt | 200 +++---- .../devicetree/bindings/spi/spi-orion.txt | 158 ++--- .../bindings/spi/spi-peripheral-props.yaml | 258 ++++---- .../devicetree/bindings/spi/sprd,spi-adi.yaml | 206 +++---- .../spmi/qcom,x1e80100-spmi-pmic-arb.yaml | 272 ++++----- .../bindings/submitting-patches.rst | 182 +++--- .../thermal/allwinner,sun8i-a83t-ths.yaml | 358 ++++++------ .../thermal/mediatek,lvts-thermal.yaml | 296 +++++----- .../bindings/thermal/qcom-spmi-adc-tm-hc.yaml | 298 +++++----- .../bindings/thermal/qoriq-thermal.yaml | 236 ++++---- .../bindings/thermal/rcar-gen3-thermal.yaml | 306 +++++----- .../bindings/thermal/rcar-thermal.yaml | 310 +++++----- .../bindings/timer/arm,arch_timer.yaml | 256 ++++---- .../bindings/timer/nvidia,tegra186-timer.yaml | 218 +++---- .../bindings/timer/renesas,tmu.yaml | 272 ++++----- .../bindings/timer/ti,timer-dm.yaml | 318 +++++----- .../timestamp/nvidia,tegra194-hte.yaml | 280 ++++----- .../bindings/usb/aspeed,usb-vhub.yaml | 278 ++++----- .../devicetree/bindings/usb/atmel-usb.txt | 250 ++++---- .../devicetree/bindings/usb/dwc3-xilinx.yaml | 272 ++++----- .../bindings/usb/fsl,imx8mp-dwc3.yaml | 262 ++++----- .../devicetree/bindings/usb/generic-ohci.yaml | 360 ++++++------ .../bindings/usb/nvidia,tegra234-xusb.yaml | 318 +++++----- .../bindings/usb/onnn,nb7vpq904m.yaml | 276 ++++----- .../bindings/usb/renesas,rzv2m-usb3drd.yaml | 258 ++++---- .../bindings/usb/renesas,usb3-peri.yaml | 300 +++++----- .../bindings/usb/renesas,usbhs.yaml | 314 +++++----- .../bindings/usb/rockchip,dwc3.yaml | 316 +++++----- .../bindings/usb/samsung,exynos-dwc3.yaml | 326 +++++------ .../devicetree/bindings/usb/smsc,usb3503.yaml | 318 +++++----- .../devicetree/bindings/usb/ti,tps6598x.yaml | 318 +++++----- .../devicetree/bindings/usb/usb-device.yaml | 246 ++++---- .../bindings/watchdog/aspeed,ast2400-wdt.yaml | 284 ++++----- .../bindings/watchdog/atmel,at91sam9-wdt.yaml | 254 ++++---- .../bindings/watchdog/qcom-wdt.yaml | 292 +++++----- .../bindings/watchdog/samsung-wdt.yaml | 252 ++++---- .../devicetree/bindings/writing-bindings.rst | 186 +++--- .../Documentation/doc-guide/parse-headers.rst | 384 ++++++------ .../driver-api/80211/cfg80211.rst | 356 ++++++------ .../driver-api/80211/mac80211.rst | 310 +++++----- .../driver-api/driver-model/binding.rst | 196 +++---- .../driver-api/driver-model/bus.rst | 292 +++++----- .../driver-api/driver-model/device.rst | 240 ++++---- .../driver-api/firmware/fw_upload.rst | 254 ++++---- .../driver-api/fpga/fpga-region.rst | 224 +++---- .../driver-api/gpio/bt8xxgpio.rst | 124 ++-- .../kernel/Documentation/driver-api/ipmb.rst | 218 +++---- .../Documentation/driver-api/mailbox.rst | 258 ++++---- .../driver-api/media/drivers/contributors.rst | 262 ++++----- .../media/drivers/sh_mobile_ceu_camera.rst | 284 ++++----- .../driver-api/media/drivers/tuners.rst | 266 ++++----- .../driver-api/media/dtv-demux.rst | 168 +++--- .../driver-api/media/rc-core.rst | 176 +++--- .../driver-api/media/v4l2-fh.rst | 282 ++++----- .../driver-api/memory-devices/ti-gpmc.rst | 358 ++++++------ .../driver-api/mmc/mmc-async-req.rst | 196 +++---- .../driver-api/mmc/mmc-dev-attrs.rst | 182 +++--- .../driver-api/nvdimm/firmware-activate.rst | 172 +++--- .../Documentation/driver-api/pwrseq.rst | 190 +++--- .../driver-api/serial/driver.rst | 212 +++---- .../driver-api/soundwire/error_handling.rst | 130 ++--- .../driver-api/soundwire/locking.rst | 216 +++---- .../surface_aggregator/overview.rst | 158 ++--- .../Documentation/driver-api/switchtec.rst | 204 +++---- .../driver-api/thermal/cpu-cooling-api.rst | 214 +++---- .../driver-api/usb/bulk-streams.rst | 166 +++--- .../kernel/Documentation/fb/sh7760fb.rst | 260 ++++----- .../kernel/Documentation/filesystems/adfs.rst | 216 +++---- .../filesystems/automount-support.rst | 196 +++---- .../kernel/Documentation/filesystems/befs.rst | 256 ++++---- .../filesystems/gfs2-uevents.rst | 224 +++---- .../Documentation/filesystems/inotify.rst | 180 +++--- .../filesystems/nfs/reexport.rst | 226 +++---- .../filesystems/nfs/rpc-server-gss.rst | 186 +++--- .../Documentation/filesystems/ntfs3.rst | 246 ++++---- .../filesystems/ocfs2-online-filecheck.rst | 198 +++---- .../kernel/Documentation/filesystems/omfs.rst | 224 +++---- .../Documentation/filesystems/quota.rst | 170 +++--- .../filesystems/spufs/spu_create.rst | 262 ++++----- .../filesystems/spufs/spu_run.rst | 276 ++++----- .../firmware-guide/acpi/video_extension.rst | 242 ++++---- .../gpu/amdgpu/display/dc-debug.rst | 236 ++++---- .../gpu/amdgpu/display/dc-glossary.rst | 474 +++++++-------- .../gpu/amdgpu/display/index.rst | 192 +++--- .../Documentation/gpu/amdgpu/thermal.rst | 316 +++++----- .../kernel/Documentation/hwmon/abituguru.rst | 226 +++---- .../kernel/Documentation/hwmon/adt7410.rst | 188 +++--- .../kernel/Documentation/hwmon/amc6821.rst | 226 +++---- .../Documentation/hwmon/fam15h_power.rst | 262 ++++----- .../kernel/Documentation/hwmon/ina209.rst | 198 +++---- .../kernel/Documentation/hwmon/ina2xx.rst | 254 ++++---- .../kernel/Documentation/hwmon/jc42.rst | 304 +++++----- .../kernel/Documentation/hwmon/lm25066.rst | 278 ++++----- .../kernel/Documentation/hwmon/lm63.rst | 190 +++--- .../kernel/Documentation/hwmon/lm83.rst | 194 +++--- .../kernel/Documentation/hwmon/lochnagar.rst | 166 +++--- .../kernel/Documentation/hwmon/ltc2947.rst | 200 +++---- .../kernel/Documentation/hwmon/ltc4245.rst | 222 +++---- .../kernel/Documentation/hwmon/max16065.rst | 254 ++++---- .../kernel/Documentation/hwmon/max16601.rst | 290 ++++----- .../kernel/Documentation/hwmon/max31760.rst | 154 ++--- .../Documentation/hwmon/mc13783-adc.rst | 178 +++--- .../Documentation/hwmon/smpro-hwmon.rst | 204 +++---- .../kernel/Documentation/hwmon/smsc47m192.rst | 232 ++++---- .../kernel/Documentation/hwmon/tps53679.rst | 374 ++++++------ .../kernel/Documentation/hwmon/via686a.rst | 168 +++--- .../kernel/Documentation/hwmon/w83627hf.rst | 248 ++++---- .../kernel/Documentation/hwmon/w83793.rst | 226 +++---- .../kernel/Documentation/hwmon/w83795.rst | 284 ++++----- .../Documentation/i2c/busses/i2c-ali15x3.rst | 244 ++++---- .../Documentation/i2c/dma-considerations.rst | 142 ++--- .../i2c/i2c-address-translators.rst | 192 +++--- .../kernel/Documentation/i2c/summary.rst | 164 +++--- .../Documentation/infiniband/core_locking.rst | 232 ++++---- .../Documentation/infiniband/tag_matching.rst | 138 ++--- .../input/devices/appletouch.rst | 188 +++--- .../input/devices/rotary-encoder.rst | 270 ++++----- .../input/devices/walkera0701.rst | 256 ++++---- .../Documentation/input/interactive.svg | 48 +- .../Documentation/kbuild/gcc-plugins.rst | 266 ++++----- .../Documentation/leds/leds-el15203000.rst | 280 ++++----- .../kernel/Documentation/leds/leds-lp5523.rst | 294 +++++----- .../kernel/Documentation/leds/leds-lp5562.rst | 274 ++++----- .../Documentation/leds/well-known-leds.txt | 222 +++---- .../livepatch/cumulative-patches.rst | 204 +++---- .../kernel/Documentation/locking/rt-mutex.rst | 154 ++--- .../Documentation/misc-devices/apds990x.rst | 256 ++++---- .../Documentation/misc-devices/bh1770glc.rst | 270 ++++----- .../Documentation/misc-devices/lis3lv02d.rst | 198 +++---- .../misc-devices/spear-pcie-gadget.rst | 340 +++++------ .../kernel/Documentation/mm/active_mm.rst | 190 +++--- .../Documentation/mm/allocation-profiling.rst | 198 +++---- .../kernel/Documentation/mm/ksm.rst | 170 +++--- .../kernel/Documentation/mm/mmu_notifier.rst | 194 +++--- .../Documentation/mm/page_table_check.rst | 160 ++--- .../mm/split_page_table_lock.rst | 206 +++---- .../Documentation/netlink/specs/nfsd.yaml | 448 +++++++------- .../Documentation/netlink/specs/nlctrl.yaml | 416 ++++++------- .../netlink/specs/tcp_metrics.yaml | 338 +++++------ .../Documentation/netlink/specs/team.yaml | 408 ++++++------- .../Documentation/networking/caif/caif.rst | 276 ++++----- .../device_drivers/ethernet/amd/pds_core.rst | 278 ++++----- .../device_drivers/ethernet/huawei/hinic.rst | 256 ++++---- .../ethernet/ti/am65_nuss_cpsw_switchdev.rst | 286 ++++----- .../device_drivers/ethernet/ti/tlan.rst | 280 ++++----- .../networking/device_drivers/wwan/iosm.rst | 192 +++--- .../networking/devlink/devlink-region.rst | 166 +++--- .../networking/devlink/prestera.rst | 282 ++++----- .../Documentation/networking/driver.rst | 254 ++++---- .../Documentation/networking/gen_stats.rst | 258 ++++---- .../networking/mac80211-injection.rst | 212 +++---- .../Documentation/networking/mptcp-sysctl.rst | 224 +++---- .../Documentation/networking/multiqueue.rst | 156 ++--- .../networking/net_cachelines/inet_sock.rst | 88 +-- .../Documentation/networking/netif-msg.rst | 190 +++--- .../networking/pse-pd/introduction.rst | 146 ++--- .../Documentation/networking/tproxy.rst | 218 +++---- .../networking/xsk-tx-metadata.rst | 170 +++--- .../kernel/Documentation/power/s2ram.rst | 174 +++--- .../process/kernel-driver-statement.rst | 404 ++++++------- .../Documentation/scheduler/sched-domains.rst | 162 +++--- .../kernel/Documentation/scsi/NinjaSCSI.rst | 328 +++++------ .../kernel/Documentation/scsi/cxgb3i.rst | 180 +++--- .../kernel/Documentation/scsi/dc395x.rst | 228 ++++---- .../kernel/Documentation/scsi/dpti.rst | 184 +++--- .../kernel/Documentation/scsi/qlogicfas.rst | 174 +++--- .../Documentation/scsi/scsi-generic.rst | 214 +++---- .../sound/cards/emu10k1-jack.rst | 156 ++--- .../Documentation/sound/cards/joystick.rst | 182 +++--- .../Documentation/sound/cards/mixart.rst | 220 +++---- .../Documentation/sound/cards/pcmtest.rst | 240 ++++---- .../sound/cards/serial-u16550.rst | 186 +++--- .../sound/designs/control-names.rst | 284 ++++----- .../sound/soc/codec-to-codec.rst | 230 ++++---- .../kernel/Documentation/sphinx/kernel_abi.py | 282 ++++----- .../Documentation/sphinx/kernel_feat.py | 266 ++++----- .../kernel/Documentation/spi/butterfly.rst | 148 ++--- .../kernel/Documentation/spi/spi-lm70llp.rst | 168 +++--- .../Documentation/staging/magic-number.rst | 168 +++--- .../kernel/Documentation/staging/xz.rst | 196 +++---- .../kernel/Documentation/tee/amd-tee.rst | 180 +++--- .../kernel/Documentation/tee/ts-tee.rst | 142 ++--- .../Documentation/timers/timers-howto.rst | 230 ++++---- .../trace/coresight/ultrasoc-smb.rst | 166 +++--- .../Documentation/trace/events-power.rst | 208 +++---- .../Documentation/trace/hwlat_detector.rst | 176 +++--- .../Documentation/trace/ring-buffer-map.rst | 212 +++---- .../translations/it_IT/i2c/i2c-protocol.rst | 198 +++---- .../it_IT/process/8.Conclusion.rst | 168 +++--- .../it_IT/process/magic-number.rst | 180 +++--- .../translations/sp_SP/index.rst | 162 +++--- .../sp_SP/process/code-of-conduct.rst | 194 +++--- .../sp_SP/process/magic-number.rst | 178 +++--- .../translations/zh_CN/PCI/pci-iov-howto.rst | 338 +++++------ .../zh_CN/accounting/delay-accounting.rst | 224 +++---- .../zh_CN/admin-guide/cputopology.rst | 192 +++--- .../zh_CN/admin-guide/lockup-watchdogs.rst | 132 ++--- .../translations/zh_CN/arch/arm64/amu.rst | 200 +++---- .../zh_CN/arch/arm64/legacy_instructions.txt | 144 ++--- .../zh_CN/arch/openrisc/openrisc_port.rst | 254 ++++---- .../zh_CN/core-api/protection-keys.rst | 198 +++---- .../translations/zh_CN/cpu-freq/core.rst | 218 +++---- .../translations/zh_CN/dev-tools/sparse.rst | 218 +++---- .../translations/zh_CN/dev-tools/ubsan.rst | 182 +++--- .../zh_CN/doc-guide/parse-headers.rst | 374 ++++++------ .../zh_CN/infiniband/core_locking.rst | 230 ++++---- .../translations/zh_CN/infiniband/ipoib.rst | 222 +++---- .../zh_CN/infiniband/tag_matching.rst | 126 ++-- .../translations/zh_CN/kbuild/gcc-plugins.rst | 252 ++++---- .../maintainer/maintainer-entry-profile.rst | 184 +++--- .../translations/zh_CN/mm/active_mm.rst | 170 +++--- .../translations/zh_CN/mm/ksm.rst | 140 ++--- .../translations/zh_CN/mm/mmu_notifier.rst | 194 +++--- .../zh_CN/mm/split_page_table_lock.rst | 192 +++--- .../zh_CN/process/kernel-driver-statement.rst | 398 ++++++------- .../zh_CN/process/magic-number.rst | 164 +++--- .../zh_CN/process/stable-kernel-rules.rst | 128 ++-- .../zh_CN/sound/hd-audio/controls.rst | 204 +++---- .../zh_CN/userspace-api/futex2.rst | 160 ++--- .../zh_CN/virt/acrn/io-request.rst | 198 +++---- .../zh_TW/admin-guide/cputopology.rst | 194 +++--- .../zh_TW/admin-guide/lockup-watchdogs.rst | 134 ++--- .../zh_TW/admin-guide/security-bugs.rst | 156 ++--- .../translations/zh_TW/arch/arm64/amu.rst | 208 +++---- .../zh_TW/arch/arm64/legacy_instructions.txt | 154 ++--- .../zh_TW/arch/openrisc/openrisc_port.rst | 256 ++++---- .../translations/zh_TW/cpu-freq/core.rst | 220 +++---- .../translations/zh_TW/dev-tools/sparse.rst | 182 +++--- .../zh_TW/process/kernel-driver-statement.rst | 406 ++++++------- .../zh_TW/process/magic-number.rst | 152 ++--- .../zh_TW/process/stable-kernel-rules.rst | 136 ++--- .../Documentation/usb/authorization.rst | 258 ++++---- .../kernel/Documentation/usb/chipidea.rst | 268 ++++----- .../Documentation/usb/linux-cdc-acm.inf | 214 +++---- .../kernel/Documentation/usb/raw-gadget.rst | 182 +++--- .../Documentation/userspace-api/dcdbas.rst | 198 +++---- .../Documentation/userspace-api/futex2.rst | 172 +++--- .../userspace-api/gpio/chardev.rst | 232 ++++---- .../userspace-api/gpio/chardev_v1.rst | 262 ++++----- .../gpio/gpio-get-linehandle-ioctl.rst | 250 ++++---- .../media/cec/cec-ioc-adap-g-caps.rst | 304 +++++----- .../media/cec/cec-ioc-adap-g-phys-addr.rst | 188 +++--- .../media/drivers/camera-sensor.rst | 208 +++---- .../userspace-api/media/drivers/ccs.rst | 228 ++++---- .../userspace-api/media/drivers/dw100.rst | 168 +++--- .../userspace-api/media/drivers/imx-uapi.rst | 250 ++++---- .../userspace-api/media/dvb/dmx-mmap.rst | 230 ++++---- .../media/dvb/dvb-frontend-parameters.rst | 238 ++++---- .../userspace-api/media/dvb/dvbproperty.rst | 252 ++++---- .../mediactl/media-ioc-enum-entities.rst | 292 +++++----- .../media/mediactl/media-ioc-enum-links.rst | 290 ++++----- .../userspace-api/media/rc/keytable.c.rst | 352 +++++------ .../media/rc/lirc-get-features.rst | 348 +++++------ .../userspace-api/media/rc/rc-sysfs-nodes.rst | 288 ++++----- .../userspace-api/media/v4l/audio.rst | 194 +++--- .../userspace-api/media/v4l/dev-capture.rst | 202 +++---- .../userspace-api/media/v4l/dev-meta.rst | 176 +++--- .../userspace-api/media/v4l/dev-output.rst | 196 +++---- .../userspace-api/media/v4l/dev-sdr.rst | 214 +++---- .../media/v4l/ext-ctrls-colorimetry.rst | 186 +++--- .../media/v4l/ext-ctrls-fm-rx.rst | 176 +++--- .../media/v4l/ext-ctrls-image-source.rst | 188 +++--- .../media/v4l/ext-ctrls-jpeg.rst | 210 +++---- .../media/v4l/ext-ctrls-rf-tuner.rst | 178 +++--- .../userspace-api/media/v4l/format.rst | 182 +++--- .../userspace-api/media/v4l/func-poll.rst | 226 +++---- .../userspace-api/media/v4l/func-select.rst | 232 ++++---- .../media/v4l/metafmt-rkisp1.rst | 178 +++--- .../media/v4l/metafmt-vsp1-hgo.rst | 336 +++++------ .../media/v4l/metafmt-vsp1-hgt.rst | 258 ++++---- .../media/v4l/pixfmt-srggb14p.rst | 294 +++++----- .../media/v4l/pixfmt-v4l2-mplane.rst | 246 ++++---- .../userspace-api/media/v4l/tuner.rst | 170 +++--- .../media/v4l/vidioc-cropcap.rst | 266 ++++----- .../media/v4l/vidioc-enum-dv-timings.rst | 210 +++---- .../media/v4l/vidioc-enum-freq-bands.rst | 278 ++++----- .../media/v4l/vidioc-g-audio.rst | 248 ++++---- .../userspace-api/media/v4l/vidioc-g-crop.rst | 220 +++---- .../media/v4l/vidioc-g-enc-index.rst | 288 ++++----- .../media/v4l/vidioc-g-frequency.rst | 206 +++---- .../media/v4l/vidioc-streamon.rst | 210 +++---- .../v4l/vidioc-subdev-enum-frame-interval.rst | 226 +++---- .../v4l/vidioc-subdev-enum-frame-size.rst | 262 ++++----- .../media/v4l/vidioc-subdev-g-client-cap.rst | 206 +++---- .../media/v4l/vidioc-subdev-g-crop.rst | 254 ++++---- .../media/v4l/vidioc-subdev-g-selection.rst | 250 ++++---- .../media/v4l/vidioc-subscribe-event.rst | 226 +++---- .../userspace-api/netlink/c-code-gen.rst | 214 +++---- .../Documentation/virt/hyperv/clocks.rst | 164 +++--- .../Documentation/virt/kvm/arm/pvtime.rst | 162 +++--- .../Documentation/virt/kvm/s390/s390-diag.rst | 238 ++++---- .../Documentation/w1/masters/ds2490.rst | 144 ++--- .../kernel/Documentation/watchdog/hpwdt.rst | 154 ++--- .../Documentation/wmi/acpi-interface.rst | 198 +++---- .../kernel/arch/alpha/boot/Makefile | 240 ++++---- .../kernel/arch/alpha/boot/main.c | 380 ++++++------ .../kernel/arch/alpha/boot/tools/mkbb.c | 306 +++++----- .../arch/alpha/include/asm/err_common.h | 238 ++++---- .../arch/alpha/include/asm/io_trivial.h | 288 ++++----- .../kernel/arch/alpha/include/asm/machvec.h | 260 ++++----- .../kernel/arch/alpha/include/asm/mce.h | 168 +++--- .../arch/alpha/include/asm/thread_info.h | 252 ++++---- .../arch/alpha/include/uapi/asm/compiler.h | 200 +++---- .../kernel/arch/alpha/include/uapi/asm/mman.h | 178 +++--- .../arch/alpha/include/uapi/asm/socket.h | 346 +++++------ .../arch/alpha/include/uapi/asm/termbits.h | 334 +++++------ .../kernel/arch/alpha/kernel/irq_i8259.c | 318 +++++----- .../kernel/arch/alpha/kernel/machvec_impl.h | 272 ++++----- .../kernel/arch/alpha/lib/divide.S | 398 ++++++------- .../kernel/arch/alpha/lib/ev6-copy_page.S | 410 ++++++------- .../kernel/arch/alpha/lib/ev67-strrchr.S | 222 +++---- .../kernel/arch/alpha/lib/memcpy.c | 332 +++++------ .../kernel/arch/alpha/lib/udiv-qrnnd.S | 330 +++++------ .../UFI003_MB_V02/kernel/arch/arc/Makefile | 224 +++---- .../kernel/arch/arc/boot/dts/axc003.dtsi | 322 +++++----- .../kernel/arch/arc/boot/dts/axc003_idu.dtsi | 334 +++++------ .../kernel/arch/arc/include/asm/bitops.h | 394 ++++++------- .../kernel/arch/arc/include/asm/cache.h | 256 ++++---- .../kernel/arch/arc/include/asm/cmpxchg.h | 290 ++++----- .../kernel/arch/arc/include/asm/disasm.h | 226 +++---- .../kernel/arch/arc/include/asm/dsp-impl.h | 304 +++++----- .../kernel/arch/arc/include/asm/futex.h | 338 +++++------ .../arch/arc/include/asm/irqflags-arcv2.h | 350 +++++------ .../arch/arc/include/asm/irqflags-compact.h | 402 ++++++------- .../kernel/arch/arc/include/asm/page.h | 282 ++++----- .../kernel/arch/arc/include/asm/smp.h | 260 ++++----- .../kernel/arch/arc/include/asm/thread_info.h | 212 +++---- .../kernel/arch/arc/include/asm/unwind.h | 312 +++++----- .../kernel/arch/arc/kernel/module.c | 292 +++++----- .../kernel/arch/arc/kernel/traps.c | 318 +++++----- .../kernel/arch/arc/lib/memcpy-archs.S | 438 +++++++------- .../UFI003_MB_V02/kernel/arch/arc/mm/fault.c | 386 ++++++------ .../arch/arm/boot/compressed/efi-header.S | 272 ++++----- .../arm/boot/compressed/fdt_check_mem_start.c | 336 +++++------ .../arch/arm/boot/compressed/head-sharpsl.S | 302 +++++----- .../arch/arm/boot/compressed/vmlinux.lds.S | 286 ++++----- .../arch/arm/boot/dts/allwinner/axp209.dtsi | 252 ++++---- .../arch/arm/boot/dts/allwinner/axp22x.dtsi | 352 +++++------ .../arch/arm/boot/dts/allwinner/axp81x.dtsi | 328 +++++------ .../dts/allwinner/sun4i-a10-ba10-tvbox.dts | 302 +++++----- .../allwinner/sun4i-a10-chuwi-v7-cw0825.dts | 318 +++++----- .../boot/dts/allwinner/sun4i-a10-gemei-g9.dts | 384 ++++++------ .../dts/allwinner/sun4i-a10-hackberry.dts | 280 ++++----- .../dts/allwinner/sun4i-a10-jesurun-q5.dts | 362 ++++++------ .../dts/allwinner/sun4i-a10-marsboard.dts | 364 ++++++------ .../dts/allwinner/sun4i-a10-mini-xplus.dts | 288 ++++----- .../boot/dts/allwinner/sun4i-a10-mk802.dts | 288 ++++----- .../boot/dts/allwinner/sun4i-a10-pcduino.dts | 400 ++++++------- .../dts/allwinner/sun4i-a10-topwise-a721.dts | 484 +++++++-------- .../dts/allwinner/sun5i-a10s-auxtek-t003.dts | 274 ++++----- .../dts/allwinner/sun5i-a10s-auxtek-t004.dts | 298 +++++----- .../boot/dts/allwinner/sun5i-a10s-wobo-i5.dts | 390 ++++++------- .../boot/dts/allwinner/sun5i-a13-hsg-h702.dts | 364 ++++++------ .../allwinner/sun5i-a13-olinuxino-micro.dts | 282 ++++----- .../sun5i-a13-pocketbook-614-plus.dts | 436 +++++++------- .../boot/dts/allwinner/sun5i-a13-utoo-p66.dts | 232 ++++---- .../arm/boot/dts/allwinner/sun5i-a13.dtsi | 236 ++++---- .../arm/boot/dts/allwinner/sun5i-gr8.dtsi | 252 ++++---- .../boot/dts/allwinner/sun6i-a31-colombus.dts | 260 ++++----- .../arm/boot/dts/allwinner/sun6i-a31-i7.dts | 356 ++++++------ .../allwinner/sun6i-a31s-sina31s-core.dtsi | 282 ++++----- .../boot/dts/allwinner/sun6i-a31s-sina31s.dts | 390 ++++++------- .../sun6i-a31s-yones-toptech-bs1078-v2.dts | 364 ++++++------ .../sun6i-reference-design-tablet.dtsi | 346 +++++------ .../dts/allwinner/sun7i-a20-icnova-swac.dts | 328 +++++------ .../dts/allwinner/sun7i-a20-itead-ibox.dts | 294 +++++----- .../arm/boot/dts/allwinner/sun7i-a20-m3.dts | 312 +++++----- .../boot/dts/allwinner/sun7i-a20-mk808c.dts | 368 ++++++------ .../dts/allwinner/sun8i-h3-nanopi-duo2.dts | 346 +++++------ .../dts/allwinner/sun8i-h3-nanopi-m1-plus.dts | 332 +++++------ .../dts/allwinner/sun8i-h3-nanopi-neo-air.dts | 286 ++++----- .../boot/dts/allwinner/sun8i-h3-nanopi-r1.dts | 338 +++++------ .../dts/allwinner/sun8i-h3-orangepi-lite.dts | 336 +++++------ .../dts/allwinner/sun8i-h3-orangepi-plus.dts | 270 ++++----- .../sun8i-h3-orangepi-zero-plus2.dts | 354 +++++------ .../boot/dts/allwinner/sun8i-q8-common.dtsi | 236 ++++---- .../boot/dts/allwinner/sun8i-r40-oka40i-c.dts | 406 ++++++------- .../boot/dts/allwinner/sun8i-s3-pinecube.dts | 456 +++++++-------- .../allwinner/sunxi-common-regulators.dtsi | 222 +++---- .../allwinner/sunxi-libretech-all-h3-cc.dtsi | 474 +++++++-------- .../allwinner/sunxi-libretech-all-h3-it.dtsi | 360 ++++++------ .../arch/arm/boot/dts/arm/arm-realview-eb.dts | 332 +++++------ .../arm/boot/dts/arm/arm-realview-pba8.dts | 356 ++++++------ .../aspeed/aspeed-bmc-facebook-yosemitev2.dts | 472 +++++++-------- .../boot/dts/aspeed/aspeed-bmc-opp-vesnin.dts | 496 ++++++++-------- .../dts/aspeed/aspeed-bmc-qcom-dc-scm-v1.dts | 380 ++++++------ .../arm/boot/dts/aspeed/ibm-power9-dual.dtsi | 496 ++++++++-------- .../arch/arm/boot/dts/broadcom/Makefile | 256 ++++---- .../boot/dts/broadcom/bcm-cygnus-clock.dtsi | 266 ++++----- .../arm/boot/dts/broadcom/bcm2835-common.dtsi | 416 ++++++------- .../arch/arm/boot/dts/broadcom/bcm2836.dtsi | 284 ++++----- .../arch/arm/boot/dts/broadcom/bcm2837.dtsi | 288 ++++----- .../bcm4708-buffalo-wzr-1166dhp-common.dtsi | 386 ++++++------ .../dts/broadcom/bcm47094-dlink-dir-890l.dts | 416 ++++++------- .../arch/arm/boot/dts/broadcom/bcm47622.dtsi | 328 +++++------ .../dts/broadcom/bcm53016-meraki-mr32.dts | 458 +++++++-------- .../arch/arm/boot/dts/broadcom/bcm63178.dtsi | 310 +++++----- .../arch/arm/boot/dts/broadcom/bcm6756.dtsi | 330 +++++------ .../arch/arm/boot/dts/broadcom/bcm6855.dtsi | 310 +++++----- .../arm/boot/dts/broadcom/bcm958522er.dts | 370 ++++++------ .../arm/boot/dts/broadcom/bcm958525er.dts | 394 ++++++------- .../arm/boot/dts/broadcom/bcm958525xmc.dts | 434 +++++++------- .../arm/boot/dts/broadcom/bcm958622hr.dts | 454 +++++++-------- .../arm/boot/dts/broadcom/bcm958623hr.dts | 462 +++++++-------- .../arm/boot/dts/broadcom/bcm988312hr.dts | 462 +++++++-------- .../arch/arm/boot/dts/cirrus/ep7209.dtsi | 402 ++++++------- .../arch/arm/boot/dts/cnxt/cx92755.dtsi | 288 ++++----- .../arm/boot/dts/gemini/gemini-nas4220b.dts | 378 ++++++------ .../arm/boot/dts/intel/axm/axm5516-cpus.dtsi | 400 ++++++------- .../intel/ixp/intel-ixp42x-arcom-vulcan.dts | 338 +++++------ .../intel/ixp/intel-ixp42x-dlink-dsm-g600.dts | 294 +++++----- .../intel/ixp/intel-ixp42x-linksys-nslu2.dts | 342 +++++------ .../intel/ixp/intel-ixp42x-linksys-wrv54g.dts | 350 +++++------ .../ixp/intel-ixp4xx-reference-design.dtsi | 268 ++++----- .../arch/arm/boot/dts/intel/pxa/pxa27x.dtsi | 376 ++++++------ .../arch/arm/boot/dts/intel/pxa/pxa2xx.dtsi | 324 +++++------ .../intel/socfpga/socfpga_arria10_socdk.dtsi | 366 ++++++------ .../intel/socfpga/socfpga_cyclone5_sockit.dts | 374 ++++++------ .../boot/dts/marvell/armada-370-mirabox.dts | 368 ++++++------ .../marvell/armada-370-seagate-nas-xbay.dtsi | 458 +++++++-------- .../arch/arm/boot/dts/marvell/armada-380.dtsi | 296 +++++----- .../arm/boot/dts/marvell/armada-385-db-ap.dts | 476 +++++++-------- .../boot/dts/marvell/armada-385-linksys.dtsi | 526 ++++++++--------- .../arm/boot/dts/marvell/armada-388-db.dts | 490 ++++++++-------- .../marvell/armada-xp-openblocks-ax3-4.dts | 418 ++++++------- .../arm/boot/dts/marvell/kirkwood-6282.dtsi | 322 +++++----- .../arch/arm/boot/dts/marvell/kirkwood-b3.dts | 390 ++++++------- .../boot/dts/marvell/kirkwood-goflexnet.dts | 380 ++++++------ .../boot/dts/marvell/kirkwood-iconnect.dts | 386 ++++++------ .../dts/marvell/kirkwood-linksys-viper.dts | 478 +++++++-------- .../arm/boot/dts/marvell/kirkwood-mplcec4.dts | 432 +++++++------- .../arm/boot/dts/marvell/kirkwood-net5big.dts | 338 +++++------ .../dts/marvell/kirkwood-openblocks_a7.dts | 414 ++++++------- .../arm/boot/dts/marvell/kirkwood-t5325.dts | 450 +++++++------- .../arm/boot/dts/marvell/kirkwood-topkick.dts | 432 +++++++------- .../arm/boot/dts/marvell/mmp2-brownstone.dts | 384 ++++++------ .../boot/dts/marvell/orion5x-kuroboxpro.dts | 254 ++++---- .../orion5x-lacie-ethernet-disk-mini-v2.dts | 338 +++++------ .../dts/marvell/orion5x-linkstation-lschl.dts | 342 +++++------ .../marvell/orion5x-linkstation-lswtgl.dts | 302 +++++----- .../boot/dts/marvell/orion5x-linkstation.dtsi | 360 ++++++------ .../orion5x-maxtor-shared-storage-2.dts | 350 +++++------ .../arch/arm/boot/dts/marvell/pxa168.dtsi | 332 +++++------ .../arch/arm/boot/dts/marvell/pxa910-dkb.dts | 340 +++++------ .../arch/arm/boot/dts/marvell/pxa910.dtsi | 354 +++++------ .../boot/dts/mediatek/mt7623a-rfb-emmc.dts | 494 ++++++++-------- .../arch/arm/boot/dts/mediatek/mt7629-rfb.dts | 550 +++++++++--------- .../arch/arm/boot/dts/mediatek/mt8127.dtsi | 326 +++++------ .../arch/arm/boot/dts/microchip/animeo_ip.dts | 390 ++++++------- .../arm/boot/dts/microchip/at91-kizbox.dts | 380 ++++++------ .../arm/boot/dts/microchip/at91-natte.dtsi | 488 ++++++++-------- .../arm/boot/dts/microchip/at91-qil_a9260.dts | 426 +++++++------- .../dts/microchip/at91-sama5d27_som1.dtsi | 332 +++++------ .../microchip/at91-sama5d3_ksz9477_evb.dts | 454 +++++++-------- .../arm/boot/dts/microchip/at91-som60.dtsi | 460 +++++++-------- .../arm/boot/dts/microchip/at91-vinco.dts | 462 +++++++-------- .../arm/boot/dts/microchip/at91-wb50n.dtsi | 388 ++++++------ .../lan966x-kontron-kswitch-d10-mmt.dtsi | 460 +++++++-------- .../boot/dts/microchip/lan966x-pcb8290.dts | 390 ++++++------- .../boot/dts/microchip/lan966x-pcb8309.dts | 460 +++++++-------- .../arch/arm/boot/dts/microchip/pm9g45.dts | 370 ++++++------ .../arm/boot/dts/microchip/sama5d3_gmac.dtsi | 156 ++--- .../boot/dts/microchip/sama5d3xcm_cmp.dtsi | 386 ++++++------ .../arch/arm/boot/dts/nspire/nspire-cx.dts | 340 +++++------ .../arch/arm/boot/dts/nspire/nspire.dtsi | 444 +++++++------- ...egra30-asus-nexus7-grouper-maxim-pmic.dtsi | 388 ++++++------ .../tegra30-asus-nexus7-grouper-ti-pmic.dtsi | 318 +++++----- .../nvidia/tegra30-asus-nexus7-grouper.dtsi | 296 +++++----- .../dts/nvidia/tegra30-colibri-eval-v3.dts | 400 ++++++------- .../imx/imx25-eukrea-mbimxsd25-baseboard.dts | 348 +++++------ .../arch/arm/boot/dts/nxp/imx/imx27-pdk.dts | 370 ++++++------ .../nxp/imx/imx27-phytec-phycard-s-som.dtsi | 350 +++++------ .../arch/arm/boot/dts/nxp/imx/imx31-lite.dts | 356 ++++++------ .../arch/arm/boot/dts/nxp/imx/imx53-kp.dtsi | 378 ++++++------ .../arm/boot/dts/nxp/imx/imx6dl-prtrvt.dts | 372 ++++++------ .../dts/nxp/imx/imx6q-apalis-eval-v1.2.dts | 400 ++++++------- .../arm/boot/dts/nxp/imx/imx6q-b450v3.dts | 314 +++++----- .../arm/boot/dts/nxp/imx/imx6q-b650v3.dts | 312 +++++----- .../arm/boot/dts/nxp/imx/imx6q-prtwd2.dts | 392 ++++++------- .../dts/nxp/imx/imx6q-var-dt6customboard.dts | 468 +++++++-------- .../arm/boot/dts/nxp/imx/imx6qdl-apf6.dtsi | 304 +++++----- .../boot/dts/nxp/imx/imx6qdl-dhcom-drc02.dtsi | 286 ++++----- .../arm/boot/dts/nxp/imx/imx6qdl-prti6q.dtsi | 350 +++++------ .../arm/boot/dts/nxp/imx/imx6qdl-tqma6.dtsi | 402 ++++++------- .../dts/nxp/imx/imx6qdl-wandboard-revd1.dtsi | 386 ++++++------ .../arm/boot/dts/nxp/imx/imx6sx-sdb-reva.dts | 338 +++++------ .../dts/nxp/imx/imx6ul-ccimx6ulsbcexpress.dts | 400 ++++++------- .../dts/nxp/imx/imx6ul-imx6ull-opos6ul.dtsi | 302 +++++----- .../arm/boot/dts/nxp/imx/imx6ul-liteboard.dts | 302 +++++----- .../imx/imx6ul-phytec-segin-peb-av-02.dtsi | 300 +++++----- .../dts/nxp/imx/imx6ul-tqma6ul-common.dtsi | 422 +++++++------- .../boot/dts/nxp/imx/imx6ulz-bsh-smm-m2.dts | 300 +++++----- .../arch/arm/boot/dts/nxp/imx/imx7d-mba7.dts | 270 ++++----- .../arch/arm/boot/dts/nxp/imx/imxrt1050.dtsi | 320 +++++----- .../arm/boot/dts/nxp/lpc/lpc3250-ea3250.dts | 546 ++++++++--------- .../arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts | 472 +++++++-------- .../arm/boot/dts/nxp/lpc/lpc4337-ciaa.dts | 442 +++++++------- .../arch/arm/boot/dts/nxp/ls/ls1021a-iot.dts | 454 +++++++-------- .../boot/dts/nxp/ls/ls1021a-moxa-uc-8410a.dts | 474 +++++++-------- .../arch/arm/boot/dts/nxp/ls/ls1021a-twr.dts | 480 +++++++-------- .../arm/boot/dts/nxp/mxs/imx28-apf28dev.dts | 418 ++++++------- .../arm/boot/dts/nxp/mxs/imx28-apx4devkit.dts | 452 +++++++------- .../arm/boot/dts/nxp/mxs/imx28-cfa10055.dts | 310 +++++----- .../arm/boot/dts/nxp/mxs/imx28-cfa10057.dts | 308 +++++----- .../arm/boot/dts/nxp/mxs/imx28-duckbill-2.dts | 340 +++++------ .../kernel/arch/arm/boot/dts/qcom/pm8058.dtsi | 318 +++++----- .../kernel/arch/arm/boot/dts/qcom/pm8226.dtsi | 364 ++++++------ .../boot/dts/qcom/qcom-apq8064-cm-qs600.dts | 468 +++++++-------- .../boot/dts/qcom/qcom-ipq4018-ap120c-ac.dtsi | 548 ++++++++--------- .../dts/qcom/qcom-msm8909-zte-sapphire.dts | 446 +++++++------- ...-msm8974pro-sony-xperia-shinano-castor.dts | 354 +++++------ .../arch/arm/boot/dts/qcom/qcom-pm8909.dtsi | 292 +++++----- .../arm/boot/dts/renesas/r7s72100-genmai.dts | 460 +++++++-------- .../dts/renesas/r9a06g032-rzn1d400-db.dts | 360 ++++++------ .../boot/dts/rockchip/rk3066a-bqcurie2.dts | 414 ++++++------- .../boot/dts/rockchip/rk3066a-marsboard.dts | 442 +++++++------- .../boot/dts/rockchip/rk3288-evb-act8846.dts | 376 ++++++------ .../rockchip/rk3288-veyron-chromebook.dtsi | 368 ++++++------ .../arm/boot/dts/rockchip/rv1108-elgin-r1.dts | 424 +++++++------- .../boot/dts/samsung/exynos4210-smdkv310.dts | 458 +++++++-------- .../arch/arm/boot/dts/samsung/exynos4212.dtsi | 314 +++++----- .../boot/dts/samsung/exynos4412-smdk4412.dts | 364 ++++++------ .../arch/arm/boot/dts/samsung/exynos4412.dtsi | 366 ++++++------ .../arm/boot/dts/samsung/exynos5420-cpus.dtsi | 326 +++++------ .../arm/boot/dts/samsung/exynos5422-cpus.dtsi | 340 +++++------ .../arch/arm/boot/dts/samsung/exynos5800.dtsi | 332 +++++------ .../arm/boot/dts/samsung/s3c6410-mini6410.dts | 436 +++++++------- .../arch/arm/boot/dts/sigmastar/mstar-v7.dtsi | 384 ++++++------ .../boot/dts/socionext/uniphier-pinctrl.dtsi | 446 +++++++------- .../arch/arm/boot/dts/st/spear1340.dtsi | 334 +++++------ .../arch/arm/boot/dts/st/spear300-evb.dts | 498 ++++++++-------- .../arch/arm/boot/dts/st/spear310-evb.dts | 404 ++++++------- .../kernel/arch/arm/boot/dts/st/spear320.dtsi | 284 ++++----- .../arm/boot/dts/st/ste-nomadik-pinctrl.dtsi | 348 +++++------ .../arm/boot/dts/st/ste-nomadik-s8815.dts | 344 +++++------ .../arch/arm/boot/dts/st/stih407-clock.dtsi | 420 ++++++------- .../kernel/arch/arm/boot/dts/st/stih407.dtsi | 290 ++++----- .../arch/arm/boot/dts/st/stih410-b2260.dts | 420 ++++++------- .../arch/arm/boot/dts/st/stih410-clock.dtsi | 430 +++++++------- .../arch/arm/boot/dts/st/stih418-clock.dtsi | 430 +++++++------- .../kernel/arch/arm/boot/dts/st/stih418.dtsi | 308 +++++----- .../arch/arm/boot/dts/st/stihxxx-b2120.dtsi | 412 ++++++------- .../arch/arm/boot/dts/st/stm32h743i-eval.dts | 320 +++++----- .../dts/st/stm32mp157a-icore-stm32mp1.dtsi | 392 ++++++------- ...157a-microgea-stm32mp1-microdev2.0-of7.dts | 314 +++++----- .../boot/dts/st/stm32mp157c-lxa-tac-gen2.dts | 344 +++++------ .../boot/dts/st/stm32mp157c-osd32mp1-red.dts | 416 ++++++------- .../dts/st/stm32mp15xx-dhcor-testbench.dtsi | 394 ++++++------- .../dts/ti/keystone/keystone-k2hk-evm.dts | 472 +++++++-------- .../kernel/arch/arm/boot/dts/ti/omap/Makefile | 350 +++++------ .../boot/dts/ti/omap/am335x-baltos-ir2110.dts | 454 +++++++-------- .../dts/ti/omap/am335x-boneblack-hdmi.dtsi | 292 +++++----- .../dts/ti/omap/am335x-bonegreen-wireless.dts | 254 ++++---- .../arm/boot/dts/ti/omap/am335x-chilisom.dtsi | 350 +++++------ .../dts/ti/omap/am335x-netcom-plus-2xx.dts | 478 +++++++-------- .../dts/ti/omap/am335x-netcom-plus-8xx.dts | 542 ++++++++--------- .../arch/arm/boot/dts/ti/omap/am571x-idk.dts | 436 +++++++------- .../boot/dts/ti/omap/am572x-idk-common.dtsi | 406 ++++++------- .../arm/boot/dts/ti/omap/am57xx-sbc-am57x.dts | 352 +++++------ .../arch/arm/boot/dts/ti/omap/dm8148-evm.dts | 310 +++++----- .../arm/boot/dts/ti/omap/dra72-evm-revc.dts | 314 +++++----- .../arch/arm/boot/dts/ti/omap/dra76x.dtsi | 338 +++++------ .../arm/boot/dts/ti/omap/omap3-cm-t3517.dts | 316 +++++----- .../boot/dts/ti/omap/omap3-evm-common.dtsi | 396 ++++++------- .../dts/ti/omap/omap3-overo-common-dvi.dtsi | 216 +++---- .../arm/boot/dts/ti/omap/omap3-thunder.dts | 252 ++++---- .../arm/boot/dts/ti/omap/omap3430-sdp.dts | 390 ++++++------- .../boot/dts/ti/omap/omap4-droid4-xt894.dts | 328 +++++------ .../boot/dts/ti/omap/omap4-duovero-parlor.dts | 388 ++++++------ .../arch/arm/boot/dts/ti/omap/omap4-kc1.dts | 358 ++++++------ .../arch/arm/boot/dts/ti/omap/omap4460.dtsi | 256 ++++---- .../arch/arm/boot/dts/ti/omap/omap5-uevm.dts | 468 +++++++-------- .../arch/arm/boot/dts/vt8500/vt8500.dtsi | 358 ++++++------ .../kernel/arch/arm/configs/bcm2835_defconfig | 382 ++++++------ .../arch/arm/configs/imx_v4_v5_defconfig | 356 ++++++------ .../kernel/arch/arm/configs/ixp4xx_defconfig | 350 +++++------ .../kernel/arch/arm/configs/lpc18xx_defconfig | 322 +++++----- .../kernel/arch/arm/configs/moxart_defconfig | 284 ++++----- .../arch/arm/configs/mvebu_v5_defconfig | 398 ++++++------- .../kernel/arch/arm/configs/mxs_defconfig | 350 +++++------ .../kernel/arch/arm/configs/orion5x_defconfig | 298 +++++----- .../kernel/arch/arm/configs/socfpga_defconfig | 324 +++++------ .../kernel/arch/arm/configs/sunxi_defconfig | 356 ++++++------ .../kernel/arch/arm/crypto/aes-cipher-core.S | 402 ++++++------- .../kernel/arch/arm/crypto/curve25519-glue.c | 274 ++++----- .../kernel/arch/arm/include/asm/checksum.h | 332 +++++------ .../kernel/arch/arm/include/asm/cp15.h | 244 ++++---- .../kernel/arch/arm/include/asm/cti.h | 320 +++++----- .../kernel/arch/arm/include/asm/dma.h | 298 +++++----- .../kernel/arch/arm/include/asm/domain.h | 282 ++++----- .../kernel/arch/arm/include/asm/futex.h | 360 ++++++------ .../kernel/arch/arm/include/asm/glue-proc.h | 522 ++++++++--------- .../include/asm/hardware/cache-aurora-l2.h | 200 +++---- .../arch/arm/include/asm/hardware/iomd.h | 364 ++++++------ .../arch/arm/include/asm/hw_breakpoint.h | 292 +++++----- .../kernel/arch/arm/include/asm/irqflags.h | 374 ++++++------ .../kernel/arch/arm/include/asm/mmu_context.h | 304 +++++----- .../kernel/arch/arm/include/asm/mpu.h | 266 ++++----- .../kernel/arch/arm/include/asm/pgalloc.h | 298 +++++----- .../arm/include/asm/pgtable-2level-hwdef.h | 188 +++--- .../arm/include/asm/pgtable-3level-hwdef.h | 258 ++++---- .../kernel/arch/arm/include/asm/tls.h | 286 ++++----- .../kernel/arch/arm/include/asm/uaccess-asm.h | 322 +++++----- .../kernel/arch/arm/include/asm/user.h | 200 +++---- .../kernel/arch/arm/include/asm/v7m.h | 196 +++---- .../kernel/arch/arm/include/uapi/asm/ptrace.h | 326 +++++------ .../kernel/arch/arm/include/uapi/asm/setup.h | 376 ++++++------ .../kernel/arch/arm/kernel/Makefile | 212 +++---- .../kernel/arch/arm/kernel/armksyms.c | 354 +++++------ .../kernel/arch/arm/kernel/cpuidle.c | 296 +++++----- .../kernel/arch/arm/kernel/efi.c | 260 ++++----- .../kernel/arch/arm/kernel/elf.c | 266 ++++----- .../kernel/arch/arm/kernel/entry-v7m.S | 320 +++++----- .../kernel/arch/arm/kernel/fiq.c | 332 +++++------ .../kernel/arch/arm/kernel/irq.c | 314 +++++----- .../kernel/arch/arm/kernel/reboot.c | 294 +++++----- .../kernel/arch/arm/kernel/sigreturn_codes.S | 280 ++++----- .../kernel/arch/arm/kernel/suspend.c | 260 ++++----- .../kernel/arch/arm/kernel/vmlinux.lds.S | 360 ++++++------ .../kernel/arch/arm/kernel/xscale-cp0.c | 364 ++++++------ .../kernel/arch/arm/lib/backtrace.S | 262 ++++----- .../UFI003_MB_V02/kernel/arch/arm/lib/div64.S | 418 ++++++------- .../kernel/arch/arm/lib/getuser.S | 334 +++++------ .../kernel/arch/arm/lib/memmove.S | 412 ++++++------- .../kernel/arch/arm/mach-actions/platsmp.c | 308 +++++----- .../kernel/arch/arm/mach-bcm/bcm63xx_smp.c | 336 +++++------ .../kernel/arch/arm/mach-bcm/bcm_kona_smc.c | 316 +++++----- .../kernel/arch/arm/mach-davinci/pm.c | 340 +++++------ .../kernel/arch/arm/mach-dove/mpp.c | 318 +++++----- .../kernel/arch/arm/mach-footbridge/isa-irq.c | 354 +++++------ .../kernel/arch/arm/mach-highbank/highbank.c | 350 +++++------ .../kernel/arch/arm/mach-imx/anatop.c | 326 +++++------ .../kernel/arch/arm/mach-imx/common.h | 278 ++++----- .../kernel/arch/arm/mach-imx/hardware.h | 218 +++---- .../kernel/arch/arm/mach-imx/mm-imx3.c | 296 +++++----- .../kernel/arch/arm/mach-imx/platsmp.c | 300 +++++----- .../kernel/arch/arm/mach-keystone/keystone.c | 296 +++++----- .../kernel/arch/arm/mach-lpc32xx/pm.c | 270 ++++----- .../kernel/arch/arm/mach-lpc32xx/serial.c | 296 +++++----- .../kernel/arch/arm/mach-mediatek/platsmp.c | 286 ++++----- .../kernel/arch/arm/mach-mstar/mstarv7.c | 258 ++++---- .../arch/arm/mach-mv78xx0/buffalo-wxl-setup.c | 366 ++++++------ .../kernel/arch/arm/mach-mvebu/coherency_ll.S | 318 +++++----- .../kernel/arch/arm/mach-mvebu/mvebu-soc-id.c | 350 +++++------ .../kernel/arch/arm/mach-mvebu/pm-board.c | 288 ++++----- .../kernel/arch/arm/mach-nomadik/cpu-8815.c | 192 +++--- .../kernel/arch/arm/mach-omap1/i2c.c | 318 +++++----- .../kernel/arch/arm/mach-omap1/mux.h | 288 ++++----- .../kernel/arch/arm/mach-omap1/sram-init.c | 290 ++++----- .../kernel/arch/arm/mach-omap1/timer.c | 330 +++++------ .../kernel/arch/arm/mach-omap2/clock.c | 278 ++++----- .../arm/mach-omap2/clockdomains2420_data.c | 308 +++++----- .../arch/arm/mach-omap2/cm-regbits-54xx.h | 202 +++---- .../kernel/arch/arm/mach-omap2/cm33xx.h | 184 +++--- .../arm/mach-omap2/ctrl_module_wkup_44xx.h | 178 +++--- .../kernel/arch/arm/mach-omap2/omap-headsmp.S | 266 ++++----- .../arm/mach-omap2/omap_hwmod_common_data.h | 194 +++--- .../kernel/arch/arm/mach-omap2/opp4xxx_data.c | 190 +++--- .../kernel/arch/arm/mach-omap2/pm.h | 278 ++++----- .../arm/mach-omap2/powerdomains43xx_data.c | 266 ++++----- .../kernel/arch/arm/mach-omap2/prcm_mpu44xx.h | 188 +++--- .../arch/arm/mach-omap2/prm-regbits-44xx.h | 198 +++---- .../kernel/arch/arm/mach-omap2/prm44xx.h | 228 ++++---- .../kernel/arch/arm/mach-omap2/sdrc2xxx.c | 328 +++++------ .../kernel/arch/arm/mach-omap2/timer.c | 334 +++++------ .../kernel/arch/arm/mach-omap2/vc44xx_data.c | 230 ++++---- .../arm/mach-omap2/voltagedomains44xx_data.c | 254 ++++---- .../kernel/arch/arm/mach-omap2/vp.h | 246 ++++---- .../kernel/arch/arm/mach-pxa/Kconfig | 348 +++++------ .../kernel/arch/arm/mach-pxa/sleep.S | 344 +++++------ .../kernel/arch/arm/mach-pxa/smemc.h | 144 ++--- .../arm/mach-rpc/include/mach/uncompress.h | 362 ++++++------ .../kernel/arch/arm/mach-s3c/gpio-core.h | 278 ++++----- .../arch/arm/mach-s3c/gpio-samsung-s3c64xx.h | 188 +++--- .../kernel/arch/arm/mach-s3c/init.c | 302 +++++----- .../kernel/arch/arm/mach-s3c/map-s3c64xx.h | 244 ++++---- .../kernel/arch/arm/mach-s3c/pm.c | 392 ++++++------- .../arm/mach-s3c/regs-syscon-power-s3c64xx.h | 224 +++---- .../kernel/arch/arm/mach-s3c/sdhci.h | 274 ++++----- .../kernel/arch/arm/mach-sa1100/clock.c | 290 ++++----- .../arm/mach-sa1100/include/mach/assabet.h | 198 +++---- .../arm/mach-sa1100/include/mach/collie.h | 188 +++--- .../arch/arm/mach-sa1100/include/mach/h3xxx.h | 162 +++--- .../arch/arm/mach-shmobile/pm-rcar-gen2.c | 260 ++++----- .../kernel/arch/arm/mach-socfpga/ocram.c | 338 +++++------ .../kernel/arch/arm/mach-socfpga/platsmp.c | 260 ++++----- .../kernel/arch/arm/mach-spear/platsmp.c | 266 ++++----- .../kernel/arch/arm/mach-spear/spear300.c | 428 +++++++------- .../kernel/arch/arm/mach-tegra/iomap.h | 258 ++++---- .../kernel/arch/arm/mach-ux500/cpu-db8500.c | 266 ++++----- .../arch/arm/mach-versatile/integrator_ap.c | 392 ++++++------- .../arch/arm/mach-versatile/integrator_cp.c | 290 ++++----- .../kernel/arch/arm/mach-vt8500/vt8500.c | 328 +++++------ .../kernel/arch/arm/mach-zynq/platsmp.c | 326 +++++------ .../UFI003_MB_V02/kernel/arch/arm/mm/Makefile | 208 +++---- .../kernel/arch/arm/mm/cache-v4.S | 296 +++++----- .../kernel/arch/arm/mm/cache-xsc3l2.c | 416 ++++++------- .../kernel/arch/arm/mm/copypage-v4mc.c | 226 +++---- .../kernel/arch/arm/mm/copypage-v6.c | 276 ++++----- .../kernel/arch/arm/mm/copypage-xscale.c | 268 ++++----- .../kernel/arch/arm/mm/fsr-2level.c | 158 ++--- .../kernel/arch/arm/mm/fsr-3level.c | 138 ++--- .../UFI003_MB_V02/kernel/arch/arm/mm/idmap.c | 296 +++++----- .../UFI003_MB_V02/kernel/arch/arm/mm/mmap.c | 334 +++++------ .../kernel/arch/arm/mm/proc-arm740.S | 318 +++++----- .../kernel/arch/arm/mm/proc-arm7tdmi.S | 244 ++++---- .../kernel/arch/arm/mm/proc-v7-2level.S | 328 +++++------ .../kernel/arch/arm/mm/proc-v7-3level.S | 296 +++++----- .../kernel/arch/arm/nwfpe/ChangeLog | 182 +++--- .../kernel/arch/arm/nwfpe/double_cpdo.c | 310 +++++----- .../kernel/arch/arm/nwfpe/extended_cpdo.c | 284 ++++----- .../kernel/arch/arm/nwfpe/fpa11.h | 218 +++---- .../arch/arm/probes/kprobes/actions-common.c | 340 +++++------ .../arch/arm/probes/kprobes/checkers-thumb.c | 204 +++---- .../UFI003_MB_V02/kernel/arch/arm/vfp/vfphw.S | 304 +++++----- .../kernel/arch/arm/xen/hypercall.S | 242 ++++---- .../UFI003_MB_V02/kernel/arch/arm/xen/mm.c | 282 ++++----- .../allwinner/sun50i-a100-allwinner-perf1.dts | 360 ++++++------ .../allwinner/sun50i-a64-sopine-baseboard.dts | 412 ++++++------- .../dts/allwinner/sun50i-h313-tanix-tx1.dts | 366 ++++++------ .../allwinner/sun50i-h5-nanopi-neo-plus2.dts | 400 ++++++------- .../dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts | 404 ++++++------- .../dts/allwinner/sun50i-h5-orangepi-pc2.dts | 466 +++++++-------- .../allwinner/sun50i-h5-orangepi-prime.dts | 426 +++++++------- .../dts/allwinner/sun50i-h616-x96-mate.dts | 414 ++++++------- .../allwinner/sun50i-h618-orangepi-zero2w.dts | 362 ++++++------ .../sun50i-h618-transpeed-8k618-t.dts | 378 ++++++------ .../dts/altera/socfpga_stratix10_socdk.dts | 420 ++++++------- .../altera/socfpga_stratix10_socdk_nand.dts | 398 ++++++------- .../arm64/boot/dts/amd/amd-seattle-cpus.dtsi | 448 +++++++------- .../arch/arm64/boot/dts/amd/elba-16core.dtsi | 394 ++++++------- .../arm64/boot/dts/amlogic/amlogic-t7.dtsi | 416 ++++++------- .../arm64/boot/dts/amlogic/meson-a1-ad402.dts | 384 ++++++------ .../amlogic/meson-gxl-s905x-nexbox-a95x.dts | 448 +++++++------- .../dts/amlogic/meson-gxl-s905x-p212.dtsi | 426 +++++++------- .../dts/amlogic/meson-gxl-s905x-vero4k.dts | 408 ++++++------- .../dts/amlogic/meson-sm1-bananapi-m5.dts | 450 +++++++------- .../arch/arm64/boot/dts/apple/t600x-dieX.dtsi | 242 ++++---- .../arch/arm64/boot/dts/arm/corstone1000.dtsi | 322 +++++----- .../arch/arm64/boot/dts/arm/juno-scmi.dtsi | 446 +++++++------- .../boot/dts/arm/vexpress-v2f-1xv7-ca53x2.dts | 304 +++++----- .../bcmbca/bcm4906-tplink-archer-c2300-v1.dts | 382 ++++++------ .../boot/dts/broadcom/bcmbca/bcm4912.dtsi | 328 +++++------ .../boot/dts/broadcom/bcmbca/bcm63158.dtsi | 326 +++++------ .../boot/dts/broadcom/bcmbca/bcm6813.dtsi | 328 +++++------ .../boot/dts/broadcom/bcmbca/bcm6858.dtsi | 348 +++++------ .../dts/broadcom/northstar2/ns2-clock.dtsi | 210 +++---- .../boot/dts/broadcom/northstar2/ns2-svk.dts | 468 +++++++-------- .../boot/dts/broadcom/northstar2/ns2-xmc.dts | 382 ++++++------ .../dts/broadcom/stingray/stingray-fs4.dtsi | 236 ++++---- .../arm64/boot/dts/cavium/thunder2-99xx.dtsi | 288 ++++----- .../arm64/boot/dts/exynos/exynos5433-bus.dtsi | 388 ++++++------ .../boot/dts/exynos/google/gs101-oriole.dts | 352 +++++------ .../boot/dts/freescale/fsl-ls1043a-rdb.dts | 498 ++++++++-------- .../boot/dts/freescale/fsl-ls1088a-rdb.dts | 520 ++++++++--------- .../arm64/boot/dts/freescale/fsl-ls2080a.dtsi | 342 +++++------ .../arm64/boot/dts/freescale/fsl-ls2088a.dtsi | 342 +++++------ .../boot/dts/freescale/fsl-ls208xa-qds.dtsi | 450 +++++++------- .../boot/dts/freescale/fsl-lx2160a-rdb.dts | 528 ++++++++--------- .../dts/freescale/imx8-apalis-ixora-v1.1.dtsi | 438 +++++++------- .../boot/dts/freescale/imx8-ss-lvds1.dtsi | 228 ++++---- .../boot/dts/freescale/imx8-ss-mipi0.dtsi | 258 ++++---- .../boot/dts/freescale/imx8-ss-mipi1.dtsi | 276 ++++----- .../boot/dts/freescale/imx8dxl-ss-conn.dtsi | 328 +++++------ .../arm64/boot/dts/freescale/imx8mm-evk.dts | 256 ++++---- .../dts/freescale/imx8mn-bsh-smm-s2pro.dts | 340 +++++------ .../boot/dts/freescale/imx8mn-ddr4-evk.dts | 352 +++++------ .../freescale/imx8mp-icore-mx8mp-edimm2.2.dts | 350 +++++------ .../dts/freescale/imx8mp-msc-sm2s-ep1.dts | 296 +++++----- .../boot/dts/freescale/imx8mp-verdin-dev.dtsi | 538 ++++++++--------- .../dts/freescale/imx8mp-verdin-mallow.dtsi | 502 ++++++++-------- .../dts/freescale/imx8mp-verdin-yavia.dtsi | 538 ++++++++--------- .../dts/freescale/imx8mq-zii-ultra-rmb3.dts | 376 ++++++------ .../arch/arm64/boot/dts/freescale/s32g2.dtsi | 426 +++++++------- .../boot/dts/hisilicon/hi3798cv200-poplar.dts | 412 ++++++------- .../arm64/boot/dts/marvell/armada-3720-db.dts | 440 +++++++------- .../marvell/armada-3720-espressobin-ultra.dts | 394 ++++++------- .../dts/marvell/armada-3720-espressobin.dtsi | 432 +++++++------- .../dts/marvell/armada-3720-gl-mv1000.dts | 474 +++++++-------- .../arm64/boot/dts/marvell/cn9130-cf-base.dts | 356 ++++++------ .../arm64/boot/dts/marvell/cn9130-cf.dtsi | 394 ++++++------- .../arm64/boot/dts/marvell/cn9130-sr-som.dtsi | 320 +++++----- .../arm64/boot/dts/marvell/cn9131-db.dtsi | 408 ++++++------- .../arm64/boot/dts/mediatek/mt7986b-rfb.dts | 426 +++++++------- .../dts/mediatek/mt8186-corsola-steelix.dtsi | 398 ++++++------- .../arm64/boot/dts/mediatek/mt8186-evb.dts | 442 +++++++------- .../boot/dts/mediatek/pumpkin-common.dtsi | 506 ++++++++-------- .../arm64/boot/dts/nvidia/tegra234-p3701.dtsi | 452 +++++++------- .../boot/dts/qcom/ipq9574-rdp-common.dtsi | 352 +++++------ .../boot/dts/qcom/msm8916-motorola-osprey.dts | 422 +++++++------- .../arm64/boot/dts/qcom/msm8916-pm8916.dtsi | 314 +++++----- .../dts/qcom/msm8916-samsung-grandmax.dts | 360 ++++++------ .../boot/dts/qcom/msm8916-samsung-gt58.dts | 372 ++++++------ .../dts/qcom/msm8916-wingtech-wt86528.dts | 336 +++++------ .../arm64/boot/dts/qcom/msm8929-pm8916.dtsi | 324 +++++------ .../arm64/boot/dts/qcom/msm8939-pm8916.dtsi | 322 +++++----- .../msm8998-sony-xperia-yoshino-maple.dts | 460 +++++++-------- .../arch/arm64/boot/dts/qcom/pm6125.dtsi | 318 +++++----- .../arch/arm64/boot/dts/qcom/pm6150.dtsi | 352 +++++------ .../arch/arm64/boot/dts/qcom/pm8150b.dtsi | 360 ++++++------ .../arch/arm64/boot/dts/qcom/pm8550vs.dtsi | 380 ++++++------ .../arch/arm64/boot/dts/qcom/pm8950.dtsi | 372 ++++++------ .../arch/arm64/boot/dts/qcom/pmi632.dtsi | 418 ++++++------- .../dts/qcom/sc7180-trogdor-kingoftown.dts | 434 +++++++------- .../boot/dts/qcom/sc7180-trogdor-lazor.dtsi | 426 +++++++------- .../boot/dts/qcom/sc7180-trogdor-pazquel.dtsi | 434 +++++++------- .../arm64/boot/dts/qcom/sc7180-trogdor-r1.dts | 390 ++++++------- .../boot/dts/qcom/sc7280-chrome-common.dtsi | 360 ++++++------ .../qcom/sc7280-herobrine-audio-wcd9385.dtsi | 430 +++++++------- .../qcom/sdm845-sony-xperia-tama-akari.dts | 374 ++++++------ .../qcom/sdm845-sony-xperia-tama-apollo.dts | 378 ++++++------ .../arch/arm64/boot/dts/realtek/rtd129x.dtsi | 390 ++++++------- .../arch/arm64/boot/dts/realtek/rtd139x.dtsi | 386 ++++++------ .../r8a77970-eagle-function-expansion.dtso | 428 +++++++------- .../dts/renesas/r8a779a0-falcon-csi-dsi.dtsi | 540 ++++++++--------- .../boot/dts/renesas/r8a779f0-spider-cpu.dtsi | 480 +++++++-------- .../arm64/boot/dts/renesas/r8a779f4-s4sk.dts | 488 ++++++++-------- .../r8a779g0-white-hawk-ard-audio-da7212.dtso | 366 ++++++------ .../dts/renesas/r9a09g057h44-rzv2h-evk.dts | 512 ++++++++-------- .../dts/renesas/rzg2l-smarc-pinfunction.dtsi | 326 +++++------ .../arm64/boot/dts/renesas/rzg2l-smarc.dtsi | 410 ++++++------- .../arm64/boot/dts/renesas/rzg2lc-smarc.dtsi | 450 +++++++------- .../ulcb-kf-audio-graph-card-mix+split.dtsi | 344 +++++------ .../ulcb-kf-audio-graph-card2-mix+split.dtsi | 368 ++++++------ .../dts/rockchip/px30-firefly-jd4-core-mb.dts | 358 ++++++------ .../arm64/boot/dts/rockchip/rk3308-roc-cc.dts | 380 ++++++------ .../dts/rockchip/rk3326-odroid-go2-v11.dts | 316 +++++----- .../arm64/boot/dts/rockchip/rk3399-ficus.dts | 348 +++++------ .../dts/rockchip/rk3566-anbernic-rg353p.dts | 292 +++++----- .../dts/rockchip/rk3566-anbernic-rg353x.dtsi | 388 ++++++------ .../dts/rockchip/rk3566-soquartz-blade.dts | 396 ++++++------- .../boot/dts/rockchip/rk3566-soquartz-cm4.dts | 392 ++++++------- .../dts/rockchip/rk3588-coolpi-cm5-evb.dts | 432 +++++++------- .../arm64/boot/dts/rockchip/rk3588-opp.dtsi | 380 ++++++------ .../arch/arm64/boot/dts/sprd/sc9836.dtsi | 446 +++++++------- .../arm64/boot/dts/st/stm32mp257f-ev1.dts | 340 +++++------ .../boot/dts/ti/k3-am62-verdin-dahlia.dtsi | 446 +++++++------- .../arm64/boot/dts/ti/k3-am62-verdin-dev.dtsi | 492 ++++++++-------- .../boot/dts/ti/k3-am62-verdin-mallow.dtsi | 424 +++++++------- .../boot/dts/ti/k3-am62-verdin-yavia.dtsi | 434 +++++++------- .../arch/arm64/boot/dts/ti/k3-am62.dtsi | 248 ++++---- .../arch/arm64/boot/dts/ti/k3-am625.dtsi | 318 +++++----- .../arch/arm64/boot/dts/ti/k3-am64.dtsi | 204 +++---- .../ti/k3-am642-evm-icssg1-dualemac-mii.dtso | 202 +++---- .../arch/arm64/boot/dts/ti/k3-am65.dtsi | 216 +++---- .../dts/ti/k3-am6548-iot2050-advanced-sm.dts | 378 ++++++------ .../dts/ti/k3-j721e-sk-csi2-dual-imx219.dtso | 392 ++++++------- .../ti/k3-j784s4-evm-quad-port-eth-exp1.dtso | 294 +++++----- .../arm64/boot/dts/ti/k3-j784s4-main.dtsi | 256 ++++---- .../arch/arm64/boot/dts/ti/k3-j784s4.dtsi | 344 +++++------ .../arch/arm64/boot/dts/ti/k3-pinctrl.h | 160 ++--- .../dts/xilinx/zynqmp-zc1751-xm017-dc3.dts | 402 ++++++------- .../arch/arm64/crypto/aes-ce-ccm-core.S | 284 ++++----- .../kernel/arch/arm64/crypto/aes-ce-glue.c | 358 ++++++------ .../kernel/arch/arm64/crypto/aes-ce.S | 292 +++++----- .../arch/arm64/crypto/aes-cipher-core.S | 264 ++++----- .../arch/arm64/crypto/crct10dif-ce-glue.c | 288 ++++----- .../kernel/arch/arm64/crypto/sha1-ce-glue.c | 296 +++++----- .../kernel/arch/arm64/crypto/sha2-ce-core.S | 314 +++++----- .../kernel/arch/arm64/crypto/sha3-ce-glue.c | 332 +++++------ .../kernel/arch/arm64/crypto/sha512-ce-glue.c | 242 ++++---- .../kernel/arch/arm64/crypto/sm3-ce-core.S | 278 ++++----- .../kernel/arch/arm64/include/asm/arm_pmuv3.h | 362 ++++++------ .../arch/arm64/include/asm/asm-extable.h | 258 ++++---- .../kernel/arch/arm64/include/asm/cache.h | 246 ++++---- .../kernel/arch/arm64/include/asm/daifflags.h | 288 ++++----- .../arch/arm64/include/asm/hw_breakpoint.h | 328 +++++------ .../kernel/arch/arm64/include/asm/irqflags.h | 398 ++++++------- .../arch/arm64/include/asm/kernel-pgtable.h | 174 +++--- .../kernel/arch/arm64/include/asm/kexec.h | 270 ++++----- .../kernel/arch/arm64/include/asm/kgdb.h | 204 +++---- .../kernel/arch/arm64/include/asm/kvm_pkvm.h | 280 ++++----- .../arch/arm64/include/asm/kvm_ptrauth.h | 248 ++++---- .../kernel/arch/arm64/include/asm/mmu.h | 232 ++++---- .../kernel/arch/arm64/include/asm/pgalloc.h | 280 ++++----- .../kernel/arch/arm64/include/asm/smp.h | 276 ++++----- .../kernel/arch/arm64/include/asm/spectre.h | 244 ++++---- .../arm64/include/asm/stacktrace/common.h | 318 +++++----- .../arch/arm64/include/asm/thread_info.h | 254 ++++---- .../include/asm/vdso/compat_gettimeofday.h | 356 ++++++------ .../kernel/arch/arm64/include/asm/virt.h | 330 +++++------ .../arch/arm64/include/asm/vncr_mapping.h | 208 +++---- .../arch/arm64/include/uapi/asm/hwcap.h | 254 ++++---- .../kernel/arch/arm64/kernel/Makefile | 174 +++--- .../arch/arm64/kernel/acpi_parking_protocol.c | 264 ++++----- .../kernel/arch/arm64/kernel/io.c | 278 ++++----- .../kernel/arch/arm64/kernel/kexec_image.c | 276 ++++----- .../kernel/arch/arm64/kernel/paravirt.c | 352 +++++------ .../kernel/arch/arm64/kernel/sys32.c | 264 ++++----- .../kernel/arch/arm64/kvm/hyp/aarch32.c | 308 +++++----- .../arch/arm64/kvm/hyp/nvhe/stacktrace.c | 316 +++++----- .../kernel/arch/arm64/kvm/hyp/vhe/sysreg-sr.c | 246 ++++---- .../kernel/arch/arm64/kvm/vgic/vgic-irqfd.c | 312 +++++----- .../kernel/arch/arm64/lib/copy_template.S | 362 ++++++------ .../kernel/arch/arm64/lib/csum.c | 314 +++++----- .../UFI003_MB_V02/kernel/arch/arm64/lib/mte.S | 354 +++++------ .../kernel/arch/arm64/lib/strcmp.S | 380 ++++++------ .../kernel/arch/arm64/lib/strnlen.S | 324 +++++------ .../UFI003_MB_V02/kernel/arch/arm64/mm/mmap.c | 236 ++++---- .../kernel/arch/arm64/xen/hypercall.S | 260 ++++----- .../kernel/arch/csky/abiv2/mcount.S | 422 +++++++------- .../kernel/arch/csky/include/asm/atomic.h | 404 ++++++------- .../kernel/arch/csky/include/asm/cmpxchg.h | 330 +++++------ .../kernel/arch/csky/kernel/asm-offsets.c | 166 +++--- .../kernel/arch/csky/kernel/stacktrace.c | 312 +++++----- .../UFI003_MB_V02/kernel/arch/csky/mm/tcm.c | 338 +++++------ .../UFI003_MB_V02/kernel/arch/csky/mm/tlb.c | 396 ++++++------- .../kernel/arch/hexagon/include/asm/page.h | 284 ++++----- .../arch/hexagon/include/asm/spinlock.h | 316 +++++----- .../arch/hexagon/include/asm/thread_info.h | 222 +++---- .../kernel/arch/hexagon/kernel/module.c | 298 +++++----- .../kernel/arch/hexagon/mm/vm_fault.c | 354 +++++------ .../arch/loongarch/include/asm/alternative.h | 222 +++---- .../kernel/arch/loongarch/include/asm/asm.h | 402 ++++++------- .../arch/loongarch/include/asm/barrier.h | 278 ++++----- .../arch/loongarch/include/asm/cpu-info.h | 248 ++++---- .../loongarch/include/asm/hw_breakpoint.h | 294 +++++----- .../kernel/arch/loongarch/include/asm/irq.h | 264 ++++----- .../kernel/arch/loongarch/include/asm/kasan.h | 188 +++--- .../arch/loongarch/include/asm/kvm_mmu.h | 278 ++++----- .../arch/loongarch/include/asm/kvm_para.h | 368 ++++++------ .../arch/loongarch/include/asm/kvm_vcpu.h | 276 ++++----- .../kernel/arch/loongarch/include/asm/local.h | 302 +++++----- .../arch/loongarch/include/asm/mmu_context.h | 342 +++++------ .../kernel/arch/loongarch/include/asm/page.h | 246 ++++---- .../arch/loongarch/include/asm/pgtable-bits.h | 250 ++++---- .../arch/loongarch/include/asm/thread_info.h | 224 +++---- .../kernel/arch/loongarch/include/asm/tlb.h | 332 +++++------ .../arch/loongarch/include/uapi/asm/kvm.h | 270 ++++----- .../kernel/arch/loongarch/kernel/efi-header.S | 198 +++---- .../kernel/arch/loongarch/kernel/efi.c | 302 +++++----- .../kernel/arch/loongarch/kernel/head.S | 302 +++++----- .../kernel/arch/loongarch/kernel/mcount_dyn.S | 332 +++++------ .../kernel/arch/loongarch/kernel/proc.c | 268 ++++----- .../kernel/arch/loongarch/kvm/interrupt.c | 366 ++++++------ .../kernel/arch/loongarch/kvm/trace.h | 348 +++++------ .../kernel/arch/loongarch/kvm/vm.c | 352 +++++------ .../kernel/arch/loongarch/lib/clear_user.S | 418 ++++++------- .../kernel/arch/loongarch/lib/csum.c | 282 ++++----- .../kernel/arch/loongarch/mm/mmap.c | 300 +++++----- .../kernel/arch/m68k/68000/ints.c | 378 ++++++------ .../kernel/arch/m68k/68000/timers.c | 274 ++++----- .../UFI003_MB_V02/kernel/arch/m68k/Makefile | 268 ++++----- .../kernel/arch/m68k/amiga/amiints.c | 348 +++++------ .../kernel/arch/m68k/bvme6000/rtc.c | 350 +++++------ .../kernel/arch/m68k/coldfire/amcore.c | 312 +++++----- .../kernel/arch/m68k/coldfire/gpio.c | 346 +++++------ .../kernel/arch/m68k/coldfire/intc.c | 300 +++++----- .../kernel/arch/m68k/coldfire/m5249.c | 294 +++++----- .../kernel/arch/m68k/coldfire/m5272.c | 258 ++++---- .../kernel/arch/m68k/coldfire/m527x.c | 292 +++++----- .../kernel/arch/m68k/coldfire/m528x.c | 286 ++++----- .../kernel/arch/m68k/coldfire/nettel.c | 308 +++++----- .../kernel/arch/m68k/coldfire/pit.c | 324 +++++------ .../kernel/arch/m68k/coldfire/sltimers.c | 298 +++++----- .../kernel/arch/m68k/emu/nfblock.c | 396 ++++++------- .../kernel/arch/m68k/emu/nfcon.c | 354 +++++------ .../kernel/arch/m68k/fpsp040/binstr.S | 278 ++++----- .../kernel/arch/m68k/fpsp040/sgetem.S | 280 ++++----- .../kernel/arch/m68k/fpsp040/smovecr.S | 322 +++++----- .../kernel/arch/m68k/fpsp040/ssinh.S | 268 ++++----- .../kernel/arch/m68k/fpsp040/stanh.S | 368 ++++++------ .../kernel/arch/m68k/ifpsp060/MISC | 402 ++++++------- .../kernel/arch/m68k/include/asm/amigaints.h | 226 +++---- .../kernel/arch/m68k/include/asm/bvme6000hw.h | 302 +++++----- .../kernel/arch/m68k/include/asm/checksum.h | 300 +++++----- .../kernel/arch/m68k/include/asm/contregs.h | 108 ++-- .../kernel/arch/m68k/include/asm/delay.h | 250 ++++---- .../kernel/arch/m68k/include/asm/elf.h | 252 ++++---- .../kernel/arch/m68k/include/asm/io_no.h | 274 ++++----- .../kernel/arch/m68k/include/asm/m52xxacr.h | 190 +++--- .../kernel/arch/m68k/include/asm/m53xxacr.h | 204 +++---- .../kernel/arch/m68k/include/asm/m54xxgpt.h | 182 +++--- .../kernel/arch/m68k/include/asm/m54xxsim.h | 244 ++++---- .../kernel/arch/m68k/include/asm/mcf8390.h | 264 ++++----- .../kernel/arch/m68k/include/asm/mcfmmu.h | 228 ++++---- .../kernel/arch/m68k/include/asm/page_mm.h | 298 +++++----- .../kernel/arch/m68k/include/asm/processor.h | 330 +++++------ .../kernel/arch/m68k/include/asm/user.h | 166 +++--- .../kernel/arch/m68k/kernel/asm-offsets.c | 216 +++---- .../kernel/arch/m68k/kernel/ints.c | 342 +++++------ .../kernel/arch/m68k/kernel/module.c | 258 ++++---- .../kernel/arch/m68k/kernel/time.c | 314 +++++----- .../kernel/arch/m68k/kernel/vectors.c | 294 +++++----- .../kernel/arch/m68k/lib/divsi3.S | 246 ++++---- .../UFI003_MB_V02/kernel/arch/m68k/mac/psc.c | 336 +++++------ .../kernel/arch/m68k/math-emu/fp_emu.h | 292 +++++----- .../kernel/arch/m68k/math-emu/fp_log.c | 414 ++++++------- .../kernel/arch/m68k/mm/sun3kmap.c | 318 +++++----- .../kernel/arch/m68k/mm/sun3mmu.c | 234 ++++---- .../kernel/arch/m68k/mvme16x/rtc.c | 330 +++++------ .../kernel/arch/m68k/sun3/idprom.c | 268 ++++----- .../kernel/arch/m68k/sun3/prom/console.c | 340 +++++------ .../kernel/arch/m68k/sun3x/prom.c | 328 +++++------ .../kernel/arch/m68k/virt/ints.c | 308 +++++----- .../kernel/arch/microblaze/Makefile | 186 +++--- .../arch/microblaze/include/asm/cacheflush.h | 206 +++---- .../kernel/arch/microblaze/include/asm/mmu.h | 238 ++++---- .../microblaze/include/asm/mmu_context_mm.h | 280 ++++----- .../kernel/arch/microblaze/include/asm/page.h | 292 +++++----- .../arch/microblaze/include/asm/thread_info.h | 286 ++++----- .../arch/microblaze/include/uapi/asm/elf.h | 246 ++++---- .../kernel/arch/microblaze/kernel/cpu/mb.c | 316 +++++----- .../arch/microblaze/kernel/exceptions.c | 288 ++++----- .../kernel/arch/microblaze/kernel/kgdb.c | 304 +++++----- .../kernel/arch/microblaze/kernel/mcount.S | 330 +++++------ .../kernel/arch/microblaze/lib/uaccess_old.S | 352 +++++------ .../kernel/arch/mips/alchemy/board-xxs1500.c | 250 ++++---- .../kernel/arch/mips/alchemy/common/prom.c | 292 +++++----- .../kernel/arch/mips/alchemy/common/setup.c | 210 +++---- .../kernel/arch/mips/alchemy/common/time.c | 310 +++++----- .../kernel/arch/mips/alchemy/devboards/bcsr.c | 294 +++++----- .../kernel/arch/mips/ath79/common.c | 298 +++++----- .../kernel/arch/mips/bcm63xx/dev-flash.c | 262 ++++----- .../kernel/arch/mips/bcm63xx/setup.c | 356 ++++++------ .../arch/mips/boot/dts/brcm/bcm6358.dtsi | 420 ++++++------- .../arch/mips/boot/dts/ingenic/cu1000-neo.dts | 442 +++++++------- .../arch/mips/boot/dts/ingenic/cu1830-neo.dts | 448 +++++++------- .../arch/mips/boot/dts/mobileye/eyeq5.dtsi | 288 ++++----- .../ralink/gardena_smart_gateway_mt7688.dts | 410 ++++++------- .../executive/cvmx-boot-vector.c | 334 +++++------ .../executive/cvmx-helper-jtag.c | 288 ++++----- .../executive/cvmx-interrupt-rsl.c | 280 ++++----- .../arch/mips/cavium-octeon/flash_setup.c | 288 ++++----- .../kernel/arch/mips/cavium-octeon/oct_ilm.c | 342 +++++------ .../arch/mips/configs/cavium_octeon_defconfig | 332 +++++------ .../kernel/arch/mips/configs/gcw0_defconfig | 302 +++++----- .../kernel/arch/mips/configs/ip30_defconfig | 366 ++++++------ .../kernel/arch/mips/configs/ip32_defconfig | 370 ++++++------ .../mips/configs/malta_qemu_32r6_defconfig | 364 ++++++------ .../arch/mips/configs/maltaup_defconfig | 364 ++++++------ .../arch/mips/configs/qi_lb60_defconfig | 352 +++++------ .../kernel/arch/mips/configs/rb532_defconfig | 320 +++++----- .../kernel/arch/mips/configs/rt305x_defconfig | 290 ++++----- .../kernel/arch/mips/configs/xway_defconfig | 302 +++++----- .../kernel/arch/mips/crypto/chacha-glue.c | 304 +++++----- .../kernel/arch/mips/dec/kn02xa-berr.c | 270 ++++----- .../kernel/arch/mips/dec/prom/init.c | 274 ++++----- .../kernel/arch/mips/fw/arc/memory.c | 384 ++++++------ .../kernel/arch/mips/fw/cfe/cfe_api_int.h | 270 ++++----- .../kernel/arch/mips/fw/sni/sniprom.c | 298 +++++----- .../kernel/arch/mips/generic/Kconfig | 254 ++++---- .../kernel/arch/mips/generic/init.c | 408 ++++++------- .../kernel/arch/mips/include/asm/addrspace.h | 298 +++++----- .../kernel/arch/mips/include/asm/barrier.h | 284 ++++----- .../kernel/arch/mips/include/asm/cacheops.h | 232 ++++---- .../kernel/arch/mips/include/asm/cdmm.h | 218 +++---- .../kernel/arch/mips/include/asm/compat.h | 316 +++++----- .../kernel/arch/mips/include/asm/cpu-type.h | 406 ++++++------- .../kernel/arch/mips/include/asm/dec/kn01.h | 178 +++--- .../kernel/arch/mips/include/asm/dsemul.h | 230 ++++---- .../arch/mips/include/asm/fw/arc/hinv.h | 352 +++++------ .../kernel/arch/mips/include/asm/irqflags.h | 370 ++++++------ .../kernel/arch/mips/include/asm/maar.h | 254 ++++---- .../arch/mips/include/asm/mach-ath79/ath79.h | 356 ++++++------ .../include/asm/mach-bcm47xx/bcm47xx_board.h | 294 +++++----- .../include/asm/mach-bcm63xx/bcm63xx_io.h | 208 +++---- .../mach-cavium-octeon/kernel-entry-init.h | 336 +++++------ .../asm/mach-loongson2ef/cs5536/cs5536_pci.h | 306 +++++----- .../mips/include/asm/mach-loongson32/irq.h | 214 +++---- .../include/asm/mach-loongson32/regs-mux.h | 248 ++++---- .../asm/mach-malta/kernel-entry-init.h | 290 ++++----- .../arch/mips/include/asm/mc146818-time.h | 238 ++++---- .../mips/include/asm/octeon/cvmx-rnm-defs.h | 342 +++++------ .../mips/include/asm/octeon/cvmx-scratch.h | 278 ++++----- .../mips/include/asm/octeon/cvmx-sli-defs.h | 258 ++++---- .../mips/include/asm/octeon/cvmx-srxx-defs.h | 280 ++++----- .../mips/include/asm/octeon/cvmx-sysinfo.h | 250 ++++---- .../kernel/arch/mips/include/asm/pci.h | 284 ++++----- .../kernel/arch/mips/include/asm/pm.h | 310 +++++----- .../kernel/arch/mips/include/asm/sgi/ip22.h | 166 +++--- .../arch/mips/include/asm/sibyte/sb1250_l2c.h | 236 ++++---- .../kernel/arch/mips/include/asm/smp.h | 278 ++++----- .../kernel/arch/mips/include/asm/sn/launch.h | 212 +++---- .../kernel/arch/mips/include/asm/sn/nmi.h | 250 ++++---- .../kernel/arch/mips/include/asm/switch_to.h | 284 ++++----- .../kernel/arch/mips/include/asm/syscall.h | 320 +++++----- .../arch/mips/include/asm/txx9/rbtx4927.h | 184 +++--- .../arch/mips/include/uapi/asm/signal.h | 216 +++---- .../UFI003_MB_V02/kernel/arch/mips/jazz/irq.c | 298 +++++----- .../kernel/arch/mips/kernel/Makefile | 228 ++++---- .../kernel/arch/mips/kernel/cevt-bcm1480.c | 276 ++++----- .../kernel/arch/mips/kernel/cevt-gt641xx.c | 292 +++++----- .../kernel/arch/mips/kernel/cevt-sb1250.c | 276 ++++----- .../kernel/arch/mips/kernel/cpu-r3k-probe.c | 302 +++++----- .../kernel/arch/mips/kernel/entry.S | 370 ++++++------ .../kernel/arch/mips/kernel/head.S | 308 +++++----- .../kernel/arch/mips/kernel/irq-msc01.c | 312 +++++----- .../kernel/arch/mips/kernel/linux32.c | 268 ++++----- .../kernel/arch/mips/kernel/mcount.S | 440 +++++++------- .../kernel/arch/mips/kernel/mips-mt.c | 328 +++++------ .../kernel/arch/mips/kernel/relocate_kernel.S | 366 ++++++------ .../kernel/arch/mips/kernel/signal_n32.c | 292 +++++----- .../kernel/arch/mips/kernel/time.c | 334 +++++------ .../UFI003_MB_V02/kernel/arch/mips/kvm/msa.S | 322 +++++----- .../kernel/arch/mips/lantiq/clk.c | 402 ++++++------- .../kernel/arch/mips/lib/bitops.c | 324 +++++------ .../loongson2ef/common/cs5536/cs5536_acc.c | 272 ++++----- .../loongson2ef/common/cs5536/cs5536_ehci.c | 312 +++++----- .../loongson2ef/common/cs5536/cs5536_ohci.c | 290 ++++----- .../arch/mips/loongson2ef/lemote-2f/reset.c | 310 +++++----- .../kernel/arch/mips/loongson64/reset.c | 358 ++++++------ .../kernel/arch/mips/math-emu/dp_add.c | 330 +++++------ .../kernel/arch/mips/math-emu/dp_div.c | 286 ++++----- .../kernel/arch/mips/math-emu/dp_mul.c | 318 +++++----- .../kernel/arch/mips/math-emu/dp_sqrt.c | 304 +++++----- .../kernel/arch/mips/math-emu/dp_sub.c | 344 +++++------ .../kernel/arch/mips/math-emu/ieee754dp.c | 394 ++++++------- .../kernel/arch/mips/math-emu/ieee754int.h | 298 +++++----- .../kernel/arch/mips/math-emu/ieee754sp.c | 392 ++++++------- .../kernel/arch/mips/math-emu/sp_add.c | 328 +++++------ .../kernel/arch/mips/math-emu/sp_div.c | 284 ++++----- .../kernel/arch/mips/math-emu/sp_mul.c | 308 +++++----- .../kernel/arch/mips/math-emu/sp_sub.c | 336 +++++------ .../kernel/arch/mips/mm/cex-sb1.S | 314 +++++----- .../kernel/arch/mips/mm/dma-noncoherent.c | 288 ++++----- .../UFI003_MB_V02/kernel/arch/mips/mm/mmap.c | 258 ++++---- .../kernel/arch/mips/mm/sc-ip22.c | 380 ++++++------ .../UFI003_MB_V02/kernel/arch/mips/n64/init.c | 328 +++++------ .../kernel/arch/mips/pci/ops-bonito64.c | 296 +++++----- .../kernel/arch/mips/pci/ops-gt64xxx_pci0.c | 280 ++++----- .../kernel/arch/mips/pci/ops-msc.c | 268 ++++----- .../kernel/arch/mips/pci/ops-sni.c | 328 +++++------ .../kernel/arch/mips/pci/pci-ip32.c | 294 +++++----- .../kernel/arch/mips/pci/pci-tx4938.c | 284 ++++----- .../arch/mips/pic32/pic32mzda/early_pin.h | 466 +++++++-------- .../kernel/arch/mips/ralink/cevt-rt3352.c | 306 +++++----- .../kernel/arch/mips/ralink/timer.c | 310 +++++----- .../kernel/arch/mips/sgi-ip22/ip22-berr.c | 232 ++++---- .../kernel/arch/mips/sgi-ip22/ip22-eisa.c | 278 ++++----- .../kernel/arch/mips/sgi-ip22/ip22-nvram.c | 244 ++++---- .../kernel/arch/mips/sgi-ip22/ip22-time.c | 262 ++++----- .../kernel/arch/mips/sgi-ip27/ip27-init.c | 294 +++++----- .../kernel/arch/mips/sgi-ip27/ip27-klnuma.c | 258 ++++---- .../kernel/arch/mips/sgi-ip27/ip27-smp.c | 382 ++++++------ .../kernel/arch/mips/sgi-ip27/ip27-timer.c | 320 +++++----- .../kernel/arch/mips/sgi-ip30/ip30-setup.c | 278 ++++----- .../kernel/arch/mips/sgi-ip30/ip30-smp.c | 298 +++++----- .../kernel/arch/mips/sgi-ip32/ip32-reset.c | 310 +++++----- .../kernel/arch/mips/sibyte/sb1250/smp.c | 336 +++++------ .../kernel/arch/mips/sibyte/swarm/platform.c | 280 ++++----- .../kernel/arch/mips/sibyte/swarm/setup.c | 338 +++++------ .../UFI003_MB_V02/kernel/arch/mips/sni/time.c | 334 +++++------ .../kernel/arch/nios2/boot/compressed/misc.c | 348 +++++------ .../arch/nios2/boot/dts/3c120_devboard.dts | 306 +++++----- .../kernel/arch/nios2/kernel/head.S | 350 +++++------ .../kernel/arch/nios2/kernel/ptrace.c | 290 ++++----- .../UFI003_MB_V02/kernel/arch/nios2/mm/init.c | 340 +++++------ .../kernel/arch/openrisc/include/asm/atomic.h | 266 ++++----- .../arch/openrisc/include/asm/cmpxchg.h | 342 +++++------ .../arch/openrisc/include/asm/thread_info.h | 232 ++++---- .../arch/openrisc/include/uapi/asm/elf.h | 250 ++++---- .../kernel/arch/parisc/include/asm/cmpxchg.h | 244 ++++---- .../kernel/arch/parisc/include/asm/compat.h | 282 ++++----- .../arch/parisc/include/asm/eisa_eeprom.h | 296 +++++----- .../kernel/arch/parisc/include/asm/hardware.h | 258 ++++---- .../kernel/arch/parisc/include/asm/spinlock.h | 322 +++++----- .../kernel/arch/parisc/include/asm/superio.h | 172 +++--- .../arch/parisc/include/uapi/asm/ioctls.h | 202 +++---- .../arch/parisc/include/uapi/asm/mman.h | 172 +++--- .../arch/parisc/include/uapi/asm/socket.h | 336 +++++------ .../arch/parisc/include/uapi/asm/termbits.h | 298 +++++----- .../kernel/arch/parisc/kernel/alternative.c | 244 ++++---- .../kernel/arch/parisc/kernel/kgdb.c | 420 ++++++------- .../kernel/arch/parisc/kernel/parisc_ksyms.c | 262 ++++----- .../arch/parisc/kernel/vdso32/sigtramp.S | 390 ++++++------- .../arch/parisc/kernel/vdso64/sigtramp.S | 332 +++++------ .../kernel/arch/parisc/kernel/vmlinux.lds.S | 372 ++++++------ .../kernel/arch/parisc/math-emu/sfcmp.c | 284 ++++----- .../kernel/arch/parisc/math-emu/sfsqrt.c | 348 +++++------ .../kernel/arch/parisc/mm/hugetlbpage.c | 364 ++++++------ .../kernel/arch/powerpc/boot/decompress.c | 286 ++++----- .../powerpc/boot/dts/adder875-redboot.dts | 358 ++++++------ .../arch/powerpc/boot/dts/adder875-uboot.dts | 356 ++++++------ .../kernel/arch/powerpc/boot/dts/amigaone.dts | 338 +++++------ .../kernel/arch/powerpc/boot/dts/ep8248e.dts | 398 ++++++------- .../powerpc/boot/dts/fsl/b4420si-post.dtsi | 194 +++--- .../arch/powerpc/boot/dts/fsl/b4860qds.dts | 234 ++++---- .../arch/powerpc/boot/dts/fsl/gef_ppc9a.dts | 432 +++++++------- .../arch/powerpc/boot/dts/fsl/gef_sbc610.dts | 428 +++++++------- .../arch/powerpc/boot/dts/fsl/kmcoge4.dts | 432 +++++++------- .../arch/powerpc/boot/dts/fsl/oca4080.dts | 290 ++++----- .../powerpc/boot/dts/fsl/p1020mbg-pc.dtsi | 302 +++++----- .../powerpc/boot/dts/fsl/p1020utm-pc.dtsi | 280 ++++----- .../powerpc/boot/dts/fsl/p1021rdb-pc_36b.dts | 192 +++--- .../arch/powerpc/boot/dts/fsl/p1022ds_32b.dts | 206 +++---- .../arch/powerpc/boot/dts/fsl/p1022ds_36b.dts | 206 +++---- .../powerpc/boot/dts/fsl/p1025rdb_32b.dts | 266 ++++----- .../powerpc/boot/dts/fsl/p2041si-pre.dtsi | 260 ++++----- .../powerpc/boot/dts/fsl/p3041si-pre.dtsi | 262 ++++----- .../powerpc/boot/dts/fsl/p5020si-pre.dtsi | 234 ++++---- .../powerpc/boot/dts/fsl/p5040si-pre.dtsi | 286 ++++----- .../powerpc/boot/dts/fsl/qoriq-fman-0.dtsi | 208 +++---- .../powerpc/boot/dts/fsl/qoriq-fman-1.dtsi | 208 +++---- .../powerpc/boot/dts/fsl/qoriq-fman3-0.dtsi | 218 +++---- .../powerpc/boot/dts/fsl/qoriq-fman3-1.dtsi | 218 +++---- .../powerpc/boot/dts/fsl/qoriq-mpic4.3.dtsi | 298 +++++----- .../boot/dts/fsl/qoriq-qman1-portals.dtsi | 202 +++---- .../powerpc/boot/dts/fsl/qoriq-sec4.2-0.dtsi | 220 +++---- .../powerpc/boot/dts/fsl/qoriq-sec5.0-0.dtsi | 220 +++---- .../powerpc/boot/dts/fsl/qoriq-sec5.2-0.dtsi | 238 ++++---- .../powerpc/boot/dts/fsl/qoriq-sec5.3-0.dtsi | 238 ++++---- .../arch/powerpc/boot/dts/fsl/t1040rdb.dts | 376 ++++++------ .../arch/powerpc/boot/dts/fsl/t2080rdb.dts | 244 ++++---- .../arch/powerpc/boot/dts/iss4xx-mpic.dts | 310 +++++----- .../arch/powerpc/boot/dts/kuroboxHD.dts | 294 +++++----- .../arch/powerpc/boot/dts/kuroboxHG.dts | 294 +++++----- .../arch/powerpc/boot/dts/microwatt.dts | 348 +++++------ .../arch/powerpc/boot/dts/mpc5121ads.dts | 348 +++++------ .../arch/powerpc/boot/dts/mpc866ads.dts | 372 ++++++------ .../kernel/arch/powerpc/boot/dts/mvme5100.dts | 370 ++++++------ .../kernel/arch/powerpc/boot/dts/pcm032.dts | 366 ++++++------ .../kernel/arch/powerpc/boot/dts/pdm360ng.dts | 390 ++++++------- .../kernel/arch/powerpc/boot/dts/tqm8xx.dts | 384 ++++++------ .../kernel/arch/powerpc/boot/elf.h | 316 +++++----- .../kernel/arch/powerpc/boot/mktree.c | 302 +++++----- .../kernel/arch/powerpc/boot/ppcboot.h | 190 +++--- .../kernel/arch/powerpc/boot/serial.c | 306 +++++----- .../kernel/arch/powerpc/boot/simple_alloc.c | 302 +++++----- .../kernel/arch/powerpc/boot/string.S | 530 ++++++++--------- .../arch/powerpc/boot/treeboot-akebono.c | 318 +++++----- .../powerpc/configs/44x/akebono_defconfig | 266 ++++----- .../arch/powerpc/configs/pasemi_defconfig | 344 +++++------ .../kernel/arch/powerpc/configs/ps3_defconfig | 326 +++++------ .../kernel/arch/powerpc/crypto/aes_cbc.c | 266 ++++----- .../kernel/arch/powerpc/crypto/aes_ctr.c | 298 +++++----- .../kernel/arch/powerpc/crypto/aes_xts.c | 324 +++++------ .../arch/powerpc/crypto/crc32c-vpmsum_glue.c | 346 +++++------ .../kernel/arch/powerpc/crypto/md5-glue.c | 316 +++++----- .../arch/powerpc/crypto/sha1-powerpc-asm.S | 376 ++++++------ .../kernel/arch/powerpc/include/asm/barrier.h | 238 ++++---- .../arch/powerpc/include/asm/book3s/32/kup.h | 350 +++++------ .../include/asm/book3s/64/tlbflush-radix.h | 198 +++---- .../kernel/arch/powerpc/include/asm/bug.h | 268 ++++----- .../arch/powerpc/include/asm/cacheflush.h | 272 ++++----- .../arch/powerpc/include/asm/cell-pmu.h | 188 +++--- .../kernel/arch/powerpc/include/asm/cpuidle.h | 210 +++---- .../kernel/arch/powerpc/include/asm/dbdma.h | 218 +++---- .../kernel/arch/powerpc/include/asm/dbell.h | 322 +++++----- .../arch/powerpc/include/asm/dcr-native.h | 288 ++++----- .../kernel/arch/powerpc/include/asm/delay.h | 152 ++--- .../arch/powerpc/include/asm/exception-64s.h | 356 ++++++------ .../kernel/arch/powerpc/include/asm/fixmap.h | 230 ++++---- .../kernel/arch/powerpc/include/asm/ftrace.h | 284 ++++----- .../arch/powerpc/include/asm/hw_breakpoint.h | 256 ++++---- .../kernel/arch/powerpc/include/asm/imc-pmu.h | 344 +++++------ .../kernel/arch/powerpc/include/asm/inst.h | 340 +++++------ .../kernel/arch/powerpc/include/asm/kup.h | 372 ++++++------ .../arch/powerpc/include/asm/kvm_book3s_asm.h | 320 +++++----- .../kernel/arch/powerpc/include/asm/local.h | 318 +++++----- .../kernel/arch/powerpc/include/asm/macio.h | 292 +++++----- .../kernel/arch/powerpc/include/asm/mpc5121.h | 240 ++++---- .../arch/powerpc/include/asm/mpic_msgr.h | 258 ++++---- .../powerpc/include/asm/nohash/32/pte-44x.h | 206 +++---- .../powerpc/include/asm/nohash/pte-e500.h | 280 ++++----- .../kernel/arch/powerpc/include/asm/pci.h | 238 ++++---- .../kernel/arch/powerpc/include/asm/pkeys.h | 344 +++++------ .../arch/powerpc/include/asm/reg_fsl_emb.h | 212 +++---- .../powerpc/include/asm/security_features.h | 226 +++---- .../arch/powerpc/include/asm/topology.h | 350 +++++------ .../arch/powerpc/include/asm/tsi108_irq.h | 220 +++---- .../powerpc/include/asm/vdso/gettimeofday.h | 310 +++++----- .../arch/powerpc/include/asm/vdso_datapage.h | 268 ++++----- .../arch/powerpc/include/uapi/asm/bootx.h | 266 ++++----- .../powerpc/include/uapi/asm/epapr_hcalls.h | 198 +++---- .../arch/powerpc/include/uapi/asm/ioctls.h | 246 ++++---- .../powerpc/include/uapi/asm/sigcontext.h | 184 +++--- .../arch/powerpc/include/uapi/asm/termbits.h | 314 +++++----- .../arch/powerpc/kernel/cpu_setup_ppc970.S | 410 ++++++------- .../kernel/arch/powerpc/kernel/cputable.c | 364 ++++++------ .../kernel/arch/powerpc/kernel/crash_dump.c | 268 ++++----- .../kernel/arch/powerpc/kernel/fpu.S | 308 +++++----- .../kernel/hw_breakpoint_constraints.c | 316 +++++----- .../arch/powerpc/kernel/io-workarounds.c | 394 ++++++------- .../kernel/arch/powerpc/kernel/io.c | 412 ++++++------- .../arch/powerpc/kernel/ptrace/ptrace-vsx.c | 296 +++++----- .../kernel/arch/powerpc/kernel/rtas_entry.S | 352 +++++------ .../kernel/arch/powerpc/kernel/swsusp_85xx.S | 404 ++++++------- .../kernel/arch/powerpc/kernel/sys_ppc32.c | 270 ++++----- .../kernel/arch/powerpc/kernel/syscalls.c | 254 ++++---- .../kernel/arch/powerpc/kernel/udbg.c | 354 +++++------ .../kernel/arch/powerpc/kexec/elf_64.c | 328 +++++------ .../kernel/arch/powerpc/kexec/file_load.c | 218 +++---- .../kernel/arch/powerpc/kvm/book3s_32_sr.S | 296 +++++----- .../arch/powerpc/kvm/book3s_hv_interrupts.S | 316 +++++----- .../arch/powerpc/kvm/book3s_hv_tm_builtin.c | 238 ++++---- .../arch/powerpc/kvm/book3s_rmhandlers.S | 326 +++++------ .../kernel/arch/powerpc/kvm/book3s_xics.h | 306 +++++----- .../kernel/arch/powerpc/kvm/booke.h | 230 ++++---- .../kernel/arch/powerpc/lib/copy_mc_64.S | 484 +++++++-------- .../kernel/arch/powerpc/lib/ldstfp.S | 474 +++++++-------- .../kernel/arch/powerpc/lib/memcpy_64.S | 460 +++++++-------- .../lib/test_emulate_step_exec_instr.S | 300 +++++----- .../kernel/arch/powerpc/math-emu/udivmodti4.c | 384 ++++++------ .../arch/powerpc/mm/book3s32/mmu_context.c | 268 ++++----- .../kernel/arch/powerpc/mm/book3s64/hash_4k.c | 258 ++++---- .../kernel/arch/powerpc/mm/copro_fault.c | 294 +++++----- .../kernel/arch/powerpc/mm/init_32.c | 268 ++++----- .../arch/powerpc/mm/kasan/init_book3e_64.c | 266 ++++----- .../arch/powerpc/mm/nohash/book3e_pgtable.c | 264 ++++----- .../arch/powerpc/mm/nohash/e500_hugetlbpage.c | 386 ++++++------ .../kernel/arch/powerpc/mm/pageattr.c | 254 ++++---- .../kernel/arch/powerpc/mm/pgtable-frag.c | 290 ++++----- .../kernel/arch/powerpc/mm/pgtable_32.c | 374 ++++++------ .../kernel/arch/powerpc/mm/pgtable_64.c | 324 +++++------ .../kernel/arch/powerpc/perf/e500-pmu.c | 266 ++++----- .../kernel/arch/powerpc/perf/hv-24x7.h | 320 +++++----- .../arch/powerpc/perf/power8-events-list.h | 186 +++--- .../arch/powerpc/perf/power9-events-list.h | 234 ++++---- .../arch/powerpc/platforms/44x/iss4xx.c | 300 +++++----- .../powerpc/platforms/512x/mpc5121_ads_cpld.c | 400 ++++++------- .../arch/powerpc/platforms/83xx/km83xx.c | 376 ++++++------ .../arch/powerpc/platforms/83xx/usb_831x.c | 256 ++++---- .../powerpc/platforms/85xx/corenet_generic.c | 406 ++++++------- .../arch/powerpc/platforms/85xx/p1022_rdk.c | 286 ++++----- .../arch/powerpc/platforms/85xx/sgy_cts1000.c | 308 +++++----- .../powerpc/platforms/85xx/t1042rdb_diu.c | 306 +++++----- .../arch/powerpc/platforms/86xx/gef_ppc9a.c | 384 ++++++------ .../arch/powerpc/platforms/86xx/gef_sbc310.c | 358 ++++++------ .../arch/powerpc/platforms/86xx/gef_sbc610.c | 338 +++++------ .../arch/powerpc/platforms/8xx/cpm1-ic.c | 376 ++++++------ .../arch/powerpc/platforms/8xx/ep88xc.c | 340 +++++------ .../powerpc/platforms/8xx/mpc86xads_setup.c | 290 ++++----- .../kernel/arch/powerpc/platforms/8xx/pic.c | 310 +++++----- .../arch/powerpc/platforms/8xx/tqm8xx_setup.c | 296 +++++----- .../arch/powerpc/platforms/amigaone/setup.c | 336 +++++------ .../platforms/cell/cpufreq_spudemand.c | 268 ++++----- .../kernel/arch/powerpc/platforms/cell/smp.c | 324 +++++------ .../arch/powerpc/platforms/cell/spider-pci.c | 340 +++++------ .../powerpc/platforms/cell/spu_priv1_mmio.c | 334 +++++------ .../powerpc/platforms/cell/spufs/context.c | 350 +++++------ .../powerpc/platforms/cell/spufs/coredump.c | 370 ++++++------ .../arch/powerpc/platforms/cell/spufs/fault.c | 334 +++++------ .../powerpc/platforms/cell/spufs/spu_save.c | 362 ++++++------ .../kernel/arch/powerpc/platforms/chrp/time.c | 318 +++++----- .../platforms/embedded6xx/linkstation.c | 318 +++++----- .../powerpc/platforms/embedded6xx/ls_uart.c | 294 +++++----- .../arch/powerpc/platforms/embedded6xx/wii.c | 360 ++++++------ .../arch/powerpc/platforms/maple/time.c | 340 +++++------ .../arch/powerpc/platforms/pasemi/msi.c | 324 +++++------ .../powerpc/platforms/powermac/udbg_scc.c | 368 ++++++------ .../powerpc/platforms/powernv/opal-fadump.h | 292 +++++----- .../platforms/powernv/opal-memory-errors.c | 268 ++++----- .../powerpc/platforms/powernv/opal-msglog.c | 322 +++++----- .../powerpc/platforms/powernv/opal-power.c | 348 +++++------ .../arch/powerpc/platforms/powernv/opal-psr.c | 350 +++++------ .../powerpc/platforms/powernv/opal-secvar.c | 364 ++++++------ .../arch/powerpc/platforms/powernv/pci-cxl.c | 306 +++++----- .../arch/powerpc/platforms/powernv/rng.c | 400 ++++++------- .../powerpc/platforms/powernv/vas-debug.c | 336 +++++------ .../powerpc/platforms/pseries/hvCall_inst.c | 280 ++++----- .../arch/powerpc/platforms/pseries/pmem.c | 334 +++++------ .../arch/powerpc/platforms/pseries/pseries.h | 262 ++++----- .../powerpc/platforms/pseries/rtas-fadump.h | 242 ++++---- .../arch/powerpc/platforms/pseries/suspend.c | 380 ++++++------ .../arch/powerpc/platforms/pseries/vas.h | 314 +++++----- .../arch/powerpc/purgatory/trampoline_64.S | 324 +++++------ .../kernel/arch/powerpc/sysdev/fsl_mpic_err.c | 284 ++++----- .../powerpc/sysdev/fsl_mpic_timer_wakeup.c | 332 +++++------ .../kernel/arch/powerpc/sysdev/fsl_rio.h | 290 ++++----- .../kernel/arch/powerpc/sysdev/tsi108_dev.c | 306 +++++----- .../kernel/arch/powerpc/sysdev/xics/icp-hv.c | 362 ++++++------ .../arch/powerpc/sysdev/xics/icp-opal.c | 404 ++++++------- .../kernel/arch/powerpc/xmon/ansidecl.h | 260 ++++----- .../kernel/arch/riscv/Kconfig.errata | 244 ++++---- .../riscv/boot/dts/allwinner/sun20i-d1s.dtsi | 234 ++++---- .../riscv/boot/dts/canaan/canaan_kd233.dts | 314 +++++----- .../boot/dts/microchip/mpfs-beaglev-fire.dts | 446 +++++++------- .../boot/dts/microchip/mpfs-icicle-kit.dts | 502 ++++++++-------- .../arch/riscv/crypto/ghash-riscv64-glue.c | 336 +++++------ .../arch/riscv/crypto/sha256-riscv64-glue.c | 274 ++++----- .../arch/riscv/crypto/sha512-riscv64-glue.c | 266 ++++----- .../riscv/crypto/sm3-riscv64-zvksh-zvkb.S | 246 ++++---- .../riscv/crypto/sm4-riscv64-zvksed-zvkb.S | 234 ++++---- .../kernel/arch/riscv/errata/sifive/errata.c | 254 ++++---- .../kernel/arch/riscv/include/asm/asm.h | 396 ++++++------- .../kernel/arch/riscv/include/asm/compat.h | 294 +++++----- .../arch/riscv/include/asm/errata_list.h | 254 ++++---- .../kernel/arch/riscv/include/asm/hwcap.h | 216 +++---- .../arch/riscv/include/asm/kvm_vcpu_sbi.h | 190 +++--- .../kernel/arch/riscv/include/asm/module.h | 260 ++++----- .../kernel/arch/riscv/include/asm/ptrace.h | 366 ++++++------ .../arch/riscv/include/asm/syscall_wrapper.h | 216 +++---- .../arch/riscv/include/asm/thread_info.h | 254 ++++---- .../arch/riscv/include/uapi/asm/hwprobe.h | 192 +++--- .../kernel/arch/riscv/kernel/Makefile | 248 ++++---- .../kernel/arch/riscv/kernel/cacheinfo.c | 278 ++++----- .../kernel/arch/riscv/kernel/efi-header.S | 248 ++++---- .../kernel/arch/riscv/kernel/kexec_relocate.S | 430 +++++++------- .../kernel/arch/riscv/kernel/mcount-dyn.S | 382 ++++++------ .../kernel/arch/riscv/kernel/pi/fdt_early.c | 370 ++++++------ .../kernel/arch/riscv/kernel/probes/uprobes.c | 364 ++++++------ .../kernel/arch/riscv/mm/dma-noncoherent.c | 314 +++++----- .../kernel/arch/riscv/mm/pgtable.c | 314 +++++----- .../kernel/arch/riscv/purgatory/Makefile | 216 +++---- .../kernel/arch/s390/appldata/appldata_mem.c | 322 +++++----- .../arch/s390/appldata/appldata_net_sum.c | 326 +++++------ .../kernel/arch/s390/boot/boot.h | 220 +++---- .../kernel/arch/s390/boot/ipl_data.c | 168 +++--- .../kernel/arch/s390/boot/ipl_report.c | 330 +++++------ .../kernel/arch/s390/boot/vmlinux.lds.S | 344 +++++------ .../kernel/arch/s390/crypto/Kconfig | 292 +++++----- .../kernel/arch/s390/crypto/chacha-glue.c | 260 ++++----- .../kernel/arch/s390/crypto/sha256_s390.c | 292 +++++----- .../kernel/arch/s390/crypto/sha3_256_s390.c | 306 +++++----- .../kernel/arch/s390/crypto/sha3_512_s390.c | 322 +++++----- .../kernel/arch/s390/crypto/sha512_s390.c | 304 +++++----- .../kernel/arch/s390/hypfs/hypfs_sprp.c | 302 +++++----- .../kernel/arch/s390/hypfs/hypfs_vm.c | 282 ++++----- .../kernel/arch/s390/hypfs/hypfs_vm_fs.c | 278 ++++----- .../kernel/arch/s390/include/asm/airq.h | 220 +++---- .../arch/s390/include/asm/asm-extable.h | 182 +++--- .../kernel/arch/s390/include/asm/atomic.h | 300 +++++----- .../kernel/arch/s390/include/asm/facility.h | 284 ++++----- .../kernel/arch/s390/include/asm/hugetlb.h | 308 +++++----- .../kernel/arch/s390/include/asm/ipl.h | 340 +++++------ .../kernel/arch/s390/include/asm/kvm_para.h | 246 ++++---- .../arch/s390/include/asm/mmu_context.h | 256 ++++---- .../kernel/arch/s390/include/asm/nmi.h | 216 +++---- .../kernel/arch/s390/include/asm/pci_insn.h | 318 +++++----- .../kernel/arch/s390/include/asm/pci_io.h | 412 ++++++------- .../kernel/arch/s390/include/asm/pgalloc.h | 312 +++++----- .../kernel/arch/s390/include/asm/preempt.h | 280 ++++----- .../kernel/arch/s390/include/asm/sclp.h | 334 +++++------ .../kernel/arch/s390/include/asm/spinlock.h | 296 +++++----- .../kernel/arch/s390/include/asm/syscall.h | 308 +++++----- .../kernel/arch/s390/include/asm/sysinfo.h | 410 ++++++------- .../arch/s390/include/asm/thread_info.h | 214 +++---- .../arch/s390/include/asm/trace/zcrypt.h | 246 ++++---- .../kernel/arch/s390/include/asm/unwind.h | 196 +++---- .../kernel/arch/s390/include/uapi/asm/ipl.h | 416 ++++++------- .../arch/s390/include/uapi/asm/uvdevice.h | 204 +++---- .../kernel/arch/s390/kernel/cache.c | 342 +++++------ .../kernel/arch/s390/kernel/compat_linux.h | 202 +++---- .../kernel/arch/s390/kernel/fpu.c | 386 ++++++------ .../kernel/arch/s390/kernel/kexec_elf.c | 276 ++++----- .../kernel/arch/s390/kernel/lgr.c | 374 ++++++------ .../kernel/arch/s390/kernel/nospec-branch.c | 316 +++++----- .../kernel/arch/s390/kernel/stacktrace.c | 328 +++++------ .../kernel/arch/s390/kernel/syscall.c | 286 ++++----- .../kernel/arch/s390/kernel/text_amode31.S | 318 +++++----- .../arch/s390/kernel/vdso32/vdso32.lds.S | 282 ++++----- .../arch/s390/kernel/vdso64/vdso64.lds.S | 304 +++++----- .../s390/kernel/vdso64/vgetrandom-chacha.S | 362 ++++++------ .../UFI003_MB_V02/kernel/arch/s390/lib/mem.S | 394 ++++++------- .../kernel/arch/s390/lib/probes.c | 322 +++++----- .../kernel/arch/s390/pci/pci_iov.c | 254 ++++---- .../kernel/arch/sh/Kconfig.debug | 178 +++--- .../kernel/arch/sh/boards/board-apsh4a3a.c | 364 ++++++------ .../kernel/arch/sh/boards/board-edosk7760.c | 356 ++++++------ .../kernel/arch/sh/boards/board-polaris.c | 312 +++++----- .../arch/sh/boards/mach-dreamcast/irq.c | 310 +++++----- .../kernel/arch/sh/boards/mach-hp6xx/setup.c | 344 +++++------ .../arch/sh/boards/mach-se/7343/setup.c | 364 ++++++------ .../kernel/arch/sh/boards/mach-se/7724/irq.c | 286 ++++----- .../kernel/arch/sh/boards/mach-sh03/rtc.c | 286 ++++----- .../arch/sh/boards/mach-x3proto/ilsel.c | 312 +++++----- .../kernel/arch/sh/boards/of-generic.c | 348 +++++------ .../kernel/arch/sh/boot/Makefile | 230 ++++---- .../kernel/arch/sh/boot/compressed/head_64.S | 318 +++++----- .../arch/sh/configs/sh7785lcr_32bit_defconfig | 298 +++++----- .../kernel/arch/sh/configs/urquell_defconfig | 294 +++++----- .../kernel/arch/sh/drivers/dma/dma-sysfs.c | 340 +++++------ .../kernel/arch/sh/drivers/heartbeat.c | 304 +++++----- .../kernel/arch/sh/drivers/pci/common.c | 320 +++++----- .../arch/sh/drivers/pci/fixups-se7751.c | 226 +++---- .../kernel/arch/sh/include/asm/bitops-op32.h | 286 ++++----- .../kernel/arch/sh/include/asm/cacheflush.h | 252 ++++---- .../kernel/arch/sh/include/asm/mmu_context.h | 356 ++++++------ .../kernel/arch/sh/include/asm/pgtable.h | 306 +++++----- .../kernel/arch/sh/include/asm/processor.h | 350 +++++------ .../kernel/arch/sh/include/asm/ptrace.h | 278 ++++----- .../arch/sh/include/asm/spinlock-llsc.h | 396 ++++++------- .../kernel/arch/sh/include/asm/switch_to_32.h | 262 ++++----- .../kernel/arch/sh/include/asm/uaccess.h | 266 ++++----- .../kernel/arch/sh/include/asm/watchdog.h | 318 +++++----- .../arch/sh/include/cpu-sh4/cpu/sh7786.h | 276 ++++----- .../arch/sh/include/mach-common/mach/sh2007.h | 236 ++++---- .../arch/sh/include/mach-sdk7786/mach/fpga.h | 312 +++++----- .../kernel/arch/sh/include/mach-se/mach/se.h | 240 ++++---- .../arch/sh/include/mach-se/mach/se7343.h | 286 ++++----- .../arch/sh/include/mach-se/mach/se7780.h | 212 +++---- .../kernel/arch/sh/kernel/cpu/proc.c | 302 +++++----- .../arch/sh/kernel/cpu/sh2a/clock-sh7264.c | 314 +++++----- .../arch/sh/kernel/cpu/sh4a/clock-sh7757.c | 304 +++++----- .../arch/sh/kernel/cpu/sh4a/clock-shx3.c | 296 +++++----- .../kernel/arch/sh/kernel/cpu/sh4a/smp-shx3.c | 292 +++++----- .../kernel/arch/sh/kernel/cpu/shmobile/pm.c | 306 +++++----- .../kernel/arch/sh/kernel/dumpstack.c | 312 +++++----- .../kernel/arch/sh/kernel/relocate_kernel.S | 460 +++++++-------- .../kernel/arch/sh/kernel/sh_bios.c | 338 +++++------ .../kernel/arch/sh/kernel/sh_ksyms_32.c | 236 ++++---- .../kernel/arch/sh/kernel/traps.c | 396 ++++++------- .../kernel/arch/sh/kernel/unwinder.c | 330 +++++------ .../UFI003_MB_V02/kernel/arch/sh/lib/memcpy.S | 456 +++++++-------- .../kernel/arch/sh/lib/memmove.S | 510 ++++++++-------- .../UFI003_MB_V02/kernel/arch/sh/lib/movmem.S | 434 +++++++------- .../UFI003_MB_V02/kernel/arch/sh/mm/ioremap.c | 298 +++++----- .../kernel/arch/sh/mm/tlb-debugfs.c | 320 +++++----- .../kernel/arch/sh/mm/tlbflush_32.c | 274 ++++----- .../kernel/arch/sparc/crypto/crc32c_glue.c | 368 ++++++------ .../kernel/arch/sparc/crypto/sha1_glue.c | 348 +++++------ .../arch/sparc/include/asm/checksum_64.h | 288 ++++----- .../kernel/arch/sparc/include/asm/compat.h | 320 +++++----- .../kernel/arch/sparc/include/asm/ecc.h | 246 ++++---- .../kernel/arch/sparc/include/asm/io_32.h | 306 +++++----- .../kernel/arch/sparc/include/asm/mmu_64.h | 258 ++++---- .../kernel/arch/sparc/include/asm/mxcc.h | 276 ++++----- .../kernel/arch/sparc/include/asm/ns87303.h | 236 ++++---- .../kernel/arch/sparc/include/asm/page_32.h | 276 ++++----- .../kernel/arch/sparc/include/asm/ptrace.h | 324 +++++------ .../kernel/arch/sparc/include/asm/sbi.h | 232 ++++---- .../arch/sparc/include/asm/spinlock_32.h | 376 ++++++------ .../kernel/arch/sparc/include/asm/sunbpp.h | 162 +++--- .../arch/sparc/include/asm/switch_to_32.h | 214 +++---- .../arch/sparc/include/asm/thread_info_32.h | 260 ++++----- .../arch/sparc/include/asm/turbosparc.h | 252 ++++---- .../kernel/arch/sparc/include/asm/upa.h | 220 +++---- .../arch/sparc/include/uapi/asm/envctrl.h | 208 +++---- .../arch/sparc/include/uapi/asm/socket.h | 334 +++++------ .../kernel/arch/sparc/kernel/Makefile | 244 ++++---- .../kernel/arch/sparc/kernel/apc.c | 392 ++++++------- .../kernel/arch/sparc/kernel/auxio_32.c | 278 ++++----- .../kernel/arch/sparc/kernel/kgdb_32.c | 344 +++++------ .../arch/sparc/kernel/of_device_common.c | 360 ++++++------ .../kernel/arch/sparc/kernel/pci_sun4v.h | 228 ++++---- .../kernel/arch/sparc/kernel/prom_common.c | 316 +++++----- .../kernel/arch/sparc/kernel/sigutil_32.c | 258 ++++---- .../kernel/arch/sparc/kernel/systbls.h | 206 +++---- .../kernel/arch/sparc/kernel/termios.c | 230 ++++---- .../kernel/arch/sparc/kernel/trampoline_32.S | 402 ++++++------- .../kernel/arch/sparc/kernel/vmlinux.lds.S | 384 ++++++------ .../kernel/arch/sparc/kernel/windows.c | 260 ++++----- .../kernel/arch/sparc/kernel/winfixup.S | 320 +++++----- .../kernel/arch/sparc/lib/GENbzero.S | 314 +++++----- .../kernel/arch/sparc/lib/NGbzero.S | 322 +++++----- .../kernel/arch/sparc/lib/NGpage.S | 276 ++++----- .../kernel/arch/sparc/lib/PeeCeeI.c | 424 +++++++------- .../kernel/arch/sparc/lib/atomic32.c | 394 ++++++------- .../kernel/arch/sparc/lib/atomic_64.S | 332 +++++------ .../kernel/arch/sparc/lib/bzero.S | 300 +++++----- .../kernel/arch/sparc/lib/checksum_64.S | 354 +++++------ .../kernel/arch/sparc/lib/memset.S | 394 ++++++------- .../kernel/arch/sparc/math-emu/sfp-util_32.h | 232 ++++---- .../kernel/arch/sparc/math-emu/sfp-util_64.h | 242 ++++---- .../kernel/arch/sparc/net/bpf_jit_asm_32.S | 404 ++++++------- .../kernel/arch/sparc/prom/ranges.c | 228 ++++---- .../kernel/arch/sparc/vdso/Makefile | 214 +++---- .../kernel/arch/sparc/vdso/vdso2c.h | 284 ++++----- .../kernel/arch/um/drivers/daemon_user.c | 388 ++++++------ .../kernel/arch/um/drivers/harddog_kern.c | 348 +++++------ .../kernel/arch/um/drivers/port_user.c | 434 +++++++------- .../kernel/arch/um/drivers/rtc_kern.c | 420 ++++++------- .../kernel/arch/um/include/shared/init.h | 254 ++++---- .../kernel/arch/um/kernel/ptrace.c | 304 +++++----- .../kernel/arch/um/os-Linux/execvp.c | 300 +++++----- .../kernel/arch/um/os-Linux/helper.c | 338 +++++------ .../UFI003_MB_V02/kernel/arch/x86/boot/a20.c | 326 +++++------ .../arch/x86/boot/early_serial_console.c | 308 +++++----- .../UFI003_MB_V02/kernel/arch/x86/boot/edd.c | 360 ++++++------ .../UFI003_MB_V02/kernel/arch/x86/boot/main.c | 362 ++++++------ .../kernel/arch/x86/boot/video-mode.c | 342 +++++------ .../x86/crypto/camellia_aesni_avx2_glue.c | 276 ++++----- .../arch/x86/crypto/camellia_aesni_avx_glue.c | 274 ++++----- .../kernel/arch/x86/crypto/cast5_avx_glue.c | 248 ++++---- .../kernel/arch/x86/crypto/cast6_avx_glue.c | 248 ++++---- .../arch/x86/crypto/crct10dif-pclmul_glue.c | 286 ++++----- .../kernel/arch/x86/crypto/nh-avx2-x86_64.S | 318 +++++----- .../arch/x86/crypto/serpent_avx2_glue.c | 260 ++++----- .../kernel/arch/x86/crypto/serpent_avx_glue.c | 262 ++++----- .../arch/x86/crypto/serpent_sse2_glue.c | 262 ++++----- .../arch/x86/crypto/sm4_aesni_avx2_glue.c | 286 ++++----- .../kernel/arch/x86/crypto/twofish_avx_glue.c | 266 ++++----- .../kernel/arch/x86/crypto/twofish_glue.c | 200 +++---- .../kernel/arch/x86/entry/entry_64_fred.S | 262 ++++----- .../arch/x86/entry/vdso/vgetrandom-chacha.S | 356 ++++++------ .../kernel/arch/x86/entry/vdso/vsgx.S | 300 +++++----- .../kernel/arch/x86/events/intel/pt.h | 268 ++++----- .../kernel/arch/x86/include/asm/atomic.h | 354 +++++------ .../kernel/arch/x86/include/asm/atomic64_64.h | 330 +++++------ .../kernel/arch/x86/include/asm/cmpxchg_32.h | 306 +++++----- .../arch/x86/include/asm/cpu_entry_area.h | 306 +++++----- .../kernel/arch/x86/include/asm/cpuid.h | 426 +++++++------- .../arch/x86/include/asm/disabled-features.h | 322 +++++----- .../kernel/arch/x86/include/asm/e820/types.h | 226 +++---- .../arch/x86/include/asm/entry-common.h | 222 +++---- .../kernel/arch/x86/include/asm/fpu/xstate.h | 268 ++++----- .../arch/x86/include/asm/intel_telemetry.h | 278 ++++----- .../kernel/arch/x86/include/asm/irq_vectors.h | 292 +++++----- .../kernel/arch/x86/include/asm/kprobes.h | 246 ++++---- .../kernel/arch/x86/include/asm/kvm_para.h | 358 ++++++------ .../kernel/arch/x86/include/asm/linkage.h | 302 +++++----- .../kernel/arch/x86/include/asm/local.h | 364 ++++++------ .../kernel/arch/x86/include/asm/mem_encrypt.h | 238 ++++---- .../kernel/arch/x86/include/asm/mpspec_def.h | 364 ++++++------ .../arch/x86/include/asm/pgtable-2level.h | 262 ++++----- .../kernel/arch/x86/include/asm/preempt.h | 300 +++++----- .../kernel/arch/x86/include/asm/set_memory.h | 192 +++--- .../kernel/arch/x86/include/asm/setup.h | 316 +++++----- .../kernel/arch/x86/include/asm/shared/tdx.h | 290 ++++----- .../kernel/arch/x86/include/asm/sync_bitops.h | 236 ++++---- .../kernel/arch/x86/include/asm/sync_core.h | 222 +++---- .../kernel/arch/x86/include/asm/syscall.h | 282 ++++----- .../kernel/arch/x86/include/asm/tdx.h | 254 ++++---- .../kernel/arch/x86/include/asm/unwind.h | 308 +++++----- .../arch/x86/include/asm/xen/hypervisor.h | 224 +++---- .../arch/x86/include/uapi/asm/debugreg.h | 202 +++---- .../arch/x86/include/uapi/asm/kvm_para.h | 304 +++++----- .../kernel/arch/x86/include/uapi/asm/mtrr.h | 232 ++++---- .../kernel/arch/x86/kernel/apic/x2apic_phys.c | 330 +++++------ .../kernel/arch/x86/kernel/asm-offsets.c | 246 ++++---- .../kernel/arch/x86/kernel/cet.c | 322 +++++----- .../kernel/arch/x86/kernel/check.c | 374 ++++++------ .../kernel/arch/x86/kernel/cpu/mce/genpool.c | 314 +++++----- .../arch/x86/kernel/cpu/mce/threshold.c | 292 +++++----- .../arch/x86/kernel/cpu/microcode/internal.h | 250 ++++---- .../arch/x86/kernel/cpu/perfctr-watchdog.c | 324 +++++------ .../kernel/arch/x86/kernel/cpu/sgx/driver.c | 368 ++++++------ .../kernel/arch/x86/kernel/cpu/sgx/encl.h | 258 ++++---- .../kernel/arch/x86/kernel/cpu/topology_ext.c | 290 ++++----- .../kernel/arch/x86/kernel/cpuid.c | 382 ++++++------ .../kernel/arch/x86/kernel/doublefault_32.c | 258 ++++---- .../kernel/arch/x86/kernel/dumpstack_32.c | 310 +++++----- .../kernel/arch/x86/kernel/ftrace_32.S | 400 ++++++------- .../kernel/arch/x86/kernel/io_delay.c | 296 +++++----- .../kernel/arch/x86/kernel/irq_32.c | 320 +++++----- .../kernel/arch/x86/kernel/jump_label.c | 296 +++++----- .../kernel/arch/x86/kernel/kdebugfs.c | 390 ++++++------- .../kernel/arch/x86/kernel/pvclock.c | 332 +++++------ .../kernel/arch/x86/kernel/rethook.c | 254 ++++---- .../kernel/arch/x86/kernel/rtc.c | 316 +++++----- .../kernel/arch/x86/kernel/verify_cpu.S | 280 ++++----- .../UFI003_MB_V02/kernel/arch/x86/kvm/irq.c | 354 +++++------ .../UFI003_MB_V02/kernel/arch/x86/kvm/smm.h | 336 +++++------ .../kernel/arch/x86/kvm/vmx/vmx_onhyperv.h | 266 ++++----- .../kernel/arch/x86/lib/copy_mc_64.S | 298 +++++----- .../kernel/arch/x86/lib/csum-copy_64.S | 512 ++++++++-------- .../kernel/arch/x86/lib/getuser.S | 334 +++++------ .../kernel/arch/x86/lib/memcpy_64.S | 344 +++++------ .../kernel/arch/x86/lib/memmove_32.S | 400 ++++++------- .../kernel/arch/x86/lib/memmove_64.S | 432 +++++++------- .../kernel/arch/x86/lib/usercopy_64.c | 288 ++++----- .../kernel/arch/x86/math-emu/mul_Xsig.S | 358 ++++++------ .../kernel/arch/x86/math-emu/polynom_Xsig.S | 274 ++++----- .../kernel/arch/x86/math-emu/reg_constant.c | 246 ++++---- .../kernel/arch/x86/math-emu/reg_mul.c | 232 ++++---- .../kernel/arch/x86/math-emu/reg_norm.S | 300 +++++----- .../kernel/arch/x86/math-emu/reg_u_add.S | 338 +++++------ .../kernel/arch/x86/math-emu/reg_u_mul.S | 300 +++++----- .../kernel/arch/x86/math-emu/round_Xsig.S | 284 ++++----- .../kernel/arch/x86/mm/amdtopology.c | 348 +++++------ .../kernel/arch/x86/mm/hugetlbpage.c | 290 ++++----- .../kernel/arch/x86/mm/mem_encrypt.c | 276 ++++----- .../kernel/arch/x86/mm/testmmiotrace.c | 294 +++++----- .../kernel/arch/x86/pci/mmconfig_32.c | 312 +++++----- .../kernel/arch/x86/platform/ce4100/ce4100.c | 310 +++++----- .../kernel/arch/x86/platform/efi/efi_32.c | 308 +++++----- .../kernel/arch/x86/platform/geode/alix.c | 272 ++++----- .../arch/x86/platform/geode/geode-common.c | 356 ++++++------ .../arch/x86/platform/intel-mid/intel-mid.c | 252 ++++---- .../x86/platform/intel-quark/imr_selftest.c | 258 ++++---- .../arch/x86/platform/olpc/olpc-xo1-pm.c | 374 ++++++------ .../kernel/arch/x86/platform/pvh/enlighten.c | 284 ++++----- .../kernel/arch/x86/power/hibernate_32.c | 396 ++++++------- .../kernel/arch/x86/power/hibernate_64.c | 284 ++++----- .../kernel/arch/x86/power/hibernate_asm_64.S | 300 +++++----- .../kernel/arch/x86/realmode/rm/reboot.S | 316 +++++----- .../kernel/arch/x86/realmode/rm/wakeup_asm.S | 358 ++++++------ .../kernel/arch/x86/tools/insn_decoder_test.c | 346 +++++------ .../kernel/arch/x86/um/os-Linux/registers.c | 338 +++++------ .../kernel/arch/x86/um/os-Linux/task_size.c | 302 +++++----- .../UFI003_MB_V02/kernel/arch/x86/xen/efi.c | 302 +++++----- .../kernel/arch/x86/xen/grant-table.c | 338 +++++------ .../kernel/arch/x86/xen/spinlock.c | 288 ++++----- .../kernel/arch/x86/xen/xen-head.S | 370 ++++++------ .../arch/xtensa/configs/audio_kc705_defconfig | 272 ++++----- .../arch/xtensa/configs/smp_lx200_defconfig | 256 ++++---- .../kernel/arch/xtensa/include/asm/cacheasm.h | 428 +++++++------- .../kernel/arch/xtensa/include/asm/futex.h | 334 +++++------ .../arch/xtensa/include/asm/mmu_context.h | 308 +++++----- .../kernel/arch/xtensa/include/asm/ptrace.h | 238 ++++---- .../kernel/arch/xtensa/include/asm/regs.h | 236 ++++---- .../kernel/arch/xtensa/include/asm/string.h | 274 ++++----- .../arch/xtensa/include/asm/thread_info.h | 290 ++++----- .../kernel/arch/xtensa/include/asm/traps.h | 290 ++++----- .../kernel/arch/xtensa/lib/memset.S | 310 +++++----- .../kernel/arch/xtensa/lib/strnlen_user.S | 284 ++++----- .../arch/xtensa/platforms/iss/console.c | 394 ++++++------- .../arch/xtensa/platforms/xt2000/setup.c | 300 +++++----- .../variants/dc232b/include/variant/tie-asm.h | 244 ++++---- .../kernel/block/blk-cgroup-rwstat.c | 248 ++++---- .../kernel/block/blk-cgroup-rwstat.h | 298 +++++----- .../UFI003_MB_V02/kernel/block/blk-timeout.c | 334 +++++------ .../UFI003_MB_V02/kernel/block/holder.c | 312 +++++----- .../kernel/block/partitions/atari.c | 312 +++++----- .../kernel/block/partitions/efi.h | 230 ++++---- .../kernel/block/partitions/mac.c | 314 +++++----- .../kernel/block/partitions/sun.c | 258 ++++---- .../UFI003_MB_V02/kernel/certs/extract-cert.c | 364 ++++++------ .../debian/UFI003_MB_V02/kernel/crypto/842.c | 302 +++++----- .../kernel/crypto/asymmetric_keys/Kconfig | 212 +++---- .../kernel/crypto/asymmetric_keys/pkcs7.asn1 | 284 ++++----- .../crypto/asymmetric_keys/pkcs8_parser.c | 360 ++++++------ .../crypto/asymmetric_keys/selftest_ecdsa.c | 176 +++--- .../debian/UFI003_MB_V02/kernel/crypto/cbc.c | 374 ++++++------ .../kernel/crypto/chacha_generic.c | 278 ++++----- .../UFI003_MB_V02/kernel/crypto/cipher.c | 238 ++++---- .../kernel/crypto/crc32c_generic.c | 336 +++++------ .../kernel/crypto/crct10dif_common.c | 164 +++--- .../UFI003_MB_V02/kernel/crypto/des_generic.c | 268 ++++----- .../UFI003_MB_V02/kernel/crypto/echainiv.c | 330 +++++------ .../UFI003_MB_V02/kernel/crypto/geniv.c | 326 +++++------ .../kernel/crypto/kdf_sp800108.c | 314 +++++----- .../debian/UFI003_MB_V02/kernel/crypto/kpp.c | 286 ++++----- .../debian/UFI003_MB_V02/kernel/crypto/lz4.c | 320 +++++----- .../UFI003_MB_V02/kernel/crypto/lz4hc.c | 322 +++++----- .../UFI003_MB_V02/kernel/crypto/lzo-rle.c | 326 +++++------ .../debian/UFI003_MB_V02/kernel/crypto/lzo.c | 326 +++++------ .../UFI003_MB_V02/kernel/crypto/michael_mic.c | 352 +++++------ .../kernel/crypto/poly1305_generic.c | 298 +++++----- .../UFI003_MB_V02/kernel/crypto/rsa_helper.c | 372 ++++++------ .../debian/UFI003_MB_V02/kernel/crypto/sig.c | 278 ++++----- .../debian/UFI003_MB_V02/kernel/crypto/xor.c | 348 +++++------ .../UFI003_MB_V02/kernel/fs/9p/v9fs_vfs.h | 182 +++--- .../UFI003_MB_V02/kernel/fs/9p/vfs_addr.c | 328 +++++------ .../debian/UFI003_MB_V02/kernel/fs/affs/dir.c | 352 +++++------ .../kernel/fs/bcachefs/bkey_methods.h | 276 ++++----- .../kernel/fs/bcachefs/btree_write_buffer.h | 212 +++---- .../fs/bcachefs/buckets_waiting_for_journal.c | 350 +++++------ .../fs/bcachefs/disk_accounting_format.h | 334 +++++------ .../kernel/fs/bcachefs/extent_update.c | 346 +++++------ .../UFI003_MB_V02/kernel/fs/bcachefs/fifo.h | 254 ++++---- .../kernel/fs/bcachefs/inode_format.h | 334 +++++------ .../kernel/fs/bcachefs/io_read.h | 316 +++++----- .../kernel/fs/bcachefs/mean_and_variance.h | 406 ++++++------- .../kernel/fs/bcachefs/migrate.c | 348 +++++------ .../kernel/fs/bcachefs/nocow_locking.c | 288 ++++----- .../kernel/fs/bcachefs/sb-errors.c | 352 +++++------ .../kernel/fs/bcachefs/siphash.h | 174 +++--- .../kernel/fs/bcachefs/super-io.h | 208 +++---- .../kernel/fs/bcachefs/time_stats.h | 320 +++++----- .../UFI003_MB_V02/kernel/fs/befs/super.c | 236 ++++---- .../UFI003_MB_V02/kernel/fs/binfmt_script.c | 318 +++++----- .../UFI003_MB_V02/kernel/fs/btrfs/block-rsv.h | 286 ++++----- .../kernel/fs/btrfs/inode-item.h | 238 ++++---- .../UFI003_MB_V02/kernel/fs/btrfs/lru_cache.c | 332 +++++------ .../UFI003_MB_V02/kernel/fs/btrfs/misc.h | 332 +++++------ .../UFI003_MB_V02/kernel/fs/btrfs/send.h | 374 ++++++------ .../UFI003_MB_V02/kernel/fs/btrfs/tree-log.h | 206 +++---- .../UFI003_MB_V02/kernel/fs/cachefiles/key.c | 276 ++++----- .../kernel/fs/cachefiles/volume.c | 276 ++++----- .../UFI003_MB_V02/kernel/fs/ceph/ioctl.h | 202 +++---- .../UFI003_MB_V02/kernel/fs/ceph/strings.c | 260 ++++----- .../UFI003_MB_V02/kernel/fs/coda/coda_psdev.h | 190 +++--- .../kernel/fs/compat_binfmt_elf.c | 288 ++++----- .../UFI003_MB_V02/kernel/fs/configfs/mount.c | 356 ++++++------ .../debian/UFI003_MB_V02/kernel/fs/dlm/lock.h | 170 +++--- .../UFI003_MB_V02/kernel/fs/dlm/memory.c | 354 +++++------ .../kernel/fs/dlm/requestqueue.c | 298 +++++----- .../kernel/fs/ecryptfs/kthread.c | 318 +++++----- .../UFI003_MB_V02/kernel/fs/efivarfs/inode.c | 386 ++++++------ .../debian/UFI003_MB_V02/kernel/fs/efs/efs.h | 288 ++++----- .../UFI003_MB_V02/kernel/fs/erofs/compress.h | 200 +++---- .../UFI003_MB_V02/kernel/fs/ext2/ioctl.c | 318 +++++----- .../UFI003_MB_V02/kernel/fs/ext2/xattr.h | 232 ++++---- .../UFI003_MB_V02/kernel/fs/ext4/Kconfig | 240 ++++---- .../kernel/fs/ext4/fast_commit.h | 374 ++++++------ .../UFI003_MB_V02/kernel/fs/f2fs/shrinker.c | 298 +++++----- .../kernel/fs/freevxfs/vxfs_fshead.c | 332 +++++------ .../UFI003_MB_V02/kernel/fs/fs_struct.c | 336 +++++------ .../debian/UFI003_MB_V02/kernel/fs/fuse/acl.c | 334 +++++------ .../UFI003_MB_V02/kernel/fs/fuse/fuse_trace.h | 264 ++++----- .../debian/UFI003_MB_V02/kernel/fs/gfs2/acl.c | 310 +++++----- .../UFI003_MB_V02/kernel/fs/gfs2/inode.h | 272 ++++----- .../UFI003_MB_V02/kernel/fs/hfs/string.c | 228 ++++---- .../UFI003_MB_V02/kernel/fs/hfs/trans.c | 300 +++++----- .../kernel/fs/hfsplus/part_tbl.c | 314 +++++----- .../UFI003_MB_V02/kernel/fs/hostfs/hostfs.h | 210 +++---- .../UFI003_MB_V02/kernel/fs/isofs/namei.c | 348 +++++------ .../kernel/fs/jffs2/background.c | 330 +++++------ .../UFI003_MB_V02/kernel/fs/jffs2/compr.h | 238 ++++---- .../UFI003_MB_V02/kernel/fs/jffs2/xattr.h | 254 ++++---- .../debian/UFI003_MB_V02/kernel/fs/jfs/acl.c | 316 +++++----- .../debian/UFI003_MB_V02/kernel/fs/jfs/file.c | 312 +++++----- .../UFI003_MB_V02/kernel/fs/jfs/jfs_btree.h | 318 +++++----- .../kernel/fs/jfs/jfs_metapage.h | 284 ++++----- .../kernel/fs/jfs/jfs_superblock.h | 218 +++---- .../UFI003_MB_V02/kernel/fs/jfs/jfs_types.h | 314 +++++----- .../UFI003_MB_V02/kernel/fs/jfs/jfs_umount.c | 306 +++++----- .../UFI003_MB_V02/kernel/fs/kernfs/symlink.c | 306 +++++----- .../UFI003_MB_V02/kernel/fs/netfs/main.c | 346 +++++------ .../UFI003_MB_V02/kernel/fs/nfs/cache_lib.c | 316 +++++----- .../UFI003_MB_V02/kernel/fs/nfs/export.c | 330 +++++------ .../kernel/fs/nfs/filelayout/filelayout.h | 236 ++++---- image/debian/UFI003_MB_V02/kernel/fs/nfs/io.c | 322 +++++----- .../UFI003_MB_V02/kernel/fs/nfs/nfs3client.c | 264 ++++----- .../kernel/fs/nfs_common/grace.c | 290 ++++----- .../UFI003_MB_V02/kernel/fs/nfsd/export.h | 270 ++++----- .../kernel/fs/nfsd/flexfilelayout.c | 272 ++++----- .../UFI003_MB_V02/kernel/fs/nfsd/netlink.c | 226 +++---- .../debian/UFI003_MB_V02/kernel/fs/nfsd/xdr.h | 354 +++++------ .../UFI003_MB_V02/kernel/fs/nilfs2/file.c | 326 +++++------ .../UFI003_MB_V02/kernel/fs/nilfs2/mdt.h | 230 ++++---- .../UFI003_MB_V02/kernel/fs/nilfs2/sufile.h | 264 ++++----- .../UFI003_MB_V02/kernel/fs/notify/fdinfo.c | 284 ++++----- .../UFI003_MB_V02/kernel/fs/notify/group.c | 320 +++++----- .../kernel/fs/ntfs3/lib/xpress_decompress.c | 284 ++++----- .../kernel/fs/ocfs2/cluster/masklog.c | 348 +++++------ .../kernel/fs/ocfs2/cluster/tcp.h | 274 ++++----- .../UFI003_MB_V02/kernel/fs/ocfs2/mmap.c | 354 +++++------ .../kernel/fs/ocfs2/refcounttree.h | 254 ++++---- .../UFI003_MB_V02/kernel/fs/ocfs2/sysfile.c | 334 +++++------ .../UFI003_MB_V02/kernel/fs/omfs/bitmap.c | 388 ++++++------ .../UFI003_MB_V02/kernel/fs/orangefs/acl.c | 318 +++++----- .../UFI003_MB_V02/kernel/fs/orangefs/dcache.c | 282 ++++----- .../kernel/fs/orangefs/orangefs-cache.c | 328 +++++------ .../UFI003_MB_V02/kernel/fs/proc/Kconfig | 220 +++---- .../UFI003_MB_V02/kernel/fs/proc/namespaces.c | 366 ++++++------ .../UFI003_MB_V02/kernel/fs/qnx6/super_mmi.c | 298 +++++----- .../UFI003_MB_V02/kernel/fs/reiserfs/Kconfig | 182 +++--- .../UFI003_MB_V02/kernel/fs/reiserfs/hashes.c | 354 +++++------ .../UFI003_MB_V02/kernel/fs/reiserfs/xattr.h | 234 ++++---- .../kernel/fs/smb/client/cifs_debug.h | 320 +++++----- .../kernel/fs/smb/client/cifs_fs_sb.h | 148 ++--- .../kernel/fs/smb/client/cifs_ioctl.h | 264 ++++----- .../kernel/fs/smb/client/cifsacl.h | 220 +++---- .../kernel/fs/smb/client/compress/lz77.c | 470 +++++++-------- .../UFI003_MB_V02/kernel/fs/smb/client/dfs.h | 350 +++++------ .../kernel/fs/smb/client/reparse.h | 282 ++++----- .../kernel/fs/smb/common/smbacl.h | 244 ++++---- .../kernel/fs/smb/server/ksmbd_work.c | 348 +++++------ .../kernel/fs/smb/server/ksmbd_work.h | 268 ++++----- .../kernel/fs/smb/server/mgmt/tree_connect.c | 348 +++++------ .../kernel/fs/smb/server/oplock.h | 258 ++++---- .../kernel/fs/smb/server/smbacl.h | 258 ++++---- .../kernel/fs/smb/server/xattr.h | 244 ++++---- .../kernel/fs/squashfs/decompressor.c | 282 ++++----- .../kernel/fs/squashfs/page_actor.c | 282 ++++----- .../kernel/fs/squashfs/squashfs.h | 228 ++++---- .../kernel/fs/squashfs/xattr_id.c | 264 ++++----- .../kernel/fs/squashfs/xz_wrapper.c | 392 ++++++------- .../UFI003_MB_V02/kernel/fs/sysfs/dir.c | 322 +++++----- .../UFI003_MB_V02/kernel/fs/ubifs/Kconfig | 202 +++---- .../UFI003_MB_V02/kernel/fs/ubifs/sysfs.c | 312 +++++----- .../debian/UFI003_MB_V02/kernel/fs/udf/dir.c | 320 +++++----- .../UFI003_MB_V02/kernel/fs/udf/symlink.c | 342 +++++------ .../UFI003_MB_V02/kernel/fs/udf/udf_sb.h | 370 ++++++------ .../kernel/fs/verity/signature.c | 276 ++++----- .../kernel/fs/xfs/libxfs/xfs_attr_leaf.h | 222 +++---- .../kernel/fs/xfs/libxfs/xfs_btree_staging.h | 260 ++++----- .../kernel/fs/xfs/libxfs/xfs_exchmaps.h | 248 ++++---- .../kernel/fs/xfs/libxfs/xfs_ialloc.h | 236 ++++---- .../kernel/fs/xfs/libxfs/xfs_trans_inode.c | 260 ++++----- .../kernel/fs/xfs/libxfs/xfs_trans_resv.h | 210 +++---- .../kernel/fs/xfs/libxfs/xfs_trans_space.h | 222 +++---- .../UFI003_MB_V02/kernel/fs/xfs/scrub/alloc.c | 388 ++++++------ .../UFI003_MB_V02/kernel/fs/xfs/xfs_drain.c | 332 +++++------ .../UFI003_MB_V02/kernel/fs/xfs/xfs_drain.h | 176 +++--- .../UFI003_MB_V02/kernel/fs/xfs/xfs_error.h | 226 +++---- .../UFI003_MB_V02/kernel/fs/xfs/xfs_message.h | 198 +++---- .../UFI003_MB_V02/kernel/fs/xfs/xfs_qm_bhv.c | 338 +++++------ .../UFI003_MB_V02/kernel/fs/xfs/xfs_sysctl.h | 210 +++---- .../UFI003_MB_V02/kernel/fs/zonefs/sysfs.c | 270 ++++----- .../kernel/include/acpi/acuuid.h | 148 ++--- .../UFI003_MB_V02/kernel/include/acpi/ghes.h | 272 ++++----- .../kernel/include/acpi/platform/aclinuxex.h | 280 ++++----- .../UFI003_MB_V02/kernel/include/acpi/video.h | 242 ++++---- .../kernel/include/asm-generic/atomic.h | 266 ++++----- .../kernel/include/asm-generic/compat.h | 336 +++++------ .../kernel/include/asm-generic/hugetlb.h | 320 +++++----- .../kernel/include/asm-generic/iomap.h | 230 ++++---- .../kernel/include/asm-generic/local64.h | 214 +++---- .../kernel/include/asm-generic/qrwlock.h | 294 +++++----- .../kernel/include/clocksource/hyperv_timer.h | 234 ++++---- .../kernel/include/crypto/chacha.h | 222 +++---- .../kernel/include/crypto/engine.h | 214 +++---- .../kernel/include/crypto/internal/aead.h | 336 +++++------ .../kernel/include/crypto/internal/akcipher.h | 310 +++++----- .../kernel/include/crypto/internal/des.h | 254 ++++---- .../include/crypto/internal/scompress.h | 252 ++++---- .../kernel/include/crypto/public_key.h | 250 ++++---- .../kernel/include/crypto/sha2.h | 268 ++++----- .../UFI003_MB_V02/kernel/include/crypto/sig.h | 280 ++++----- .../UFI003_MB_V02/kernel/include/cxl/event.h | 350 +++++------ .../kernel/include/drm/drm_audio_component.h | 258 ++++---- .../kernel/include/drm/drm_auth.h | 278 ++++----- .../kernel/include/drm/drm_cache.h | 176 +++--- .../kernel/include/drm/drm_color_mgmt.h | 242 ++++---- .../kernel/include/drm/drm_damage_helper.h | 168 +++--- .../kernel/include/drm/drm_exec.h | 300 +++++----- .../kernel/include/drm/drm_kunit_helpers.h | 260 ++++----- .../kernel/include/drm/drm_managed.h | 260 ++++----- .../kernel/include/drm/drm_module.h | 250 ++++---- .../kernel/include/drm/drm_prime.h | 232 ++++---- .../kernel/include/drm/drm_syncobj.h | 272 ++++----- .../kernel/include/drm/intel/i915_drm.h | 204 +++---- .../kernel/include/drm/ttm/ttm_execbuf_util.h | 238 ++++---- .../kernel/include/drm/ttm/ttm_placement.h | 206 +++---- .../include/dt-bindings/clock/ast2600-clock.h | 260 ++++----- .../include/dt-bindings/clock/axg-clkc.h | 296 +++++----- .../kernel/include/dt-bindings/clock/bcm-sr.h | 222 +++---- .../include/dt-bindings/clock/hi3620-clock.h | 286 ++++----- .../include/dt-bindings/clock/imx27-clock.h | 208 +++---- .../include/dt-bindings/clock/imx7ulp-clock.h | 238 ++++---- .../include/dt-bindings/clock/intel,lgm-clk.h | 330 +++++------ .../include/dt-bindings/clock/mt8167-clk.h | 262 ++++----- .../dt-bindings/clock/qcom,camcc-sc7180.h | 242 ++++---- .../dt-bindings/clock/qcom,camcc-sc7280.h | 254 ++++---- .../dt-bindings/clock/qcom,camcc-sdm845.h | 232 ++++---- .../dt-bindings/clock/qcom,camcc-sm8250.h | 276 ++++----- .../dt-bindings/clock/qcom,dispcc-sc8280xp.h | 200 +++---- .../dt-bindings/clock/qcom,gcc-mdm9607.h | 208 +++---- .../dt-bindings/clock/qcom,gcc-sdx55.h | 234 ++++---- .../dt-bindings/clock/qcom,gcc-sdx65.h | 244 ++++---- .../dt-bindings/clock/qcom,mmcc-msm8960.h | 274 ++++----- .../dt-bindings/clock/qcom,qca8k-nsscc.h | 202 +++---- .../dt-bindings/clock/qcom,sm4450-camcc.h | 212 +++---- .../dt-bindings/clock/qcom,sm7150-camcc.h | 226 +++---- .../dt-bindings/clock/qcom,sm8150-camcc.h | 270 ++++----- .../dt-bindings/clock/qcom,sm8450-dispcc.h | 206 +++---- .../dt-bindings/clock/qcom,sm8550-dispcc.h | 202 +++---- .../dt-bindings/clock/qcom,x1e80100-dispcc.h | 196 +++---- .../include/dt-bindings/clock/rk3036-cru.h | 370 ++++++------ .../dt-bindings/clock/samsung,s3c64xx-clock.h | 350 +++++------ .../include/dt-bindings/clock/sophgo,cv1800.h | 352 +++++------ .../dt-bindings/clock/stm32mp13-clks.h | 458 +++++++-------- .../include/dt-bindings/clock/sun20i-d1-ccu.h | 316 +++++----- .../dt-bindings/clock/sun50i-a64-ccu.h | 280 ++++----- .../dt-bindings/clock/sun8i-a23-a33-ccu.h | 258 ++++---- .../dt-bindings/clock/sun8i-a83t-ccu.h | 280 ++++----- .../include/dt-bindings/clock/sun8i-v3s-ccu.h | 222 +++---- .../dt-bindings/gce/mediatek,mt6795-gce.h | 246 ++++---- .../gpio/amlogic,t7-periphs-pinctrl.h | 358 ++++++------ .../dt-bindings/iio/qcom,spmi-adc7-pm7325.h | 138 ++--- .../dt-bindings/iio/qcom,spmi-adc7-pm8350.h | 130 ++--- .../dt-bindings/interconnect/qcom,msm8974.h | 292 +++++----- .../dt-bindings/interconnect/qcom,msm8996.h | 326 +++++------ .../dt-bindings/interconnect/qcom,sc7180.h | 316 +++++----- .../interconnect/qcom,sdm670-rpmh.h | 272 ++++----- .../dt-bindings/interconnect/qcom,sdm845.h | 300 +++++----- .../dt-bindings/interconnect/qcom,sm6350.h | 296 +++++----- .../interconnect/qcom,sm7150-rpmh.h | 300 +++++----- .../dt-bindings/interconnect/qcom,sm8150.h | 318 +++++----- .../dt-bindings/interconnect/qcom,sm8350.h | 324 +++++------ .../interconnect/qcom,sm8650-rpmh.h | 308 +++++----- .../kernel/include/dt-bindings/leds/common.h | 228 ++++---- .../memory/mediatek,mt8365-larb-port.h | 180 +++--- .../dt-bindings/memory/mt2701-larb-port.h | 154 ++--- .../dt-bindings/memory/mt2712-larb-port.h | 190 +++--- .../dt-bindings/memory/mt6795-larb-port.h | 190 +++--- .../include/dt-bindings/memory/tegra124-mc.h | 250 ++++---- .../include/dt-bindings/memory/tegra30-mc.h | 222 +++---- .../include/dt-bindings/mfd/stm32f4-rcc.h | 216 +++---- .../include/dt-bindings/mfd/stm32f7-rcc.h | 232 ++++---- .../include/dt-bindings/mfd/stm32h7-rcc.h | 272 ++++----- .../reset/amlogic,meson-g12a-reset.h | 278 ++++----- .../reset/amlogic,meson-gxbb-reset.h | 322 +++++----- .../dt-bindings/reset/amlogic,meson8b-reset.h | 252 ++++---- .../dt-bindings/reset/hisi,hi6220-resets.h | 166 +++--- .../include/dt-bindings/reset/imx8mq-reset.h | 134 ++--- .../include/dt-bindings/reset/mt8183-resets.h | 202 +++---- .../include/dt-bindings/reset/mt8195-resets.h | 166 +++--- .../dt-bindings/reset/qcom,gcc-ipq5018.h | 244 ++++---- .../dt-bindings/reset/qcom,gcc-mdm9615.h | 256 ++++---- .../dt-bindings/reset/qcom,gcc-msm8660.h | 252 ++++---- .../dt-bindings/reset/qcom,gcc-msm8960.h | 252 ++++---- .../dt-bindings/reset/realtek,rtd1295.h | 228 ++++---- .../dt-bindings/reset/st,stm32mp25-rcc.h | 334 +++++------ .../dt-bindings/reset/starfive-jh7100.h | 252 ++++---- .../dt-bindings/reset/sun50i-a64-ccu.h | 196 +++---- .../include/dt-bindings/reset/sun6i-a31-ccu.h | 212 +++---- .../include/dt-bindings/reset/sun8i-h3-ccu.h | 212 +++---- .../include/dt-bindings/reset/sun8i-r40-ccu.h | 260 ++++----- .../include/dt-bindings/reset/sun9i-a80-ccu.h | 204 +++---- .../dt-bindings/reset/xlnx-versal-resets.h | 210 +++---- .../dt-bindings/reset/xlnx-zynqmp-resets.h | 260 ++++----- .../include/dt-bindings/watchdog/aspeed-wdt.h | 184 +++--- .../kernel/include/keys/system_keyring.h | 266 ++++----- .../UFI003_MB_V02/kernel/include/kunit/of.h | 230 ++++---- .../kernel/include/kunit/static_stub.h | 226 +++---- .../kernel/include/kvm/arm_arch_timer.h | 310 +++++----- .../kernel/include/linux/agp_backend.h | 218 +++---- .../kernel/include/linux/agpgart.h | 256 ++++---- .../kernel/include/linux/amba/pl08x.h | 260 ++++----- .../kernel/include/linux/async.h | 248 ++++---- .../kernel/include/linux/bcm963xx_tag.h | 206 +++---- .../include/linux/bcma/bcma_driver_gmac_cmn.h | 190 +++--- .../kernel/include/linux/bio-integrity.h | 304 +++++----- .../kernel/include/linux/blk-crypto.h | 270 ++++----- .../kernel/include/linux/blk-integrity.h | 308 +++++----- .../kernel/include/linux/blktrace_api.h | 262 ++++----- .../kernel/include/linux/btree-type.h | 296 +++++----- .../kernel/include/linux/ceph/mon_client.h | 304 +++++----- .../kernel/include/linux/cnt32_to_63.h | 208 +++---- .../kernel/include/linux/compiler-gcc.h | 278 ++++----- .../kernel/include/linux/completion.h | 244 ++++---- .../kernel/include/linux/component.h | 262 ++++----- .../kernel/include/linux/connector.h | 280 ++++----- .../include/linux/context_tracking_state.h | 296 +++++----- .../UFI003_MB_V02/kernel/include/linux/crc8.h | 202 +++---- .../kernel/include/linux/debugobjects.h | 228 ++++---- .../kernel/include/linux/devcoredump.h | 252 ++++---- .../kernel/include/linux/dm-dirty-log.h | 294 +++++----- .../kernel/include/linux/dma-direct.h | 300 +++++----- .../kernel/include/linux/dma-fence-chain.h | 262 ++++----- .../kernel/include/linux/dma/edma.h | 240 ++++---- .../kernel/include/linux/dma/imx-dma.h | 206 +++---- .../UFI003_MB_V02/kernel/include/linux/dmi.h | 308 +++++----- .../UFI003_MB_V02/kernel/include/linux/dtlk.h | 172 +++--- .../kernel/include/linux/ecryptfs.h | 212 +++---- .../kernel/include/linux/elfcore.h | 272 ++++----- .../kernel/include/linux/elfnote.h | 198 +++---- .../kernel/include/linux/enclosure.h | 270 ++++----- .../UFI003_MB_V02/kernel/include/linux/err.h | 254 ++++---- .../kernel/include/linux/ethtool_netlink.h | 278 ++++----- .../kernel/include/linux/execmem.h | 270 ++++----- .../kernel/include/linux/extcon-provider.h | 268 ++++----- .../kernel/include/linux/fdtable.h | 246 ++++---- .../UFI003_MB_V02/kernel/include/linux/file.h | 268 ++++----- .../include/linux/firmware/cirrus/wmfw.h | 406 ++++++------- .../kernel/include/linux/fixp-arith.h | 328 +++++------ .../kernel/include/linux/fprobe.h | 248 ++++---- .../kernel/include/linux/fsl-diu-fb.h | 336 +++++------ .../kernel/include/linux/fsl_devices.h | 310 +++++----- .../kernel/include/linux/gpio/machine.h | 254 ++++---- .../kernel/include/linux/gpio/regmap.h | 188 +++--- .../kernel/include/linux/greybus.h | 244 ++++---- .../kernel/include/linux/greybus/connection.h | 262 ++++----- .../kernel/include/linux/hardirq.h | 286 ++++----- .../UFI003_MB_V02/kernel/include/linux/hmm.h | 232 ++++---- .../kernel/include/linux/hrtimer_defs.h | 264 ++++----- .../kernel/include/linux/hw_breakpoint.h | 290 ++++----- .../kernel/include/linux/i2c-atr.h | 232 ++++---- .../kernel/include/linux/if_fddi.h | 234 ++++---- .../UFI003_MB_V02/kernel/include/linux/igmp.h | 286 ++++----- .../linux/iio/common/cros_ec_sensors_core.h | 260 ++++----- .../include/linux/iio/frequency/adf4350.h | 246 ++++---- .../kernel/include/linux/iio/gyro/itg3200.h | 308 +++++----- .../kernel/include/linux/iio/iio-opaque.h | 164 +++--- .../kernel/include/linux/input/mt.h | 258 ++++---- .../include/linux/intel-ish-client-if.h | 248 ++++---- .../kernel/include/linux/intel_vsec.h | 300 +++++----- .../kernel/include/linux/interconnect.h | 276 ++++----- .../kernel/include/linux/io_uring/cmd.h | 232 ++++---- .../kernel/include/linux/iocontext.h | 276 ++++----- .../kernel/include/linux/iommufd.h | 228 ++++---- .../UFI003_MB_V02/kernel/include/linux/iova.h | 340 +++++------ .../kernel/include/linux/irqbypass.h | 174 +++--- .../kernel/include/linux/irqchip/arm-gic-v4.h | 320 +++++----- .../kernel/include/linux/irqchip/irq-madera.h | 264 ++++----- .../UFI003_MB_V02/kernel/include/linux/isa.h | 210 +++---- .../kernel/include/linux/iscsi_boot_sysfs.h | 278 ++++----- .../kernel/include/linux/kallsyms.h | 350 +++++------ .../kernel/include/linux/kbd_kern.h | 272 ++++----- .../kernel/include/linux/kernel_stat.h | 288 ++++----- .../UFI003_MB_V02/kernel/include/linux/ksm.h | 310 +++++----- .../UFI003_MB_V02/kernel/include/linux/lcd.h | 242 ++++---- .../kernel/include/linux/led-lm3530.h | 240 ++++---- .../kernel/include/linux/list_nulls.h | 290 ++++----- .../include/linux/local_lock_internal.h | 344 +++++------ .../UFI003_MB_V02/kernel/include/linux/lwq.h | 248 ++++---- .../UFI003_MB_V02/kernel/include/linux/mcb.h | 264 ++++----- .../kernel/include/linux/mdio/mdio-xgene.h | 268 ++++----- .../kernel/include/linux/memory-tiers.h | 310 +++++----- .../kernel/include/linux/mempool.h | 254 ++++---- .../kernel/include/linux/mfd/aat2870.h | 334 +++++------ .../kernel/include/linux/mfd/adp5585.h | 252 ++++---- .../kernel/include/linux/mfd/bd9571mwv.h | 218 +++---- .../kernel/include/linux/mfd/core.h | 302 +++++----- .../kernel/include/linux/mfd/cs40l50.h | 274 ++++----- .../kernel/include/linux/mfd/dln2.h | 208 +++---- .../kernel/include/linux/mfd/ipaq-micro.h | 298 +++++----- .../kernel/include/linux/mfd/kempld.h | 252 ++++---- .../kernel/include/linux/mfd/khadas-mcu.h | 182 +++--- .../include/linux/mfd/max8998-private.h | 338 +++++------ .../kernel/include/linux/mfd/mt6358/core.h | 312 +++++----- .../kernel/include/linux/mfd/mt6359/core.h | 266 ++++----- .../kernel/include/linux/mfd/pcf50633/mbc.h | 260 ++++----- .../kernel/include/linux/mfd/rohm-bd957x.h | 280 ++++----- .../kernel/include/linux/mfd/samsung/core.h | 290 ++++----- .../kernel/include/linux/mfd/samsung/rtc.h | 266 ++++----- .../include/linux/mfd/samsung/s2mpa01.h | 350 +++++------ .../include/linux/mfd/samsung/s2mps11.h | 396 ++++++------- .../include/linux/mfd/samsung/s2mps13.h | 354 +++++------ .../include/linux/mfd/samsung/s2mpu02.h | 378 ++++++------ .../include/linux/mfd/samsung/s5m8767.h | 410 ++++++------- .../kernel/include/linux/mfd/stmfx.h | 244 ++++---- .../kernel/include/linux/mfd/stmpe.h | 326 +++++------ .../kernel/include/linux/mfd/sun4i-gpadc.h | 194 +++--- .../include/linux/mfd/syscon/atmel-matrix.h | 224 +++---- .../kernel/include/linux/mfd/tc3589x.h | 314 +++++----- .../kernel/include/linux/mfd/tps65086.h | 240 ++++---- .../kernel/include/linux/mfd/tps65090.h | 298 +++++----- .../kernel/include/linux/mfd/tps68470.h | 194 +++--- .../kernel/include/linux/mfd/wm831x/pdata.h | 286 ++++----- .../kernel/include/linux/mfd/wm8350/supply.h | 258 ++++---- .../kernel/include/linux/mfd/wm8994/gpio.h | 142 ++--- .../kernel/include/linux/mii_timestamper.h | 246 ++++---- .../kernel/include/linux/misc_cgroup.h | 280 ++++----- .../kernel/include/linux/miscdevice.h | 222 +++---- .../kernel/include/linux/mlx5/transobj.h | 178 +++--- .../kernel/include/linux/mmdebug.h | 258 ++++---- .../kernel/include/linux/moduleloader.h | 250 ++++---- .../kernel/include/linux/mount.h | 252 ++++---- .../kernel/include/linux/mtd/partitions.h | 230 ++++---- .../linux/netfilter/nf_conntrack_h323_asn1.h | 194 +++--- .../include/linux/netfilter_bridge/ebtables.h | 254 ++++---- .../kernel/include/linux/netfilter_netdev.h | 300 +++++----- .../kernel/include/linux/nfs_iostat.h | 244 ++++---- .../kernel/include/linux/nl802154.h | 346 +++++------ .../kernel/include/linux/nsproxy.h | 256 ++++---- .../kernel/include/linux/ntb_transport.h | 172 +++--- .../kernel/include/linux/nvram.h | 266 ++++----- .../kernel/include/linux/of_fdt.h | 196 +++---- .../kernel/include/linux/of_graph.h | 254 ++++---- .../kernel/include/linux/of_irq.h | 252 ++++---- .../kernel/include/linux/of_mdio.h | 308 +++++----- .../kernel/include/linux/of_platform.h | 260 ++++----- .../kernel/include/linux/page-flags-layout.h | 230 ++++---- .../kernel/include/linux/page_table_check.h | 298 +++++----- .../kernel/include/linux/pci-acpi.h | 282 ++++----- .../kernel/include/linux/pci-ecam.h | 196 +++---- .../kernel/include/linux/pci_hotplug.h | 222 +++---- .../kernel/include/linux/percpu-rwsem.h | 318 +++++----- .../kernel/include/linux/pfn_t.h | 262 ++++----- .../kernel/include/linux/pinctrl/pinmux.h | 168 +++--- .../include/linux/platform_data/ad7793.h | 222 +++---- .../include/linux/platform_data/adau17x1.h | 216 +++---- .../include/linux/platform_data/dma-iop32x.h | 220 +++---- .../include/linux/platform_data/emif_plat.h | 252 ++++---- .../linux/platform_data/keyboard-spear.h | 328 +++++------ .../include/linux/platform_data/lp855x.h | 290 ++++----- .../include/linux/platform_data/mmc-omap.h | 236 ++++---- .../include/linux/platform_data/si5351.h | 234 ++++---- .../include/linux/platform_data/tsl2772.h | 202 +++---- .../UFI003_MB_V02/kernel/include/linux/poll.h | 302 +++++----- .../kernel/include/linux/posix_acl.h | 334 +++++------ .../kernel/include/linux/qed/qed_fcoe_if.h | 300 +++++----- .../kernel/include/linux/qed/storage_common.h | 314 +++++----- .../kernel/include/linux/qnx6_fs.h | 270 ++++----- .../kernel/include/linux/randomize_kstack.h | 196 +++---- .../kernel/include/linux/rcu_node_tree.h | 184 +++--- .../kernel/include/linux/rculist_bl.h | 202 +++---- .../kernel/include/linux/reciprocal_div.h | 208 +++---- .../kernel/include/linux/regulator/coupler.h | 200 +++---- .../kernel/include/linux/reset-controller.h | 236 ++++---- .../kernel/include/linux/rhashtable-types.h | 284 ++++----- .../kernel/include/linux/rslib.h | 260 ++++----- .../kernel/include/linux/rtmutex.h | 244 ++++---- .../kernel/include/linux/rwlock.h | 258 ++++---- .../kernel/include/linux/rwlock_rt.h | 300 +++++----- .../kernel/include/linux/sched/coredump.h | 220 +++---- .../kernel/include/linux/screen_info.h | 290 ++++----- .../kernel/include/linux/seq_buf.h | 352 +++++------ .../kernel/include/linux/sh_dma.h | 224 +++---- .../kernel/include/linux/sh_intc.h | 306 +++++----- .../kernel/include/linux/shdma-base.h | 268 ++++----- .../kernel/include/linux/sm501.h | 340 +++++------ .../kernel/include/linux/soc/ixp4xx/cpu.h | 240 ++++---- .../kernel/include/linux/soc/ti/omap1-soc.h | 326 +++++------ .../kernel/include/linux/soc/ti/omap1-usb.h | 232 ++++---- .../kernel/include/linux/sockptr.h | 340 +++++------ .../kernel/include/linux/spinlock_api_up.h | 184 +++--- .../kernel/include/linux/spinlock_rt.h | 316 +++++----- .../kernel/include/linux/splice.h | 222 +++---- .../kernel/include/linux/stacktrace.h | 222 +++---- .../kernel/include/linux/string_helpers.h | 246 ++++---- .../kernel/include/linux/sungem_phy.h | 270 ++++----- .../kernel/include/linux/sunrpc/metrics.h | 216 +++---- .../kernel/include/linux/sunrpc/rpc_pipe_fs.h | 276 ++++----- .../UFI003_MB_V02/kernel/include/linux/svga.h | 250 ++++---- .../kernel/include/linux/tboot.h | 282 ++++----- .../UFI003_MB_V02/kernel/include/linux/tc.h | 284 ++++----- .../kernel/include/linux/time_namespace.h | 340 +++++------ .../UFI003_MB_V02/kernel/include/linux/tnum.h | 242 ++++---- .../kernel/include/linux/tracefs.h | 218 +++---- .../UFI003_MB_V02/kernel/include/linux/tsm.h | 224 +++---- .../kernel/include/linux/uacce.h | 322 +++++----- .../kernel/include/linux/uidgid.h | 390 ++++++------- .../kernel/include/linux/ulpi/regs.h | 262 ++++----- .../kernel/include/linux/usb/chipidea.h | 230 ++++---- .../kernel/include/linux/usb/irda.h | 326 +++++------ .../kernel/include/linux/usb/ljca.h | 290 ++++----- .../kernel/include/linux/usb/midi-v2.h | 188 +++--- .../kernel/include/linux/usb/renesas_usbhs.h | 394 ++++++------- .../kernel/include/linux/usb/role.h | 252 ++++---- .../kernel/include/linux/usb_usual.h | 202 +++---- .../kernel/include/linux/vm_event_item.h | 390 ++++++------- .../kernel/include/linux/watch_queue.h | 266 ++++----- .../kernel/include/linux/xattr.h | 264 ++++----- .../kernel/include/linux/zorro.h | 276 ++++----- .../kernel/include/math-emu/op-8.h | 214 +++---- .../kernel/include/math-emu/single.h | 232 ++++---- .../kernel/include/media/dvb_ca_en50221.h | 284 ++++----- .../kernel/include/media/i2c/adp1653.h | 228 ++++---- .../kernel/include/media/i2c/adv7604.h | 314 +++++----- .../kernel/include/media/i2c/saa7115.h | 256 ++++---- .../kernel/include/media/i2c/tc358743.h | 234 ++++---- .../kernel/include/media/ipu-bridge.h | 364 ++++++------ .../kernel/include/media/tveeprom.h | 232 ++++---- .../kernel/include/media/v4l2-fh.h | 322 +++++----- .../UFI003_MB_V02/kernel/include/media/vsp1.h | 240 ++++---- .../kernel/include/misc/cxllib.h | 258 ++++---- .../kernel/include/net/af_rxrpc.h | 170 +++--- .../kernel/include/net/af_unix.h | 256 ++++---- .../kernel/include/net/bluetooth/hci_sock.h | 352 +++++------ .../kernel/include/net/caif/caif_dev.h | 256 ++++---- .../kernel/include/net/caif/cfctrl.h | 260 ++++----- .../UFI003_MB_V02/kernel/include/net/gre.h | 294 +++++----- .../UFI003_MB_V02/kernel/include/net/gue.h | 240 ++++---- .../kernel/include/net/inet_timewait_sock.h | 248 ++++---- .../kernel/include/net/inetpeer.h | 300 +++++----- .../kernel/include/net/ipv6_frag.h | 290 ++++----- .../kernel/include/net/ipv6_stubs.h | 204 +++---- .../kernel/include/net/iucv/af_iucv.h | 328 +++++------ .../kernel/include/net/lib80211.h | 244 ++++---- .../kernel/include/net/libeth/tx.h | 258 ++++---- .../kernel/include/net/llc_conn.h | 240 ++++---- .../kernel/include/net/mana/hw_channel.h | 400 ++++++------- .../net/netfilter/nf_conntrack_expect.h | 276 ++++----- .../kernel/include/net/netfilter/nf_nat.h | 238 ++++---- .../kernel/include/net/netfilter/nf_queue.h | 258 ++++---- .../UFI003_MB_V02/kernel/include/net/netmem.h | 348 +++++------ .../kernel/include/net/netns/ipv6.h | 260 ++++----- .../kernel/include/net/phonet/pep.h | 318 +++++----- .../kernel/include/net/phonet/phonet.h | 266 ++++----- .../UFI003_MB_V02/kernel/include/net/pie.h | 270 ++++----- .../kernel/include/net/protocol.h | 238 ++++---- .../UFI003_MB_V02/kernel/include/net/rps.h | 306 +++++----- .../kernel/include/net/sctp/auth.h | 226 +++---- .../kernel/include/net/strparser.h | 344 +++++------ .../kernel/include/rdma/ib_cache.h | 234 ++++---- .../kernel/include/rdma/ib_pma.h | 260 ++++----- .../kernel/include/rdma/ib_umem_odp.h | 230 ++++---- .../kernel/include/rdma/rdma_netlink.h | 274 ++++----- .../kernel/include/rdma/rdmavt_mr.h | 310 +++++----- .../kernel/include/rdma/restrack.h | 358 ++++++------ .../kernel/include/scsi/fc/fc_encaps.h | 252 ++++---- .../kernel/include/scsi/fc/fc_fc2.h | 222 +++---- .../kernel/include/scsi/libiscsi_tcp.h | 252 ++++---- .../kernel/include/scsi/sas_ata.h | 268 ++++----- .../kernel/include/scsi/scsi_devinfo.h | 174 +++--- .../kernel/include/soc/at91/at91sam9_sdramc.h | 162 +++--- .../kernel/include/soc/fsl/dpaa2-global.h | 384 ++++++------ .../kernel/include/soc/fsl/qe/qmc.h | 234 ++++---- .../kernel/include/sound/ac97/codec.h | 226 +++---- .../kernel/include/sound/emu8000.h | 210 +++---- .../kernel/include/sound/intel-nhlt.h | 398 ++++++------- .../kernel/include/sound/memalloc.h | 240 ++++---- .../kernel/include/sound/minors.h | 194 +++--- .../kernel/include/sound/mpu401.h | 246 ++++---- .../kernel/include/sound/seq_kernel.h | 204 +++---- .../kernel/include/sound/soc-card.h | 250 ++++---- .../kernel/include/sound/soc-jack.h | 260 ++++----- .../kernel/include/sound/sof/ext_manifest.h | 246 ++++---- .../kernel/include/sound/sof/ext_manifest4.h | 238 ++++---- .../kernel/include/sound/sof/info.h | 288 ++++----- .../kernel/include/sound/sof/trace.h | 214 +++---- .../kernel/include/sound/soundfont.h | 236 ++++---- .../kernel/include/trace/bpf_probe.h | 250 ++++---- .../kernel/include/trace/define_trace.h | 270 ++++----- .../include/trace/events/firewire_ohci.h | 202 +++---- .../include/trace/events/fsi_master_ast_cf.h | 300 +++++----- .../include/trace/events/fsi_master_gpio.h | 342 +++++------ .../kernel/include/trace/events/i2c.h | 292 +++++----- .../kernel/include/trace/events/ib_umad.h | 252 ++++---- .../kernel/include/trace/events/migrate.h | 294 +++++----- .../include/trace/events/net_probe_common.h | 230 ++++---- .../kernel/include/trace/events/qdisc.h | 306 +++++----- .../kernel/include/trace/events/rpm.h | 298 +++++----- .../kernel/include/trace/events/rtc.h | 412 ++++++------- .../kernel/include/trace/events/rv.h | 284 ++++----- .../kernel/include/trace/events/signal.h | 250 ++++---- .../kernel/include/trace/events/sof_intel.h | 296 +++++----- .../kernel/include/trace/events/spmi.h | 272 ++++----- .../events/vsock_virtio_transport_common.h | 304 +++++----- .../kernel/include/trace/events/wbt.h | 316 +++++----- .../kernel/include/trace/misc/fs.h | 244 ++++---- .../kernel/include/trace/misc/rdma.h | 336 +++++------ .../trace/stages/stage3_trace_output.h | 304 +++++----- .../include/trace/stages/stage5_get_offsets.h | 254 ++++---- .../trace/stages/stage6_event_callback.h | 278 ++++----- .../kernel/include/uapi/asm-generic/ioctl.h | 214 +++---- .../kernel/include/uapi/asm-generic/ioctls.h | 242 ++++---- .../include/uapi/asm-generic/mman-common.h | 180 +++--- .../kernel/include/uapi/asm-generic/socket.h | 338 +++++------ .../include/uapi/asm-generic/termbits.h | 298 +++++----- .../kernel/include/uapi/drm/omap_drm.h | 252 ++++---- .../kernel/include/uapi/drm/qxl_drm.h | 316 +++++----- .../kernel/include/uapi/linux/acct.h | 256 ++++---- .../kernel/include/uapi/linux/agpgart.h | 226 +++---- .../kernel/include/uapi/linux/aio_abi.h | 226 +++---- .../kernel/include/uapi/linux/am437x-vpfe.h | 250 ++++---- .../kernel/include/uapi/linux/apm_bios.h | 276 ++++----- .../kernel/include/uapi/linux/atmmpc.h | 254 ++++---- .../include/uapi/linux/byteorder/big_endian.h | 214 +++---- .../uapi/linux/byteorder/little_endian.h | 214 +++---- .../kernel/include/uapi/linux/can/bcm.h | 210 +++---- .../kernel/include/uapi/linux/can/raw.h | 172 +++--- .../kernel/include/uapi/linux/cn_proc.h | 318 +++++----- .../kernel/include/uapi/linux/cramfs_fs.h | 226 +++---- .../kernel/include/uapi/linux/dns_resolver.h | 232 ++++---- .../kernel/include/uapi/linux/dvb/ca.h | 280 ++++----- .../kernel/include/uapi/linux/ext4.h | 234 ++++---- .../kernel/include/uapi/linux/f2fs.h | 198 +++---- .../kernel/include/uapi/linux/falloc.h | 162 +++--- .../kernel/include/uapi/linux/fsmap.h | 226 +++---- .../kernel/include/uapi/linux/fsverity.h | 206 +++---- .../kernel/include/uapi/linux/icmpv6.h | 358 ++++++------ .../kernel/include/uapi/linux/if_arcnet.h | 260 ++++----- .../kernel/include/uapi/linux/if_fddi.h | 244 ++++---- .../kernel/include/uapi/linux/if_hippi.h | 308 +++++----- .../kernel/include/uapi/linux/if_pppol2tp.h | 210 +++---- .../kernel/include/uapi/linux/if_tun.h | 236 ++++---- .../kernel/include/uapi/linux/inotify.h | 168 +++--- .../kernel/include/uapi/linux/ioprio.h | 254 ++++---- .../kernel/include/uapi/linux/ipmi_msgdefs.h | 208 +++---- .../kernel/include/uapi/linux/ipv6.h | 412 ++++++------- .../kernel/include/uapi/linux/joystick.h | 266 ++++----- .../kernel/include/uapi/linux/loop.h | 240 ++++---- .../kernel/include/uapi/linux/lp.h | 222 +++---- .../kernel/include/uapi/linux/magic.h | 214 +++---- .../kernel/include/uapi/linux/mei.h | 236 ++++---- .../kernel/include/uapi/linux/mptcp.h | 260 ++++----- .../kernel/include/uapi/linux/msg.h | 180 +++--- .../kernel/include/uapi/linux/nbd.h | 216 +++---- .../uapi/linux/netfilter/nfnetlink_queue.h | 260 ++++----- .../uapi/linux/netfilter_ipv6/ip6t_srh.h | 192 +++--- .../kernel/include/uapi/linux/nexthop.h | 314 +++++----- .../kernel/include/uapi/linux/parport.h | 196 +++---- .../kernel/include/uapi/linux/ppdev.h | 206 +++---- .../kernel/include/uapi/linux/raid/md_u.h | 298 +++++----- .../kernel/include/uapi/linux/seg6_local.h | 274 ++++----- .../kernel/include/uapi/linux/shm.h | 222 +++---- .../kernel/include/uapi/linux/sync_file.h | 226 +++---- .../kernel/include/uapi/linux/thermal.h | 190 +++--- .../kernel/include/uapi/linux/usb/midi.h | 226 +++---- .../kernel/include/uapi/linux/virtio_ids.h | 168 +++--- .../kernel/include/uapi/linux/virtio_iommu.h | 342 +++++------ .../kernel/include/uapi/linux/virtio_vsock.h | 208 +++---- .../kernel/include/uapi/linux/watch_queue.h | 208 +++---- .../kernel/include/uapi/linux/x25.h | 306 +++++----- .../kernel/include/uapi/misc/cxl.h | 312 +++++----- .../kernel/include/uapi/misc/fastrpc.h | 286 ++++----- .../kernel/include/uapi/rdma/efa-abi.h | 326 +++++------ .../kernel/include/uapi/rdma/hns-abi.h | 312 +++++----- .../include/uapi/rdma/mlx5_user_ioctl_verbs.h | 236 ++++---- .../kernel/include/uapi/rdma/ocrdma-abi.h | 304 +++++----- .../kernel/include/uapi/rdma/qedr-abi.h | 348 +++++------ .../include/uapi/rdma/rdma_user_ioctl.h | 170 +++--- .../kernel/include/uapi/rdma/siw-abi.h | 372 ++++++------ .../kernel/include/uapi/scsi/fc/fc_ns.h | 392 ++++++------- .../kernel/include/uapi/sound/asound_fm.h | 240 ++++---- .../kernel/include/uapi/sound/sb16_csp.h | 216 +++---- .../include/uapi/sound/skl-tplg-interface.h | 336 +++++------ .../kernel/include/uapi/sound/tlv.h | 212 +++---- .../kernel/include/uapi/xen/evtchn.h | 226 +++---- .../kernel/include/ufs/ufs_quirks.h | 232 ++++---- .../kernel/include/video/trident.h | 294 +++++----- .../UFI003_MB_V02/kernel/include/xen/acpi.h | 214 +++---- .../kernel/include/xen/interface/features.h | 204 +++---- .../kernel/include/xen/interface/hvm/params.h | 218 +++---- .../kernel/include/xen/interface/io/fbif.h | 252 ++++---- .../kernel/include/xen/interface/io/xs_wire.h | 248 ++++---- .../kernel/init/do_mounts_initrd.c | 308 +++++----- .../UFI003_MB_V02/kernel/io_uring/eventfd.c | 322 +++++----- .../UFI003_MB_V02/kernel/io_uring/filetable.c | 350 +++++------ .../UFI003_MB_V02/kernel/io_uring/notif.c | 264 ++++----- .../UFI003_MB_V02/kernel/io_uring/rsrc.h | 292 +++++----- .../UFI003_MB_V02/kernel/ipc/mq_sysctl.c | 334 +++++------ .../debian/UFI003_MB_V02/kernel/ipc/msgutil.c | 390 ++++++------- .../kernel/kernel/bpf/dispatcher.c | 342 +++++------ .../kernel/kernel/bpf/map_in_map.c | 268 ++++----- .../kernel/kernel/cgroup/namespace.c | 302 +++++----- .../debian/UFI003_MB_V02/kernel/kernel/dma.c | 298 +++++----- .../UFI003_MB_V02/kernel/kernel/dma/debug.h | 300 +++++----- .../UFI003_MB_V02/kernel/kernel/dma/direct.h | 250 ++++---- .../kernel/entry/syscall_user_dispatch.c | 328 +++++------ .../UFI003_MB_V02/kernel/kernel/extable.c | 340 +++++------ .../UFI003_MB_V02/kernel/kernel/gcov/base.c | 276 ++++----- .../UFI003_MB_V02/kernel/kernel/irq/Kconfig | 312 +++++----- .../kernel/kernel/irq/affinity.c | 256 ++++---- .../UFI003_MB_V02/kernel/kernel/kcsan/kcsan.h | 284 ++++----- .../kernel/kernel/locking/lock_events.c | 358 ++++++------ .../kernel/kernel/locking/mcs_spinlock.h | 242 ++++---- .../kernel/kernel/module/procfs.c | 304 +++++----- .../kernel/kernel/power/console.c | 314 +++++----- .../kernel/kernel/printk/index.c | 388 ++++++------ .../UFI003_MB_V02/kernel/kernel/sched/ext.h | 186 +++--- .../kernel/kernel/sched/features.h | 248 ++++---- .../UFI003_MB_V02/kernel/kernel/sched/swait.c | 288 ++++----- .../kernel/kernel/time/test_udelay.c | 320 +++++----- .../kernel/kernel/time/tick-oneshot.c | 256 ++++---- .../kernel/kernel/time/tick-sched.h | 248 ++++---- .../kernel/kernel/trace/Makefile | 226 +++---- .../kernel/kernel/trace/trace_clock.c | 316 +++++----- .../kernel/kernel/trace/trace_kdb.c | 324 +++++------ .../kernel/kernel/usermode_driver.c | 382 ++++++------ .../UFI003_MB_V02/kernel/kernel/utsname.c | 354 +++++------ .../kernel/kernel/utsname_sysctl.c | 288 ++++----- .../UFI003_MB_V02/kernel/kernel/vhost_task.c | 328 +++++------ .../UFI003_MB_V02/kernel/lib/Kconfig.kfence | 198 +++---- .../UFI003_MB_V02/kernel/lib/checksum.c | 346 +++++------ .../UFI003_MB_V02/kernel/lib/cmdline_kunit.c | 314 +++++----- .../UFI003_MB_V02/kernel/lib/crypto/Kconfig | 314 +++++----- .../UFI003_MB_V02/kernel/lib/crypto/chacha.c | 228 ++++---- .../kernel/lib/crypto/mpi/mpi-bit.c | 348 +++++------ .../kernel/lib/crypto/poly1305-donna64.c | 368 ++++++------ .../kernel/lib/decompress_unlz4.c | 434 +++++++------- .../UFI003_MB_V02/kernel/lib/dump_stack.c | 262 ++++----- .../UFI003_MB_V02/kernel/lib/earlycpio.c | 282 ++++----- .../debian/UFI003_MB_V02/kernel/lib/errname.c | 450 +++++++------- .../UFI003_MB_V02/kernel/lib/gen_crc32table.c | 284 ++++----- image/debian/UFI003_MB_V02/kernel/lib/glob.c | 250 ++++---- .../UFI003_MB_V02/kernel/lib/globtest.c | 334 +++++------ .../UFI003_MB_V02/kernel/lib/interval_tree.c | 298 +++++----- .../kernel/lib/interval_tree_test.c | 278 ++++----- .../UFI003_MB_V02/kernel/lib/kunit/resource.c | 356 ++++++------ .../kernel/lib/kunit/static_stub.c | 246 ++++---- .../kernel/lib/kunit/try-catch.c | 232 ++++---- image/debian/UFI003_MB_V02/kernel/lib/llist.c | 232 ++++---- .../debian/UFI003_MB_V02/kernel/lib/lockref.c | 386 ++++++------ image/debian/UFI003_MB_V02/kernel/lib/lwq.c | 316 +++++----- .../lib/math/test_mul_u64_u64_div_u64.c | 198 +++---- .../UFI003_MB_V02/kernel/lib/nmi_backtrace.c | 246 ++++---- .../UFI003_MB_V02/kernel/lib/percpu_test.c | 278 ++++----- .../UFI003_MB_V02/kernel/lib/polynomial.c | 216 +++---- .../UFI003_MB_V02/kernel/lib/raid6/altivec.uc | 264 ++++----- .../UFI003_MB_V02/kernel/lib/raid6/int.uc | 294 +++++----- .../UFI003_MB_V02/kernel/lib/raid6/mktables.c | 354 +++++------ .../UFI003_MB_V02/kernel/lib/raid6/mmx.c | 278 ++++----- .../UFI003_MB_V02/kernel/lib/raid6/neon.uc | 306 +++++----- .../UFI003_MB_V02/kernel/lib/raid6/recov.c | 270 ++++----- .../kernel/lib/raid6/test/Makefile | 302 +++++----- .../kernel/lib/raid6/test/test.c | 304 +++++----- .../debian/UFI003_MB_V02/kernel/lib/sg_pool.c | 360 ++++++------ .../kernel/lib/strncpy_from_user.c | 312 +++++----- .../UFI003_MB_V02/kernel/lib/strnlen_user.c | 258 ++++---- .../UFI003_MB_V02/kernel/lib/test_bits.c | 220 +++---- .../kernel/lib/test_dynamic_debug.c | 332 +++++------ .../UFI003_MB_V02/kernel/lib/test_list_sort.c | 246 ++++---- .../UFI003_MB_V02/kernel/lib/test_uuid.c | 268 ++++----- .../debian/UFI003_MB_V02/kernel/lib/ts_kmp.c | 308 +++++----- image/debian/UFI003_MB_V02/kernel/lib/ubsan.h | 310 +++++----- .../UFI003_MB_V02/kernel/lib/ucs2_string.c | 336 +++++------ .../UFI003_MB_V02/kernel/lib/win_minmax.c | 198 +++---- .../kernel/lib/zlib_dfltcc/dfltcc.h | 250 ++++---- .../kernel/lib/zstd/common/cpu.h | 388 ++++++------ .../kernel/lib/zstd/common/debug.h | 202 +++---- .../kernel/lib/zstd/common/error_private.h | 290 ++++----- .../kernel/lib/zstd/compress/hist.h | 150 ++--- .../kernel/lib/zstd/compress/zstd_ldm.h | 222 +++---- .../kernel/lib/zstd/zstd_decompress_module.c | 282 ++++----- .../UFI003_MB_V02/kernel/mm/bootmem_info.c | 256 ++++---- .../UFI003_MB_V02/kernel/mm/damon/Kconfig | 248 ++++---- .../debian/UFI003_MB_V02/kernel/mm/execmem.c | 286 ++++----- .../UFI003_MB_V02/kernel/mm/kasan/tags.c | 296 +++++----- .../debian/UFI003_MB_V02/kernel/mm/memtest.c | 274 ++++----- .../UFI003_MB_V02/kernel/net/6lowpan/core.c | 366 ++++++------ .../UFI003_MB_V02/kernel/net/6lowpan/nhc.c | 338 +++++------ .../UFI003_MB_V02/kernel/net/6lowpan/nhc.h | 266 ++++----- .../UFI003_MB_V02/kernel/net/802/psnap.c | 328 +++++------ .../debian/UFI003_MB_V02/kernel/net/9p/mod.c | 424 +++++++------- .../UFI003_MB_V02/kernel/net/atm/addr.c | 324 +++++------ .../UFI003_MB_V02/kernel/net/atm/atm_sysfs.c | 366 ++++++------ .../debian/UFI003_MB_V02/kernel/net/atm/pvc.c | 324 +++++------ .../kernel/net/ax25/ax25_std_timer.c | 350 +++++------ .../UFI003_MB_V02/kernel/net/ax25/ax25_uid.c | 408 ++++++------- .../kernel/net/ax25/sysctl_net_ax25.c | 362 ++++++------ .../kernel/net/batman-adv/Kconfig | 192 +++--- .../net/batman-adv/bridge_loop_avoidance.h | 264 ++++----- .../kernel/net/batman-adv/gateway_common.c | 228 ++++---- .../kernel/net/batman-adv/hard-interface.h | 244 ++++---- .../kernel/net/batman-adv/hash.h | 314 +++++----- .../UFI003_MB_V02/kernel/net/batman-adv/log.h | 286 ++++----- .../kernel/net/batman-adv/send.h | 232 ++++---- .../kernel/net/bluetooth/bnep/bnep.h | 346 +++++------ .../kernel/net/bridge/br_private_cfm.h | 294 +++++----- .../kernel/net/bridge/br_private_mrp.h | 296 +++++----- .../kernel/net/bridge/br_stp_timer.c | 322 +++++----- .../kernel/net/bridge/netfilter/ebt_arp.c | 276 ++++----- .../kernel/net/bridge/netfilter/ebt_limit.c | 258 ++++---- .../net/bridge/netfilter/ebtable_broute.c | 276 ++++----- .../UFI003_MB_V02/kernel/net/caif/cfserl.c | 384 ++++++------ .../UFI003_MB_V02/kernel/net/can/af_can.h | 206 +++---- .../UFI003_MB_V02/kernel/net/ceph/pagelist.c | 342 +++++------ .../UFI003_MB_V02/kernel/net/ceph/pagevec.c | 332 +++++------ .../UFI003_MB_V02/kernel/net/core/dst_cache.c | 372 ++++++------ .../kernel/net/core/netclassid_cgroup.c | 304 +++++----- .../kernel/net/dccp/ccids/ccid2.h | 242 ++++---- .../net/dccp/ccids/lib/packet_history.h | 284 ++++----- .../UFI003_MB_V02/kernel/net/dccp/qpolicy.c | 272 ++++----- .../kernel/net/dsa/tag_lan9303.c | 252 ++++---- .../kernel/net/dsa/tag_ocelot_8021q.c | 280 ++++----- .../UFI003_MB_V02/kernel/net/ethtool/cmis.h | 246 ++++---- .../kernel/net/ethtool/linkinfo.c | 290 ++++----- .../UFI003_MB_V02/kernel/net/ethtool/wol.c | 316 +++++----- .../kernel/net/hsr/hsr_debugfs.c | 252 ++++---- .../UFI003_MB_V02/kernel/net/hsr/hsr_main.c | 356 ++++++------ .../kernel/net/ieee802154/netlink.c | 296 +++++----- .../kernel/net/ieee802154/nl_policy.c | 148 ++--- .../kernel/net/ipv4/ip_forward.c | 362 ++++++------ .../kernel/net/ipv4/netfilter/ipt_ECN.c | 266 ++++----- .../kernel/net/ipv4/netfilter/ipt_rpfilter.c | 254 ++++---- .../net/ipv4/netfilter/iptable_mangle.c | 288 ++++----- .../kernel/net/ipv4/netfilter/iptable_nat.c | 350 +++++------ .../net/ipv4/netfilter/nf_defrag_ipv4.c | 378 ++++++------ .../net/ipv4/netfilter/nf_socket_ipv4.c | 306 +++++----- .../net/ipv4/netfilter/nf_tproxy_ipv4.c | 308 +++++----- .../UFI003_MB_V02/kernel/net/ipv4/tcp_plb.c | 218 +++---- .../UFI003_MB_V02/kernel/net/ipv4/tcp_ulp.c | 336 +++++------ .../UFI003_MB_V02/kernel/net/ipv4/udp_bpf.c | 314 +++++----- .../UFI003_MB_V02/kernel/net/ipv4/udplite.c | 272 ++++----- .../kernel/net/ipv6/ila/ila_common.c | 310 +++++----- .../kernel/net/ipv6/inet6_connection_sock.c | 308 +++++----- .../kernel/net/ipv6/ip6_checksum.c | 274 ++++----- .../kernel/net/ipv6/netfilter/ip6t_frag.c | 264 ++++----- .../net/ipv6/netfilter/ip6t_ipv6header.c | 306 +++++----- .../kernel/net/ipv6/netfilter/ip6t_rpfilter.c | 300 +++++----- .../kernel/net/ipv6/netfilter/ip6t_rt.c | 382 ++++++------ .../net/ipv6/netfilter/ip6table_mangle.c | 274 ++++----- .../kernel/net/ipv6/netfilter/ip6table_nat.c | 354 +++++------ .../net/ipv6/netfilter/nf_defrag_ipv6_hooks.c | 370 ++++++------ .../net/ipv6/netfilter/nf_tproxy_ipv6.c | 306 +++++----- .../kernel/net/ipv6/output_core.c | 318 +++++----- .../UFI003_MB_V02/kernel/net/ipv6/udplite.c | 280 ++++----- .../UFI003_MB_V02/kernel/net/l2tp/Kconfig | 220 +++---- .../UFI003_MB_V02/kernel/net/llc/llc_core.c | 318 +++++----- .../UFI003_MB_V02/kernel/net/llc/llc_s_ev.c | 230 ++++---- .../kernel/net/llc/llc_station.c | 252 ++++---- .../kernel/net/mac802154/mac_cmd.c | 288 ++++----- .../UFI003_MB_V02/kernel/net/mptcp/sched.c | 390 ++++++------- .../kernel/net/mptcp/syncookies.c | 266 ++++----- .../kernel/net/mptcp/token_test.c | 302 +++++----- .../net/netfilter/ipset/ip_set_getport.c | 300 +++++----- .../kernel/net/netfilter/ipvs/ip_vs_nq.c | 278 ++++----- .../net/netfilter/ipvs/ip_vs_proto_ah_esp.c | 314 +++++----- .../kernel/net/netfilter/ipvs/ip_vs_rr.c | 252 ++++---- .../kernel/net/netfilter/ipvs/ip_vs_sed.c | 280 ++++----- .../kernel/net/netfilter/ipvs/ip_vs_twos.c | 280 ++++----- .../kernel/net/netfilter/nf_conntrack_tftp.c | 282 ++++----- .../net/netfilter/nf_conntrack_timeout.c | 292 +++++----- .../kernel/net/netfilter/nf_flow_table_xdp.c | 294 +++++----- .../kernel/net/netfilter/nf_nat_ftp.c | 276 ++++----- .../kernel/net/netfilter/nf_nat_ovs.c | 272 ++++----- .../kernel/net/netfilter/nf_nat_redirect.c | 276 ++++----- .../kernel/net/netfilter/nft_chain_nat.c | 298 +++++----- .../kernel/net/netfilter/nft_chain_route.c | 338 +++++------ .../kernel/net/netfilter/nft_last.c | 276 ++++----- .../kernel/net/netfilter/nft_osf.c | 378 ++++++------ .../kernel/net/netfilter/nft_range.c | 300 +++++----- .../kernel/net/netfilter/nft_reject.c | 266 ++++----- .../kernel/net/netfilter/xt_AUDIT.c | 316 +++++----- .../kernel/net/netfilter/xt_CONNSECMARK.c | 306 +++++----- .../kernel/net/netfilter/xt_DSCP.c | 322 +++++----- .../kernel/net/netfilter/xt_HL.c | 318 +++++----- .../kernel/net/netfilter/xt_MASQUERADE.c | 256 ++++---- .../kernel/net/netfilter/xt_NFQUEUE.c | 316 +++++----- .../kernel/net/netfilter/xt_REDIRECT.c | 248 ++++---- .../kernel/net/netfilter/xt_TCPOPTSTRIP.c | 306 +++++----- .../kernel/net/netfilter/xt_bpf.c | 306 +++++----- .../kernel/net/netfilter/xt_dccp.c | 370 ++++++------ .../kernel/net/netfilter/xt_ecn.c | 352 +++++------ .../kernel/net/netfilter/xt_iprange.c | 274 ++++----- .../kernel/net/netfilter/xt_ipvs.c | 382 ++++++------ .../kernel/net/netfilter/xt_owner.c | 316 +++++----- .../kernel/net/netfilter/xt_physdev.c | 278 ++++----- .../kernel/net/netfilter/xt_rateest.c | 306 +++++----- .../kernel/net/netlabel/netlabel_calipso.h | 274 ++++----- .../kernel/net/netlabel/netlabel_cipso_v4.h | 304 +++++----- .../UFI003_MB_V02/kernel/net/netrom/nr_dev.c | 356 ++++++------ .../kernel/net/netrom/sysctl_net_netrom.c | 312 +++++----- .../UFI003_MB_V02/kernel/net/nfc/hci/hcp.c | 272 ++++----- .../debian/UFI003_MB_V02/kernel/net/nsh/nsh.c | 306 +++++----- .../kernel/net/openvswitch/vport-vxlan.c | 338 +++++------ .../kernel/net/packet/internal.h | 328 +++++------ .../kernel/net/phonet/datagram.c | 392 ++++++------- .../UFI003_MB_V02/kernel/net/qrtr/mhi.c | 366 ++++++------ .../UFI003_MB_V02/kernel/net/qrtr/tun.c | 352 +++++------ .../UFI003_MB_V02/kernel/net/rds/ib_sysctl.c | 240 ++++---- .../UFI003_MB_V02/kernel/net/rds/sysctl.c | 218 +++---- .../UFI003_MB_V02/kernel/net/rxrpc/net_ns.c | 248 ++++---- .../kernel/net/rxrpc/server_key.c | 342 +++++------ .../UFI003_MB_V02/kernel/net/rxrpc/sysctl.c | 290 ++++----- .../UFI003_MB_V02/kernel/net/sched/Makefile | 166 +++--- .../UFI003_MB_V02/kernel/net/sched/em_text.c | 312 +++++----- .../UFI003_MB_V02/kernel/net/sched/sch_frag.c | 304 +++++----- .../kernel/net/sched/sch_mqprio_lib.c | 264 ++++----- .../UFI003_MB_V02/kernel/net/sctp/debug.c | 340 +++++------ .../UFI003_MB_V02/kernel/net/smc/smc_ib.h | 238 ++++---- .../UFI003_MB_V02/kernel/net/smc/smc_inet.c | 352 +++++------ .../UFI003_MB_V02/kernel/net/smc/smc_llc.h | 240 ++++---- .../kernel/net/smc/smc_netlink.c | 314 +++++----- .../UFI003_MB_V02/kernel/net/smc/smc_sysctl.c | 306 +++++----- .../UFI003_MB_V02/kernel/net/smc/smc_wr.h | 278 ++++----- .../UFI003_MB_V02/kernel/net/sunrpc/Kconfig | 234 ++++---- .../net/sunrpc/auth_gss/gss_krb5_seal.c | 266 ++++----- .../net/sunrpc/auth_gss/gss_krb5_unseal.c | 252 ++++---- .../kernel/net/sunrpc/auth_tls.c | 350 +++++------ .../UFI003_MB_V02/kernel/net/sunrpc/sysctl.c | 360 ++++++------ .../UFI003_MB_V02/kernel/net/tipc/addr.c | 248 ++++---- .../UFI003_MB_V02/kernel/net/tipc/addr.h | 270 ++++----- .../UFI003_MB_V02/kernel/net/tipc/diag.c | 236 ++++---- .../UFI003_MB_V02/kernel/net/tipc/eth_media.c | 196 +++---- .../UFI003_MB_V02/kernel/net/tipc/group.h | 154 ++--- .../UFI003_MB_V02/kernel/net/tipc/ib_media.c | 208 +++---- .../UFI003_MB_V02/kernel/net/tipc/monitor.h | 166 +++--- .../kernel/net/tipc/name_distr.h | 158 ++--- .../UFI003_MB_V02/kernel/net/tipc/socket.h | 160 ++--- .../UFI003_MB_V02/kernel/net/tipc/sysctl.c | 214 +++---- .../UFI003_MB_V02/kernel/net/tls/tls_toe.c | 282 ++++----- .../UFI003_MB_V02/kernel/net/tls/trace.h | 404 ++++++------- .../UFI003_MB_V02/kernel/net/vmw_vsock/diag.c | 360 ++++++------ .../kernel/net/vmw_vsock/vmci_transport.h | 260 ++++----- .../kernel/net/vmw_vsock/vsock_bpf.c | 350 +++++------ .../kernel/net/wireless/certs/sforshee.hex | 172 +++--- .../kernel/net/wireless/certs/wens.hex | 174 +++--- .../UFI003_MB_V02/kernel/net/wireless/of.c | 276 ++++----- .../UFI003_MB_V02/kernel/net/wireless/sysfs.c | 362 ++++++------ .../kernel/net/wireless/wext-proc.c | 284 ++++----- .../UFI003_MB_V02/kernel/net/x25/x25_dev.c | 432 +++++++------- .../kernel/net/x25/x25_forward.c | 314 +++++----- .../UFI003_MB_V02/kernel/net/x25/x25_route.c | 408 ++++++------- .../UFI003_MB_V02/kernel/net/x25/x25_timer.c | 338 +++++------ .../UFI003_MB_V02/kernel/net/xfrm/Kconfig | 282 ++++----- .../kernel/net/xfrm/xfrm_state_bpf.c | 268 ++++----- .../kernel/rust/kernel/block/mq.rs | 196 +++---- .../kernel/rust/kernel/device.rs | 192 +++--- .../kernel/rust/kernel/firmware.rs | 242 ++++---- .../UFI003_MB_V02/kernel/rust/kernel/lib.rs | 304 +++++----- .../kernel/rust/kernel/list/arc_field.rs | 192 +++--- .../kernel/rust/kernel/sync/lock/mutex.rs | 236 ++++---- .../kernel/rust/kernel/sync/lock/spinlock.rs | 234 ++++---- .../UFI003_MB_V02/kernel/rust/macros/paste.rs | 208 +++---- .../kernel/rust/macros/vtable.rs | 192 +++--- .../kernel/samples/acrn/vm-sample.c | 264 ++++----- .../kernel/samples/bpf/README.rst | 242 ++++---- .../kernel/samples/bpf/fds_example.c | 390 ++++++------- .../kernel/samples/bpf/ibumad_user.c | 316 +++++----- .../kernel/samples/bpf/offwaketime.bpf.c | 282 ++++----- .../kernel/samples/bpf/parse_varlen.c | 300 +++++----- .../kernel/samples/bpf/syscall_tp_user.c | 310 +++++----- .../kernel/samples/bpf/test_cgrp2_tc.sh | 374 ++++++------ .../kernel/samples/bpf/test_map_in_map.bpf.c | 344 +++++------ .../kernel/samples/bpf/test_map_in_map_user.c | 336 +++++------ .../samples/bpf/test_probe_write_user_user.c | 216 +++---- .../kernel/samples/bpf/tracex3_user.c | 366 ++++++------ .../kernel/samples/bpf/xdp_adjust_tail_kern.c | 312 +++++----- .../kernel/samples/bpf/xdp_router_ipv4.bpf.c | 378 ++++++------ .../kernel/samples/bpf/xdp_sample.bpf.h | 242 ++++---- .../kernel/samples/connector/cn_test.c | 376 ++++++------ .../kernel/samples/fprobe/fprobe_example.c | 308 +++++----- .../samples/ftrace/ftrace-direct-multi.c | 328 +++++------ .../kernel/samples/ftrace/ftrace-direct-too.c | 350 +++++------ .../kernel/samples/ftrace/ftrace-direct.c | 312 +++++----- .../samples/ftrace/sample-trace-array.c | 286 ++++----- .../kernel/samples/hidraw/hid-example.c | 364 ++++++------ .../kernel/samples/kfifo/bytestream-example.c | 392 ++++++------- .../kernel/samples/kfifo/dma-example.c | 288 ++++----- .../kernel/samples/kfifo/inttype-example.c | 374 ++++++------ .../kernel/samples/kfifo/record-example.c | 406 ++++++------- .../kernel/samples/kobject/kobject-example.c | 290 ++++----- .../kernel/samples/kprobes/kprobe_example.c | 258 ++++---- .../samples/livepatch/livepatch-shadow-fix1.c | 346 +++++------ .../kernel/samples/pktgen/parameters.sh | 278 ++++----- .../pktgen_bench_xmit_mode_netif_receive.sh | 226 +++---- .../pktgen_sample03_burst_single_flow.sh | 220 +++---- .../pktgen/pktgen_sample04_many_flows.sh | 244 ++++---- ...sample06_numa_awared_queue_irq_affinity.sh | 256 ++++---- .../kernel/samples/vfio-mdev/README.rst | 200 +++---- .../kernel/samples/watch_queue/watch_test.c | 372 ++++++------ .../kernel/scripts/Kconfig.include | 154 ++--- .../kernel/scripts/Makefile.asm-headers | 212 +++---- .../kernel/scripts/Makefile.compiler | 186 +++--- .../kernel/scripts/Makefile.kasan | 216 +++---- .../kernel/scripts/Makefile.modinst | 334 +++++------ .../kernel/scripts/Makefile.vmlinux_o | 216 +++---- .../scripts/atomic/gen-atomic-instrumented.sh | 362 ++++++------ .../kernel/scripts/bloat-o-meter | 222 +++---- .../kernel/scripts/check-sysctl-docs | 308 +++++----- .../UFI003_MB_V02/kernel/scripts/cleanfile | 356 ++++++------ .../coccinelle/api/alloc/alloc_cast.cocci | 246 ++++---- .../coccinelle/api/check_bq27xxx_data.cocci | 324 +++++------ .../api/platform_no_drv_owner.cocci | 360 ++++++------ .../coccinelle/iterators/use_after_iter.cocci | 306 +++++----- .../scripts/coccinelle/misc/do_div.cocci | 310 +++++----- .../UFI003_MB_V02/kernel/scripts/diffconfig | 288 ++++----- .../kernel/scripts/dtc/dt-extract-compatibles | 268 ++++----- .../kernel/scripts/dtc/fdtoverlay.c | 412 ++++++------- .../kernel/scripts/dummy-tools/gcc | 232 ++++---- .../kernel/scripts/extract-module-sig.pl | 276 ++++----- .../kernel/scripts/extract-sys-certs.pl | 318 +++++----- .../gcc-plugins/gcc-generate-gimple-pass.h | 290 ++++----- .../gcc-plugins/gcc-generate-rtl-pass.h | 280 ++++----- .../gcc-generate-simple_ipa-pass.h | 280 ++++----- .../scripts/gcc-plugins/sancov_plugin.c | 268 ++++----- .../kernel/scripts/gdb/linux/lists.py | 272 ++++----- .../kernel/scripts/gdb/linux/modules.py | 262 ++++----- .../UFI003_MB_V02/kernel/scripts/headerdep.pl | 386 ++++++------ .../kernel/scripts/kconfig/lkc.h | 272 ++++----- .../kernel/scripts/macro_checker.py | 260 ++++----- .../kernel/scripts/package/PKGBUILD | 264 ++++----- .../kernel/scripts/package/buildtar | 220 +++---- .../kernel/scripts/package/kernel.spec | 262 ++++----- .../kernel/scripts/rustdoc_test_builder.rs | 144 ++--- .../scripts/selinux/genheaders/genheaders.c | 314 +++++----- .../kernel/scripts/tracing/draw_functrace.py | 258 ++++---- .../kernel/scripts/tracing/ftrace-bisect.sh | 268 ++++----- .../UFI003_MB_V02/kernel/scripts/xz_wrap.sh | 324 +++++------ .../kernel/security/apparmor/Kconfig | 246 ++++---- .../kernel/security/apparmor/Makefile | 228 ++++---- .../security/apparmor/include/apparmorfs.h | 268 ++++----- .../kernel/security/apparmor/include/file.h | 256 ++++---- .../security/apparmor/include/policy_ns.h | 302 +++++----- .../kernel/security/apparmor/procattr.c | 274 ++++----- .../kernel/security/apparmor/secid.c | 296 +++++----- .../kernel/security/integrity/ima/ima_iint.c | 276 ++++----- .../kernel/security/integrity/ima/ima_init.c | 320 +++++----- .../kernel/security/integrity/ima/ima_kexec.c | 334 +++++------ .../security/integrity/ima/ima_modsig.c | 302 +++++----- .../security/integrity/ima/ima_queue_keys.c | 354 +++++------ .../integrity/platform_certs/load_powerpc.c | 318 +++++----- .../UFI003_MB_V02/kernel/security/ipe/Kconfig | 232 ++++---- .../kernel/security/keys/compat.c | 264 ++++----- .../kernel/security/keys/persistent.c | 334 +++++------ .../kernel/security/lockdown/lockdown.c | 346 +++++------ .../kernel/security/lsm_syscalls.c | 240 ++++---- .../security/selinux/include/netlabel.h | 274 ++++----- .../kernel/security/selinux/ss/avtab.h | 252 ++++---- .../kernel/security/selinux/ss/ebitmap.h | 308 +++++----- .../kernel/security/selinux/ss/hashtab.c | 396 ++++++------- .../kernel/security/selinux/ss/hashtab.h | 308 +++++----- .../kernel/security/selinux/status.c | 244 ++++---- .../kernel/security/tomoyo/Kconfig | 170 +++--- .../UFI003_MB_V02/kernel/sound/aoa/aoa.h | 254 ++++---- .../kernel/sound/aoa/codecs/toonie.c | 298 +++++----- .../kernel/sound/aoa/core/core.c | 322 +++++----- .../kernel/sound/arm/pxa2xx-ac97-regs.h | 200 +++---- .../UFI003_MB_V02/kernel/sound/core/hrtimer.c | 334 +++++------ .../UFI003_MB_V02/kernel/sound/core/misc.c | 340 +++++------ .../UFI003_MB_V02/kernel/sound/core/oss/io.c | 282 ++++----- .../kernel/sound/core/rawmidi_compat.c | 254 ++++---- .../sound/core/seq/oss/seq_oss_device.h | 328 +++++------ .../kernel/sound/core/seq/oss/seq_oss_ioctl.c | 356 ++++++------ .../sound/core/seq/oss/seq_oss_writeq.c | 320 +++++----- .../kernel/sound/core/seq/seq_compat.c | 246 ++++---- .../kernel/sound/core/seq/seq_timer.h | 268 ++++----- .../kernel/sound/core/timer_compat.c | 242 ++++---- .../kernel/sound/drivers/pcsp/pcsp_mixer.c | 328 +++++------ .../kernel/sound/firewire/bebob/bebob_hwdep.c | 388 ++++++------ .../kernel/sound/firewire/bebob/bebob_midi.c | 292 +++++----- .../kernel/sound/firewire/dice/dice-hwdep.c | 378 ++++++------ .../kernel/sound/firewire/dice/dice-midi.c | 322 +++++----- .../sound/firewire/digi00x/digi00x-hwdep.c | 396 ++++++------- .../sound/firewire/digi00x/digi00x-midi.c | 346 +++++------ .../kernel/sound/firewire/digi00x/digi00x.c | 354 +++++------ .../kernel/sound/firewire/fireface/amdtp-ff.c | 334 +++++------ .../kernel/sound/firewire/fireface/ff-midi.c | 256 ++++---- .../sound/firewire/fireworks/fireworks_midi.c | 290 ++++----- .../kernel/sound/firewire/motu/motu-proc.c | 218 +++---- .../sound/firewire/motu/motu-transaction.c | 272 ++++----- .../kernel/sound/firewire/oxfw/oxfw-command.c | 316 +++++----- .../kernel/sound/firewire/oxfw/oxfw-hwdep.c | 374 ++++++------ .../kernel/sound/firewire/oxfw/oxfw-midi.c | 388 ++++++------ .../sound/firewire/tascam/tascam-midi.c | 270 ++++----- .../kernel/sound/hda/ext/hdac_ext_bus.c | 284 ++++----- .../kernel/sound/isa/ad1848/ad1848.c | 298 +++++----- .../kernel/sound/isa/gus/gus_irq.c | 260 ++++----- .../kernel/sound/isa/gus/gus_tables.h | 150 ++--- .../kernel/sound/isa/msnd/msnd_midi.c | 326 +++++------ .../kernel/sound/pci/ac97/ac97_patch.h | 160 ++--- .../kernel/sound/pci/asihpi/hpidspcd.c | 262 ++++----- .../kernel/sound/pci/asihpi/hpios.h | 308 +++++----- .../kernel/sound/pci/au88x0/au88x0_a3d.h | 222 +++---- .../kernel/sound/pci/au88x0/au88x0_eqdata.c | 234 ++++---- .../kernel/sound/pci/aw2/aw2-tsl.c | 194 +++--- .../kernel/sound/pci/aw2/saa7146.h | 310 +++++----- .../kernel/sound/pci/cs46xx/cs46xx.c | 284 ++++----- .../sound/pci/cs5535audio/cs5535audio.h | 280 ++++----- .../kernel/sound/pci/ctxfi/ctsrc.h | 296 +++++----- .../kernel/sound/pci/ctxfi/xfi.c | 316 +++++----- .../kernel/sound/pci/echoaudio/darla20_dsp.c | 262 ++++----- .../kernel/sound/pci/echoaudio/darla24_dsp.c | 330 +++++------ .../kernel/sound/pci/echoaudio/echo3g_dsp.c | 264 ++++----- .../kernel/sound/pci/echoaudio/gina24.c | 234 ++++---- .../kernel/sound/pci/echoaudio/indigo_dsp.c | 334 +++++------ .../sound/pci/echoaudio/indigo_express_dsp.c | 244 ++++---- .../kernel/sound/pci/echoaudio/indigodj_dsp.c | 334 +++++------ .../kernel/sound/pci/echoaudio/indigoio_dsp.c | 274 ++++----- .../kernel/sound/pci/echoaudio/mona.c | 252 ++++---- .../kernel/sound/pci/emu10k1/emu10k1_patch.c | 340 +++++------ .../kernel/sound/pci/emu10k1/voice.c | 280 ++++----- .../kernel/sound/pci/hda/Makefile | 160 ++--- .../kernel/sound/pci/hda/hda_auto_parser.h | 236 ++++---- .../kernel/sound/pci/ice1712/ak4xxx.c | 340 +++++------ .../kernel/sound/pci/oxygen/se6x.c | 296 +++++----- .../kernel/sound/pci/oxygen/wm8776.h | 348 +++++------ .../kernel/sound/pci/oxygen/xonar_lib.c | 246 ++++---- .../kernel/sound/pci/trident/trident.c | 296 +++++----- .../kernel/sound/pci/vx222/vx222.h | 206 +++---- .../kernel/sound/pcmcia/vx/vxp_mixer.c | 280 ++++----- .../UFI003_MB_V02/kernel/sound/ppc/burgundy.h | 202 +++---- .../UFI003_MB_V02/kernel/sound/ppc/keywest.c | 320 +++++----- .../UFI003_MB_V02/kernel/sound/soc/Kconfig | 270 ++++----- .../kernel/sound/soc/amd/acp/Kconfig | 294 +++++----- .../kernel/sound/soc/amd/acp/acp-sof-mach.c | 352 +++++------ .../kernel/sound/soc/amd/raven/acp3x.h | 324 +++++------ .../kernel/sound/soc/atmel/atmel-classd.h | 242 ++++---- .../kernel/sound/soc/atmel/atmel-pcm-dma.c | 240 ++++---- .../kernel/sound/soc/atmel/mikroe-proto.c | 352 +++++------ .../kernel/sound/soc/codecs/ac97.c | 286 ++++----- .../kernel/sound/soc/codecs/ad193x.h | 220 +++---- .../kernel/sound/soc/codecs/adau17x1.h | 268 ++++----- .../kernel/sound/soc/codecs/adau7002.c | 262 ++++----- .../sound/soc/codecs/aw88395/aw88395_device.h | 386 ++++++------ .../kernel/sound/soc/codecs/cq93vc.c | 298 +++++----- .../kernel/sound/soc/codecs/cs42l43.h | 290 ++++----- .../kernel/sound/soc/codecs/cs4349.h | 254 ++++---- .../kernel/sound/soc/codecs/da732x.h | 246 ++++---- .../kernel/sound/soc/codecs/es8316.h | 270 ++++----- .../kernel/sound/soc/codecs/inno_rk3036.h | 248 ++++---- .../kernel/sound/soc/codecs/lm4857.c | 296 +++++----- .../kernel/sound/soc/codecs/max9860.h | 308 +++++----- .../kernel/sound/soc/codecs/nau8315.c | 334 +++++------ .../kernel/sound/soc/codecs/pcm3008.c | 326 +++++------ .../kernel/sound/soc/codecs/rt1015p.c | 308 +++++----- .../kernel/sound/soc/codecs/rt1017-sdca-sdw.h | 366 ++++++------ .../kernel/sound/soc/codecs/rt1308-sdw.h | 344 +++++------ .../kernel/sound/soc/codecs/rt711-sdca-sdw.h | 198 +++---- .../kernel/sound/soc/codecs/rt712-sdca-dmic.h | 214 +++---- .../kernel/sound/soc/codecs/rt715-sdca.h | 264 ++++----- .../kernel/sound/soc/codecs/src4xxx.h | 226 +++---- .../kernel/sound/soc/codecs/tas2764.h | 244 ++++---- .../kernel/sound/soc/codecs/tas5720.h | 254 ++++---- .../kernel/sound/soc/codecs/tlv320aic23.h | 244 ++++---- .../kernel/sound/soc/codecs/tlv320aic26.h | 182 +++--- .../kernel/sound/soc/codecs/wm8994.h | 346 +++++------ .../kernel/sound/soc/fsl/Makefile | 162 +++--- .../kernel/sound/soc/fsl/fsl_audmix.h | 206 +++---- .../kernel/sound/soc/fsl/fsl_utils.c | 314 +++++----- .../kernel/sound/soc/fsl/imx-audio-rpmsg.c | 290 ++++----- .../kernel/sound/soc/fsl/lpc3xxx-i2s.h | 160 ++--- .../sound/soc/fsl/pcm030-audio-fabric.c | 280 ++++----- .../kernel/sound/soc/intel/Kconfig | 230 ++++---- .../sound/soc/intel/avs/boards/max98357a.c | 316 +++++----- .../kernel/sound/soc/intel/avs/topology.h | 420 ++++++------- .../kernel/sound/soc/intel/avs/trace.h | 308 +++++----- .../kernel/sound/soc/intel/boards/Makefile | 146 ++--- .../soc/intel/boards/skl_hda_dsp_generic.c | 334 +++++------ .../intel/common/soc-acpi-intel-icl-match.c | 378 ++++++------ .../common/soc-acpi-intel-sdw-mockup-match.c | 332 +++++------ .../intel/common/sof-function-topology-lib.c | 272 ++++----- .../kernel/sound/soc/kirkwood/armada-370-db.c | 312 +++++----- .../sound/soc/loongson/loongson_i2s_pci.c | 322 +++++----- .../mediatek/common/mtk-afe-platform-driver.c | 318 +++++----- .../sound/soc/mediatek/common/mtk-base-afe.h | 346 +++++------ .../sound/soc/mediatek/mt2701/mt2701-reg.h | 282 ++++----- .../soc/mediatek/mt6797/mt6797-afe-clk.c | 246 ++++---- .../soc/mediatek/mt6797/mt6797-dai-hostless.c | 236 ++++---- .../soc/mediatek/mt8183/mt8183-dai-hostless.c | 236 ++++---- .../soc/mediatek/mt8188/mt8188-afe-clk.h | 274 ++++----- .../soc/mediatek/mt8188/mt8188-afe-common.h | 304 +++++----- .../soc/mediatek/mt8192/mt8192-afe-common.h | 346 +++++------ .../soc/mediatek/mt8192/mt8192-afe-control.c | 322 +++++----- .../soc/mediatek/mt8195/mt8195-afe-clk.h | 238 ++++---- .../soc/mediatek/mt8195/mt8195-afe-common.h | 316 +++++----- .../kernel/sound/soc/meson/Kconfig | 276 ++++----- .../kernel/sound/soc/meson/gx-card.c | 284 ++++----- .../kernel/sound/soc/meson/meson-codec-glue.c | 294 +++++----- .../kernel/sound/soc/mxs/mxs-saif.h | 246 ++++---- .../kernel/sound/soc/qcom/apq8096.c | 290 ++++----- .../sound/soc/qcom/qdsp6/q6afe-clocks.c | 240 ++++---- .../kernel/sound/soc/qcom/qdsp6/q6cvp.c | 306 +++++----- .../sound/soc/qcom/qdsp6/q6dsp-lpass-clocks.c | 370 ++++++------ .../kernel/sound/soc/qcom/qdsp6/q6mvm.c | 320 +++++----- .../kernel/sound/soc/qcom/qdsp6/q6prm.h | 194 +++--- .../UFI003_MB_V02/kernel/sound/soc/qcom/sdw.c | 328 +++++------ .../kernel/sound/soc/qcom/storm.c | 286 ++++----- .../kernel/sound/soc/rockchip/Kconfig | 184 +++--- .../kernel/sound/soc/samsung/Kconfig | 302 +++++----- .../kernel/sound/soc/samsung/smdk_wm8994pcm.c | 276 ++++----- .../soc/sdw_utils/soc_sdw_bridge_cs35l56.c | 302 +++++----- .../sound/soc/sdw_utils/soc_sdw_maxim.c | 296 +++++----- .../sound/soc/sdw_utils/soc_sdw_rt711.c | 320 +++++----- .../kernel/sound/soc/sh/rcar/cmd.c | 382 ++++++------ .../kernel/sound/soc/soc-card-test.c | 258 ++++---- .../kernel/sound/soc/soc-devres.c | 322 +++++----- .../kernel/sound/soc/sof/amd/acp-pcm.c | 240 ++++---- .../kernel/sound/soc/sof/amd/acp-probes.c | 294 +++++----- .../kernel/sound/soc/sof/amd/acp63.c | 284 ++++----- .../kernel/sound/soc/sof/amd/acp70.c | 284 ++++----- .../kernel/sound/soc/sof/amd/rembrandt.c | 284 ++++----- .../kernel/sound/soc/sof/intel/apl.c | 242 ++++---- .../kernel/sound/soc/sof/intel/pci-cnl.c | 298 +++++----- .../kernel/sound/soc/sof/intel/pci-icl.c | 230 ++++---- .../kernel/sound/soc/sof/intel/pci-mtl.c | 278 ++++----- .../kernel/sound/soc/sof/ipc4-priv.h | 240 ++++---- .../soc/sof/mediatek/mt8195/mt8195-clk.c | 328 +++++------ .../soc/sof/sof-client-ipc-kernel-injector.c | 324 +++++------ .../kernel/sound/soc/sof/stream-ipc.c | 262 ++++----- .../kernel/sound/soc/tegra/tegra20_ac97.h | 172 +++--- .../kernel/sound/soc/tegra/tegra210_ahub.h | 258 ++++---- .../kernel/sound/soc/tegra/tegra210_i2s.h | 256 ++++---- .../kernel/sound/soc/tegra/tegra210_mixer.h | 200 +++---- .../kernel/sound/soc/tegra/tegra210_mvc.h | 244 ++++---- .../kernel/sound/soc/ti/osk5912.c | 350 +++++------ .../kernel/sound/soc/ux500/mop500.c | 334 +++++------ .../kernel/sound/synth/emux/emux_hwdep.c | 300 +++++----- .../kernel/sound/synth/emux/emux_proc.c | 224 +++---- .../kernel/sound/synth/emux/emux_voice.h | 174 +++--- .../kernel/sound/synth/util_mem.c | 364 ++++++------ .../kernel/sound/usb/6fire/comm.c | 400 ++++++------- .../kernel/sound/usb/caiaq/device.h | 276 ++++----- .../kernel/sound/usb/caiaq/midi.c | 324 +++++------ .../UFI003_MB_V02/kernel/sound/usb/helper.c | 332 +++++------ .../UFI003_MB_V02/kernel/sound/usb/mixer.h | 270 ++++----- .../kernel/sound/usb/mixer_us16x08.h | 244 ++++---- .../kernel/sound/virtio/virtio_card.h | 266 ++++----- .../kernel/sound/virtio/virtio_pcm.h | 254 ++++---- .../tools/arch/loongarch/include/asm/inst.h | 346 +++++------ .../dell-uart-backlight-emulator.c | 326 +++++------ .../arch/x86/include/asm/disabled-features.h | 322 +++++----- .../kernel/tools/arch/x86/lib/memcpy_64.S | 342 +++++------ .../tools/bootconfig/test-bootconfig.sh | 390 ++++++------- .../UFI003_MB_V02/kernel/tools/bpf/Makefile | 270 ++++----- .../UFI003_MB_V02/kernel/tools/bpf/bpf_exp.l | 396 ++++++------- .../bpftool/Documentation/bpftool-feature.rst | 166 +++--- .../kernel/tools/bpf/bpftool/netlink_dumper.c | 356 ++++++------ .../kernel/tools/bpf/bpftool/tracelog.c | 332 +++++------ .../kernel/tools/bpf/runqslower/runqslower.c | 342 +++++------ .../tools/build/Documentation/Build.txt | 336 +++++------ .../UFI003_MB_V02/kernel/tools/build/fixdep.c | 340 +++++------ .../kernel/tools/debugging/kernel-chktaint | 422 +++++++------- .../kernel/tools/gpio/gpio-hammer.c | 352 +++++------ .../UFI003_MB_V02/kernel/tools/hv/lsvmbus | 224 +++---- .../kernel/tools/hv/vmbus_bufring.h | 316 +++++----- .../UFI003_MB_V02/kernel/tools/iio/lsiio.c | 376 ++++++------ .../kernel/tools/include/linux/overflow.h | 288 ++++----- .../kernel/tools/include/linux/refcount.h | 304 +++++----- .../kernel/tools/include/nolibc/stdint.h | 264 ++++----- .../tools/include/uapi/asm-generic/ioctls.h | 242 ++++---- .../include/uapi/asm-generic/mman-common.h | 180 +++--- .../tools/include/uapi/asm-generic/socket.h | 304 +++++----- .../kernel/tools/include/uapi/linux/if_tun.h | 228 ++++---- .../kernel/tools/laptop/dslm/dslm.c | 332 +++++------ .../kernel/tools/lib/api/fs/tracing_path.c | 356 ++++++------ .../UFI003_MB_V02/kernel/tools/lib/api/io.h | 400 ++++++------- .../kernel/tools/lib/bpf/bpf_endian.h | 198 +++---- .../kernel/tools/lib/bpf/btf_iter.c | 354 +++++------ .../kernel/tools/lib/bpf/libbpf_common.h | 184 +++--- .../kernel/tools/lib/bpf/nlattr.h | 352 +++++------ .../kernel/tools/lib/bpf/relo_core.h | 198 +++---- .../kernel/tools/lib/bpf/strset.c | 354 +++++------ .../UFI003_MB_V02/kernel/tools/lib/find_bit.c | 246 ++++---- .../tools/lib/perf/include/internal/evlist.h | 280 ++++----- .../lib/perf/include/internal/rc_check.h | 226 +++---- .../tools/lib/perf/include/perf/cpumap.h | 206 +++---- .../kernel/tools/lib/subcmd/exec-cmd.c | 436 +++++++------- .../kernel/tools/lib/thermal/Makefile | 334 +++++------ .../tools/lib/thermal/include/thermal.h | 284 ++++----- .../kernel/tools/lib/thermal/thermal_nl.c | 430 +++++++------- .../tools/memory-model/Documentation/README | 204 +++---- .../kernel/tools/memory-model/scripts/README | 220 +++---- .../memory-model/scripts/cmplitmushist.sh | 264 ++++----- .../tools/memory-model/scripts/parseargs.sh | 294 +++++----- .../net/sunrpc/xdrgen/generators/__init__.py | 226 +++---- .../tools/net/sunrpc/xdrgen/grammars/xdr.lark | 238 ++++---- .../tools/net/sunrpc/xdrgen/subcmds/source.py | 236 ++++---- .../kernel/tools/net/sunrpc/xdrgen/xdrgen | 264 ++++----- .../UFI003_MB_V02/kernel/tools/net/ynl/cli.py | 228 ++++---- .../kernel/tools/net/ynl/samples/page-pool.c | 298 +++++----- .../kernel/tools/objtool/arch/loongarch/orc.c | 342 +++++------ .../kernel/tools/objtool/arch/x86/orc.c | 376 ++++++------ .../kernel/tools/objtool/orc_gen.c | 294 +++++----- .../kernel/tools/objtool/special.c | 364 ++++++------ .../kernel/tools/perf/Documentation/Build.txt | 202 +++---- .../callchain-overhead-calculation.txt | 216 +++---- .../tools/perf/Documentation/perf-check.txt | 164 +++--- .../tools/perf/Documentation/perf-inject.txt | 238 ++++---- .../tools/perf/Documentation/perf-mem.txt | 266 ++++----- .../perf/Documentation/perf-timechart.txt | 256 ++++---- .../tools/perf/arch/arm64/util/perf_regs.c | 364 ++++++------ .../arch/loongarch/annotate/instructions.c | 274 ++++----- .../tools/perf/arch/loongarch/util/kvm-stat.c | 278 ++++----- .../perf/arch/powerpc/util/book3s_hcalls.h | 248 ++++---- .../tools/perf/arch/powerpc/util/dwarf-regs.c | 306 +++++----- .../perf/arch/s390/annotate/instructions.c | 344 +++++------ .../kernel/tools/perf/arch/s390/util/header.c | 294 +++++----- .../perf/arch/sparc/annotate/instructions.c | 338 +++++------ .../kernel/tools/perf/arch/x86/util/event.c | 278 ++++----- .../kernel/tools/perf/arch/x86/util/evsel.c | 246 ++++---- .../kernel/tools/perf/bench/find-bit-bench.c | 278 ++++----- .../kernel/tools/perf/bench/futex.h | 292 +++++----- .../kernel/tools/perf/bench/pmu-scan.c | 372 ++++++------ .../kernel/tools/perf/bench/syscall.c | 376 ++++++------ .../kernel/tools/perf/perf-archive.sh | 242 ++++---- .../arm64/ampere/ampereonex/instruction.json | 256 ++++---- .../arch/arm64/arm/neoverse-n1/exception.json | 124 ++-- .../arch/arm64/arm/neoverse-n1/l1d_cache.json | 100 ++-- .../arch/arm64/arm/neoverse-n1/l2_cache.json | 92 +-- .../arm64/arm/neoverse-n2-v2/exception.json | 124 ++-- .../arm64/arm/neoverse-n2-v2/l2_cache.json | 100 ++-- .../arch/arm64/arm/neoverse-n2-v2/memory.json | 92 +-- .../arch/arm64/arm/neoverse-v1/exception.json | 124 ++-- .../arch/arm64/arm/neoverse-v1/l2_cache.json | 100 ++-- .../arch/arm64/fujitsu/a64fx/instruction.json | 262 ++++----- .../arm64/hisilicon/hip08/core-imp-def.json | 244 ++++---- .../arm64/hisilicon/hip08/uncore-l3c.json | 186 +++--- .../arch/powerpc/power10/others.json | 144 ++--- .../pmu-events/arch/powerpc/power8/pmc.json | 280 ++++----- .../arch/riscv/starfive/dubhe-80/common.json | 344 +++++------ .../pmu-events/arch/s390/cf_z10/basic.json | 172 +++--- .../pmu-events/arch/s390/cf_z13/basic.json | 172 +++--- .../arch/s390/cf_z13/transaction.json | 154 ++--- .../arch/s390/cf_z14/transaction.json | 144 ++--- .../arch/s390/cf_z15/transaction.json | 144 ++--- .../arch/s390/cf_z16/transaction.json | 144 ++--- .../pmu-events/arch/s390/cf_z196/basic.json | 172 +++--- .../pmu-events/arch/s390/cf_zec12/basic.json | 172 +++--- .../x86/alderlake/uncore-interconnect.json | 222 +++---- .../x86/alderlaken/uncore-interconnect.json | 222 +++---- .../pmu-events/arch/x86/amdzen4/core.json | 244 ++++---- .../arch/x86/amdzen5/branch-prediction.json | 186 +++--- .../arch/x86/bonnell/virtual-memory.json | 248 ++++---- .../arch/x86/elkhartlake/frontend.json | 156 ++--- .../arch/x86/grandridge/floating-point.json | 220 +++---- .../arch/x86/grandridge/memory.json | 190 +++--- .../arch/x86/haswell/floating-point.json | 186 +++--- .../arch/x86/haswellx/floating-point.json | 186 +++--- .../x86/knightslanding/uncore-memory.json | 240 ++++---- .../arch/x86/lunarlake/virtual-memory.json | 124 ++-- .../pmu-events/arch/x86/nehalemep/other.json | 292 +++++----- .../pmu-events/arch/x86/nehalemex/other.json | 292 +++++----- .../arch/x86/sierraforest/floating-point.json | 220 +++---- .../arch/x86/sierraforest/memory.json | 190 +++--- .../arch/x86/silvermont/virtual-memory.json | 138 ++--- .../arch/x86/snowridgex/frontend.json | 156 ++--- .../x86/tigerlake/uncore-interconnect.json | 222 +++---- .../x86/westmereep-sp/virtual-memory.json | 298 +++++----- .../kernel/tools/perf/pmu-events/pmu-events.h | 238 ++++---- .../Perf-Trace-Util/lib/Perf/Trace/Core.pm | 384 ++++++------ .../Perf-Trace-Util/lib/Perf/Trace/Core.py | 232 ++++---- .../lib/Perf/Trace/EventClass.py | 194 +++--- .../tools/perf/scripts/python/libxed.py | 214 +++---- .../perf/scripts/python/stackcollapse.py | 254 ++++---- .../kernel/tools/perf/tests/attr/README | 138 ++--- .../tools/perf/tests/attr/test-stat-default | 458 +++++++-------- .../perf/tests/attr/test-stat-detailed-1 | 542 ++++++++--------- .../tools/perf/tests/backward-ring-buffer.c | 342 +++++------ .../kernel/tools/perf/tests/event_groups.c | 272 ++++----- .../kernel/tools/perf/tests/event_update.c | 242 ++++---- .../kernel/tools/perf/tests/fdarray.c | 326 +++++------ .../kernel/tools/perf/tests/keep-tracking.c | 328 +++++------ .../kernel/tools/perf/tests/maps.c | 330 +++++------ .../perf/tests/openat-syscall-all-cpus.c | 276 ++++----- .../kernel/tools/perf/tests/pfm.c | 388 ++++++------ .../base_probe/test_adding_blacklisted.sh | 212 +++---- .../kernel/tools/perf/tests/shell/buildid.sh | 350 +++++------ .../tests/shell/lib/perf_json_output_lint.py | 202 +++---- .../tools/perf/tests/shell/lib/stat_output.sh | 364 ++++++------ .../shell/record+probe_libc_inet_pton.sh | 226 +++---- .../tools/perf/tests/shell/record_lbr.sh | 322 +++++----- .../kernel/tools/perf/tests/stat.c | 238 ++++---- .../kernel/tools/perf/tests/sw-clock.c | 296 +++++----- .../kernel/tools/perf/tests/task-exit.c | 310 +++++----- .../kernel/tools/perf/tests/thread-map.c | 304 +++++----- .../beauty/arch/x86/include/asm/irq_vectors.h | 292 +++++----- .../kernel/tools/perf/ui/browser.h | 172 +++--- .../kernel/tools/perf/ui/browsers/map.c | 268 ++++----- .../kernel/tools/perf/ui/tui/setup.c | 402 ++++++------- .../kernel/tools/perf/util/bpf_ftrace.c | 308 +++++----- .../kernel/tools/perf/util/color.c | 368 ++++++------ .../kernel/tools/perf/util/db-export.h | 220 +++---- .../kernel/tools/perf/util/demangle-java.c | 406 ++++++------- .../tools/perf/util/include/linux/linkage.h | 270 ++++----- .../kernel/tools/perf/util/kvm-stat.h | 382 ++++++------ .../kernel/tools/perf/util/lock-contention.h | 360 ++++++------ .../kernel/tools/perf/util/mem-events.h | 182 +++--- .../kernel/tools/perf/util/metricgroup.h | 192 +++--- .../kernel/tools/perf/util/mutex.h | 216 +++---- .../kernel/tools/perf/util/perf_api_probe.c | 394 ++++++------- .../kernel/tools/perf/util/setup.py | 184 +++--- .../kernel/tools/perf/util/sideband_evlist.c | 298 +++++----- .../kernel/tools/perf/util/sort.h | 310 +++++----- .../kernel/tools/perf/util/srccode.c | 342 +++++------ .../kernel/tools/perf/util/strlist.c | 416 ++++++------- .../kernel/tools/perf/util/target.c | 368 ++++++------ .../kernel/tools/perf/util/thread-stack.h | 220 +++---- .../kernel/tools/perf/util/top.c | 238 ++++---- .../kernel/tools/perf/util/tsc.c | 284 ++++----- .../kernel/tools/perf/util/util.h | 264 ++++----- .../cpupower/bench/cpufreq-bench_script.sh | 176 +++--- .../tools/power/cpupower/bench/system.c | 358 ++++++------ .../power/cpupower/cpupower-completion.sh | 256 ++++---- .../power/cpupower/debug/i386/dump_psb.c | 388 ++++++------ .../power/cpupower/man/cpupower-idle-info.1 | 182 +++--- .../tools/power/cpupower/utils/cpuidle-set.c | 374 ++++++------ .../tools/power/cpupower/utils/cpupower-set.c | 336 +++++------ .../sched_ext/include/scx/user_exit_info.h | 230 ++++---- .../kernel/tools/sched_ext/scx_central.c | 270 ++++----- .../ktest/examples/include/bisect.conf | 180 +++--- .../ktest/examples/include/patchcheck.conf | 222 +++---- ..._is_test_passed-no_tests_run_no_header.log | 150 ++--- .../tools/testing/memblock/tests/common.h | 354 +++++------ .../tools/testing/radix-tree/benchmark.c | 300 +++++----- .../testing/radix-tree/iteration_check.c | 420 ++++++------- .../tools/testing/radix-tree/regression2.c | 246 ++++---- .../tools/testing/scatterlist/linux/mm.h | 322 +++++----- .../kernel/tools/testing/scatterlist/main.c | 266 ++++----- .../testing/selftests/alsa/utimer-test.c | 330 +++++------ .../tools/testing/selftests/arm64/fp/vlset.c | 322 +++++----- .../selftests/arm64/mte/check_ksm_options.c | 332 +++++------ .../selftests/arm64/mte/mte_common_util.h | 258 ++++---- .../arm64/signal/testcases/testcases.h | 272 ++++----- .../selftests/bpf/benchs/bench_bpf_crypto.c | 370 ++++++------ .../selftests/bpf/benchs/bench_rename.c | 334 +++++------ .../selftests/bpf/benchs/bench_strncmp.c | 312 +++++----- .../testing/selftests/bpf/config.aarch64 | 334 +++++------ .../tools/testing/selftests/bpf/ima_setup.sh | 312 +++++----- .../bpf/map_tests/array_map_batch_ops.c | 330 +++++------ .../bpf/map_tests/lpm_trie_map_batch_ops.c | 310 +++++----- .../selftests/bpf/prog_tests/btf_map_in_map.c | 280 ++++----- .../selftests/bpf/prog_tests/build_id.c | 236 ++++---- .../bpf/prog_tests/cgroup1_hierarchy.c | 326 +++++------ .../bpf/prog_tests/cgroup_ancestor.c | 282 ++++----- .../bpf/prog_tests/cgroup_attach_override.c | 296 +++++----- .../bpf/prog_tests/changes_pkt_data.c | 214 +++---- .../bpf/prog_tests/connect_force_port.c | 334 +++++------ .../selftests/bpf/prog_tests/core_reloc_raw.c | 250 ++++---- .../testing/selftests/bpf/prog_tests/dynptr.c | 286 ++++----- .../selftests/bpf/prog_tests/empty_skb.c | 302 +++++----- .../selftests/bpf/prog_tests/fs_kfuncs.c | 298 +++++----- .../bpf/prog_tests/get_func_ip_test.c | 278 ++++----- .../bpf/prog_tests/get_stack_raw_tp.c | 298 +++++----- .../selftests/bpf/prog_tests/global_data.c | 314 +++++----- .../selftests/bpf/prog_tests/kfree_skb.c | 256 ++++---- .../bpf/prog_tests/local_kptr_stash.c | 294 +++++----- .../selftests/bpf/prog_tests/lwt_helpers.h | 276 ++++----- .../selftests/bpf/prog_tests/map_in_map.c | 282 ++++----- .../selftests/bpf/prog_tests/metadata.c | 282 ++++----- .../selftests/bpf/prog_tests/module_attach.c | 234 ++++---- .../bpf/prog_tests/netfilter_link_attach.c | 248 ++++---- .../selftests/bpf/prog_tests/percpu_alloc.c | 256 ++++---- .../selftests/bpf/prog_tests/perf_buffer.c | 294 +++++----- .../selftests/bpf/prog_tests/perf_skip.c | 274 ++++----- .../selftests/bpf/prog_tests/rcu_read_lock.c | 308 +++++----- .../selftests/bpf/prog_tests/resolve_btfids.c | 334 +++++------ .../selftests/bpf/prog_tests/ringbuf_multi.c | 294 +++++----- .../selftests/bpf/prog_tests/snprintf.c | 254 ++++---- .../bpf/prog_tests/sock_iter_batch.c | 270 ++++----- .../selftests/bpf/prog_tests/sockmap_ktls.c | 340 +++++------ .../bpf/prog_tests/sockopt_inherit.c | 344 +++++------ .../bpf/prog_tests/stacktrace_build_id.c | 206 +++---- .../bpf/prog_tests/stacktrace_build_id_nmi.c | 264 ++++----- .../selftests/bpf/prog_tests/tcp_rtt.c | 358 ++++++------ .../selftests/bpf/prog_tests/tcpbpf_user.c | 274 ++++----- .../selftests/bpf/prog_tests/test_bpffs.c | 328 +++++------ .../selftests/bpf/prog_tests/test_ldsx_insn.c | 278 ++++----- .../selftests/bpf/prog_tests/test_lsm.c | 320 +++++----- .../selftests/bpf/prog_tests/test_overhead.c | 296 +++++----- .../selftests/bpf/prog_tests/test_strncmp.c | 296 +++++----- .../bpf/prog_tests/tp_attach_query.c | 282 ++++----- .../selftests/bpf/prog_tests/trace_ext.c | 230 ++++---- .../selftests/bpf/prog_tests/tracing_struct.c | 242 ++++---- .../bpf/prog_tests/xdp_adjust_frags.c | 292 +++++----- .../selftests/bpf/prog_tests/xdp_attach.c | 318 +++++----- .../bpf/prog_tests/xdp_context_test_run.c | 210 +++---- .../selftests/bpf/prog_tests/xdp_flowtable.c | 336 +++++------ .../testing/selftests/bpf/progs/atomics.c | 340 +++++------ .../testing/selftests/bpf/progs/bind4_prog.c | 334 +++++------ .../testing/selftests/bpf/progs/bpf_iter.h | 334 +++++------ .../testing/selftests/bpf/progs/bpf_loop.c | 450 +++++++------- .../bpf/progs/btf_dump_test_case_padding.c | 498 ++++++++-------- .../bpf/progs/cgroup_hierarchical_stats.c | 310 +++++----- .../selftests/bpf/progs/cgrp_kfunc_success.c | 446 +++++++------- .../selftests/bpf/progs/cpumask_common.h | 256 ++++---- .../selftests/bpf/progs/exceptions_assert.c | 270 ++++----- .../selftests/bpf/progs/fexit_bpf2bpf.c | 358 ++++++------ .../testing/selftests/bpf/progs/iters_num.c | 484 +++++++-------- .../testing/selftests/bpf/progs/kfree_skb.c | 306 +++++----- .../selftests/bpf/progs/kfunc_call_test.c | 434 +++++++------- .../selftests/bpf/progs/kprobe_multi.c | 324 +++++------ .../tools/testing/selftests/bpf/progs/lsm.c | 362 ++++++------ .../testing/selftests/bpf/progs/lsm_cgroup.c | 384 ++++++------ .../selftests/bpf/progs/percpu_alloc_fail.c | 364 ++++++------ .../selftests/bpf/progs/pro_epilogue.c | 308 +++++----- .../bpf/progs/pro_epilogue_goto_start.c | 298 +++++----- .../testing/selftests/bpf/progs/profiler.h | 354 +++++------ .../selftests/bpf/progs/tcp_ca_kfunc.c | 242 ++++---- .../selftests/bpf/progs/test_attach_probe.c | 366 ++++++------ .../selftests/bpf/progs/test_bpf_nf_fail.c | 298 +++++----- .../selftests/bpf/progs/test_btf_map_in_map.c | 300 +++++----- .../bpf/progs/test_btf_skc_cls_ingress.c | 336 +++++------ .../selftests/bpf/progs/test_core_autosize.c | 364 ++++++------ .../bpf/progs/test_core_reloc_kernel.c | 234 ++++---- .../bpf/progs/test_core_reloc_type_id.c | 230 ++++---- .../bpf/progs/test_global_func_ctx_args.c | 344 +++++------ .../selftests/bpf/progs/test_module_attach.c | 284 ++++----- .../selftests/bpf/progs/test_pkt_access.c | 304 +++++----- .../selftests/bpf/progs/test_sk_lookup_kern.c | 356 ++++++------ .../selftests/bpf/progs/test_spin_lock.c | 338 +++++------ .../selftests/bpf/progs/test_tc_neigh.c | 272 ++++----- .../selftests/bpf/progs/test_tc_neigh_fib.c | 316 +++++----- .../bpf/progs/test_tcp_check_syncookie_kern.c | 334 +++++------ .../bpf/progs/test_tcp_custom_syncookie.h | 276 ++++----- .../selftests/bpf/progs/test_tcpbpf_kern.c | 308 +++++----- .../selftests/bpf/progs/uprobe_multi.c | 286 ++++----- .../bpf/progs/user_ringbuf_success.c | 424 +++++++------- .../selftests/bpf/progs/verifier_arena.c | 302 +++++----- .../bpf/progs/verifier_arena_large.c | 350 +++++------ .../selftests/bpf/progs/verifier_bits_iter.c | 464 +++++++-------- .../bpf/progs/verifier_bounds_deduction.c | 342 +++++------ .../selftests/bpf/progs/verifier_cfg.c | 324 +++++------ .../selftests/bpf/progs/verifier_div0.c | 426 +++++++------- .../selftests/bpf/progs/verifier_int_ptr.c | 310 +++++----- .../selftests/bpf/progs/verifier_lsm.c | 324 +++++------ .../selftests/bpf/progs/verifier_map_ptr.c | 318 +++++----- .../selftests/bpf/progs/verifier_ringbuf.c | 262 ++++----- .../bpf/progs/verifier_sockmap_mutate.c | 374 ++++++------ .../selftests/bpf/progs/verifier_value.c | 316 +++++----- .../bpf/progs/verifier_value_illegal_alu.c | 336 +++++------ .../selftests/bpf/progs/verifier_vfs_reject.c | 322 +++++----- .../tools/testing/selftests/bpf/progs/wq.c | 378 ++++++------ .../selftests/bpf/progs/xdp_flowtable.c | 296 +++++----- .../testing/selftests/bpf/progs/xdping_kern.c | 366 ++++++------ .../selftests/bpf/test_bpftool_build.sh | 302 +++++----- .../selftests/bpf/test_lirc_mode2_user.c | 354 +++++------ .../tools/testing/selftests/bpf/test_tag.c | 412 ++++++------- .../bpf/test_tcp_check_syncookie_user.c | 426 +++++++------- .../selftests/bpf/test_tcp_hdr_options.h | 306 +++++----- .../selftests/bpf/test_tcpnotify_user.c | 336 +++++------ .../testing/selftests/bpf/uprobe_multi.c | 272 ++++----- .../selftests/bpf/verifier/atomic_fetch_add.c | 212 +++---- .../selftests/bpf/verifier/dead_code.c | 346 +++++------ .../selftests/bpf/verifier/event_output.c | 238 ++++---- .../testing/selftests/bpf/verifier/jset.c | 338 +++++------ .../tools/testing/selftests/bpf/xskxceiver.h | 374 ++++++------ .../testing/selftests/cgroup/test_pids.c | 356 ++++++------ .../clone3/clone3_cap_checkpoint_restore.c | 356 ++++++------ .../selftests/cpu-hotplug/cpu-on-off-test.sh | 450 +++++++------- .../tools/testing/selftests/cpufreq/main.sh | 436 +++++++------- .../testing/selftests/drivers/net/README.rst | 272 ++++----- .../drivers/net/bonding/bond_topo_2d1c.sh | 316 +++++----- .../testing/selftests/drivers/net/hw/csum.py | 244 ++++---- .../selftests/drivers/net/hw/pp_alloc_fail.py | 260 ++++----- .../drivers/net/mlxsw/ethtool_lanes.sh | 380 ++++++------ .../selftests/drivers/net/mlxsw/extack.sh | 364 ++++++------ .../selftests/drivers/net/mlxsw/mirror_gre.sh | 404 ++++++------- .../drivers/net/mlxsw/qos_dscp_bridge.sh | 364 ++++++------ .../selftests/drivers/net/mlxsw/rif_bridge.sh | 366 ++++++------ .../drivers/net/mlxsw/rif_lag_vlan.sh | 292 +++++----- .../selftests/drivers/net/netdevsim/peer.sh | 286 ++++----- .../drivers/net/netdevsim/psample.sh | 366 ++++++------ .../selftests/drivers/net/ocelot/basic_qos.sh | 506 ++++++++-------- .../testing/selftests/efivarfs/efivarfs.sh | 436 +++++++------- .../testing/selftests/exec/non-regular.c | 392 ++++++------- .../selftests/fchmodat2/fchmodat2_test.c | 284 ++++----- .../testing/selftests/firmware/fw_namespace.c | 296 +++++----- .../testing/selftests/firmware/fw_upload.sh | 428 +++++++------- .../test.d/ftrace/func_traceonoff_triggers.tc | 344 +++++------ .../selftests/futex/functional/futex_wait.c | 342 +++++------ .../testing/selftests/futex/include/logging.h | 296 +++++----- .../testing/selftests/gpio/gpio-mockup-cdev.c | 396 ++++++------- .../selftests/hid/progs/hid_bpf_helpers.h | 244 ++++---- .../selftests/hid/tests/test_usb_crash.py | 206 +++---- .../testing/selftests/intel_pstate/run.sh | 266 ++++----- .../tools/testing/selftests/kcmp/kcmp_test.c | 336 +++++------ .../selftests/kvm/aarch64/aarch32_id_regs.c | 334 +++++------ .../selftests/kvm/aarch64/no-vgic-v3.c | 350 +++++------ .../selftests/kvm/hardware_disable_test.c | 362 ++++++------ .../testing/selftests/kvm/include/riscv/sbi.h | 282 ++++----- .../testing/selftests/kvm/include/sparsebit.h | 186 +++--- .../selftests/kvm/include/ucall_common.h | 232 ++++---- .../selftests/kvm/include/x86_64/apic.h | 240 ++++---- .../selftests/kvm/include/x86_64/pmu.h | 194 +++--- .../selftests/kvm/lib/aarch64/handlers.S | 252 ++++---- .../testing/selftests/kvm/lib/guest_modes.c | 258 ++++---- .../tools/testing/selftests/kvm/lib/io.c | 314 +++++----- .../testing/selftests/kvm/lib/ucall_common.c | 326 +++++------ .../testing/selftests/kvm/lib/x86_64/sev.c | 282 ++++----- .../selftests/kvm/pre_fault_memory_test.c | 292 +++++----- .../testing/selftests/kvm/s390x/debug_test.c | 320 +++++----- .../selftests/kvm/x86_64/fix_hypercall_test.c | 284 ++++----- .../selftests/kvm/x86_64/hyperv_cpuid.c | 344 +++++------ .../selftests/kvm/x86_64/kvm_clock_test.c | 312 +++++----- .../selftests/kvm/x86_64/kvm_pv_test.c | 380 ++++++------ .../selftests/kvm/x86_64/monitor_mwait_test.c | 258 ++++---- .../selftests/kvm/x86_64/set_sregs_test.c | 282 ++++----- .../selftests/kvm/x86_64/sev_init2_tests.c | 304 +++++----- .../kvm/x86_64/vmx_apic_access_test.c | 248 ++++---- .../vmx_exception_with_invalid_guest_state.c | 284 ++++----- .../selftests/kvm/x86_64/vmx_msrs_test.c | 262 ++++----- .../kvm/x86_64/vmx_tsc_adjust_test.c | 312 +++++----- .../selftests/kvm/x86_64/xcr0_cpuid_test.c | 268 ++++----- .../selftests/kvm/x86_64/xen_vmcall_test.c | 286 ++++----- .../selftests/landlock/scoped_base_variants.h | 312 +++++----- .../scoped_multiple_domain_variants.h | 304 +++++----- .../selftests/livepatch/test-shadow-vars.sh | 158 ++--- .../livepatch/test_modules/test_klp_state.c | 324 +++++------ .../selftests/media_tests/video_device_test.c | 312 +++++----- .../tools/testing/selftests/mm/hugetlb_dio.c | 250 ++++---- .../tools/testing/selftests/mm/pkey-powerpc.h | 286 ++++----- .../tools/testing/selftests/mm/pkey-x86.h | 326 +++++------ .../testing/selftests/mm/test_vmalloc.sh | 354 +++++------ .../testing/selftests/mm/transhuge-stress.c | 276 ++++----- .../tools/testing/selftests/mm/uffd-common.h | 274 ++++----- .../testing/selftests/net/af_unix/diag_uid.c | 354 +++++------ .../tools/testing/selftests/net/cmsg_ipv6.sh | 308 +++++----- .../selftests/net/drop_monitor_tests.sh | 432 +++++++------- .../tools/testing/selftests/net/fin_ack_lat.c | 302 +++++----- .../testing/selftests/net/forwarding/README | 182 +++--- .../net/forwarding/bridge_vlan_aware.sh | 408 ++++++------- .../selftests/net/forwarding/lib_sh_test.sh | 416 ++++++------- .../net/forwarding/mirror_gre_bridge_1d.sh | 236 ++++---- .../net/forwarding/mirror_gre_bridge_1q.sh | 228 ++++---- .../net/forwarding/mirror_gre_lib.sh | 344 +++++------ .../net/forwarding/mirror_gre_topo_lib.sh | 188 +++--- .../selftests/net/forwarding/mirror_lib.sh | 360 ++++++------ .../selftests/net/forwarding/router_bridge.sh | 380 ++++++------ .../router_bridge_pvid_vlan_upper.sh | 310 +++++----- .../forwarding/router_bridge_vlan_upper.sh | 338 +++++------ .../router_bridge_vlan_upper_pvid.sh | 342 +++++------ .../selftests/net/forwarding/router_nh.sh | 348 +++++------ .../selftests/net/forwarding/router_vid_1.sh | 320 +++++----- .../selftests/net/forwarding/sch_ets_tests.sh | 452 +++++++------- .../net/forwarding/skbedit_priority.sh | 344 +++++------ .../selftests/net/forwarding/tc_tunnel_key.sh | 324 +++++------ .../tools/testing/selftests/net/gre_gso.sh | 470 +++++++-------- .../testing/selftests/net/lib/py/nsim.py | 270 ++++----- .../testing/selftests/net/lib/py/utils.py | 310 +++++----- .../selftests/net/netfilter/bridge_brouter.sh | 244 ++++---- .../net/netfilter/conntrack_tcp_unreplied.sh | 328 +++++------ .../net/netfilter/nft_conntrack_helper.sh | 342 +++++------ .../selftests/net/netfilter/nft_meta.sh | 284 ++++----- .../selftests/net/netfilter/nft_zones_many.sh | 328 +++++------ .../tools/testing/selftests/net/psock_lib.h | 292 +++++----- .../selftests/net/reuseaddr_ports_exhausted.c | 324 +++++------ .../selftests/net/tcp_ao/lib/kconfig.c | 314 +++++----- .../tools/testing/selftests/net/tcp_inq.c | 358 ++++++------ .../kernel/tools/testing/selftests/net/tun.c | 324 +++++------ .../testing/selftests/net/txring_overwrite.c | 358 ++++++------ .../testing/selftests/nolibc/run-tests.sh | 364 ++++++------ .../tools/testing/selftests/openat2/helpers.h | 216 +++---- .../selftests/openat2/rename_attack_test.c | 320 +++++----- .../testing/selftests/power_supply/helpers.sh | 356 ++++++------ .../test_power_supply_properties.sh | 228 ++++---- .../testing/selftests/powerpc/dexcr/dexcr.c | 344 +++++------ .../testing/selftests/powerpc/dexcr/lsdexcr.c | 344 +++++------ .../powerpc/dscr/dscr_default_test.c | 338 +++++------ .../powerpc/dscr/dscr_explicit_test.c | 346 +++++------ .../selftests/powerpc/math/vmx_signal.c | 312 +++++----- .../selftests/powerpc/math/vsx_preempt.c | 290 ++++----- .../powerpc/mm/stack_expansion_ldst.c | 404 ++++++------- .../testing/selftests/powerpc/mm/wild_bctr.c | 340 +++++------ .../selftests/powerpc/nx-gzip/include/crb.h | 310 +++++----- .../powerpc/papr_sysparm/papr_sysparm.c | 392 ++++++------- .../powerpc/pmu/count_instructions.c | 294 +++++----- .../selftests/powerpc/pmu/count_stcx_fail.c | 328 +++++------ .../selftests/powerpc/pmu/ebb/busy_loop.S | 542 ++++++++--------- .../powerpc/pmu/ebb/instruction_count_test.c | 334 +++++------ .../generic_events_valid_test.c | 260 ++++----- .../selftests/powerpc/ptrace/ptrace-gpr.c | 348 +++++------ .../powerpc/ptrace/ptrace-tm-spd-gpr.c | 332 +++++------ .../powerpc/ptrace/ptrace-tm-spd-tar.c | 342 +++++------ .../powerpc/ptrace/ptrace-tm-spd-vsx.c | 362 ++++++------ .../selftests/powerpc/ptrace/ptrace-tm-tar.c | 314 +++++----- .../selftests/powerpc/security/entry_flush.c | 278 ++++----- .../selftests/powerpc/security/rfi_flush.c | 284 ++++----- .../powerpc/security/uaccess_flush.c | 316 +++++----- .../powerpc/signal/sig_sc_double_restart.c | 348 +++++------ .../selftests/powerpc/stringloops/memcmp.c | 338 +++++------ .../powerpc/tm/tm-signal-context-chk-gpr.c | 226 +++---- .../powerpc/tm/tm-signal-context-chk-vmx.c | 272 ++++----- .../powerpc/tm/tm-signal-context-force-tm.c | 360 ++++++------ .../testing/selftests/proc/fd-001-lookup.c | 336 +++++------ .../testing/selftests/proc/fd-003-kthread.c | 356 ++++++------ .../tools/testing/selftests/proc/read.c | 296 +++++----- .../rcutorture/bin/kvm-check-branches.sh | 204 +++---- .../selftests/rcutorture/bin/kvm-recheck.sh | 276 ++++----- .../selftests/rcutorture/bin/parse-console.sh | 382 ++++++------ .../testing/selftests/resctrl/fill_buf.c | 338 +++++------ .../testing/selftests/resctrl/mbm_test.c | 362 ++++++------ .../selftests/rlimits/rlimits-per-userns.c | 322 +++++----- .../testing/selftests/sched_ext/hotplug.c | 336 +++++------ .../testing/selftests/sched_ext/maximal.bpf.c | 332 +++++------ .../testing/selftests/sched_ext/scx_test.h | 262 ++++----- .../tools/testing/selftests/sgx/test_encl.c | 324 +++++------ .../selftests/sync/sync_stress_merge.c | 230 ++++---- .../selftests/sync/sync_stress_parallelism.c | 222 +++---- .../tools/testing/selftests/sync/sync_wait.c | 182 +++--- .../selftests/tc-testing/TdcResults.py | 266 ++++----- .../creating-plugins/AddingPlugins.txt | 208 +++---- .../tc-testing/tc-tests/qdiscs/etf.json | 214 +++---- .../tc-testing/tc-tests/qdiscs/mqprio.json | 228 ++++---- .../tc-testing/tc-tests/qdiscs/multiq.json | 228 ++++---- .../testing/selftests/tc-testing/tdc_batch.py | 224 +++---- .../intel/workload_hint/workload_hint_test.c | 314 +++++----- .../tools/testing/selftests/timens/procfs.c | 394 ++++++------- .../tools/testing/selftests/timens/timens.c | 374 ++++++------ .../selftests/timers/alarmtimer-suspend.c | 356 ++++++------ .../selftests/timers/clocksource-switch.c | 382 ++++++------ .../testing/selftests/timers/nanosleep.c | 338 +++++------ .../testing/selftests/timers/nsleep-lat.c | 356 ++++++------ .../tools/testing/selftests/timers/raw_skew.c | 294 +++++----- .../testing/selftests/timers/threadtest.c | 386 ++++++------ .../selftests/turbostat/smi_aperf_mperf.py | 314 +++++----- .../testing/selftests/vDSO/vdso_test_chacha.c | 266 ++++----- .../tools/testing/selftests/x86/ioperm.c | 370 ++++++------ .../tools/testing/selftests/x86/sysret_rip.c | 358 ++++++------ .../tools/testing/selftests/x86/unwind_vdso.c | 366 ++++++------ .../kernel/tools/thermal/lib/Makefile | 316 +++++----- .../ffs-aio-example/multibuff/host_app/test.c | 350 +++++------ .../kernel/tools/usb/usbip/configure.ac | 222 +++---- .../kernel/tools/usb/usbip/libsrc/list.h | 274 ++++----- .../tools/usb/usbip/libsrc/usbip_common.h | 304 +++++----- .../usb/usbip/libsrc/usbip_device_driver.c | 316 +++++----- .../kernel/tools/usb/usbip/src/usbip.c | 382 ++++++------ .../usb/usbip/vudc/vudc_server_example.sh | 214 +++---- .../kernel/tools/verification/rv/src/rv.c | 376 ++++++------ .../kernel/tools/virtio/linux/kernel.h | 288 ++++----- .../kernel/tools/virtio/linux/scatterlist.h | 346 +++++------ .../kernel/tools/virtio/ringtest/ptr_ring.c | 418 ++++++------- .../kernel/tools/virtio/virtio-trace/README | 236 ++++---- .../virtio/virtio-trace/trace-agent-rw.c | 380 ++++++------ .../kernel/usr/include/headers_check.pl | 342 +++++------ 4000 files changed, 580109 insertions(+), 580109 deletions(-) mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/samsung/clksrc-change-registers.awk mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/samples/bpf/test_cgrp2_tc.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/samples/pktgen/pktgen_sample03_burst_single_flow.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/samples/pktgen/pktgen_sample04_many_flows.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/samples/pktgen/pktgen_sample06_numa_awared_queue_irq_affinity.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/scripts/atomic/gen-atomic-instrumented.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/scripts/bloat-o-meter mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/scripts/check-sysctl-docs mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/scripts/cleanfile mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/scripts/diffconfig mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/scripts/dtc/dt-extract-compatibles mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/scripts/dummy-tools/gcc mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/scripts/extract-module-sig.pl mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/scripts/extract-sys-certs.pl mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/scripts/headerdep.pl mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/scripts/macro_checker.py mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/scripts/package/buildtar mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/scripts/tracing/draw_functrace.py mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/scripts/tracing/ftrace-bisect.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/scripts/xz_wrap.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/bootconfig/test-bootconfig.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/debugging/kernel-chktaint mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/hv/lsvmbus mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/memory-model/scripts/cmplitmushist.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/memory-model/scripts/parseargs.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/net/sunrpc/xdrgen/xdrgen mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/net/ynl/cli.py mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/perf/perf-archive.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/perf/scripts/python/stackcollapse.py mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/perf/tests/shell/base_probe/test_adding_blacklisted.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/perf/tests/shell/buildid.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/perf/tests/shell/record+probe_libc_inet_pton.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/perf/tests/shell/record_lbr.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/bpf/ima_setup.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/bpf/test_bpftool_build.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/cpufreq/main.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/drivers/net/hw/csum.py mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/drivers/net/hw/pp_alloc_fail.py mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/drivers/net/mlxsw/ethtool_lanes.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/drivers/net/mlxsw/extack.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/drivers/net/mlxsw/mirror_gre.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/drivers/net/mlxsw/qos_dscp_bridge.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/drivers/net/mlxsw/rif_bridge.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/drivers/net/mlxsw/rif_lag_vlan.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/drivers/net/netdevsim/peer.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/drivers/net/netdevsim/psample.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/drivers/net/ocelot/basic_qos.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/efivarfs/efivarfs.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/firmware/fw_upload.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/intel_pstate/run.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/livepatch/test-shadow-vars.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/mm/test_vmalloc.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/cmsg_ipv6.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/drop_monitor_tests.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/forwarding/bridge_vlan_aware.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/forwarding/lib_sh_test.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1d.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/forwarding/mirror_gre_bridge_1q.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/forwarding/router_bridge.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/forwarding/router_bridge_pvid_vlan_upper.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/forwarding/router_bridge_vlan_upper.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/forwarding/router_bridge_vlan_upper_pvid.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/forwarding/router_nh.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/forwarding/router_vid_1.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/forwarding/skbedit_priority.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/forwarding/tc_tunnel_key.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/gre_gso.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/netfilter/bridge_brouter.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/netfilter/conntrack_tcp_unreplied.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/netfilter/nft_conntrack_helper.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/netfilter/nft_meta.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/net/netfilter/nft_zones_many.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/nolibc/run-tests.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/power_supply/test_power_supply_properties.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/rcutorture/bin/kvm-check-branches.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/rcutorture/bin/kvm-recheck.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/rcutorture/bin/parse-console.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/tc-testing/tdc_batch.py mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/testing/selftests/turbostat/smi_aperf_mperf.py mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/tools/usb/usbip/vudc/vudc_server_example.sh mode change 100644 => 100755 image/debian/UFI003_MB_V02/kernel/usr/include/headers_check.pl diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/README b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/README index 85edae7d6..8bac9cb09 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/README +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/README @@ -1,95 +1,95 @@ -This directory attempts to document the ABI between the Linux kernel and -userspace, and the relative stability of these interfaces. Due to the -everchanging nature of Linux, and the differing maturity levels, these -interfaces should be used by userspace programs in different ways. - -We have four different levels of ABI stability, as shown by the four -different subdirectories in this location. Interfaces may change levels -of stability according to the rules described below. - -The different levels of stability are: - - stable/ - This directory documents the interfaces that the developer has - defined to be stable. Userspace programs are free to use these - interfaces with no restrictions, and backward compatibility for - them will be guaranteed for at least 2 years. Most interfaces - (like syscalls) are expected to never change and always be - available. - - testing/ - This directory documents interfaces that are felt to be stable, - as the main development of this interface has been completed. - The interface can be changed to add new features, but the - current interface will not break by doing this, unless grave - errors or security problems are found in them. Userspace - programs can start to rely on these interfaces, but they must be - aware of changes that can occur before these interfaces move to - be marked stable. Programs that use these interfaces are - strongly encouraged to add their name to the description of - these interfaces, so that the kernel developers can easily - notify them if any changes occur (see the description of the - layout of the files below for details on how to do this.) - - obsolete/ - This directory documents interfaces that are still remaining in - the kernel, but are marked to be removed at some later point in - time. The description of the interface will document the reason - why it is obsolete and when it can be expected to be removed. - - removed/ - This directory contains a list of the old interfaces that have - been removed from the kernel. - -Every file in these directories will contain the following information: - -What: Short description of the interface -Date: Date created -KernelVersion: Kernel version this feature first showed up in. -Contact: Primary contact for this interface (may be a mailing list) -Description: Long description of the interface and how to use it. -Users: All users of this interface who wish to be notified when - it changes. This is very important for interfaces in - the "testing" stage, so that kernel developers can work - with userspace developers to ensure that things do not - break in ways that are unacceptable. It is also - important to get feedback for these interfaces to make - sure they are working in a proper way and do not need to - be changed further. - - -Note: - The fields should be use a simple notation, compatible with ReST markup. - Also, the file **should not** have a top-level index, like:: - - === - foo - === - -How things move between levels: - -Interfaces in stable may move to obsolete, as long as the proper -notification is given. - -Interfaces may be removed from obsolete and the kernel as long as the -documented amount of time has gone by. - -Interfaces in the testing state can move to the stable state when the -developers feel they are finished. They cannot be removed from the -kernel tree without going through the obsolete state first. - -It's up to the developer to place their interfaces in the category they -wish for it to start out in. - - -Notable bits of non-ABI, which should not under any circumstances be considered -stable: - -- Kconfig. Userspace should not rely on the presence or absence of any - particular Kconfig symbol, in /proc/config.gz, in the copy of .config - commonly installed to /boot, or in any invocation of the kernel build - process. - -- Kernel-internal symbols. Do not rely on the presence, absence, location, or - type of any kernel symbol, either in System.map files or the kernel binary - itself. See Documentation/process/stable-api-nonsense.rst. +This directory attempts to document the ABI between the Linux kernel and +userspace, and the relative stability of these interfaces. Due to the +everchanging nature of Linux, and the differing maturity levels, these +interfaces should be used by userspace programs in different ways. + +We have four different levels of ABI stability, as shown by the four +different subdirectories in this location. Interfaces may change levels +of stability according to the rules described below. + +The different levels of stability are: + + stable/ + This directory documents the interfaces that the developer has + defined to be stable. Userspace programs are free to use these + interfaces with no restrictions, and backward compatibility for + them will be guaranteed for at least 2 years. Most interfaces + (like syscalls) are expected to never change and always be + available. + + testing/ + This directory documents interfaces that are felt to be stable, + as the main development of this interface has been completed. + The interface can be changed to add new features, but the + current interface will not break by doing this, unless grave + errors or security problems are found in them. Userspace + programs can start to rely on these interfaces, but they must be + aware of changes that can occur before these interfaces move to + be marked stable. Programs that use these interfaces are + strongly encouraged to add their name to the description of + these interfaces, so that the kernel developers can easily + notify them if any changes occur (see the description of the + layout of the files below for details on how to do this.) + + obsolete/ + This directory documents interfaces that are still remaining in + the kernel, but are marked to be removed at some later point in + time. The description of the interface will document the reason + why it is obsolete and when it can be expected to be removed. + + removed/ + This directory contains a list of the old interfaces that have + been removed from the kernel. + +Every file in these directories will contain the following information: + +What: Short description of the interface +Date: Date created +KernelVersion: Kernel version this feature first showed up in. +Contact: Primary contact for this interface (may be a mailing list) +Description: Long description of the interface and how to use it. +Users: All users of this interface who wish to be notified when + it changes. This is very important for interfaces in + the "testing" stage, so that kernel developers can work + with userspace developers to ensure that things do not + break in ways that are unacceptable. It is also + important to get feedback for these interfaces to make + sure they are working in a proper way and do not need to + be changed further. + + +Note: + The fields should be use a simple notation, compatible with ReST markup. + Also, the file **should not** have a top-level index, like:: + + === + foo + === + +How things move between levels: + +Interfaces in stable may move to obsolete, as long as the proper +notification is given. + +Interfaces may be removed from obsolete and the kernel as long as the +documented amount of time has gone by. + +Interfaces in the testing state can move to the stable state when the +developers feel they are finished. They cannot be removed from the +kernel tree without going through the obsolete state first. + +It's up to the developer to place their interfaces in the category they +wish for it to start out in. + + +Notable bits of non-ABI, which should not under any circumstances be considered +stable: + +- Kconfig. Userspace should not rely on the presence or absence of any + particular Kconfig symbol, in /proc/config.gz, in the copy of .config + commonly installed to /boot, or in any invocation of the kernel build + process. + +- Kernel-internal symbols. Do not rely on the presence, absence, location, or + type of any kernel symbol, either in System.map files or the kernel binary + itself. See Documentation/process/stable-api-nonsense.rst. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/obsolete/sysfs-driver-hid-roccat-savu b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/obsolete/sysfs-driver-hid-roccat-savu index aa9d1c47d..99fda67fc 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/obsolete/sysfs-driver-hid-roccat-savu +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/obsolete/sysfs-driver-hid-roccat-savu @@ -1,77 +1,77 @@ -What: /sys/bus/usb/devices/-:./::./savu/roccatsavu/buttons -Date: Mai 2012 -Contact: Stefan Achatz -Description: The mouse can store 5 profiles which can be switched by the - press of a button. A profile is split into general settings and - button settings. The buttons variable holds information about - button layout. When written, this file lets one write the - respective profile buttons to the mouse. The data has to be - 47 bytes long. - The mouse will reject invalid data. - Which profile to write is determined by the profile number - contained in the data. - Before reading this file, control has to be written to select - which profile to read. -Users: http://roccat.sourceforge.net - -What: /sys/bus/usb/devices/-:./::./savu/roccatsavu/control -Date: Mai 2012 -Contact: Stefan Achatz -Description: When written, this file lets one select which data from which - profile will be read next. The data has to be 3 bytes long. - This file is writeonly. -Users: http://roccat.sourceforge.net - -What: /sys/bus/usb/devices/-:./::./savu/roccatsavu/general -Date: Mai 2012 -Contact: Stefan Achatz -Description: The mouse can store 5 profiles which can be switched by the - press of a button. A profile is split into general settings and - button settings. A profile holds information like resolution, - sensitivity and light effects. - When written, this file lets one write the respective profile - settings back to the mouse. The data has to be 43 bytes long. - The mouse will reject invalid data. - Which profile to write is determined by the profile number - contained in the data. - This file is writeonly. -Users: http://roccat.sourceforge.net - -What: /sys/bus/usb/devices/-:./::./savu/roccatsavu/info -Date: Mai 2012 -Contact: Stefan Achatz -Description: When read, this file returns general data like firmware version. - When written, the device can be reset. - The data is 8 bytes long. -Users: http://roccat.sourceforge.net - -What: /sys/bus/usb/devices/-:./::./savu/roccatsavu/macro -Date: Mai 2012 -Contact: Stefan Achatz -Description: When written, this file lets one store macros with max 500 - keystrokes for a specific button for a specific profile. - Button and profile numbers are included in written data. - The data has to be 2083 bytes long. - Before reading this file, control has to be written to select - which profile and key to read. -Users: http://roccat.sourceforge.net - -What: /sys/bus/usb/devices/-:./::./savu/roccatsavu/profile -Date: Mai 2012 -Contact: Stefan Achatz -Description: The mouse can store 5 profiles which can be switched by the - press of a button. profile holds number of actual profile. - This value is persistent, so its value determines the profile - that's active when the mouse is powered on next time. - When written, the mouse activates the set profile immediately. - The data has to be 3 bytes long. - The mouse will reject invalid data. -Users: http://roccat.sourceforge.net - -What: /sys/bus/usb/devices/-:./::./savu/roccatsavu/sensor -Date: July 2012 -Contact: Stefan Achatz -Description: The mouse has a Avago ADNS-3090 sensor. - This file allows reading and writing of the mouse sensors registers. - The data has to be 4 bytes long. -Users: http://roccat.sourceforge.net +What: /sys/bus/usb/devices/-:./::./savu/roccatsavu/buttons +Date: Mai 2012 +Contact: Stefan Achatz +Description: The mouse can store 5 profiles which can be switched by the + press of a button. A profile is split into general settings and + button settings. The buttons variable holds information about + button layout. When written, this file lets one write the + respective profile buttons to the mouse. The data has to be + 47 bytes long. + The mouse will reject invalid data. + Which profile to write is determined by the profile number + contained in the data. + Before reading this file, control has to be written to select + which profile to read. +Users: http://roccat.sourceforge.net + +What: /sys/bus/usb/devices/-:./::./savu/roccatsavu/control +Date: Mai 2012 +Contact: Stefan Achatz +Description: When written, this file lets one select which data from which + profile will be read next. The data has to be 3 bytes long. + This file is writeonly. +Users: http://roccat.sourceforge.net + +What: /sys/bus/usb/devices/-:./::./savu/roccatsavu/general +Date: Mai 2012 +Contact: Stefan Achatz +Description: The mouse can store 5 profiles which can be switched by the + press of a button. A profile is split into general settings and + button settings. A profile holds information like resolution, + sensitivity and light effects. + When written, this file lets one write the respective profile + settings back to the mouse. The data has to be 43 bytes long. + The mouse will reject invalid data. + Which profile to write is determined by the profile number + contained in the data. + This file is writeonly. +Users: http://roccat.sourceforge.net + +What: /sys/bus/usb/devices/-:./::./savu/roccatsavu/info +Date: Mai 2012 +Contact: Stefan Achatz +Description: When read, this file returns general data like firmware version. + When written, the device can be reset. + The data is 8 bytes long. +Users: http://roccat.sourceforge.net + +What: /sys/bus/usb/devices/-:./::./savu/roccatsavu/macro +Date: Mai 2012 +Contact: Stefan Achatz +Description: When written, this file lets one store macros with max 500 + keystrokes for a specific button for a specific profile. + Button and profile numbers are included in written data. + The data has to be 2083 bytes long. + Before reading this file, control has to be written to select + which profile and key to read. +Users: http://roccat.sourceforge.net + +What: /sys/bus/usb/devices/-:./::./savu/roccatsavu/profile +Date: Mai 2012 +Contact: Stefan Achatz +Description: The mouse can store 5 profiles which can be switched by the + press of a button. profile holds number of actual profile. + This value is persistent, so its value determines the profile + that's active when the mouse is powered on next time. + When written, the mouse activates the set profile immediately. + The data has to be 3 bytes long. + The mouse will reject invalid data. +Users: http://roccat.sourceforge.net + +What: /sys/bus/usb/devices/-:./::./savu/roccatsavu/sensor +Date: July 2012 +Contact: Stefan Achatz +Description: The mouse has a Avago ADNS-3090 sensor. + This file allows reading and writing of the mouse sensors registers. + The data has to be 4 bytes long. +Users: http://roccat.sourceforge.net diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/stable/firewire-cdev b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/stable/firewire-cdev index 563faaaab..261f85b13 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/stable/firewire-cdev +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/stable/firewire-cdev @@ -1,111 +1,111 @@ -What: /dev/fw[0-9]+ -Date: May 2007 -KernelVersion: 2.6.22 -Contact: linux1394-devel@lists.sourceforge.net -Description: - The character device files /dev/fw* are the interface between - firewire-core and IEEE 1394 device drivers implemented in - userspace. The ioctl(2)- and read(2)-based ABI is defined and - documented in . - - This ABI offers most of the features which firewire-core also - exposes to kernelspace IEEE 1394 drivers. - - Each /dev/fw* is associated with one IEEE 1394 node, which can - be remote or local nodes. Operations on a /dev/fw* file have - different scope: - - - The 1394 node which is associated with the file: - - - Asynchronous request transmission - - Get the Configuration ROM - - Query node ID - - Query maximum speed of the path between this node - and local node - - - The 1394 bus (i.e. "card") to which the node is attached to: - - - Isochronous stream transmission and reception - - Asynchronous stream transmission and reception - - Asynchronous broadcast request transmission - - PHY packet transmission and reception - - Allocate, reallocate, deallocate isochronous - resources (channels, bandwidth) at the bus's IRM - - Query node IDs of local node, root node, IRM, bus - manager - - Query cycle time - - Bus reset initiation, bus reset event reception - - - All 1394 buses: - - - Allocation of IEEE 1212 address ranges on the local - link layers, reception of inbound requests to such - an address range, asynchronous response transmission - to inbound requests - - Addition of descriptors or directories to the local - nodes' Configuration ROM - - Due to the different scope of operations and in order to let - userland implement different access permission models, some - operations are restricted to /dev/fw* files that are associated - with a local node: - - - Addition of descriptors or directories to the local - nodes' Configuration ROM - - PHY packet transmission and reception - - A /dev/fw* file remains associated with one particular node - during its entire life time. Bus topology changes, and hence - node ID changes, are tracked by firewire-core. ABI users do not - need to be aware of topology. - - The following file operations are supported: - - open(2) - Currently the only useful flags are O_RDWR. - - ioctl(2) - Initiate various actions. Some take immediate effect, others - are performed asynchronously while or after the ioctl returns. - See the inline documentation in for - descriptions of all ioctls. - - poll(2), select(2), epoll_wait(2) etc. - Watch for events to become available to be read. - - read(2) - Receive various events. There are solicited events like - outbound asynchronous transaction completion or isochronous - buffer completion, and unsolicited events such as bus resets, - request reception, or PHY packet reception. Always use a read - buffer which is large enough to receive the largest event that - could ever arrive. See for descriptions - of all event types and for which ioctls affect reception of - events. - - mmap(2) - Allocate a DMA buffer for isochronous reception or transmission - and map it into the process address space. The arguments should - be used as follows: addr = NULL, length = the desired buffer - size, i.e. number of packets times size of largest packet, - prot = at least PROT_READ for reception and at least PROT_WRITE - for transmission, flags = MAP_SHARED, fd = the handle to the - /dev/fw*, offset = 0. - - Isochronous reception works in packet-per-buffer fashion except - for multichannel reception which works in buffer-fill mode. - - munmap(2) - Unmap the isochronous I/O buffer from the process address space. - - close(2) - Besides stopping and freeing I/O contexts that were associated - with the file descriptor, back out any changes to the local - nodes' Configuration ROM. Deallocate isochronous channels and - bandwidth at the IRM that were marked for kernel-assisted - re- and deallocation. - -Users: libraw1394; - libdc1394; - libhinawa; - tools like linux-firewire-utils, fwhack, ... +What: /dev/fw[0-9]+ +Date: May 2007 +KernelVersion: 2.6.22 +Contact: linux1394-devel@lists.sourceforge.net +Description: + The character device files /dev/fw* are the interface between + firewire-core and IEEE 1394 device drivers implemented in + userspace. The ioctl(2)- and read(2)-based ABI is defined and + documented in . + + This ABI offers most of the features which firewire-core also + exposes to kernelspace IEEE 1394 drivers. + + Each /dev/fw* is associated with one IEEE 1394 node, which can + be remote or local nodes. Operations on a /dev/fw* file have + different scope: + + - The 1394 node which is associated with the file: + + - Asynchronous request transmission + - Get the Configuration ROM + - Query node ID + - Query maximum speed of the path between this node + and local node + + - The 1394 bus (i.e. "card") to which the node is attached to: + + - Isochronous stream transmission and reception + - Asynchronous stream transmission and reception + - Asynchronous broadcast request transmission + - PHY packet transmission and reception + - Allocate, reallocate, deallocate isochronous + resources (channels, bandwidth) at the bus's IRM + - Query node IDs of local node, root node, IRM, bus + manager + - Query cycle time + - Bus reset initiation, bus reset event reception + + - All 1394 buses: + + - Allocation of IEEE 1212 address ranges on the local + link layers, reception of inbound requests to such + an address range, asynchronous response transmission + to inbound requests + - Addition of descriptors or directories to the local + nodes' Configuration ROM + + Due to the different scope of operations and in order to let + userland implement different access permission models, some + operations are restricted to /dev/fw* files that are associated + with a local node: + + - Addition of descriptors or directories to the local + nodes' Configuration ROM + - PHY packet transmission and reception + + A /dev/fw* file remains associated with one particular node + during its entire life time. Bus topology changes, and hence + node ID changes, are tracked by firewire-core. ABI users do not + need to be aware of topology. + + The following file operations are supported: + + open(2) + Currently the only useful flags are O_RDWR. + + ioctl(2) + Initiate various actions. Some take immediate effect, others + are performed asynchronously while or after the ioctl returns. + See the inline documentation in for + descriptions of all ioctls. + + poll(2), select(2), epoll_wait(2) etc. + Watch for events to become available to be read. + + read(2) + Receive various events. There are solicited events like + outbound asynchronous transaction completion or isochronous + buffer completion, and unsolicited events such as bus resets, + request reception, or PHY packet reception. Always use a read + buffer which is large enough to receive the largest event that + could ever arrive. See for descriptions + of all event types and for which ioctls affect reception of + events. + + mmap(2) + Allocate a DMA buffer for isochronous reception or transmission + and map it into the process address space. The arguments should + be used as follows: addr = NULL, length = the desired buffer + size, i.e. number of packets times size of largest packet, + prot = at least PROT_READ for reception and at least PROT_WRITE + for transmission, flags = MAP_SHARED, fd = the handle to the + /dev/fw*, offset = 0. + + Isochronous reception works in packet-per-buffer fashion except + for multichannel reception which works in buffer-fill mode. + + munmap(2) + Unmap the isochronous I/O buffer from the process address space. + + close(2) + Besides stopping and freeing I/O contexts that were associated + with the file descriptor, back out any changes to the local + nodes' Configuration ROM. Deallocate isochronous channels and + bandwidth at the IRM that were marked for kernel-assisted + re- and deallocation. + +Users: libraw1394; + libdc1394; + libhinawa; + tools like linux-firewire-utils, fwhack, ... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/stable/sysfs-bus-firewire b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/stable/sysfs-bus-firewire index 38bf1ecc9..9ac9eddb8 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/stable/sysfs-bus-firewire +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/stable/sysfs-bus-firewire @@ -1,136 +1,136 @@ -What: /sys/bus/firewire/devices/fw[0-9]+/ -Date: May 2007 -KernelVersion: 2.6.22 -Contact: linux1394-devel@lists.sourceforge.net -Description: - IEEE 1394 node device attributes. - Read-only. Mutable during the node device's lifetime. - See IEEE 1212 for semantic definitions. - - config_rom - Contents of the Configuration ROM register. - Binary attribute; an array of host-endian u32. - - guid - The node's EUI-64 in the bus information block of - Configuration ROM. - Hexadecimal string representation of an u64. - - -What: /sys/bus/firewire/devices/fw[0-9]+/units -Date: June 2009 -KernelVersion: 2.6.31 -Contact: linux1394-devel@lists.sourceforge.net -Description: - IEEE 1394 node device attribute. - Read-only. Mutable during the node device's lifetime. - See IEEE 1212 for semantic definitions. - - units - Summary of all units present in an IEEE 1394 node. - Contains space-separated tuples of specifier_id and - version of each unit present in the node. Specifier_id - and version are hexadecimal string representations of - u24 of the respective unit directory entries. - Specifier_id and version within each tuple are separated - by a colon. - -Users: udev rules to set ownership and access permissions or ACLs of - /dev/fw[0-9]+ character device files - - -What: /sys/bus/firewire/devices/fw[0-9]+/is_local -Date: July 2012 -KernelVersion: 3.6 -Contact: linux1394-devel@lists.sourceforge.net -Description: - IEEE 1394 node device attribute. - Read-only and immutable. -Values: 1: The sysfs entry represents a local node (a controller card). - - 0: The sysfs entry represents a remote node. - - -What: /sys/bus/firewire/devices/fw[0-9]+[.][0-9]+/ -Date: May 2007 -KernelVersion: 2.6.22 -Contact: linux1394-devel@lists.sourceforge.net -Description: - IEEE 1394 unit device attributes. - Read-only. Immutable during the unit device's lifetime. - See IEEE 1212 for semantic definitions. - - modalias - Same as MODALIAS in the uevent at device creation. - - rom_index - Offset of the unit directory within the parent device's - (node device's) Configuration ROM, in quadlets. - Decimal string representation. - - -What: /sys/bus/firewire/devices/*/ -Date: May 2007 -KernelVersion: 2.6.22 -Contact: linux1394-devel@lists.sourceforge.net -Description: - Attributes common to IEEE 1394 node devices and unit devices. - Read-only. Mutable during the node device's lifetime. - Immutable during the unit device's lifetime. - See IEEE 1212 for semantic definitions. - - These attributes are only created if the root directory of an - IEEE 1394 node or the unit directory of an IEEE 1394 unit - actually contains according entries. - - hardware_version - Hexadecimal string representation of an u24. - - hardware_version_name - Contents of a respective textual descriptor leaf. - - model - Hexadecimal string representation of an u24. - - model_name - Contents of a respective textual descriptor leaf. - - specifier_id - Hexadecimal string representation of an u24. - Mandatory in unit directories according to IEEE 1212. - - vendor - Hexadecimal string representation of an u24. - Mandatory in the root directory according to IEEE 1212. - - vendor_name - Contents of a respective textual descriptor leaf. - - version - Hexadecimal string representation of an u24. - Mandatory in unit directories according to IEEE 1212. - - -What: /sys/bus/firewire/drivers/sbp2/fw*/host*/target*/*:*:*:*/ieee1394_id - formerly - /sys/bus/ieee1394/drivers/sbp2/fw*/host*/target*/*:*:*:*/ieee1394_id -Date: Feb 2004 -KernelVersion: 2.6.4 -Contact: linux1394-devel@lists.sourceforge.net -Description: - SCSI target port identifier and logical unit identifier of a - logical unit of an SBP-2 target. The identifiers are specified - in SAM-2...SAM-4 annex A. They are persistent and world-wide - unique properties the SBP-2 attached target. - - Read-only attribute, immutable during the target's lifetime. - Format, as exposed by firewire-sbp2 since 2.6.22, May 2007: - Colon-separated hexadecimal string representations of - - u64 EUI-64 : u24 directory_ID : u16 LUN - - without 0x prefixes, without whitespace. The former sbp2 driver - (removed in 2.6.37 after being superseded by firewire-sbp2) used - a somewhat shorter format which was not as close to SAM. - -Users: udev rules to create /dev/disk/by-id/ symlinks +What: /sys/bus/firewire/devices/fw[0-9]+/ +Date: May 2007 +KernelVersion: 2.6.22 +Contact: linux1394-devel@lists.sourceforge.net +Description: + IEEE 1394 node device attributes. + Read-only. Mutable during the node device's lifetime. + See IEEE 1212 for semantic definitions. + + config_rom + Contents of the Configuration ROM register. + Binary attribute; an array of host-endian u32. + + guid + The node's EUI-64 in the bus information block of + Configuration ROM. + Hexadecimal string representation of an u64. + + +What: /sys/bus/firewire/devices/fw[0-9]+/units +Date: June 2009 +KernelVersion: 2.6.31 +Contact: linux1394-devel@lists.sourceforge.net +Description: + IEEE 1394 node device attribute. + Read-only. Mutable during the node device's lifetime. + See IEEE 1212 for semantic definitions. + + units + Summary of all units present in an IEEE 1394 node. + Contains space-separated tuples of specifier_id and + version of each unit present in the node. Specifier_id + and version are hexadecimal string representations of + u24 of the respective unit directory entries. + Specifier_id and version within each tuple are separated + by a colon. + +Users: udev rules to set ownership and access permissions or ACLs of + /dev/fw[0-9]+ character device files + + +What: /sys/bus/firewire/devices/fw[0-9]+/is_local +Date: July 2012 +KernelVersion: 3.6 +Contact: linux1394-devel@lists.sourceforge.net +Description: + IEEE 1394 node device attribute. + Read-only and immutable. +Values: 1: The sysfs entry represents a local node (a controller card). + + 0: The sysfs entry represents a remote node. + + +What: /sys/bus/firewire/devices/fw[0-9]+[.][0-9]+/ +Date: May 2007 +KernelVersion: 2.6.22 +Contact: linux1394-devel@lists.sourceforge.net +Description: + IEEE 1394 unit device attributes. + Read-only. Immutable during the unit device's lifetime. + See IEEE 1212 for semantic definitions. + + modalias + Same as MODALIAS in the uevent at device creation. + + rom_index + Offset of the unit directory within the parent device's + (node device's) Configuration ROM, in quadlets. + Decimal string representation. + + +What: /sys/bus/firewire/devices/*/ +Date: May 2007 +KernelVersion: 2.6.22 +Contact: linux1394-devel@lists.sourceforge.net +Description: + Attributes common to IEEE 1394 node devices and unit devices. + Read-only. Mutable during the node device's lifetime. + Immutable during the unit device's lifetime. + See IEEE 1212 for semantic definitions. + + These attributes are only created if the root directory of an + IEEE 1394 node or the unit directory of an IEEE 1394 unit + actually contains according entries. + + hardware_version + Hexadecimal string representation of an u24. + + hardware_version_name + Contents of a respective textual descriptor leaf. + + model + Hexadecimal string representation of an u24. + + model_name + Contents of a respective textual descriptor leaf. + + specifier_id + Hexadecimal string representation of an u24. + Mandatory in unit directories according to IEEE 1212. + + vendor + Hexadecimal string representation of an u24. + Mandatory in the root directory according to IEEE 1212. + + vendor_name + Contents of a respective textual descriptor leaf. + + version + Hexadecimal string representation of an u24. + Mandatory in unit directories according to IEEE 1212. + + +What: /sys/bus/firewire/drivers/sbp2/fw*/host*/target*/*:*:*:*/ieee1394_id + formerly + /sys/bus/ieee1394/drivers/sbp2/fw*/host*/target*/*:*:*:*/ieee1394_id +Date: Feb 2004 +KernelVersion: 2.6.4 +Contact: linux1394-devel@lists.sourceforge.net +Description: + SCSI target port identifier and logical unit identifier of a + logical unit of an SBP-2 target. The identifiers are specified + in SAM-2...SAM-4 annex A. They are persistent and world-wide + unique properties the SBP-2 attached target. + + Read-only attribute, immutable during the target's lifetime. + Format, as exposed by firewire-sbp2 since 2.6.22, May 2007: + Colon-separated hexadecimal string representations of + + u64 EUI-64 : u24 directory_ID : u16 LUN + + without 0x prefixes, without whitespace. The former sbp2 driver + (removed in 2.6.37 after being superseded by firewire-sbp2) used + a somewhat shorter format which was not as close to SAM. + +Users: udev rules to create /dev/disk/by-id/ symlinks diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/debugfs-driver-dcc b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/debugfs-driver-dcc index 601309df8..27ed5919d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/debugfs-driver-dcc +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/debugfs-driver-dcc @@ -1,127 +1,127 @@ -What: /sys/kernel/debug/dcc/.../ready -Date: December 2022 -Contact: Souradeep Chowdhury -Description: - This file is used to check the status of the dcc - hardware if it's ready to receive user configurations. - A 'Y' here indicates dcc is ready. - -What: /sys/kernel/debug/dcc/.../trigger -Date: December 2022 -Contact: Souradeep Chowdhury -Description: - This is the debugfs interface for manual software - triggers. The trigger can be invoked by writing '1' - to the file. - -What: /sys/kernel/debug/dcc/.../config_reset -Date: December 2022 -Contact: Souradeep Chowdhury -Description: - This file is used to reset the configuration of - a dcc driver to the default configuration. When '1' - is written to the file, all the previous addresses - stored in the driver gets removed and users need to - reconfigure addresses again. - -What: /sys/kernel/debug/dcc/.../[list-number]/config -Date: December 2022 -Contact: Souradeep Chowdhury -Description: - This stores the addresses of the registers which - can be read in case of a hardware crash or manual - software triggers. The input addresses type - can be one of following dcc instructions: read, - write, read-write, and loop type. The lists need to - be configured sequentially and not in a overlapping - manner; e.g. users can jump to list x only after - list y is configured and enabled. The input format for - each type is as follows: - - i) Read instruction - - :: - - echo R >/sys/kernel/debug/dcc/../[list-number]/config - - where: - - - The address to be read. - - - The addresses word count, starting from address <1>. - Each word is 32 bits (4 bytes). If omitted, defaulted - to 1. - - - The bus type, which can be either 'apb' or 'ahb'. - The default is 'ahb' if leaved out. - - ii) Write instruction - - :: - - echo W > /sys/kernel/debug/dcc/../[list-number]/config - - where: - - - The address to be written. - - - The value to be written at . - - - The bus type, which can be either 'apb' or 'ahb'. - - iii) Read-write instruction - - :: - - echo RW > /sys/kernel/debug/dcc/../[list-number]/config - - where: - - - The address to be read and written. - - - The value to be written at . - - - The value mask. - - iv) Loop instruction - - :: - - echo L
... > /sys/kernel/debug/dcc/../[list-number]/config - - where: - - - Number of iterations - -
- total number of addresses to be written - -
- Space-separated list of addresses. - -What: /sys/kernel/debug/dcc/.../[list-number]/enable -Date: December 2022 -Contact: Souradeep Chowdhury -Description: - This debugfs interface is used for enabling the - the dcc hardware. A file named "enable" is in the - directory list number where users can enable/disable - the specific list by writing boolean (1 or 0) to the - file. - - On enabling the dcc, all the addresses specified - by the user for the corresponding list is written - into dcc sram which is read by the dcc hardware - on manual or crash induced triggers. Lists must - be configured and enabled sequentially, e.g. list - 2 can only be enabled when list 1 have so. +What: /sys/kernel/debug/dcc/.../ready +Date: December 2022 +Contact: Souradeep Chowdhury +Description: + This file is used to check the status of the dcc + hardware if it's ready to receive user configurations. + A 'Y' here indicates dcc is ready. + +What: /sys/kernel/debug/dcc/.../trigger +Date: December 2022 +Contact: Souradeep Chowdhury +Description: + This is the debugfs interface for manual software + triggers. The trigger can be invoked by writing '1' + to the file. + +What: /sys/kernel/debug/dcc/.../config_reset +Date: December 2022 +Contact: Souradeep Chowdhury +Description: + This file is used to reset the configuration of + a dcc driver to the default configuration. When '1' + is written to the file, all the previous addresses + stored in the driver gets removed and users need to + reconfigure addresses again. + +What: /sys/kernel/debug/dcc/.../[list-number]/config +Date: December 2022 +Contact: Souradeep Chowdhury +Description: + This stores the addresses of the registers which + can be read in case of a hardware crash or manual + software triggers. The input addresses type + can be one of following dcc instructions: read, + write, read-write, and loop type. The lists need to + be configured sequentially and not in a overlapping + manner; e.g. users can jump to list x only after + list y is configured and enabled. The input format for + each type is as follows: + + i) Read instruction + + :: + + echo R >/sys/kernel/debug/dcc/../[list-number]/config + + where: + + + The address to be read. + + + The addresses word count, starting from address <1>. + Each word is 32 bits (4 bytes). If omitted, defaulted + to 1. + + + The bus type, which can be either 'apb' or 'ahb'. + The default is 'ahb' if leaved out. + + ii) Write instruction + + :: + + echo W > /sys/kernel/debug/dcc/../[list-number]/config + + where: + + + The address to be written. + + + The value to be written at . + + + The bus type, which can be either 'apb' or 'ahb'. + + iii) Read-write instruction + + :: + + echo RW > /sys/kernel/debug/dcc/../[list-number]/config + + where: + + + The address to be read and written. + + + The value to be written at . + + + The value mask. + + iv) Loop instruction + + :: + + echo L
... > /sys/kernel/debug/dcc/../[list-number]/config + + where: + + + Number of iterations + +
+ total number of addresses to be written + +
+ Space-separated list of addresses. + +What: /sys/kernel/debug/dcc/.../[list-number]/enable +Date: December 2022 +Contact: Souradeep Chowdhury +Description: + This debugfs interface is used for enabling the + the dcc hardware. A file named "enable" is in the + directory list number where users can enable/disable + the specific list by writing boolean (1 or 0) to the + file. + + On enabling the dcc, all the addresses specified + by the user for the corresponding list is written + into dcc sram which is read by the dcc hardware + on manual or crash induced triggers. Lists must + be configured and enabled sequentially, e.g. list + 2 can only be enabled when list 1 have so. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/debugfs-driver-genwqe b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/debugfs-driver-genwqe index d5a5242fe..b45b01654 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/debugfs-driver-genwqe +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/debugfs-driver-genwqe @@ -1,91 +1,91 @@ -What: /sys/kernel/debug/genwqe/genwqe_card/ddcb_info -Date: Oct 2013 -Contact: haver@linux.vnet.ibm.com -Description: DDCB queue dump used for debugging queueing problems. - -What: /sys/kernel/debug/genwqe/genwqe_card/curr_regs -Date: Oct 2013 -Contact: haver@linux.vnet.ibm.com -Description: Dump of the current error registers. - Only available for PF. - -What: /sys/kernel/debug/genwqe/genwqe_card/curr_dbg_uid0 -Date: Oct 2013 -Contact: haver@linux.vnet.ibm.com -Description: Internal chip state of UID0 (unit id 0). - Only available for PF. - -What: /sys/kernel/debug/genwqe/genwqe_card/curr_dbg_uid1 -Date: Oct 2013 -Contact: haver@linux.vnet.ibm.com -Description: Internal chip state of UID1. - Only available for PF. - -What: /sys/kernel/debug/genwqe/genwqe_card/curr_dbg_uid2 -Date: Oct 2013 -Contact: haver@linux.vnet.ibm.com -Description: Internal chip state of UID2. - Only available for PF. - -What: /sys/kernel/debug/genwqe/genwqe_card/prev_regs -Date: Oct 2013 -Contact: haver@linux.vnet.ibm.com -Description: Dump of the error registers before the last reset of - the card occurred. - Only available for PF. - -What: /sys/kernel/debug/genwqe/genwqe_card/prev_dbg_uid0 -Date: Oct 2013 -Contact: haver@linux.vnet.ibm.com -Description: Internal chip state of UID0 before card was reset. - Only available for PF. - -What: /sys/kernel/debug/genwqe/genwqe_card/prev_dbg_uid1 -Date: Oct 2013 -Contact: haver@linux.vnet.ibm.com -Description: Internal chip state of UID1 before card was reset. - Only available for PF. - -What: /sys/kernel/debug/genwqe/genwqe_card/prev_dbg_uid2 -Date: Oct 2013 -Contact: haver@linux.vnet.ibm.com -Description: Internal chip state of UID2 before card was reset. - Only available for PF. - -What: /sys/kernel/debug/genwqe/genwqe_card/info -Date: Oct 2013 -Contact: haver@linux.vnet.ibm.com -Description: Comprehensive summary of bitstream version and software - version. Used bitstream and bitstream clocking information. - -What: /sys/kernel/debug/genwqe/genwqe_card/err_inject -Date: Oct 2013 -Contact: haver@linux.vnet.ibm.com -Description: Possibility to inject error cases to ensure that the drivers - error handling code works well. - -What: /sys/kernel/debug/genwqe/genwqe_card/vf<0..14>_jobtimeout_msec -Date: Oct 2013 -Contact: haver@linux.vnet.ibm.com -Description: Default VF timeout 250ms. Testing might require 1000ms. - Using 0 will use the cards default value (whatever that is). - - The timeout depends on the max number of available cards - in the system and the maximum allowed queue size. - - The driver ensures that the settings are done just before - the VFs get enabled. Changing the timeouts in flight is not - possible. - Only available for PF. - -What: /sys/kernel/debug/genwqe/genwqe_card/jobtimer -Date: Oct 2013 -Contact: haver@linux.vnet.ibm.com -Description: Dump job timeout register values for PF and VFs. - Only available for PF. - -What: /sys/kernel/debug/genwqe/genwqe_card/queue_working_time -Date: Dec 2013 -Contact: haver@linux.vnet.ibm.com -Description: Dump queue working time register values for PF and VFs. - Only available for PF. +What: /sys/kernel/debug/genwqe/genwqe_card/ddcb_info +Date: Oct 2013 +Contact: haver@linux.vnet.ibm.com +Description: DDCB queue dump used for debugging queueing problems. + +What: /sys/kernel/debug/genwqe/genwqe_card/curr_regs +Date: Oct 2013 +Contact: haver@linux.vnet.ibm.com +Description: Dump of the current error registers. + Only available for PF. + +What: /sys/kernel/debug/genwqe/genwqe_card/curr_dbg_uid0 +Date: Oct 2013 +Contact: haver@linux.vnet.ibm.com +Description: Internal chip state of UID0 (unit id 0). + Only available for PF. + +What: /sys/kernel/debug/genwqe/genwqe_card/curr_dbg_uid1 +Date: Oct 2013 +Contact: haver@linux.vnet.ibm.com +Description: Internal chip state of UID1. + Only available for PF. + +What: /sys/kernel/debug/genwqe/genwqe_card/curr_dbg_uid2 +Date: Oct 2013 +Contact: haver@linux.vnet.ibm.com +Description: Internal chip state of UID2. + Only available for PF. + +What: /sys/kernel/debug/genwqe/genwqe_card/prev_regs +Date: Oct 2013 +Contact: haver@linux.vnet.ibm.com +Description: Dump of the error registers before the last reset of + the card occurred. + Only available for PF. + +What: /sys/kernel/debug/genwqe/genwqe_card/prev_dbg_uid0 +Date: Oct 2013 +Contact: haver@linux.vnet.ibm.com +Description: Internal chip state of UID0 before card was reset. + Only available for PF. + +What: /sys/kernel/debug/genwqe/genwqe_card/prev_dbg_uid1 +Date: Oct 2013 +Contact: haver@linux.vnet.ibm.com +Description: Internal chip state of UID1 before card was reset. + Only available for PF. + +What: /sys/kernel/debug/genwqe/genwqe_card/prev_dbg_uid2 +Date: Oct 2013 +Contact: haver@linux.vnet.ibm.com +Description: Internal chip state of UID2 before card was reset. + Only available for PF. + +What: /sys/kernel/debug/genwqe/genwqe_card/info +Date: Oct 2013 +Contact: haver@linux.vnet.ibm.com +Description: Comprehensive summary of bitstream version and software + version. Used bitstream and bitstream clocking information. + +What: /sys/kernel/debug/genwqe/genwqe_card/err_inject +Date: Oct 2013 +Contact: haver@linux.vnet.ibm.com +Description: Possibility to inject error cases to ensure that the drivers + error handling code works well. + +What: /sys/kernel/debug/genwqe/genwqe_card/vf<0..14>_jobtimeout_msec +Date: Oct 2013 +Contact: haver@linux.vnet.ibm.com +Description: Default VF timeout 250ms. Testing might require 1000ms. + Using 0 will use the cards default value (whatever that is). + + The timeout depends on the max number of available cards + in the system and the maximum allowed queue size. + + The driver ensures that the settings are done just before + the VFs get enabled. Changing the timeouts in flight is not + possible. + Only available for PF. + +What: /sys/kernel/debug/genwqe/genwqe_card/jobtimer +Date: Oct 2013 +Contact: haver@linux.vnet.ibm.com +Description: Dump job timeout register values for PF and VFs. + Only available for PF. + +What: /sys/kernel/debug/genwqe/genwqe_card/queue_working_time +Date: Dec 2013 +Contact: haver@linux.vnet.ibm.com +Description: Dump queue working time register values for PF and VFs. + Only available for PF. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/debugfs-driver-qat b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/debugfs-driver-qat index 7bee2dba5..bd6793760 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/debugfs-driver-qat +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/debugfs-driver-qat @@ -1,109 +1,109 @@ -What: /sys/kernel/debug/qat__/fw_counters -Date: November 2023 -KernelVersion: 6.6 -Contact: qat-linux@intel.com -Description: (RO) Read returns the number of requests sent to the FW and the number of responses - received from the FW for each Acceleration Engine - Reported firmware counters:: - - : Number of requests sent from Acceleration Engine N to FW and responses - Acceleration Engine N received from FW - -What: /sys/kernel/debug/qat__/heartbeat/config -Date: November 2023 -KernelVersion: 6.6 -Contact: qat-linux@intel.com -Description: (RW) Read returns value of the Heartbeat update period. - Write to the file changes this period value. - - This period should reflect planned polling interval of device - health status. High frequency Heartbeat monitoring wastes CPU cycles - but minimizes the customer’s system downtime. Also, if there are - large service requests that take some time to complete, high frequency - Heartbeat monitoring could result in false reports of unresponsiveness - and in those cases, period needs to be increased. - - This parameter is effective only for c3xxx, c62x, dh895xcc devices. - 4xxx has this value internally fixed to 200ms. - - Default value is set to 500. Minimal allowed value is 200. - All values are expressed in milliseconds. - -What: /sys/kernel/debug/qat__/heartbeat/queries_failed -Date: November 2023 -KernelVersion: 6.6 -Contact: qat-linux@intel.com -Description: (RO) Read returns the number of times the device became unresponsive. - - Attribute returns value of the counter which is incremented when - status query results negative. - -What: /sys/kernel/debug/qat__/heartbeat/queries_sent -Date: November 2023 -KernelVersion: 6.6 -Contact: qat-linux@intel.com -Description: (RO) Read returns the number of times the control process checked - if the device is responsive. - - Attribute returns value of the counter which is incremented on - every status query. - -What: /sys/kernel/debug/qat__/heartbeat/status -Date: November 2023 -KernelVersion: 6.6 -Contact: qat-linux@intel.com -Description: (RO) Read returns the device health status. - - Returns 0 when device is healthy or -1 when is unresponsive - or the query failed to send. - - The driver does not monitor for Heartbeat. It is left for a user - to poll the status periodically. - -What: /sys/kernel/debug/qat__/pm_status -Date: January 2024 -KernelVersion: 6.7 -Contact: qat-linux@intel.com -Description: (RO) Read returns power management information specific to the - QAT device. - - This attribute is only available for qat_4xxx devices. - -What: /sys/kernel/debug/qat__/cnv_errors -Date: January 2024 -KernelVersion: 6.7 -Contact: qat-linux@intel.com -Description: (RO) Read returns, for each Acceleration Engine (AE), the number - of errors and the type of the last error detected by the device - when performing verified compression. - Reported counters:: - - : Number of Compress and Verify (CnV) errors and type - of the last CnV error detected by Acceleration - Engine N. - -What: /sys/kernel/debug/qat__/heartbeat/inject_error -Date: March 2024 -KernelVersion: 6.8 -Contact: qat-linux@intel.com -Description: (WO) Write to inject an error that simulates an heartbeat - failure. This is to be used for testing purposes. - - After writing this file, the driver stops arbitration on a - random engine and disables the fetching of heartbeat counters. - If a workload is running on the device, a job submitted to the - accelerator might not get a response and a read of the - `heartbeat/status` attribute might report -1, i.e. device - unresponsive. - The error is unrecoverable thus the device must be restarted to - restore its functionality. - - This attribute is available only when the kernel is built with - CONFIG_CRYPTO_DEV_QAT_ERROR_INJECTION=y. - - A write of 1 enables error injection. - - The following example shows how to enable error injection:: - - # cd /sys/kernel/debug/qat__ - # echo 1 > heartbeat/inject_error +What: /sys/kernel/debug/qat__/fw_counters +Date: November 2023 +KernelVersion: 6.6 +Contact: qat-linux@intel.com +Description: (RO) Read returns the number of requests sent to the FW and the number of responses + received from the FW for each Acceleration Engine + Reported firmware counters:: + + : Number of requests sent from Acceleration Engine N to FW and responses + Acceleration Engine N received from FW + +What: /sys/kernel/debug/qat__/heartbeat/config +Date: November 2023 +KernelVersion: 6.6 +Contact: qat-linux@intel.com +Description: (RW) Read returns value of the Heartbeat update period. + Write to the file changes this period value. + + This period should reflect planned polling interval of device + health status. High frequency Heartbeat monitoring wastes CPU cycles + but minimizes the customer’s system downtime. Also, if there are + large service requests that take some time to complete, high frequency + Heartbeat monitoring could result in false reports of unresponsiveness + and in those cases, period needs to be increased. + + This parameter is effective only for c3xxx, c62x, dh895xcc devices. + 4xxx has this value internally fixed to 200ms. + + Default value is set to 500. Minimal allowed value is 200. + All values are expressed in milliseconds. + +What: /sys/kernel/debug/qat__/heartbeat/queries_failed +Date: November 2023 +KernelVersion: 6.6 +Contact: qat-linux@intel.com +Description: (RO) Read returns the number of times the device became unresponsive. + + Attribute returns value of the counter which is incremented when + status query results negative. + +What: /sys/kernel/debug/qat__/heartbeat/queries_sent +Date: November 2023 +KernelVersion: 6.6 +Contact: qat-linux@intel.com +Description: (RO) Read returns the number of times the control process checked + if the device is responsive. + + Attribute returns value of the counter which is incremented on + every status query. + +What: /sys/kernel/debug/qat__/heartbeat/status +Date: November 2023 +KernelVersion: 6.6 +Contact: qat-linux@intel.com +Description: (RO) Read returns the device health status. + + Returns 0 when device is healthy or -1 when is unresponsive + or the query failed to send. + + The driver does not monitor for Heartbeat. It is left for a user + to poll the status periodically. + +What: /sys/kernel/debug/qat__/pm_status +Date: January 2024 +KernelVersion: 6.7 +Contact: qat-linux@intel.com +Description: (RO) Read returns power management information specific to the + QAT device. + + This attribute is only available for qat_4xxx devices. + +What: /sys/kernel/debug/qat__/cnv_errors +Date: January 2024 +KernelVersion: 6.7 +Contact: qat-linux@intel.com +Description: (RO) Read returns, for each Acceleration Engine (AE), the number + of errors and the type of the last error detected by the device + when performing verified compression. + Reported counters:: + + : Number of Compress and Verify (CnV) errors and type + of the last CnV error detected by Acceleration + Engine N. + +What: /sys/kernel/debug/qat__/heartbeat/inject_error +Date: March 2024 +KernelVersion: 6.8 +Contact: qat-linux@intel.com +Description: (WO) Write to inject an error that simulates an heartbeat + failure. This is to be used for testing purposes. + + After writing this file, the driver stops arbitration on a + random engine and disables the fetching of heartbeat counters. + If a workload is running on the device, a job submitted to the + accelerator might not get a response and a read of the + `heartbeat/status` attribute might report -1, i.e. device + unresponsive. + The error is unrecoverable thus the device must be restarted to + restore its functionality. + + This attribute is available only when the kernel is built with + CONFIG_CRYPTO_DEV_QAT_ERROR_INJECTION=y. + + A write of 1 enables error injection. + + The following example shows how to enable error injection:: + + # cd /sys/kernel/debug/qat__ + # echo 1 > heartbeat/inject_error diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/evm b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/evm index 9c70309d8..44750a933 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/evm +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/evm @@ -1,108 +1,108 @@ -What: /sys/kernel/security/evm -What: /sys/kernel/security/*/evm -Date: March 2011 -Contact: Mimi Zohar -Description: - EVM protects a file's security extended attributes(xattrs) - against integrity attacks. The initial method maintains an - HMAC-sha1 value across the extended attributes, storing the - value as the extended attribute 'security.evm'. - - EVM supports two classes of security.evm. The first is - an HMAC-sha1 generated locally with a - trusted/encrypted key stored in the Kernel Key - Retention System. The second is a digital signature - generated either locally or remotely using an - asymmetric key. These keys are loaded onto root's - keyring using keyctl, and EVM is then enabled by - echoing a value to /evm made up of the - following bits: - - === ================================================== - Bit Effect - === ================================================== - 0 Enable HMAC validation and creation - 1 Enable digital signature validation - 2 Permit modification of EVM-protected metadata at - runtime. Not supported if HMAC validation and - creation is enabled (deprecated). - 31 Disable further runtime modification of EVM policy - === ================================================== - - For example:: - - echo 1 >/evm - - will enable HMAC validation and creation - - :: - - echo 0x80000003 >/evm - - will enable HMAC and digital signature validation and - HMAC creation and disable all further modification of policy. - - :: - - echo 0x80000006 >/evm - - will enable digital signature validation, permit - modification of EVM-protected metadata and - disable all further modification of policy. This option is now - deprecated in favor of:: - - echo 0x80000002 >/evm - - as the outstanding issues that prevent the usage of EVM portable - signatures have been solved. - - Echoing a value is additive, the new value is added to the - existing initialization flags. - - For example, after:: - - echo 2 >/evm - - another echo can be performed:: - - echo 1 >/evm - - and the resulting value will be 3. - - Note that once an HMAC key has been loaded, it will no longer - be possible to enable metadata modification. Signaling that an - HMAC key has been loaded will clear the corresponding flag. - For example, if the current value is 6 (2 and 4 set):: - - echo 1 >/evm - - will set the new value to 3 (4 cleared). - - Loading an HMAC key is the only way to disable metadata - modification. - - Until key loading has been signaled EVM can not create - or validate the 'security.evm' xattr, but returns - INTEGRITY_UNKNOWN. Loading keys and signaling EVM - should be done as early as possible. Normally this is - done in the initramfs, which has already been measured - as part of the trusted boot. For more information on - creating and loading existing trusted/encrypted keys, - refer to: - Documentation/security/keys/trusted-encrypted.rst. Both - dracut (via 97masterkey and 98integrity) and systemd (via - core/ima-setup) have support for loading keys at boot - time. - -What: /sys/kernel/security/*/evm/evm_xattrs -Date: April 2018 -Contact: Matthew Garrett -Description: - Shows the set of extended attributes used to calculate or - validate the EVM signature, and allows additional attributes - to be added at runtime. Any signatures generated after - additional attributes are added (and on files possessing those - additional attributes) will only be valid if the same - additional attributes are configured on system boot. Writing - a single period (.) will lock the xattr list from any further - modification. +What: /sys/kernel/security/evm +What: /sys/kernel/security/*/evm +Date: March 2011 +Contact: Mimi Zohar +Description: + EVM protects a file's security extended attributes(xattrs) + against integrity attacks. The initial method maintains an + HMAC-sha1 value across the extended attributes, storing the + value as the extended attribute 'security.evm'. + + EVM supports two classes of security.evm. The first is + an HMAC-sha1 generated locally with a + trusted/encrypted key stored in the Kernel Key + Retention System. The second is a digital signature + generated either locally or remotely using an + asymmetric key. These keys are loaded onto root's + keyring using keyctl, and EVM is then enabled by + echoing a value to /evm made up of the + following bits: + + === ================================================== + Bit Effect + === ================================================== + 0 Enable HMAC validation and creation + 1 Enable digital signature validation + 2 Permit modification of EVM-protected metadata at + runtime. Not supported if HMAC validation and + creation is enabled (deprecated). + 31 Disable further runtime modification of EVM policy + === ================================================== + + For example:: + + echo 1 >/evm + + will enable HMAC validation and creation + + :: + + echo 0x80000003 >/evm + + will enable HMAC and digital signature validation and + HMAC creation and disable all further modification of policy. + + :: + + echo 0x80000006 >/evm + + will enable digital signature validation, permit + modification of EVM-protected metadata and + disable all further modification of policy. This option is now + deprecated in favor of:: + + echo 0x80000002 >/evm + + as the outstanding issues that prevent the usage of EVM portable + signatures have been solved. + + Echoing a value is additive, the new value is added to the + existing initialization flags. + + For example, after:: + + echo 2 >/evm + + another echo can be performed:: + + echo 1 >/evm + + and the resulting value will be 3. + + Note that once an HMAC key has been loaded, it will no longer + be possible to enable metadata modification. Signaling that an + HMAC key has been loaded will clear the corresponding flag. + For example, if the current value is 6 (2 and 4 set):: + + echo 1 >/evm + + will set the new value to 3 (4 cleared). + + Loading an HMAC key is the only way to disable metadata + modification. + + Until key loading has been signaled EVM can not create + or validate the 'security.evm' xattr, but returns + INTEGRITY_UNKNOWN. Loading keys and signaling EVM + should be done as early as possible. Normally this is + done in the initramfs, which has already been measured + as part of the trusted boot. For more information on + creating and loading existing trusted/encrypted keys, + refer to: + Documentation/security/keys/trusted-encrypted.rst. Both + dracut (via 97masterkey and 98integrity) and systemd (via + core/ima-setup) have support for loading keys at boot + time. + +What: /sys/kernel/security/*/evm/evm_xattrs +Date: April 2018 +Contact: Matthew Garrett +Description: + Shows the set of extended attributes used to calculate or + validate the EVM signature, and allows additional attributes + to be added at runtime. Any signatures generated after + additional attributes are added (and on files possessing those + additional attributes) will only be valid if the same + additional attributes are configured on system boot. Writing + a single period (.) will lock the xattr list from any further + modification. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-ata b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-ata index 3817cb6da..3daecac48 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-ata +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-ata @@ -1,140 +1,140 @@ -What: /sys/class/ata_* -Description: - Provide a place in sysfs for storing the ATA topology of the - system. This allows retrieving various information about ATA - objects. - -Files under /sys/class/ata_port -------------------------------- - -For each port, a directory ataX is created where X is the ata_port_id of the -port. The device parent is the ata host device. - - -What: /sys/class/ata_port/ataX/nr_pmp_links -What: /sys/class/ata_port/ataX/idle_irq -Date: May, 2010 -KernelVersion: v2.6.37 -Contact: Gwendal Grignou -Description: - nr_pmp_links: (RO) If a SATA Port Multiplier (PM) is - connected, the number of links behind it. - - idle_irq: (RO) Number of IRQ received by the port while - idle [some ata HBA only]. - - -What: /sys/class/ata_port/ataX/port_no -Date: May, 2013 -KernelVersion: v3.11 -Contact: Gwendal Grignou -Description: - (RO) Host local port number. While registering host controller, - port numbers are tracked based upon number of ports available on - the controller. This attribute is needed by udev for composing - persistent links in /dev/disk/by-path. - -Files under /sys/class/ata_link -------------------------------- - -Behind each port, there is a ata_link. If there is a SATA PM in the topology, 15 -ata_link objects are created. - -If a link is behind a port, the directory name is linkX, where X is ata_port_id -of the port. If a link is behind a PM, its name is linkX.Y where X is -ata_port_id of the parent port and Y the PM port. - - -What: /sys/class/ata_link/linkX[.Y]/hw_sata_spd_limit -What: /sys/class/ata_link/linkX[.Y]/sata_spd_limit -What: /sys/class/ata_link/linkX[.Y]/sata_spd -Date: May, 2010 -KernelVersion: v2.6.37 -Contact: Gwendal Grignou -Description: - hw_sata_spd_limit: (RO) Maximum speed supported by the - connected SATA device. - - sata_spd_limit: (RO) Maximum speed imposed by libata. - - sata_spd: (RO) Current speed of the link - eg. 1.5, 3 Gbps etc. - - -Files under /sys/class/ata_device ---------------------------------- - -Behind each link, up to two ata devices are created. -The name of the directory is devX[.Y].Z where: -- X is ata_port_id of the port where the device is connected, -- Y the port of the PM if any, and -- Z the device id: for PATA, there is usually 2 devices [0,1], only 1 for SATA. - - -What: /sys/class/ata_device/devX[.Y].Z/spdn_cnt -What: /sys/class/ata_device/devX[.Y].Z/gscr -What: /sys/class/ata_device/devX[.Y].Z/ering -What: /sys/class/ata_device/devX[.Y].Z/id -What: /sys/class/ata_device/devX[.Y].Z/pio_mode -What: /sys/class/ata_device/devX[.Y].Z/xfer_mode -What: /sys/class/ata_device/devX[.Y].Z/dma_mode -What: /sys/class/ata_device/devX[.Y].Z/class -Date: May, 2010 -KernelVersion: v2.6.37 -Contact: Gwendal Grignou -Description: - spdn_cnt: (RO) Number of times libata decided to lower the - speed of link due to errors. - - gscr: (RO) Cached result of the dump of PM GSCR - register. Valid registers are: - - 0: SATA_PMP_GSCR_PROD_ID, - 1: SATA_PMP_GSCR_REV, - 2: SATA_PMP_GSCR_PORT_INFO, - 32: SATA_PMP_GSCR_ERROR, - 33: SATA_PMP_GSCR_ERROR_EN, - 64: SATA_PMP_GSCR_FEAT, - 96: SATA_PMP_GSCR_FEAT_EN, - 130: SATA_PMP_GSCR_SII_GPIO - - Only valid if the device is a PM. - - ering: (RO) Formatted output of the error ring of the - device. - - id: (RO) Cached result of IDENTIFY command, as - described in ATA8 7.16 and 7.17. Only valid if - the device is not a PM. - - pio_mode: (RO) PIO transfer mode used by the device. - Mostly used by PATA devices. - - xfer_mode: (RO) Current transfer mode. Mostly used by - PATA devices. - - dma_mode: (RO) DMA transfer mode used by the device. - Mostly used by PATA devices. - - class: (RO) Device class. Can be "ata" for disk, - "atapi" for packet device, "pmp" for PM, or - "none" if no device was found behind the link. - - -What: /sys/class/ata_device/devX[.Y].Z/trim -Date: May, 2015 -KernelVersion: v4.10 -Contact: Gwendal Grignou -Description: - (RO) Shows the DSM TRIM mode currently used by the device. Valid - values are: - - unsupported: Drive does not support DSM TRIM - - unqueued: Drive supports unqueued DSM TRIM only - - queued: Drive supports queued DSM TRIM - - forced_unqueued: Drive's queued DSM support is known to - be buggy and only unqueued TRIM commands - are sent +What: /sys/class/ata_* +Description: + Provide a place in sysfs for storing the ATA topology of the + system. This allows retrieving various information about ATA + objects. + +Files under /sys/class/ata_port +------------------------------- + +For each port, a directory ataX is created where X is the ata_port_id of the +port. The device parent is the ata host device. + + +What: /sys/class/ata_port/ataX/nr_pmp_links +What: /sys/class/ata_port/ataX/idle_irq +Date: May, 2010 +KernelVersion: v2.6.37 +Contact: Gwendal Grignou +Description: + nr_pmp_links: (RO) If a SATA Port Multiplier (PM) is + connected, the number of links behind it. + + idle_irq: (RO) Number of IRQ received by the port while + idle [some ata HBA only]. + + +What: /sys/class/ata_port/ataX/port_no +Date: May, 2013 +KernelVersion: v3.11 +Contact: Gwendal Grignou +Description: + (RO) Host local port number. While registering host controller, + port numbers are tracked based upon number of ports available on + the controller. This attribute is needed by udev for composing + persistent links in /dev/disk/by-path. + +Files under /sys/class/ata_link +------------------------------- + +Behind each port, there is a ata_link. If there is a SATA PM in the topology, 15 +ata_link objects are created. + +If a link is behind a port, the directory name is linkX, where X is ata_port_id +of the port. If a link is behind a PM, its name is linkX.Y where X is +ata_port_id of the parent port and Y the PM port. + + +What: /sys/class/ata_link/linkX[.Y]/hw_sata_spd_limit +What: /sys/class/ata_link/linkX[.Y]/sata_spd_limit +What: /sys/class/ata_link/linkX[.Y]/sata_spd +Date: May, 2010 +KernelVersion: v2.6.37 +Contact: Gwendal Grignou +Description: + hw_sata_spd_limit: (RO) Maximum speed supported by the + connected SATA device. + + sata_spd_limit: (RO) Maximum speed imposed by libata. + + sata_spd: (RO) Current speed of the link + eg. 1.5, 3 Gbps etc. + + +Files under /sys/class/ata_device +--------------------------------- + +Behind each link, up to two ata devices are created. +The name of the directory is devX[.Y].Z where: +- X is ata_port_id of the port where the device is connected, +- Y the port of the PM if any, and +- Z the device id: for PATA, there is usually 2 devices [0,1], only 1 for SATA. + + +What: /sys/class/ata_device/devX[.Y].Z/spdn_cnt +What: /sys/class/ata_device/devX[.Y].Z/gscr +What: /sys/class/ata_device/devX[.Y].Z/ering +What: /sys/class/ata_device/devX[.Y].Z/id +What: /sys/class/ata_device/devX[.Y].Z/pio_mode +What: /sys/class/ata_device/devX[.Y].Z/xfer_mode +What: /sys/class/ata_device/devX[.Y].Z/dma_mode +What: /sys/class/ata_device/devX[.Y].Z/class +Date: May, 2010 +KernelVersion: v2.6.37 +Contact: Gwendal Grignou +Description: + spdn_cnt: (RO) Number of times libata decided to lower the + speed of link due to errors. + + gscr: (RO) Cached result of the dump of PM GSCR + register. Valid registers are: + + 0: SATA_PMP_GSCR_PROD_ID, + 1: SATA_PMP_GSCR_REV, + 2: SATA_PMP_GSCR_PORT_INFO, + 32: SATA_PMP_GSCR_ERROR, + 33: SATA_PMP_GSCR_ERROR_EN, + 64: SATA_PMP_GSCR_FEAT, + 96: SATA_PMP_GSCR_FEAT_EN, + 130: SATA_PMP_GSCR_SII_GPIO + + Only valid if the device is a PM. + + ering: (RO) Formatted output of the error ring of the + device. + + id: (RO) Cached result of IDENTIFY command, as + described in ATA8 7.16 and 7.17. Only valid if + the device is not a PM. + + pio_mode: (RO) PIO transfer mode used by the device. + Mostly used by PATA devices. + + xfer_mode: (RO) Current transfer mode. Mostly used by + PATA devices. + + dma_mode: (RO) DMA transfer mode used by the device. + Mostly used by PATA devices. + + class: (RO) Device class. Can be "ata" for disk, + "atapi" for packet device, "pmp" for PM, or + "none" if no device was found behind the link. + + +What: /sys/class/ata_device/devX[.Y].Z/trim +Date: May, 2015 +KernelVersion: v4.10 +Contact: Gwendal Grignou +Description: + (RO) Shows the DSM TRIM mode currently used by the device. Valid + values are: + + unsupported: Drive does not support DSM TRIM + + unqueued: Drive supports unqueued DSM TRIM only + + queued: Drive supports queued DSM TRIM + + forced_unqueued: Drive's queued DSM support is known to + be buggy and only unqueued TRIM commands + are sent diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-block-device b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-block-device index d7e967828..2d543cfa4 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-block-device +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-block-device @@ -1,119 +1,119 @@ -What: /sys/block/*/device/sw_activity -Date: Jun, 2008 -KernelVersion: v2.6.27 -Contact: linux-ide@vger.kernel.org -Description: - (RW) Used by drivers which support software controlled activity - LEDs. - - It has the following valid values: - - == ======================================================== - 0 OFF - the LED is not activated on activity - 1 BLINK_ON - the LED blinks on every 10ms when activity is - detected. - 2 BLINK_OFF - the LED is on when idle, and blinks off - every 10ms when activity is detected. - == ======================================================== - - Note that the user must turn sw_activity OFF it they wish to - control the activity LED via the em_message file. - - -What: /sys/block/*/device/unload_heads -Date: Sep, 2008 -KernelVersion: v2.6.28 -Contact: linux-ide@vger.kernel.org -Description: - (RW) Hard disk shock protection - - Writing an integer value to this file will take the heads of the - respective drive off the platter and block all I/O operations - for the specified number of milliseconds. - - - If the device does not support the unload heads feature, - access is denied with -EOPNOTSUPP. - - The maximal value accepted for a timeout is 30000 - milliseconds. - - A previously set timeout can be cancelled and disk can resume - normal operation immediately by specifying a timeout of 0. - - Some hard drives only comply with an earlier version of the - ATA standard, but support the unload feature nonetheless. - There is no safe way Linux can detect these devices, so this - is not enabled by default. If it is known that your device - does support the unload feature, then you can tell the kernel - to enable it by writing -1. It can be disabled again by - writing -2. - - Values below -2 are rejected with -EINVAL - - For more information, see - Documentation/admin-guide/laptops/disk-shock-protection.rst - - -What: /sys/block/*/device/ncq_prio_enable -Date: Oct, 2016 -KernelVersion: v4.10 -Contact: linux-ide@vger.kernel.org -Description: - (RW) Write to the file to turn on or off the SATA NCQ (native - command queueing) priority support. By default this feature is - turned off. If the device does not support the SATA NCQ - priority feature, writing "1" to this file results in an error - (see ncq_prio_supported). - - -What: /sys/block/*/device/sas_ncq_prio_enable -Date: Oct, 2016 -KernelVersion: v4.10 -Contact: linux-ide@vger.kernel.org -Description: - (RW) This is the equivalent of the ncq_prio_enable attribute - file for SATA devices connected to a SAS host-bus-adapter - (HBA) implementing support for the SATA NCQ priority feature. - This file does not exist if the HBA driver does not implement - support for the SATA NCQ priority feature, regardless of the - device support for this feature (see sas_ncq_prio_supported). - - -What: /sys/block/*/device/ncq_prio_supported -Date: Aug, 2021 -KernelVersion: v5.15 -Contact: linux-ide@vger.kernel.org -Description: - (RO) Indicates if the device supports the SATA NCQ (native - command queueing) priority feature. - - -What: /sys/block/*/device/sas_ncq_prio_supported -Date: Aug, 2021 -KernelVersion: v5.15 -Contact: linux-ide@vger.kernel.org -Description: - (RO) This is the equivalent of the ncq_prio_supported attribute - file for SATA devices connected to a SAS host-bus-adapter - (HBA) implementing support for the SATA NCQ priority feature. - This file does not exist if the HBA driver does not implement - support for the SATA NCQ priority feature, regardless of the - device support for this feature. - - -What: /sys/block/*/device/cdl_supported -Date: May, 2023 -KernelVersion: v6.5 -Contact: linux-scsi@vger.kernel.org -Description: - (RO) Indicates if the device supports the command duration - limits feature found in some ATA and SCSI devices. - - -What: /sys/block/*/device/cdl_enable -Date: May, 2023 -KernelVersion: v6.5 -Contact: linux-scsi@vger.kernel.org -Description: - (RW) For a device supporting the command duration limits - feature, write to the file to turn on or off the feature. - By default this feature is turned off. - Writing "1" to this file enables the use of command duration - limits for read and write commands in the kernel and turns on - the feature on the device. Writing "0" disables the feature. +What: /sys/block/*/device/sw_activity +Date: Jun, 2008 +KernelVersion: v2.6.27 +Contact: linux-ide@vger.kernel.org +Description: + (RW) Used by drivers which support software controlled activity + LEDs. + + It has the following valid values: + + == ======================================================== + 0 OFF - the LED is not activated on activity + 1 BLINK_ON - the LED blinks on every 10ms when activity is + detected. + 2 BLINK_OFF - the LED is on when idle, and blinks off + every 10ms when activity is detected. + == ======================================================== + + Note that the user must turn sw_activity OFF it they wish to + control the activity LED via the em_message file. + + +What: /sys/block/*/device/unload_heads +Date: Sep, 2008 +KernelVersion: v2.6.28 +Contact: linux-ide@vger.kernel.org +Description: + (RW) Hard disk shock protection + + Writing an integer value to this file will take the heads of the + respective drive off the platter and block all I/O operations + for the specified number of milliseconds. + + - If the device does not support the unload heads feature, + access is denied with -EOPNOTSUPP. + - The maximal value accepted for a timeout is 30000 + milliseconds. + - A previously set timeout can be cancelled and disk can resume + normal operation immediately by specifying a timeout of 0. + - Some hard drives only comply with an earlier version of the + ATA standard, but support the unload feature nonetheless. + There is no safe way Linux can detect these devices, so this + is not enabled by default. If it is known that your device + does support the unload feature, then you can tell the kernel + to enable it by writing -1. It can be disabled again by + writing -2. + - Values below -2 are rejected with -EINVAL + + For more information, see + Documentation/admin-guide/laptops/disk-shock-protection.rst + + +What: /sys/block/*/device/ncq_prio_enable +Date: Oct, 2016 +KernelVersion: v4.10 +Contact: linux-ide@vger.kernel.org +Description: + (RW) Write to the file to turn on or off the SATA NCQ (native + command queueing) priority support. By default this feature is + turned off. If the device does not support the SATA NCQ + priority feature, writing "1" to this file results in an error + (see ncq_prio_supported). + + +What: /sys/block/*/device/sas_ncq_prio_enable +Date: Oct, 2016 +KernelVersion: v4.10 +Contact: linux-ide@vger.kernel.org +Description: + (RW) This is the equivalent of the ncq_prio_enable attribute + file for SATA devices connected to a SAS host-bus-adapter + (HBA) implementing support for the SATA NCQ priority feature. + This file does not exist if the HBA driver does not implement + support for the SATA NCQ priority feature, regardless of the + device support for this feature (see sas_ncq_prio_supported). + + +What: /sys/block/*/device/ncq_prio_supported +Date: Aug, 2021 +KernelVersion: v5.15 +Contact: linux-ide@vger.kernel.org +Description: + (RO) Indicates if the device supports the SATA NCQ (native + command queueing) priority feature. + + +What: /sys/block/*/device/sas_ncq_prio_supported +Date: Aug, 2021 +KernelVersion: v5.15 +Contact: linux-ide@vger.kernel.org +Description: + (RO) This is the equivalent of the ncq_prio_supported attribute + file for SATA devices connected to a SAS host-bus-adapter + (HBA) implementing support for the SATA NCQ priority feature. + This file does not exist if the HBA driver does not implement + support for the SATA NCQ priority feature, regardless of the + device support for this feature. + + +What: /sys/block/*/device/cdl_supported +Date: May, 2023 +KernelVersion: v6.5 +Contact: linux-scsi@vger.kernel.org +Description: + (RO) Indicates if the device supports the command duration + limits feature found in some ATA and SCSI devices. + + +What: /sys/block/*/device/cdl_enable +Date: May, 2023 +KernelVersion: v6.5 +Contact: linux-scsi@vger.kernel.org +Description: + (RW) For a device supporting the command duration limits + feature, write to the file to turn on or off the feature. + By default this feature is turned off. + Writing "1" to this file enables the use of command duration + limits for read and write commands in the kernel and turns on + the feature on the device. Writing "0" disables the feature. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-acpi b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-acpi index 6f65815ef..58abacf59 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-acpi +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-acpi @@ -1,98 +1,98 @@ -What: /sys/bus/acpi/devices/.../path -Date: December 2006 -Contact: Rafael J. Wysocki -Description: - This attribute indicates the full path of ACPI namespace - object associated with the device object. For example, - \_SB_.PCI0. - - This file is not present for device objects representing - fixed ACPI hardware features (like power and sleep - buttons). - -What: /sys/bus/acpi/devices/.../modalias -Date: July 2007 -Contact: Rafael J. Wysocki -Description: - This attribute indicates the PNP IDs of the device object. - That is acpi:HHHHHHHH:[CCCCCCC:]. Where each HHHHHHHH or - CCCCCCCC contains device object's PNPID (_HID or _CID). - -What: /sys/bus/acpi/devices/.../hid -Date: April 2005 -Contact: Rafael J. Wysocki -Description: - This attribute indicates the hardware ID (_HID) of the - device object. For example, PNP0103. - This file is present for device objects having the _HID - control method. - -What: /sys/bus/acpi/devices/.../description -Date: October 2012 -Contact: Rafael J. Wysocki -Description: - This attribute contains the output of the device object's - _STR control method, if present. - -What: /sys/bus/acpi/devices/.../adr -Date: October 2012 -Contact: Rafael J. Wysocki -Description: - This attribute contains the output of the device object's - _ADR control method, which is present for ACPI device - objects representing devices having standard enumeration - algorithms, such as PCI. - -What: /sys/bus/acpi/devices/.../uid -Date: October 2012 -Contact: Rafael J. Wysocki -Description: - This attribute contains the output of the device object's - _UID control method, if present. - -What: /sys/bus/acpi/devices/.../eject -Date: December 2006 -Contact: Rafael J. Wysocki -Description: - Writing 1 to this attribute will trigger hot removal of - this device object. This file exists for every device - object that has _EJ0 method. - -What: /sys/bus/acpi/devices/.../status -Date: Jan, 2014 -Contact: Rafael J. Wysocki -Description: - (RO) Returns the ACPI device status: enabled, disabled or - functioning or present, if the method _STA is present. - - The return value is a decimal integer representing the device's - status bitmap: - - =========== ================================================== - Bit [0] Set if the device is present. - Bit [1] Set if the device is enabled and decoding its - resources. - Bit [2] Set if the device should be shown in the UI. - Bit [3] Set if the device is functioning properly (cleared - if device failed its diagnostics). - Bit [4] Set if the battery is present. - Bits [31:5] Reserved (must be cleared) - =========== ================================================== - - If bit [0] is clear, then bit 1 must also be clear (a device - that is not present cannot be enabled). - - Bit 0 can be clear (not present) with bit [3] set (device is - functional). This case is used to indicate a valid device for - which no device driver should be loaded. - - More special cases are covered in the ACPI specification. - -What: /sys/bus/acpi/devices/.../hrv -Date: Apr, 2016 -Contact: Rafael J. Wysocki -Description: - (RO) Allows users to read the hardware version of non-PCI - hardware, if the _HRV control method is present. It is mostly - useful for non-PCI devices because lspci can list the hardware - version for PCI devices. +What: /sys/bus/acpi/devices/.../path +Date: December 2006 +Contact: Rafael J. Wysocki +Description: + This attribute indicates the full path of ACPI namespace + object associated with the device object. For example, + \_SB_.PCI0. + + This file is not present for device objects representing + fixed ACPI hardware features (like power and sleep + buttons). + +What: /sys/bus/acpi/devices/.../modalias +Date: July 2007 +Contact: Rafael J. Wysocki +Description: + This attribute indicates the PNP IDs of the device object. + That is acpi:HHHHHHHH:[CCCCCCC:]. Where each HHHHHHHH or + CCCCCCCC contains device object's PNPID (_HID or _CID). + +What: /sys/bus/acpi/devices/.../hid +Date: April 2005 +Contact: Rafael J. Wysocki +Description: + This attribute indicates the hardware ID (_HID) of the + device object. For example, PNP0103. + This file is present for device objects having the _HID + control method. + +What: /sys/bus/acpi/devices/.../description +Date: October 2012 +Contact: Rafael J. Wysocki +Description: + This attribute contains the output of the device object's + _STR control method, if present. + +What: /sys/bus/acpi/devices/.../adr +Date: October 2012 +Contact: Rafael J. Wysocki +Description: + This attribute contains the output of the device object's + _ADR control method, which is present for ACPI device + objects representing devices having standard enumeration + algorithms, such as PCI. + +What: /sys/bus/acpi/devices/.../uid +Date: October 2012 +Contact: Rafael J. Wysocki +Description: + This attribute contains the output of the device object's + _UID control method, if present. + +What: /sys/bus/acpi/devices/.../eject +Date: December 2006 +Contact: Rafael J. Wysocki +Description: + Writing 1 to this attribute will trigger hot removal of + this device object. This file exists for every device + object that has _EJ0 method. + +What: /sys/bus/acpi/devices/.../status +Date: Jan, 2014 +Contact: Rafael J. Wysocki +Description: + (RO) Returns the ACPI device status: enabled, disabled or + functioning or present, if the method _STA is present. + + The return value is a decimal integer representing the device's + status bitmap: + + =========== ================================================== + Bit [0] Set if the device is present. + Bit [1] Set if the device is enabled and decoding its + resources. + Bit [2] Set if the device should be shown in the UI. + Bit [3] Set if the device is functioning properly (cleared + if device failed its diagnostics). + Bit [4] Set if the battery is present. + Bits [31:5] Reserved (must be cleared) + =========== ================================================== + + If bit [0] is clear, then bit 1 must also be clear (a device + that is not present cannot be enabled). + + Bit 0 can be clear (not present) with bit [3] set (device is + functional). This case is used to indicate a valid device for + which no device driver should be loaded. + + More special cases are covered in the ACPI specification. + +What: /sys/bus/acpi/devices/.../hrv +Date: Apr, 2016 +Contact: Rafael J. Wysocki +Description: + (RO) Allows users to read the hardware version of non-PCI + hardware, if the _HRV control method is present. It is mostly + useful for non-PCI devices because lspci can list the hardware + version for PCI devices. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-cdx b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-cdx index a4af40557..e84277531 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-cdx +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-cdx @@ -1,121 +1,121 @@ -What: /sys/bus/cdx/rescan -Date: March 2023 -Contact: nipun.gupta@amd.com -Description: - Writing y/1/on to this file will cause rescan of the bus - and devices on the CDX bus. Any new devices are scanned and - added to the list of Linux devices and any devices removed are - also deleted from Linux. - - For example:: - - # echo 1 > /sys/bus/cdx/rescan - -What: /sys/bus/cdx/devices/.../vendor -Date: March 2023 -Contact: nipun.gupta@amd.com -Description: - Vendor ID for this CDX device, in hexadecimal. Vendor ID is - 16 bit identifier which is specific to the device manufacturer. - Combination of Vendor ID and Device ID identifies a device. - -What: /sys/bus/cdx/devices/.../device -Date: March 2023 -Contact: nipun.gupta@amd.com -Description: - Device ID for this CDX device, in hexadecimal. Device ID is - 16 bit identifier to identify a device type within the range - of a device manufacturer. - Combination of Vendor ID and Device ID identifies a device. - -What: /sys/bus/cdx/devices/.../subsystem_vendor -Date: July 2023 -Contact: puneet.gupta@amd.com -Description: - Subsystem Vendor ID for this CDX device, in hexadecimal. - Subsystem Vendor ID is 16 bit identifier specific to the - card manufacturer. - -What: /sys/bus/cdx/devices/.../subsystem_device -Date: July 2023 -Contact: puneet.gupta@amd.com -Description: - Subsystem Device ID for this CDX device, in hexadecimal - Subsystem Device ID is 16 bit identifier specific to the - card manufacturer. - -What: /sys/bus/cdx/devices/.../class -Date: July 2023 -Contact: puneet.gupta@amd.com -Description: - This file contains the class of the CDX device, in hexadecimal. - Class is 24 bit identifier specifies the functionality of the device. - -What: /sys/bus/cdx/devices/.../revision -Date: July 2023 -Contact: puneet.gupta@amd.com -Description: - This file contains the revision field of the CDX device, in hexadecimal. - Revision is 8 bit revision identifier of the device. - -What: /sys/bus/cdx/devices/.../enable -Date: October 2023 -Contact: abhijit.gangurde@amd.com -Description: - CDX bus should be disabled before updating the devices in FPGA. - Writing n/0/off will attempt to disable the CDX bus and. - writing y/1/on will attempt to enable the CDX bus. Reading this file - gives the current state of the bus, 1 for enabled and 0 for disabled. - - For example:: - - # echo 1 > /sys/bus/cdx/.../enable - -What: /sys/bus/cdx/devices/.../reset -Date: March 2023 -Contact: nipun.gupta@amd.com -Description: - Writing y/1/on to this file resets the CDX device or all devices - on the bus. On resetting the device, the corresponding driver is - notified twice, once before the device is being reset, and again - after the reset has been complete. - - For example:: - - # echo 1 > /sys/bus/cdx/.../reset - -What: /sys/bus/cdx/devices/.../remove -Date: March 2023 -Contact: tarak.reddy@amd.com -Description: - Writing y/1/on to this file removes the corresponding - device from the CDX bus. If the device is to be reconfigured - reconfigured in the Hardware, the device can be removed, so - that the device driver does not access the device while it is - being reconfigured. - - For example:: - - # echo 1 > /sys/bus/cdx/devices/.../remove - -What: /sys/bus/cdx/devices/.../resource -Date: July 2023 -Contact: puneet.gupta@amd.com -Description: - The resource binary file contains the content of the memory - regions. These files can be m'maped from userspace. - -What: /sys/bus/cdx/devices/.../modalias -Date: July 2023 -Contact: nipun.gupta@amd.com -Description: - This attribute indicates the CDX ID of the device. - That is in the format: - cdx:vXXXXdXXXXsvXXXXsdXXXXcXXXXXX, - where: - - - vXXXX contains the vendor ID; - - dXXXX contains the device ID; - - svXXXX contains the subsystem vendor ID; - - sdXXXX contains the subsystem device ID; - - cXXXXXX contains the device class. +What: /sys/bus/cdx/rescan +Date: March 2023 +Contact: nipun.gupta@amd.com +Description: + Writing y/1/on to this file will cause rescan of the bus + and devices on the CDX bus. Any new devices are scanned and + added to the list of Linux devices and any devices removed are + also deleted from Linux. + + For example:: + + # echo 1 > /sys/bus/cdx/rescan + +What: /sys/bus/cdx/devices/.../vendor +Date: March 2023 +Contact: nipun.gupta@amd.com +Description: + Vendor ID for this CDX device, in hexadecimal. Vendor ID is + 16 bit identifier which is specific to the device manufacturer. + Combination of Vendor ID and Device ID identifies a device. + +What: /sys/bus/cdx/devices/.../device +Date: March 2023 +Contact: nipun.gupta@amd.com +Description: + Device ID for this CDX device, in hexadecimal. Device ID is + 16 bit identifier to identify a device type within the range + of a device manufacturer. + Combination of Vendor ID and Device ID identifies a device. + +What: /sys/bus/cdx/devices/.../subsystem_vendor +Date: July 2023 +Contact: puneet.gupta@amd.com +Description: + Subsystem Vendor ID for this CDX device, in hexadecimal. + Subsystem Vendor ID is 16 bit identifier specific to the + card manufacturer. + +What: /sys/bus/cdx/devices/.../subsystem_device +Date: July 2023 +Contact: puneet.gupta@amd.com +Description: + Subsystem Device ID for this CDX device, in hexadecimal + Subsystem Device ID is 16 bit identifier specific to the + card manufacturer. + +What: /sys/bus/cdx/devices/.../class +Date: July 2023 +Contact: puneet.gupta@amd.com +Description: + This file contains the class of the CDX device, in hexadecimal. + Class is 24 bit identifier specifies the functionality of the device. + +What: /sys/bus/cdx/devices/.../revision +Date: July 2023 +Contact: puneet.gupta@amd.com +Description: + This file contains the revision field of the CDX device, in hexadecimal. + Revision is 8 bit revision identifier of the device. + +What: /sys/bus/cdx/devices/.../enable +Date: October 2023 +Contact: abhijit.gangurde@amd.com +Description: + CDX bus should be disabled before updating the devices in FPGA. + Writing n/0/off will attempt to disable the CDX bus and. + writing y/1/on will attempt to enable the CDX bus. Reading this file + gives the current state of the bus, 1 for enabled and 0 for disabled. + + For example:: + + # echo 1 > /sys/bus/cdx/.../enable + +What: /sys/bus/cdx/devices/.../reset +Date: March 2023 +Contact: nipun.gupta@amd.com +Description: + Writing y/1/on to this file resets the CDX device or all devices + on the bus. On resetting the device, the corresponding driver is + notified twice, once before the device is being reset, and again + after the reset has been complete. + + For example:: + + # echo 1 > /sys/bus/cdx/.../reset + +What: /sys/bus/cdx/devices/.../remove +Date: March 2023 +Contact: tarak.reddy@amd.com +Description: + Writing y/1/on to this file removes the corresponding + device from the CDX bus. If the device is to be reconfigured + reconfigured in the Hardware, the device can be removed, so + that the device driver does not access the device while it is + being reconfigured. + + For example:: + + # echo 1 > /sys/bus/cdx/devices/.../remove + +What: /sys/bus/cdx/devices/.../resource +Date: July 2023 +Contact: puneet.gupta@amd.com +Description: + The resource binary file contains the content of the memory + regions. These files can be m'maped from userspace. + +What: /sys/bus/cdx/devices/.../modalias +Date: July 2023 +Contact: nipun.gupta@amd.com +Description: + This attribute indicates the CDX ID of the device. + That is in the format: + cdx:vXXXXdXXXXsvXXXXsdXXXXcXXXXXX, + where: + + - vXXXX contains the vendor ID; + - dXXXX contains the device ID; + - svXXXX contains the subsystem vendor ID; + - sdXXXX contains the subsystem device ID; + - cXXXXXX contains the device class. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-coresight-devices-etb10 b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-coresight-devices-etb10 index bdad5490d..9a383f6a7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-coresight-devices-etb10 +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-coresight-devices-etb10 @@ -1,82 +1,82 @@ -What: /sys/bus/coresight/devices/.etb/enable_sink -Date: November 2014 -KernelVersion: 3.19 -Contact: Mathieu Poirier -Description: (RW) Add/remove a sink from a trace path. There can be multiple - source for a single sink. - - ex:: - - echo 1 > /sys/bus/coresight/devices/20010000.etb/enable_sink - -What: /sys/bus/coresight/devices/.etb/trigger_cntr -Date: November 2014 -KernelVersion: 3.19 -Contact: Mathieu Poirier -Description: (RW) Disables write access to the Trace RAM by stopping the - formatter after a defined number of words have been stored - following the trigger event. The number of 32-bit words written - into the Trace RAM following the trigger event is equal to the - value stored in this register+1 (from ARM ETB-TRM). - -What: /sys/bus/coresight/devices/.etb/mgmt/rdp -Date: March 2016 -KernelVersion: 4.7 -Contact: Mathieu Poirier -Description: (Read) Defines the depth, in words, of the trace RAM in powers of - 2. The value is read directly from HW register RDP, 0x004. - -What: /sys/bus/coresight/devices/.etb/mgmt/sts -Date: March 2016 -KernelVersion: 4.7 -Contact: Mathieu Poirier -Description: (Read) Shows the value held by the ETB status register. The value - is read directly from HW register STS, 0x00C. - -What: /sys/bus/coresight/devices/.etb/mgmt/rrp -Date: March 2016 -KernelVersion: 4.7 -Contact: Mathieu Poirier -Description: (Read) Shows the value held by the ETB RAM Read Pointer register - that is used to read entries from the Trace RAM over the APB - interface. The value is read directly from HW register RRP, - 0x014. - -What: /sys/bus/coresight/devices/.etb/mgmt/rwp -Date: March 2016 -KernelVersion: 4.7 -Contact: Mathieu Poirier -Description: (Read) Shows the value held by the ETB RAM Write Pointer register - that is used to sets the write pointer to write entries from - the CoreSight bus into the Trace RAM. The value is read directly - from HW register RWP, 0x018. - -What: /sys/bus/coresight/devices/.etb/mgmt/trg -Date: March 2016 -KernelVersion: 4.7 -Contact: Mathieu Poirier -Description: (Read) Similar to "trigger_cntr" above except that this value is - read directly from HW register TRG, 0x01C. - -What: /sys/bus/coresight/devices/.etb/mgmt/ctl -Date: March 2016 -KernelVersion: 4.7 -Contact: Mathieu Poirier -Description: (Read) Shows the value held by the ETB Control register. The value - is read directly from HW register CTL, 0x020. - -What: /sys/bus/coresight/devices/.etb/mgmt/ffsr -Date: March 2016 -KernelVersion: 4.7 -Contact: Mathieu Poirier -Description: (Read) Shows the value held by the ETB Formatter and Flush Status - register. The value is read directly from HW register FFSR, - 0x300. - -What: /sys/bus/coresight/devices/.etb/mgmt/ffcr -Date: March 2016 -KernelVersion: 4.7 -Contact: Mathieu Poirier -Description: (Read) Shows the value held by the ETB Formatter and Flush Control - register. The value is read directly from HW register FFCR, - 0x304. +What: /sys/bus/coresight/devices/.etb/enable_sink +Date: November 2014 +KernelVersion: 3.19 +Contact: Mathieu Poirier +Description: (RW) Add/remove a sink from a trace path. There can be multiple + source for a single sink. + + ex:: + + echo 1 > /sys/bus/coresight/devices/20010000.etb/enable_sink + +What: /sys/bus/coresight/devices/.etb/trigger_cntr +Date: November 2014 +KernelVersion: 3.19 +Contact: Mathieu Poirier +Description: (RW) Disables write access to the Trace RAM by stopping the + formatter after a defined number of words have been stored + following the trigger event. The number of 32-bit words written + into the Trace RAM following the trigger event is equal to the + value stored in this register+1 (from ARM ETB-TRM). + +What: /sys/bus/coresight/devices/.etb/mgmt/rdp +Date: March 2016 +KernelVersion: 4.7 +Contact: Mathieu Poirier +Description: (Read) Defines the depth, in words, of the trace RAM in powers of + 2. The value is read directly from HW register RDP, 0x004. + +What: /sys/bus/coresight/devices/.etb/mgmt/sts +Date: March 2016 +KernelVersion: 4.7 +Contact: Mathieu Poirier +Description: (Read) Shows the value held by the ETB status register. The value + is read directly from HW register STS, 0x00C. + +What: /sys/bus/coresight/devices/.etb/mgmt/rrp +Date: March 2016 +KernelVersion: 4.7 +Contact: Mathieu Poirier +Description: (Read) Shows the value held by the ETB RAM Read Pointer register + that is used to read entries from the Trace RAM over the APB + interface. The value is read directly from HW register RRP, + 0x014. + +What: /sys/bus/coresight/devices/.etb/mgmt/rwp +Date: March 2016 +KernelVersion: 4.7 +Contact: Mathieu Poirier +Description: (Read) Shows the value held by the ETB RAM Write Pointer register + that is used to sets the write pointer to write entries from + the CoreSight bus into the Trace RAM. The value is read directly + from HW register RWP, 0x018. + +What: /sys/bus/coresight/devices/.etb/mgmt/trg +Date: March 2016 +KernelVersion: 4.7 +Contact: Mathieu Poirier +Description: (Read) Similar to "trigger_cntr" above except that this value is + read directly from HW register TRG, 0x01C. + +What: /sys/bus/coresight/devices/.etb/mgmt/ctl +Date: March 2016 +KernelVersion: 4.7 +Contact: Mathieu Poirier +Description: (Read) Shows the value held by the ETB Control register. The value + is read directly from HW register CTL, 0x020. + +What: /sys/bus/coresight/devices/.etb/mgmt/ffsr +Date: March 2016 +KernelVersion: 4.7 +Contact: Mathieu Poirier +Description: (Read) Shows the value held by the ETB Formatter and Flush Status + register. The value is read directly from HW register FFSR, + 0x300. + +What: /sys/bus/coresight/devices/.etb/mgmt/ffcr +Date: March 2016 +KernelVersion: 4.7 +Contact: Mathieu Poirier +Description: (Read) Shows the value held by the ETB Formatter and Flush Control + register. The value is read directly from HW register FFCR, + 0x304. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-event_source-devices-events b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-event_source-devices-events index 2c6178ac1..e7efeab2e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-event_source-devices-events +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-event_source-devices-events @@ -1,100 +1,100 @@ -What: /sys/devices/cpu/events/ - /sys/devices/cpu/events/branch-misses - /sys/devices/cpu/events/cache-references - /sys/devices/cpu/events/cache-misses - /sys/devices/cpu/events/stalled-cycles-frontend - /sys/devices/cpu/events/branch-instructions - /sys/devices/cpu/events/stalled-cycles-backend - /sys/devices/cpu/events/instructions - /sys/devices/cpu/events/cpu-cycles - -Date: 2013/01/08 - -Contact: Linux kernel mailing list - -Description: Generic performance monitoring events - - A collection of performance monitoring events that may be - supported by many/most CPUs. These events can be monitored - using the 'perf(1)' tool. - - The contents of each file would look like: - - event=0xNNNN - - where 'N' is a hex digit and the number '0xNNNN' shows the - "raw code" for the perf event identified by the file's - "basename". - - -What: /sys/bus/event_source/devices//events/ -Date: 2014/02/24 -Contact: Linux kernel mailing list -Description: Per-pmu performance monitoring events specific to the running system - - Each file (except for some of those with a '.' in them, '.unit' - and '.scale') in the 'events' directory describes a single - performance monitoring event supported by the . The name - of the file is the name of the event. - - As performance monitoring event names are case - insensitive in the perf tool, the perf tool only looks - for lower or upper case event names in sysfs to avoid - scanning the directory. It is therefore required the - name of the event here is either lower or upper case. - - File contents: - - [=][,[=]]... - - Where is one of the terms listed under - /sys/bus/event_source/devices//format/ and is - a number is base-16 format with a '0x' prefix (lowercase only). - If a is specified alone (without an assigned value), it - is implied that 0x1 is assigned to that . - - Examples (each of these lines would be in a separate file): - - event=0x2abc - event=0x423,inv,cmask=0x3 - domain=0x1,offset=0x8,starting_index=0xffff - domain=0x1,offset=0x8,core=? - - Each of the assignments indicates a value to be assigned to a - particular set of bits (as defined by the format file - corresponding to the ) in the perf_event structure passed - to the perf_open syscall. - - In the case of the last example, a value replacing "?" would - need to be provided by the user selecting the particular event. - This is referred to as "event parameterization". Event - parameters have the format 'param=?'. - -What: /sys/bus/event_source/devices//events/.unit -Date: 2014/02/24 -Contact: Linux kernel mailing list -Description: Perf event units - - A string specifying the English plural numerical unit that - (once multiplied by .scale) represents. - - Example: - - Joules - -What: /sys/bus/event_source/devices//events/.scale -Date: 2014/02/24 -Contact: Linux kernel mailing list -Description: Perf event scaling factors - - A string representing a floating point value expressed in - scientific notation to be multiplied by the event count - received from the kernel to match the unit specified in the - .unit file. - - Example: - - 2.3283064365386962890625e-10 - - This is provided to avoid performing floating point arithmetic - in the kernel. +What: /sys/devices/cpu/events/ + /sys/devices/cpu/events/branch-misses + /sys/devices/cpu/events/cache-references + /sys/devices/cpu/events/cache-misses + /sys/devices/cpu/events/stalled-cycles-frontend + /sys/devices/cpu/events/branch-instructions + /sys/devices/cpu/events/stalled-cycles-backend + /sys/devices/cpu/events/instructions + /sys/devices/cpu/events/cpu-cycles + +Date: 2013/01/08 + +Contact: Linux kernel mailing list + +Description: Generic performance monitoring events + + A collection of performance monitoring events that may be + supported by many/most CPUs. These events can be monitored + using the 'perf(1)' tool. + + The contents of each file would look like: + + event=0xNNNN + + where 'N' is a hex digit and the number '0xNNNN' shows the + "raw code" for the perf event identified by the file's + "basename". + + +What: /sys/bus/event_source/devices//events/ +Date: 2014/02/24 +Contact: Linux kernel mailing list +Description: Per-pmu performance monitoring events specific to the running system + + Each file (except for some of those with a '.' in them, '.unit' + and '.scale') in the 'events' directory describes a single + performance monitoring event supported by the . The name + of the file is the name of the event. + + As performance monitoring event names are case + insensitive in the perf tool, the perf tool only looks + for lower or upper case event names in sysfs to avoid + scanning the directory. It is therefore required the + name of the event here is either lower or upper case. + + File contents: + + [=][,[=]]... + + Where is one of the terms listed under + /sys/bus/event_source/devices//format/ and is + a number is base-16 format with a '0x' prefix (lowercase only). + If a is specified alone (without an assigned value), it + is implied that 0x1 is assigned to that . + + Examples (each of these lines would be in a separate file): + + event=0x2abc + event=0x423,inv,cmask=0x3 + domain=0x1,offset=0x8,starting_index=0xffff + domain=0x1,offset=0x8,core=? + + Each of the assignments indicates a value to be assigned to a + particular set of bits (as defined by the format file + corresponding to the ) in the perf_event structure passed + to the perf_open syscall. + + In the case of the last example, a value replacing "?" would + need to be provided by the user selecting the particular event. + This is referred to as "event parameterization". Event + parameters have the format 'param=?'. + +What: /sys/bus/event_source/devices//events/.unit +Date: 2014/02/24 +Contact: Linux kernel mailing list +Description: Perf event units + + A string specifying the English plural numerical unit that + (once multiplied by .scale) represents. + + Example: + + Joules + +What: /sys/bus/event_source/devices//events/.scale +Date: 2014/02/24 +Contact: Linux kernel mailing list +Description: Perf event scaling factors + + A string representing a floating point value expressed in + scientific notation to be multiplied by the event count + received from the kernel to match the unit specified in the + .unit file. + + Example: + + 2.3283064365386962890625e-10 + + This is provided to avoid performing floating point arithmetic + in the kernel. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7 b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7 index 0c55f6bbc..de390a010 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7 +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7 @@ -1,98 +1,98 @@ -What: /sys/bus/event_source/devices/hv_24x7/format -Date: September 2020 -Contact: Linux on PowerPC Developer List -Description: Read-only. Attribute group to describe the magic bits - that go into perf_event_attr.config for a particular pmu. - (See ABI/testing/sysfs-bus-event_source-devices-format). - - Each attribute under this group defines a bit range of the - perf_event_attr.config. All supported attributes are listed - below:: - - chip = "config:16-31" - core = "config:16-31" - domain = "config:0-3" - lpar = "config:0-15" - offset = "config:32-63" - vcpu = "config:16-31" - - For example:: - - PM_PB_CYC = "domain=1,offset=0x80,chip=?,lpar=0x0" - - In this event, '?' after chip specifies that - this value will be provided by user while running this event. - -What: /sys/bus/event_source/devices/hv_24x7/interface/catalog -Date: February 2014 -Contact: Linux on PowerPC Developer List -Description: - Provides access to the binary "24x7 catalog" provided by the - hypervisor on POWER7 and 8 systems. This catalog lists events - available from the powerpc "hv_24x7" pmu. Its format is - documented here: - https://raw.githubusercontent.com/jmesmon/catalog-24x7/master/hv-24x7-catalog.h - -What: /sys/bus/event_source/devices/hv_24x7/interface/catalog_length -Date: February 2014 -Contact: Linux on PowerPC Developer List -Description: - A number equal to the length in bytes of the catalog. This is - also extractable from the provided binary "catalog" sysfs entry. - -What: /sys/bus/event_source/devices/hv_24x7/interface/catalog_version -Date: February 2014 -Contact: Linux on PowerPC Developer List -Description: - Exposes the "version" field of the 24x7 catalog. This is also - extractable from the provided binary "catalog" sysfs entry. - -What: /sys/devices/hv_24x7/interface/sockets -Date: May 2020 -Contact: Linux on PowerPC Developer List -Description: read only - This sysfs interface exposes the number of sockets present in the - system. - -What: /sys/devices/hv_24x7/interface/chipspersocket -Date: May 2020 -Contact: Linux on PowerPC Developer List -Description: read only - This sysfs interface exposes the number of chips per socket - present in the system. - -What: /sys/devices/hv_24x7/interface/coresperchip -Date: May 2020 -Contact: Linux on PowerPC Developer List -Description: read only - This sysfs interface exposes the number of cores per chip - present in the system. - -What: /sys/devices/hv_24x7/cpumask -Date: July 2020 -Contact: Linux on PowerPC Developer List -Description: read only - This sysfs file exposes the cpumask which is designated to make - HCALLs to retrieve hv-24x7 pmu event counter data. - -What: /sys/bus/event_source/devices/hv_24x7/event_descs/ -Date: February 2014 -Contact: Linux on PowerPC Developer List -Description: - Provides the description of a particular event as provided by - the firmware. If firmware does not provide a description, no - file will be created. - - Note that the event-name lacks the domain suffix appended for - events in the events/ dir. - -What: /sys/bus/event_source/devices/hv_24x7/event_long_descs/ -Date: February 2014 -Contact: Linux on PowerPC Developer List -Description: - Provides the "long" description of a particular event as - provided by the firmware. If firmware does not provide a - description, no file will be created. - - Note that the event-name lacks the domain suffix appended for - events in the events/ dir. +What: /sys/bus/event_source/devices/hv_24x7/format +Date: September 2020 +Contact: Linux on PowerPC Developer List +Description: Read-only. Attribute group to describe the magic bits + that go into perf_event_attr.config for a particular pmu. + (See ABI/testing/sysfs-bus-event_source-devices-format). + + Each attribute under this group defines a bit range of the + perf_event_attr.config. All supported attributes are listed + below:: + + chip = "config:16-31" + core = "config:16-31" + domain = "config:0-3" + lpar = "config:0-15" + offset = "config:32-63" + vcpu = "config:16-31" + + For example:: + + PM_PB_CYC = "domain=1,offset=0x80,chip=?,lpar=0x0" + + In this event, '?' after chip specifies that + this value will be provided by user while running this event. + +What: /sys/bus/event_source/devices/hv_24x7/interface/catalog +Date: February 2014 +Contact: Linux on PowerPC Developer List +Description: + Provides access to the binary "24x7 catalog" provided by the + hypervisor on POWER7 and 8 systems. This catalog lists events + available from the powerpc "hv_24x7" pmu. Its format is + documented here: + https://raw.githubusercontent.com/jmesmon/catalog-24x7/master/hv-24x7-catalog.h + +What: /sys/bus/event_source/devices/hv_24x7/interface/catalog_length +Date: February 2014 +Contact: Linux on PowerPC Developer List +Description: + A number equal to the length in bytes of the catalog. This is + also extractable from the provided binary "catalog" sysfs entry. + +What: /sys/bus/event_source/devices/hv_24x7/interface/catalog_version +Date: February 2014 +Contact: Linux on PowerPC Developer List +Description: + Exposes the "version" field of the 24x7 catalog. This is also + extractable from the provided binary "catalog" sysfs entry. + +What: /sys/devices/hv_24x7/interface/sockets +Date: May 2020 +Contact: Linux on PowerPC Developer List +Description: read only + This sysfs interface exposes the number of sockets present in the + system. + +What: /sys/devices/hv_24x7/interface/chipspersocket +Date: May 2020 +Contact: Linux on PowerPC Developer List +Description: read only + This sysfs interface exposes the number of chips per socket + present in the system. + +What: /sys/devices/hv_24x7/interface/coresperchip +Date: May 2020 +Contact: Linux on PowerPC Developer List +Description: read only + This sysfs interface exposes the number of cores per chip + present in the system. + +What: /sys/devices/hv_24x7/cpumask +Date: July 2020 +Contact: Linux on PowerPC Developer List +Description: read only + This sysfs file exposes the cpumask which is designated to make + HCALLs to retrieve hv-24x7 pmu event counter data. + +What: /sys/bus/event_source/devices/hv_24x7/event_descs/ +Date: February 2014 +Contact: Linux on PowerPC Developer List +Description: + Provides the description of a particular event as provided by + the firmware. If firmware does not provide a description, no + file will be created. + + Note that the event-name lacks the domain suffix appended for + events in the events/ dir. + +What: /sys/bus/event_source/devices/hv_24x7/event_long_descs/ +Date: February 2014 +Contact: Linux on PowerPC Developer List +Description: + Provides the "long" description of a particular event as + provided by the firmware. If firmware does not provide a + description, no file will be created. + + Note that the event-name lacks the domain suffix appended for + events in the events/ dir. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-i2c-devices-turris-omnia-mcu b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-i2c-devices-turris-omnia-mcu index 56cf7079a..35a8f6dae 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-i2c-devices-turris-omnia-mcu +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-i2c-devices-turris-omnia-mcu @@ -1,113 +1,113 @@ -What: /sys/bus/i2c/devices//board_revision -Date: September 2024 -KernelVersion: 6.11 -Contact: Marek Behún -Description: (RO) Contains board revision number. - - Only available if board information is burned in the MCU (older - revisions have board information burned in the ATSHA204-A chip). - - Format: %u. - -What: /sys/bus/i2c/devices//first_mac_address -Date: September 2024 -KernelVersion: 6.11 -Contact: Marek Behún -Description: (RO) Contains device first MAC address. Each Turris Omnia is - allocated 3 MAC addresses. The two additional addresses are - computed from the first one by incrementing it. - - Only available if board information is burned in the MCU (older - revisions have board information burned in the ATSHA204-A chip). - - Format: %pM. - -What: /sys/bus/i2c/devices//front_button_mode -Date: September 2024 -KernelVersion: 6.11 -Contact: Marek Behún -Description: (RW) The front button on the Turris Omnia router can be - configured either to change the intensity of all the LEDs on the - front panel, or to send the press event to the CPU as an - interrupt. - - This file switches between these two modes: - - ``mcu`` makes the button press event be handled by the MCU to - change the LEDs panel intensity. - - ``cpu`` makes the button press event be handled by the CPU. - - Format: %s. - -What: /sys/bus/i2c/devices//front_button_poweron -Date: September 2024 -KernelVersion: 6.11 -Contact: Marek Behún -Description: (RW) Newer versions of the microcontroller firmware of the - Turris Omnia router support powering off the router into true - low power mode. The router can be powered on by pressing the - front button. - - This file configures whether front button power on is enabled. - - This file is present only if the power off feature is supported - by the firmware. - - Format: %i. - -What: /sys/bus/i2c/devices//fw_features -Date: September 2024 -KernelVersion: 6.11 -Contact: Marek Behún -Description: (RO) Newer versions of the microcontroller firmware report the - features they support. These can be read from this file. If the - MCU firmware is too old, this file reads 0x0. - - Format: 0x%x. - -What: /sys/bus/i2c/devices//fw_version_hash_application -Date: September 2024 -KernelVersion: 6.11 -Contact: Marek Behún -Description: (RO) Contains the version hash (commit hash) of the application - part of the microcontroller firmware. - - Format: %s. - -What: /sys/bus/i2c/devices//fw_version_hash_bootloader -Date: September 2024 -KernelVersion: 6.11 -Contact: Marek Behún -Description: (RO) Contains the version hash (commit hash) of the bootloader - part of the microcontroller firmware. - - Format: %s. - -What: /sys/bus/i2c/devices//mcu_type -Date: September 2024 -KernelVersion: 6.11 -Contact: Marek Behún -Description: (RO) Contains the microcontroller type (STM32, GD32, MKL). - - Format: %s. - -What: /sys/bus/i2c/devices//reset_selector -Date: September 2024 -KernelVersion: 6.11 -Contact: Marek Behún -Description: (RO) Contains the selected factory reset level, determined by - how long the rear reset button was held by the user during board - reset. - - Format: %i. - -What: /sys/bus/i2c/devices//serial_number -Date: September 2024 -KernelVersion: 6.11 -Contact: Marek Behún -Description: (RO) Contains the 64-bit board serial number in hexadecimal - format. - - Only available if board information is burned in the MCU (older - revisions have board information burned in the ATSHA204-A chip). - - Format: %016X. +What: /sys/bus/i2c/devices//board_revision +Date: September 2024 +KernelVersion: 6.11 +Contact: Marek Behún +Description: (RO) Contains board revision number. + + Only available if board information is burned in the MCU (older + revisions have board information burned in the ATSHA204-A chip). + + Format: %u. + +What: /sys/bus/i2c/devices//first_mac_address +Date: September 2024 +KernelVersion: 6.11 +Contact: Marek Behún +Description: (RO) Contains device first MAC address. Each Turris Omnia is + allocated 3 MAC addresses. The two additional addresses are + computed from the first one by incrementing it. + + Only available if board information is burned in the MCU (older + revisions have board information burned in the ATSHA204-A chip). + + Format: %pM. + +What: /sys/bus/i2c/devices//front_button_mode +Date: September 2024 +KernelVersion: 6.11 +Contact: Marek Behún +Description: (RW) The front button on the Turris Omnia router can be + configured either to change the intensity of all the LEDs on the + front panel, or to send the press event to the CPU as an + interrupt. + + This file switches between these two modes: + - ``mcu`` makes the button press event be handled by the MCU to + change the LEDs panel intensity. + - ``cpu`` makes the button press event be handled by the CPU. + + Format: %s. + +What: /sys/bus/i2c/devices//front_button_poweron +Date: September 2024 +KernelVersion: 6.11 +Contact: Marek Behún +Description: (RW) Newer versions of the microcontroller firmware of the + Turris Omnia router support powering off the router into true + low power mode. The router can be powered on by pressing the + front button. + + This file configures whether front button power on is enabled. + + This file is present only if the power off feature is supported + by the firmware. + + Format: %i. + +What: /sys/bus/i2c/devices//fw_features +Date: September 2024 +KernelVersion: 6.11 +Contact: Marek Behún +Description: (RO) Newer versions of the microcontroller firmware report the + features they support. These can be read from this file. If the + MCU firmware is too old, this file reads 0x0. + + Format: 0x%x. + +What: /sys/bus/i2c/devices//fw_version_hash_application +Date: September 2024 +KernelVersion: 6.11 +Contact: Marek Behún +Description: (RO) Contains the version hash (commit hash) of the application + part of the microcontroller firmware. + + Format: %s. + +What: /sys/bus/i2c/devices//fw_version_hash_bootloader +Date: September 2024 +KernelVersion: 6.11 +Contact: Marek Behún +Description: (RO) Contains the version hash (commit hash) of the bootloader + part of the microcontroller firmware. + + Format: %s. + +What: /sys/bus/i2c/devices//mcu_type +Date: September 2024 +KernelVersion: 6.11 +Contact: Marek Behún +Description: (RO) Contains the microcontroller type (STM32, GD32, MKL). + + Format: %s. + +What: /sys/bus/i2c/devices//reset_selector +Date: September 2024 +KernelVersion: 6.11 +Contact: Marek Behún +Description: (RO) Contains the selected factory reset level, determined by + how long the rear reset button was held by the user during board + reset. + + Format: %i. + +What: /sys/bus/i2c/devices//serial_number +Date: September 2024 +KernelVersion: 6.11 +Contact: Marek Behún +Description: (RO) Contains the 64-bit board serial number in hexadecimal + format. + + Only available if board information is burned in the MCU (older + revisions have board information burned in the ATSHA204-A chip). + + Format: %016X. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats index 9e6b46a34..d1f67bb81 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats @@ -1,119 +1,119 @@ -PCIe Device AER statistics --------------------------- - -These attributes show up under all the devices that are AER capable. These -statistical counters indicate the errors "as seen/reported by the device". -Note that this may mean that if an endpoint is causing problems, the AER -counters may increment at its link partner (e.g. root port) because the -errors may be "seen" / reported by the link partner and not the -problematic endpoint itself (which may report all counters as 0 as it never -saw any problems). - -What: /sys/bus/pci/devices//aer_dev_correctable -Date: July 2018 -KernelVersion: 4.19.0 -Contact: linux-pci@vger.kernel.org, rajatja@google.com -Description: List of correctable errors seen and reported by this - PCI device using ERR_COR. Note that since multiple errors may - be reported using a single ERR_COR message, thus - TOTAL_ERR_COR at the end of the file may not match the actual - total of all the errors in the file. Sample output:: - - localhost /sys/devices/pci0000:00/0000:00:1c.0 # cat aer_dev_correctable - Receiver Error 2 - Bad TLP 0 - Bad DLLP 0 - RELAY_NUM Rollover 0 - Replay Timer Timeout 0 - Advisory Non-Fatal 0 - Corrected Internal Error 0 - Header Log Overflow 0 - TOTAL_ERR_COR 2 - -What: /sys/bus/pci/devices//aer_dev_fatal -Date: July 2018 -KernelVersion: 4.19.0 -Contact: linux-pci@vger.kernel.org, rajatja@google.com -Description: List of uncorrectable fatal errors seen and reported by this - PCI device using ERR_FATAL. Note that since multiple errors may - be reported using a single ERR_FATAL message, thus - TOTAL_ERR_FATAL at the end of the file may not match the actual - total of all the errors in the file. Sample output:: - - localhost /sys/devices/pci0000:00/0000:00:1c.0 # cat aer_dev_fatal - Undefined 0 - Data Link Protocol 0 - Surprise Down Error 0 - Poisoned TLP 0 - Flow Control Protocol 0 - Completion Timeout 0 - Completer Abort 0 - Unexpected Completion 0 - Receiver Overflow 0 - Malformed TLP 0 - ECRC 0 - Unsupported Request 0 - ACS Violation 0 - Uncorrectable Internal Error 0 - MC Blocked TLP 0 - AtomicOp Egress Blocked 0 - TLP Prefix Blocked Error 0 - TOTAL_ERR_FATAL 0 - -What: /sys/bus/pci/devices//aer_dev_nonfatal -Date: July 2018 -KernelVersion: 4.19.0 -Contact: linux-pci@vger.kernel.org, rajatja@google.com -Description: List of uncorrectable nonfatal errors seen and reported by this - PCI device using ERR_NONFATAL. Note that since multiple errors - may be reported using a single ERR_FATAL message, thus - TOTAL_ERR_NONFATAL at the end of the file may not match the - actual total of all the errors in the file. Sample output:: - - localhost /sys/devices/pci0000:00/0000:00:1c.0 # cat aer_dev_nonfatal - Undefined 0 - Data Link Protocol 0 - Surprise Down Error 0 - Poisoned TLP 0 - Flow Control Protocol 0 - Completion Timeout 0 - Completer Abort 0 - Unexpected Completion 0 - Receiver Overflow 0 - Malformed TLP 0 - ECRC 0 - Unsupported Request 0 - ACS Violation 0 - Uncorrectable Internal Error 0 - MC Blocked TLP 0 - AtomicOp Egress Blocked 0 - TLP Prefix Blocked Error 0 - TOTAL_ERR_NONFATAL 0 - -PCIe Rootport AER statistics ----------------------------- - -These attributes show up under only the rootports (or root complex event -collectors) that are AER capable. These indicate the number of error messages as -"reported to" the rootport. Please note that the rootports also transmit -(internally) the ERR_* messages for errors seen by the internal rootport PCI -device, so these counters include them and are thus cumulative of all the error -messages on the PCI hierarchy originating at that root port. - -What: /sys/bus/pci/devices//aer_rootport_total_err_cor -Date: July 2018 -KernelVersion: 4.19.0 -Contact: linux-pci@vger.kernel.org, rajatja@google.com -Description: Total number of ERR_COR messages reported to rootport. - -What: /sys/bus/pci/devices//aer_rootport_total_err_fatal -Date: July 2018 -KernelVersion: 4.19.0 -Contact: linux-pci@vger.kernel.org, rajatja@google.com -Description: Total number of ERR_FATAL messages reported to rootport. - -What: /sys/bus/pci/devices//aer_rootport_total_err_nonfatal -Date: July 2018 -KernelVersion: 4.19.0 -Contact: linux-pci@vger.kernel.org, rajatja@google.com -Description: Total number of ERR_NONFATAL messages reported to rootport. +PCIe Device AER statistics +-------------------------- + +These attributes show up under all the devices that are AER capable. These +statistical counters indicate the errors "as seen/reported by the device". +Note that this may mean that if an endpoint is causing problems, the AER +counters may increment at its link partner (e.g. root port) because the +errors may be "seen" / reported by the link partner and not the +problematic endpoint itself (which may report all counters as 0 as it never +saw any problems). + +What: /sys/bus/pci/devices//aer_dev_correctable +Date: July 2018 +KernelVersion: 4.19.0 +Contact: linux-pci@vger.kernel.org, rajatja@google.com +Description: List of correctable errors seen and reported by this + PCI device using ERR_COR. Note that since multiple errors may + be reported using a single ERR_COR message, thus + TOTAL_ERR_COR at the end of the file may not match the actual + total of all the errors in the file. Sample output:: + + localhost /sys/devices/pci0000:00/0000:00:1c.0 # cat aer_dev_correctable + Receiver Error 2 + Bad TLP 0 + Bad DLLP 0 + RELAY_NUM Rollover 0 + Replay Timer Timeout 0 + Advisory Non-Fatal 0 + Corrected Internal Error 0 + Header Log Overflow 0 + TOTAL_ERR_COR 2 + +What: /sys/bus/pci/devices//aer_dev_fatal +Date: July 2018 +KernelVersion: 4.19.0 +Contact: linux-pci@vger.kernel.org, rajatja@google.com +Description: List of uncorrectable fatal errors seen and reported by this + PCI device using ERR_FATAL. Note that since multiple errors may + be reported using a single ERR_FATAL message, thus + TOTAL_ERR_FATAL at the end of the file may not match the actual + total of all the errors in the file. Sample output:: + + localhost /sys/devices/pci0000:00/0000:00:1c.0 # cat aer_dev_fatal + Undefined 0 + Data Link Protocol 0 + Surprise Down Error 0 + Poisoned TLP 0 + Flow Control Protocol 0 + Completion Timeout 0 + Completer Abort 0 + Unexpected Completion 0 + Receiver Overflow 0 + Malformed TLP 0 + ECRC 0 + Unsupported Request 0 + ACS Violation 0 + Uncorrectable Internal Error 0 + MC Blocked TLP 0 + AtomicOp Egress Blocked 0 + TLP Prefix Blocked Error 0 + TOTAL_ERR_FATAL 0 + +What: /sys/bus/pci/devices//aer_dev_nonfatal +Date: July 2018 +KernelVersion: 4.19.0 +Contact: linux-pci@vger.kernel.org, rajatja@google.com +Description: List of uncorrectable nonfatal errors seen and reported by this + PCI device using ERR_NONFATAL. Note that since multiple errors + may be reported using a single ERR_FATAL message, thus + TOTAL_ERR_NONFATAL at the end of the file may not match the + actual total of all the errors in the file. Sample output:: + + localhost /sys/devices/pci0000:00/0000:00:1c.0 # cat aer_dev_nonfatal + Undefined 0 + Data Link Protocol 0 + Surprise Down Error 0 + Poisoned TLP 0 + Flow Control Protocol 0 + Completion Timeout 0 + Completer Abort 0 + Unexpected Completion 0 + Receiver Overflow 0 + Malformed TLP 0 + ECRC 0 + Unsupported Request 0 + ACS Violation 0 + Uncorrectable Internal Error 0 + MC Blocked TLP 0 + AtomicOp Egress Blocked 0 + TLP Prefix Blocked Error 0 + TOTAL_ERR_NONFATAL 0 + +PCIe Rootport AER statistics +---------------------------- + +These attributes show up under only the rootports (or root complex event +collectors) that are AER capable. These indicate the number of error messages as +"reported to" the rootport. Please note that the rootports also transmit +(internally) the ERR_* messages for errors seen by the internal rootport PCI +device, so these counters include them and are thus cumulative of all the error +messages on the PCI hierarchy originating at that root port. + +What: /sys/bus/pci/devices//aer_rootport_total_err_cor +Date: July 2018 +KernelVersion: 4.19.0 +Contact: linux-pci@vger.kernel.org, rajatja@google.com +Description: Total number of ERR_COR messages reported to rootport. + +What: /sys/bus/pci/devices//aer_rootport_total_err_fatal +Date: July 2018 +KernelVersion: 4.19.0 +Contact: linux-pci@vger.kernel.org, rajatja@google.com +Description: Total number of ERR_FATAL messages reported to rootport. + +What: /sys/bus/pci/devices//aer_rootport_total_err_nonfatal +Date: July 2018 +KernelVersion: 4.19.0 +Contact: linux-pci@vger.kernel.org, rajatja@google.com +Description: Total number of ERR_NONFATAL messages reported to rootport. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-pci-drivers-xhci_hcd b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-pci-drivers-xhci_hcd index 6de22f801..fc82aa4e5 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-pci-drivers-xhci_hcd +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-pci-drivers-xhci_hcd @@ -1,87 +1,87 @@ -What: /sys/bus/pci/drivers/xhci_hcd/.../dbc -Date: June 2017 -Contact: Lu Baolu -Description: - xHCI compatible USB host controllers (i.e. super-speed - USB3 controllers) are often implemented with the Debug - Capability (DbC). It can present a debug device which - is fully compliant with the USB framework and provides - the equivalent of a very high performance full-duplex - serial link for debug purpose. - - The DbC debug device shares a root port with xHCI host. - When the DbC is enabled, the root port will be assigned - to the Debug Capability. Otherwise, it will be assigned - to xHCI. - - Writing "enable" to this attribute will enable the DbC - functionality and the shared root port will be assigned - to the DbC device. Writing "disable" to this attribute - will disable the DbC functionality and the shared root - port will roll back to the xHCI. - - Reading this attribute gives the state of the DbC. It - can be one of the following states: disabled, enabled, - initialized, connected, configured and stalled. - -What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_idVendor -Date: March 2023 -Contact: Mathias Nyman -Description: - This dbc_idVendor attribute lets us change the idVendor field - presented in the USB device descriptor by this xhci debug - device. - Value can only be changed while debug capability (DbC) is in - disabled state to prevent USB device descriptor change while - connected to a USB host. - The default value is 0x1d6b (Linux Foundation). - It can be any 16-bit integer. - -What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_idProduct -Date: March 2023 -Contact: Mathias Nyman -Description: - This dbc_idProduct attribute lets us change the idProduct field - presented in the USB device descriptor by this xhci debug - device. - Value can only be changed while debug capability (DbC) is in - disabled state to prevent USB device descriptor change while - connected to a USB host. - The default value is 0x0010. It can be any 16-bit integer. - -What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_bcdDevice -Date: March 2023 -Contact: Mathias Nyman -Description: - This dbc_bcdDevice attribute lets us change the bcdDevice field - presented in the USB device descriptor by this xhci debug - device. - Value can only be changed while debug capability (DbC) is in - disabled state to prevent USB device descriptor change while - connected to a USB host. - The default value is 0x0010. (device rev 0.10) - It can be any 16-bit integer. - -What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_bInterfaceProtocol -Date: March 2023 -Contact: Mathias Nyman -Description: - This attribute lets us change the bInterfaceProtocol field - presented in the USB Interface descriptor by the xhci debug - device. - Value can only be changed while debug capability (DbC) is in - disabled state to prevent USB descriptor change while - connected to a USB host. - The default value is 1 (GNU Remote Debug command). - Other permissible value is 0 which is for vendor defined debug - target. - -What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_poll_interval_ms -Date: February 2024 -Contact: Mathias Nyman -Description: - This attribute adjust the polling interval used to check for - DbC events. Unit is milliseconds. Accepted values range from 0 - up to 5000. The default value is 64 ms. - This polling interval is used while DbC is enabled but has no - active data transfers. +What: /sys/bus/pci/drivers/xhci_hcd/.../dbc +Date: June 2017 +Contact: Lu Baolu +Description: + xHCI compatible USB host controllers (i.e. super-speed + USB3 controllers) are often implemented with the Debug + Capability (DbC). It can present a debug device which + is fully compliant with the USB framework and provides + the equivalent of a very high performance full-duplex + serial link for debug purpose. + + The DbC debug device shares a root port with xHCI host. + When the DbC is enabled, the root port will be assigned + to the Debug Capability. Otherwise, it will be assigned + to xHCI. + + Writing "enable" to this attribute will enable the DbC + functionality and the shared root port will be assigned + to the DbC device. Writing "disable" to this attribute + will disable the DbC functionality and the shared root + port will roll back to the xHCI. + + Reading this attribute gives the state of the DbC. It + can be one of the following states: disabled, enabled, + initialized, connected, configured and stalled. + +What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_idVendor +Date: March 2023 +Contact: Mathias Nyman +Description: + This dbc_idVendor attribute lets us change the idVendor field + presented in the USB device descriptor by this xhci debug + device. + Value can only be changed while debug capability (DbC) is in + disabled state to prevent USB device descriptor change while + connected to a USB host. + The default value is 0x1d6b (Linux Foundation). + It can be any 16-bit integer. + +What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_idProduct +Date: March 2023 +Contact: Mathias Nyman +Description: + This dbc_idProduct attribute lets us change the idProduct field + presented in the USB device descriptor by this xhci debug + device. + Value can only be changed while debug capability (DbC) is in + disabled state to prevent USB device descriptor change while + connected to a USB host. + The default value is 0x0010. It can be any 16-bit integer. + +What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_bcdDevice +Date: March 2023 +Contact: Mathias Nyman +Description: + This dbc_bcdDevice attribute lets us change the bcdDevice field + presented in the USB device descriptor by this xhci debug + device. + Value can only be changed while debug capability (DbC) is in + disabled state to prevent USB device descriptor change while + connected to a USB host. + The default value is 0x0010. (device rev 0.10) + It can be any 16-bit integer. + +What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_bInterfaceProtocol +Date: March 2023 +Contact: Mathias Nyman +Description: + This attribute lets us change the bInterfaceProtocol field + presented in the USB Interface descriptor by the xhci debug + device. + Value can only be changed while debug capability (DbC) is in + disabled state to prevent USB descriptor change while + connected to a USB host. + The default value is 1 (GNU Remote Debug command). + Other permissible value is 0 which is for vendor defined debug + target. + +What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_poll_interval_ms +Date: February 2024 +Contact: Mathias Nyman +Description: + This attribute adjust the polling interval used to check for + DbC events. Unit is milliseconds. Accepted values range from 0 + up to 5000. The default value is 64 ms. + This polling interval is used while DbC is enabled but has no + active data transfers. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-rpmsg b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-rpmsg index bdca314ea..990fcc420 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-rpmsg +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-rpmsg @@ -1,95 +1,95 @@ -What: /sys/bus/rpmsg/devices/.../name -Date: June 2011 -KernelVersion: 3.3 -Contact: Ohad Ben-Cohen -Description: - Every rpmsg device is a communication channel with a remote - processor. Channels are identified with a (textual) name, - which is maximum 32 bytes long (defined as RPMSG_NAME_SIZE in - rpmsg.h). - - This sysfs entry contains the name of this channel. - -What: /sys/bus/rpmsg/devices/.../src -Date: June 2011 -KernelVersion: 3.3 -Contact: Ohad Ben-Cohen -Description: - Every rpmsg device is a communication channel with a remote - processor. Channels have a local ("source") rpmsg address, - and remote ("destination") rpmsg address. When an entity - starts listening on one end of a channel, it assigns it with - a unique rpmsg address (a 32 bits integer). This way when - inbound messages arrive to this address, the rpmsg core - dispatches them to the listening entity (a kernel driver). - - This sysfs entry contains the src (local) rpmsg address - of this channel. If it contains 0xffffffff, then an address - wasn't assigned (can happen if no driver exists for this - channel). - -What: /sys/bus/rpmsg/devices/.../dst -Date: June 2011 -KernelVersion: 3.3 -Contact: Ohad Ben-Cohen -Description: - Every rpmsg device is a communication channel with a remote - processor. Channels have a local ("source") rpmsg address, - and remote ("destination") rpmsg address. When an entity - starts listening on one end of a channel, it assigns it with - a unique rpmsg address (a 32 bits integer). This way when - inbound messages arrive to this address, the rpmsg core - dispatches them to the listening entity. - - This sysfs entry contains the dst (remote) rpmsg address - of this channel. If it contains 0xffffffff, then an address - wasn't assigned (can happen if the kernel driver that - is attached to this channel is exposing a service to the - remote processor. This make it a local rpmsg server, - and it is listening for inbound messages that may be sent - from any remote rpmsg client; it is not bound to a single - remote entity). - -What: /sys/bus/rpmsg/devices/.../announce -Date: June 2011 -KernelVersion: 3.3 -Contact: Ohad Ben-Cohen -Description: - Every rpmsg device is a communication channel with a remote - processor. Channels are identified by a textual name (see - /sys/bus/rpmsg/devices/.../name above) and have a local - ("source") rpmsg address, and remote ("destination") rpmsg - address. - - A channel is first created when an entity, whether local - or remote, starts listening on it for messages (and is thus - called an rpmsg server). - - When that happens, a "name service" announcement is sent - to the other processor, in order to let it know about the - creation of the channel (this way remote clients know they - can start sending messages). - - This sysfs entry tells us whether the channel is a local - server channel that is announced (values are either - true or false). - -What: /sys/bus/rpmsg/devices/.../driver_override -Date: April 2018 -KernelVersion: 4.18 -Contact: Bjorn Andersson -Description: - Every rpmsg device is a communication channel with a remote - processor. Channels are identified by a textual name (see - /sys/bus/rpmsg/devices/.../name above) and have a local - ("source") rpmsg address, and remote ("destination") rpmsg - address. - - The listening entity (or client) which communicates with a - remote processor is referred as rpmsg driver. The rpmsg device - and rpmsg driver are matched based on rpmsg device name and - rpmsg driver ID table. - - This sysfs entry allows the rpmsg driver for a rpmsg device - to be specified which will override standard OF, ID table - and name matching. +What: /sys/bus/rpmsg/devices/.../name +Date: June 2011 +KernelVersion: 3.3 +Contact: Ohad Ben-Cohen +Description: + Every rpmsg device is a communication channel with a remote + processor. Channels are identified with a (textual) name, + which is maximum 32 bytes long (defined as RPMSG_NAME_SIZE in + rpmsg.h). + + This sysfs entry contains the name of this channel. + +What: /sys/bus/rpmsg/devices/.../src +Date: June 2011 +KernelVersion: 3.3 +Contact: Ohad Ben-Cohen +Description: + Every rpmsg device is a communication channel with a remote + processor. Channels have a local ("source") rpmsg address, + and remote ("destination") rpmsg address. When an entity + starts listening on one end of a channel, it assigns it with + a unique rpmsg address (a 32 bits integer). This way when + inbound messages arrive to this address, the rpmsg core + dispatches them to the listening entity (a kernel driver). + + This sysfs entry contains the src (local) rpmsg address + of this channel. If it contains 0xffffffff, then an address + wasn't assigned (can happen if no driver exists for this + channel). + +What: /sys/bus/rpmsg/devices/.../dst +Date: June 2011 +KernelVersion: 3.3 +Contact: Ohad Ben-Cohen +Description: + Every rpmsg device is a communication channel with a remote + processor. Channels have a local ("source") rpmsg address, + and remote ("destination") rpmsg address. When an entity + starts listening on one end of a channel, it assigns it with + a unique rpmsg address (a 32 bits integer). This way when + inbound messages arrive to this address, the rpmsg core + dispatches them to the listening entity. + + This sysfs entry contains the dst (remote) rpmsg address + of this channel. If it contains 0xffffffff, then an address + wasn't assigned (can happen if the kernel driver that + is attached to this channel is exposing a service to the + remote processor. This make it a local rpmsg server, + and it is listening for inbound messages that may be sent + from any remote rpmsg client; it is not bound to a single + remote entity). + +What: /sys/bus/rpmsg/devices/.../announce +Date: June 2011 +KernelVersion: 3.3 +Contact: Ohad Ben-Cohen +Description: + Every rpmsg device is a communication channel with a remote + processor. Channels are identified by a textual name (see + /sys/bus/rpmsg/devices/.../name above) and have a local + ("source") rpmsg address, and remote ("destination") rpmsg + address. + + A channel is first created when an entity, whether local + or remote, starts listening on it for messages (and is thus + called an rpmsg server). + + When that happens, a "name service" announcement is sent + to the other processor, in order to let it know about the + creation of the channel (this way remote clients know they + can start sending messages). + + This sysfs entry tells us whether the channel is a local + server channel that is announced (values are either + true or false). + +What: /sys/bus/rpmsg/devices/.../driver_override +Date: April 2018 +KernelVersion: 4.18 +Contact: Bjorn Andersson +Description: + Every rpmsg device is a communication channel with a remote + processor. Channels are identified by a textual name (see + /sys/bus/rpmsg/devices/.../name above) and have a local + ("source") rpmsg address, and remote ("destination") rpmsg + address. + + The listening entity (or client) which communicates with a + remote processor is referred as rpmsg driver. The rpmsg device + and rpmsg driver are matched based on rpmsg device name and + rpmsg driver ID table. + + This sysfs entry allows the rpmsg driver for a rpmsg device + to be specified which will override standard OF, ID table + and name matching. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-siox b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-siox index cc998c9d8..50e80238f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-siox +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-bus-siox @@ -1,90 +1,90 @@ -What: /sys/bus/siox/devices/siox-X/active -KernelVersion: 4.16 -Contact: Thorsten Scherer , Uwe Kleine-König -Description: - On reading represents the current state of the bus. If it - contains a "0" the bus is stopped and connected devices are - expected to not do anything because their watchdog triggered. - When the file contains a "1" the bus is operated and periodically - does a push-pull cycle to write and read data from the - connected devices. - - When writing a "0" or "1" the bus moves to the described state. - -What: /sys/bus/siox/devices/siox-X/device_add -KernelVersion: 4.16 -Contact: Thorsten Scherer , Uwe Kleine-König -Description: - Write-only file. Write - - - - to add a new device dynamically. is the name that is used to match - to a driver (similar to the platform bus). and define - the length of the input and output shift register in bytes respectively. - - defines the 4 bit device type that is check to identify connection - problems. - - The new device is added to the end of the existing chain. - -What: /sys/bus/siox/devices/siox-X/device_remove -KernelVersion: 4.16 -Contact: Thorsten Scherer , Uwe Kleine-König -Description: - Write-only file. A single write removes the last device in the siox chain. - -What: /sys/bus/siox/devices/siox-X/poll_interval_ns -KernelVersion: 4.16 -Contact: Thorsten Scherer , Uwe Kleine-König -Description: - Defines the interval between two poll cycles in nano seconds. - Note this is rounded to jiffies on writing. On reading the current value - is returned. - -What: /sys/bus/siox/devices/siox-X-Y/connected -KernelVersion: 4.16 -Contact: Thorsten Scherer , Uwe Kleine-König -Description: - Read-only value. "0" means the Yth device on siox bus X isn't "connected" i.e. - communication with it is not ensured. "1" signals a working connection. - -What: /sys/bus/siox/devices/siox-X-Y/inbytes -KernelVersion: 4.16 -Contact: Thorsten Scherer , Uwe Kleine-König -Description: - Read-only value reporting the inbytes value provided to siox-X/device_add - -What: /sys/bus/siox/devices/siox-X-Y/status_errors -KernelVersion: 4.16 -Contact: Thorsten Scherer , Uwe Kleine-König -Description: - Counts the number of time intervals when the read status byte doesn't yield the - expected value. - -What: /sys/bus/siox/devices/siox-X-Y/type -KernelVersion: 4.16 -Contact: Thorsten Scherer , Uwe Kleine-König -Description: - Read-only value reporting the type value provided to siox-X/device_add. - -What: /sys/bus/siox/devices/siox-X-Y/watchdog -KernelVersion: 4.16 -Contact: Thorsten Scherer , Uwe Kleine-König -Description: - Read-only value reporting if the watchdog of the siox device is - active. "0" means the watchdog is not active and the device is expected to - be operational. "1" means the watchdog keeps the device in reset. - -What: /sys/bus/siox/devices/siox-X-Y/watchdog_errors -KernelVersion: 4.16 -Contact: Thorsten Scherer , Uwe Kleine-König -Description: - Read-only value reporting the number to time intervals when the - watchdog was active. - -What: /sys/bus/siox/devices/siox-X-Y/outbytes -KernelVersion: 4.16 -Contact: Thorsten Scherer , Uwe Kleine-König -Description: - Read-only value reporting the outbytes value provided to siox-X/device_add. +What: /sys/bus/siox/devices/siox-X/active +KernelVersion: 4.16 +Contact: Thorsten Scherer , Uwe Kleine-König +Description: + On reading represents the current state of the bus. If it + contains a "0" the bus is stopped and connected devices are + expected to not do anything because their watchdog triggered. + When the file contains a "1" the bus is operated and periodically + does a push-pull cycle to write and read data from the + connected devices. + + When writing a "0" or "1" the bus moves to the described state. + +What: /sys/bus/siox/devices/siox-X/device_add +KernelVersion: 4.16 +Contact: Thorsten Scherer , Uwe Kleine-König +Description: + Write-only file. Write + + + + to add a new device dynamically. is the name that is used to match + to a driver (similar to the platform bus). and define + the length of the input and output shift register in bytes respectively. + + defines the 4 bit device type that is check to identify connection + problems. + + The new device is added to the end of the existing chain. + +What: /sys/bus/siox/devices/siox-X/device_remove +KernelVersion: 4.16 +Contact: Thorsten Scherer , Uwe Kleine-König +Description: + Write-only file. A single write removes the last device in the siox chain. + +What: /sys/bus/siox/devices/siox-X/poll_interval_ns +KernelVersion: 4.16 +Contact: Thorsten Scherer , Uwe Kleine-König +Description: + Defines the interval between two poll cycles in nano seconds. + Note this is rounded to jiffies on writing. On reading the current value + is returned. + +What: /sys/bus/siox/devices/siox-X-Y/connected +KernelVersion: 4.16 +Contact: Thorsten Scherer , Uwe Kleine-König +Description: + Read-only value. "0" means the Yth device on siox bus X isn't "connected" i.e. + communication with it is not ensured. "1" signals a working connection. + +What: /sys/bus/siox/devices/siox-X-Y/inbytes +KernelVersion: 4.16 +Contact: Thorsten Scherer , Uwe Kleine-König +Description: + Read-only value reporting the inbytes value provided to siox-X/device_add + +What: /sys/bus/siox/devices/siox-X-Y/status_errors +KernelVersion: 4.16 +Contact: Thorsten Scherer , Uwe Kleine-König +Description: + Counts the number of time intervals when the read status byte doesn't yield the + expected value. + +What: /sys/bus/siox/devices/siox-X-Y/type +KernelVersion: 4.16 +Contact: Thorsten Scherer , Uwe Kleine-König +Description: + Read-only value reporting the type value provided to siox-X/device_add. + +What: /sys/bus/siox/devices/siox-X-Y/watchdog +KernelVersion: 4.16 +Contact: Thorsten Scherer , Uwe Kleine-König +Description: + Read-only value reporting if the watchdog of the siox device is + active. "0" means the watchdog is not active and the device is expected to + be operational. "1" means the watchdog keeps the device in reset. + +What: /sys/bus/siox/devices/siox-X-Y/watchdog_errors +KernelVersion: 4.16 +Contact: Thorsten Scherer , Uwe Kleine-König +Description: + Read-only value reporting the number to time intervals when the + watchdog was active. + +What: /sys/bus/siox/devices/siox-X-Y/outbytes +KernelVersion: 4.16 +Contact: Thorsten Scherer , Uwe Kleine-König +Description: + Read-only value reporting the outbytes value provided to siox-X/device_add. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-extcon b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-extcon index 98ece690e..f8e705375 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-extcon +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-extcon @@ -1,101 +1,101 @@ -What: /sys/class/extcon/.../ -Date: February 2012 -Contact: MyungJoo Ham -Description: - Provide a place in sysfs for the extcon objects. - This allows accessing extcon specific variables. - The name of extcon object denoted as ... is the name given - with extcon_dev_register. - - One extcon device denotes a single external connector - port. An external connector may have multiple cables - attached simultaneously. Many of docks, cradles, and - accessory cables have such capability. For example, - the 30-pin port of Nuri board (/arch/arm/mach-exynos) - may have both HDMI and Charger attached, or analog audio, - video, and USB cables attached simultaneously. - - If there are cables mutually exclusive with each other, - such binary relations may be expressed with extcon_dev's - mutually_exclusive array. - -What: /sys/class/extcon/.../name -Date: February 2012 -Contact: MyungJoo Ham -Description: - The /sys/class/extcon/.../name shows the name of the extcon - object. If the extcon object has an optional callback - "show_name" defined, the callback will provide the name with - this sysfs node. - -What: /sys/class/extcon/.../state -Date: February 2012 -Contact: MyungJoo Ham -Description: - The /sys/class/extcon/.../state shows and stores the cable - attach/detach information of the corresponding extcon object. - If the extcon object has an optional callback "show_state" - defined, the showing function is overridden with the optional - callback. - - If the default callback for showing function is used, the - format is like this:: - - # cat state - USB_OTG=1 - HDMI=0 - TA=1 - EAR_JACK=0 - # - - In this example, the extcon device has USB_OTG and TA - cables attached and HDMI and EAR_JACK cables detached. - - In order to update the state of an extcon device, enter a hex - state number starting with 0x:: - - # echo 0xHEX > state - - This updates the whole state of the extcon device. - Inputs of all the methods are required to meet the - mutually_exclusive conditions if they exist. - - It is recommended to use this "global" state interface if - you need to set the value atomically. The later state - interface associated with each cable cannot update - multiple cable states of an extcon device simultaneously. - -What: /sys/class/extcon/.../cable.X/name -Date: February 2012 -Contact: MyungJoo Ham -Description: - The /sys/class/extcon/.../cable.X/name shows the name of cable - "X" (integer between 0 and 31) of an extcon device. - -What: /sys/class/extcon/.../cable.X/state -Date: February 2012 -Contact: MyungJoo Ham -Description: - The /sys/class/extcon/.../cable.X/state shows and stores the - state of cable "X" (integer between 0 and 31) of an extcon - device. The state value is either 0 (detached) or 1 - (attached). - -What: /sys/class/extcon/.../mutually_exclusive/... -Date: December 2011 -Contact: MyungJoo Ham -Description: - Shows the relations of mutually exclusiveness. For example, - if the mutually_exclusive array of extcon device is - {0x3, 0x5, 0xC, 0x0}, then the output is:: - - # ls mutually_exclusive/ - 0x3 - 0x5 - 0xc - # - - Note that mutually_exclusive is a sub-directory of the extcon - device and the file names under the mutually_exclusive - directory show the mutually-exclusive sets, not the contents - of the files. +What: /sys/class/extcon/.../ +Date: February 2012 +Contact: MyungJoo Ham +Description: + Provide a place in sysfs for the extcon objects. + This allows accessing extcon specific variables. + The name of extcon object denoted as ... is the name given + with extcon_dev_register. + + One extcon device denotes a single external connector + port. An external connector may have multiple cables + attached simultaneously. Many of docks, cradles, and + accessory cables have such capability. For example, + the 30-pin port of Nuri board (/arch/arm/mach-exynos) + may have both HDMI and Charger attached, or analog audio, + video, and USB cables attached simultaneously. + + If there are cables mutually exclusive with each other, + such binary relations may be expressed with extcon_dev's + mutually_exclusive array. + +What: /sys/class/extcon/.../name +Date: February 2012 +Contact: MyungJoo Ham +Description: + The /sys/class/extcon/.../name shows the name of the extcon + object. If the extcon object has an optional callback + "show_name" defined, the callback will provide the name with + this sysfs node. + +What: /sys/class/extcon/.../state +Date: February 2012 +Contact: MyungJoo Ham +Description: + The /sys/class/extcon/.../state shows and stores the cable + attach/detach information of the corresponding extcon object. + If the extcon object has an optional callback "show_state" + defined, the showing function is overridden with the optional + callback. + + If the default callback for showing function is used, the + format is like this:: + + # cat state + USB_OTG=1 + HDMI=0 + TA=1 + EAR_JACK=0 + # + + In this example, the extcon device has USB_OTG and TA + cables attached and HDMI and EAR_JACK cables detached. + + In order to update the state of an extcon device, enter a hex + state number starting with 0x:: + + # echo 0xHEX > state + + This updates the whole state of the extcon device. + Inputs of all the methods are required to meet the + mutually_exclusive conditions if they exist. + + It is recommended to use this "global" state interface if + you need to set the value atomically. The later state + interface associated with each cable cannot update + multiple cable states of an extcon device simultaneously. + +What: /sys/class/extcon/.../cable.X/name +Date: February 2012 +Contact: MyungJoo Ham +Description: + The /sys/class/extcon/.../cable.X/name shows the name of cable + "X" (integer between 0 and 31) of an extcon device. + +What: /sys/class/extcon/.../cable.X/state +Date: February 2012 +Contact: MyungJoo Ham +Description: + The /sys/class/extcon/.../cable.X/state shows and stores the + state of cable "X" (integer between 0 and 31) of an extcon + device. The state value is either 0 (detached) or 1 + (attached). + +What: /sys/class/extcon/.../mutually_exclusive/... +Date: December 2011 +Contact: MyungJoo Ham +Description: + Shows the relations of mutually exclusiveness. For example, + if the mutually_exclusive array of extcon device is + {0x3, 0x5, 0xC, 0x0}, then the output is:: + + # ls mutually_exclusive/ + 0x3 + 0x5 + 0xc + # + + Note that mutually_exclusive is a sub-directory of the extcon + device and the file names under the mutually_exclusive + directory show the mutually-exclusive sets, not the contents + of the files. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-firmware b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-firmware index 7117dcdaf..fba87a55f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-firmware +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-firmware @@ -1,77 +1,77 @@ -What: /sys/class/firmware/.../data -Date: July 2022 -KernelVersion: 5.19 -Contact: Russ Weight -Description: The data sysfs file is used for firmware-fallback and for - firmware uploads. Cat a firmware image to this sysfs file - after you echo 1 to the loading sysfs file. When the firmware - image write is complete, echo 0 to the loading sysfs file. This - sequence will signal the completion of the firmware write and - signal the lower-level driver that the firmware data is - available. - -What: /sys/class/firmware/.../cancel -Date: July 2022 -KernelVersion: 5.19 -Contact: Russ Weight -Description: Write-only. For firmware uploads, write a "1" to this file to - request that the transfer of firmware data to the lower-level - device be canceled. This request will be rejected (EBUSY) if - the update cannot be canceled (e.g. a FLASH write is in - progress) or (ENODEV) if there is no firmware update in progress. - -What: /sys/class/firmware/.../error -Date: July 2022 -KernelVersion: 5.19 -Contact: Russ Weight -Description: Read-only. Returns a string describing a failed firmware - upload. This string will be in the form of :, - where will be one of the status strings described - for the status sysfs file and will be one of the - following: "hw-error", "timeout", "user-abort", "device-busy", - "invalid-file-size", "read-write-error", "flash-wearout". The - error sysfs file is only meaningful when the current firmware - upload status is "idle". If this file is read while a firmware - transfer is in progress, then the read will fail with EBUSY. - -What: /sys/class/firmware/.../loading -Date: July 2022 -KernelVersion: 5.19 -Contact: Russ Weight -Description: The loading sysfs file is used for both firmware-fallback and - for firmware uploads. Echo 1 onto the loading file to indicate - you are writing a firmware file to the data sysfs node. Echo - -1 onto this file to abort the data write or echo 0 onto this - file to indicate that the write is complete. For firmware - uploads, the zero value also triggers the transfer of the - firmware data to the lower-level device driver. - -What: /sys/class/firmware/.../remaining_size -Date: July 2022 -KernelVersion: 5.19 -Contact: Russ Weight -Description: Read-only. For firmware upload, this file contains the size - of the firmware data that remains to be transferred to the - lower-level device driver. The size value is initialized to - the full size of the firmware image that was previously - written to the data sysfs file. This value is periodically - updated during the "transferring" phase of the firmware - upload. - Format: "%u". - -What: /sys/class/firmware/.../status -Date: July 2022 -KernelVersion: 5.19 -Contact: Russ Weight -Description: Read-only. Returns a string describing the current status of - a firmware upload. The string will be one of the following: - idle, "receiving", "preparing", "transferring", "programming". - -What: /sys/class/firmware/.../timeout -Date: July 2022 -KernelVersion: 5.19 -Contact: Russ Weight -Description: This file supports the timeout mechanism for firmware - fallback. This file has no affect on firmware uploads. For - more information on timeouts please see the documentation - for firmware fallback. +What: /sys/class/firmware/.../data +Date: July 2022 +KernelVersion: 5.19 +Contact: Russ Weight +Description: The data sysfs file is used for firmware-fallback and for + firmware uploads. Cat a firmware image to this sysfs file + after you echo 1 to the loading sysfs file. When the firmware + image write is complete, echo 0 to the loading sysfs file. This + sequence will signal the completion of the firmware write and + signal the lower-level driver that the firmware data is + available. + +What: /sys/class/firmware/.../cancel +Date: July 2022 +KernelVersion: 5.19 +Contact: Russ Weight +Description: Write-only. For firmware uploads, write a "1" to this file to + request that the transfer of firmware data to the lower-level + device be canceled. This request will be rejected (EBUSY) if + the update cannot be canceled (e.g. a FLASH write is in + progress) or (ENODEV) if there is no firmware update in progress. + +What: /sys/class/firmware/.../error +Date: July 2022 +KernelVersion: 5.19 +Contact: Russ Weight +Description: Read-only. Returns a string describing a failed firmware + upload. This string will be in the form of :, + where will be one of the status strings described + for the status sysfs file and will be one of the + following: "hw-error", "timeout", "user-abort", "device-busy", + "invalid-file-size", "read-write-error", "flash-wearout". The + error sysfs file is only meaningful when the current firmware + upload status is "idle". If this file is read while a firmware + transfer is in progress, then the read will fail with EBUSY. + +What: /sys/class/firmware/.../loading +Date: July 2022 +KernelVersion: 5.19 +Contact: Russ Weight +Description: The loading sysfs file is used for both firmware-fallback and + for firmware uploads. Echo 1 onto the loading file to indicate + you are writing a firmware file to the data sysfs node. Echo + -1 onto this file to abort the data write or echo 0 onto this + file to indicate that the write is complete. For firmware + uploads, the zero value also triggers the transfer of the + firmware data to the lower-level device driver. + +What: /sys/class/firmware/.../remaining_size +Date: July 2022 +KernelVersion: 5.19 +Contact: Russ Weight +Description: Read-only. For firmware upload, this file contains the size + of the firmware data that remains to be transferred to the + lower-level device driver. The size value is initialized to + the full size of the firmware image that was previously + written to the data sysfs file. This value is periodically + updated during the "transferring" phase of the firmware + upload. + Format: "%u". + +What: /sys/class/firmware/.../status +Date: July 2022 +KernelVersion: 5.19 +Contact: Russ Weight +Description: Read-only. Returns a string describing the current status of + a firmware upload. The string will be one of the following: + idle, "receiving", "preparing", "transferring", "programming". + +What: /sys/class/firmware/.../timeout +Date: July 2022 +KernelVersion: 5.19 +Contact: Russ Weight +Description: This file supports the timeout mechanism for firmware + fallback. This file has no affect on firmware uploads. For + more information on timeouts please see the documentation + for firmware fallback. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-intel_pmt b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-intel_pmt index 2cf842103..ed4c886a2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-intel_pmt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-intel_pmt @@ -1,119 +1,119 @@ -What: /sys/class/intel_pmt/ -Date: October 2020 -KernelVersion: 5.10 -Contact: David Box -Description: - The intel_pmt/ class directory contains information for - devices that expose hardware telemetry using Intel Platform - Monitoring Technology (PMT) - -What: /sys/class/intel_pmt/telem -Date: October 2020 -KernelVersion: 5.10 -Contact: David Box -Description: - The telem directory contains files describing an instance of - a PMT telemetry device that exposes hardware telemetry. Each - telem directory has an associated telem file. This file - may be opened and mapped or read to access the telemetry space - of the device. The register layout of the telemetry space is - determined from an XML file that matches the PCI device id and - GUID for the device. - -What: /sys/class/intel_pmt/telem/telem -Date: October 2020 -KernelVersion: 5.10 -Contact: David Box -Description: - (RO) The telemetry data for this telemetry device. This file - may be mapped or read to obtain the data. - -What: /sys/class/intel_pmt/telem/guid -Date: October 2020 -KernelVersion: 5.10 -Contact: David Box -Description: - (RO) The GUID for this telemetry device. The GUID identifies - the version of the XML file for the parent device that is to - be used to get the register layout. - -What: /sys/class/intel_pmt/telem/size -Date: October 2020 -KernelVersion: 5.10 -Contact: David Box -Description: - (RO) The size of telemetry region in bytes that corresponds to - the mapping size for the telem file. - -What: /sys/class/intel_pmt/telem/offset -Date: October 2020 -KernelVersion: 5.10 -Contact: David Box -Description: - (RO) The offset of telemetry region in bytes that corresponds to - the mapping for the telem file. - -What: /sys/class/intel_pmt/crashlog -Date: October 2020 -KernelVersion: 5.10 -Contact: Alexander Duyck -Description: - The crashlog directory contains files for configuring an - instance of a PMT crashlog device that can perform crash data - recording. Each crashlog device has an associated crashlog - file. This file can be opened and mapped or read to access the - resulting crashlog buffer. The register layout for the buffer - can be determined from an XML file of specified GUID for the - parent device. - -What: /sys/class/intel_pmt/crashlog/crashlog -Date: October 2020 -KernelVersion: 5.10 -Contact: David Box -Description: - (RO) The crashlog buffer for this crashlog device. This file - may be mapped or read to obtain the data. - -What: /sys/class/intel_pmt/crashlog/guid -Date: October 2020 -KernelVersion: 5.10 -Contact: Alexander Duyck -Description: - (RO) The GUID for this crashlog device. The GUID identifies the - version of the XML file for the parent device that should be - used to determine the register layout. - -What: /sys/class/intel_pmt/crashlog/size -Date: October 2020 -KernelVersion: 5.10 -Contact: Alexander Duyck -Description: - (RO) The length of the result buffer in bytes that corresponds - to the size for the crashlog buffer. - -What: /sys/class/intel_pmt/crashlog/offset -Date: October 2020 -KernelVersion: 5.10 -Contact: Alexander Duyck -Description: - (RO) The offset of the buffer in bytes that corresponds - to the mapping for the crashlog device. - -What: /sys/class/intel_pmt/crashlog/enable -Date: October 2020 -KernelVersion: 5.10 -Contact: Alexander Duyck -Description: - (RW) Boolean value controlling if the crashlog functionality - is enabled for the crashlog device. - -What: /sys/class/intel_pmt/crashlog/trigger -Date: October 2020 -KernelVersion: 5.10 -Contact: Alexander Duyck -Description: - (RW) Boolean value controlling the triggering of the crashlog - device node. When read it provides data on if the crashlog has - been triggered. When written to it can be used to either clear - the current trigger by writing false, or to trigger a new - event if the trigger is not currently set. +What: /sys/class/intel_pmt/ +Date: October 2020 +KernelVersion: 5.10 +Contact: David Box +Description: + The intel_pmt/ class directory contains information for + devices that expose hardware telemetry using Intel Platform + Monitoring Technology (PMT) + +What: /sys/class/intel_pmt/telem +Date: October 2020 +KernelVersion: 5.10 +Contact: David Box +Description: + The telem directory contains files describing an instance of + a PMT telemetry device that exposes hardware telemetry. Each + telem directory has an associated telem file. This file + may be opened and mapped or read to access the telemetry space + of the device. The register layout of the telemetry space is + determined from an XML file that matches the PCI device id and + GUID for the device. + +What: /sys/class/intel_pmt/telem/telem +Date: October 2020 +KernelVersion: 5.10 +Contact: David Box +Description: + (RO) The telemetry data for this telemetry device. This file + may be mapped or read to obtain the data. + +What: /sys/class/intel_pmt/telem/guid +Date: October 2020 +KernelVersion: 5.10 +Contact: David Box +Description: + (RO) The GUID for this telemetry device. The GUID identifies + the version of the XML file for the parent device that is to + be used to get the register layout. + +What: /sys/class/intel_pmt/telem/size +Date: October 2020 +KernelVersion: 5.10 +Contact: David Box +Description: + (RO) The size of telemetry region in bytes that corresponds to + the mapping size for the telem file. + +What: /sys/class/intel_pmt/telem/offset +Date: October 2020 +KernelVersion: 5.10 +Contact: David Box +Description: + (RO) The offset of telemetry region in bytes that corresponds to + the mapping for the telem file. + +What: /sys/class/intel_pmt/crashlog +Date: October 2020 +KernelVersion: 5.10 +Contact: Alexander Duyck +Description: + The crashlog directory contains files for configuring an + instance of a PMT crashlog device that can perform crash data + recording. Each crashlog device has an associated crashlog + file. This file can be opened and mapped or read to access the + resulting crashlog buffer. The register layout for the buffer + can be determined from an XML file of specified GUID for the + parent device. + +What: /sys/class/intel_pmt/crashlog/crashlog +Date: October 2020 +KernelVersion: 5.10 +Contact: David Box +Description: + (RO) The crashlog buffer for this crashlog device. This file + may be mapped or read to obtain the data. + +What: /sys/class/intel_pmt/crashlog/guid +Date: October 2020 +KernelVersion: 5.10 +Contact: Alexander Duyck +Description: + (RO) The GUID for this crashlog device. The GUID identifies the + version of the XML file for the parent device that should be + used to determine the register layout. + +What: /sys/class/intel_pmt/crashlog/size +Date: October 2020 +KernelVersion: 5.10 +Contact: Alexander Duyck +Description: + (RO) The length of the result buffer in bytes that corresponds + to the size for the crashlog buffer. + +What: /sys/class/intel_pmt/crashlog/offset +Date: October 2020 +KernelVersion: 5.10 +Contact: Alexander Duyck +Description: + (RO) The offset of the buffer in bytes that corresponds + to the mapping for the crashlog device. + +What: /sys/class/intel_pmt/crashlog/enable +Date: October 2020 +KernelVersion: 5.10 +Contact: Alexander Duyck +Description: + (RW) Boolean value controlling if the crashlog functionality + is enabled for the crashlog device. + +What: /sys/class/intel_pmt/crashlog/trigger +Date: October 2020 +KernelVersion: 5.10 +Contact: Alexander Duyck +Description: + (RW) Boolean value controlling the triggering of the crashlog + device node. When read it provides data on if the crashlog has + been triggered. When written to it can be used to either clear + the current trigger by writing false, or to trigger a new + event if the trigger is not currently set. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-net-queues b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-net-queues index d0bf9defa..84aa25e0d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-net-queues +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-net-queues @@ -1,121 +1,121 @@ -What: /sys/class/net//queues/rx-/rps_cpus -Date: March 2010 -KernelVersion: 2.6.35 -Contact: netdev@vger.kernel.org -Description: - Mask of the CPU(s) currently enabled to participate into the - Receive Packet Steering packet processing flow for this - network device queue. Possible values depend on the number - of available CPU(s) in the system. - -What: /sys/class/net//queues/rx-/rps_flow_cnt -Date: April 2010 -KernelVersion: 2.6.35 -Contact: netdev@vger.kernel.org -Description: - Number of Receive Packet Steering flows being currently - processed by this particular network device receive queue. - -What: /sys/class/net//queues/tx-/tx_timeout -Date: November 2011 -KernelVersion: 3.3 -Contact: netdev@vger.kernel.org -Description: - Indicates the number of transmit timeout events seen by this - network interface transmit queue. - -What: /sys/class/net//queues/tx-/tx_maxrate -Date: March 2015 -KernelVersion: 4.1 -Contact: netdev@vger.kernel.org -Description: - A Mbps max-rate set for the queue, a value of zero means disabled, - default is disabled. - -What: /sys/class/net//queues/tx-/xps_cpus -Date: November 2010 -KernelVersion: 2.6.38 -Contact: netdev@vger.kernel.org -Description: - Mask of the CPU(s) currently enabled to participate into the - Transmit Packet Steering packet processing flow for this - network device transmit queue. Possible values depend on the - number of available CPU(s) in the system. - -What: /sys/class/net//queues/tx-/xps_rxqs -Date: June 2018 -KernelVersion: 4.18.0 -Contact: netdev@vger.kernel.org -Description: - Mask of the receive queue(s) currently enabled to participate - into the Transmit Packet Steering packet processing flow for this - network device transmit queue. Possible values depend on the - number of available receive queue(s) in the network device. - Default is disabled. - -What: /sys/class/net//queues/tx-/byte_queue_limits/hold_time -Date: November 2011 -KernelVersion: 3.3 -Contact: netdev@vger.kernel.org -Description: - Indicates the hold time in milliseconds to measure the slack - of this particular network device transmit queue. - Default value is 1000. - -What: /sys/class/net//queues/tx-/byte_queue_limits/inflight -Date: November 2011 -KernelVersion: 3.3 -Contact: netdev@vger.kernel.org -Description: - Indicates the number of bytes (objects) in flight on this - network device transmit queue. - -What: /sys/class/net//queues/tx-/byte_queue_limits/limit -Date: November 2011 -KernelVersion: 3.3 -Contact: netdev@vger.kernel.org -Description: - Indicates the current limit of bytes allowed to be queued - on this network device transmit queue. This value is clamped - to be within the bounds defined by limit_max and limit_min. - -What: /sys/class/net//queues/tx-/byte_queue_limits/limit_max -Date: November 2011 -KernelVersion: 3.3 -Contact: netdev@vger.kernel.org -Description: - Indicates the absolute maximum limit of bytes allowed to be - queued on this network device transmit queue. See - include/linux/dynamic_queue_limits.h for the default value. - -What: /sys/class/net//queues/tx-/byte_queue_limits/limit_min -Date: November 2011 -KernelVersion: 3.3 -Contact: netdev@vger.kernel.org -Description: - Indicates the absolute minimum limit of bytes allowed to be - queued on this network device transmit queue. Default value is - 0. - -What: /sys/class/net//queues/tx-/byte_queue_limits/stall_thrs -Date: Jan 2024 -KernelVersion: 6.9 -Contact: netdev@vger.kernel.org -Description: - Tx completion stall detection threshold in ms. Kernel will - guarantee to detect all stalls longer than this threshold but - may also detect stalls longer than half of the threshold. - -What: /sys/class/net//queues/tx-/byte_queue_limits/stall_cnt -Date: Jan 2024 -KernelVersion: 6.9 -Contact: netdev@vger.kernel.org -Description: - Number of detected Tx completion stalls. - -What: /sys/class/net//queues/tx-/byte_queue_limits/stall_max -Date: Jan 2024 -KernelVersion: 6.9 -Contact: netdev@vger.kernel.org -Description: - Longest detected Tx completion stall. Write 0 to clear. +What: /sys/class/net//queues/rx-/rps_cpus +Date: March 2010 +KernelVersion: 2.6.35 +Contact: netdev@vger.kernel.org +Description: + Mask of the CPU(s) currently enabled to participate into the + Receive Packet Steering packet processing flow for this + network device queue. Possible values depend on the number + of available CPU(s) in the system. + +What: /sys/class/net//queues/rx-/rps_flow_cnt +Date: April 2010 +KernelVersion: 2.6.35 +Contact: netdev@vger.kernel.org +Description: + Number of Receive Packet Steering flows being currently + processed by this particular network device receive queue. + +What: /sys/class/net//queues/tx-/tx_timeout +Date: November 2011 +KernelVersion: 3.3 +Contact: netdev@vger.kernel.org +Description: + Indicates the number of transmit timeout events seen by this + network interface transmit queue. + +What: /sys/class/net//queues/tx-/tx_maxrate +Date: March 2015 +KernelVersion: 4.1 +Contact: netdev@vger.kernel.org +Description: + A Mbps max-rate set for the queue, a value of zero means disabled, + default is disabled. + +What: /sys/class/net//queues/tx-/xps_cpus +Date: November 2010 +KernelVersion: 2.6.38 +Contact: netdev@vger.kernel.org +Description: + Mask of the CPU(s) currently enabled to participate into the + Transmit Packet Steering packet processing flow for this + network device transmit queue. Possible values depend on the + number of available CPU(s) in the system. + +What: /sys/class/net//queues/tx-/xps_rxqs +Date: June 2018 +KernelVersion: 4.18.0 +Contact: netdev@vger.kernel.org +Description: + Mask of the receive queue(s) currently enabled to participate + into the Transmit Packet Steering packet processing flow for this + network device transmit queue. Possible values depend on the + number of available receive queue(s) in the network device. + Default is disabled. + +What: /sys/class/net//queues/tx-/byte_queue_limits/hold_time +Date: November 2011 +KernelVersion: 3.3 +Contact: netdev@vger.kernel.org +Description: + Indicates the hold time in milliseconds to measure the slack + of this particular network device transmit queue. + Default value is 1000. + +What: /sys/class/net//queues/tx-/byte_queue_limits/inflight +Date: November 2011 +KernelVersion: 3.3 +Contact: netdev@vger.kernel.org +Description: + Indicates the number of bytes (objects) in flight on this + network device transmit queue. + +What: /sys/class/net//queues/tx-/byte_queue_limits/limit +Date: November 2011 +KernelVersion: 3.3 +Contact: netdev@vger.kernel.org +Description: + Indicates the current limit of bytes allowed to be queued + on this network device transmit queue. This value is clamped + to be within the bounds defined by limit_max and limit_min. + +What: /sys/class/net//queues/tx-/byte_queue_limits/limit_max +Date: November 2011 +KernelVersion: 3.3 +Contact: netdev@vger.kernel.org +Description: + Indicates the absolute maximum limit of bytes allowed to be + queued on this network device transmit queue. See + include/linux/dynamic_queue_limits.h for the default value. + +What: /sys/class/net//queues/tx-/byte_queue_limits/limit_min +Date: November 2011 +KernelVersion: 3.3 +Contact: netdev@vger.kernel.org +Description: + Indicates the absolute minimum limit of bytes allowed to be + queued on this network device transmit queue. Default value is + 0. + +What: /sys/class/net//queues/tx-/byte_queue_limits/stall_thrs +Date: Jan 2024 +KernelVersion: 6.9 +Contact: netdev@vger.kernel.org +Description: + Tx completion stall detection threshold in ms. Kernel will + guarantee to detect all stalls longer than this threshold but + may also detect stalls longer than half of the threshold. + +What: /sys/class/net//queues/tx-/byte_queue_limits/stall_cnt +Date: Jan 2024 +KernelVersion: 6.9 +Contact: netdev@vger.kernel.org +Description: + Number of detected Tx completion stalls. + +What: /sys/class/net//queues/tx-/byte_queue_limits/stall_max +Date: Jan 2024 +KernelVersion: 6.9 +Contact: netdev@vger.kernel.org +Description: + Longest detected Tx completion stall. Write 0 to clear. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-remoteproc b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-remoteproc index 581b538a0..b2b8e2db2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-remoteproc +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-remoteproc @@ -1,104 +1,104 @@ -What: /sys/class/remoteproc/.../firmware -Date: October 2016 -Contact: Matt Redfearn -Description: Remote processor firmware - - Reports the name of the firmware currently loaded to the - remote processor. - - To change the running firmware, ensure the remote processor is - stopped (using /sys/class/remoteproc/.../state) and write a new filename. - -What: /sys/class/remoteproc/.../state -Date: October 2016 -Contact: Matt Redfearn -Description: Remote processor state - - Reports the state of the remote processor, which will be one of: - - - "offline" - - "suspended" - - "running" - - "crashed" - - "invalid" - - "offline" means the remote processor is powered off. - - "suspended" means that the remote processor is suspended and - must be woken to receive messages. - - "running" is the normal state of an available remote processor - - "crashed" indicates that a problem/crash has been detected on - the remote processor. - - "invalid" is returned if the remote processor is in an - unknown state. - - Writing this file controls the state of the remote processor. - The following states can be written: - - - "start" - - "stop" - - Writing "start" will attempt to start the processor running the - firmware indicated by, or written to, - /sys/class/remoteproc/.../firmware. The remote processor should - transition to "running" state. - - Writing "stop" will attempt to halt the remote processor and - return it to the "offline" state. - -What: /sys/class/remoteproc/.../name -Date: August 2019 -KernelVersion: 5.4 -Contact: Suman Anna -Description: Remote processor name - - Reports the name of the remote processor. This can be used by - userspace in exactly identifying a remote processor and ease - up the usage in modifying the 'firmware' or 'state' files. - -What: /sys/class/remoteproc/.../coredump -Date: July 2020 -Contact: Bjorn Andersson , Ohad Ben-Cohen -Description: Remote processor coredump configuration - - Reports the coredump configuration of the remote processor, - which will be one of: - - "disabled" - "enabled" - "inline" - - "disabled" means no dump will be collected. - - "enabled" means when the remote processor's coredump is - collected it will be copied to a separate buffer and that - buffer is exposed to userspace. - - "inline" means when the remote processor's coredump is - collected userspace will directly read from the remote - processor's device memory. Extra buffer will not be used to - copy the dump. Also recovery process will not proceed until - all data is read by userspace. - -What: /sys/class/remoteproc/.../recovery -Date: July 2020 -Contact: Bjorn Andersson , Ohad Ben-Cohen -Description: Remote processor recovery mechanism - - Reports the recovery mechanism of the remote processor, - which will be one of: - - "enabled" - "disabled" - - "enabled" means, the remote processor will be automatically - recovered whenever it crashes. Moreover, if the remote - processor crashes while recovery is disabled, it will - be automatically recovered too as soon as recovery is enabled. - - "disabled" means, a remote processor will remain in a crashed - state if it crashes. This is useful for debugging purposes; - without it, debugging a crash is substantially harder. +What: /sys/class/remoteproc/.../firmware +Date: October 2016 +Contact: Matt Redfearn +Description: Remote processor firmware + + Reports the name of the firmware currently loaded to the + remote processor. + + To change the running firmware, ensure the remote processor is + stopped (using /sys/class/remoteproc/.../state) and write a new filename. + +What: /sys/class/remoteproc/.../state +Date: October 2016 +Contact: Matt Redfearn +Description: Remote processor state + + Reports the state of the remote processor, which will be one of: + + - "offline" + - "suspended" + - "running" + - "crashed" + - "invalid" + + "offline" means the remote processor is powered off. + + "suspended" means that the remote processor is suspended and + must be woken to receive messages. + + "running" is the normal state of an available remote processor + + "crashed" indicates that a problem/crash has been detected on + the remote processor. + + "invalid" is returned if the remote processor is in an + unknown state. + + Writing this file controls the state of the remote processor. + The following states can be written: + + - "start" + - "stop" + + Writing "start" will attempt to start the processor running the + firmware indicated by, or written to, + /sys/class/remoteproc/.../firmware. The remote processor should + transition to "running" state. + + Writing "stop" will attempt to halt the remote processor and + return it to the "offline" state. + +What: /sys/class/remoteproc/.../name +Date: August 2019 +KernelVersion: 5.4 +Contact: Suman Anna +Description: Remote processor name + + Reports the name of the remote processor. This can be used by + userspace in exactly identifying a remote processor and ease + up the usage in modifying the 'firmware' or 'state' files. + +What: /sys/class/remoteproc/.../coredump +Date: July 2020 +Contact: Bjorn Andersson , Ohad Ben-Cohen +Description: Remote processor coredump configuration + + Reports the coredump configuration of the remote processor, + which will be one of: + + "disabled" + "enabled" + "inline" + + "disabled" means no dump will be collected. + + "enabled" means when the remote processor's coredump is + collected it will be copied to a separate buffer and that + buffer is exposed to userspace. + + "inline" means when the remote processor's coredump is + collected userspace will directly read from the remote + processor's device memory. Extra buffer will not be used to + copy the dump. Also recovery process will not proceed until + all data is read by userspace. + +What: /sys/class/remoteproc/.../recovery +Date: July 2020 +Contact: Bjorn Andersson , Ohad Ben-Cohen +Description: Remote processor recovery mechanism + + Reports the recovery mechanism of the remote processor, + which will be one of: + + "enabled" + "disabled" + + "enabled" means, the remote processor will be automatically + recovered whenever it crashes. Moreover, if the remote + processor crashes while recovery is disabled, it will + be automatically recovered too as soon as recovery is enabled. + + "disabled" means, a remote processor will remain in a crashed + state if it crashes. This is useful for debugging purposes; + without it, debugging a crash is substantially harder. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-scsi_tape b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-scsi_tape index c7d7cc578..9be398b87 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-scsi_tape +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-scsi_tape @@ -1,109 +1,109 @@ -What: /sys/class/scsi_tape/*/stats/in_flight -Date: Apr 2015 -KernelVersion: 4.2 -Contact: Shane Seymour -Description: - Show the number of I/Os currently in-flight between the st - module and the SCSI mid-layer. -Users: - - -What: /sys/class/scsi_tape/*/stats/io_ns -Date: Apr 2015 -KernelVersion: 4.2 -Contact: Shane Seymour -Description: - Shows the total amount of time spent waiting for all I/O - to and from the tape drive to complete. This includes all - reads, writes, and other SCSI commands issued to the tape - drive. An example of other SCSI commands would be tape - movement such as a rewind when a rewind tape device is - closed. This item is measured in nanoseconds. - - To determine the amount of time spent waiting for other I/O - to complete subtract read_ns and write_ns from this value. -Users: - - -What: /sys/class/scsi_tape/*/stats/other_cnt -Date: Apr 2015 -KernelVersion: 4.2 -Contact: Shane Seymour -Description: - The number of I/O requests issued to the tape drive other - than SCSI read/write requests. -Users: - - -What: /sys/class/scsi_tape/*/stats/read_byte_cnt -Date: Apr 2015 -KernelVersion: 4.2 -Contact: Shane Seymour -Description: - Shows the total number of bytes requested from the tape drive. - This value is presented in bytes because tape drives support - variable length block sizes. -Users: - - -What: /sys/class/scsi_tape/*/stats/read_cnt -Date: Apr 2015 -KernelVersion: 4.2 -Contact: Shane Seymour -Description: - Shows the total number of read requests issued to the tape - drive. -Users: - - -What: /sys/class/scsi_tape/*/stats/read_ns -Date: Apr 2015 -KernelVersion: 4.2 -Contact: Shane Seymour -Description: - Shows the total amount of time in nanoseconds waiting for - read I/O requests to complete. -Users: - - -What: /sys/class/scsi_tape/*/stats/write_byte_cnt -Date: Apr 2015 -KernelVersion: 4.2 -Contact: Shane Seymour -Description: - Shows the total number of bytes written to the tape drive. - This value is presented in bytes because tape drives support - variable length block sizes. -Users: - - -What: /sys/class/scsi_tape/*/stats/write_cnt -Date: Apr 2015 -KernelVersion: 4.2 -Contact: Shane Seymour -Description: - Shows the total number of write requests issued to the tape - drive. -Users: - - -What: /sys/class/scsi_tape/*/stats/write_ms -Date: Apr 2015 -KernelVersion: 4.2 -Contact: Shane Seymour -Description: - Shows the total amount of time in nanoseconds waiting for - write I/O requests to complete. -Users: - - -What: /sys/class/scsi_tape/*/stats/resid_cnt -Date: Apr 2015 -KernelVersion: 4.2 -Contact: Shane Seymour -Description: - Shows the number of times we found that a residual >0 - was found when the SCSI midlayer indicated that there was - an error. For reads this may be a case of someone issuing - reads greater than the block size. -Users: +What: /sys/class/scsi_tape/*/stats/in_flight +Date: Apr 2015 +KernelVersion: 4.2 +Contact: Shane Seymour +Description: + Show the number of I/Os currently in-flight between the st + module and the SCSI mid-layer. +Users: + + +What: /sys/class/scsi_tape/*/stats/io_ns +Date: Apr 2015 +KernelVersion: 4.2 +Contact: Shane Seymour +Description: + Shows the total amount of time spent waiting for all I/O + to and from the tape drive to complete. This includes all + reads, writes, and other SCSI commands issued to the tape + drive. An example of other SCSI commands would be tape + movement such as a rewind when a rewind tape device is + closed. This item is measured in nanoseconds. + + To determine the amount of time spent waiting for other I/O + to complete subtract read_ns and write_ns from this value. +Users: + + +What: /sys/class/scsi_tape/*/stats/other_cnt +Date: Apr 2015 +KernelVersion: 4.2 +Contact: Shane Seymour +Description: + The number of I/O requests issued to the tape drive other + than SCSI read/write requests. +Users: + + +What: /sys/class/scsi_tape/*/stats/read_byte_cnt +Date: Apr 2015 +KernelVersion: 4.2 +Contact: Shane Seymour +Description: + Shows the total number of bytes requested from the tape drive. + This value is presented in bytes because tape drives support + variable length block sizes. +Users: + + +What: /sys/class/scsi_tape/*/stats/read_cnt +Date: Apr 2015 +KernelVersion: 4.2 +Contact: Shane Seymour +Description: + Shows the total number of read requests issued to the tape + drive. +Users: + + +What: /sys/class/scsi_tape/*/stats/read_ns +Date: Apr 2015 +KernelVersion: 4.2 +Contact: Shane Seymour +Description: + Shows the total amount of time in nanoseconds waiting for + read I/O requests to complete. +Users: + + +What: /sys/class/scsi_tape/*/stats/write_byte_cnt +Date: Apr 2015 +KernelVersion: 4.2 +Contact: Shane Seymour +Description: + Shows the total number of bytes written to the tape drive. + This value is presented in bytes because tape drives support + variable length block sizes. +Users: + + +What: /sys/class/scsi_tape/*/stats/write_cnt +Date: Apr 2015 +KernelVersion: 4.2 +Contact: Shane Seymour +Description: + Shows the total number of write requests issued to the tape + drive. +Users: + + +What: /sys/class/scsi_tape/*/stats/write_ms +Date: Apr 2015 +KernelVersion: 4.2 +Contact: Shane Seymour +Description: + Shows the total amount of time in nanoseconds waiting for + write I/O requests to complete. +Users: + + +What: /sys/class/scsi_tape/*/stats/resid_cnt +Date: Apr 2015 +KernelVersion: 4.2 +Contact: Shane Seymour +Description: + Shows the number of times we found that a residual >0 + was found when the SCSI midlayer indicated that there was + an error. For reads this may be a case of someone issuing + reads greater than the block size. +Users: diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-watchdog b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-watchdog index 062d716b5..94fb74615 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-watchdog +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-class-watchdog @@ -1,129 +1,129 @@ -What: /sys/class/watchdog/watchdogn/bootstatus -Date: August 2015 -Contact: Wim Van Sebroeck -Description: - It is a read only file. It contains status of the watchdog - device at boot. It is equivalent to WDIOC_GETBOOTSTATUS of - ioctl interface. - -What: /sys/class/watchdog/watchdogn/options -Date: April 2023 -Contact: Thomas Weißschuh -Description: - It is a read only file. It contains options of watchdog device. - -What: /sys/class/watchdog/watchdogn/fw_version -Date: April 2023 -Contact: Thomas Weißschuh -Description: - It is a read only file. It contains firmware version of - watchdog device. - -What: /sys/class/watchdog/watchdogn/identity -Date: August 2015 -Contact: Wim Van Sebroeck -Description: - It is a read only file. It contains identity string of - watchdog device. - -What: /sys/class/watchdog/watchdogn/nowayout -Date: August 2015 -Contact: Wim Van Sebroeck -Description: - It is a read/write file. While reading, it gives '1' - if the device has the nowayout feature set, otherwise - it gives '0'. Writing a '1' to the file enables the - nowayout feature. Once set, the nowayout feature - cannot be disabled, so writing a '0' either has no - effect (if the feature was already disabled) or - results in a permission error. - -What: /sys/class/watchdog/watchdogn/state -Date: August 2015 -Contact: Wim Van Sebroeck -Description: - It is a read only file. It gives active/inactive status of - watchdog device. - -What: /sys/class/watchdog/watchdogn/status -Date: August 2015 -Contact: Wim Van Sebroeck -Description: - It is a read only file. It contains watchdog device's - internal status bits. It is equivalent to WDIOC_GETSTATUS - of ioctl interface. - -What: /sys/class/watchdog/watchdogn/timeleft -Date: August 2015 -Contact: Wim Van Sebroeck -Description: - It is a read only file. It contains value of time left for - reset generation. It is equivalent to WDIOC_GETTIMELEFT of - ioctl interface. - -What: /sys/class/watchdog/watchdogn/timeout -Date: August 2015 -Contact: Wim Van Sebroeck -Description: - It is a read only file. It is read to know about current - value of timeout programmed. - -What: /sys/class/watchdog/watchdogn/pretimeout -Date: December 2016 -Contact: Wim Van Sebroeck -Description: - It is a read only file. It specifies the time in seconds before - timeout when the pretimeout interrupt is delivered. Pretimeout - is an optional feature. - -What: /sys/class/watchdog/watchdogn/pretimeout_avaialable_governors -Date: February 2017 -Contact: Wim Van Sebroeck -Description: - It is a read only file. It shows the pretimeout governors - available for this watchdog. - -What: /sys/class/watchdog/watchdogn/pretimeout_governor -Date: February 2017 -Contact: Wim Van Sebroeck -Description: - It is a read/write file. When read, the currently assigned - pretimeout governor is returned. When written, it sets - the pretimeout governor. - -What: /sys/class/watchdog/watchdog1/access_cs0 -Date: August 2019 -Contact: Ivan Mikhaylov , - Alexander Amelkin -Description: - It is a read/write file. This attribute exists only if the - system has booted from the alternate flash chip due to - expiration of a watchdog timer of AST2400/AST2500 when - alternate boot function was enabled with 'aspeed,alt-boot' - devicetree option for that watchdog or with an appropriate - h/w strapping (for WDT2 only). - - At alternate flash the 'access_cs0' sysfs node provides: - - ast2400: - a way to get access to the primary SPI flash - chip at CS0 after booting from the alternate - chip at CS1. - ast2500: - a way to restore the normal address mapping - from (CS0->CS1, CS1->CS0) to (CS0->CS0, - CS1->CS1). - - Clearing the boot code selection and timeout counter also - resets to the initial state the chip select line mapping. When - the SoC is in normal mapping state (i.e. booted from CS0), - clearing those bits does nothing for both versions of the SoC. - For alternate boot mode (booted from CS1 due to wdt2 - expiration) the behavior differs as described above. - - This option can be used with wdt2 (watchdog1) only. - - When read, the current status of the boot code selection is - shown. When written with any non-zero value, it clears - the boot code selection and the timeout counter, which results - in chipselect reset for AST2400/AST2500. +What: /sys/class/watchdog/watchdogn/bootstatus +Date: August 2015 +Contact: Wim Van Sebroeck +Description: + It is a read only file. It contains status of the watchdog + device at boot. It is equivalent to WDIOC_GETBOOTSTATUS of + ioctl interface. + +What: /sys/class/watchdog/watchdogn/options +Date: April 2023 +Contact: Thomas Weißschuh +Description: + It is a read only file. It contains options of watchdog device. + +What: /sys/class/watchdog/watchdogn/fw_version +Date: April 2023 +Contact: Thomas Weißschuh +Description: + It is a read only file. It contains firmware version of + watchdog device. + +What: /sys/class/watchdog/watchdogn/identity +Date: August 2015 +Contact: Wim Van Sebroeck +Description: + It is a read only file. It contains identity string of + watchdog device. + +What: /sys/class/watchdog/watchdogn/nowayout +Date: August 2015 +Contact: Wim Van Sebroeck +Description: + It is a read/write file. While reading, it gives '1' + if the device has the nowayout feature set, otherwise + it gives '0'. Writing a '1' to the file enables the + nowayout feature. Once set, the nowayout feature + cannot be disabled, so writing a '0' either has no + effect (if the feature was already disabled) or + results in a permission error. + +What: /sys/class/watchdog/watchdogn/state +Date: August 2015 +Contact: Wim Van Sebroeck +Description: + It is a read only file. It gives active/inactive status of + watchdog device. + +What: /sys/class/watchdog/watchdogn/status +Date: August 2015 +Contact: Wim Van Sebroeck +Description: + It is a read only file. It contains watchdog device's + internal status bits. It is equivalent to WDIOC_GETSTATUS + of ioctl interface. + +What: /sys/class/watchdog/watchdogn/timeleft +Date: August 2015 +Contact: Wim Van Sebroeck +Description: + It is a read only file. It contains value of time left for + reset generation. It is equivalent to WDIOC_GETTIMELEFT of + ioctl interface. + +What: /sys/class/watchdog/watchdogn/timeout +Date: August 2015 +Contact: Wim Van Sebroeck +Description: + It is a read only file. It is read to know about current + value of timeout programmed. + +What: /sys/class/watchdog/watchdogn/pretimeout +Date: December 2016 +Contact: Wim Van Sebroeck +Description: + It is a read only file. It specifies the time in seconds before + timeout when the pretimeout interrupt is delivered. Pretimeout + is an optional feature. + +What: /sys/class/watchdog/watchdogn/pretimeout_avaialable_governors +Date: February 2017 +Contact: Wim Van Sebroeck +Description: + It is a read only file. It shows the pretimeout governors + available for this watchdog. + +What: /sys/class/watchdog/watchdogn/pretimeout_governor +Date: February 2017 +Contact: Wim Van Sebroeck +Description: + It is a read/write file. When read, the currently assigned + pretimeout governor is returned. When written, it sets + the pretimeout governor. + +What: /sys/class/watchdog/watchdog1/access_cs0 +Date: August 2019 +Contact: Ivan Mikhaylov , + Alexander Amelkin +Description: + It is a read/write file. This attribute exists only if the + system has booted from the alternate flash chip due to + expiration of a watchdog timer of AST2400/AST2500 when + alternate boot function was enabled with 'aspeed,alt-boot' + devicetree option for that watchdog or with an appropriate + h/w strapping (for WDT2 only). + + At alternate flash the 'access_cs0' sysfs node provides: + + ast2400: + a way to get access to the primary SPI flash + chip at CS0 after booting from the alternate + chip at CS1. + ast2500: + a way to restore the normal address mapping + from (CS0->CS1, CS1->CS0) to (CS0->CS0, + CS1->CS1). + + Clearing the boot code selection and timeout counter also + resets to the initial state the chip select line mapping. When + the SoC is in normal mapping state (i.e. booted from CS0), + clearing those bits does nothing for both versions of the SoC. + For alternate boot mode (booted from CS1 due to wdt2 + expiration) the behavior differs as described above. + + This option can be used with wdt2 (watchdog1) only. + + When read, the current status of the boot code selection is + shown. When written with any non-zero value, it clears + the boot code selection and the timeout counter, which results + in chipselect reset for AST2400/AST2500. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-platform-ACPI-TAD b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-platform-ACPI-TAD index cba8f2baf..bc44bc903 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-platform-ACPI-TAD +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-platform-ACPI-TAD @@ -1,117 +1,117 @@ - ACPI Time and Alarm (TAD) device attributes. - -What: /sys/bus/platform/devices/ACPI000E:00/caps -Date: March 2018 -Contact: Rafael J. Wysocki -Description: - (RO) Hexadecimal bitmask of the TAD attributes are reported by - the platform firmware (see ACPI 6.2, section 9.18.2): - - ======= ====================================================== - BIT(0): AC wakeup implemented if set - BIT(1): DC wakeup implemented if set - BIT(2): Get/set real time features implemented if set - BIT(3): Real time accuracy in milliseconds if set - BIT(4): Correct status reported for wakeups from S4/S5 if set - BIT(5): The AC timer wakes up from S4 if set - BIT(6): The AC timer wakes up from S5 if set - BIT(7): The DC timer wakes up from S4 if set - BIT(8): The DC timer wakes up from S5 if set - ======= ====================================================== - - The other bits are reserved. - -What: /sys/bus/platform/devices/ACPI000E:00/ac_alarm -Date: March 2018 -Contact: Rafael J. Wysocki -Description: - (RW) The AC alarm timer value. - - Reads return the current AC alarm timer value in seconds or - "disabled", if the AC alarm is not set to wake up the system. - - Write a new AC alarm timer value in seconds or "disabled" to it - to set the AC alarm timer or to disable it, respectively. - - If the AC alarm timer is set through this attribute and it - expires, it will immediately wake up the system from the S3 - sleep state (and from S4/S5 too if supported) until its status - is explicitly cleared via the ac_status attribute. - -What: /sys/bus/platform/devices/ACPI000E:00/ac_policy -Date: March 2018 -Contact: Rafael J. Wysocki -Description: - (RW) The AC alarm expired timer wake policy (see ACPI 6.2, - Section 9.18 for details). - - Reads return the current expired timer wake delay for the AC - alarm timer or "never", if the policy is to discard AC timer - wakeups if the system is on DC power. - - Write a new expired timer wake delay for the AC alarm timer in - seconds or "never" to it to set the expired timer wake delay for - the AC alarm timer or to set its expired wake policy to discard - wakeups if the system is on DC power, respectively. - -What: /sys/bus/platform/devices/ACPI000E:00/ac_status -Date: March 2018 -Contact: Rafael J. Wysocki -Description: - (RW) The AC alarm status. - - Reads return a hexadecimal bitmask representing the AC alarm - timer status with the following meaning of bits (see ACPI 6.2, - Section 9.18.5): - - ======= ====================================================== - Bit(0): The timer has expired if set. - Bit(1): The timer has woken up the system from a sleep state - (S3 or S4/S5 if supported) if set. - ======= ====================================================== - - The other bits are reserved. - - Reads also cause the AC alarm timer status to be reset. - - Another way to reset the status of the AC alarm timer is to - write (the number) 0 to this file. - - If the status return value indicates that the timer has expired, - it will immediately wake up the system from the S3 sleep state - (and from S4/S5 too if supported) until its status is explicitly - cleared through this attribute. - -What: /sys/bus/platform/devices/ACPI000E:00/dc_alarm -Date: March 2018 -Contact: Rafael J. Wysocki -Description: - (RW,optional) The DC alarm timer value. - - This attribute is only present if the TAD supports a separate - DC timer. - - It is analogous to the ac_alarm attribute. - -What: /sys/bus/platform/devices/ACPI000E:00/dc_policy -Date: March 2018 -Contact: Rafael J. Wysocki -Description: - (RW,optional) The DC alarm expired timer wake policy. - - This attribute is only present if the TAD supports a separate - DC timer. - - It is analogous to the ac_policy attribute. - -What: /sys/bus/platform/devices/ACPI000E:00/dc_status -Date: March 2018 -Contact: Rafael J. Wysocki - -Description: - (RW,optional) The DC alarm status. - - This attribute is only present if the TAD supports a separate - DC timer. - - It is analogous to the ac_status attribute. + ACPI Time and Alarm (TAD) device attributes. + +What: /sys/bus/platform/devices/ACPI000E:00/caps +Date: March 2018 +Contact: Rafael J. Wysocki +Description: + (RO) Hexadecimal bitmask of the TAD attributes are reported by + the platform firmware (see ACPI 6.2, section 9.18.2): + + ======= ====================================================== + BIT(0): AC wakeup implemented if set + BIT(1): DC wakeup implemented if set + BIT(2): Get/set real time features implemented if set + BIT(3): Real time accuracy in milliseconds if set + BIT(4): Correct status reported for wakeups from S4/S5 if set + BIT(5): The AC timer wakes up from S4 if set + BIT(6): The AC timer wakes up from S5 if set + BIT(7): The DC timer wakes up from S4 if set + BIT(8): The DC timer wakes up from S5 if set + ======= ====================================================== + + The other bits are reserved. + +What: /sys/bus/platform/devices/ACPI000E:00/ac_alarm +Date: March 2018 +Contact: Rafael J. Wysocki +Description: + (RW) The AC alarm timer value. + + Reads return the current AC alarm timer value in seconds or + "disabled", if the AC alarm is not set to wake up the system. + + Write a new AC alarm timer value in seconds or "disabled" to it + to set the AC alarm timer or to disable it, respectively. + + If the AC alarm timer is set through this attribute and it + expires, it will immediately wake up the system from the S3 + sleep state (and from S4/S5 too if supported) until its status + is explicitly cleared via the ac_status attribute. + +What: /sys/bus/platform/devices/ACPI000E:00/ac_policy +Date: March 2018 +Contact: Rafael J. Wysocki +Description: + (RW) The AC alarm expired timer wake policy (see ACPI 6.2, + Section 9.18 for details). + + Reads return the current expired timer wake delay for the AC + alarm timer or "never", if the policy is to discard AC timer + wakeups if the system is on DC power. + + Write a new expired timer wake delay for the AC alarm timer in + seconds or "never" to it to set the expired timer wake delay for + the AC alarm timer or to set its expired wake policy to discard + wakeups if the system is on DC power, respectively. + +What: /sys/bus/platform/devices/ACPI000E:00/ac_status +Date: March 2018 +Contact: Rafael J. Wysocki +Description: + (RW) The AC alarm status. + + Reads return a hexadecimal bitmask representing the AC alarm + timer status with the following meaning of bits (see ACPI 6.2, + Section 9.18.5): + + ======= ====================================================== + Bit(0): The timer has expired if set. + Bit(1): The timer has woken up the system from a sleep state + (S3 or S4/S5 if supported) if set. + ======= ====================================================== + + The other bits are reserved. + + Reads also cause the AC alarm timer status to be reset. + + Another way to reset the status of the AC alarm timer is to + write (the number) 0 to this file. + + If the status return value indicates that the timer has expired, + it will immediately wake up the system from the S3 sleep state + (and from S4/S5 too if supported) until its status is explicitly + cleared through this attribute. + +What: /sys/bus/platform/devices/ACPI000E:00/dc_alarm +Date: March 2018 +Contact: Rafael J. Wysocki +Description: + (RW,optional) The DC alarm timer value. + + This attribute is only present if the TAD supports a separate + DC timer. + + It is analogous to the ac_alarm attribute. + +What: /sys/bus/platform/devices/ACPI000E:00/dc_policy +Date: March 2018 +Contact: Rafael J. Wysocki +Description: + (RW,optional) The DC alarm expired timer wake policy. + + This attribute is only present if the TAD supports a separate + DC timer. + + It is analogous to the ac_policy attribute. + +What: /sys/bus/platform/devices/ACPI000E:00/dc_status +Date: March 2018 +Contact: Rafael J. Wysocki + +Description: + (RW,optional) The DC alarm status. + + This attribute is only present if the TAD supports a separate + DC timer. + + It is analogous to the ac_status attribute. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs index 7ab7c5749..166634082 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs @@ -1,81 +1,81 @@ -What: /sys/devices/platform/HISI04Bx:00/chipX/all_linked -What: /sys/devices/platform/HISI04Bx:00/chipX/linked_full_lane -What: /sys/devices/platform/HISI04Bx:00/chipX/crc_err_cnt -Date: November 2023 -KernelVersion: 6.6 -Contact: Huisong Li -Description: - The /sys/devices/platform/HISI04Bx:00/chipX/ directory - contains read-only attributes exposing some summarization - information of all HCCS ports under a specified chip. - The X in 'chipX' indicates the Xth chip on platform. - - There are following attributes in this directory: - - ================= ==== ========================================= - all_linked: (RO) if all enabled ports on this chip are - linked (bool). - linked_full_lane: (RO) if all linked ports on this chip are full - lane (bool). - crc_err_cnt: (RO) total CRC err count for all ports on this - chip. - ================= ==== ========================================= - -What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/all_linked -What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/linked_full_lane -What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/crc_err_cnt -Date: November 2023 -KernelVersion: 6.6 -Contact: Huisong Li -Description: - The /sys/devices/platform/HISI04Bx:00/chipX/dieY/ directory - contains read-only attributes exposing some summarization - information of all HCCS ports under a specified die. - The Y in 'dieY' indicates the hardware id of the die on chip who - has chip id X. - - There are following attributes in this directory: - - ================= ==== ========================================= - all_linked: (RO) if all enabled ports on this die are - linked (bool). - linked_full_lane: (RO) if all linked ports on this die are full - lane (bool). - crc_err_cnt: (RO) total CRC err count for all ports on this - die. - ================= ==== ========================================= - -What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/type -What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/lane_mode -What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/enable -What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/cur_lane_num -What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/link_fsm -What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/lane_mask -What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/crc_err_cnt -Date: November 2023 -KernelVersion: 6.6 -Contact: Huisong Li -Description: - The /sys/devices/platform/HISI04Bx/chipX/dieX/hccsN/ directory - contains read-only attributes exposing information about - a HCCS port. The N value in 'hccsN' indicates this port id. - The X in 'chipX' indicates the ID of the chip to which the - HCCS port belongs. For example, X ranges from to 'n - 1' if the - chip number on platform is n. - The Y in 'dieY' indicates the hardware id of the die to which - the hccs port belongs. - Note: type, lane_mode and enable are fixed attributes on running - platform. - - The HCCS port have the following attributes: - - ============= ==== ============================================= - type: (RO) port type (string), e.g. HCCS-v1 -> H32 - lane_mode: (RO) the lane mode of this port (string), e.g. x8 - enable: (RO) indicate if this port is enabled (bool). - cur_lane_num: (RO) current lane number of this port. - link_fsm: (RO) link finite state machine of this port. - lane_mask: (RO) current lane mask of this port, every bit - indicates a lane. - crc_err_cnt: (RO) CRC err count on this port. - ============= ==== ============================================= +What: /sys/devices/platform/HISI04Bx:00/chipX/all_linked +What: /sys/devices/platform/HISI04Bx:00/chipX/linked_full_lane +What: /sys/devices/platform/HISI04Bx:00/chipX/crc_err_cnt +Date: November 2023 +KernelVersion: 6.6 +Contact: Huisong Li +Description: + The /sys/devices/platform/HISI04Bx:00/chipX/ directory + contains read-only attributes exposing some summarization + information of all HCCS ports under a specified chip. + The X in 'chipX' indicates the Xth chip on platform. + + There are following attributes in this directory: + + ================= ==== ========================================= + all_linked: (RO) if all enabled ports on this chip are + linked (bool). + linked_full_lane: (RO) if all linked ports on this chip are full + lane (bool). + crc_err_cnt: (RO) total CRC err count for all ports on this + chip. + ================= ==== ========================================= + +What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/all_linked +What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/linked_full_lane +What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/crc_err_cnt +Date: November 2023 +KernelVersion: 6.6 +Contact: Huisong Li +Description: + The /sys/devices/platform/HISI04Bx:00/chipX/dieY/ directory + contains read-only attributes exposing some summarization + information of all HCCS ports under a specified die. + The Y in 'dieY' indicates the hardware id of the die on chip who + has chip id X. + + There are following attributes in this directory: + + ================= ==== ========================================= + all_linked: (RO) if all enabled ports on this die are + linked (bool). + linked_full_lane: (RO) if all linked ports on this die are full + lane (bool). + crc_err_cnt: (RO) total CRC err count for all ports on this + die. + ================= ==== ========================================= + +What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/type +What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/lane_mode +What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/enable +What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/cur_lane_num +What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/link_fsm +What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/lane_mask +What: /sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/crc_err_cnt +Date: November 2023 +KernelVersion: 6.6 +Contact: Huisong Li +Description: + The /sys/devices/platform/HISI04Bx/chipX/dieX/hccsN/ directory + contains read-only attributes exposing information about + a HCCS port. The N value in 'hccsN' indicates this port id. + The X in 'chipX' indicates the ID of the chip to which the + HCCS port belongs. For example, X ranges from to 'n - 1' if the + chip number on platform is n. + The Y in 'dieY' indicates the hardware id of the die to which + the hccs port belongs. + Note: type, lane_mode and enable are fixed attributes on running + platform. + + The HCCS port have the following attributes: + + ============= ==== ============================================= + type: (RO) port type (string), e.g. HCCS-v1 -> H32 + lane_mode: (RO) the lane mode of this port (string), e.g. x8 + enable: (RO) indicate if this port is enabled (bool). + cur_lane_num: (RO) current lane number of this port. + link_fsm: (RO) link finite state machine of this port. + lane_mask: (RO) current lane mask of this port, every bit + indicates a lane. + crc_err_cnt: (RO) CRC err count on this port. + ============= ==== ============================================= diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-platform-soc-ipa b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-platform-soc-ipa index 1785cab7c..364b1ba41 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-platform-soc-ipa +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-platform-soc-ipa @@ -1,114 +1,114 @@ -What: /sys/devices/platform/soc@X/XXXXXXX.ipa/ -Date: June 2021 -KernelVersion: v5.14 -Contact: Alex Elder -Description: - The /sys/devices/platform/soc@X/XXXXXXX.ipa/ directory - contains read-only attributes exposing information about - an IPA device. The X values could vary, but are typically - "soc@0/1e40000.ipa". - -What: .../XXXXXXX.ipa/version -Date: June 2021 -KernelVersion: v5.14 -Contact: Alex Elder -Description: - The .../XXXXXXX.ipa/version file contains the IPA hardware - version, as a period-separated set of two or three integers - (e.g., "3.5.1" or "4.2"). - -What: .../XXXXXXX.ipa/feature/ -Date: June 2021 -KernelVersion: v5.14 -Contact: Alex Elder -Description: - The .../XXXXXXX.ipa/feature/ directory contains a set of - attributes describing features implemented by the IPA - hardware. - -What: .../XXXXXXX.ipa/feature/rx_offload -Date: June 2021 -KernelVersion: v5.14 -Contact: Alex Elder -Description: - The .../XXXXXXX.ipa/feature/rx_offload file contains a - string indicating the type of receive checksum offload - that is supported by the hardware. The possible values - are "MAPv4" or "MAPv5". - -What: .../XXXXXXX.ipa/feature/tx_offload -Date: June 2021 -KernelVersion: v5.14 -Contact: Alex Elder -Description: - The .../XXXXXXX.ipa/feature/tx_offload file contains a - string indicating the type of transmit checksum offload - that is supported by the hardware. The possible values - are "MAPv4" or "MAPv5". - -What: .../XXXXXXX.ipa/endpoint_id/ -Date: July 2022 -KernelVersion: v5.19 -Contact: Alex Elder -Description: - The .../XXXXXXX.ipa/endpoint_id/ directory contains - attributes that define IDs associated with IPA - endpoints. The "rx" or "tx" in an endpoint name is - from the perspective of the AP. An endpoint ID is a - small unsigned integer. - -What: .../XXXXXXX.ipa/endpoint_id/modem_rx -Date: July 2022 -KernelVersion: v5.19 -Contact: Alex Elder -Description: - The .../XXXXXXX.ipa/endpoint_id/modem_rx file contains - the ID of the AP endpoint on which packets originating - from the embedded modem are received. - -What: .../XXXXXXX.ipa/endpoint_id/modem_tx -Date: July 2022 -KernelVersion: v5.19 -Contact: Alex Elder -Description: - The .../XXXXXXX.ipa/endpoint_id/modem_tx file contains - the ID of the AP endpoint on which packets destined - for the embedded modem are sent. - -What: .../XXXXXXX.ipa/endpoint_id/monitor_rx -Date: July 2022 -KernelVersion: v5.19 -Contact: Alex Elder -Description: - The .../XXXXXXX.ipa/endpoint_id/monitor_rx file contains - the ID of the AP endpoint on which IPA "monitor" data is - received. The monitor endpoint supplies replicas of - packets that enter the IPA hardware for processing. - Each replicated packet is preceded by a fixed-size "ODL" - header (see .../XXXXXXX.ipa/feature/monitor, above). - Large packets are truncated, to reduce the bandwidth - required to provide the monitor function. - -What: .../XXXXXXX.ipa/modem/ -Date: June 2021 -KernelVersion: v5.14 -Contact: Alex Elder -Description: - The .../XXXXXXX.ipa/modem/ directory contains attributes - describing properties of the modem embedded in the SoC. - -What: .../XXXXXXX.ipa/modem/rx_endpoint_id -Date: June 2021 -KernelVersion: v5.14 -Contact: Alex Elder -Description: - The .../XXXXXXX.ipa/modem/rx_endpoint_id file duplicates - the value found in .../XXXXXXX.ipa/endpoint_id/modem_rx. - -What: .../XXXXXXX.ipa/modem/tx_endpoint_id -Date: June 2021 -KernelVersion: v5.14 -Contact: Alex Elder -Description: - The .../XXXXXXX.ipa/modem/tx_endpoint_id file duplicates - the value found in .../XXXXXXX.ipa/endpoint_id/modem_tx. +What: /sys/devices/platform/soc@X/XXXXXXX.ipa/ +Date: June 2021 +KernelVersion: v5.14 +Contact: Alex Elder +Description: + The /sys/devices/platform/soc@X/XXXXXXX.ipa/ directory + contains read-only attributes exposing information about + an IPA device. The X values could vary, but are typically + "soc@0/1e40000.ipa". + +What: .../XXXXXXX.ipa/version +Date: June 2021 +KernelVersion: v5.14 +Contact: Alex Elder +Description: + The .../XXXXXXX.ipa/version file contains the IPA hardware + version, as a period-separated set of two or three integers + (e.g., "3.5.1" or "4.2"). + +What: .../XXXXXXX.ipa/feature/ +Date: June 2021 +KernelVersion: v5.14 +Contact: Alex Elder +Description: + The .../XXXXXXX.ipa/feature/ directory contains a set of + attributes describing features implemented by the IPA + hardware. + +What: .../XXXXXXX.ipa/feature/rx_offload +Date: June 2021 +KernelVersion: v5.14 +Contact: Alex Elder +Description: + The .../XXXXXXX.ipa/feature/rx_offload file contains a + string indicating the type of receive checksum offload + that is supported by the hardware. The possible values + are "MAPv4" or "MAPv5". + +What: .../XXXXXXX.ipa/feature/tx_offload +Date: June 2021 +KernelVersion: v5.14 +Contact: Alex Elder +Description: + The .../XXXXXXX.ipa/feature/tx_offload file contains a + string indicating the type of transmit checksum offload + that is supported by the hardware. The possible values + are "MAPv4" or "MAPv5". + +What: .../XXXXXXX.ipa/endpoint_id/ +Date: July 2022 +KernelVersion: v5.19 +Contact: Alex Elder +Description: + The .../XXXXXXX.ipa/endpoint_id/ directory contains + attributes that define IDs associated with IPA + endpoints. The "rx" or "tx" in an endpoint name is + from the perspective of the AP. An endpoint ID is a + small unsigned integer. + +What: .../XXXXXXX.ipa/endpoint_id/modem_rx +Date: July 2022 +KernelVersion: v5.19 +Contact: Alex Elder +Description: + The .../XXXXXXX.ipa/endpoint_id/modem_rx file contains + the ID of the AP endpoint on which packets originating + from the embedded modem are received. + +What: .../XXXXXXX.ipa/endpoint_id/modem_tx +Date: July 2022 +KernelVersion: v5.19 +Contact: Alex Elder +Description: + The .../XXXXXXX.ipa/endpoint_id/modem_tx file contains + the ID of the AP endpoint on which packets destined + for the embedded modem are sent. + +What: .../XXXXXXX.ipa/endpoint_id/monitor_rx +Date: July 2022 +KernelVersion: v5.19 +Contact: Alex Elder +Description: + The .../XXXXXXX.ipa/endpoint_id/monitor_rx file contains + the ID of the AP endpoint on which IPA "monitor" data is + received. The monitor endpoint supplies replicas of + packets that enter the IPA hardware for processing. + Each replicated packet is preceded by a fixed-size "ODL" + header (see .../XXXXXXX.ipa/feature/monitor, above). + Large packets are truncated, to reduce the bandwidth + required to provide the monitor function. + +What: .../XXXXXXX.ipa/modem/ +Date: June 2021 +KernelVersion: v5.14 +Contact: Alex Elder +Description: + The .../XXXXXXX.ipa/modem/ directory contains attributes + describing properties of the modem embedded in the SoC. + +What: .../XXXXXXX.ipa/modem/rx_endpoint_id +Date: June 2021 +KernelVersion: v5.14 +Contact: Alex Elder +Description: + The .../XXXXXXX.ipa/modem/rx_endpoint_id file duplicates + the value found in .../XXXXXXX.ipa/endpoint_id/modem_rx. + +What: .../XXXXXXX.ipa/modem/tx_endpoint_id +Date: June 2021 +KernelVersion: v5.14 +Contact: Alex Elder +Description: + The .../XXXXXXX.ipa/modem/tx_endpoint_id file duplicates + the value found in .../XXXXXXX.ipa/endpoint_id/modem_tx. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-platform-trackpoint b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-platform-trackpoint index 4f5b6f2b9..df11901a6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-platform-trackpoint +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-platform-trackpoint @@ -1,115 +1,115 @@ -What: /sys/devices/platform/i8042/.../sensitivity -Date: Aug, 2005 -KernelVersion: 2.6.14 -Contact: linux-input@vger.kernel.org -Description: - (RW) Trackpoint sensitivity. - -What: /sys/devices/platform/i8042/.../intertia -Date: Aug, 2005 -KernelVersion: 2.6.14 -Contact: linux-input@vger.kernel.org -Description: - (RW) Negative inertia factor. High values cause the cursor to - snap backward when the trackpoint is released. - -What: /sys/devices/platform/i8042/.../reach -Date: Aug, 2005 -KernelVersion: 2.6.14 -Contact: linux-input@vger.kernel.org -Description: - (RW) Backup range for z-axis press. - -What: /sys/devices/platform/i8042/.../draghys -Date: Aug, 2005 -KernelVersion: 2.6.14 -Contact: linux-input@vger.kernel.org -Description: - (RW) The drag hysteresis controls how hard it is to drag with - z-axis pressed. - -What: /sys/devices/platform/i8042/.../mindrag -Date: Aug, 2005 -KernelVersion: 2.6.14 -Contact: linux-input@vger.kernel.org -Description: - (RW) Minimum amount of force needed to trigger dragging. - -What: /sys/devices/platform/i8042/.../speed -Date: Aug, 2005 -KernelVersion: 2.6.14 -Contact: linux-input@vger.kernel.org -Description: - (RW) Speed of the trackpoint cursor. - -What: /sys/devices/platform/i8042/.../thresh -Date: Aug, 2005 -KernelVersion: 2.6.14 -Contact: linux-input@vger.kernel.org -Description: - (RW) Minimum value for z-axis force required to trigger a press - or release, relative to the running average. - -What: /sys/devices/platform/i8042/.../upthresh -Date: Aug, 2005 -KernelVersion: 2.6.14 -Contact: linux-input@vger.kernel.org -Description: - (RW) The offset from the running average required to generate a - select (click) on z-axis on release. - -What: /sys/devices/platform/i8042/.../ztime -Date: Aug, 2005 -KernelVersion: 2.6.14 -Contact: linux-input@vger.kernel.org -Description: - (RW) This attribute determines how sharp a press has to be in - order to be recognized. - -What: /sys/devices/platform/i8042/.../jenks -Date: Aug, 2005 -KernelVersion: 2.6.14 -Contact: linux-input@vger.kernel.org -Description: - (RW) Minimum curvature in degrees required to generate a double - click without a release. - -What: /sys/devices/platform/i8042/.../skipback -Date: Aug, 2005 -KernelVersion: 2.6.14 -Contact: linux-input@vger.kernel.org -Description: - (RW) When the skipback bit is set, backup cursor movement during - releases from drags will be suppressed. The default value for - this bit is 0. - -What: /sys/devices/platform/i8042/.../ext_dev -Date: Aug, 2005 -KernelVersion: 2.6.14 -Contact: linux-input@vger.kernel.org -Description: - (RW) Disable (0) or enable (1) external pointing device. - -What: /sys/devices/platform/i8042/.../press_to_select -Date: Aug, 2005 -KernelVersion: 2.6.14 -Contact: linux-input@vger.kernel.org -Description: - (RW) Writing a value of 1 to this file will enable the Press to - Select functions like tapping the control stick to simulate a - left click, and writing 0 will disable it. - -What: /sys/devices/platform/i8042/.../drift_time -Date: Dec, 2014 -KernelVersion: 3.19 -Contact: linux-input@vger.kernel.org -Description: - (RW) This parameter controls the period of time to test for a - ‘hands off’ condition (i.e. when no force is applied) before a - drift (noise) calibration occurs. - - IBM Trackpoints have a feature to compensate for drift by - recalibrating themselves periodically. By default, if for 0.5 - seconds there is no change in position, it's used as the new - zero. This duration is too low. Often, the calibration happens - when the trackpoint is in fact being used. +What: /sys/devices/platform/i8042/.../sensitivity +Date: Aug, 2005 +KernelVersion: 2.6.14 +Contact: linux-input@vger.kernel.org +Description: + (RW) Trackpoint sensitivity. + +What: /sys/devices/platform/i8042/.../intertia +Date: Aug, 2005 +KernelVersion: 2.6.14 +Contact: linux-input@vger.kernel.org +Description: + (RW) Negative inertia factor. High values cause the cursor to + snap backward when the trackpoint is released. + +What: /sys/devices/platform/i8042/.../reach +Date: Aug, 2005 +KernelVersion: 2.6.14 +Contact: linux-input@vger.kernel.org +Description: + (RW) Backup range for z-axis press. + +What: /sys/devices/platform/i8042/.../draghys +Date: Aug, 2005 +KernelVersion: 2.6.14 +Contact: linux-input@vger.kernel.org +Description: + (RW) The drag hysteresis controls how hard it is to drag with + z-axis pressed. + +What: /sys/devices/platform/i8042/.../mindrag +Date: Aug, 2005 +KernelVersion: 2.6.14 +Contact: linux-input@vger.kernel.org +Description: + (RW) Minimum amount of force needed to trigger dragging. + +What: /sys/devices/platform/i8042/.../speed +Date: Aug, 2005 +KernelVersion: 2.6.14 +Contact: linux-input@vger.kernel.org +Description: + (RW) Speed of the trackpoint cursor. + +What: /sys/devices/platform/i8042/.../thresh +Date: Aug, 2005 +KernelVersion: 2.6.14 +Contact: linux-input@vger.kernel.org +Description: + (RW) Minimum value for z-axis force required to trigger a press + or release, relative to the running average. + +What: /sys/devices/platform/i8042/.../upthresh +Date: Aug, 2005 +KernelVersion: 2.6.14 +Contact: linux-input@vger.kernel.org +Description: + (RW) The offset from the running average required to generate a + select (click) on z-axis on release. + +What: /sys/devices/platform/i8042/.../ztime +Date: Aug, 2005 +KernelVersion: 2.6.14 +Contact: linux-input@vger.kernel.org +Description: + (RW) This attribute determines how sharp a press has to be in + order to be recognized. + +What: /sys/devices/platform/i8042/.../jenks +Date: Aug, 2005 +KernelVersion: 2.6.14 +Contact: linux-input@vger.kernel.org +Description: + (RW) Minimum curvature in degrees required to generate a double + click without a release. + +What: /sys/devices/platform/i8042/.../skipback +Date: Aug, 2005 +KernelVersion: 2.6.14 +Contact: linux-input@vger.kernel.org +Description: + (RW) When the skipback bit is set, backup cursor movement during + releases from drags will be suppressed. The default value for + this bit is 0. + +What: /sys/devices/platform/i8042/.../ext_dev +Date: Aug, 2005 +KernelVersion: 2.6.14 +Contact: linux-input@vger.kernel.org +Description: + (RW) Disable (0) or enable (1) external pointing device. + +What: /sys/devices/platform/i8042/.../press_to_select +Date: Aug, 2005 +KernelVersion: 2.6.14 +Contact: linux-input@vger.kernel.org +Description: + (RW) Writing a value of 1 to this file will enable the Press to + Select functions like tapping the control stick to simulate a + left click, and writing 0 will disable it. + +What: /sys/devices/platform/i8042/.../drift_time +Date: Dec, 2014 +KernelVersion: 3.19 +Contact: linux-input@vger.kernel.org +Description: + (RW) This parameter controls the period of time to test for a + ‘hands off’ condition (i.e. when no force is applied) before a + drift (noise) calibration occurs. + + IBM Trackpoints have a feature to compensate for drift by + recalibrating themselves periodically. By default, if for 0.5 + seconds there is no change in position, it's used as the new + zero. This duration is too low. Often, the calibration happens + when the trackpoint is in fact being used. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-soc b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-soc index b441a2402..5269808ec 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-soc +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-devices-soc @@ -1,95 +1,95 @@ -What: /sys/devices/socX -Date: January 2012 -contact: Lee Jones -Description: - The /sys/devices/ directory contains a sub-directory for each - System-on-Chip (SoC) device on a running platform. Information - regarding each SoC can be obtained by reading sysfs files. This - functionality is only available if implemented by the platform. - - The directory created for each SoC will also house information - about devices which are commonly contained in /sys/devices/platform. - It has been agreed that if an SoC device exists, its supported - devices would be better suited to appear as children of that SoC. - -What: /sys/devices/socX/machine -Date: January 2012 -contact: Lee Jones -Description: - Read-only attribute common to all SoCs. Contains the SoC machine - name (e.g. Ux500). - -What: /sys/devices/socX/family -Date: January 2012 -contact: Lee Jones -Description: - Read-only attribute common to all SoCs. Contains SoC family name - (e.g. DB8500). - - On many of ARM based silicon with SMCCC v1.2+ compliant firmware - this will contain the JEDEC JEP106 manufacturer’s identification - code. The format is "jep106:XXYY" where XX is identity code and - YY is continuation code. - - This manufacturer’s identification code is defined by one - or more eight (8) bit fields, each consisting of seven (7) - data bits plus one (1) odd parity bit. It is a single field, - limiting the possible number of vendors to 126. To expand - the maximum number of identification codes, a continuation - scheme has been defined. - - The specified mechanism is that an identity code of 0x7F - represents the "continuation code" and implies the presence - of an additional identity code field, and this mechanism - may be extended to multiple continuation codes followed - by the manufacturer's identity code. - - For example, ARM has identity code 0x7F 0x7F 0x7F 0x7F 0x3B, - which is code 0x3B on the fifth 'page'. This is shortened - as JEP106 identity code of 0x3B and a continuation code of - 0x4 to represent the four continuation codes preceding the - identity code. - -What: /sys/devices/socX/serial_number -Date: January 2019 -contact: Bjorn Andersson -Description: - Read-only attribute supported by most SoCs. Contains the SoC's - serial number, if available. - -What: /sys/devices/socX/soc_id -Date: January 2012 -contact: Lee Jones -Description: - Read-only attribute supported by most SoCs. In the case of - ST-Ericsson's chips this contains the SoC serial number. - - On many of ARM based silicon with SMCCC v1.2+ compliant firmware - this will contain the SOC ID appended to the family attribute - to ensure there is no conflict in this namespace across various - vendors. The format is "jep106:XXYY:ZZZZ" where XX is identity - code, YY is continuation code and ZZZZ is the SOC ID. - -What: /sys/devices/socX/revision -Date: January 2012 -contact: Lee Jones -Description: - Read-only attribute supported by most SoCs. Contains the SoC's - manufacturing revision number. - -What: /sys/devices/socX/process -Date: January 2012 -contact: Lee Jones -Description: - Read-only attribute supported ST-Ericsson's silicon. Contains the - the process by which the silicon chip was manufactured. - -What: /sys/bus/soc -Date: January 2012 -contact: Lee Jones -Description: - The /sys/bus/soc/ directory contains the usual sub-folders - expected under most buses. /sys/bus/soc/devices is of particular - interest, as it contains a symlink for each SoC device found on - the system. Each symlink points back into the aforementioned - /sys/devices/socX devices. +What: /sys/devices/socX +Date: January 2012 +contact: Lee Jones +Description: + The /sys/devices/ directory contains a sub-directory for each + System-on-Chip (SoC) device on a running platform. Information + regarding each SoC can be obtained by reading sysfs files. This + functionality is only available if implemented by the platform. + + The directory created for each SoC will also house information + about devices which are commonly contained in /sys/devices/platform. + It has been agreed that if an SoC device exists, its supported + devices would be better suited to appear as children of that SoC. + +What: /sys/devices/socX/machine +Date: January 2012 +contact: Lee Jones +Description: + Read-only attribute common to all SoCs. Contains the SoC machine + name (e.g. Ux500). + +What: /sys/devices/socX/family +Date: January 2012 +contact: Lee Jones +Description: + Read-only attribute common to all SoCs. Contains SoC family name + (e.g. DB8500). + + On many of ARM based silicon with SMCCC v1.2+ compliant firmware + this will contain the JEDEC JEP106 manufacturer’s identification + code. The format is "jep106:XXYY" where XX is identity code and + YY is continuation code. + + This manufacturer’s identification code is defined by one + or more eight (8) bit fields, each consisting of seven (7) + data bits plus one (1) odd parity bit. It is a single field, + limiting the possible number of vendors to 126. To expand + the maximum number of identification codes, a continuation + scheme has been defined. + + The specified mechanism is that an identity code of 0x7F + represents the "continuation code" and implies the presence + of an additional identity code field, and this mechanism + may be extended to multiple continuation codes followed + by the manufacturer's identity code. + + For example, ARM has identity code 0x7F 0x7F 0x7F 0x7F 0x3B, + which is code 0x3B on the fifth 'page'. This is shortened + as JEP106 identity code of 0x3B and a continuation code of + 0x4 to represent the four continuation codes preceding the + identity code. + +What: /sys/devices/socX/serial_number +Date: January 2019 +contact: Bjorn Andersson +Description: + Read-only attribute supported by most SoCs. Contains the SoC's + serial number, if available. + +What: /sys/devices/socX/soc_id +Date: January 2012 +contact: Lee Jones +Description: + Read-only attribute supported by most SoCs. In the case of + ST-Ericsson's chips this contains the SoC serial number. + + On many of ARM based silicon with SMCCC v1.2+ compliant firmware + this will contain the SOC ID appended to the family attribute + to ensure there is no conflict in this namespace across various + vendors. The format is "jep106:XXYY:ZZZZ" where XX is identity + code, YY is continuation code and ZZZZ is the SOC ID. + +What: /sys/devices/socX/revision +Date: January 2012 +contact: Lee Jones +Description: + Read-only attribute supported by most SoCs. Contains the SoC's + manufacturing revision number. + +What: /sys/devices/socX/process +Date: January 2012 +contact: Lee Jones +Description: + Read-only attribute supported ST-Ericsson's silicon. Contains the + the process by which the silicon chip was manufactured. + +What: /sys/bus/soc +Date: January 2012 +contact: Lee Jones +Description: + The /sys/bus/soc/ directory contains the usual sub-folders + expected under most buses. /sys/bus/soc/devices is of particular + interest, as it contains a symlink for each SoC device found on + the system. Each symlink points back into the aforementioned + /sys/devices/socX devices. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-driver-hid-wiimote b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-driver-hid-wiimote index 30a9d8e8c..3bf43d9dc 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-driver-hid-wiimote +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-driver-hid-wiimote @@ -1,85 +1,85 @@ -What: /sys/bus/hid/drivers/wiimote//led1 -What: /sys/bus/hid/drivers/wiimote//led2 -What: /sys/bus/hid/drivers/wiimote//led3 -What: /sys/bus/hid/drivers/wiimote//led4 -Date: July 2011 -KernelVersion: 3.1 -Contact: David Herrmann -Description: Make it possible to set/get current led state. Reading from it - returns 0 if led is off and 1 if it is on. Writing 0 to it - disables the led, writing 1 enables it. - -What: /sys/bus/hid/drivers/wiimote//extension -Date: August 2011 -KernelVersion: 3.2 -Contact: David Herrmann -Description: This file contains the currently connected and initialized - extensions. It can be one of: none, motionp, nunchuck, classic, - motionp+nunchuck, motionp+classic - motionp is the official Nintendo Motion+ extension, nunchuck is - the official Nintendo Nunchuck extension and classic is the - Nintendo Classic Controller extension. The motionp extension can - be combined with the other two. - - Starting with kernel-version 3.11 Motion Plus hotplugging is - supported and if detected, it's no longer reported as static - extension. You will get uevent notifications for the motion-plus - device then. - -What: /sys/bus/hid/drivers/wiimote//devtype -Date: May 2013 -KernelVersion: 3.11 -Contact: David Herrmann -Description: While a device is initialized by the wiimote driver, we perform - a device detection and signal a "change" uevent after it is - done. This file shows the detected device type. "pending" means - that the detection is still ongoing, "unknown" means, that the - device couldn't be detected or loaded. "generic" means, that the - device couldn't be detected but supports basic Wii Remote - features and can be used. - Other strings for each device-type are available and may be - added if new device-specific detections are added. - Currently supported are: - - ============= ======================================= - gen10: First Wii Remote generation - gen20: Second Wii Remote Plus generation - (builtin MP) - balanceboard: Wii Balance Board - ============= ======================================= - -What: /sys/bus/hid/drivers/wiimote//bboard_calib -Date: May 2013 -KernelVersion: 3.11 -Contact: David Herrmann -Description: This attribute is only provided if the device was detected as a - balance board. It provides a single line with 3 calibration - values for all 4 sensors. The values are separated by colons and - are each 2 bytes long (encoded as 4 digit hexadecimal value). - First, 0kg values for all 4 sensors are written, followed by the - 17kg values for all 4 sensors and last the 34kg values for all 4 - sensors. - - Calibration data is already applied by the kernel to all input - values but may be used by user-space to perform other - transformations. - -What: /sys/bus/hid/drivers/wiimote//pro_calib -Date: October 2013 -KernelVersion: 3.13 -Contact: David Herrmann -Description: This attribute is only provided if the device was detected as a - pro-controller. It provides a single line with 4 calibration - values for all 4 analog sticks. Format is: "x1:y1 x2:y2". Data - is prefixed with a +/-. Each value is a signed 16bit number. - Data is encoded as decimal numbers and specifies the offsets of - the analog sticks of the pro-controller. - - Calibration data is already applied by the kernel to all input - values but may be used by user-space to perform other - transformations. - - Calibration data is detected by the kernel during device setup. - You can write "scan\n" into this file to re-trigger calibration. - You can also write data directly in the form "x1:y1 x2:y2" to - set the calibration values manually. +What: /sys/bus/hid/drivers/wiimote//led1 +What: /sys/bus/hid/drivers/wiimote//led2 +What: /sys/bus/hid/drivers/wiimote//led3 +What: /sys/bus/hid/drivers/wiimote//led4 +Date: July 2011 +KernelVersion: 3.1 +Contact: David Herrmann +Description: Make it possible to set/get current led state. Reading from it + returns 0 if led is off and 1 if it is on. Writing 0 to it + disables the led, writing 1 enables it. + +What: /sys/bus/hid/drivers/wiimote//extension +Date: August 2011 +KernelVersion: 3.2 +Contact: David Herrmann +Description: This file contains the currently connected and initialized + extensions. It can be one of: none, motionp, nunchuck, classic, + motionp+nunchuck, motionp+classic + motionp is the official Nintendo Motion+ extension, nunchuck is + the official Nintendo Nunchuck extension and classic is the + Nintendo Classic Controller extension. The motionp extension can + be combined with the other two. + + Starting with kernel-version 3.11 Motion Plus hotplugging is + supported and if detected, it's no longer reported as static + extension. You will get uevent notifications for the motion-plus + device then. + +What: /sys/bus/hid/drivers/wiimote//devtype +Date: May 2013 +KernelVersion: 3.11 +Contact: David Herrmann +Description: While a device is initialized by the wiimote driver, we perform + a device detection and signal a "change" uevent after it is + done. This file shows the detected device type. "pending" means + that the detection is still ongoing, "unknown" means, that the + device couldn't be detected or loaded. "generic" means, that the + device couldn't be detected but supports basic Wii Remote + features and can be used. + Other strings for each device-type are available and may be + added if new device-specific detections are added. + Currently supported are: + + ============= ======================================= + gen10: First Wii Remote generation + gen20: Second Wii Remote Plus generation + (builtin MP) + balanceboard: Wii Balance Board + ============= ======================================= + +What: /sys/bus/hid/drivers/wiimote//bboard_calib +Date: May 2013 +KernelVersion: 3.11 +Contact: David Herrmann +Description: This attribute is only provided if the device was detected as a + balance board. It provides a single line with 3 calibration + values for all 4 sensors. The values are separated by colons and + are each 2 bytes long (encoded as 4 digit hexadecimal value). + First, 0kg values for all 4 sensors are written, followed by the + 17kg values for all 4 sensors and last the 34kg values for all 4 + sensors. + + Calibration data is already applied by the kernel to all input + values but may be used by user-space to perform other + transformations. + +What: /sys/bus/hid/drivers/wiimote//pro_calib +Date: October 2013 +KernelVersion: 3.13 +Contact: David Herrmann +Description: This attribute is only provided if the device was detected as a + pro-controller. It provides a single line with 4 calibration + values for all 4 analog sticks. Format is: "x1:y1 x2:y2". Data + is prefixed with a +/-. Each value is a signed 16bit number. + Data is encoded as decimal numbers and specifies the offsets of + the analog sticks of the pro-controller. + + Calibration data is already applied by the kernel to all input + values but may be used by user-space to perform other + transformations. + + Calibration data is detected by the kernel during device setup. + You can write "scan\n" into this file to re-trigger calibration. + You can also write data directly in the form "x1:y1 x2:y2" to + set the calibration values manually. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-driver-intel-xe-hwmon b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-driver-intel-xe-hwmon index 147cbae7e..d792a56f5 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-driver-intel-xe-hwmon +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-driver-intel-xe-hwmon @@ -1,110 +1,110 @@ -What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/power1_max -Date: September 2023 -KernelVersion: 6.5 -Contact: intel-xe@lists.freedesktop.org -Description: RW. Card reactive sustained (PL1) power limit in microwatts. - - The power controller will throttle the operating frequency - if the power averaged over a window (typically seconds) - exceeds this limit. A read value of 0 means that the PL1 - power limit is disabled, writing 0 disables the - limit. Writing values > 0 and <= TDP will enable the power limit. - - Only supported for particular Intel Xe graphics platforms. - -What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/power1_rated_max -Date: September 2023 -KernelVersion: 6.5 -Contact: intel-xe@lists.freedesktop.org -Description: RO. Card default power limit (default TDP setting). - - Only supported for particular Intel Xe graphics platforms. - - -What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/energy1_input -Date: September 2023 -KernelVersion: 6.5 -Contact: intel-xe@lists.freedesktop.org -Description: RO. Card energy input of device in microjoules. - - Only supported for particular Intel Xe graphics platforms. - -What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/power1_max_interval -Date: October 2023 -KernelVersion: 6.6 -Contact: intel-xe@lists.freedesktop.org -Description: RW. Card sustained power limit interval (Tau in PL1/Tau) in - milliseconds over which sustained power is averaged. - - Only supported for particular Intel Xe graphics platforms. - -What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/power2_max -Date: February 2024 -KernelVersion: 6.8 -Contact: intel-xe@lists.freedesktop.org -Description: RW. Package reactive sustained (PL1) power limit in microwatts. - - The power controller will throttle the operating frequency - if the power averaged over a window (typically seconds) - exceeds this limit. A read value of 0 means that the PL1 - power limit is disabled, writing 0 disables the - limit. Writing values > 0 and <= TDP will enable the power limit. - - Only supported for particular Intel Xe graphics platforms. - -What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/power2_rated_max -Date: February 2024 -KernelVersion: 6.8 -Contact: intel-xe@lists.freedesktop.org -Description: RO. Package default power limit (default TDP setting). - - Only supported for particular Intel Xe graphics platforms. - -What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/power2_crit -Date: February 2024 -KernelVersion: 6.8 -Contact: intel-xe@lists.freedesktop.org -Description: RW. Package reactive critical (I1) power limit in microwatts. - - Package reactive critical (I1) power limit in microwatts is exposed - for client products. The power controller will throttle the - operating frequency if the power averaged over a window exceeds - this limit. - - Only supported for particular Intel Xe graphics platforms. - -What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/curr2_crit -Date: February 2024 -KernelVersion: 6.8 -Contact: intel-xe@lists.freedesktop.org -Description: RW. Package reactive critical (I1) power limit in milliamperes. - - Package reactive critical (I1) power limit in milliamperes is - exposed for server products. The power controller will throttle - the operating frequency if the power averaged over a window - exceeds this limit. - -What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/energy2_input -Date: February 2024 -KernelVersion: 6.8 -Contact: intel-xe@lists.freedesktop.org -Description: RO. Package energy input of device in microjoules. - - Only supported for particular Intel Xe graphics platforms. - -What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/power2_max_interval -Date: February 2024 -KernelVersion: 6.8 -Contact: intel-xe@lists.freedesktop.org -Description: RW. Package sustained power limit interval (Tau in PL1/Tau) in - milliseconds over which sustained power is averaged. - - Only supported for particular Intel Xe graphics platforms. - -What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/in1_input -Date: February 2024 -KernelVersion: 6.8 -Contact: intel-xe@lists.freedesktop.org -Description: RO. Package current voltage in millivolt. - - Only supported for particular Intel Xe graphics platforms. +What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/power1_max +Date: September 2023 +KernelVersion: 6.5 +Contact: intel-xe@lists.freedesktop.org +Description: RW. Card reactive sustained (PL1) power limit in microwatts. + + The power controller will throttle the operating frequency + if the power averaged over a window (typically seconds) + exceeds this limit. A read value of 0 means that the PL1 + power limit is disabled, writing 0 disables the + limit. Writing values > 0 and <= TDP will enable the power limit. + + Only supported for particular Intel Xe graphics platforms. + +What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/power1_rated_max +Date: September 2023 +KernelVersion: 6.5 +Contact: intel-xe@lists.freedesktop.org +Description: RO. Card default power limit (default TDP setting). + + Only supported for particular Intel Xe graphics platforms. + + +What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/energy1_input +Date: September 2023 +KernelVersion: 6.5 +Contact: intel-xe@lists.freedesktop.org +Description: RO. Card energy input of device in microjoules. + + Only supported for particular Intel Xe graphics platforms. + +What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/power1_max_interval +Date: October 2023 +KernelVersion: 6.6 +Contact: intel-xe@lists.freedesktop.org +Description: RW. Card sustained power limit interval (Tau in PL1/Tau) in + milliseconds over which sustained power is averaged. + + Only supported for particular Intel Xe graphics platforms. + +What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/power2_max +Date: February 2024 +KernelVersion: 6.8 +Contact: intel-xe@lists.freedesktop.org +Description: RW. Package reactive sustained (PL1) power limit in microwatts. + + The power controller will throttle the operating frequency + if the power averaged over a window (typically seconds) + exceeds this limit. A read value of 0 means that the PL1 + power limit is disabled, writing 0 disables the + limit. Writing values > 0 and <= TDP will enable the power limit. + + Only supported for particular Intel Xe graphics platforms. + +What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/power2_rated_max +Date: February 2024 +KernelVersion: 6.8 +Contact: intel-xe@lists.freedesktop.org +Description: RO. Package default power limit (default TDP setting). + + Only supported for particular Intel Xe graphics platforms. + +What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/power2_crit +Date: February 2024 +KernelVersion: 6.8 +Contact: intel-xe@lists.freedesktop.org +Description: RW. Package reactive critical (I1) power limit in microwatts. + + Package reactive critical (I1) power limit in microwatts is exposed + for client products. The power controller will throttle the + operating frequency if the power averaged over a window exceeds + this limit. + + Only supported for particular Intel Xe graphics platforms. + +What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/curr2_crit +Date: February 2024 +KernelVersion: 6.8 +Contact: intel-xe@lists.freedesktop.org +Description: RW. Package reactive critical (I1) power limit in milliamperes. + + Package reactive critical (I1) power limit in milliamperes is + exposed for server products. The power controller will throttle + the operating frequency if the power averaged over a window + exceeds this limit. + +What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/energy2_input +Date: February 2024 +KernelVersion: 6.8 +Contact: intel-xe@lists.freedesktop.org +Description: RO. Package energy input of device in microjoules. + + Only supported for particular Intel Xe graphics platforms. + +What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/power2_max_interval +Date: February 2024 +KernelVersion: 6.8 +Contact: intel-xe@lists.freedesktop.org +Description: RW. Package sustained power limit interval (Tau in PL1/Tau) in + milliseconds over which sustained power is averaged. + + Only supported for particular Intel Xe graphics platforms. + +What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon/in1_input +Date: February 2024 +KernelVersion: 6.8 +Contact: intel-xe@lists.freedesktop.org +Description: RO. Package current voltage in millivolt. + + Only supported for particular Intel Xe graphics platforms. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-driver-intel_sdsi b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-driver-intel_sdsi index 018fd4aa8..f8afed127 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-driver-intel_sdsi +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-driver-intel_sdsi @@ -1,90 +1,90 @@ -What: /sys/bus/auxiliary/devices/intel_vsec.sdsi.X -Date: Feb 2022 -KernelVersion: 5.18 -Contact: "David E. Box" -Description: - This directory contains interface files for accessing Intel - On Demand (formerly Software Defined Silicon or SDSi) features - on a CPU. X represents the socket instance (though not the - socket ID). The socket ID is determined by reading the - registers file and decoding it per the specification. - - Some files communicate with On Demand hardware through a - mailbox. Should the operation fail, one of the following error - codes may be returned: - - ========== ===== - Error Code Cause - ========== ===== - EIO General mailbox failure. Log may indicate cause. - EBUSY Mailbox is owned by another agent. - EPERM On Demand capability is not enabled in hardware. - EPROTO Failure in mailbox protocol detected by driver. - See log for details. - EOVERFLOW For provision commands, the size of the data - exceeds what may be written. - ESPIPE Seeking is not allowed. - ETIMEDOUT Failure to complete mailbox transaction in time. - ========== ===== - -What: /sys/bus/auxiliary/devices/intel_vsec.sdsi.X/guid -Date: Feb 2022 -KernelVersion: 5.18 -Contact: "David E. Box" -Description: - (RO) The GUID for the registers file. The GUID identifies - the layout of the registers file in this directory. - Information about the register layouts for a particular GUID - is available at http://github.com/intel/intel-sdsi - -What: /sys/bus/auxiliary/devices/intel_vsec.sdsi.X/registers -Date: Feb 2022 -KernelVersion: 5.18 -Contact: "David E. Box" -Description: - (RO) Contains information needed by applications to provision - a CPU and monitor status information. The layout of this file - is determined by the GUID in this directory. Information about - the layout for a particular GUID is available at - http://github.com/intel/intel-sdsi - -What: /sys/bus/auxiliary/devices/intel_vsec.sdsi.X/provision_akc -Date: Feb 2022 -KernelVersion: 5.18 -Contact: "David E. Box" -Description: - (WO) Used to write an Authentication Key Certificate (AKC) to - the On Demand NVRAM for the CPU. The AKC is used to authenticate - a Capability Activation Payload. Mailbox command. - -What: /sys/bus/auxiliary/devices/intel_vsec.sdsi.X/provision_cap -Date: Feb 2022 -KernelVersion: 5.18 -Contact: "David E. Box" -Description: - (WO) Used to write a Capability Activation Payload (CAP) to the - On Demand NVRAM for the CPU. CAPs are used to activate a given - CPU feature. A CAP is validated by On Demand hardware using a - previously provisioned AKC file. Upon successful authentication, - the CPU configuration is updated. A cold reboot is required to - fully activate the feature. Mailbox command. - -What: /sys/bus/auxiliary/devices/intel_vsec.sdsi.X/meter_certificate -Date: Nov 2022 -KernelVersion: 6.2 -Contact: "David E. Box" -Description: - (RO) Used to read back the current meter certificate for the CPU - from Intel On Demand hardware. The meter certificate contains - utilization metrics of On Demand enabled features. Mailbox - command. - -What: /sys/bus/auxiliary/devices/intel_vsec.sdsi.X/state_certificate -Date: Feb 2022 -KernelVersion: 5.18 -Contact: "David E. Box" -Description: - (RO) Used to read back the current state certificate for the CPU - from On Demand hardware. The state certificate contains - information about the current licenses on the CPU. Mailbox - command. +What: /sys/bus/auxiliary/devices/intel_vsec.sdsi.X +Date: Feb 2022 +KernelVersion: 5.18 +Contact: "David E. Box" +Description: + This directory contains interface files for accessing Intel + On Demand (formerly Software Defined Silicon or SDSi) features + on a CPU. X represents the socket instance (though not the + socket ID). The socket ID is determined by reading the + registers file and decoding it per the specification. + + Some files communicate with On Demand hardware through a + mailbox. Should the operation fail, one of the following error + codes may be returned: + + ========== ===== + Error Code Cause + ========== ===== + EIO General mailbox failure. Log may indicate cause. + EBUSY Mailbox is owned by another agent. + EPERM On Demand capability is not enabled in hardware. + EPROTO Failure in mailbox protocol detected by driver. + See log for details. + EOVERFLOW For provision commands, the size of the data + exceeds what may be written. + ESPIPE Seeking is not allowed. + ETIMEDOUT Failure to complete mailbox transaction in time. + ========== ===== + +What: /sys/bus/auxiliary/devices/intel_vsec.sdsi.X/guid +Date: Feb 2022 +KernelVersion: 5.18 +Contact: "David E. Box" +Description: + (RO) The GUID for the registers file. The GUID identifies + the layout of the registers file in this directory. + Information about the register layouts for a particular GUID + is available at http://github.com/intel/intel-sdsi + +What: /sys/bus/auxiliary/devices/intel_vsec.sdsi.X/registers +Date: Feb 2022 +KernelVersion: 5.18 +Contact: "David E. Box" +Description: + (RO) Contains information needed by applications to provision + a CPU and monitor status information. The layout of this file + is determined by the GUID in this directory. Information about + the layout for a particular GUID is available at + http://github.com/intel/intel-sdsi + +What: /sys/bus/auxiliary/devices/intel_vsec.sdsi.X/provision_akc +Date: Feb 2022 +KernelVersion: 5.18 +Contact: "David E. Box" +Description: + (WO) Used to write an Authentication Key Certificate (AKC) to + the On Demand NVRAM for the CPU. The AKC is used to authenticate + a Capability Activation Payload. Mailbox command. + +What: /sys/bus/auxiliary/devices/intel_vsec.sdsi.X/provision_cap +Date: Feb 2022 +KernelVersion: 5.18 +Contact: "David E. Box" +Description: + (WO) Used to write a Capability Activation Payload (CAP) to the + On Demand NVRAM for the CPU. CAPs are used to activate a given + CPU feature. A CAP is validated by On Demand hardware using a + previously provisioned AKC file. Upon successful authentication, + the CPU configuration is updated. A cold reboot is required to + fully activate the feature. Mailbox command. + +What: /sys/bus/auxiliary/devices/intel_vsec.sdsi.X/meter_certificate +Date: Nov 2022 +KernelVersion: 6.2 +Contact: "David E. Box" +Description: + (RO) Used to read back the current meter certificate for the CPU + from Intel On Demand hardware. The meter certificate contains + utilization metrics of On Demand enabled features. Mailbox + command. + +What: /sys/bus/auxiliary/devices/intel_vsec.sdsi.X/state_certificate +Date: Feb 2022 +KernelVersion: 5.18 +Contact: "David E. Box" +Description: + (RO) Used to read back the current state certificate for the CPU + from On Demand hardware. The state certificate contains + information about the current licenses on the CPU. Mailbox + command. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-firmware-dmi-entries b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-firmware-dmi-entries index e0d964349..b6c23807b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-firmware-dmi-entries +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-firmware-dmi-entries @@ -1,114 +1,114 @@ -What: /sys/firmware/dmi/entries/ -Date: February 2011 -Contact: Mike Waychison -Description: - Many machines' firmware (x86 and arm64) export DMI / - SMBIOS tables to the operating system. Getting at this - information is often valuable to userland, especially in - cases where there are OEM extensions used. - - The kernel itself does not rely on the majority of the - information in these tables being correct. It equally - cannot ensure that the data as exported to userland is - without error either. - - DMI is structured as a large table of entries, where - each entry has a common header indicating the type and - length of the entry, as well as a firmware-provided - 'handle' that is supposed to be unique amongst all - entries. - - Some entries are required by the specification, but many - others are optional. In general though, users should - never expect to find a specific entry type on their - system unless they know for certain what their firmware - is doing. Machine to machine experiences will vary. - - Multiple entries of the same type are allowed. In order - to handle these duplicate entry types, each entry is - assigned by the operating system an 'instance', which is - derived from an entry type's ordinal position. That is - to say, if there are 'N' multiple entries with the same type - 'T' in the DMI tables (adjacent or spread apart, it - doesn't matter), they will be represented in sysfs as - entries "T-0" through "T-(N-1)": - - Example entry directories:: - - /sys/firmware/dmi/entries/17-0 - /sys/firmware/dmi/entries/17-1 - /sys/firmware/dmi/entries/17-2 - /sys/firmware/dmi/entries/17-3 - ... - - Instance numbers are used in lieu of the firmware - assigned entry handles as the kernel itself makes no - guarantees that handles as exported are unique, and - there are likely firmware images that get this wrong in - the wild. - - Each DMI entry in sysfs has the common header values - exported as attributes: - - ======== ================================================= - handle The 16bit 'handle' that is assigned to this - entry by the firmware. This handle may be - referred to by other entries. - length The length of the entry, as presented in the - entry itself. Note that this is _not the - total count of bytes associated with the - entry. This value represents the length of - the "formatted" portion of the entry. This - "formatted" region is sometimes followed by - the "unformatted" region composed of nul - terminated strings, with termination signalled - by a two nul characters in series. - raw The raw bytes of the entry. This includes the - "formatted" portion of the entry, the - "unformatted" strings portion of the entry, - and the two terminating nul characters. - type The type of the entry. This value is the same - as found in the directory name. It indicates - how the rest of the entry should be interpreted. - instance The instance ordinal of the entry for the - given type. This value is the same as found - in the parent directory name. - position The ordinal position (zero-based) of the entry - within the entirety of the DMI entry table. - ======== ================================================= - - **Entry Specialization** - - Some entry types may have other information available in - sysfs. Not all types are specialized. - - **Type 15 - System Event Log** - - This entry allows the firmware to export a log of - events the system has taken. This information is - typically backed by nvram, but the implementation - details are abstracted by this table. This entry's data - is exported in the directory:: - - /sys/firmware/dmi/entries/15-0/system_event_log - - and has the following attributes (documented in the - SMBIOS / DMI specification under "System Event Log (Type 15)": - - - area_length - - header_start_offset - - data_start_offset - - access_method - - status - - change_token - - access_method_address - - header_format - - per_log_type_descriptor_length - - type_descriptors_supported_count - - As well, the kernel exports the binary attribute: - - ============= ==================================== - raw_event_log The raw binary bits of the event log - as described by the DMI entry. - ============= ==================================== +What: /sys/firmware/dmi/entries/ +Date: February 2011 +Contact: Mike Waychison +Description: + Many machines' firmware (x86 and arm64) export DMI / + SMBIOS tables to the operating system. Getting at this + information is often valuable to userland, especially in + cases where there are OEM extensions used. + + The kernel itself does not rely on the majority of the + information in these tables being correct. It equally + cannot ensure that the data as exported to userland is + without error either. + + DMI is structured as a large table of entries, where + each entry has a common header indicating the type and + length of the entry, as well as a firmware-provided + 'handle' that is supposed to be unique amongst all + entries. + + Some entries are required by the specification, but many + others are optional. In general though, users should + never expect to find a specific entry type on their + system unless they know for certain what their firmware + is doing. Machine to machine experiences will vary. + + Multiple entries of the same type are allowed. In order + to handle these duplicate entry types, each entry is + assigned by the operating system an 'instance', which is + derived from an entry type's ordinal position. That is + to say, if there are 'N' multiple entries with the same type + 'T' in the DMI tables (adjacent or spread apart, it + doesn't matter), they will be represented in sysfs as + entries "T-0" through "T-(N-1)": + + Example entry directories:: + + /sys/firmware/dmi/entries/17-0 + /sys/firmware/dmi/entries/17-1 + /sys/firmware/dmi/entries/17-2 + /sys/firmware/dmi/entries/17-3 + ... + + Instance numbers are used in lieu of the firmware + assigned entry handles as the kernel itself makes no + guarantees that handles as exported are unique, and + there are likely firmware images that get this wrong in + the wild. + + Each DMI entry in sysfs has the common header values + exported as attributes: + + ======== ================================================= + handle The 16bit 'handle' that is assigned to this + entry by the firmware. This handle may be + referred to by other entries. + length The length of the entry, as presented in the + entry itself. Note that this is _not the + total count of bytes associated with the + entry. This value represents the length of + the "formatted" portion of the entry. This + "formatted" region is sometimes followed by + the "unformatted" region composed of nul + terminated strings, with termination signalled + by a two nul characters in series. + raw The raw bytes of the entry. This includes the + "formatted" portion of the entry, the + "unformatted" strings portion of the entry, + and the two terminating nul characters. + type The type of the entry. This value is the same + as found in the directory name. It indicates + how the rest of the entry should be interpreted. + instance The instance ordinal of the entry for the + given type. This value is the same as found + in the parent directory name. + position The ordinal position (zero-based) of the entry + within the entirety of the DMI entry table. + ======== ================================================= + + **Entry Specialization** + + Some entry types may have other information available in + sysfs. Not all types are specialized. + + **Type 15 - System Event Log** + + This entry allows the firmware to export a log of + events the system has taken. This information is + typically backed by nvram, but the implementation + details are abstracted by this table. This entry's data + is exported in the directory:: + + /sys/firmware/dmi/entries/15-0/system_event_log + + and has the following attributes (documented in the + SMBIOS / DMI specification under "System Event Log (Type 15)": + + - area_length + - header_start_offset + - data_start_offset + - access_method + - status + - change_token + - access_method_address + - header_format + - per_log_type_descriptor_length + - type_descriptors_supported_count + + As well, the kernel exports the binary attribute: + + ============= ==================================== + raw_event_log The raw binary bits of the event log + as described by the DMI entry. + ============= ==================================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-firmware-qemu_fw_cfg b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-firmware-qemu_fw_cfg index 4d3438ec5..54d1bfd0d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-firmware-qemu_fw_cfg +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-firmware-qemu_fw_cfg @@ -1,103 +1,103 @@ -What: /sys/firmware/qemu_fw_cfg/ -Date: August 2015 -Contact: Gabriel Somlo -Description: - Several different architectures supported by QEMU (x86, arm, - sun4*, ppc/mac) are provisioned with a firmware configuration - (fw_cfg) device, originally intended as a way for the host to - provide configuration data to the guest firmware. Starting - with QEMU v2.4, arbitrary fw_cfg file entries may be specified - by the user on the command line, which makes fw_cfg additionally - useful as an out-of-band, asynchronous mechanism for providing - configuration data to the guest userspace. - - The authoritative guest-side hardware interface documentation - to the fw_cfg device can be found in "docs/specs/fw_cfg.rst" - in the QEMU source tree, or online at: - https://qemu-project.gitlab.io/qemu/specs/fw_cfg.html - - **SysFS fw_cfg Interface** - - The fw_cfg sysfs interface described in this document is only - intended to display discoverable blobs (i.e., those registered - with the file directory), as there is no way to determine the - presence or size of "legacy" blobs (with selector keys between - 0x0002 and 0x0018) programmatically. - - All fw_cfg information is shown under: - - /sys/firmware/qemu_fw_cfg/ - - The only legacy blob displayed is the fw_cfg device revision: - - /sys/firmware/qemu_fw_cfg/rev - - **Discoverable fw_cfg blobs by selector key** - - All discoverable blobs listed in the fw_cfg file directory are - displayed as entries named after their unique selector key - value, e.g.: - - /sys/firmware/qemu_fw_cfg/by_key/32 - /sys/firmware/qemu_fw_cfg/by_key/33 - /sys/firmware/qemu_fw_cfg/by_key/34 - ... - - Each such fw_cfg sysfs entry has the following values exported - as attributes: - - ==== ==================================================== - name The 56-byte nul-terminated ASCII string used as the - blob's 'file name' in the fw_cfg directory. - size The length of the blob, as given in the fw_cfg - directory. - key The value of the blob's selector key as given in the - fw_cfg directory. This value is the same as used in - the parent directory name. - raw The raw bytes of the blob, obtained by selecting the - entry via the control register, and reading a number - of bytes equal to the blob size from the data - register. - ==== ==================================================== - - **Listing fw_cfg blobs by file name** - - While the fw_cfg device does not impose any specific naming - convention on the blobs registered in the file directory, - QEMU developers have traditionally used path name semantics - to give each blob a descriptive name. For example:: - - "bootorder" - "genroms/kvmvapic.bin" - "etc/e820" - "etc/boot-fail-wait" - "etc/system-states" - "etc/table-loader" - "etc/acpi/rsdp" - "etc/acpi/tables" - "etc/smbios/smbios-tables" - "etc/smbios/smbios-anchor" - ... - - In addition to the listing by unique selector key described - above, the fw_cfg sysfs driver also attempts to build a tree - of directories matching the path name components of fw_cfg - blob names, ending in symlinks to the by_key entry for each - "basename", as illustrated below (assume current directory is - /sys/firmware):: - - qemu_fw_cfg/by_name/bootorder -> ../by_key/38 - qemu_fw_cfg/by_name/etc/e820 -> ../../by_key/35 - qemu_fw_cfg/by_name/etc/acpi/rsdp -> ../../../by_key/41 - ... - - Construction of the directory tree and symlinks is done on a - "best-effort" basis, as there is no guarantee that components - of fw_cfg blob names are always "well behaved". I.e., there is - the possibility that a symlink (basename) will conflict with - a dirname component of another fw_cfg blob, in which case the - creation of the offending /sys/firmware/qemu_fw_cfg/by_name - entry will be skipped. - - The authoritative list of entries will continue to be found - under the /sys/firmware/qemu_fw_cfg/by_key directory. +What: /sys/firmware/qemu_fw_cfg/ +Date: August 2015 +Contact: Gabriel Somlo +Description: + Several different architectures supported by QEMU (x86, arm, + sun4*, ppc/mac) are provisioned with a firmware configuration + (fw_cfg) device, originally intended as a way for the host to + provide configuration data to the guest firmware. Starting + with QEMU v2.4, arbitrary fw_cfg file entries may be specified + by the user on the command line, which makes fw_cfg additionally + useful as an out-of-band, asynchronous mechanism for providing + configuration data to the guest userspace. + + The authoritative guest-side hardware interface documentation + to the fw_cfg device can be found in "docs/specs/fw_cfg.rst" + in the QEMU source tree, or online at: + https://qemu-project.gitlab.io/qemu/specs/fw_cfg.html + + **SysFS fw_cfg Interface** + + The fw_cfg sysfs interface described in this document is only + intended to display discoverable blobs (i.e., those registered + with the file directory), as there is no way to determine the + presence or size of "legacy" blobs (with selector keys between + 0x0002 and 0x0018) programmatically. + + All fw_cfg information is shown under: + + /sys/firmware/qemu_fw_cfg/ + + The only legacy blob displayed is the fw_cfg device revision: + + /sys/firmware/qemu_fw_cfg/rev + + **Discoverable fw_cfg blobs by selector key** + + All discoverable blobs listed in the fw_cfg file directory are + displayed as entries named after their unique selector key + value, e.g.: + + /sys/firmware/qemu_fw_cfg/by_key/32 + /sys/firmware/qemu_fw_cfg/by_key/33 + /sys/firmware/qemu_fw_cfg/by_key/34 + ... + + Each such fw_cfg sysfs entry has the following values exported + as attributes: + + ==== ==================================================== + name The 56-byte nul-terminated ASCII string used as the + blob's 'file name' in the fw_cfg directory. + size The length of the blob, as given in the fw_cfg + directory. + key The value of the blob's selector key as given in the + fw_cfg directory. This value is the same as used in + the parent directory name. + raw The raw bytes of the blob, obtained by selecting the + entry via the control register, and reading a number + of bytes equal to the blob size from the data + register. + ==== ==================================================== + + **Listing fw_cfg blobs by file name** + + While the fw_cfg device does not impose any specific naming + convention on the blobs registered in the file directory, + QEMU developers have traditionally used path name semantics + to give each blob a descriptive name. For example:: + + "bootorder" + "genroms/kvmvapic.bin" + "etc/e820" + "etc/boot-fail-wait" + "etc/system-states" + "etc/table-loader" + "etc/acpi/rsdp" + "etc/acpi/tables" + "etc/smbios/smbios-tables" + "etc/smbios/smbios-anchor" + ... + + In addition to the listing by unique selector key described + above, the fw_cfg sysfs driver also attempts to build a tree + of directories matching the path name components of fw_cfg + blob names, ending in symlinks to the by_key entry for each + "basename", as illustrated below (assume current directory is + /sys/firmware):: + + qemu_fw_cfg/by_name/bootorder -> ../by_key/38 + qemu_fw_cfg/by_name/etc/e820 -> ../../by_key/35 + qemu_fw_cfg/by_name/etc/acpi/rsdp -> ../../../by_key/41 + ... + + Construction of the directory tree and symlinks is done on a + "best-effort" basis, as there is no guarantee that components + of fw_cfg blob names are always "well behaved". I.e., there is + the possibility that a symlink (basename) will conflict with + a dirname component of another fw_cfg blob, in which case the + creation of the offending /sys/firmware/qemu_fw_cfg/by_name + entry will be skipped. + + The authoritative list of entries will continue to be found + under the /sys/firmware/qemu_fw_cfg/by_key directory. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-fs-ext4 b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-fs-ext4 index 2f05f1105..2edd0a667 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-fs-ext4 +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-fs-ext4 @@ -1,118 +1,118 @@ -What: /sys/fs/ext4//mb_stats -Date: March 2008 -Contact: "Theodore Ts'o" -Description: - Controls whether the multiblock allocator should - collect statistics, which are shown during the unmount. - 1 means to collect statistics, 0 means not to collect - statistics - -What: /sys/fs/ext4//mb_group_prealloc -Date: March 2008 -Contact: "Theodore Ts'o" -Description: - The multiblock allocator will round up allocation - requests to a multiple of this tuning parameter if the - stripe size is not set in the ext4 superblock - -What: /sys/fs/ext4//mb_max_to_scan -Date: March 2008 -Contact: "Theodore Ts'o" -Description: - The maximum number of extents the multiblock allocator - will search to find the best extent - -What: /sys/fs/ext4//mb_min_to_scan -Date: March 2008 -Contact: "Theodore Ts'o" -Description: - The minimum number of extents the multiblock allocator - will search to find the best extent - -What: /sys/fs/ext4//mb_order2_req -Date: March 2008 -Contact: "Theodore Ts'o" -Description: - Tuning parameter which controls the minimum size for - requests (as a power of 2) where the buddy cache is - used - -What: /sys/fs/ext4//mb_stream_req -Date: March 2008 -Contact: "Theodore Ts'o" -Description: - Files which have fewer blocks than this tunable - parameter will have their blocks allocated out of a - block group specific preallocation pool, so that small - files are packed closely together. Each large file - will have its blocks allocated out of its own unique - preallocation pool. - -What: /sys/fs/ext4//inode_readahead_blks -Date: March 2008 -Contact: "Theodore Ts'o" -Description: - Tuning parameter which controls the maximum number of - inode table blocks that ext4's inode table readahead - algorithm will pre-read into the buffer cache - -What: /sys/fs/ext4//delayed_allocation_blocks -Date: March 2008 -Contact: "Theodore Ts'o" -Description: - This file is read-only and shows the number of blocks - that are dirty in the page cache, but which do not - have their location in the filesystem allocated yet. - -What: /sys/fs/ext4//lifetime_write_kbytes -Date: March 2008 -Contact: "Theodore Ts'o" -Description: - This file is read-only and shows the number of kilobytes - of data that have been written to this filesystem since it was - created. - -What: /sys/fs/ext4//session_write_kbytes -Date: March 2008 -Contact: "Theodore Ts'o" -Description: - This file is read-only and shows the number of - kilobytes of data that have been written to this - filesystem since it was mounted. - -What: /sys/fs/ext4//inode_goal -Date: June 2008 -Contact: "Theodore Ts'o" -Description: - Tuning parameter which (if non-zero) controls the goal - inode used by the inode allocator in preference to - all other allocation heuristics. This is intended for - debugging use only, and should be 0 on production - systems. - -What: /sys/fs/ext4//max_writeback_mb_bump -Date: September 2009 -Contact: "Theodore Ts'o" -Description: - The maximum number of megabytes the writeback code will - try to write out before move on to another inode. - -What: /sys/fs/ext4//extent_max_zeroout_kb -Date: August 2012 -Contact: "Theodore Ts'o" -Description: - The maximum number of kilobytes which will be zeroed - out in preference to creating a new uninitialized - extent when manipulating an inode's extent tree. Note - that using a larger value will increase the - variability of time necessary to complete a random - write operation (since a 4k random write might turn - into a much larger write due to the zeroout - operation). - -What: /sys/fs/ext4//journal_task -Date: February 2019 -Contact: "Theodore Ts'o" -Description: - This file is read-only and shows the pid of journal thread in - current pid-namespace or 0 if task is unreachable. +What: /sys/fs/ext4//mb_stats +Date: March 2008 +Contact: "Theodore Ts'o" +Description: + Controls whether the multiblock allocator should + collect statistics, which are shown during the unmount. + 1 means to collect statistics, 0 means not to collect + statistics + +What: /sys/fs/ext4//mb_group_prealloc +Date: March 2008 +Contact: "Theodore Ts'o" +Description: + The multiblock allocator will round up allocation + requests to a multiple of this tuning parameter if the + stripe size is not set in the ext4 superblock + +What: /sys/fs/ext4//mb_max_to_scan +Date: March 2008 +Contact: "Theodore Ts'o" +Description: + The maximum number of extents the multiblock allocator + will search to find the best extent + +What: /sys/fs/ext4//mb_min_to_scan +Date: March 2008 +Contact: "Theodore Ts'o" +Description: + The minimum number of extents the multiblock allocator + will search to find the best extent + +What: /sys/fs/ext4//mb_order2_req +Date: March 2008 +Contact: "Theodore Ts'o" +Description: + Tuning parameter which controls the minimum size for + requests (as a power of 2) where the buddy cache is + used + +What: /sys/fs/ext4//mb_stream_req +Date: March 2008 +Contact: "Theodore Ts'o" +Description: + Files which have fewer blocks than this tunable + parameter will have their blocks allocated out of a + block group specific preallocation pool, so that small + files are packed closely together. Each large file + will have its blocks allocated out of its own unique + preallocation pool. + +What: /sys/fs/ext4//inode_readahead_blks +Date: March 2008 +Contact: "Theodore Ts'o" +Description: + Tuning parameter which controls the maximum number of + inode table blocks that ext4's inode table readahead + algorithm will pre-read into the buffer cache + +What: /sys/fs/ext4//delayed_allocation_blocks +Date: March 2008 +Contact: "Theodore Ts'o" +Description: + This file is read-only and shows the number of blocks + that are dirty in the page cache, but which do not + have their location in the filesystem allocated yet. + +What: /sys/fs/ext4//lifetime_write_kbytes +Date: March 2008 +Contact: "Theodore Ts'o" +Description: + This file is read-only and shows the number of kilobytes + of data that have been written to this filesystem since it was + created. + +What: /sys/fs/ext4//session_write_kbytes +Date: March 2008 +Contact: "Theodore Ts'o" +Description: + This file is read-only and shows the number of + kilobytes of data that have been written to this + filesystem since it was mounted. + +What: /sys/fs/ext4//inode_goal +Date: June 2008 +Contact: "Theodore Ts'o" +Description: + Tuning parameter which (if non-zero) controls the goal + inode used by the inode allocator in preference to + all other allocation heuristics. This is intended for + debugging use only, and should be 0 on production + systems. + +What: /sys/fs/ext4//max_writeback_mb_bump +Date: September 2009 +Contact: "Theodore Ts'o" +Description: + The maximum number of megabytes the writeback code will + try to write out before move on to another inode. + +What: /sys/fs/ext4//extent_max_zeroout_kb +Date: August 2012 +Contact: "Theodore Ts'o" +Description: + The maximum number of kilobytes which will be zeroed + out in preference to creating a new uninitialized + extent when manipulating an inode's extent tree. Note + that using a larger value will increase the + variability of time necessary to complete a random + write operation (since a 4k random write might turn + into a much larger write due to the zeroout + operation). + +What: /sys/fs/ext4//journal_task +Date: February 2019 +Contact: "Theodore Ts'o" +Description: + This file is read-only and shows the pid of journal thread in + current pid-namespace or 0 if task is unreachable. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-platform-dfl-port b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-platform-dfl-port index ce7be3ddd..65658267f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-platform-dfl-port +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-platform-dfl-port @@ -1,101 +1,101 @@ -What: /sys/bus/platform/devices/dfl-port.0/id -Date: June 2018 -KernelVersion: 4.19 -Contact: Wu Hao -Description: Read-only. It returns id of this port. One DFL FPGA device - may have more than one port. Userspace could use this id to - distinguish different ports under same FPGA device. - -What: /sys/bus/platform/devices/dfl-port.0/afu_id -Date: June 2018 -KernelVersion: 4.19 -Contact: Wu Hao -Description: Read-only. User can program different PR bitstreams to FPGA - Accelerator Function Unit (AFU) for different functions. It - returns uuid which could be used to identify which PR bitstream - is programmed in this AFU. - -What: /sys/bus/platform/devices/dfl-port.0/power_state -Date: August 2019 -KernelVersion: 5.4 -Contact: Wu Hao -Description: Read-only. It reports the APx (AFU Power) state, different APx - means different throttling level. When reading this file, it - returns "0" - Normal / "1" - AP1 / "2" - AP2 / "6" - AP6. - -What: /sys/bus/platform/devices/dfl-port.0/ap1_event -Date: August 2019 -KernelVersion: 5.4 -Contact: Wu Hao -Description: Read-write. Read this file for AP1 (AFU Power State 1) event. - It's used to indicate transient AP1 state. Write 1 to this - file to clear AP1 event. - -What: /sys/bus/platform/devices/dfl-port.0/ap2_event -Date: August 2019 -KernelVersion: 5.4 -Contact: Wu Hao -Description: Read-write. Read this file for AP2 (AFU Power State 2) event. - It's used to indicate transient AP2 state. Write 1 to this - file to clear AP2 event. - -What: /sys/bus/platform/devices/dfl-port.0/ltr -Date: August 2019 -KernelVersion: 5.4 -Contact: Wu Hao -Description: Read-write. Read or set AFU latency tolerance reporting value. - Set ltr to 1 if the AFU can tolerate latency >= 40us or set it - to 0 if it is latency sensitive. - -What: /sys/bus/platform/devices/dfl-port.0/userclk_freqcmd -Date: August 2019 -KernelVersion: 5.4 -Contact: Wu Hao -Description: Write-only. User writes command to this interface to set - userclock to AFU. - -What: /sys/bus/platform/devices/dfl-port.0/userclk_freqsts -Date: August 2019 -KernelVersion: 5.4 -Contact: Wu Hao -Description: Read-only. Read this file to get the status of issued command - to userclck_freqcmd. - -What: /sys/bus/platform/devices/dfl-port.0/userclk_freqcntrcmd -Date: August 2019 -KernelVersion: 5.4 -Contact: Wu Hao -Description: Write-only. User writes command to this interface to set - userclock counter. - -What: /sys/bus/platform/devices/dfl-port.0/userclk_freqcntrsts -Date: August 2019 -KernelVersion: 5.4 -Contact: Wu Hao -Description: Read-only. Read this file to get the status of issued command - to userclck_freqcntrcmd. - -What: /sys/bus/platform/devices/dfl-port.0/errors/errors -Date: August 2019 -KernelVersion: 5.4 -Contact: Wu Hao -Description: Read-Write. Read this file to get errors detected on port and - Accelerated Function Unit (AFU). Write error code to this file - to clear errors. Write fails with -EINVAL if input parsing - fails or input error code doesn't match. Write fails with - -EBUSY or -ETIMEDOUT if error can't be cleared as hardware - in low power state (-EBUSY) or not respoding (-ETIMEDOUT). - -What: /sys/bus/platform/devices/dfl-port.0/errors/first_error -Date: August 2019 -KernelVersion: 5.4 -Contact: Wu Hao -Description: Read-only. Read this file to get the first error detected by - hardware. - -What: /sys/bus/platform/devices/dfl-port.0/errors/first_malformed_req -Date: August 2019 -KernelVersion: 5.4 -Contact: Wu Hao -Description: Read-only. Read this file to get the first malformed request - captured by hardware. +What: /sys/bus/platform/devices/dfl-port.0/id +Date: June 2018 +KernelVersion: 4.19 +Contact: Wu Hao +Description: Read-only. It returns id of this port. One DFL FPGA device + may have more than one port. Userspace could use this id to + distinguish different ports under same FPGA device. + +What: /sys/bus/platform/devices/dfl-port.0/afu_id +Date: June 2018 +KernelVersion: 4.19 +Contact: Wu Hao +Description: Read-only. User can program different PR bitstreams to FPGA + Accelerator Function Unit (AFU) for different functions. It + returns uuid which could be used to identify which PR bitstream + is programmed in this AFU. + +What: /sys/bus/platform/devices/dfl-port.0/power_state +Date: August 2019 +KernelVersion: 5.4 +Contact: Wu Hao +Description: Read-only. It reports the APx (AFU Power) state, different APx + means different throttling level. When reading this file, it + returns "0" - Normal / "1" - AP1 / "2" - AP2 / "6" - AP6. + +What: /sys/bus/platform/devices/dfl-port.0/ap1_event +Date: August 2019 +KernelVersion: 5.4 +Contact: Wu Hao +Description: Read-write. Read this file for AP1 (AFU Power State 1) event. + It's used to indicate transient AP1 state. Write 1 to this + file to clear AP1 event. + +What: /sys/bus/platform/devices/dfl-port.0/ap2_event +Date: August 2019 +KernelVersion: 5.4 +Contact: Wu Hao +Description: Read-write. Read this file for AP2 (AFU Power State 2) event. + It's used to indicate transient AP2 state. Write 1 to this + file to clear AP2 event. + +What: /sys/bus/platform/devices/dfl-port.0/ltr +Date: August 2019 +KernelVersion: 5.4 +Contact: Wu Hao +Description: Read-write. Read or set AFU latency tolerance reporting value. + Set ltr to 1 if the AFU can tolerate latency >= 40us or set it + to 0 if it is latency sensitive. + +What: /sys/bus/platform/devices/dfl-port.0/userclk_freqcmd +Date: August 2019 +KernelVersion: 5.4 +Contact: Wu Hao +Description: Write-only. User writes command to this interface to set + userclock to AFU. + +What: /sys/bus/platform/devices/dfl-port.0/userclk_freqsts +Date: August 2019 +KernelVersion: 5.4 +Contact: Wu Hao +Description: Read-only. Read this file to get the status of issued command + to userclck_freqcmd. + +What: /sys/bus/platform/devices/dfl-port.0/userclk_freqcntrcmd +Date: August 2019 +KernelVersion: 5.4 +Contact: Wu Hao +Description: Write-only. User writes command to this interface to set + userclock counter. + +What: /sys/bus/platform/devices/dfl-port.0/userclk_freqcntrsts +Date: August 2019 +KernelVersion: 5.4 +Contact: Wu Hao +Description: Read-only. Read this file to get the status of issued command + to userclck_freqcntrcmd. + +What: /sys/bus/platform/devices/dfl-port.0/errors/errors +Date: August 2019 +KernelVersion: 5.4 +Contact: Wu Hao +Description: Read-Write. Read this file to get errors detected on port and + Accelerated Function Unit (AFU). Write error code to this file + to clear errors. Write fails with -EINVAL if input parsing + fails or input error code doesn't match. Write fails with + -EBUSY or -ETIMEDOUT if error can't be cleared as hardware + in low power state (-EBUSY) or not respoding (-ETIMEDOUT). + +What: /sys/bus/platform/devices/dfl-port.0/errors/first_error +Date: August 2019 +KernelVersion: 5.4 +Contact: Wu Hao +Description: Read-only. Read this file to get the first error detected by + hardware. + +What: /sys/bus/platform/devices/dfl-port.0/errors/first_malformed_req +Date: August 2019 +KernelVersion: 5.4 +Contact: Wu Hao +Description: Read-only. Read this file to get the first malformed request + captured by hardware. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-platform-hidma-mgmt b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-platform-hidma-mgmt index 4a3660f7f..0373745b4 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-platform-hidma-mgmt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/ABI/testing/sysfs-platform-hidma-mgmt @@ -1,97 +1,97 @@ -What: /sys/devices/platform/hidma-mgmt*/chanops/chan*/priority - /sys/devices/platform/QCOM8060:*/chanops/chan*/priority -Date: Nov 2015 -KernelVersion: 4.4 -Contact: "Sinan Kaya " -Description: - Contains either 0 or 1 and indicates if the DMA channel is a - low priority (0) or high priority (1) channel. - -What: /sys/devices/platform/hidma-mgmt*/chanops/chan*/weight - /sys/devices/platform/QCOM8060:*/chanops/chan*/weight -Date: Nov 2015 -KernelVersion: 4.4 -Contact: "Sinan Kaya " -Description: - Contains 0..15 and indicates the weight of the channel among - equal priority channels during round robin scheduling. - -What: /sys/devices/platform/hidma-mgmt*/chreset_timeout_cycles - /sys/devices/platform/QCOM8060:*/chreset_timeout_cycles -Date: Nov 2015 -KernelVersion: 4.4 -Contact: "Sinan Kaya " -Description: - Contains the platform specific cycle value to wait after a - reset command is issued. If the value is chosen too short, - then the HW will issue a reset failure interrupt. The value - is platform specific and should not be changed without - consultance. - -What: /sys/devices/platform/hidma-mgmt*/dma_channels - /sys/devices/platform/QCOM8060:*/dma_channels -Date: Nov 2015 -KernelVersion: 4.4 -Contact: "Sinan Kaya " -Description: - Contains the number of dma channels supported by one instance - of HIDMA hardware. The value may change from chip to chip. - -What: /sys/devices/platform/hidma-mgmt*/hw_version_major - /sys/devices/platform/QCOM8060:*/hw_version_major -Date: Nov 2015 -KernelVersion: 4.4 -Contact: "Sinan Kaya " -Description: - Version number major for the hardware. - -What: /sys/devices/platform/hidma-mgmt*/hw_version_minor - /sys/devices/platform/QCOM8060:*/hw_version_minor -Date: Nov 2015 -KernelVersion: 4.4 -Contact: "Sinan Kaya " -Description: - Version number minor for the hardware. - -What: /sys/devices/platform/hidma-mgmt*/max_rd_xactions - /sys/devices/platform/QCOM8060:*/max_rd_xactions -Date: Nov 2015 -KernelVersion: 4.4 -Contact: "Sinan Kaya " -Description: - Contains a value between 0 and 31. Maximum number of - read transactions that can be issued back to back. - Choosing a higher number gives better performance but - can also cause performance reduction to other peripherals - sharing the same bus. - -What: /sys/devices/platform/hidma-mgmt*/max_read_request - /sys/devices/platform/QCOM8060:*/max_read_request -Date: Nov 2015 -KernelVersion: 4.4 -Contact: "Sinan Kaya " -Description: - Size of each read request. The value needs to be a power - of two and can be between 128 and 1024. - -What: /sys/devices/platform/hidma-mgmt*/max_wr_xactions - /sys/devices/platform/QCOM8060:*/max_wr_xactions -Date: Nov 2015 -KernelVersion: 4.4 -Contact: "Sinan Kaya " -Description: - Contains a value between 0 and 31. Maximum number of - write transactions that can be issued back to back. - Choosing a higher number gives better performance but - can also cause performance reduction to other peripherals - sharing the same bus. - - -What: /sys/devices/platform/hidma-mgmt*/max_write_request - /sys/devices/platform/QCOM8060:*/max_write_request -Date: Nov 2015 -KernelVersion: 4.4 -Contact: "Sinan Kaya " -Description: - Size of each write request. The value needs to be a power - of two and can be between 128 and 1024. +What: /sys/devices/platform/hidma-mgmt*/chanops/chan*/priority + /sys/devices/platform/QCOM8060:*/chanops/chan*/priority +Date: Nov 2015 +KernelVersion: 4.4 +Contact: "Sinan Kaya " +Description: + Contains either 0 or 1 and indicates if the DMA channel is a + low priority (0) or high priority (1) channel. + +What: /sys/devices/platform/hidma-mgmt*/chanops/chan*/weight + /sys/devices/platform/QCOM8060:*/chanops/chan*/weight +Date: Nov 2015 +KernelVersion: 4.4 +Contact: "Sinan Kaya " +Description: + Contains 0..15 and indicates the weight of the channel among + equal priority channels during round robin scheduling. + +What: /sys/devices/platform/hidma-mgmt*/chreset_timeout_cycles + /sys/devices/platform/QCOM8060:*/chreset_timeout_cycles +Date: Nov 2015 +KernelVersion: 4.4 +Contact: "Sinan Kaya " +Description: + Contains the platform specific cycle value to wait after a + reset command is issued. If the value is chosen too short, + then the HW will issue a reset failure interrupt. The value + is platform specific and should not be changed without + consultance. + +What: /sys/devices/platform/hidma-mgmt*/dma_channels + /sys/devices/platform/QCOM8060:*/dma_channels +Date: Nov 2015 +KernelVersion: 4.4 +Contact: "Sinan Kaya " +Description: + Contains the number of dma channels supported by one instance + of HIDMA hardware. The value may change from chip to chip. + +What: /sys/devices/platform/hidma-mgmt*/hw_version_major + /sys/devices/platform/QCOM8060:*/hw_version_major +Date: Nov 2015 +KernelVersion: 4.4 +Contact: "Sinan Kaya " +Description: + Version number major for the hardware. + +What: /sys/devices/platform/hidma-mgmt*/hw_version_minor + /sys/devices/platform/QCOM8060:*/hw_version_minor +Date: Nov 2015 +KernelVersion: 4.4 +Contact: "Sinan Kaya " +Description: + Version number minor for the hardware. + +What: /sys/devices/platform/hidma-mgmt*/max_rd_xactions + /sys/devices/platform/QCOM8060:*/max_rd_xactions +Date: Nov 2015 +KernelVersion: 4.4 +Contact: "Sinan Kaya " +Description: + Contains a value between 0 and 31. Maximum number of + read transactions that can be issued back to back. + Choosing a higher number gives better performance but + can also cause performance reduction to other peripherals + sharing the same bus. + +What: /sys/devices/platform/hidma-mgmt*/max_read_request + /sys/devices/platform/QCOM8060:*/max_read_request +Date: Nov 2015 +KernelVersion: 4.4 +Contact: "Sinan Kaya " +Description: + Size of each read request. The value needs to be a power + of two and can be between 128 and 1024. + +What: /sys/devices/platform/hidma-mgmt*/max_wr_xactions + /sys/devices/platform/QCOM8060:*/max_wr_xactions +Date: Nov 2015 +KernelVersion: 4.4 +Contact: "Sinan Kaya " +Description: + Contains a value between 0 and 31. Maximum number of + write transactions that can be issued back to back. + Choosing a higher number gives better performance but + can also cause performance reduction to other peripherals + sharing the same bus. + + +What: /sys/devices/platform/hidma-mgmt*/max_write_request + /sys/devices/platform/QCOM8060:*/max_write_request +Date: Nov 2015 +KernelVersion: 4.4 +Contact: "Sinan Kaya " +Description: + Size of each write request. The value needs to be a power + of two and can be between 128 and 1024. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/PCI/endpoint/pci-endpoint-cfs.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/PCI/endpoint/pci-endpoint-cfs.rst index 94ef1258f..fb73345cf 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/PCI/endpoint/pci-endpoint-cfs.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/PCI/endpoint/pci-endpoint-cfs.rst @@ -1,138 +1,138 @@ -.. SPDX-License-Identifier: GPL-2.0 - -======================================= -Configuring PCI Endpoint Using CONFIGFS -======================================= - -:Author: Kishon Vijay Abraham I - -The PCI Endpoint Core exposes configfs entry (pci_ep) to configure the -PCI endpoint function and to bind the endpoint function -with the endpoint controller. (For introducing other mechanisms to -configure the PCI Endpoint Function refer to [1]). - -Mounting configfs -================= - -The PCI Endpoint Core layer creates pci_ep directory in the mounted configfs -directory. configfs can be mounted using the following command:: - - mount -t configfs none /sys/kernel/config - -Directory Structure -=================== - -The pci_ep configfs has two directories at its root: controllers and -functions. Every EPC device present in the system will have an entry in -the *controllers* directory and every EPF driver present in the system -will have an entry in the *functions* directory. -:: - - /sys/kernel/config/pci_ep/ - .. controllers/ - .. functions/ - -Creating EPF Device -=================== - -Every registered EPF driver will be listed in controllers directory. The -entries corresponding to EPF driver will be created by the EPF core. -:: - - /sys/kernel/config/pci_ep/functions/ - .. / - ... / - ... / - ... / - .. / - ... / - ... / - -In order to create a of the type probed by , the -user has to create a directory inside . - -Every directory consists of the following entries that can be -used to configure the standard configuration header of the endpoint function. -(These entries are created by the framework when any new is -created) -:: - - .. / - ... / - ... vendorid - ... deviceid - ... revid - ... progif_code - ... subclass_code - ... baseclass_code - ... cache_line_size - ... subsys_vendor_id - ... subsys_id - ... interrupt_pin - ... / - ... primary/ - ... / - ... secondary/ - ... / - -If an EPF device has to be associated with 2 EPCs (like in the case of -Non-transparent bridge), symlink of endpoint controller connected to primary -interface should be added in 'primary' directory and symlink of endpoint -controller connected to secondary interface should be added in 'secondary' -directory. - -The directory can have a list of symbolic links -() to other . These symbolic links should -be created by the user to represent the virtual functions that are bound to -the physical function. In the above directory structure is a -physical function and is a virtual function. An EPF device once -it's linked to another EPF device, cannot be linked to a EPC device. - -EPC Device -========== - -Every registered EPC device will be listed in controllers directory. The -entries corresponding to EPC device will be created by the EPC core. -:: - - /sys/kernel/config/pci_ep/controllers/ - .. / - ... / - ... / - ... start - .. / - ... / - ... / - ... start - -The directory will have a list of symbolic links to -. These symbolic links should be created by the user to -represent the functions present in the endpoint device. Only -that represents a physical function can be linked to a EPC device. - -The directory will also have a *start* field. Once -"1" is written to this field, the endpoint device will be ready to -establish the link with the host. This is usually done after -all the EPF devices are created and linked with the EPC device. -:: - - | controllers/ - | / - | - | start - | functions/ - | / - | / - | vendorid - | deviceid - | revid - | progif_code - | subclass_code - | baseclass_code - | cache_line_size - | subsys_vendor_id - | subsys_id - | interrupt_pin - | function - -[1] Documentation/PCI/endpoint/pci-endpoint.rst +.. SPDX-License-Identifier: GPL-2.0 + +======================================= +Configuring PCI Endpoint Using CONFIGFS +======================================= + +:Author: Kishon Vijay Abraham I + +The PCI Endpoint Core exposes configfs entry (pci_ep) to configure the +PCI endpoint function and to bind the endpoint function +with the endpoint controller. (For introducing other mechanisms to +configure the PCI Endpoint Function refer to [1]). + +Mounting configfs +================= + +The PCI Endpoint Core layer creates pci_ep directory in the mounted configfs +directory. configfs can be mounted using the following command:: + + mount -t configfs none /sys/kernel/config + +Directory Structure +=================== + +The pci_ep configfs has two directories at its root: controllers and +functions. Every EPC device present in the system will have an entry in +the *controllers* directory and every EPF driver present in the system +will have an entry in the *functions* directory. +:: + + /sys/kernel/config/pci_ep/ + .. controllers/ + .. functions/ + +Creating EPF Device +=================== + +Every registered EPF driver will be listed in controllers directory. The +entries corresponding to EPF driver will be created by the EPF core. +:: + + /sys/kernel/config/pci_ep/functions/ + .. / + ... / + ... / + ... / + .. / + ... / + ... / + +In order to create a of the type probed by , the +user has to create a directory inside . + +Every directory consists of the following entries that can be +used to configure the standard configuration header of the endpoint function. +(These entries are created by the framework when any new is +created) +:: + + .. / + ... / + ... vendorid + ... deviceid + ... revid + ... progif_code + ... subclass_code + ... baseclass_code + ... cache_line_size + ... subsys_vendor_id + ... subsys_id + ... interrupt_pin + ... / + ... primary/ + ... / + ... secondary/ + ... / + +If an EPF device has to be associated with 2 EPCs (like in the case of +Non-transparent bridge), symlink of endpoint controller connected to primary +interface should be added in 'primary' directory and symlink of endpoint +controller connected to secondary interface should be added in 'secondary' +directory. + +The directory can have a list of symbolic links +() to other . These symbolic links should +be created by the user to represent the virtual functions that are bound to +the physical function. In the above directory structure is a +physical function and is a virtual function. An EPF device once +it's linked to another EPF device, cannot be linked to a EPC device. + +EPC Device +========== + +Every registered EPC device will be listed in controllers directory. The +entries corresponding to EPC device will be created by the EPC core. +:: + + /sys/kernel/config/pci_ep/controllers/ + .. / + ... / + ... / + ... start + .. / + ... / + ... / + ... start + +The directory will have a list of symbolic links to +. These symbolic links should be created by the user to +represent the functions present in the endpoint device. Only +that represents a physical function can be linked to a EPC device. + +The directory will also have a *start* field. Once +"1" is written to this field, the endpoint device will be ready to +establish the link with the host. This is usually done after +all the EPF devices are created and linked with the EPC device. +:: + + | controllers/ + | / + | + | start + | functions/ + | / + | / + | vendorid + | deviceid + | revid + | progif_code + | subclass_code + | baseclass_code + | cache_line_size + | subsys_vendor_id + | subsys_id + | interrupt_pin + | function + +[1] Documentation/PCI/endpoint/pci-endpoint.rst diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/PCI/endpoint/pci-vntb-function.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/PCI/endpoint/pci-vntb-function.rst index 89803c732..0c51f53ab 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/PCI/endpoint/pci-vntb-function.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/PCI/endpoint/pci-vntb-function.rst @@ -1,129 +1,129 @@ -.. SPDX-License-Identifier: GPL-2.0 - -================= -PCI vNTB Function -================= - -:Author: Frank Li - -The difference between PCI NTB function and PCI vNTB function is - -PCI NTB function need at two endpoint instances and connect HOST1 -and HOST2. - -PCI vNTB function only use one host and one endpoint(EP), use NTB -connect EP and PCI host - -.. code-block:: text - - - +------------+ +---------------------------------------+ - | | | | - +------------+ | +--------------+ - | NTB | | | NTB | - | NetDev | | | NetDev | - +------------+ | +--------------+ - | NTB | | | NTB | - | Transfer | | | Transfer | - +------------+ | +--------------+ - | | | | | - | PCI NTB | | | | - | EPF | | | | - | Driver | | | PCI Virtual | - | | +---------------+ | NTB Driver | - | | | PCI EP NTB |<------>| | - | | | FN Driver | | | - +------------+ +---------------+ +--------------+ - | | | | | | - | PCI BUS | <-----> | PCI EP BUS | | Virtual PCI | - | | PCI | | | BUS | - +------------+ +---------------+--------+--------------+ - PCI RC PCI EP - -Constructs used for Implementing vNTB -===================================== - - 1) Config Region - 2) Self Scratchpad Registers - 3) Peer Scratchpad Registers - 4) Doorbell (DB) Registers - 5) Memory Window (MW) - - -Config Region: --------------- - -It is same as PCI NTB Function driver - -Scratchpad Registers: ---------------------- - -It is appended after Config region. - -.. code-block:: text - - - +--------------------------------------------------+ Base - | | - | | - | | - | Common Config Register | - | | - | | - | | - +-----------------------+--------------------------+ Base + span_offset - | | | - | Peer Span Space | Span Space | - | | | - | | | - +-----------------------+--------------------------+ Base + span_offset - | | | + span_count * 4 - | | | - | Span Space | Peer Span Space | - | | | - +-----------------------+--------------------------+ - Virtual PCI Pcie Endpoint - NTB Driver NTB Driver - - -Doorbell Registers: -------------------- - - Doorbell Registers are used by the hosts to interrupt each other. - -Memory Window: --------------- - - Actual transfer of data between the two hosts will happen using the - memory window. - -Modeling Constructs: -==================== - -32-bit BARs. - -====== =============== -BAR NO CONSTRUCTS USED -====== =============== -BAR0 Config Region -BAR1 Doorbell -BAR2 Memory Window 1 -BAR3 Memory Window 2 -BAR4 Memory Window 3 -BAR5 Memory Window 4 -====== =============== - -64-bit BARs. - -====== =============================== -BAR NO CONSTRUCTS USED -====== =============================== -BAR0 Config Region + Scratchpad -BAR1 -BAR2 Doorbell -BAR3 -BAR4 Memory Window 1 -BAR5 -====== =============================== - - +.. SPDX-License-Identifier: GPL-2.0 + +================= +PCI vNTB Function +================= + +:Author: Frank Li + +The difference between PCI NTB function and PCI vNTB function is + +PCI NTB function need at two endpoint instances and connect HOST1 +and HOST2. + +PCI vNTB function only use one host and one endpoint(EP), use NTB +connect EP and PCI host + +.. code-block:: text + + + +------------+ +---------------------------------------+ + | | | | + +------------+ | +--------------+ + | NTB | | | NTB | + | NetDev | | | NetDev | + +------------+ | +--------------+ + | NTB | | | NTB | + | Transfer | | | Transfer | + +------------+ | +--------------+ + | | | | | + | PCI NTB | | | | + | EPF | | | | + | Driver | | | PCI Virtual | + | | +---------------+ | NTB Driver | + | | | PCI EP NTB |<------>| | + | | | FN Driver | | | + +------------+ +---------------+ +--------------+ + | | | | | | + | PCI BUS | <-----> | PCI EP BUS | | Virtual PCI | + | | PCI | | | BUS | + +------------+ +---------------+--------+--------------+ + PCI RC PCI EP + +Constructs used for Implementing vNTB +===================================== + + 1) Config Region + 2) Self Scratchpad Registers + 3) Peer Scratchpad Registers + 4) Doorbell (DB) Registers + 5) Memory Window (MW) + + +Config Region: +-------------- + +It is same as PCI NTB Function driver + +Scratchpad Registers: +--------------------- + +It is appended after Config region. + +.. code-block:: text + + + +--------------------------------------------------+ Base + | | + | | + | | + | Common Config Register | + | | + | | + | | + +-----------------------+--------------------------+ Base + span_offset + | | | + | Peer Span Space | Span Space | + | | | + | | | + +-----------------------+--------------------------+ Base + span_offset + | | | + span_count * 4 + | | | + | Span Space | Peer Span Space | + | | | + +-----------------------+--------------------------+ + Virtual PCI Pcie Endpoint + NTB Driver NTB Driver + + +Doorbell Registers: +------------------- + + Doorbell Registers are used by the hosts to interrupt each other. + +Memory Window: +-------------- + + Actual transfer of data between the two hosts will happen using the + memory window. + +Modeling Constructs: +==================== + +32-bit BARs. + +====== =============== +BAR NO CONSTRUCTS USED +====== =============== +BAR0 Config Region +BAR1 Doorbell +BAR2 Memory Window 1 +BAR3 Memory Window 2 +BAR4 Memory Window 3 +BAR5 Memory Window 4 +====== =============== + +64-bit BARs. + +====== =============================== +BAR NO CONSTRUCTS USED +====== =============================== +BAR0 Config Region + Scratchpad +BAR1 +BAR2 Doorbell +BAR3 +BAR4 Memory Window 1 +BAR5 +====== =============================== + + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/RCU/NMI-RCU.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/RCU/NMI-RCU.rst index 142991e54..dff60a80b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/RCU/NMI-RCU.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/RCU/NMI-RCU.rst @@ -1,123 +1,123 @@ -.. _NMI_rcu_doc: - -Using RCU to Protect Dynamic NMI Handlers -========================================= - - -Although RCU is usually used to protect read-mostly data structures, -it is possible to use RCU to provide dynamic non-maskable interrupt -handlers, as well as dynamic irq handlers. This document describes -how to do this, drawing loosely from Zwane Mwaikambo's NMI-timer -work in an old version of "arch/x86/kernel/traps.c". - -The relevant pieces of code are listed below, each followed by a -brief explanation:: - - static int dummy_nmi_callback(struct pt_regs *regs, int cpu) - { - return 0; - } - -The dummy_nmi_callback() function is a "dummy" NMI handler that does -nothing, but returns zero, thus saying that it did nothing, allowing -the NMI handler to take the default machine-specific action:: - - static nmi_callback_t nmi_callback = dummy_nmi_callback; - -This nmi_callback variable is a global function pointer to the current -NMI handler:: - - void do_nmi(struct pt_regs * regs, long error_code) - { - int cpu; - - nmi_enter(); - - cpu = smp_processor_id(); - ++nmi_count(cpu); - - if (!rcu_dereference_sched(nmi_callback)(regs, cpu)) - default_do_nmi(regs); - - nmi_exit(); - } - -The do_nmi() function processes each NMI. It first disables preemption -in the same way that a hardware irq would, then increments the per-CPU -count of NMIs. It then invokes the NMI handler stored in the nmi_callback -function pointer. If this handler returns zero, do_nmi() invokes the -default_do_nmi() function to handle a machine-specific NMI. Finally, -preemption is restored. - -In theory, rcu_dereference_sched() is not needed, since this code runs -only on i386, which in theory does not need rcu_dereference_sched() -anyway. However, in practice it is a good documentation aid, particularly -for anyone attempting to do something similar on Alpha or on systems -with aggressive optimizing compilers. - -Quick Quiz: - Why might the rcu_dereference_sched() be necessary on Alpha, given that the code referenced by the pointer is read-only? - -:ref:`Answer to Quick Quiz ` - -Back to the discussion of NMI and RCU:: - - void set_nmi_callback(nmi_callback_t callback) - { - rcu_assign_pointer(nmi_callback, callback); - } - -The set_nmi_callback() function registers an NMI handler. Note that any -data that is to be used by the callback must be initialized up -before- -the call to set_nmi_callback(). On architectures that do not order -writes, the rcu_assign_pointer() ensures that the NMI handler sees the -initialized values:: - - void unset_nmi_callback(void) - { - rcu_assign_pointer(nmi_callback, dummy_nmi_callback); - } - -This function unregisters an NMI handler, restoring the original -dummy_nmi_handler(). However, there may well be an NMI handler -currently executing on some other CPU. We therefore cannot free -up any data structures used by the old NMI handler until execution -of it completes on all other CPUs. - -One way to accomplish this is via synchronize_rcu(), perhaps as -follows:: - - unset_nmi_callback(); - synchronize_rcu(); - kfree(my_nmi_data); - -This works because (as of v4.20) synchronize_rcu() blocks until all -CPUs complete any preemption-disabled segments of code that they were -executing. -Since NMI handlers disable preemption, synchronize_rcu() is guaranteed -not to return until all ongoing NMI handlers exit. It is therefore safe -to free up the handler's data as soon as synchronize_rcu() returns. - -Important note: for this to work, the architecture in question must -invoke nmi_enter() and nmi_exit() on NMI entry and exit, respectively. - -.. _answer_quick_quiz_NMI: - -Answer to Quick Quiz: - Why might the rcu_dereference_sched() be necessary on Alpha, given that the code referenced by the pointer is read-only? - - The caller to set_nmi_callback() might well have - initialized some data that is to be used by the new NMI - handler. In this case, the rcu_dereference_sched() would - be needed, because otherwise a CPU that received an NMI - just after the new handler was set might see the pointer - to the new NMI handler, but the old pre-initialized - version of the handler's data. - - This same sad story can happen on other CPUs when using - a compiler with aggressive pointer-value speculation - optimizations. (But please don't!) - - More important, the rcu_dereference_sched() makes it - clear to someone reading the code that the pointer is - being protected by RCU-sched. +.. _NMI_rcu_doc: + +Using RCU to Protect Dynamic NMI Handlers +========================================= + + +Although RCU is usually used to protect read-mostly data structures, +it is possible to use RCU to provide dynamic non-maskable interrupt +handlers, as well as dynamic irq handlers. This document describes +how to do this, drawing loosely from Zwane Mwaikambo's NMI-timer +work in an old version of "arch/x86/kernel/traps.c". + +The relevant pieces of code are listed below, each followed by a +brief explanation:: + + static int dummy_nmi_callback(struct pt_regs *regs, int cpu) + { + return 0; + } + +The dummy_nmi_callback() function is a "dummy" NMI handler that does +nothing, but returns zero, thus saying that it did nothing, allowing +the NMI handler to take the default machine-specific action:: + + static nmi_callback_t nmi_callback = dummy_nmi_callback; + +This nmi_callback variable is a global function pointer to the current +NMI handler:: + + void do_nmi(struct pt_regs * regs, long error_code) + { + int cpu; + + nmi_enter(); + + cpu = smp_processor_id(); + ++nmi_count(cpu); + + if (!rcu_dereference_sched(nmi_callback)(regs, cpu)) + default_do_nmi(regs); + + nmi_exit(); + } + +The do_nmi() function processes each NMI. It first disables preemption +in the same way that a hardware irq would, then increments the per-CPU +count of NMIs. It then invokes the NMI handler stored in the nmi_callback +function pointer. If this handler returns zero, do_nmi() invokes the +default_do_nmi() function to handle a machine-specific NMI. Finally, +preemption is restored. + +In theory, rcu_dereference_sched() is not needed, since this code runs +only on i386, which in theory does not need rcu_dereference_sched() +anyway. However, in practice it is a good documentation aid, particularly +for anyone attempting to do something similar on Alpha or on systems +with aggressive optimizing compilers. + +Quick Quiz: + Why might the rcu_dereference_sched() be necessary on Alpha, given that the code referenced by the pointer is read-only? + +:ref:`Answer to Quick Quiz ` + +Back to the discussion of NMI and RCU:: + + void set_nmi_callback(nmi_callback_t callback) + { + rcu_assign_pointer(nmi_callback, callback); + } + +The set_nmi_callback() function registers an NMI handler. Note that any +data that is to be used by the callback must be initialized up -before- +the call to set_nmi_callback(). On architectures that do not order +writes, the rcu_assign_pointer() ensures that the NMI handler sees the +initialized values:: + + void unset_nmi_callback(void) + { + rcu_assign_pointer(nmi_callback, dummy_nmi_callback); + } + +This function unregisters an NMI handler, restoring the original +dummy_nmi_handler(). However, there may well be an NMI handler +currently executing on some other CPU. We therefore cannot free +up any data structures used by the old NMI handler until execution +of it completes on all other CPUs. + +One way to accomplish this is via synchronize_rcu(), perhaps as +follows:: + + unset_nmi_callback(); + synchronize_rcu(); + kfree(my_nmi_data); + +This works because (as of v4.20) synchronize_rcu() blocks until all +CPUs complete any preemption-disabled segments of code that they were +executing. +Since NMI handlers disable preemption, synchronize_rcu() is guaranteed +not to return until all ongoing NMI handlers exit. It is therefore safe +to free up the handler's data as soon as synchronize_rcu() returns. + +Important note: for this to work, the architecture in question must +invoke nmi_enter() and nmi_exit() on NMI entry and exit, respectively. + +.. _answer_quick_quiz_NMI: + +Answer to Quick Quiz: + Why might the rcu_dereference_sched() be necessary on Alpha, given that the code referenced by the pointer is read-only? + + The caller to set_nmi_callback() might well have + initialized some data that is to be used by the new NMI + handler. In this case, the rcu_dereference_sched() would + be needed, because otherwise a CPU that received an NMI + just after the new handler was set might see the pointer + to the new NMI handler, but the old pre-initialized + version of the handler's data. + + This same sad story can happen on other CPUs when using + a compiler with aggressive pointer-value speculation + optimizations. (But please don't!) + + More important, the rcu_dereference_sched() makes it + clear to someone reading the code that the pointer is + being protected by RCU-sched. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/RCU/rcu.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/RCU/rcu.rst index 67a845ea6..bf6617b33 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/RCU/rcu.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/RCU/rcu.rst @@ -1,93 +1,93 @@ -.. _rcu_doc: - -RCU Concepts -============ - -The basic idea behind RCU (read-copy update) is to split destructive -operations into two parts, one that prevents anyone from seeing the data -item being destroyed, and one that actually carries out the destruction. -A "grace period" must elapse between the two parts, and this grace period -must be long enough that any readers accessing the item being deleted have -since dropped their references. For example, an RCU-protected deletion -from a linked list would first remove the item from the list, wait for -a grace period to elapse, then free the element. See listRCU.rst for more -information on using RCU with linked lists. - -Frequently Asked Questions --------------------------- - -- Why would anyone want to use RCU? - - The advantage of RCU's two-part approach is that RCU readers need - not acquire any locks, perform any atomic instructions, write to - shared memory, or (on CPUs other than Alpha) execute any memory - barriers. The fact that these operations are quite expensive - on modern CPUs is what gives RCU its performance advantages - in read-mostly situations. The fact that RCU readers need not - acquire locks can also greatly simplify deadlock-avoidance code. - -- How can the updater tell when a grace period has completed - if the RCU readers give no indication when they are done? - - Just as with spinlocks, RCU readers are not permitted to - block, switch to user-mode execution, or enter the idle loop. - Therefore, as soon as a CPU is seen passing through any of these - three states, we know that that CPU has exited any previous RCU - read-side critical sections. So, if we remove an item from a - linked list, and then wait until all CPUs have switched context, - executed in user mode, or executed in the idle loop, we can - safely free up that item. - - Preemptible variants of RCU (CONFIG_PREEMPT_RCU) get the - same effect, but require that the readers manipulate CPU-local - counters. These counters allow limited types of blocking within - RCU read-side critical sections. SRCU also uses CPU-local - counters, and permits general blocking within RCU read-side - critical sections. These variants of RCU detect grace periods - by sampling these counters. - -- If I am running on a uniprocessor kernel, which can only do one - thing at a time, why should I wait for a grace period? - - See UP.rst for more information. - -- How can I see where RCU is currently used in the Linux kernel? - - Search for "rcu_read_lock", "rcu_read_unlock", "call_rcu", - "rcu_read_lock_bh", "rcu_read_unlock_bh", "srcu_read_lock", - "srcu_read_unlock", "synchronize_rcu", "synchronize_net", - "synchronize_srcu", and the other RCU primitives. Or grab one - of the cscope databases from: - - (http://www.rdrop.com/users/paulmck/RCU/linuxusage/rculocktab.html). - -- What guidelines should I follow when writing code that uses RCU? - - See checklist.rst. - -- Why the name "RCU"? - - "RCU" stands for "read-copy update". - listRCU.rst has more information on where this name came from, search - for "read-copy update" to find it. - -- I hear that RCU is patented? What is with that? - - Yes, it is. There are several known patents related to RCU, - search for the string "Patent" in Documentation/RCU/RTFP.txt to find them. - Of these, one was allowed to lapse by the assignee, and the - others have been contributed to the Linux kernel under GPL. - Many (but not all) have long since expired. - There are now also LGPL implementations of user-level RCU - available (https://liburcu.org/). - -- I hear that RCU needs work in order to support realtime kernels? - - Realtime-friendly RCU are enabled via the CONFIG_PREEMPTION - kernel configuration parameter. - -- Where can I find more information on RCU? - - See the Documentation/RCU/RTFP.txt file. - Or point your browser at (https://docs.google.com/document/d/1X0lThx8OK0ZgLMqVoXiR4ZrGURHrXK6NyLRbeXe3Xac/edit) - or (https://docs.google.com/document/d/1GCdQC8SDbb54W1shjEXqGZ0Rq8a6kIeYutdSIajfpLA/edit?usp=sharing). +.. _rcu_doc: + +RCU Concepts +============ + +The basic idea behind RCU (read-copy update) is to split destructive +operations into two parts, one that prevents anyone from seeing the data +item being destroyed, and one that actually carries out the destruction. +A "grace period" must elapse between the two parts, and this grace period +must be long enough that any readers accessing the item being deleted have +since dropped their references. For example, an RCU-protected deletion +from a linked list would first remove the item from the list, wait for +a grace period to elapse, then free the element. See listRCU.rst for more +information on using RCU with linked lists. + +Frequently Asked Questions +-------------------------- + +- Why would anyone want to use RCU? + + The advantage of RCU's two-part approach is that RCU readers need + not acquire any locks, perform any atomic instructions, write to + shared memory, or (on CPUs other than Alpha) execute any memory + barriers. The fact that these operations are quite expensive + on modern CPUs is what gives RCU its performance advantages + in read-mostly situations. The fact that RCU readers need not + acquire locks can also greatly simplify deadlock-avoidance code. + +- How can the updater tell when a grace period has completed + if the RCU readers give no indication when they are done? + + Just as with spinlocks, RCU readers are not permitted to + block, switch to user-mode execution, or enter the idle loop. + Therefore, as soon as a CPU is seen passing through any of these + three states, we know that that CPU has exited any previous RCU + read-side critical sections. So, if we remove an item from a + linked list, and then wait until all CPUs have switched context, + executed in user mode, or executed in the idle loop, we can + safely free up that item. + + Preemptible variants of RCU (CONFIG_PREEMPT_RCU) get the + same effect, but require that the readers manipulate CPU-local + counters. These counters allow limited types of blocking within + RCU read-side critical sections. SRCU also uses CPU-local + counters, and permits general blocking within RCU read-side + critical sections. These variants of RCU detect grace periods + by sampling these counters. + +- If I am running on a uniprocessor kernel, which can only do one + thing at a time, why should I wait for a grace period? + + See UP.rst for more information. + +- How can I see where RCU is currently used in the Linux kernel? + + Search for "rcu_read_lock", "rcu_read_unlock", "call_rcu", + "rcu_read_lock_bh", "rcu_read_unlock_bh", "srcu_read_lock", + "srcu_read_unlock", "synchronize_rcu", "synchronize_net", + "synchronize_srcu", and the other RCU primitives. Or grab one + of the cscope databases from: + + (http://www.rdrop.com/users/paulmck/RCU/linuxusage/rculocktab.html). + +- What guidelines should I follow when writing code that uses RCU? + + See checklist.rst. + +- Why the name "RCU"? + + "RCU" stands for "read-copy update". + listRCU.rst has more information on where this name came from, search + for "read-copy update" to find it. + +- I hear that RCU is patented? What is with that? + + Yes, it is. There are several known patents related to RCU, + search for the string "Patent" in Documentation/RCU/RTFP.txt to find them. + Of these, one was allowed to lapse by the assignee, and the + others have been contributed to the Linux kernel under GPL. + Many (but not all) have long since expired. + There are now also LGPL implementations of user-level RCU + available (https://liburcu.org/). + +- I hear that RCU needs work in order to support realtime kernels? + + Realtime-friendly RCU are enabled via the CONFIG_PREEMPTION + kernel configuration parameter. + +- Where can I find more information on RCU? + + See the Documentation/RCU/RTFP.txt file. + Or point your browser at (https://docs.google.com/document/d/1X0lThx8OK0ZgLMqVoXiR4ZrGURHrXK6NyLRbeXe3Xac/edit) + or (https://docs.google.com/document/d/1GCdQC8SDbb54W1shjEXqGZ0Rq8a6kIeYutdSIajfpLA/edit?usp=sharing). diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/LSM/Yama.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/LSM/Yama.rst index fe09dbe3b..d9cd937eb 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/LSM/Yama.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/LSM/Yama.rst @@ -1,75 +1,75 @@ -==== -Yama -==== - -Yama is a Linux Security Module that collects system-wide DAC security -protections that are not handled by the core kernel itself. This is -selectable at build-time with ``CONFIG_SECURITY_YAMA``, and can be controlled -at run-time through sysctls in ``/proc/sys/kernel/yama``: - -ptrace_scope -============ - -As Linux grows in popularity, it will become a larger target for -malware. One particularly troubling weakness of the Linux process -interfaces is that a single user is able to examine the memory and -running state of any of their processes. For example, if one application -(e.g. Pidgin) was compromised, it would be possible for an attacker to -attach to other running processes (e.g. Firefox, SSH sessions, GPG agent, -etc) to extract additional credentials and continue to expand the scope -of their attack without resorting to user-assisted phishing. - -This is not a theoretical problem. `SSH session hijacking -`_ -and `arbitrary code injection -`_ attacks already -exist and remain possible if ptrace is allowed to operate as before. -Since ptrace is not commonly used by non-developers and non-admins, system -builders should be allowed the option to disable this debugging system. - -For a solution, some applications use ``prctl(PR_SET_DUMPABLE, ...)`` to -specifically disallow such ptrace attachment (e.g. ssh-agent), but many -do not. A more general solution is to only allow ptrace directly from a -parent to a child process (i.e. direct "gdb EXE" and "strace EXE" still -work), or with ``CAP_SYS_PTRACE`` (i.e. "gdb --pid=PID", and "strace -p PID" -still work as root). - -In mode 1, software that has defined application-specific relationships -between a debugging process and its inferior (crash handlers, etc), -``prctl(PR_SET_PTRACER, pid, ...)`` can be used. An inferior can declare which -other process (and its descendants) are allowed to call ``PTRACE_ATTACH`` -against it. Only one such declared debugging process can exists for -each inferior at a time. For example, this is used by KDE, Chromium, and -Firefox's crash handlers, and by Wine for allowing only Wine processes -to ptrace each other. If a process wishes to entirely disable these ptrace -restrictions, it can call ``prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY, ...)`` -so that any otherwise allowed process (even those in external pid namespaces) -may attach. - -The sysctl settings (writable only with ``CAP_SYS_PTRACE``) are: - -0 - classic ptrace permissions: - a process can ``PTRACE_ATTACH`` to any other - process running under the same uid, as long as it is dumpable (i.e. - did not transition uids, start privileged, or have called - ``prctl(PR_SET_DUMPABLE...)`` already). Similarly, ``PTRACE_TRACEME`` is - unchanged. - -1 - restricted ptrace: - a process must have a predefined relationship - with the inferior it wants to call ``PTRACE_ATTACH`` on. By default, - this relationship is that of only its descendants when the above - classic criteria is also met. To change the relationship, an - inferior can call ``prctl(PR_SET_PTRACER, debugger, ...)`` to declare - an allowed debugger PID to call ``PTRACE_ATTACH`` on the inferior. - Using ``PTRACE_TRACEME`` is unchanged. - -2 - admin-only attach: - only processes with ``CAP_SYS_PTRACE`` may use ptrace, either with - ``PTRACE_ATTACH`` or through children calling ``PTRACE_TRACEME``. - -3 - no attach: - no processes may use ptrace with ``PTRACE_ATTACH`` nor via - ``PTRACE_TRACEME``. Once set, this sysctl value cannot be changed. - -The original children-only logic was based on the restrictions in grsecurity. +==== +Yama +==== + +Yama is a Linux Security Module that collects system-wide DAC security +protections that are not handled by the core kernel itself. This is +selectable at build-time with ``CONFIG_SECURITY_YAMA``, and can be controlled +at run-time through sysctls in ``/proc/sys/kernel/yama``: + +ptrace_scope +============ + +As Linux grows in popularity, it will become a larger target for +malware. One particularly troubling weakness of the Linux process +interfaces is that a single user is able to examine the memory and +running state of any of their processes. For example, if one application +(e.g. Pidgin) was compromised, it would be possible for an attacker to +attach to other running processes (e.g. Firefox, SSH sessions, GPG agent, +etc) to extract additional credentials and continue to expand the scope +of their attack without resorting to user-assisted phishing. + +This is not a theoretical problem. `SSH session hijacking +`_ +and `arbitrary code injection +`_ attacks already +exist and remain possible if ptrace is allowed to operate as before. +Since ptrace is not commonly used by non-developers and non-admins, system +builders should be allowed the option to disable this debugging system. + +For a solution, some applications use ``prctl(PR_SET_DUMPABLE, ...)`` to +specifically disallow such ptrace attachment (e.g. ssh-agent), but many +do not. A more general solution is to only allow ptrace directly from a +parent to a child process (i.e. direct "gdb EXE" and "strace EXE" still +work), or with ``CAP_SYS_PTRACE`` (i.e. "gdb --pid=PID", and "strace -p PID" +still work as root). + +In mode 1, software that has defined application-specific relationships +between a debugging process and its inferior (crash handlers, etc), +``prctl(PR_SET_PTRACER, pid, ...)`` can be used. An inferior can declare which +other process (and its descendants) are allowed to call ``PTRACE_ATTACH`` +against it. Only one such declared debugging process can exists for +each inferior at a time. For example, this is used by KDE, Chromium, and +Firefox's crash handlers, and by Wine for allowing only Wine processes +to ptrace each other. If a process wishes to entirely disable these ptrace +restrictions, it can call ``prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY, ...)`` +so that any otherwise allowed process (even those in external pid namespaces) +may attach. + +The sysctl settings (writable only with ``CAP_SYS_PTRACE``) are: + +0 - classic ptrace permissions: + a process can ``PTRACE_ATTACH`` to any other + process running under the same uid, as long as it is dumpable (i.e. + did not transition uids, start privileged, or have called + ``prctl(PR_SET_DUMPABLE...)`` already). Similarly, ``PTRACE_TRACEME`` is + unchanged. + +1 - restricted ptrace: + a process must have a predefined relationship + with the inferior it wants to call ``PTRACE_ATTACH`` on. By default, + this relationship is that of only its descendants when the above + classic criteria is also met. To change the relationship, an + inferior can call ``prctl(PR_SET_PTRACER, debugger, ...)`` to declare + an allowed debugger PID to call ``PTRACE_ATTACH`` on the inferior. + Using ``PTRACE_TRACEME`` is unchanged. + +2 - admin-only attach: + only processes with ``CAP_SYS_PTRACE`` may use ptrace, either with + ``PTRACE_ATTACH`` or through children calling ``PTRACE_TRACEME``. + +3 - no attach: + no processes may use ptrace with ``PTRACE_ATTACH`` nor via + ``PTRACE_TRACEME``. Once set, this sysctl value cannot be changed. + +The original children-only logic was based on the restrictions in grsecurity. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/acpi/fan_performance_states.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/acpi/fan_performance_states.rst index a4c305d2d..b9e4b4d14 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/acpi/fan_performance_states.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/acpi/fan_performance_states.rst @@ -1,90 +1,90 @@ -.. SPDX-License-Identifier: GPL-2.0 - -=========================== -ACPI Fan Performance States -=========================== - -When the optional _FPS object is present under an ACPI device representing a -fan (for example, PNP0C0B or INT3404), the ACPI fan driver creates additional -"state*" attributes in the sysfs directory of the ACPI device in question. -These attributes list properties of fan performance states. - -For more information on _FPS refer to the ACPI specification at: - -http://uefi.org/specifications - -For instance, the contents of the INT3404 ACPI device sysfs directory -may look as follows:: - - $ ls -l /sys/bus/acpi/devices/INT3404:00/ - total 0 - ... - -r--r--r-- 1 root root 4096 Dec 13 20:38 state0 - -r--r--r-- 1 root root 4096 Dec 13 20:38 state1 - -r--r--r-- 1 root root 4096 Dec 13 20:38 state10 - -r--r--r-- 1 root root 4096 Dec 13 20:38 state11 - -r--r--r-- 1 root root 4096 Dec 13 20:38 state2 - -r--r--r-- 1 root root 4096 Dec 13 20:38 state3 - -r--r--r-- 1 root root 4096 Dec 13 20:38 state4 - -r--r--r-- 1 root root 4096 Dec 13 20:38 state5 - -r--r--r-- 1 root root 4096 Dec 13 20:38 state6 - -r--r--r-- 1 root root 4096 Dec 13 20:38 state7 - -r--r--r-- 1 root root 4096 Dec 13 20:38 state8 - -r--r--r-- 1 root root 4096 Dec 13 20:38 state9 - -r--r--r-- 1 root root 4096 Dec 13 01:00 status - ... - -where each of the "state*" files represents one performance state of the fan -and contains a colon-separated list of 5 integer numbers (fields) with the -following interpretation:: - - control_percent:trip_point_index:speed_rpm:noise_level_mdb:power_mw - -* ``control_percent``: The percent value to be used to set the fan speed to a - specific level using the _FSL object (0-100). - -* ``trip_point_index``: The active cooling trip point number that corresponds - to this performance state (0-9). - -* ``speed_rpm``: Speed of the fan in rotations per minute. - -* ``noise_level_mdb``: Audible noise emitted by the fan in this state in - millidecibels. - -* ``power_mw``: Power draw of the fan in this state in milliwatts. - -For example:: - - $cat /sys/bus/acpi/devices/INT3404:00/state1 - 25:0:3200:12500:1250 - -When a given field is not populated or its value provided by the platform -firmware is invalid, the "not-defined" string is shown instead of the value. - -ACPI Fan Fine Grain Control -============================= - -When _FIF object specifies support for fine grain control, then fan speed -can be set from 0 to 100% with the recommended minimum "step size" via -_FSL object. User can adjust fan speed using thermal sysfs cooling device. - -Here use can look at fan performance states for a reference speed (speed_rpm) -and set it by changing cooling device cur_state. If the fine grain control -is supported then user can also adjust to some other speeds which are -not defined in the performance states. - -The support of fine grain control is presented via sysfs attribute -"fine_grain_control". If fine grain control is present, this attribute -will show "1" otherwise "0". - -This sysfs attribute is presented in the same directory as performance states. - -ACPI Fan Performance Feedback -============================= - -The optional _FST object provides status information for the fan device. -This includes field to provide current fan speed in revolutions per minute -at which the fan is rotating. - -This speed is presented in the sysfs using the attribute "fan_speed_rpm", -in the same directory as performance states. +.. SPDX-License-Identifier: GPL-2.0 + +=========================== +ACPI Fan Performance States +=========================== + +When the optional _FPS object is present under an ACPI device representing a +fan (for example, PNP0C0B or INT3404), the ACPI fan driver creates additional +"state*" attributes in the sysfs directory of the ACPI device in question. +These attributes list properties of fan performance states. + +For more information on _FPS refer to the ACPI specification at: + +http://uefi.org/specifications + +For instance, the contents of the INT3404 ACPI device sysfs directory +may look as follows:: + + $ ls -l /sys/bus/acpi/devices/INT3404:00/ + total 0 + ... + -r--r--r-- 1 root root 4096 Dec 13 20:38 state0 + -r--r--r-- 1 root root 4096 Dec 13 20:38 state1 + -r--r--r-- 1 root root 4096 Dec 13 20:38 state10 + -r--r--r-- 1 root root 4096 Dec 13 20:38 state11 + -r--r--r-- 1 root root 4096 Dec 13 20:38 state2 + -r--r--r-- 1 root root 4096 Dec 13 20:38 state3 + -r--r--r-- 1 root root 4096 Dec 13 20:38 state4 + -r--r--r-- 1 root root 4096 Dec 13 20:38 state5 + -r--r--r-- 1 root root 4096 Dec 13 20:38 state6 + -r--r--r-- 1 root root 4096 Dec 13 20:38 state7 + -r--r--r-- 1 root root 4096 Dec 13 20:38 state8 + -r--r--r-- 1 root root 4096 Dec 13 20:38 state9 + -r--r--r-- 1 root root 4096 Dec 13 01:00 status + ... + +where each of the "state*" files represents one performance state of the fan +and contains a colon-separated list of 5 integer numbers (fields) with the +following interpretation:: + + control_percent:trip_point_index:speed_rpm:noise_level_mdb:power_mw + +* ``control_percent``: The percent value to be used to set the fan speed to a + specific level using the _FSL object (0-100). + +* ``trip_point_index``: The active cooling trip point number that corresponds + to this performance state (0-9). + +* ``speed_rpm``: Speed of the fan in rotations per minute. + +* ``noise_level_mdb``: Audible noise emitted by the fan in this state in + millidecibels. + +* ``power_mw``: Power draw of the fan in this state in milliwatts. + +For example:: + + $cat /sys/bus/acpi/devices/INT3404:00/state1 + 25:0:3200:12500:1250 + +When a given field is not populated or its value provided by the platform +firmware is invalid, the "not-defined" string is shown instead of the value. + +ACPI Fan Fine Grain Control +============================= + +When _FIF object specifies support for fine grain control, then fan speed +can be set from 0 to 100% with the recommended minimum "step size" via +_FSL object. User can adjust fan speed using thermal sysfs cooling device. + +Here use can look at fan performance states for a reference speed (speed_rpm) +and set it by changing cooling device cur_state. If the fine grain control +is supported then user can also adjust to some other speeds which are +not defined in the performance states. + +The support of fine grain control is presented via sysfs attribute +"fine_grain_control". If fine grain control is present, this attribute +will show "1" otherwise "0". + +This sysfs attribute is presented in the same directory as performance states. + +ACPI Fan Performance Feedback +============================= + +The optional _FST object provides status information for the fan device. +This includes field to provide current fan speed in revolutions per minute +at which the fan is rotating. + +This speed is presented in the sysfs using the attribute "fan_speed_rpm", +in the same directory as performance states. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/acpi/initrd_table_override.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/acpi/initrd_table_override.rst index aeaf0b4e1..bb24fa6b5 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/acpi/initrd_table_override.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/acpi/initrd_table_override.rst @@ -1,115 +1,115 @@ -.. SPDX-License-Identifier: GPL-2.0 - -================================ -Upgrading ACPI tables via initrd -================================ - -What is this about -================== - -If the ACPI_TABLE_UPGRADE compile option is true, it is possible to -upgrade the ACPI execution environment that is defined by the ACPI tables -via upgrading the ACPI tables provided by the BIOS with an instrumented, -modified, more recent version one, or installing brand new ACPI tables. - -When building initrd with kernel in a single image, option -ACPI_TABLE_OVERRIDE_VIA_BUILTIN_INITRD should also be true for this -feature to work. - -For a full list of ACPI tables that can be upgraded/installed, take a look -at the char `*table_sigs[MAX_ACPI_SIGNATURE];` definition in -drivers/acpi/tables.c. - -All ACPI tables iasl (Intel's ACPI compiler and disassembler) knows should -be overridable, except: - - - ACPI_SIG_RSDP (has a signature of 6 bytes) - - ACPI_SIG_FACS (does not have an ordinary ACPI table header) - -Both could get implemented as well. - - -What is this for -================ - -Complain to your platform/BIOS vendor if you find a bug which is so severe -that a workaround is not accepted in the Linux kernel. And this facility -allows you to upgrade the buggy tables before your platform/BIOS vendor -releases an upgraded BIOS binary. - -This facility can be used by platform/BIOS vendors to provide a Linux -compatible environment without modifying the underlying platform firmware. - -This facility also provides a powerful feature to easily debug and test -ACPI BIOS table compatibility with the Linux kernel by modifying old -platform provided ACPI tables or inserting new ACPI tables. - -It can and should be enabled in any kernel because there is no functional -change with not instrumented initrds. - - -How does it work -================ -:: - - # Extract the machine's ACPI tables: - cd /tmp - acpidump >acpidump - acpixtract -a acpidump - # Disassemble, modify and recompile them: - iasl -d *.dat - # For example add this statement into a _PRT (PCI Routing Table) function - # of the DSDT: - Store("HELLO WORLD", debug) - # And increase the OEM Revision. For example, before modification: - DefinitionBlock ("DSDT.aml", "DSDT", 2, "INTEL ", "TEMPLATE", 0x00000000) - # After modification: - DefinitionBlock ("DSDT.aml", "DSDT", 2, "INTEL ", "TEMPLATE", 0x00000001) - iasl -sa dsdt.dsl - # Add the raw ACPI tables to an uncompressed cpio archive. - # They must be put into a /kernel/firmware/acpi directory inside the cpio - # archive. Note that if the table put here matches a platform table - # (similar Table Signature, and similar OEMID, and similar OEM Table ID) - # with a more recent OEM Revision, the platform table will be upgraded by - # this table. If the table put here doesn't match a platform table - # (dissimilar Table Signature, or dissimilar OEMID, or dissimilar OEM Table - # ID), this table will be appended. - mkdir -p kernel/firmware/acpi - cp dsdt.aml kernel/firmware/acpi - # A maximum of "NR_ACPI_INITRD_TABLES (64)" tables are currently allowed - # (see osl.c): - iasl -sa facp.dsl - iasl -sa ssdt1.dsl - cp facp.aml kernel/firmware/acpi - cp ssdt1.aml kernel/firmware/acpi - # The uncompressed cpio archive must be the first. Other, typically - # compressed cpio archives, must be concatenated on top of the uncompressed - # one. Following command creates the uncompressed cpio archive and - # concatenates the original initrd on top: - find kernel | cpio -H newc --create > /boot/instrumented_initrd - cat /boot/initrd >>/boot/instrumented_initrd - # reboot with increased acpi debug level, e.g. boot params: - acpi.debug_level=0x2 acpi.debug_layer=0xFFFFFFFF - # and check your syslog: - [ 1.268089] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] - [ 1.272091] [ACPI Debug] String [0x0B] "HELLO WORLD" - -iasl is able to disassemble and recompile quite a lot different, -also static ACPI tables. - - -Where to retrieve userspace tools -================================= - -iasl and acpixtract are part of Intel's ACPICA project: -https://acpica.org/ - -and should be packaged by distributions (for example in the acpica package -on SUSE). - -acpidump can be found in Len Browns pmtools: -ftp://kernel.org/pub/linux/kernel/people/lenb/acpi/utils/pmtools/acpidump - -This tool is also part of the acpica package on SUSE. -Alternatively, used ACPI tables can be retrieved via sysfs in latest kernels: -/sys/firmware/acpi/tables +.. SPDX-License-Identifier: GPL-2.0 + +================================ +Upgrading ACPI tables via initrd +================================ + +What is this about +================== + +If the ACPI_TABLE_UPGRADE compile option is true, it is possible to +upgrade the ACPI execution environment that is defined by the ACPI tables +via upgrading the ACPI tables provided by the BIOS with an instrumented, +modified, more recent version one, or installing brand new ACPI tables. + +When building initrd with kernel in a single image, option +ACPI_TABLE_OVERRIDE_VIA_BUILTIN_INITRD should also be true for this +feature to work. + +For a full list of ACPI tables that can be upgraded/installed, take a look +at the char `*table_sigs[MAX_ACPI_SIGNATURE];` definition in +drivers/acpi/tables.c. + +All ACPI tables iasl (Intel's ACPI compiler and disassembler) knows should +be overridable, except: + + - ACPI_SIG_RSDP (has a signature of 6 bytes) + - ACPI_SIG_FACS (does not have an ordinary ACPI table header) + +Both could get implemented as well. + + +What is this for +================ + +Complain to your platform/BIOS vendor if you find a bug which is so severe +that a workaround is not accepted in the Linux kernel. And this facility +allows you to upgrade the buggy tables before your platform/BIOS vendor +releases an upgraded BIOS binary. + +This facility can be used by platform/BIOS vendors to provide a Linux +compatible environment without modifying the underlying platform firmware. + +This facility also provides a powerful feature to easily debug and test +ACPI BIOS table compatibility with the Linux kernel by modifying old +platform provided ACPI tables or inserting new ACPI tables. + +It can and should be enabled in any kernel because there is no functional +change with not instrumented initrds. + + +How does it work +================ +:: + + # Extract the machine's ACPI tables: + cd /tmp + acpidump >acpidump + acpixtract -a acpidump + # Disassemble, modify and recompile them: + iasl -d *.dat + # For example add this statement into a _PRT (PCI Routing Table) function + # of the DSDT: + Store("HELLO WORLD", debug) + # And increase the OEM Revision. For example, before modification: + DefinitionBlock ("DSDT.aml", "DSDT", 2, "INTEL ", "TEMPLATE", 0x00000000) + # After modification: + DefinitionBlock ("DSDT.aml", "DSDT", 2, "INTEL ", "TEMPLATE", 0x00000001) + iasl -sa dsdt.dsl + # Add the raw ACPI tables to an uncompressed cpio archive. + # They must be put into a /kernel/firmware/acpi directory inside the cpio + # archive. Note that if the table put here matches a platform table + # (similar Table Signature, and similar OEMID, and similar OEM Table ID) + # with a more recent OEM Revision, the platform table will be upgraded by + # this table. If the table put here doesn't match a platform table + # (dissimilar Table Signature, or dissimilar OEMID, or dissimilar OEM Table + # ID), this table will be appended. + mkdir -p kernel/firmware/acpi + cp dsdt.aml kernel/firmware/acpi + # A maximum of "NR_ACPI_INITRD_TABLES (64)" tables are currently allowed + # (see osl.c): + iasl -sa facp.dsl + iasl -sa ssdt1.dsl + cp facp.aml kernel/firmware/acpi + cp ssdt1.aml kernel/firmware/acpi + # The uncompressed cpio archive must be the first. Other, typically + # compressed cpio archives, must be concatenated on top of the uncompressed + # one. Following command creates the uncompressed cpio archive and + # concatenates the original initrd on top: + find kernel | cpio -H newc --create > /boot/instrumented_initrd + cat /boot/initrd >>/boot/instrumented_initrd + # reboot with increased acpi debug level, e.g. boot params: + acpi.debug_level=0x2 acpi.debug_layer=0xFFFFFFFF + # and check your syslog: + [ 1.268089] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] + [ 1.272091] [ACPI Debug] String [0x0B] "HELLO WORLD" + +iasl is able to disassemble and recompile quite a lot different, +also static ACPI tables. + + +Where to retrieve userspace tools +================================= + +iasl and acpixtract are part of Intel's ACPICA project: +https://acpica.org/ + +and should be packaged by distributions (for example in the acpica package +on SUSE). + +acpidump can be found in Len Browns pmtools: +ftp://kernel.org/pub/linux/kernel/people/lenb/acpi/utils/pmtools/acpidump + +This tool is also part of the acpica package on SUSE. +Alternatively, used ACPI tables can be retrieved via sysfs in latest kernels: +/sys/firmware/acpi/tables diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/binderfs.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/binderfs.rst index 1912dca7c..41a4db00d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/binderfs.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/binderfs.rst @@ -1,87 +1,87 @@ -.. SPDX-License-Identifier: GPL-2.0 - -The Android binderfs Filesystem -=============================== - -Android binderfs is a filesystem for the Android binder IPC mechanism. It -allows to dynamically add and remove binder devices at runtime. Binder devices -located in a new binderfs instance are independent of binder devices located in -other binderfs instances. Mounting a new binderfs instance makes it possible -to get a set of private binder devices. - -Mounting binderfs ------------------ - -Android binderfs can be mounted with:: - - mkdir /dev/binderfs - mount -t binder binder /dev/binderfs - -at which point a new instance of binderfs will show up at ``/dev/binderfs``. -In a fresh instance of binderfs no binder devices will be present. There will -only be a ``binder-control`` device which serves as the request handler for -binderfs. Mounting another binderfs instance at a different location will -create a new and separate instance from all other binderfs mounts. This is -identical to the behavior of e.g. ``devpts`` and ``tmpfs``. The Android -binderfs filesystem can be mounted in user namespaces. - -Options -------- -max - binderfs instances can be mounted with a limit on the number of binder - devices that can be allocated. The ``max=`` mount option serves as - a per-instance limit. If ``max=`` is set then only ```` number - of binder devices can be allocated in this binderfs instance. - -stats - Using ``stats=global`` enables global binder statistics. - ``stats=global`` is only available for a binderfs instance mounted in the - initial user namespace. An attempt to use the option to mount a binderfs - instance in another user namespace will return a permission error. - -Allocating binder Devices -------------------------- - -.. _ioctl: http://man7.org/linux/man-pages/man2/ioctl.2.html - -To allocate a new binder device in a binderfs instance a request needs to be -sent through the ``binder-control`` device node. A request is sent in the form -of an `ioctl() `_. - -What a program needs to do is to open the ``binder-control`` device node and -send a ``BINDER_CTL_ADD`` request to the kernel. Users of binderfs need to -tell the kernel which name the new binder device should get. By default a name -can only contain up to ``BINDERFS_MAX_NAME`` chars including the terminating -zero byte. - -Once the request is made via an `ioctl() `_ passing a ``struct -binder_device`` with the name to the kernel it will allocate a new binder -device and return the major and minor number of the new device in the struct -(This is necessary because binderfs allocates a major device number -dynamically.). After the `ioctl() `_ returns there will be a new -binder device located under /dev/binderfs with the chosen name. - -Deleting binder Devices ------------------------ - -.. _unlink: http://man7.org/linux/man-pages/man2/unlink.2.html -.. _rm: http://man7.org/linux/man-pages/man1/rm.1.html - -Binderfs binder devices can be deleted via `unlink() `_. This means -that the `rm() `_ tool can be used to delete them. Note that the -``binder-control`` device cannot be deleted since this would make the binderfs -instance unusable. The ``binder-control`` device will be deleted when the -binderfs instance is unmounted and all references to it have been dropped. - -Binder features ---------------- - -Assuming an instance of binderfs has been mounted at ``/dev/binderfs``, the -features supported by the binder driver can be located under -``/dev/binderfs/features/``. The presence of individual files can be tested -to determine whether a particular feature is supported by the driver. - -Example:: - - cat /dev/binderfs/features/oneway_spam_detection - 1 +.. SPDX-License-Identifier: GPL-2.0 + +The Android binderfs Filesystem +=============================== + +Android binderfs is a filesystem for the Android binder IPC mechanism. It +allows to dynamically add and remove binder devices at runtime. Binder devices +located in a new binderfs instance are independent of binder devices located in +other binderfs instances. Mounting a new binderfs instance makes it possible +to get a set of private binder devices. + +Mounting binderfs +----------------- + +Android binderfs can be mounted with:: + + mkdir /dev/binderfs + mount -t binder binder /dev/binderfs + +at which point a new instance of binderfs will show up at ``/dev/binderfs``. +In a fresh instance of binderfs no binder devices will be present. There will +only be a ``binder-control`` device which serves as the request handler for +binderfs. Mounting another binderfs instance at a different location will +create a new and separate instance from all other binderfs mounts. This is +identical to the behavior of e.g. ``devpts`` and ``tmpfs``. The Android +binderfs filesystem can be mounted in user namespaces. + +Options +------- +max + binderfs instances can be mounted with a limit on the number of binder + devices that can be allocated. The ``max=`` mount option serves as + a per-instance limit. If ``max=`` is set then only ```` number + of binder devices can be allocated in this binderfs instance. + +stats + Using ``stats=global`` enables global binder statistics. + ``stats=global`` is only available for a binderfs instance mounted in the + initial user namespace. An attempt to use the option to mount a binderfs + instance in another user namespace will return a permission error. + +Allocating binder Devices +------------------------- + +.. _ioctl: http://man7.org/linux/man-pages/man2/ioctl.2.html + +To allocate a new binder device in a binderfs instance a request needs to be +sent through the ``binder-control`` device node. A request is sent in the form +of an `ioctl() `_. + +What a program needs to do is to open the ``binder-control`` device node and +send a ``BINDER_CTL_ADD`` request to the kernel. Users of binderfs need to +tell the kernel which name the new binder device should get. By default a name +can only contain up to ``BINDERFS_MAX_NAME`` chars including the terminating +zero byte. + +Once the request is made via an `ioctl() `_ passing a ``struct +binder_device`` with the name to the kernel it will allocate a new binder +device and return the major and minor number of the new device in the struct +(This is necessary because binderfs allocates a major device number +dynamically.). After the `ioctl() `_ returns there will be a new +binder device located under /dev/binderfs with the chosen name. + +Deleting binder Devices +----------------------- + +.. _unlink: http://man7.org/linux/man-pages/man2/unlink.2.html +.. _rm: http://man7.org/linux/man-pages/man1/rm.1.html + +Binderfs binder devices can be deleted via `unlink() `_. This means +that the `rm() `_ tool can be used to delete them. Note that the +``binder-control`` device cannot be deleted since this would make the binderfs +instance unusable. The ``binder-control`` device will be deleted when the +binderfs instance is unmounted and all references to it have been dropped. + +Binder features +--------------- + +Assuming an instance of binderfs has been mounted at ``/dev/binderfs``, the +features supported by the binder driver can be located under +``/dev/binderfs/features/``. The presence of individual files can be tested +to determine whether a particular feature is supported by the driver. + +Example:: + + cat /dev/binderfs/features/oneway_spam_detection + 1 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/cgroup-v1/pids.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/cgroup-v1/pids.rst index 952898845..0f9f9a7b1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/cgroup-v1/pids.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/cgroup-v1/pids.rst @@ -1,93 +1,93 @@ -========================= -Process Number Controller -========================= - -Abstract --------- - -The process number controller is used to allow a cgroup hierarchy to stop any -new tasks from being fork()'d or clone()'d after a certain limit is reached. - -Since it is trivial to hit the task limit without hitting any kmemcg limits in -place, PIDs are a fundamental resource. As such, PID exhaustion must be -preventable in the scope of a cgroup hierarchy by allowing resource limiting of -the number of tasks in a cgroup. - -Usage ------ - -In order to use the `pids` controller, set the maximum number of tasks in -pids.max (this is not available in the root cgroup for obvious reasons). The -number of processes currently in the cgroup is given by pids.current. - -Organisational operations are not blocked by cgroup policies, so it is possible -to have pids.current > pids.max. This can be done by either setting the limit to -be smaller than pids.current, or attaching enough processes to the cgroup such -that pids.current > pids.max. However, it is not possible to violate a cgroup -policy through fork() or clone(). fork() and clone() will return -EAGAIN if the -creation of a new process would cause a cgroup policy to be violated. - -To set a cgroup to have no limit, set pids.max to "max". This is the default for -all new cgroups (N.B. that PID limits are hierarchical, so the most stringent -limit in the hierarchy is followed). - -pids.current tracks all child cgroup hierarchies, so parent/pids.current is a -superset of parent/child/pids.current. - -The pids.events file contains event counters: - - - max: Number of times fork failed in the cgroup because limit was hit in - self or ancestors. - -Example -------- - -First, we mount the pids controller:: - - # mkdir -p /sys/fs/cgroup/pids - # mount -t cgroup -o pids none /sys/fs/cgroup/pids - -Then we create a hierarchy, set limits and attach processes to it:: - - # mkdir -p /sys/fs/cgroup/pids/parent/child - # echo 2 > /sys/fs/cgroup/pids/parent/pids.max - # echo $$ > /sys/fs/cgroup/pids/parent/cgroup.procs - # cat /sys/fs/cgroup/pids/parent/pids.current - 2 - # - -It should be noted that attempts to overcome the set limit (2 in this case) will -fail:: - - # cat /sys/fs/cgroup/pids/parent/pids.current - 2 - # ( /bin/echo "Here's some processes for you." | cat ) - sh: fork: Resource temporary unavailable - # - -Even if we migrate to a child cgroup (which doesn't have a set limit), we will -not be able to overcome the most stringent limit in the hierarchy (in this case, -parent's):: - - # echo $$ > /sys/fs/cgroup/pids/parent/child/cgroup.procs - # cat /sys/fs/cgroup/pids/parent/pids.current - 2 - # cat /sys/fs/cgroup/pids/parent/child/pids.current - 2 - # cat /sys/fs/cgroup/pids/parent/child/pids.max - max - # ( /bin/echo "Here's some processes for you." | cat ) - sh: fork: Resource temporary unavailable - # - -We can set a limit that is smaller than pids.current, which will stop any new -processes from being forked at all (note that the shell itself counts towards -pids.current):: - - # echo 1 > /sys/fs/cgroup/pids/parent/pids.max - # /bin/echo "We can't even spawn a single process now." - sh: fork: Resource temporary unavailable - # echo 0 > /sys/fs/cgroup/pids/parent/pids.max - # /bin/echo "We can't even spawn a single process now." - sh: fork: Resource temporary unavailable - # +========================= +Process Number Controller +========================= + +Abstract +-------- + +The process number controller is used to allow a cgroup hierarchy to stop any +new tasks from being fork()'d or clone()'d after a certain limit is reached. + +Since it is trivial to hit the task limit without hitting any kmemcg limits in +place, PIDs are a fundamental resource. As such, PID exhaustion must be +preventable in the scope of a cgroup hierarchy by allowing resource limiting of +the number of tasks in a cgroup. + +Usage +----- + +In order to use the `pids` controller, set the maximum number of tasks in +pids.max (this is not available in the root cgroup for obvious reasons). The +number of processes currently in the cgroup is given by pids.current. + +Organisational operations are not blocked by cgroup policies, so it is possible +to have pids.current > pids.max. This can be done by either setting the limit to +be smaller than pids.current, or attaching enough processes to the cgroup such +that pids.current > pids.max. However, it is not possible to violate a cgroup +policy through fork() or clone(). fork() and clone() will return -EAGAIN if the +creation of a new process would cause a cgroup policy to be violated. + +To set a cgroup to have no limit, set pids.max to "max". This is the default for +all new cgroups (N.B. that PID limits are hierarchical, so the most stringent +limit in the hierarchy is followed). + +pids.current tracks all child cgroup hierarchies, so parent/pids.current is a +superset of parent/child/pids.current. + +The pids.events file contains event counters: + + - max: Number of times fork failed in the cgroup because limit was hit in + self or ancestors. + +Example +------- + +First, we mount the pids controller:: + + # mkdir -p /sys/fs/cgroup/pids + # mount -t cgroup -o pids none /sys/fs/cgroup/pids + +Then we create a hierarchy, set limits and attach processes to it:: + + # mkdir -p /sys/fs/cgroup/pids/parent/child + # echo 2 > /sys/fs/cgroup/pids/parent/pids.max + # echo $$ > /sys/fs/cgroup/pids/parent/cgroup.procs + # cat /sys/fs/cgroup/pids/parent/pids.current + 2 + # + +It should be noted that attempts to overcome the set limit (2 in this case) will +fail:: + + # cat /sys/fs/cgroup/pids/parent/pids.current + 2 + # ( /bin/echo "Here's some processes for you." | cat ) + sh: fork: Resource temporary unavailable + # + +Even if we migrate to a child cgroup (which doesn't have a set limit), we will +not be able to overcome the most stringent limit in the hierarchy (in this case, +parent's):: + + # echo $$ > /sys/fs/cgroup/pids/parent/child/cgroup.procs + # cat /sys/fs/cgroup/pids/parent/pids.current + 2 + # cat /sys/fs/cgroup/pids/parent/child/pids.current + 2 + # cat /sys/fs/cgroup/pids/parent/child/pids.max + max + # ( /bin/echo "Here's some processes for you." | cat ) + sh: fork: Resource temporary unavailable + # + +We can set a limit that is smaller than pids.current, which will stop any new +processes from being forked at all (note that the shell itself counts towards +pids.current):: + + # echo 1 > /sys/fs/cgroup/pids/parent/pids.max + # /bin/echo "We can't even spawn a single process now." + sh: fork: Resource temporary unavailable + # echo 0 > /sys/fs/cgroup/pids/parent/pids.max + # /bin/echo "We can't even spawn a single process now." + sh: fork: Resource temporary unavailable + # diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/cputopology.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/cputopology.rst index c21e1c121..d29cacc9b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/cputopology.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/cputopology.rst @@ -1,101 +1,101 @@ -=========================================== -How CPU topology info is exported via sysfs -=========================================== - -CPU topology info is exported via sysfs. Items (attributes) are similar -to /proc/cpuinfo output of some architectures. They reside in -/sys/devices/system/cpu/cpuX/topology/. Please refer to the ABI file: -Documentation/ABI/stable/sysfs-devices-system-cpu. - -Architecture-neutral, drivers/base/topology.c, exports these attributes. -However the die, cluster, book, and drawer hierarchy related sysfs files will -only be created if an architecture provides the related macros as described -below. - -For an architecture to support this feature, it must define some of -these macros in include/asm-XXX/topology.h:: - - #define topology_physical_package_id(cpu) - #define topology_die_id(cpu) - #define topology_cluster_id(cpu) - #define topology_core_id(cpu) - #define topology_book_id(cpu) - #define topology_drawer_id(cpu) - #define topology_sibling_cpumask(cpu) - #define topology_core_cpumask(cpu) - #define topology_cluster_cpumask(cpu) - #define topology_die_cpumask(cpu) - #define topology_book_cpumask(cpu) - #define topology_drawer_cpumask(cpu) - -The type of ``**_id macros`` is int. -The type of ``**_cpumask macros`` is ``(const) struct cpumask *``. The latter -correspond with appropriate ``**_siblings`` sysfs attributes (except for -topology_sibling_cpumask() which corresponds with thread_siblings). - -To be consistent on all architectures, include/linux/topology.h -provides default definitions for any of the above macros that are -not defined by include/asm-XXX/topology.h: - -1) topology_physical_package_id: -1 -2) topology_die_id: -1 -3) topology_cluster_id: -1 -4) topology_core_id: 0 -5) topology_book_id: -1 -6) topology_drawer_id: -1 -7) topology_sibling_cpumask: just the given CPU -8) topology_core_cpumask: just the given CPU -9) topology_cluster_cpumask: just the given CPU -10) topology_die_cpumask: just the given CPU -11) topology_book_cpumask: just the given CPU -12) topology_drawer_cpumask: just the given CPU - -Additionally, CPU topology information is provided under -/sys/devices/system/cpu and includes these files. The internal -source for the output is in brackets ("[]"). - - =========== ========================================================== - kernel_max: the maximum CPU index allowed by the kernel configuration. - [NR_CPUS-1] - - offline: CPUs that are not online because they have been - HOTPLUGGED off or exceed the limit of CPUs allowed by the - kernel configuration (kernel_max above). - [~cpu_online_mask + cpus >= NR_CPUS] - - online: CPUs that are online and being scheduled [cpu_online_mask] - - possible: CPUs that have been allocated resources and can be - brought online if they are present. [cpu_possible_mask] - - present: CPUs that have been identified as being present in the - system. [cpu_present_mask] - =========== ========================================================== - -The format for the above output is compatible with cpulist_parse() -[see ]. Some examples follow. - -In this example, there are 64 CPUs in the system but cpus 32-63 exceed -the kernel max which is limited to 0..31 by the NR_CPUS config option -being 32. Note also that CPUs 2 and 4-31 are not online but could be -brought online as they are both present and possible:: - - kernel_max: 31 - offline: 2,4-31,32-63 - online: 0-1,3 - possible: 0-31 - present: 0-31 - -In this example, the NR_CPUS config option is 128, but the kernel was -started with possible_cpus=144. There are 4 CPUs in the system and cpu2 -was manually taken offline (and is the only CPU that can be brought -online.):: - - kernel_max: 127 - offline: 2,4-127,128-143 - online: 0-1,3 - possible: 0-127 - present: 0-3 - -See Documentation/core-api/cpu_hotplug.rst for the possible_cpus=NUM -kernel start parameter as well as more information on the various cpumasks. +=========================================== +How CPU topology info is exported via sysfs +=========================================== + +CPU topology info is exported via sysfs. Items (attributes) are similar +to /proc/cpuinfo output of some architectures. They reside in +/sys/devices/system/cpu/cpuX/topology/. Please refer to the ABI file: +Documentation/ABI/stable/sysfs-devices-system-cpu. + +Architecture-neutral, drivers/base/topology.c, exports these attributes. +However the die, cluster, book, and drawer hierarchy related sysfs files will +only be created if an architecture provides the related macros as described +below. + +For an architecture to support this feature, it must define some of +these macros in include/asm-XXX/topology.h:: + + #define topology_physical_package_id(cpu) + #define topology_die_id(cpu) + #define topology_cluster_id(cpu) + #define topology_core_id(cpu) + #define topology_book_id(cpu) + #define topology_drawer_id(cpu) + #define topology_sibling_cpumask(cpu) + #define topology_core_cpumask(cpu) + #define topology_cluster_cpumask(cpu) + #define topology_die_cpumask(cpu) + #define topology_book_cpumask(cpu) + #define topology_drawer_cpumask(cpu) + +The type of ``**_id macros`` is int. +The type of ``**_cpumask macros`` is ``(const) struct cpumask *``. The latter +correspond with appropriate ``**_siblings`` sysfs attributes (except for +topology_sibling_cpumask() which corresponds with thread_siblings). + +To be consistent on all architectures, include/linux/topology.h +provides default definitions for any of the above macros that are +not defined by include/asm-XXX/topology.h: + +1) topology_physical_package_id: -1 +2) topology_die_id: -1 +3) topology_cluster_id: -1 +4) topology_core_id: 0 +5) topology_book_id: -1 +6) topology_drawer_id: -1 +7) topology_sibling_cpumask: just the given CPU +8) topology_core_cpumask: just the given CPU +9) topology_cluster_cpumask: just the given CPU +10) topology_die_cpumask: just the given CPU +11) topology_book_cpumask: just the given CPU +12) topology_drawer_cpumask: just the given CPU + +Additionally, CPU topology information is provided under +/sys/devices/system/cpu and includes these files. The internal +source for the output is in brackets ("[]"). + + =========== ========================================================== + kernel_max: the maximum CPU index allowed by the kernel configuration. + [NR_CPUS-1] + + offline: CPUs that are not online because they have been + HOTPLUGGED off or exceed the limit of CPUs allowed by the + kernel configuration (kernel_max above). + [~cpu_online_mask + cpus >= NR_CPUS] + + online: CPUs that are online and being scheduled [cpu_online_mask] + + possible: CPUs that have been allocated resources and can be + brought online if they are present. [cpu_possible_mask] + + present: CPUs that have been identified as being present in the + system. [cpu_present_mask] + =========== ========================================================== + +The format for the above output is compatible with cpulist_parse() +[see ]. Some examples follow. + +In this example, there are 64 CPUs in the system but cpus 32-63 exceed +the kernel max which is limited to 0..31 by the NR_CPUS config option +being 32. Note also that CPUs 2 and 4-31 are not online but could be +brought online as they are both present and possible:: + + kernel_max: 31 + offline: 2,4-31,32-63 + online: 0-1,3 + possible: 0-31 + present: 0-31 + +In this example, the NR_CPUS config option is 128, but the kernel was +started with possible_cpus=144. There are 4 CPUs in the system and cpu2 +was manually taken offline (and is the only CPU that can be brought +online.):: + + kernel_max: 127 + offline: 2,4-127,128-143 + online: 0-1,3 + possible: 0-127 + present: 0-3 + +See Documentation/core-api/cpu_hotplug.rst for the possible_cpus=NUM +kernel start parameter as well as more information on the various cpumasks. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/dm-io.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/dm-io.rst index 4a43cd0e2..d2492917a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/dm-io.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/dm-io.rst @@ -1,75 +1,75 @@ -===== -dm-io -===== - -Dm-io provides synchronous and asynchronous I/O services. There are three -types of I/O services available, and each type has a sync and an async -version. - -The user must set up an io_region structure to describe the desired location -of the I/O. Each io_region indicates a block-device along with the starting -sector and size of the region:: - - struct io_region { - struct block_device *bdev; - sector_t sector; - sector_t count; - }; - -Dm-io can read from one io_region or write to one or more io_regions. Writes -to multiple regions are specified by an array of io_region structures. - -The first I/O service type takes a list of memory pages as the data buffer for -the I/O, along with an offset into the first page:: - - struct page_list { - struct page_list *next; - struct page *page; - }; - - int dm_io_sync(unsigned int num_regions, struct io_region *where, int rw, - struct page_list *pl, unsigned int offset, - unsigned long *error_bits); - int dm_io_async(unsigned int num_regions, struct io_region *where, int rw, - struct page_list *pl, unsigned int offset, - io_notify_fn fn, void *context); - -The second I/O service type takes an array of bio vectors as the data buffer -for the I/O. This service can be handy if the caller has a pre-assembled bio, -but wants to direct different portions of the bio to different devices:: - - int dm_io_sync_bvec(unsigned int num_regions, struct io_region *where, - int rw, struct bio_vec *bvec, - unsigned long *error_bits); - int dm_io_async_bvec(unsigned int num_regions, struct io_region *where, - int rw, struct bio_vec *bvec, - io_notify_fn fn, void *context); - -The third I/O service type takes a pointer to a vmalloc'd memory buffer as the -data buffer for the I/O. This service can be handy if the caller needs to do -I/O to a large region but doesn't want to allocate a large number of individual -memory pages:: - - int dm_io_sync_vm(unsigned int num_regions, struct io_region *where, int rw, - void *data, unsigned long *error_bits); - int dm_io_async_vm(unsigned int num_regions, struct io_region *where, int rw, - void *data, io_notify_fn fn, void *context); - -Callers of the asynchronous I/O services must include the name of a completion -callback routine and a pointer to some context data for the I/O:: - - typedef void (*io_notify_fn)(unsigned long error, void *context); - -The "error" parameter in this callback, as well as the `*error` parameter in -all of the synchronous versions, is a bitset (instead of a simple error value). -In the case of an write-I/O to multiple regions, this bitset allows dm-io to -indicate success or failure on each individual region. - -Before using any of the dm-io services, the user should call dm_io_get() -and specify the number of pages they expect to perform I/O on concurrently. -Dm-io will attempt to resize its mempool to make sure enough pages are -always available in order to avoid unnecessary waiting while performing I/O. - -When the user is finished using the dm-io services, they should call -dm_io_put() and specify the same number of pages that were given on the -dm_io_get() call. +===== +dm-io +===== + +Dm-io provides synchronous and asynchronous I/O services. There are three +types of I/O services available, and each type has a sync and an async +version. + +The user must set up an io_region structure to describe the desired location +of the I/O. Each io_region indicates a block-device along with the starting +sector and size of the region:: + + struct io_region { + struct block_device *bdev; + sector_t sector; + sector_t count; + }; + +Dm-io can read from one io_region or write to one or more io_regions. Writes +to multiple regions are specified by an array of io_region structures. + +The first I/O service type takes a list of memory pages as the data buffer for +the I/O, along with an offset into the first page:: + + struct page_list { + struct page_list *next; + struct page *page; + }; + + int dm_io_sync(unsigned int num_regions, struct io_region *where, int rw, + struct page_list *pl, unsigned int offset, + unsigned long *error_bits); + int dm_io_async(unsigned int num_regions, struct io_region *where, int rw, + struct page_list *pl, unsigned int offset, + io_notify_fn fn, void *context); + +The second I/O service type takes an array of bio vectors as the data buffer +for the I/O. This service can be handy if the caller has a pre-assembled bio, +but wants to direct different portions of the bio to different devices:: + + int dm_io_sync_bvec(unsigned int num_regions, struct io_region *where, + int rw, struct bio_vec *bvec, + unsigned long *error_bits); + int dm_io_async_bvec(unsigned int num_regions, struct io_region *where, + int rw, struct bio_vec *bvec, + io_notify_fn fn, void *context); + +The third I/O service type takes a pointer to a vmalloc'd memory buffer as the +data buffer for the I/O. This service can be handy if the caller needs to do +I/O to a large region but doesn't want to allocate a large number of individual +memory pages:: + + int dm_io_sync_vm(unsigned int num_regions, struct io_region *where, int rw, + void *data, unsigned long *error_bits); + int dm_io_async_vm(unsigned int num_regions, struct io_region *where, int rw, + void *data, io_notify_fn fn, void *context); + +Callers of the asynchronous I/O services must include the name of a completion +callback routine and a pointer to some context data for the I/O:: + + typedef void (*io_notify_fn)(unsigned long error, void *context); + +The "error" parameter in this callback, as well as the `*error` parameter in +all of the synchronous versions, is a bitset (instead of a simple error value). +In the case of an write-I/O to multiple regions, this bitset allows dm-io to +indicate success or failure on each individual region. + +Before using any of the dm-io services, the user should call dm_io_get() +and specify the number of pages they expect to perform I/O on concurrently. +Dm-io will attempt to resize its mempool to make sure enough pages are +always available in order to avoid unnecessary waiting while performing I/O. + +When the user is finished using the dm-io services, they should call +dm_io_put() and specify the same number of pages that were given on the +dm_io_get() call. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/dm-service-time.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/dm-service-time.rst index b37b6cdf7..facf277fc 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/dm-service-time.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/dm-service-time.rst @@ -1,101 +1,101 @@ -=============== -dm-service-time -=============== - -dm-service-time is a path selector module for device-mapper targets, -which selects a path with the shortest estimated service time for -the incoming I/O. - -The service time for each path is estimated by dividing the total size -of in-flight I/Os on a path with the performance value of the path. -The performance value is a relative throughput value among all paths -in a path-group, and it can be specified as a table argument. - -The path selector name is 'service-time'. - -Table parameters for each path: - - [ []] - : - The number of I/Os to dispatch using the selected - path before switching to the next path. - If not given, internal default is used. To check - the default value, see the activated table. - : - The relative throughput value of the path - among all paths in the path-group. - The valid range is 0-100. - If not given, minimum value '1' is used. - If '0' is given, the path isn't selected while - other paths having a positive value are available. - -Status for each path: - - - : - 'A' if the path is active, 'F' if the path is failed. - : - The number of path failures. - : - The size of in-flight I/Os on the path. - : - The relative throughput value of the path - among all paths in the path-group. - - -Algorithm -========= - -dm-service-time adds the I/O size to 'in-flight-size' when the I/O is -dispatched and subtracts when completed. -Basically, dm-service-time selects a path having minimum service time -which is calculated by:: - - ('in-flight-size' + 'size-of-incoming-io') / 'relative_throughput' - -However, some optimizations below are used to reduce the calculation -as much as possible. - - 1. If the paths have the same 'relative_throughput', skip - the division and just compare the 'in-flight-size'. - - 2. If the paths have the same 'in-flight-size', skip the division - and just compare the 'relative_throughput'. - - 3. If some paths have non-zero 'relative_throughput' and others - have zero 'relative_throughput', ignore those paths with zero - 'relative_throughput'. - -If such optimizations can't be applied, calculate service time, and -compare service time. -If calculated service time is equal, the path having maximum -'relative_throughput' may be better. So compare 'relative_throughput' -then. - - -Examples -======== -In case that 2 paths (sda and sdb) are used with repeat_count == 128 -and sda has an average throughput 1GB/s and sdb has 4GB/s, -'relative_throughput' value may be '1' for sda and '4' for sdb:: - - # echo "0 10 multipath 0 0 1 1 service-time 0 2 2 8:0 128 1 8:16 128 4" \ - dmsetup create test - # - # dmsetup table - test: 0 10 multipath 0 0 1 1 service-time 0 2 2 8:0 128 1 8:16 128 4 - # - # dmsetup status - test: 0 10 multipath 2 0 0 0 1 1 E 0 2 2 8:0 A 0 0 1 8:16 A 0 0 4 - - -Or '2' for sda and '8' for sdb would be also true:: - - # echo "0 10 multipath 0 0 1 1 service-time 0 2 2 8:0 128 2 8:16 128 8" \ - dmsetup create test - # - # dmsetup table - test: 0 10 multipath 0 0 1 1 service-time 0 2 2 8:0 128 2 8:16 128 8 - # - # dmsetup status - test: 0 10 multipath 2 0 0 0 1 1 E 0 2 2 8:0 A 0 0 2 8:16 A 0 0 8 +=============== +dm-service-time +=============== + +dm-service-time is a path selector module for device-mapper targets, +which selects a path with the shortest estimated service time for +the incoming I/O. + +The service time for each path is estimated by dividing the total size +of in-flight I/Os on a path with the performance value of the path. +The performance value is a relative throughput value among all paths +in a path-group, and it can be specified as a table argument. + +The path selector name is 'service-time'. + +Table parameters for each path: + + [ []] + : + The number of I/Os to dispatch using the selected + path before switching to the next path. + If not given, internal default is used. To check + the default value, see the activated table. + : + The relative throughput value of the path + among all paths in the path-group. + The valid range is 0-100. + If not given, minimum value '1' is used. + If '0' is given, the path isn't selected while + other paths having a positive value are available. + +Status for each path: + + + : + 'A' if the path is active, 'F' if the path is failed. + : + The number of path failures. + : + The size of in-flight I/Os on the path. + : + The relative throughput value of the path + among all paths in the path-group. + + +Algorithm +========= + +dm-service-time adds the I/O size to 'in-flight-size' when the I/O is +dispatched and subtracts when completed. +Basically, dm-service-time selects a path having minimum service time +which is calculated by:: + + ('in-flight-size' + 'size-of-incoming-io') / 'relative_throughput' + +However, some optimizations below are used to reduce the calculation +as much as possible. + + 1. If the paths have the same 'relative_throughput', skip + the division and just compare the 'in-flight-size'. + + 2. If the paths have the same 'in-flight-size', skip the division + and just compare the 'relative_throughput'. + + 3. If some paths have non-zero 'relative_throughput' and others + have zero 'relative_throughput', ignore those paths with zero + 'relative_throughput'. + +If such optimizations can't be applied, calculate service time, and +compare service time. +If calculated service time is equal, the path having maximum +'relative_throughput' may be better. So compare 'relative_throughput' +then. + + +Examples +======== +In case that 2 paths (sda and sdb) are used with repeat_count == 128 +and sda has an average throughput 1GB/s and sdb has 4GB/s, +'relative_throughput' value may be '1' for sda and '4' for sdb:: + + # echo "0 10 multipath 0 0 1 1 service-time 0 2 2 8:0 128 1 8:16 128 4" \ + dmsetup create test + # + # dmsetup table + test: 0 10 multipath 0 0 1 1 service-time 0 2 2 8:0 128 1 8:16 128 4 + # + # dmsetup status + test: 0 10 multipath 2 0 0 0 1 1 E 0 2 2 8:0 A 0 0 1 8:16 A 0 0 4 + + +Or '2' for sda and '8' for sdb would be also true:: + + # echo "0 10 multipath 0 0 1 1 service-time 0 2 2 8:0 128 2 8:16 128 8" \ + dmsetup create test + # + # dmsetup table + test: 0 10 multipath 0 0 1 1 service-time 0 2 2 8:0 128 2 8:16 128 8 + # + # dmsetup status + test: 0 10 multipath 2 0 0 0 1 1 E 0 2 2 8:0 A 0 0 2 8:16 A 0 0 8 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/era.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/era.rst index f3ed2bbac..90dd5c670 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/era.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/era.rst @@ -1,116 +1,116 @@ -====== -dm-era -====== - -Introduction -============ - -dm-era is a target that behaves similar to the linear target. In -addition it keeps track of which blocks were written within a user -defined period of time called an 'era'. Each era target instance -maintains the current era as a monotonically increasing 32-bit -counter. - -Use cases include tracking changed blocks for backup software, and -partially invalidating the contents of a cache to restore cache -coherency after rolling back a vendor snapshot. - -Constructor -=========== - -era - - ================ ====================================================== - metadata dev fast device holding the persistent metadata - origin dev device holding data blocks that may change - block size block size of origin data device, granularity that is - tracked by the target - ================ ====================================================== - -Messages -======== - -None of the dm messages take any arguments. - -checkpoint ----------- - -Possibly move to a new era. You shouldn't assume the era has -incremented. After sending this message, you should check the -current era via the status line. - -take_metadata_snap ------------------- - -Create a clone of the metadata, to allow a userland process to read it. - -drop_metadata_snap ------------------- - -Drop the metadata snapshot. - -Status -====== - - <#used metadata blocks>/<#total metadata blocks> - - -========================= ============================================== -metadata block size Fixed block size for each metadata block in - sectors -#used metadata blocks Number of metadata blocks used -#total metadata blocks Total number of metadata blocks -current era The current era -held metadata root The location, in blocks, of the metadata root - that has been 'held' for userspace read - access. '-' indicates there is no held root -========================= ============================================== - -Detailed use case -================= - -The scenario of invalidating a cache when rolling back a vendor -snapshot was the primary use case when developing this target: - -Taking a vendor snapshot ------------------------- - -- Send a checkpoint message to the era target -- Make a note of the current era in its status line -- Take vendor snapshot (the era and snapshot should be forever - associated now). - -Rolling back to an vendor snapshot ----------------------------------- - -- Cache enters passthrough mode (see: dm-cache's docs in cache.txt) -- Rollback vendor storage -- Take metadata snapshot -- Ascertain which blocks have been written since the snapshot was taken - by checking each block's era -- Invalidate those blocks in the caching software -- Cache returns to writeback/writethrough mode - -Memory usage -============ - -The target uses a bitset to record writes in the current era. It also -has a spare bitset ready for switching over to a new era. Other than -that it uses a few 4k blocks for updating metadata:: - - (4 * nr_blocks) bytes + buffers - -Resilience -========== - -Metadata is updated on disk before a write to a previously unwritten -block is performed. As such dm-era should not be effected by a hard -crash such as power failure. - -Userland tools -============== - -Userland tools are found in the increasingly poorly named -thin-provisioning-tools project: - - https://github.com/jthornber/thin-provisioning-tools +====== +dm-era +====== + +Introduction +============ + +dm-era is a target that behaves similar to the linear target. In +addition it keeps track of which blocks were written within a user +defined period of time called an 'era'. Each era target instance +maintains the current era as a monotonically increasing 32-bit +counter. + +Use cases include tracking changed blocks for backup software, and +partially invalidating the contents of a cache to restore cache +coherency after rolling back a vendor snapshot. + +Constructor +=========== + +era + + ================ ====================================================== + metadata dev fast device holding the persistent metadata + origin dev device holding data blocks that may change + block size block size of origin data device, granularity that is + tracked by the target + ================ ====================================================== + +Messages +======== + +None of the dm messages take any arguments. + +checkpoint +---------- + +Possibly move to a new era. You shouldn't assume the era has +incremented. After sending this message, you should check the +current era via the status line. + +take_metadata_snap +------------------ + +Create a clone of the metadata, to allow a userland process to read it. + +drop_metadata_snap +------------------ + +Drop the metadata snapshot. + +Status +====== + + <#used metadata blocks>/<#total metadata blocks> + + +========================= ============================================== +metadata block size Fixed block size for each metadata block in + sectors +#used metadata blocks Number of metadata blocks used +#total metadata blocks Total number of metadata blocks +current era The current era +held metadata root The location, in blocks, of the metadata root + that has been 'held' for userspace read + access. '-' indicates there is no held root +========================= ============================================== + +Detailed use case +================= + +The scenario of invalidating a cache when rolling back a vendor +snapshot was the primary use case when developing this target: + +Taking a vendor snapshot +------------------------ + +- Send a checkpoint message to the era target +- Make a note of the current era in its status line +- Take vendor snapshot (the era and snapshot should be forever + associated now). + +Rolling back to an vendor snapshot +---------------------------------- + +- Cache enters passthrough mode (see: dm-cache's docs in cache.txt) +- Rollback vendor storage +- Take metadata snapshot +- Ascertain which blocks have been written since the snapshot was taken + by checking each block's era +- Invalidate those blocks in the caching software +- Cache returns to writeback/writethrough mode + +Memory usage +============ + +The target uses a bitset to record writes in the current era. It also +has a spare bitset ready for switching over to a new era. Other than +that it uses a few 4k blocks for updating metadata:: + + (4 * nr_blocks) bytes + buffers + +Resilience +========== + +Metadata is updated on disk before a write to a previously unwritten +block is performed. As such dm-era should not be effected by a hard +crash such as power failure. + +Userland tools +============== + +Userland tools are found in the increasingly poorly named +thin-provisioning-tools project: + + https://github.com/jthornber/thin-provisioning-tools diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/unstriped.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/unstriped.rst index af2fe4d9b..5772ccdd1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/unstriped.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/unstriped.rst @@ -1,135 +1,135 @@ -================================ -Device-mapper "unstriped" target -================================ - -Introduction -============ - -The device-mapper "unstriped" target provides a transparent mechanism to -unstripe a device-mapper "striped" target to access the underlying disks -without having to touch the true backing block-device. It can also be -used to unstripe a hardware RAID-0 to access backing disks. - -Parameters: - - - - The number of stripes in the RAID 0. - - - The amount of 512B sectors in the chunk striping. - - - The block device you wish to unstripe. - - - The stripe number within the device that corresponds to physical - drive you wish to unstripe. This must be 0 indexed. - - -Why use this module? -==================== - -An example of undoing an existing dm-stripe -------------------------------------------- - -This small bash script will setup 4 loop devices and use the existing -striped target to combine the 4 devices into one. It then will use -the unstriped target on top of the striped device to access the -individual backing loop devices. We write data to the newly exposed -unstriped devices and verify the data written matches the correct -underlying device on the striped array:: - - #!/bin/bash - - MEMBER_SIZE=$((128 * 1024 * 1024)) - NUM=4 - SEQ_END=$((${NUM}-1)) - CHUNK=256 - BS=4096 - - RAID_SIZE=$((${MEMBER_SIZE}*${NUM}/512)) - DM_PARMS="0 ${RAID_SIZE} striped ${NUM} ${CHUNK}" - COUNT=$((${MEMBER_SIZE} / ${BS})) - - for i in $(seq 0 ${SEQ_END}); do - dd if=/dev/zero of=member-${i} bs=${MEMBER_SIZE} count=1 oflag=direct - losetup /dev/loop${i} member-${i} - DM_PARMS+=" /dev/loop${i} 0" - done - - echo $DM_PARMS | dmsetup create raid0 - for i in $(seq 0 ${SEQ_END}); do - echo "0 1 unstriped ${NUM} ${CHUNK} ${i} /dev/mapper/raid0 0" | dmsetup create set-${i} - done; - - for i in $(seq 0 ${SEQ_END}); do - dd if=/dev/urandom of=/dev/mapper/set-${i} bs=${BS} count=${COUNT} oflag=direct - diff /dev/mapper/set-${i} member-${i} - done; - - for i in $(seq 0 ${SEQ_END}); do - dmsetup remove set-${i} - done - - dmsetup remove raid0 - - for i in $(seq 0 ${SEQ_END}); do - losetup -d /dev/loop${i} - rm -f member-${i} - done - -Another example ---------------- - -Intel NVMe drives contain two cores on the physical device. -Each core of the drive has segregated access to its LBA range. -The current LBA model has a RAID 0 128k chunk on each core, resulting -in a 256k stripe across the two cores:: - - Core 0: Core 1: - __________ __________ - | LBA 512| | LBA 768| - | LBA 0 | | LBA 256| - ---------- ---------- - -The purpose of this unstriping is to provide better QoS in noisy -neighbor environments. When two partitions are created on the -aggregate drive without this unstriping, reads on one partition -can affect writes on another partition. This is because the partitions -are striped across the two cores. When we unstripe this hardware RAID 0 -and make partitions on each new exposed device the two partitions are now -physically separated. - -With the dm-unstriped target we're able to segregate an fio script that -has read and write jobs that are independent of each other. Compared to -when we run the test on a combined drive with partitions, we were able -to get a 92% reduction in read latency using this device mapper target. - - -Example dmsetup usage -===================== - -unstriped on top of Intel NVMe device that has 2 cores ------------------------------------------------------- - -:: - - dmsetup create nvmset0 --table '0 512 unstriped 2 256 0 /dev/nvme0n1 0' - dmsetup create nvmset1 --table '0 512 unstriped 2 256 1 /dev/nvme0n1 0' - -There will now be two devices that expose Intel NVMe core 0 and 1 -respectively:: - - /dev/mapper/nvmset0 - /dev/mapper/nvmset1 - -unstriped on top of striped with 4 drives using 128K chunk size ---------------------------------------------------------------- - -:: - - dmsetup create raid_disk0 --table '0 512 unstriped 4 256 0 /dev/mapper/striped 0' - dmsetup create raid_disk1 --table '0 512 unstriped 4 256 1 /dev/mapper/striped 0' - dmsetup create raid_disk2 --table '0 512 unstriped 4 256 2 /dev/mapper/striped 0' - dmsetup create raid_disk3 --table '0 512 unstriped 4 256 3 /dev/mapper/striped 0' +================================ +Device-mapper "unstriped" target +================================ + +Introduction +============ + +The device-mapper "unstriped" target provides a transparent mechanism to +unstripe a device-mapper "striped" target to access the underlying disks +without having to touch the true backing block-device. It can also be +used to unstripe a hardware RAID-0 to access backing disks. + +Parameters: + + + + The number of stripes in the RAID 0. + + + The amount of 512B sectors in the chunk striping. + + + The block device you wish to unstripe. + + + The stripe number within the device that corresponds to physical + drive you wish to unstripe. This must be 0 indexed. + + +Why use this module? +==================== + +An example of undoing an existing dm-stripe +------------------------------------------- + +This small bash script will setup 4 loop devices and use the existing +striped target to combine the 4 devices into one. It then will use +the unstriped target on top of the striped device to access the +individual backing loop devices. We write data to the newly exposed +unstriped devices and verify the data written matches the correct +underlying device on the striped array:: + + #!/bin/bash + + MEMBER_SIZE=$((128 * 1024 * 1024)) + NUM=4 + SEQ_END=$((${NUM}-1)) + CHUNK=256 + BS=4096 + + RAID_SIZE=$((${MEMBER_SIZE}*${NUM}/512)) + DM_PARMS="0 ${RAID_SIZE} striped ${NUM} ${CHUNK}" + COUNT=$((${MEMBER_SIZE} / ${BS})) + + for i in $(seq 0 ${SEQ_END}); do + dd if=/dev/zero of=member-${i} bs=${MEMBER_SIZE} count=1 oflag=direct + losetup /dev/loop${i} member-${i} + DM_PARMS+=" /dev/loop${i} 0" + done + + echo $DM_PARMS | dmsetup create raid0 + for i in $(seq 0 ${SEQ_END}); do + echo "0 1 unstriped ${NUM} ${CHUNK} ${i} /dev/mapper/raid0 0" | dmsetup create set-${i} + done; + + for i in $(seq 0 ${SEQ_END}); do + dd if=/dev/urandom of=/dev/mapper/set-${i} bs=${BS} count=${COUNT} oflag=direct + diff /dev/mapper/set-${i} member-${i} + done; + + for i in $(seq 0 ${SEQ_END}); do + dmsetup remove set-${i} + done + + dmsetup remove raid0 + + for i in $(seq 0 ${SEQ_END}); do + losetup -d /dev/loop${i} + rm -f member-${i} + done + +Another example +--------------- + +Intel NVMe drives contain two cores on the physical device. +Each core of the drive has segregated access to its LBA range. +The current LBA model has a RAID 0 128k chunk on each core, resulting +in a 256k stripe across the two cores:: + + Core 0: Core 1: + __________ __________ + | LBA 512| | LBA 768| + | LBA 0 | | LBA 256| + ---------- ---------- + +The purpose of this unstriping is to provide better QoS in noisy +neighbor environments. When two partitions are created on the +aggregate drive without this unstriping, reads on one partition +can affect writes on another partition. This is because the partitions +are striped across the two cores. When we unstripe this hardware RAID 0 +and make partitions on each new exposed device the two partitions are now +physically separated. + +With the dm-unstriped target we're able to segregate an fio script that +has read and write jobs that are independent of each other. Compared to +when we run the test on a combined drive with partitions, we were able +to get a 92% reduction in read latency using this device mapper target. + + +Example dmsetup usage +===================== + +unstriped on top of Intel NVMe device that has 2 cores +------------------------------------------------------ + +:: + + dmsetup create nvmset0 --table '0 512 unstriped 2 256 0 /dev/nvme0n1 0' + dmsetup create nvmset1 --table '0 512 unstriped 2 256 1 /dev/nvme0n1 0' + +There will now be two devices that expose Intel NVMe core 0 and 1 +respectively:: + + /dev/mapper/nvmset0 + /dev/mapper/nvmset1 + +unstriped on top of striped with 4 drives using 128K chunk size +--------------------------------------------------------------- + +:: + + dmsetup create raid_disk0 --table '0 512 unstriped 4 256 0 /dev/mapper/striped 0' + dmsetup create raid_disk1 --table '0 512 unstriped 4 256 1 /dev/mapper/striped 0' + dmsetup create raid_disk2 --table '0 512 unstriped 4 256 2 /dev/mapper/striped 0' + dmsetup create raid_disk3 --table '0 512 unstriped 4 256 3 /dev/mapper/striped 0' diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/writecache.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/writecache.rst index df2db9553..60c16b7fd 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/writecache.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/device-mapper/writecache.rst @@ -1,114 +1,114 @@ -================= -Writecache target -================= - -The writecache target caches writes on persistent memory or on SSD. It -doesn't cache reads because reads are supposed to be cached in page cache -in normal RAM. - -When the device is constructed, the first sector should be zeroed or the -first sector should contain valid superblock from previous invocation. - -Constructor parameters: - -1. type of the cache device - "p" or "s" - - p - persistent memory - - s - SSD -2. the underlying device that will be cached -3. the cache device -4. block size (4096 is recommended; the maximum block size is the page - size) -5. the number of optional parameters (the parameters with an argument - count as two) - - start_sector n (default: 0) - offset from the start of cache device in 512-byte sectors - high_watermark n (default: 50) - start writeback when the number of used blocks reach this - watermark - low_watermark x (default: 45) - stop writeback when the number of used blocks drops below - this watermark - writeback_jobs n (default: unlimited) - limit the number of blocks that are in flight during - writeback. Setting this value reduces writeback - throughput, but it may improve latency of read requests - autocommit_blocks n (default: 64 for pmem, 65536 for ssd) - when the application writes this amount of blocks without - issuing the FLUSH request, the blocks are automatically - committed - autocommit_time ms (default: 1000) - autocommit time in milliseconds. The data is automatically - committed if this time passes and no FLUSH request is - received - fua (by default on) - applicable only to persistent memory - use the FUA flag - when writing data from persistent memory back to the - underlying device - nofua - applicable only to persistent memory - don't use the FUA - flag when writing back data and send the FLUSH request - afterwards - - - some underlying devices perform better with fua, some - with nofua. The user should test it - cleaner - when this option is activated (either in the constructor - arguments or by a message), the cache will not promote - new writes (however, writes to already cached blocks are - promoted, to avoid data corruption due to misordered - writes) and it will gradually writeback any cached - data. The userspace can then monitor the cleaning - process with "dmsetup status". When the number of cached - blocks drops to zero, userspace can unload the - dm-writecache target and replace it with dm-linear or - other targets. - max_age n - specifies the maximum age of a block in milliseconds. If - a block is stored in the cache for too long, it will be - written to the underlying device and cleaned up. - metadata_only - only metadata is promoted to the cache. This option - improves performance for heavier REQ_META workloads. - pause_writeback n (default: 3000) - pause writeback if there was some write I/O redirected to - the origin volume in the last n milliseconds - -Status: - -1. error indicator - 0 if there was no error, otherwise error number -2. the number of blocks -3. the number of free blocks -4. the number of blocks under writeback -5. the number of read blocks -6. the number of read blocks that hit the cache -7. the number of write blocks -8. the number of write blocks that hit uncommitted block -9. the number of write blocks that hit committed block -10. the number of write blocks that bypass the cache -11. the number of write blocks that are allocated in the cache -12. the number of write requests that are blocked on the freelist -13. the number of flush requests -14. the number of discarded blocks - -Messages: - flush - Flush the cache device. The message returns successfully - if the cache device was flushed without an error - flush_on_suspend - Flush the cache device on next suspend. Use this message - when you are going to remove the cache device. The proper - sequence for removing the cache device is: - - 1. send the "flush_on_suspend" message - 2. load an inactive table with a linear target that maps - to the underlying device - 3. suspend the device - 4. ask for status and verify that there are no errors - 5. resume the device, so that it will use the linear - target - 6. the cache device is now inactive and it can be deleted - cleaner - See above "cleaner" constructor documentation. - clear_stats - Clear the statistics that are reported on the status line +================= +Writecache target +================= + +The writecache target caches writes on persistent memory or on SSD. It +doesn't cache reads because reads are supposed to be cached in page cache +in normal RAM. + +When the device is constructed, the first sector should be zeroed or the +first sector should contain valid superblock from previous invocation. + +Constructor parameters: + +1. type of the cache device - "p" or "s" + - p - persistent memory + - s - SSD +2. the underlying device that will be cached +3. the cache device +4. block size (4096 is recommended; the maximum block size is the page + size) +5. the number of optional parameters (the parameters with an argument + count as two) + + start_sector n (default: 0) + offset from the start of cache device in 512-byte sectors + high_watermark n (default: 50) + start writeback when the number of used blocks reach this + watermark + low_watermark x (default: 45) + stop writeback when the number of used blocks drops below + this watermark + writeback_jobs n (default: unlimited) + limit the number of blocks that are in flight during + writeback. Setting this value reduces writeback + throughput, but it may improve latency of read requests + autocommit_blocks n (default: 64 for pmem, 65536 for ssd) + when the application writes this amount of blocks without + issuing the FLUSH request, the blocks are automatically + committed + autocommit_time ms (default: 1000) + autocommit time in milliseconds. The data is automatically + committed if this time passes and no FLUSH request is + received + fua (by default on) + applicable only to persistent memory - use the FUA flag + when writing data from persistent memory back to the + underlying device + nofua + applicable only to persistent memory - don't use the FUA + flag when writing back data and send the FLUSH request + afterwards + + - some underlying devices perform better with fua, some + with nofua. The user should test it + cleaner + when this option is activated (either in the constructor + arguments or by a message), the cache will not promote + new writes (however, writes to already cached blocks are + promoted, to avoid data corruption due to misordered + writes) and it will gradually writeback any cached + data. The userspace can then monitor the cleaning + process with "dmsetup status". When the number of cached + blocks drops to zero, userspace can unload the + dm-writecache target and replace it with dm-linear or + other targets. + max_age n + specifies the maximum age of a block in milliseconds. If + a block is stored in the cache for too long, it will be + written to the underlying device and cleaned up. + metadata_only + only metadata is promoted to the cache. This option + improves performance for heavier REQ_META workloads. + pause_writeback n (default: 3000) + pause writeback if there was some write I/O redirected to + the origin volume in the last n milliseconds + +Status: + +1. error indicator - 0 if there was no error, otherwise error number +2. the number of blocks +3. the number of free blocks +4. the number of blocks under writeback +5. the number of read blocks +6. the number of read blocks that hit the cache +7. the number of write blocks +8. the number of write blocks that hit uncommitted block +9. the number of write blocks that hit committed block +10. the number of write blocks that bypass the cache +11. the number of write blocks that are allocated in the cache +12. the number of write requests that are blocked on the freelist +13. the number of flush requests +14. the number of discarded blocks + +Messages: + flush + Flush the cache device. The message returns successfully + if the cache device was flushed without an error + flush_on_suspend + Flush the cache device on next suspend. Use this message + when you are going to remove the cache device. The proper + sequence for removing the cache device is: + + 1. send the "flush_on_suspend" message + 2. load an inactive table with a linear target that maps + to the underlying device + 3. suspend the device + 4. ask for status and verify that there are no errors + 5. resume the device, so that it will use the linear + target + 6. the cache device is now inactive and it can be deleted + cleaner + See above "cleaner" constructor documentation. + clear_stats + Clear the statistics that are reported on the status line diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/efi-stub.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/efi-stub.rst index db3891e1c..090f3a185 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/efi-stub.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/efi-stub.rst @@ -1,100 +1,100 @@ -================= -The EFI Boot Stub -================= - -On the x86 and ARM platforms, a kernel zImage/bzImage can masquerade -as a PE/COFF image, thereby convincing EFI firmware loaders to load -it as an EFI executable. The code that modifies the bzImage header, -along with the EFI-specific entry point that the firmware loader -jumps to are collectively known as the "EFI boot stub", and live in -arch/x86/boot/header.S and drivers/firmware/efi/libstub/x86-stub.c, -respectively. For ARM the EFI stub is implemented in -arch/arm/boot/compressed/efi-header.S and -drivers/firmware/efi/libstub/arm32-stub.c. EFI stub code that is shared -between architectures is in drivers/firmware/efi/libstub. - -For arm64, there is no compressed kernel support, so the Image itself -masquerades as a PE/COFF image and the EFI stub is linked into the -kernel. The arm64 EFI stub lives in drivers/firmware/efi/libstub/arm64.c -and drivers/firmware/efi/libstub/arm64-stub.c. - -By using the EFI boot stub it's possible to boot a Linux kernel -without the use of a conventional EFI boot loader, such as grub or -elilo. Since the EFI boot stub performs the jobs of a boot loader, in -a certain sense it *IS* the boot loader. - -The EFI boot stub is enabled with the CONFIG_EFI_STUB kernel option. - - -How to install bzImage.efi --------------------------- - -The bzImage located in arch/x86/boot/bzImage must be copied to the EFI -System Partition (ESP) and renamed with the extension ".efi". Without -the extension the EFI firmware loader will refuse to execute it. It's -not possible to execute bzImage.efi from the usual Linux file systems -because EFI firmware doesn't have support for them. For ARM the -arch/arm/boot/zImage should be copied to the system partition, and it -may not need to be renamed. Similarly for arm64, arch/arm64/boot/Image -should be copied but not necessarily renamed. - - -Passing kernel parameters from the EFI shell --------------------------------------------- - -Arguments to the kernel can be passed after bzImage.efi, e.g.:: - - fs0:> bzImage.efi console=ttyS0 root=/dev/sda4 - - -The "initrd=" option --------------------- - -Like most boot loaders, the EFI stub allows the user to specify -multiple initrd files using the "initrd=" option. This is the only EFI -stub-specific command line parameter, everything else is passed to the -kernel when it boots. - -The path to the initrd file must be an absolute path from the -beginning of the ESP, relative path names do not work. Also, the path -is an EFI-style path and directory elements must be separated with -backslashes (\). For example, given the following directory layout:: - - fs0:> - Kernels\ - bzImage.efi - initrd-large.img - - Ramdisks\ - initrd-small.img - initrd-medium.img - -to boot with the initrd-large.img file if the current working -directory is fs0:\Kernels, the following command must be used:: - - fs0:\Kernels> bzImage.efi initrd=\Kernels\initrd-large.img - -Notice how bzImage.efi can be specified with a relative path. That's -because the image we're executing is interpreted by the EFI shell, -which understands relative paths, whereas the rest of the command line -is passed to bzImage.efi. - - -The "dtb=" option ------------------ - -For the ARM and arm64 architectures, a device tree must be provided to -the kernel. Normally firmware shall supply the device tree via the -EFI CONFIGURATION TABLE. However, the "dtb=" command line option can -be used to override the firmware supplied device tree, or to supply -one when firmware is unable to. - -Please note: Firmware adds runtime configuration information to the -device tree before booting the kernel. If dtb= is used to override -the device tree, then any runtime data provided by firmware will be -lost. The dtb= option should only be used either as a debug tool, or -as a last resort when a device tree is not provided in the EFI -CONFIGURATION TABLE. - -"dtb=" is processed in the same manner as the "initrd=" option that is -described above. +================= +The EFI Boot Stub +================= + +On the x86 and ARM platforms, a kernel zImage/bzImage can masquerade +as a PE/COFF image, thereby convincing EFI firmware loaders to load +it as an EFI executable. The code that modifies the bzImage header, +along with the EFI-specific entry point that the firmware loader +jumps to are collectively known as the "EFI boot stub", and live in +arch/x86/boot/header.S and drivers/firmware/efi/libstub/x86-stub.c, +respectively. For ARM the EFI stub is implemented in +arch/arm/boot/compressed/efi-header.S and +drivers/firmware/efi/libstub/arm32-stub.c. EFI stub code that is shared +between architectures is in drivers/firmware/efi/libstub. + +For arm64, there is no compressed kernel support, so the Image itself +masquerades as a PE/COFF image and the EFI stub is linked into the +kernel. The arm64 EFI stub lives in drivers/firmware/efi/libstub/arm64.c +and drivers/firmware/efi/libstub/arm64-stub.c. + +By using the EFI boot stub it's possible to boot a Linux kernel +without the use of a conventional EFI boot loader, such as grub or +elilo. Since the EFI boot stub performs the jobs of a boot loader, in +a certain sense it *IS* the boot loader. + +The EFI boot stub is enabled with the CONFIG_EFI_STUB kernel option. + + +How to install bzImage.efi +-------------------------- + +The bzImage located in arch/x86/boot/bzImage must be copied to the EFI +System Partition (ESP) and renamed with the extension ".efi". Without +the extension the EFI firmware loader will refuse to execute it. It's +not possible to execute bzImage.efi from the usual Linux file systems +because EFI firmware doesn't have support for them. For ARM the +arch/arm/boot/zImage should be copied to the system partition, and it +may not need to be renamed. Similarly for arm64, arch/arm64/boot/Image +should be copied but not necessarily renamed. + + +Passing kernel parameters from the EFI shell +-------------------------------------------- + +Arguments to the kernel can be passed after bzImage.efi, e.g.:: + + fs0:> bzImage.efi console=ttyS0 root=/dev/sda4 + + +The "initrd=" option +-------------------- + +Like most boot loaders, the EFI stub allows the user to specify +multiple initrd files using the "initrd=" option. This is the only EFI +stub-specific command line parameter, everything else is passed to the +kernel when it boots. + +The path to the initrd file must be an absolute path from the +beginning of the ESP, relative path names do not work. Also, the path +is an EFI-style path and directory elements must be separated with +backslashes (\). For example, given the following directory layout:: + + fs0:> + Kernels\ + bzImage.efi + initrd-large.img + + Ramdisks\ + initrd-small.img + initrd-medium.img + +to boot with the initrd-large.img file if the current working +directory is fs0:\Kernels, the following command must be used:: + + fs0:\Kernels> bzImage.efi initrd=\Kernels\initrd-large.img + +Notice how bzImage.efi can be specified with a relative path. That's +because the image we're executing is interpreted by the EFI shell, +which understands relative paths, whereas the rest of the command line +is passed to bzImage.efi. + + +The "dtb=" option +----------------- + +For the ARM and arm64 architectures, a device tree must be provided to +the kernel. Normally firmware shall supply the device tree via the +EFI CONFIGURATION TABLE. However, the "dtb=" command line option can +be used to override the firmware supplied device tree, or to supply +one when firmware is unable to. + +Please note: Firmware adds runtime configuration information to the +device tree before booting the kernel. If dtb= is used to override +the device tree, then any runtime data provided by firmware will be +lost. The dtb= option should only be used either as a debug tool, or +as a last resort when a device tree is not provided in the EFI +CONFIGURATION TABLE. + +"dtb=" is processed in the same manner as the "initrd=" option that is +described above. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/gpio/gpio-aggregator.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/gpio/gpio-aggregator.rst index 637d80db4..5cd1e7221 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/gpio/gpio-aggregator.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/gpio/gpio-aggregator.rst @@ -1,111 +1,111 @@ -.. SPDX-License-Identifier: GPL-2.0-only - -GPIO Aggregator -=============== - -The GPIO Aggregator provides a mechanism to aggregate GPIOs, and expose them as -a new gpio_chip. This supports the following use cases. - - -Aggregating GPIOs using Sysfs ------------------------------ - -GPIO controllers are exported to userspace using /dev/gpiochip* character -devices. Access control to these devices is provided by standard UNIX file -system permissions, on an all-or-nothing basis: either a GPIO controller is -accessible for a user, or it is not. - -The GPIO Aggregator provides access control for a set of one or more GPIOs, by -aggregating them into a new gpio_chip, which can be assigned to a group or user -using standard UNIX file ownership and permissions. Furthermore, this -simplifies and hardens exporting GPIOs to a virtual machine, as the VM can just -grab the full GPIO controller, and no longer needs to care about which GPIOs to -grab and which not, reducing the attack surface. - -Aggregated GPIO controllers are instantiated and destroyed by writing to -write-only attribute files in sysfs. - - /sys/bus/platform/drivers/gpio-aggregator/ - - "new_device" ... - Userspace may ask the kernel to instantiate an aggregated GPIO - controller by writing a string describing the GPIOs to - aggregate to the "new_device" file, using the format - - .. code-block:: none - - [] [ ] ... - - Where: - - "" ... - is a GPIO line name, - - "" ... - is a GPIO chip label, and - - "" ... - is a comma-separated list of GPIO offsets and/or - GPIO offset ranges denoted by dashes. - - Example: Instantiate a new GPIO aggregator by aggregating GPIO - line 19 of "e6052000.gpio" and GPIO lines 20-21 of - "e6050000.gpio" into a new gpio_chip: - - .. code-block:: sh - - $ echo 'e6052000.gpio 19 e6050000.gpio 20-21' > new_device - - "delete_device" ... - Userspace may ask the kernel to destroy an aggregated GPIO - controller after use by writing its device name to the - "delete_device" file. - - Example: Destroy the previously-created aggregated GPIO - controller, assumed to be "gpio-aggregator.0": - - .. code-block:: sh - - $ echo gpio-aggregator.0 > delete_device - - -Generic GPIO Driver -------------------- - -The GPIO Aggregator can also be used as a generic driver for a simple -GPIO-operated device described in DT, without a dedicated in-kernel driver. -This is useful in industrial control, and is not unlike e.g. spidev, which -allows the user to communicate with an SPI device from userspace. - -Binding a device to the GPIO Aggregator is performed either by modifying the -gpio-aggregator driver, or by writing to the "driver_override" file in Sysfs. - -Example: If "door" is a GPIO-operated device described in DT, using its own -compatible value:: - - door { - compatible = "myvendor,mydoor"; - - gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>, - <&gpio2 20 GPIO_ACTIVE_LOW>; - gpio-line-names = "open", "lock"; - }; - -it can be bound to the GPIO Aggregator by either: - -1. Adding its compatible value to ``gpio_aggregator_dt_ids[]``, -2. Binding manually using "driver_override": - -.. code-block:: sh - - $ echo gpio-aggregator > /sys/bus/platform/devices/door/driver_override - $ echo door > /sys/bus/platform/drivers/gpio-aggregator/bind - -After that, a new gpiochip "door" has been created: - -.. code-block:: sh - - $ gpioinfo door - gpiochip12 - 2 lines: - line 0: "open" unused input active-high - line 1: "lock" unused input active-high +.. SPDX-License-Identifier: GPL-2.0-only + +GPIO Aggregator +=============== + +The GPIO Aggregator provides a mechanism to aggregate GPIOs, and expose them as +a new gpio_chip. This supports the following use cases. + + +Aggregating GPIOs using Sysfs +----------------------------- + +GPIO controllers are exported to userspace using /dev/gpiochip* character +devices. Access control to these devices is provided by standard UNIX file +system permissions, on an all-or-nothing basis: either a GPIO controller is +accessible for a user, or it is not. + +The GPIO Aggregator provides access control for a set of one or more GPIOs, by +aggregating them into a new gpio_chip, which can be assigned to a group or user +using standard UNIX file ownership and permissions. Furthermore, this +simplifies and hardens exporting GPIOs to a virtual machine, as the VM can just +grab the full GPIO controller, and no longer needs to care about which GPIOs to +grab and which not, reducing the attack surface. + +Aggregated GPIO controllers are instantiated and destroyed by writing to +write-only attribute files in sysfs. + + /sys/bus/platform/drivers/gpio-aggregator/ + + "new_device" ... + Userspace may ask the kernel to instantiate an aggregated GPIO + controller by writing a string describing the GPIOs to + aggregate to the "new_device" file, using the format + + .. code-block:: none + + [] [ ] ... + + Where: + + "" ... + is a GPIO line name, + + "" ... + is a GPIO chip label, and + + "" ... + is a comma-separated list of GPIO offsets and/or + GPIO offset ranges denoted by dashes. + + Example: Instantiate a new GPIO aggregator by aggregating GPIO + line 19 of "e6052000.gpio" and GPIO lines 20-21 of + "e6050000.gpio" into a new gpio_chip: + + .. code-block:: sh + + $ echo 'e6052000.gpio 19 e6050000.gpio 20-21' > new_device + + "delete_device" ... + Userspace may ask the kernel to destroy an aggregated GPIO + controller after use by writing its device name to the + "delete_device" file. + + Example: Destroy the previously-created aggregated GPIO + controller, assumed to be "gpio-aggregator.0": + + .. code-block:: sh + + $ echo gpio-aggregator.0 > delete_device + + +Generic GPIO Driver +------------------- + +The GPIO Aggregator can also be used as a generic driver for a simple +GPIO-operated device described in DT, without a dedicated in-kernel driver. +This is useful in industrial control, and is not unlike e.g. spidev, which +allows the user to communicate with an SPI device from userspace. + +Binding a device to the GPIO Aggregator is performed either by modifying the +gpio-aggregator driver, or by writing to the "driver_override" file in Sysfs. + +Example: If "door" is a GPIO-operated device described in DT, using its own +compatible value:: + + door { + compatible = "myvendor,mydoor"; + + gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>, + <&gpio2 20 GPIO_ACTIVE_LOW>; + gpio-line-names = "open", "lock"; + }; + +it can be bound to the GPIO Aggregator by either: + +1. Adding its compatible value to ``gpio_aggregator_dt_ids[]``, +2. Binding manually using "driver_override": + +.. code-block:: sh + + $ echo gpio-aggregator > /sys/bus/platform/devices/door/driver_override + $ echo door > /sys/bus/platform/drivers/gpio-aggregator/bind + +After that, a new gpiochip "door" has been created: + +.. code-block:: sh + + $ gpioinfo door + gpiochip12 - 2 lines: + line 0: "open" unused input active-high + line 1: "lock" unused input active-high diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/hw-vuln/cross-thread-rsb.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/hw-vuln/cross-thread-rsb.rst index 0c6a67a31..875616d67 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/hw-vuln/cross-thread-rsb.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/hw-vuln/cross-thread-rsb.rst @@ -1,91 +1,91 @@ - -.. SPDX-License-Identifier: GPL-2.0 - -Cross-Thread Return Address Predictions -======================================= - -Certain AMD and Hygon processors are subject to a cross-thread return address -predictions vulnerability. When running in SMT mode and one sibling thread -transitions out of C0 state, the other sibling thread could use return target -predictions from the sibling thread that transitioned out of C0. - -The Spectre v2 mitigations protect the Linux kernel, as it fills the return -address prediction entries with safe targets when context switching to the idle -thread. However, KVM does allow a VMM to prevent exiting guest mode when -transitioning out of C0. This could result in a guest-controlled return target -being consumed by the sibling thread. - -Affected processors -------------------- - -The following CPUs are vulnerable: - - - AMD Family 17h processors - - Hygon Family 18h processors - -Related CVEs ------------- - -The following CVE entry is related to this issue: - - ============== ======================================= - CVE-2022-27672 Cross-Thread Return Address Predictions - ============== ======================================= - -Problem -------- - -Affected SMT-capable processors support 1T and 2T modes of execution when SMT -is enabled. In 2T mode, both threads in a core are executing code. For the -processor core to enter 1T mode, it is required that one of the threads -requests to transition out of the C0 state. This can be communicated with the -HLT instruction or with an MWAIT instruction that requests non-C0. -When the thread re-enters the C0 state, the processor transitions back -to 2T mode, assuming the other thread is also still in C0 state. - -In affected processors, the return address predictor (RAP) is partitioned -depending on the SMT mode. For instance, in 2T mode each thread uses a private -16-entry RAP, but in 1T mode, the active thread uses a 32-entry RAP. Upon -transition between 1T/2T mode, the RAP contents are not modified but the RAP -pointers (which control the next return target to use for predictions) may -change. This behavior may result in return targets from one SMT thread being -used by RET predictions in the sibling thread following a 1T/2T switch. In -particular, a RET instruction executed immediately after a transition to 1T may -use a return target from the thread that just became idle. In theory, this -could lead to information disclosure if the return targets used do not come -from trustworthy code. - -Attack scenarios ----------------- - -An attack can be mounted on affected processors by performing a series of CALL -instructions with targeted return locations and then transitioning out of C0 -state. - -Mitigation mechanism --------------------- - -Before entering idle state, the kernel context switches to the idle thread. The -context switch fills the RAP entries (referred to as the RSB in Linux) with safe -targets by performing a sequence of CALL instructions. - -Prevent a guest VM from directly putting the processor into an idle state by -intercepting HLT and MWAIT instructions. - -Both mitigations are required to fully address this issue. - -Mitigation control on the kernel command line ---------------------------------------------- - -Use existing Spectre v2 mitigations that will fill the RSB on context switch. - -Mitigation control for KVM - module parameter ---------------------------------------------- - -By default, the KVM hypervisor mitigates this issue by intercepting guest -attempts to transition out of C0. A VMM can use the KVM_CAP_X86_DISABLE_EXITS -capability to override those interceptions, but since this is not common, the -mitigation that covers this path is not enabled by default. - -The mitigation for the KVM_CAP_X86_DISABLE_EXITS capability can be turned on -using the boolean module parameter mitigate_smt_rsb, e.g. ``kvm.mitigate_smt_rsb=1``. + +.. SPDX-License-Identifier: GPL-2.0 + +Cross-Thread Return Address Predictions +======================================= + +Certain AMD and Hygon processors are subject to a cross-thread return address +predictions vulnerability. When running in SMT mode and one sibling thread +transitions out of C0 state, the other sibling thread could use return target +predictions from the sibling thread that transitioned out of C0. + +The Spectre v2 mitigations protect the Linux kernel, as it fills the return +address prediction entries with safe targets when context switching to the idle +thread. However, KVM does allow a VMM to prevent exiting guest mode when +transitioning out of C0. This could result in a guest-controlled return target +being consumed by the sibling thread. + +Affected processors +------------------- + +The following CPUs are vulnerable: + + - AMD Family 17h processors + - Hygon Family 18h processors + +Related CVEs +------------ + +The following CVE entry is related to this issue: + + ============== ======================================= + CVE-2022-27672 Cross-Thread Return Address Predictions + ============== ======================================= + +Problem +------- + +Affected SMT-capable processors support 1T and 2T modes of execution when SMT +is enabled. In 2T mode, both threads in a core are executing code. For the +processor core to enter 1T mode, it is required that one of the threads +requests to transition out of the C0 state. This can be communicated with the +HLT instruction or with an MWAIT instruction that requests non-C0. +When the thread re-enters the C0 state, the processor transitions back +to 2T mode, assuming the other thread is also still in C0 state. + +In affected processors, the return address predictor (RAP) is partitioned +depending on the SMT mode. For instance, in 2T mode each thread uses a private +16-entry RAP, but in 1T mode, the active thread uses a 32-entry RAP. Upon +transition between 1T/2T mode, the RAP contents are not modified but the RAP +pointers (which control the next return target to use for predictions) may +change. This behavior may result in return targets from one SMT thread being +used by RET predictions in the sibling thread following a 1T/2T switch. In +particular, a RET instruction executed immediately after a transition to 1T may +use a return target from the thread that just became idle. In theory, this +could lead to information disclosure if the return targets used do not come +from trustworthy code. + +Attack scenarios +---------------- + +An attack can be mounted on affected processors by performing a series of CALL +instructions with targeted return locations and then transitioning out of C0 +state. + +Mitigation mechanism +-------------------- + +Before entering idle state, the kernel context switches to the idle thread. The +context switch fills the RAP entries (referred to as the RSB in Linux) with safe +targets by performing a sequence of CALL instructions. + +Prevent a guest VM from directly putting the processor into an idle state by +intercepting HLT and MWAIT instructions. + +Both mitigations are required to fully address this issue. + +Mitigation control on the kernel command line +--------------------------------------------- + +Use existing Spectre v2 mitigations that will fill the RSB on context switch. + +Mitigation control for KVM - module parameter +--------------------------------------------- + +By default, the KVM hypervisor mitigates this issue by intercepting guest +attempts to transition out of C0. A VMM can use the KVM_CAP_X86_DISABLE_EXITS +capability to override those interceptions, but since this is not common, the +mitigation that covers this path is not enabled by default. + +The mitigation for the KVM_CAP_X86_DISABLE_EXITS capability can be turned on +using the boolean module parameter mitigate_smt_rsb, e.g. ``kvm.mitigate_smt_rsb=1``. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/hw-vuln/reg-file-data-sampling.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/hw-vuln/reg-file-data-sampling.rst index dbde15f6d..0585d02b9 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/hw-vuln/reg-file-data-sampling.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/hw-vuln/reg-file-data-sampling.rst @@ -1,104 +1,104 @@ -================================== -Register File Data Sampling (RFDS) -================================== - -Register File Data Sampling (RFDS) is a microarchitectural vulnerability that -only affects Intel Atom parts(also branded as E-cores). RFDS may allow -a malicious actor to infer data values previously used in floating point -registers, vector registers, or integer registers. RFDS does not provide the -ability to choose which data is inferred. CVE-2023-28746 is assigned to RFDS. - -Affected Processors -=================== -Below is the list of affected Intel processors [#f1]_: - - =================== ============ - Common name Family_Model - =================== ============ - ATOM_GOLDMONT 06_5CH - ATOM_GOLDMONT_D 06_5FH - ATOM_GOLDMONT_PLUS 06_7AH - ATOM_TREMONT_D 06_86H - ATOM_TREMONT 06_96H - ALDERLAKE 06_97H - ALDERLAKE_L 06_9AH - ATOM_TREMONT_L 06_9CH - RAPTORLAKE 06_B7H - RAPTORLAKE_P 06_BAH - ATOM_GRACEMONT 06_BEH - RAPTORLAKE_S 06_BFH - =================== ============ - -As an exception to this table, Intel Xeon E family parts ALDERLAKE(06_97H) and -RAPTORLAKE(06_B7H) codenamed Catlow are not affected. They are reported as -vulnerable in Linux because they share the same family/model with an affected -part. Unlike their affected counterparts, they do not enumerate RFDS_CLEAR or -CPUID.HYBRID. This information could be used to distinguish between the -affected and unaffected parts, but it is deemed not worth adding complexity as -the reporting is fixed automatically when these parts enumerate RFDS_NO. - -Mitigation -========== -Intel released a microcode update that enables software to clear sensitive -information using the VERW instruction. Like MDS, RFDS deploys the same -mitigation strategy to force the CPU to clear the affected buffers before an -attacker can extract the secrets. This is achieved by using the otherwise -unused and obsolete VERW instruction in combination with a microcode update. -The microcode clears the affected CPU buffers when the VERW instruction is -executed. - -Mitigation points ------------------ -VERW is executed by the kernel before returning to user space, and by KVM -before VMentry. None of the affected cores support SMT, so VERW is not required -at C-state transitions. - -New bits in IA32_ARCH_CAPABILITIES ----------------------------------- -Newer processors and microcode update on existing affected processors added new -bits to IA32_ARCH_CAPABILITIES MSR. These bits can be used to enumerate -vulnerability and mitigation capability: - -- Bit 27 - RFDS_NO - When set, processor is not affected by RFDS. -- Bit 28 - RFDS_CLEAR - When set, processor is affected by RFDS, and has the - microcode that clears the affected buffers on VERW execution. - -Mitigation control on the kernel command line ---------------------------------------------- -The kernel command line allows to control RFDS mitigation at boot time with the -parameter "reg_file_data_sampling=". The valid arguments are: - - ========== ================================================================= - on If the CPU is vulnerable, enable mitigation; CPU buffer clearing - on exit to userspace and before entering a VM. - off Disables mitigation. - ========== ================================================================= - -Mitigation default is selected by CONFIG_MITIGATION_RFDS. - -Mitigation status information ------------------------------ -The Linux kernel provides a sysfs interface to enumerate the current -vulnerability status of the system: whether the system is vulnerable, and -which mitigations are active. The relevant sysfs file is: - - /sys/devices/system/cpu/vulnerabilities/reg_file_data_sampling - -The possible values in this file are: - - .. list-table:: - - * - 'Not affected' - - The processor is not vulnerable - * - 'Vulnerable' - - The processor is vulnerable, but no mitigation enabled - * - 'Vulnerable: No microcode' - - The processor is vulnerable but microcode is not updated. - * - 'Mitigation: Clear Register File' - - The processor is vulnerable and the CPU buffer clearing mitigation is - enabled. - -References ----------- -.. [#f1] Affected Processors - https://www.intel.com/content/www/us/en/developer/topic-technology/software-security-guidance/processors-affected-consolidated-product-cpu-model.html +================================== +Register File Data Sampling (RFDS) +================================== + +Register File Data Sampling (RFDS) is a microarchitectural vulnerability that +only affects Intel Atom parts(also branded as E-cores). RFDS may allow +a malicious actor to infer data values previously used in floating point +registers, vector registers, or integer registers. RFDS does not provide the +ability to choose which data is inferred. CVE-2023-28746 is assigned to RFDS. + +Affected Processors +=================== +Below is the list of affected Intel processors [#f1]_: + + =================== ============ + Common name Family_Model + =================== ============ + ATOM_GOLDMONT 06_5CH + ATOM_GOLDMONT_D 06_5FH + ATOM_GOLDMONT_PLUS 06_7AH + ATOM_TREMONT_D 06_86H + ATOM_TREMONT 06_96H + ALDERLAKE 06_97H + ALDERLAKE_L 06_9AH + ATOM_TREMONT_L 06_9CH + RAPTORLAKE 06_B7H + RAPTORLAKE_P 06_BAH + ATOM_GRACEMONT 06_BEH + RAPTORLAKE_S 06_BFH + =================== ============ + +As an exception to this table, Intel Xeon E family parts ALDERLAKE(06_97H) and +RAPTORLAKE(06_B7H) codenamed Catlow are not affected. They are reported as +vulnerable in Linux because they share the same family/model with an affected +part. Unlike their affected counterparts, they do not enumerate RFDS_CLEAR or +CPUID.HYBRID. This information could be used to distinguish between the +affected and unaffected parts, but it is deemed not worth adding complexity as +the reporting is fixed automatically when these parts enumerate RFDS_NO. + +Mitigation +========== +Intel released a microcode update that enables software to clear sensitive +information using the VERW instruction. Like MDS, RFDS deploys the same +mitigation strategy to force the CPU to clear the affected buffers before an +attacker can extract the secrets. This is achieved by using the otherwise +unused and obsolete VERW instruction in combination with a microcode update. +The microcode clears the affected CPU buffers when the VERW instruction is +executed. + +Mitigation points +----------------- +VERW is executed by the kernel before returning to user space, and by KVM +before VMentry. None of the affected cores support SMT, so VERW is not required +at C-state transitions. + +New bits in IA32_ARCH_CAPABILITIES +---------------------------------- +Newer processors and microcode update on existing affected processors added new +bits to IA32_ARCH_CAPABILITIES MSR. These bits can be used to enumerate +vulnerability and mitigation capability: + +- Bit 27 - RFDS_NO - When set, processor is not affected by RFDS. +- Bit 28 - RFDS_CLEAR - When set, processor is affected by RFDS, and has the + microcode that clears the affected buffers on VERW execution. + +Mitigation control on the kernel command line +--------------------------------------------- +The kernel command line allows to control RFDS mitigation at boot time with the +parameter "reg_file_data_sampling=". The valid arguments are: + + ========== ================================================================= + on If the CPU is vulnerable, enable mitigation; CPU buffer clearing + on exit to userspace and before entering a VM. + off Disables mitigation. + ========== ================================================================= + +Mitigation default is selected by CONFIG_MITIGATION_RFDS. + +Mitigation status information +----------------------------- +The Linux kernel provides a sysfs interface to enumerate the current +vulnerability status of the system: whether the system is vulnerable, and +which mitigations are active. The relevant sysfs file is: + + /sys/devices/system/cpu/vulnerabilities/reg_file_data_sampling + +The possible values in this file are: + + .. list-table:: + + * - 'Not affected' + - The processor is not vulnerable + * - 'Vulnerable' + - The processor is vulnerable, but no mitigation enabled + * - 'Vulnerable: No microcode' + - The processor is vulnerable but microcode is not updated. + * - 'Mitigation: Clear Register File' + - The processor is vulnerable and the CPU buffer clearing mitigation is + enabled. + +References +---------- +.. [#f1] Affected Processors + https://www.intel.com/content/www/us/en/developer/topic-technology/software-security-guidance/processors-affected-consolidated-product-cpu-model.html diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/hw-vuln/vmscape.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/hw-vuln/vmscape.rst index c1aac0736..d9b9a2b6c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/hw-vuln/vmscape.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/hw-vuln/vmscape.rst @@ -1,110 +1,110 @@ -.. SPDX-License-Identifier: GPL-2.0 - -VMSCAPE -======= - -VMSCAPE is a vulnerability that may allow a guest to influence the branch -prediction in host userspace. It particularly affects hypervisors like QEMU. - -Even if a hypervisor may not have any sensitive data like disk encryption keys, -guest-userspace may be able to attack the guest-kernel using the hypervisor as -a confused deputy. - -Affected processors -------------------- - -The following CPU families are affected by VMSCAPE: - -**Intel processors:** - - Skylake generation (Parts without Enhanced-IBRS) - - Cascade Lake generation - (Parts affected by ITS guest/host separation) - - Alder Lake and newer (Parts affected by BHI) - -Note that, BHI affected parts that use BHB clearing software mitigation e.g. -Icelake are not vulnerable to VMSCAPE. - -**AMD processors:** - - Zen series (families 0x17, 0x19, 0x1a) - -** Hygon processors:** - - Family 0x18 - -Mitigation ----------- - -Conditional IBPB ----------------- - -Kernel tracks when a CPU has run a potentially malicious guest and issues an -IBPB before the first exit to userspace after VM-exit. If userspace did not run -between VM-exit and the next VM-entry, no IBPB is issued. - -Note that the existing userspace mitigation against Spectre-v2 is effective in -protecting the userspace. They are insufficient to protect the userspace VMMs -from a malicious guest. This is because Spectre-v2 mitigations are applied at -context switch time, while the userspace VMM can run after a VM-exit without a -context switch. - -Vulnerability enumeration and mitigation is not applied inside a guest. This is -because nested hypervisors should already be deploying IBPB to isolate -themselves from nested guests. - -SMT considerations ------------------- - -When Simultaneous Multi-Threading (SMT) is enabled, hypervisors can be -vulnerable to cross-thread attacks. For complete protection against VMSCAPE -attacks in SMT environments, STIBP should be enabled. - -The kernel will issue a warning if SMT is enabled without adequate STIBP -protection. Warning is not issued when: - -- SMT is disabled -- STIBP is enabled system-wide -- Intel eIBRS is enabled (which implies STIBP protection) - -System information and options ------------------------------- - -The sysfs file showing VMSCAPE mitigation status is: - - /sys/devices/system/cpu/vulnerabilities/vmscape - -The possible values in this file are: - - * 'Not affected': - - The processor is not vulnerable to VMSCAPE attacks. - - * 'Vulnerable': - - The processor is vulnerable and no mitigation has been applied. - - * 'Mitigation: IBPB before exit to userspace': - - Conditional IBPB mitigation is enabled. The kernel tracks when a CPU has - run a potentially malicious guest and issues an IBPB before the first - exit to userspace after VM-exit. - - * 'Mitigation: IBPB on VMEXIT': - - IBPB is issued on every VM-exit. This occurs when other mitigations like - RETBLEED or SRSO are already issuing IBPB on VM-exit. - -Mitigation control on the kernel command line ----------------------------------------------- - -The mitigation can be controlled via the ``vmscape=`` command line parameter: - - * ``vmscape=off``: - - Disable the VMSCAPE mitigation. - - * ``vmscape=ibpb``: - - Enable conditional IBPB mitigation (default when CONFIG_MITIGATION_VMSCAPE=y). - - * ``vmscape=force``: - - Force vulnerability detection and mitigation even on processors that are - not known to be affected. +.. SPDX-License-Identifier: GPL-2.0 + +VMSCAPE +======= + +VMSCAPE is a vulnerability that may allow a guest to influence the branch +prediction in host userspace. It particularly affects hypervisors like QEMU. + +Even if a hypervisor may not have any sensitive data like disk encryption keys, +guest-userspace may be able to attack the guest-kernel using the hypervisor as +a confused deputy. + +Affected processors +------------------- + +The following CPU families are affected by VMSCAPE: + +**Intel processors:** + - Skylake generation (Parts without Enhanced-IBRS) + - Cascade Lake generation - (Parts affected by ITS guest/host separation) + - Alder Lake and newer (Parts affected by BHI) + +Note that, BHI affected parts that use BHB clearing software mitigation e.g. +Icelake are not vulnerable to VMSCAPE. + +**AMD processors:** + - Zen series (families 0x17, 0x19, 0x1a) + +** Hygon processors:** + - Family 0x18 + +Mitigation +---------- + +Conditional IBPB +---------------- + +Kernel tracks when a CPU has run a potentially malicious guest and issues an +IBPB before the first exit to userspace after VM-exit. If userspace did not run +between VM-exit and the next VM-entry, no IBPB is issued. + +Note that the existing userspace mitigation against Spectre-v2 is effective in +protecting the userspace. They are insufficient to protect the userspace VMMs +from a malicious guest. This is because Spectre-v2 mitigations are applied at +context switch time, while the userspace VMM can run after a VM-exit without a +context switch. + +Vulnerability enumeration and mitigation is not applied inside a guest. This is +because nested hypervisors should already be deploying IBPB to isolate +themselves from nested guests. + +SMT considerations +------------------ + +When Simultaneous Multi-Threading (SMT) is enabled, hypervisors can be +vulnerable to cross-thread attacks. For complete protection against VMSCAPE +attacks in SMT environments, STIBP should be enabled. + +The kernel will issue a warning if SMT is enabled without adequate STIBP +protection. Warning is not issued when: + +- SMT is disabled +- STIBP is enabled system-wide +- Intel eIBRS is enabled (which implies STIBP protection) + +System information and options +------------------------------ + +The sysfs file showing VMSCAPE mitigation status is: + + /sys/devices/system/cpu/vulnerabilities/vmscape + +The possible values in this file are: + + * 'Not affected': + + The processor is not vulnerable to VMSCAPE attacks. + + * 'Vulnerable': + + The processor is vulnerable and no mitigation has been applied. + + * 'Mitigation: IBPB before exit to userspace': + + Conditional IBPB mitigation is enabled. The kernel tracks when a CPU has + run a potentially malicious guest and issues an IBPB before the first + exit to userspace after VM-exit. + + * 'Mitigation: IBPB on VMEXIT': + + IBPB is issued on every VM-exit. This occurs when other mitigations like + RETBLEED or SRSO are already issuing IBPB on VM-exit. + +Mitigation control on the kernel command line +---------------------------------------------- + +The mitigation can be controlled via the ``vmscape=`` command line parameter: + + * ``vmscape=off``: + + Disable the VMSCAPE mitigation. + + * ``vmscape=ibpb``: + + Enable conditional IBPB mitigation (default when CONFIG_MITIGATION_VMSCAPE=y). + + * ``vmscape=force``: + + Force vulnerability detection and mitigation even on processors that are + not known to be affected. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/hw_random.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/hw_random.rst index 9b7f3e47f..bfc39f1cf 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/hw_random.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/hw_random.rst @@ -1,104 +1,104 @@ -================================= -Hardware random number generators -================================= - -Introduction -============ - -The hw_random framework is software that makes use of a -special hardware feature on your CPU or motherboard, -a Random Number Generator (RNG). The software has two parts: -a core providing the /dev/hwrng character device and its -sysfs support, plus a hardware-specific driver that plugs -into that core. - -To make the most effective use of these mechanisms, you -should download the support software as well. Download the -latest version of the "rng-tools" package from: - - https://github.com/nhorman/rng-tools - -Those tools use /dev/hwrng to fill the kernel entropy pool, -which is used internally and exported by the /dev/urandom and -/dev/random special files. - -Theory of operation -=================== - -CHARACTER DEVICE. Using the standard open() -and read() system calls, you can read random data from -the hardware RNG device. This data is NOT CHECKED by any -fitness tests, and could potentially be bogus (if the -hardware is faulty or has been tampered with). Data is only -output if the hardware "has-data" flag is set, but nevertheless -a security-conscious person would run fitness tests on the -data before assuming it is truly random. - -The rng-tools package uses such tests in "rngd", and lets you -run them by hand with a "rngtest" utility. - -/dev/hwrng is char device major 10, minor 183. - -CLASS DEVICE. There is a /sys/class/misc/hw_random node with -two unique attributes, "rng_available" and "rng_current". The -"rng_available" attribute lists the hardware-specific drivers -available, while "rng_current" lists the one which is currently -connected to /dev/hwrng. If your system has more than one -RNG available, you may change the one used by writing a name from -the list in "rng_available" into "rng_current". - -========================================================================== - - -Hardware driver for Intel/AMD/VIA Random Number Generators (RNG) - - Copyright 2000,2001 Jeff Garzik - - Copyright 2000,2001 Philipp Rumpf - - -About the Intel RNG hardware, from the firmware hub datasheet -============================================================= - -The Firmware Hub integrates a Random Number Generator (RNG) -using thermal noise generated from inherently random quantum -mechanical properties of silicon. When not generating new random -bits the RNG circuitry will enter a low power state. Intel will -provide a binary software driver to give third party software -access to our RNG for use as a security feature. At this time, -the RNG is only to be used with a system in an OS-present state. - -Intel RNG Driver notes -====================== - -FIXME: support poll(2) - -.. note:: - - request_mem_region was removed, for three reasons: - - 1) Only one RNG is supported by this driver; - 2) The location used by the RNG is a fixed location in - MMIO-addressable memory; - 3) users with properly working BIOS e820 handling will always - have the region in which the RNG is located reserved, so - request_mem_region calls always fail for proper setups. - However, for people who use mem=XX, BIOS e820 information is - **not** in /proc/iomem, and request_mem_region(RNG_ADDR) can - succeed. - -Driver details -============== - -Based on: - Intel 82802AB/82802AC Firmware Hub (FWH) Datasheet - May 1999 Order Number: 290658-002 R - -Intel 82802 Firmware Hub: - Random Number Generator - Programmer's Reference Manual - December 1999 Order Number: 298029-001 R - -Intel 82802 Firmware HUB Random Number Generator Driver - Copyright (c) 2000 Matt Sottek - -Special thanks to Matt Sottek. I did the "guts", he -did the "brains" and all the testing. +================================= +Hardware random number generators +================================= + +Introduction +============ + +The hw_random framework is software that makes use of a +special hardware feature on your CPU or motherboard, +a Random Number Generator (RNG). The software has two parts: +a core providing the /dev/hwrng character device and its +sysfs support, plus a hardware-specific driver that plugs +into that core. + +To make the most effective use of these mechanisms, you +should download the support software as well. Download the +latest version of the "rng-tools" package from: + + https://github.com/nhorman/rng-tools + +Those tools use /dev/hwrng to fill the kernel entropy pool, +which is used internally and exported by the /dev/urandom and +/dev/random special files. + +Theory of operation +=================== + +CHARACTER DEVICE. Using the standard open() +and read() system calls, you can read random data from +the hardware RNG device. This data is NOT CHECKED by any +fitness tests, and could potentially be bogus (if the +hardware is faulty or has been tampered with). Data is only +output if the hardware "has-data" flag is set, but nevertheless +a security-conscious person would run fitness tests on the +data before assuming it is truly random. + +The rng-tools package uses such tests in "rngd", and lets you +run them by hand with a "rngtest" utility. + +/dev/hwrng is char device major 10, minor 183. + +CLASS DEVICE. There is a /sys/class/misc/hw_random node with +two unique attributes, "rng_available" and "rng_current". The +"rng_available" attribute lists the hardware-specific drivers +available, while "rng_current" lists the one which is currently +connected to /dev/hwrng. If your system has more than one +RNG available, you may change the one used by writing a name from +the list in "rng_available" into "rng_current". + +========================================================================== + + +Hardware driver for Intel/AMD/VIA Random Number Generators (RNG) + - Copyright 2000,2001 Jeff Garzik + - Copyright 2000,2001 Philipp Rumpf + + +About the Intel RNG hardware, from the firmware hub datasheet +============================================================= + +The Firmware Hub integrates a Random Number Generator (RNG) +using thermal noise generated from inherently random quantum +mechanical properties of silicon. When not generating new random +bits the RNG circuitry will enter a low power state. Intel will +provide a binary software driver to give third party software +access to our RNG for use as a security feature. At this time, +the RNG is only to be used with a system in an OS-present state. + +Intel RNG Driver notes +====================== + +FIXME: support poll(2) + +.. note:: + + request_mem_region was removed, for three reasons: + + 1) Only one RNG is supported by this driver; + 2) The location used by the RNG is a fixed location in + MMIO-addressable memory; + 3) users with properly working BIOS e820 handling will always + have the region in which the RNG is located reserved, so + request_mem_region calls always fail for proper setups. + However, for people who use mem=XX, BIOS e820 information is + **not** in /proc/iomem, and request_mem_region(RNG_ADDR) can + succeed. + +Driver details +============== + +Based on: + Intel 82802AB/82802AC Firmware Hub (FWH) Datasheet + May 1999 Order Number: 290658-002 R + +Intel 82802 Firmware Hub: + Random Number Generator + Programmer's Reference Manual + December 1999 Order Number: 298029-001 R + +Intel 82802 Firmware HUB Random Number Generator Driver + Copyright (c) 2000 Matt Sottek + +Special thanks to Matt Sottek. I did the "guts", he +did the "brains" and all the testing. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/lockup-watchdogs.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/lockup-watchdogs.rst index 1acab64c7..3e09284a8 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/lockup-watchdogs.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/lockup-watchdogs.rst @@ -1,83 +1,83 @@ -=============================================================== -Softlockup detector and hardlockup detector (aka nmi_watchdog) -=============================================================== - -The Linux kernel can act as a watchdog to detect both soft and hard -lockups. - -A 'softlockup' is defined as a bug that causes the kernel to loop in -kernel mode for more than 20 seconds (see "Implementation" below for -details), without giving other tasks a chance to run. The current -stack trace is displayed upon detection and, by default, the system -will stay locked up. Alternatively, the kernel can be configured to -panic; a sysctl, "kernel.softlockup_panic", a kernel parameter, -"softlockup_panic" (see "Documentation/admin-guide/kernel-parameters.rst" for -details), and a compile option, "BOOTPARAM_SOFTLOCKUP_PANIC", are -provided for this. - -A 'hardlockup' is defined as a bug that causes the CPU to loop in -kernel mode for more than 10 seconds (see "Implementation" below for -details), without letting other interrupts have a chance to run. -Similarly to the softlockup case, the current stack trace is displayed -upon detection and the system will stay locked up unless the default -behavior is changed, which can be done through a sysctl, -'hardlockup_panic', a compile time knob, "BOOTPARAM_HARDLOCKUP_PANIC", -and a kernel parameter, "nmi_watchdog" -(see "Documentation/admin-guide/kernel-parameters.rst" for details). - -The panic option can be used in combination with panic_timeout (this -timeout is set through the confusingly named "kernel.panic" sysctl), -to cause the system to reboot automatically after a specified amount -of time. - -Implementation -============== - -The soft and hard lockup detectors are built on top of the hrtimer and -perf subsystems, respectively. A direct consequence of this is that, -in principle, they should work in any architecture where these -subsystems are present. - -A periodic hrtimer runs to generate interrupts and kick the watchdog -job. An NMI perf event is generated every "watchdog_thresh" -(compile-time initialized to 10 and configurable through sysctl of the -same name) seconds to check for hardlockups. If any CPU in the system -does not receive any hrtimer interrupt during that time the -'hardlockup detector' (the handler for the NMI perf event) will -generate a kernel warning or call panic, depending on the -configuration. - -The watchdog job runs in a stop scheduling thread that updates a -timestamp every time it is scheduled. If that timestamp is not updated -for 2*watchdog_thresh seconds (the softlockup threshold) the -'softlockup detector' (coded inside the hrtimer callback function) -will dump useful debug information to the system log, after which it -will call panic if it was instructed to do so or resume execution of -other kernel code. - -The period of the hrtimer is 2*watchdog_thresh/5, which means it has -two or three chances to generate an interrupt before the hardlockup -detector kicks in. - -As explained above, a kernel knob is provided that allows -administrators to configure the period of the hrtimer and the perf -event. The right value for a particular environment is a trade-off -between fast response to lockups and detection overhead. - -By default, the watchdog runs on all online cores. However, on a -kernel configured with NO_HZ_FULL, by default the watchdog runs only -on the housekeeping cores, not the cores specified in the "nohz_full" -boot argument. If we allowed the watchdog to run by default on -the "nohz_full" cores, we would have to run timer ticks to activate -the scheduler, which would prevent the "nohz_full" functionality -from protecting the user code on those cores from the kernel. -Of course, disabling it by default on the nohz_full cores means that -when those cores do enter the kernel, by default we will not be -able to detect if they lock up. However, allowing the watchdog -to continue to run on the housekeeping (non-tickless) cores means -that we will continue to detect lockups properly on those cores. - -In either case, the set of cores excluded from running the watchdog -may be adjusted via the kernel.watchdog_cpumask sysctl. For -nohz_full cores, this may be useful for debugging a case where the -kernel seems to be hanging on the nohz_full cores. +=============================================================== +Softlockup detector and hardlockup detector (aka nmi_watchdog) +=============================================================== + +The Linux kernel can act as a watchdog to detect both soft and hard +lockups. + +A 'softlockup' is defined as a bug that causes the kernel to loop in +kernel mode for more than 20 seconds (see "Implementation" below for +details), without giving other tasks a chance to run. The current +stack trace is displayed upon detection and, by default, the system +will stay locked up. Alternatively, the kernel can be configured to +panic; a sysctl, "kernel.softlockup_panic", a kernel parameter, +"softlockup_panic" (see "Documentation/admin-guide/kernel-parameters.rst" for +details), and a compile option, "BOOTPARAM_SOFTLOCKUP_PANIC", are +provided for this. + +A 'hardlockup' is defined as a bug that causes the CPU to loop in +kernel mode for more than 10 seconds (see "Implementation" below for +details), without letting other interrupts have a chance to run. +Similarly to the softlockup case, the current stack trace is displayed +upon detection and the system will stay locked up unless the default +behavior is changed, which can be done through a sysctl, +'hardlockup_panic', a compile time knob, "BOOTPARAM_HARDLOCKUP_PANIC", +and a kernel parameter, "nmi_watchdog" +(see "Documentation/admin-guide/kernel-parameters.rst" for details). + +The panic option can be used in combination with panic_timeout (this +timeout is set through the confusingly named "kernel.panic" sysctl), +to cause the system to reboot automatically after a specified amount +of time. + +Implementation +============== + +The soft and hard lockup detectors are built on top of the hrtimer and +perf subsystems, respectively. A direct consequence of this is that, +in principle, they should work in any architecture where these +subsystems are present. + +A periodic hrtimer runs to generate interrupts and kick the watchdog +job. An NMI perf event is generated every "watchdog_thresh" +(compile-time initialized to 10 and configurable through sysctl of the +same name) seconds to check for hardlockups. If any CPU in the system +does not receive any hrtimer interrupt during that time the +'hardlockup detector' (the handler for the NMI perf event) will +generate a kernel warning or call panic, depending on the +configuration. + +The watchdog job runs in a stop scheduling thread that updates a +timestamp every time it is scheduled. If that timestamp is not updated +for 2*watchdog_thresh seconds (the softlockup threshold) the +'softlockup detector' (coded inside the hrtimer callback function) +will dump useful debug information to the system log, after which it +will call panic if it was instructed to do so or resume execution of +other kernel code. + +The period of the hrtimer is 2*watchdog_thresh/5, which means it has +two or three chances to generate an interrupt before the hardlockup +detector kicks in. + +As explained above, a kernel knob is provided that allows +administrators to configure the period of the hrtimer and the perf +event. The right value for a particular environment is a trade-off +between fast response to lockups and detection overhead. + +By default, the watchdog runs on all online cores. However, on a +kernel configured with NO_HZ_FULL, by default the watchdog runs only +on the housekeeping cores, not the cores specified in the "nohz_full" +boot argument. If we allowed the watchdog to run by default on +the "nohz_full" cores, we would have to run timer ticks to activate +the scheduler, which would prevent the "nohz_full" functionality +from protecting the user code on those cores from the kernel. +Of course, disabling it by default on the nohz_full cores means that +when those cores do enter the kernel, by default we will not be +able to detect if they lock up. However, allowing the watchdog +to continue to run on the housekeeping (non-tickless) cores means +that we will continue to detect lockups properly on those cores. + +In either case, the set of cores excluded from running the watchdog +may be adjusted via the kernel.watchdog_cpumask sysctl. For +nohz_full cores, this may be useful for debugging a case where the +kernel seems to be hanging on the nohz_full cores. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/avermedia.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/avermedia.rst index ea9c8fdd2..93ff74002 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/avermedia.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/avermedia.rst @@ -1,94 +1,94 @@ -.. SPDX-License-Identifier: GPL-2.0 - -====================================== -Avermedia DVB-T on BT878 Release Notes -====================================== - -February 14th 2006 - -.. note:: - - Several other Avermedia devices are supported. For a more - broader and updated content about that, please check: - - https://linuxtv.org/wiki/index.php/AVerMedia - -The Avermedia DVB-T -~~~~~~~~~~~~~~~~~~~ - -The Avermedia DVB-T is a budget PCI DVB card. It has 3 inputs: - -* RF Tuner Input -* Composite Video Input (RCA Jack) -* SVIDEO Input (Mini-DIN) - -The RF Tuner Input is the input to the tuner module of the -card. The Tuner is otherwise known as the "Frontend" . The -Frontend of the Avermedia DVB-T is a Microtune 7202D. A timely -post to the linux-dvb mailing list ascertained that the -Microtune 7202D is supported by the sp887x driver which is -found in the dvb-hw CVS module. - -The DVB-T card is based around the BT878 chip which is a very -common multimedia bridge and often found on Analogue TV cards. -There is no on-board MPEG2 decoder, which means that all MPEG2 -decoding must be done in software, or if you have one, on an -MPEG2 hardware decoding card or chipset. - - -Getting the card going -~~~~~~~~~~~~~~~~~~~~~~ - -At this stage, it has not been able to ascertain the -functionality of the remaining device nodes in respect of the -Avermedia DVBT. However, full functionality in respect of -tuning, receiving and supplying the MPEG2 data stream is -possible with the currently available versions of the driver. -It may be possible that additional functionality is available -from the card (i.e. viewing the additional analogue inputs -that the card presents), but this has not been tested yet. If -I get around to this, I'll update the document with whatever I -find. - -To power up the card, load the following modules in the -following order: - -* modprobe bttv (normally loaded automatically) -* modprobe dvb-bt8xx (or place dvb-bt8xx in /etc/modules) - -Insertion of these modules into the running kernel will -activate the appropriate DVB device nodes. It is then possible -to start accessing the card with utilities such as scan, tzap, -dvbstream etc. - -The frontend module sp887x.o, requires an external firmware. -Please use the command "get_dvb_firmware sp887x" to download -it. Then copy it to /usr/lib/hotplug/firmware or /lib/firmware/ -(depending on configuration of firmware hotplug). - -Known Limitations -~~~~~~~~~~~~~~~~~ - -At present I can say with confidence that the frontend tunes -via /dev/dvb/adapter{x}/frontend0 and supplies an MPEG2 stream -via /dev/dvb/adapter{x}/dvr0. I have not tested the -functionality of any other part of the card yet. I will do so -over time and update this document. - -There are some limitations in the i2c layer due to a returned -error message inconsistency. Although this generates errors in -dmesg and the system logs, it does not appear to affect the -ability of the frontend to function correctly. - -Further Update -~~~~~~~~~~~~~~ - -dvbstream and VideoLAN Client on windows works a treat with -DVB, in fact this is currently serving as my main way of -viewing DVB-T at the moment. Additionally, VLC is happily -decoding HDTV signals, although the PC is dropping the odd -frame here and there - I assume due to processing capability - -as all the decoding is being done under windows in software. - -Many thanks to Nigel Pearson for the updates to this document -since the recent revision of the driver. +.. SPDX-License-Identifier: GPL-2.0 + +====================================== +Avermedia DVB-T on BT878 Release Notes +====================================== + +February 14th 2006 + +.. note:: + + Several other Avermedia devices are supported. For a more + broader and updated content about that, please check: + + https://linuxtv.org/wiki/index.php/AVerMedia + +The Avermedia DVB-T +~~~~~~~~~~~~~~~~~~~ + +The Avermedia DVB-T is a budget PCI DVB card. It has 3 inputs: + +* RF Tuner Input +* Composite Video Input (RCA Jack) +* SVIDEO Input (Mini-DIN) + +The RF Tuner Input is the input to the tuner module of the +card. The Tuner is otherwise known as the "Frontend" . The +Frontend of the Avermedia DVB-T is a Microtune 7202D. A timely +post to the linux-dvb mailing list ascertained that the +Microtune 7202D is supported by the sp887x driver which is +found in the dvb-hw CVS module. + +The DVB-T card is based around the BT878 chip which is a very +common multimedia bridge and often found on Analogue TV cards. +There is no on-board MPEG2 decoder, which means that all MPEG2 +decoding must be done in software, or if you have one, on an +MPEG2 hardware decoding card or chipset. + + +Getting the card going +~~~~~~~~~~~~~~~~~~~~~~ + +At this stage, it has not been able to ascertain the +functionality of the remaining device nodes in respect of the +Avermedia DVBT. However, full functionality in respect of +tuning, receiving and supplying the MPEG2 data stream is +possible with the currently available versions of the driver. +It may be possible that additional functionality is available +from the card (i.e. viewing the additional analogue inputs +that the card presents), but this has not been tested yet. If +I get around to this, I'll update the document with whatever I +find. + +To power up the card, load the following modules in the +following order: + +* modprobe bttv (normally loaded automatically) +* modprobe dvb-bt8xx (or place dvb-bt8xx in /etc/modules) + +Insertion of these modules into the running kernel will +activate the appropriate DVB device nodes. It is then possible +to start accessing the card with utilities such as scan, tzap, +dvbstream etc. + +The frontend module sp887x.o, requires an external firmware. +Please use the command "get_dvb_firmware sp887x" to download +it. Then copy it to /usr/lib/hotplug/firmware or /lib/firmware/ +(depending on configuration of firmware hotplug). + +Known Limitations +~~~~~~~~~~~~~~~~~ + +At present I can say with confidence that the frontend tunes +via /dev/dvb/adapter{x}/frontend0 and supplies an MPEG2 stream +via /dev/dvb/adapter{x}/dvr0. I have not tested the +functionality of any other part of the card yet. I will do so +over time and update this document. + +There are some limitations in the i2c layer due to a returned +error message inconsistency. Although this generates errors in +dmesg and the system logs, it does not appear to affect the +ability of the frontend to function correctly. + +Further Update +~~~~~~~~~~~~~~ + +dvbstream and VideoLAN Client on windows works a treat with +DVB, in fact this is currently serving as my main way of +viewing DVB-T at the moment. Additionally, VLC is happily +decoding HDTV signals, although the PC is dropping the odd +frame here and there - I assume due to processing capability - +as all the decoding is being done under windows in software. + +Many thanks to Nigel Pearson for the updates to this document +since the recent revision of the driver. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/cx23885-cardlist.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/cx23885-cardlist.rst index e78412481..c47514fea 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/cx23885-cardlist.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/cx23885-cardlist.rst @@ -1,267 +1,267 @@ -.. SPDX-License-Identifier: GPL-2.0 - -cx23885 cards list -================== - -.. tabularcolumns:: |p{1.4cm}|p{11.1cm}|p{4.2cm}| - -.. flat-table:: - :header-rows: 1 - :widths: 2 19 18 - :stub-columns: 0 - - * - Card number - - Card name - - PCI subsystem IDs - - * - 0 - - UNKNOWN/GENERIC - - 0070:3400 - - * - 1 - - Hauppauge WinTV-HVR1800lp - - 0070:7600 - - * - 2 - - Hauppauge WinTV-HVR1800 - - 0070:7800, 0070:7801, 0070:7809 - - * - 3 - - Hauppauge WinTV-HVR1250 - - 0070:7911 - - * - 4 - - DViCO FusionHDTV5 Express - - 18ac:d500 - - * - 5 - - Hauppauge WinTV-HVR1500Q - - 0070:7790, 0070:7797 - - * - 6 - - Hauppauge WinTV-HVR1500 - - 0070:7710, 0070:7717 - - * - 7 - - Hauppauge WinTV-HVR1200 - - 0070:71d1, 0070:71d3 - - * - 8 - - Hauppauge WinTV-HVR1700 - - 0070:8101 - - * - 9 - - Hauppauge WinTV-HVR1400 - - 0070:8010 - - * - 10 - - DViCO FusionHDTV7 Dual Express - - 18ac:d618 - - * - 11 - - DViCO FusionHDTV DVB-T Dual Express - - 18ac:db78 - - * - 12 - - Leadtek Winfast PxDVR3200 H - - 107d:6681 - - * - 13 - - Compro VideoMate E650F - - 185b:e800 - - * - 14 - - TurboSight TBS 6920 - - 6920:8888 - - * - 15 - - TeVii S470 - - d470:9022 - - * - 16 - - DVBWorld DVB-S2 2005 - - 0001:2005 - - * - 17 - - NetUP Dual DVB-S2 CI - - 1b55:2a2c - - * - 18 - - Hauppauge WinTV-HVR1270 - - 0070:2211 - - * - 19 - - Hauppauge WinTV-HVR1275 - - 0070:2215, 0070:221d, 0070:22f2 - - * - 20 - - Hauppauge WinTV-HVR1255 - - 0070:2251, 0070:22f1 - - * - 21 - - Hauppauge WinTV-HVR1210 - - 0070:2291, 0070:2295, 0070:2299, 0070:229d, 0070:22f0, 0070:22f3, 0070:22f4, 0070:22f5 - - * - 22 - - Mygica X8506 DMB-TH - - 14f1:8651 - - * - 23 - - Magic-Pro ProHDTV Extreme 2 - - 14f1:8657 - - * - 24 - - Hauppauge WinTV-HVR1850 - - 0070:8541 - - * - 25 - - Compro VideoMate E800 - - 1858:e800 - - * - 26 - - Hauppauge WinTV-HVR1290 - - 0070:8551 - - * - 27 - - Mygica X8558 PRO DMB-TH - - 14f1:8578 - - * - 28 - - LEADTEK WinFast PxTV1200 - - 107d:6f22 - - * - 29 - - GoTView X5 3D Hybrid - - 5654:2390 - - * - 30 - - NetUP Dual DVB-T/C-CI RF - - 1b55:e2e4 - - * - 31 - - Leadtek Winfast PxDVR3200 H XC4000 - - 107d:6f39 - - * - 32 - - MPX-885 - - - - * - 33 - - Mygica X8502/X8507 ISDB-T - - 14f1:8502 - - * - 34 - - TerraTec Cinergy T PCIe Dual - - 153b:117e - - * - 35 - - TeVii S471 - - d471:9022 - - * - 36 - - Hauppauge WinTV-HVR1255 - - 0070:2259 - - * - 37 - - Prof Revolution DVB-S2 8000 - - 8000:3034 - - * - 38 - - Hauppauge WinTV-HVR4400/HVR5500 - - 0070:c108, 0070:c138, 0070:c1f8 - - * - 39 - - AVerTV Hybrid Express Slim HC81R - - 1461:d939 - - * - 40 - - TurboSight TBS 6981 - - 6981:8888 - - * - 41 - - TurboSight TBS 6980 - - 6980:8888 - - * - 42 - - Leadtek Winfast PxPVR2200 - - 107d:6f21 - - * - 43 - - Hauppauge ImpactVCB-e - - 0070:7133, 0070:7137 - - * - 44 - - DViCO FusionHDTV DVB-T Dual Express2 - - 18ac:db98 - - * - 45 - - DVBSky T9580 - - 4254:9580 - - * - 46 - - DVBSky T980C - - 4254:980c - - * - 47 - - DVBSky S950C - - 4254:950c - - * - 48 - - Technotrend TT-budget CT2-4500 CI - - 13c2:3013 - - * - 49 - - DVBSky S950 - - 4254:0950 - - * - 50 - - DVBSky S952 - - 4254:0952 - - * - 51 - - DVBSky T982 - - 4254:0982 - - * - 52 - - Hauppauge WinTV-HVR5525 - - 0070:f038 - - * - 53 - - Hauppauge WinTV Starburst - - 0070:c12a - - * - 54 - - ViewCast 260e - - 1576:0260 - - * - 55 - - ViewCast 460e - - 1576:0460 - - * - 56 - - Hauppauge WinTV-QuadHD-DVB - - 0070:6a28, 0070:6b28 - - * - 57 - - Hauppauge WinTV-QuadHD-ATSC - - 0070:6a18, 0070:6b18 - - * - 58 - - Hauppauge WinTV-HVR-1265(161111) - - 0070:2a18 - - * - 59 - - Hauppauge WinTV-Starburst2 - - 0070:f02a - - * - 60 - - Hauppauge WinTV-QuadHD-DVB(885) - - - - * - 61 - - Hauppauge WinTV-QuadHD-ATSC(885) - - - - * - 62 - - AVerMedia CE310B - - 1461:3100 +.. SPDX-License-Identifier: GPL-2.0 + +cx23885 cards list +================== + +.. tabularcolumns:: |p{1.4cm}|p{11.1cm}|p{4.2cm}| + +.. flat-table:: + :header-rows: 1 + :widths: 2 19 18 + :stub-columns: 0 + + * - Card number + - Card name + - PCI subsystem IDs + + * - 0 + - UNKNOWN/GENERIC + - 0070:3400 + + * - 1 + - Hauppauge WinTV-HVR1800lp + - 0070:7600 + + * - 2 + - Hauppauge WinTV-HVR1800 + - 0070:7800, 0070:7801, 0070:7809 + + * - 3 + - Hauppauge WinTV-HVR1250 + - 0070:7911 + + * - 4 + - DViCO FusionHDTV5 Express + - 18ac:d500 + + * - 5 + - Hauppauge WinTV-HVR1500Q + - 0070:7790, 0070:7797 + + * - 6 + - Hauppauge WinTV-HVR1500 + - 0070:7710, 0070:7717 + + * - 7 + - Hauppauge WinTV-HVR1200 + - 0070:71d1, 0070:71d3 + + * - 8 + - Hauppauge WinTV-HVR1700 + - 0070:8101 + + * - 9 + - Hauppauge WinTV-HVR1400 + - 0070:8010 + + * - 10 + - DViCO FusionHDTV7 Dual Express + - 18ac:d618 + + * - 11 + - DViCO FusionHDTV DVB-T Dual Express + - 18ac:db78 + + * - 12 + - Leadtek Winfast PxDVR3200 H + - 107d:6681 + + * - 13 + - Compro VideoMate E650F + - 185b:e800 + + * - 14 + - TurboSight TBS 6920 + - 6920:8888 + + * - 15 + - TeVii S470 + - d470:9022 + + * - 16 + - DVBWorld DVB-S2 2005 + - 0001:2005 + + * - 17 + - NetUP Dual DVB-S2 CI + - 1b55:2a2c + + * - 18 + - Hauppauge WinTV-HVR1270 + - 0070:2211 + + * - 19 + - Hauppauge WinTV-HVR1275 + - 0070:2215, 0070:221d, 0070:22f2 + + * - 20 + - Hauppauge WinTV-HVR1255 + - 0070:2251, 0070:22f1 + + * - 21 + - Hauppauge WinTV-HVR1210 + - 0070:2291, 0070:2295, 0070:2299, 0070:229d, 0070:22f0, 0070:22f3, 0070:22f4, 0070:22f5 + + * - 22 + - Mygica X8506 DMB-TH + - 14f1:8651 + + * - 23 + - Magic-Pro ProHDTV Extreme 2 + - 14f1:8657 + + * - 24 + - Hauppauge WinTV-HVR1850 + - 0070:8541 + + * - 25 + - Compro VideoMate E800 + - 1858:e800 + + * - 26 + - Hauppauge WinTV-HVR1290 + - 0070:8551 + + * - 27 + - Mygica X8558 PRO DMB-TH + - 14f1:8578 + + * - 28 + - LEADTEK WinFast PxTV1200 + - 107d:6f22 + + * - 29 + - GoTView X5 3D Hybrid + - 5654:2390 + + * - 30 + - NetUP Dual DVB-T/C-CI RF + - 1b55:e2e4 + + * - 31 + - Leadtek Winfast PxDVR3200 H XC4000 + - 107d:6f39 + + * - 32 + - MPX-885 + - + + * - 33 + - Mygica X8502/X8507 ISDB-T + - 14f1:8502 + + * - 34 + - TerraTec Cinergy T PCIe Dual + - 153b:117e + + * - 35 + - TeVii S471 + - d471:9022 + + * - 36 + - Hauppauge WinTV-HVR1255 + - 0070:2259 + + * - 37 + - Prof Revolution DVB-S2 8000 + - 8000:3034 + + * - 38 + - Hauppauge WinTV-HVR4400/HVR5500 + - 0070:c108, 0070:c138, 0070:c1f8 + + * - 39 + - AVerTV Hybrid Express Slim HC81R + - 1461:d939 + + * - 40 + - TurboSight TBS 6981 + - 6981:8888 + + * - 41 + - TurboSight TBS 6980 + - 6980:8888 + + * - 42 + - Leadtek Winfast PxPVR2200 + - 107d:6f21 + + * - 43 + - Hauppauge ImpactVCB-e + - 0070:7133, 0070:7137 + + * - 44 + - DViCO FusionHDTV DVB-T Dual Express2 + - 18ac:db98 + + * - 45 + - DVBSky T9580 + - 4254:9580 + + * - 46 + - DVBSky T980C + - 4254:980c + + * - 47 + - DVBSky S950C + - 4254:950c + + * - 48 + - Technotrend TT-budget CT2-4500 CI + - 13c2:3013 + + * - 49 + - DVBSky S950 + - 4254:0950 + + * - 50 + - DVBSky S952 + - 4254:0952 + + * - 51 + - DVBSky T982 + - 4254:0982 + + * - 52 + - Hauppauge WinTV-HVR5525 + - 0070:f038 + + * - 53 + - Hauppauge WinTV Starburst + - 0070:c12a + + * - 54 + - ViewCast 260e + - 1576:0260 + + * - 55 + - ViewCast 460e + - 1576:0460 + + * - 56 + - Hauppauge WinTV-QuadHD-DVB + - 0070:6a28, 0070:6b28 + + * - 57 + - Hauppauge WinTV-QuadHD-ATSC + - 0070:6a18, 0070:6b18 + + * - 58 + - Hauppauge WinTV-HVR-1265(161111) + - 0070:2a18 + + * - 59 + - Hauppauge WinTV-Starburst2 + - 0070:f02a + + * - 60 + - Hauppauge WinTV-QuadHD-DVB(885) + - + + * - 61 + - Hauppauge WinTV-QuadHD-ATSC(885) + - + + * - 62 + - AVerMedia CE310B + - 1461:3100 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/dvb-usb-dib0700-cardlist.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/dvb-usb-dib0700-cardlist.rst index 99868f67a..4b76b6f10 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/dvb-usb-dib0700-cardlist.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/dvb-usb-dib0700-cardlist.rst @@ -1,162 +1,162 @@ -.. SPDX-License-Identifier: GPL-2.0 - -dvb-usb-dib0700 cards list -========================== - -.. tabularcolumns:: |p{7.0cm}|p{10.5cm}| - -.. flat-table:: - :header-rows: 1 - :widths: 7 13 - :stub-columns: 0 - - * - Card name - - USB IDs - * - ASUS My Cinema U3000 Mini DVBT Tuner - - 0b05:171f - * - ASUS My Cinema U3100 Mini DVBT Tuner - - 0b05:173f - * - AVerMedia AVerTV DVB-T Express - - 07ca:b568 - * - AVerMedia AVerTV DVB-T Volar - - 07ca:a807, 07ca:b808 - * - Artec T14BR DVB-T - - 05d8:810f - * - Asus My Cinema-U3000Hybrid - - 0b05:1736 - * - Compro Videomate U500 - - 185b:1e78, 185b:1e80 - * - DiBcom NIM7090 reference design - - 10b8:1bb2 - * - DiBcom NIM8096MD reference design - - 10b8:1fa8 - * - DiBcom NIM9090MD reference design - - 10b8:2384 - * - DiBcom STK7070P reference design - - 10b8:1ebc - * - DiBcom STK7070PD reference design - - 10b8:1ebe - * - DiBcom STK7700D reference design - - 10b8:1ef0 - * - DiBcom STK7700P reference design - - 10b8:1e14, 10b8:1e78 - * - DiBcom STK7770P reference design - - 10b8:1e80 - * - DiBcom STK807xP reference design - - 10b8:1f90 - * - DiBcom STK807xPVR reference design - - 10b8:1f98 - * - DiBcom STK8096-PVR reference design - - 2013:1faa, 10b8:1faa - * - DiBcom STK8096GP reference design - - 10b8:1fa0 - * - DiBcom STK9090M reference design - - 10b8:2383 - * - DiBcom TFE7090PVR reference design - - 10b8:1bb4 - * - DiBcom TFE7790P reference design - - 10b8:1e6e - * - DiBcom TFE8096P reference design - - 10b8:1f9C - * - Elgato EyeTV DTT - - 0fd9:0021 - * - Elgato EyeTV DTT rev. 2 - - 0fd9:003f - * - Elgato EyeTV Diversity - - 0fd9:0011 - * - Elgato EyeTV Dtt Dlx PD378S - - 0fd9:0020 - * - EvolutePC TVWay+ - - 1e59:0002 - * - Gigabyte U7000 - - 1044:7001 - * - Gigabyte U8000-RH - - 1044:7002 - * - Hama DVB=T Hybrid USB Stick - - 147f:2758 - * - Hauppauge ATSC MiniCard (B200) - - 2040:b200 - * - Hauppauge ATSC MiniCard (B210) - - 2040:b210 - * - Hauppauge Nova-T 500 Dual DVB-T - - 2040:9941, 2040:9950 - * - Hauppauge Nova-T MyTV.t - - 2040:7080 - * - Hauppauge Nova-T Stick - - 2040:7050, 2040:7060, 2040:7070 - * - Hauppauge Nova-TD Stick (52009) - - 2040:5200 - * - Hauppauge Nova-TD Stick/Elgato Eye-TV Diversity - - 2040:9580 - * - Hauppauge Nova-TD-500 (84xxx) - - 2040:8400 - * - Leadtek WinFast DTV Dongle H - - 0413:60f6 - * - Leadtek Winfast DTV Dongle (STK7700P based) - - 0413:6f00, 0413:6f01 - * - Medion CTX1921 DVB-T USB - - 1660:1921 - * - Microsoft Xbox One Digital TV Tuner - - 045e:02d5 - * - PCTV 2002e - - 2013:025c - * - PCTV 2002e SE - - 2013:025d - * - Pinnacle Expresscard 320cx - - 2304:022e - * - Pinnacle PCTV 2000e - - 2304:022c - * - Pinnacle PCTV 282e - - 2013:0248, 2304:0248 - * - Pinnacle PCTV 340e HD Pro USB Stick - - 2304:023d - * - Pinnacle PCTV 72e - - 2304:0236 - * - Pinnacle PCTV 73A - - 2304:0243 - * - Pinnacle PCTV 73e - - 2304:0237 - * - Pinnacle PCTV 73e SE - - 2013:0245, 2304:0245 - * - Pinnacle PCTV DVB-T Flash Stick - - 2304:0228 - * - Pinnacle PCTV Dual DVB-T Diversity Stick - - 2304:0229 - * - Pinnacle PCTV HD Pro USB Stick - - 2304:023a - * - Pinnacle PCTV HD USB Stick - - 2304:023b - * - Pinnacle PCTV Hybrid Stick Solo - - 2304:023e - * - Prolink Pixelview SBTVD - - 1554:5010 - * - Sony PlayTV - - 1415:0003 - * - TechniSat AirStar TeleStick 2 - - 14f7:0004 - * - Terratec Cinergy DT USB XS Diversity/ T5 - - 0ccd:0081, 0ccd:10a1 - * - Terratec Cinergy DT XS Diversity - - 0ccd:005a - * - Terratec Cinergy HT Express - - 0ccd:0060 - * - Terratec Cinergy HT USB XE - - 0ccd:0058 - * - Terratec Cinergy T Express - - 0ccd:0062 - * - Terratec Cinergy T USB XXS (HD)/ T3 - - 0ccd:0078, 0ccd:10a0, 0ccd:00ab - * - Uniwill STK7700P based (Hama and others) - - 1584:6003 - * - YUAN High-Tech DiBcom STK7700D - - 1164:1e8c - * - YUAN High-Tech MC770 - - 1164:0871 - * - YUAN High-Tech STK7700D - - 1164:1efc - * - YUAN High-Tech STK7700PH - - 1164:1f08 - * - Yuan EC372S - - 1164:1edc - * - Yuan PD378S - - 1164:2edc +.. SPDX-License-Identifier: GPL-2.0 + +dvb-usb-dib0700 cards list +========================== + +.. tabularcolumns:: |p{7.0cm}|p{10.5cm}| + +.. flat-table:: + :header-rows: 1 + :widths: 7 13 + :stub-columns: 0 + + * - Card name + - USB IDs + * - ASUS My Cinema U3000 Mini DVBT Tuner + - 0b05:171f + * - ASUS My Cinema U3100 Mini DVBT Tuner + - 0b05:173f + * - AVerMedia AVerTV DVB-T Express + - 07ca:b568 + * - AVerMedia AVerTV DVB-T Volar + - 07ca:a807, 07ca:b808 + * - Artec T14BR DVB-T + - 05d8:810f + * - Asus My Cinema-U3000Hybrid + - 0b05:1736 + * - Compro Videomate U500 + - 185b:1e78, 185b:1e80 + * - DiBcom NIM7090 reference design + - 10b8:1bb2 + * - DiBcom NIM8096MD reference design + - 10b8:1fa8 + * - DiBcom NIM9090MD reference design + - 10b8:2384 + * - DiBcom STK7070P reference design + - 10b8:1ebc + * - DiBcom STK7070PD reference design + - 10b8:1ebe + * - DiBcom STK7700D reference design + - 10b8:1ef0 + * - DiBcom STK7700P reference design + - 10b8:1e14, 10b8:1e78 + * - DiBcom STK7770P reference design + - 10b8:1e80 + * - DiBcom STK807xP reference design + - 10b8:1f90 + * - DiBcom STK807xPVR reference design + - 10b8:1f98 + * - DiBcom STK8096-PVR reference design + - 2013:1faa, 10b8:1faa + * - DiBcom STK8096GP reference design + - 10b8:1fa0 + * - DiBcom STK9090M reference design + - 10b8:2383 + * - DiBcom TFE7090PVR reference design + - 10b8:1bb4 + * - DiBcom TFE7790P reference design + - 10b8:1e6e + * - DiBcom TFE8096P reference design + - 10b8:1f9C + * - Elgato EyeTV DTT + - 0fd9:0021 + * - Elgato EyeTV DTT rev. 2 + - 0fd9:003f + * - Elgato EyeTV Diversity + - 0fd9:0011 + * - Elgato EyeTV Dtt Dlx PD378S + - 0fd9:0020 + * - EvolutePC TVWay+ + - 1e59:0002 + * - Gigabyte U7000 + - 1044:7001 + * - Gigabyte U8000-RH + - 1044:7002 + * - Hama DVB=T Hybrid USB Stick + - 147f:2758 + * - Hauppauge ATSC MiniCard (B200) + - 2040:b200 + * - Hauppauge ATSC MiniCard (B210) + - 2040:b210 + * - Hauppauge Nova-T 500 Dual DVB-T + - 2040:9941, 2040:9950 + * - Hauppauge Nova-T MyTV.t + - 2040:7080 + * - Hauppauge Nova-T Stick + - 2040:7050, 2040:7060, 2040:7070 + * - Hauppauge Nova-TD Stick (52009) + - 2040:5200 + * - Hauppauge Nova-TD Stick/Elgato Eye-TV Diversity + - 2040:9580 + * - Hauppauge Nova-TD-500 (84xxx) + - 2040:8400 + * - Leadtek WinFast DTV Dongle H + - 0413:60f6 + * - Leadtek Winfast DTV Dongle (STK7700P based) + - 0413:6f00, 0413:6f01 + * - Medion CTX1921 DVB-T USB + - 1660:1921 + * - Microsoft Xbox One Digital TV Tuner + - 045e:02d5 + * - PCTV 2002e + - 2013:025c + * - PCTV 2002e SE + - 2013:025d + * - Pinnacle Expresscard 320cx + - 2304:022e + * - Pinnacle PCTV 2000e + - 2304:022c + * - Pinnacle PCTV 282e + - 2013:0248, 2304:0248 + * - Pinnacle PCTV 340e HD Pro USB Stick + - 2304:023d + * - Pinnacle PCTV 72e + - 2304:0236 + * - Pinnacle PCTV 73A + - 2304:0243 + * - Pinnacle PCTV 73e + - 2304:0237 + * - Pinnacle PCTV 73e SE + - 2013:0245, 2304:0245 + * - Pinnacle PCTV DVB-T Flash Stick + - 2304:0228 + * - Pinnacle PCTV Dual DVB-T Diversity Stick + - 2304:0229 + * - Pinnacle PCTV HD Pro USB Stick + - 2304:023a + * - Pinnacle PCTV HD USB Stick + - 2304:023b + * - Pinnacle PCTV Hybrid Stick Solo + - 2304:023e + * - Prolink Pixelview SBTVD + - 1554:5010 + * - Sony PlayTV + - 1415:0003 + * - TechniSat AirStar TeleStick 2 + - 14f7:0004 + * - Terratec Cinergy DT USB XS Diversity/ T5 + - 0ccd:0081, 0ccd:10a1 + * - Terratec Cinergy DT XS Diversity + - 0ccd:005a + * - Terratec Cinergy HT Express + - 0ccd:0060 + * - Terratec Cinergy HT USB XE + - 0ccd:0058 + * - Terratec Cinergy T Express + - 0ccd:0062 + * - Terratec Cinergy T USB XXS (HD)/ T3 + - 0ccd:0078, 0ccd:10a0, 0ccd:00ab + * - Uniwill STK7700P based (Hama and others) + - 1584:6003 + * - YUAN High-Tech DiBcom STK7700D + - 1164:1e8c + * - YUAN High-Tech MC770 + - 1164:0871 + * - YUAN High-Tech STK7700D + - 1164:1efc + * - YUAN High-Tech STK7700PH + - 1164:1f08 + * - Yuan EC372S + - 1164:1edc + * - Yuan PD378S + - 1164:2edc diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/imx6q-sabreauto.dot b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/imx6q-sabreauto.dot index cdd545b1a..bd6cf0b35 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/imx6q-sabreauto.dot +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/imx6q-sabreauto.dot @@ -1,51 +1,51 @@ -digraph board { - rankdir=TB - n00000001 [label="{{ 0} | ipu1_csi0\n/dev/v4l-subdev0 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] - n00000001:port2 -> n00000005 [style=dashed] - n00000001:port1 -> n0000000f:port0 [style=dashed] - n00000001:port1 -> n0000000b:port0 [style=dashed] - n00000005 [label="ipu1_csi0 capture\n/dev/video0", shape=box, style=filled, fillcolor=yellow] - n0000000b [label="{{ 0 | 1} | ipu1_vdic\n/dev/v4l-subdev1 | { 2}}", shape=Mrecord, style=filled, fillcolor=green] - n0000000b:port2 -> n0000000f:port0 [style=dashed] - n0000000f [label="{{ 0} | ipu1_ic_prp\n/dev/v4l-subdev2 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] - n0000000f:port1 -> n00000013:port0 [style=dashed] - n0000000f:port2 -> n0000001c:port0 [style=dashed] - n00000013 [label="{{ 0} | ipu1_ic_prpenc\n/dev/v4l-subdev3 | { 1}}", shape=Mrecord, style=filled, fillcolor=green] - n00000013:port1 -> n00000016 [style=dashed] - n00000016 [label="ipu1_ic_prpenc capture\n/dev/video1", shape=box, style=filled, fillcolor=yellow] - n0000001c [label="{{ 0} | ipu1_ic_prpvf\n/dev/v4l-subdev4 | { 1}}", shape=Mrecord, style=filled, fillcolor=green] - n0000001c:port1 -> n0000001f [style=dashed] - n0000001f [label="ipu1_ic_prpvf capture\n/dev/video2", shape=box, style=filled, fillcolor=yellow] - n0000002f [label="{{ 0} | ipu1_csi1\n/dev/v4l-subdev5 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] - n0000002f:port2 -> n00000033 [style=dashed] - n0000002f:port1 -> n0000000f:port0 [style=dashed] - n0000002f:port1 -> n0000000b:port0 [style=dashed] - n00000033 [label="ipu1_csi1 capture\n/dev/video3", shape=box, style=filled, fillcolor=yellow] - n0000003d [label="{{ 0} | ipu2_csi0\n/dev/v4l-subdev6 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] - n0000003d:port2 -> n00000041 [style=dashed] - n0000003d:port1 -> n0000004b:port0 [style=dashed] - n0000003d:port1 -> n00000047:port0 [style=dashed] - n00000041 [label="ipu2_csi0 capture\n/dev/video4", shape=box, style=filled, fillcolor=yellow] - n00000047 [label="{{ 0 | 1} | ipu2_vdic\n/dev/v4l-subdev7 | { 2}}", shape=Mrecord, style=filled, fillcolor=green] - n00000047:port2 -> n0000004b:port0 [style=dashed] - n0000004b [label="{{ 0} | ipu2_ic_prp\n/dev/v4l-subdev8 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] - n0000004b:port1 -> n0000004f:port0 [style=dashed] - n0000004b:port2 -> n00000058:port0 [style=dashed] - n0000004f [label="{{ 0} | ipu2_ic_prpenc\n/dev/v4l-subdev9 | { 1}}", shape=Mrecord, style=filled, fillcolor=green] - n0000004f:port1 -> n00000052 [style=dashed] - n00000052 [label="ipu2_ic_prpenc capture\n/dev/video5", shape=box, style=filled, fillcolor=yellow] - n00000058 [label="{{ 0} | ipu2_ic_prpvf\n/dev/v4l-subdev10 | { 1}}", shape=Mrecord, style=filled, fillcolor=green] - n00000058:port1 -> n0000005b [style=dashed] - n0000005b [label="ipu2_ic_prpvf capture\n/dev/video6", shape=box, style=filled, fillcolor=yellow] - n0000006b [label="{{ 0} | ipu2_csi1\n/dev/v4l-subdev11 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] - n0000006b:port2 -> n0000006f [style=dashed] - n0000006b:port1 -> n0000004b:port0 [style=dashed] - n0000006b:port1 -> n00000047:port0 [style=dashed] - n0000006f [label="ipu2_csi1 capture\n/dev/video7", shape=box, style=filled, fillcolor=yellow] - n00000079 [label="{{ 0 | 1} | ipu1_csi0_mux\n/dev/v4l-subdev12 | { 2}}", shape=Mrecord, style=filled, fillcolor=green] - n00000079:port2 -> n00000001:port0 [style=dashed] - n0000007d [label="{{ 0 | 1} | ipu2_csi1_mux\n/dev/v4l-subdev13 | { 2}}", shape=Mrecord, style=filled, fillcolor=green] - n0000007d:port2 -> n0000006b:port0 [style=dashed] - n00000081 [label="{{} | adv7180 3-0021\n/dev/v4l-subdev14 | { 0}}", shape=Mrecord, style=filled, fillcolor=green] - n00000081:port0 -> n00000079:port1 [style=dashed] -} +digraph board { + rankdir=TB + n00000001 [label="{{ 0} | ipu1_csi0\n/dev/v4l-subdev0 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] + n00000001:port2 -> n00000005 [style=dashed] + n00000001:port1 -> n0000000f:port0 [style=dashed] + n00000001:port1 -> n0000000b:port0 [style=dashed] + n00000005 [label="ipu1_csi0 capture\n/dev/video0", shape=box, style=filled, fillcolor=yellow] + n0000000b [label="{{ 0 | 1} | ipu1_vdic\n/dev/v4l-subdev1 | { 2}}", shape=Mrecord, style=filled, fillcolor=green] + n0000000b:port2 -> n0000000f:port0 [style=dashed] + n0000000f [label="{{ 0} | ipu1_ic_prp\n/dev/v4l-subdev2 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] + n0000000f:port1 -> n00000013:port0 [style=dashed] + n0000000f:port2 -> n0000001c:port0 [style=dashed] + n00000013 [label="{{ 0} | ipu1_ic_prpenc\n/dev/v4l-subdev3 | { 1}}", shape=Mrecord, style=filled, fillcolor=green] + n00000013:port1 -> n00000016 [style=dashed] + n00000016 [label="ipu1_ic_prpenc capture\n/dev/video1", shape=box, style=filled, fillcolor=yellow] + n0000001c [label="{{ 0} | ipu1_ic_prpvf\n/dev/v4l-subdev4 | { 1}}", shape=Mrecord, style=filled, fillcolor=green] + n0000001c:port1 -> n0000001f [style=dashed] + n0000001f [label="ipu1_ic_prpvf capture\n/dev/video2", shape=box, style=filled, fillcolor=yellow] + n0000002f [label="{{ 0} | ipu1_csi1\n/dev/v4l-subdev5 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] + n0000002f:port2 -> n00000033 [style=dashed] + n0000002f:port1 -> n0000000f:port0 [style=dashed] + n0000002f:port1 -> n0000000b:port0 [style=dashed] + n00000033 [label="ipu1_csi1 capture\n/dev/video3", shape=box, style=filled, fillcolor=yellow] + n0000003d [label="{{ 0} | ipu2_csi0\n/dev/v4l-subdev6 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] + n0000003d:port2 -> n00000041 [style=dashed] + n0000003d:port1 -> n0000004b:port0 [style=dashed] + n0000003d:port1 -> n00000047:port0 [style=dashed] + n00000041 [label="ipu2_csi0 capture\n/dev/video4", shape=box, style=filled, fillcolor=yellow] + n00000047 [label="{{ 0 | 1} | ipu2_vdic\n/dev/v4l-subdev7 | { 2}}", shape=Mrecord, style=filled, fillcolor=green] + n00000047:port2 -> n0000004b:port0 [style=dashed] + n0000004b [label="{{ 0} | ipu2_ic_prp\n/dev/v4l-subdev8 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] + n0000004b:port1 -> n0000004f:port0 [style=dashed] + n0000004b:port2 -> n00000058:port0 [style=dashed] + n0000004f [label="{{ 0} | ipu2_ic_prpenc\n/dev/v4l-subdev9 | { 1}}", shape=Mrecord, style=filled, fillcolor=green] + n0000004f:port1 -> n00000052 [style=dashed] + n00000052 [label="ipu2_ic_prpenc capture\n/dev/video5", shape=box, style=filled, fillcolor=yellow] + n00000058 [label="{{ 0} | ipu2_ic_prpvf\n/dev/v4l-subdev10 | { 1}}", shape=Mrecord, style=filled, fillcolor=green] + n00000058:port1 -> n0000005b [style=dashed] + n0000005b [label="ipu2_ic_prpvf capture\n/dev/video6", shape=box, style=filled, fillcolor=yellow] + n0000006b [label="{{ 0} | ipu2_csi1\n/dev/v4l-subdev11 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] + n0000006b:port2 -> n0000006f [style=dashed] + n0000006b:port1 -> n0000004b:port0 [style=dashed] + n0000006b:port1 -> n00000047:port0 [style=dashed] + n0000006f [label="ipu2_csi1 capture\n/dev/video7", shape=box, style=filled, fillcolor=yellow] + n00000079 [label="{{ 0 | 1} | ipu1_csi0_mux\n/dev/v4l-subdev12 | { 2}}", shape=Mrecord, style=filled, fillcolor=green] + n00000079:port2 -> n00000001:port0 [style=dashed] + n0000007d [label="{{ 0 | 1} | ipu2_csi1_mux\n/dev/v4l-subdev13 | { 2}}", shape=Mrecord, style=filled, fillcolor=green] + n0000007d:port2 -> n0000006b:port0 [style=dashed] + n00000081 [label="{{} | adv7180 3-0021\n/dev/v4l-subdev14 | { 0}}", shape=Mrecord, style=filled, fillcolor=green] + n00000081:port0 -> n00000079:port1 [style=dashed] +} diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/imx6q-sabresd.dot b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/imx6q-sabresd.dot index 03fcd8ab5..7d56cafa1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/imx6q-sabresd.dot +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/imx6q-sabresd.dot @@ -1,56 +1,56 @@ -digraph board { - rankdir=TB - n00000001 [label="{{ 0} | ipu1_csi0\n/dev/v4l-subdev0 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] - n00000001:port2 -> n00000005 [style=dashed] - n00000001:port1 -> n0000000f:port0 [style=dashed] - n00000001:port1 -> n0000000b:port0 [style=dashed] - n00000005 [label="ipu1_csi0 capture\n/dev/video0", shape=box, style=filled, fillcolor=yellow] - n0000000b [label="{{ 0 | 1} | ipu1_vdic\n/dev/v4l-subdev1 | { 2}}", shape=Mrecord, style=filled, fillcolor=green] - n0000000b:port2 -> n0000000f:port0 [style=dashed] - n0000000f [label="{{ 0} | ipu1_ic_prp\n/dev/v4l-subdev2 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] - n0000000f:port1 -> n00000013:port0 [style=dashed] - n0000000f:port2 -> n0000001c:port0 [style=dashed] - n00000013 [label="{{ 0} | ipu1_ic_prpenc\n/dev/v4l-subdev3 | { 1}}", shape=Mrecord, style=filled, fillcolor=green] - n00000013:port1 -> n00000016 [style=dashed] - n00000016 [label="ipu1_ic_prpenc capture\n/dev/video1", shape=box, style=filled, fillcolor=yellow] - n0000001c [label="{{ 0} | ipu1_ic_prpvf\n/dev/v4l-subdev4 | { 1}}", shape=Mrecord, style=filled, fillcolor=green] - n0000001c:port1 -> n0000001f [style=dashed] - n0000001f [label="ipu1_ic_prpvf capture\n/dev/video2", shape=box, style=filled, fillcolor=yellow] - n0000002f [label="{{ 0} | ipu1_csi1\n/dev/v4l-subdev5 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] - n0000002f:port2 -> n00000033 [style=dashed] - n0000002f:port1 -> n0000000f:port0 [style=dashed] - n0000002f:port1 -> n0000000b:port0 [style=dashed] - n00000033 [label="ipu1_csi1 capture\n/dev/video3", shape=box, style=filled, fillcolor=yellow] - n0000003d [label="{{ 0} | ipu2_csi0\n/dev/v4l-subdev6 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] - n0000003d:port2 -> n00000041 [style=dashed] - n0000003d:port1 -> n0000004b:port0 [style=dashed] - n0000003d:port1 -> n00000047:port0 [style=dashed] - n00000041 [label="ipu2_csi0 capture\n/dev/video4", shape=box, style=filled, fillcolor=yellow] - n00000047 [label="{{ 0 | 1} | ipu2_vdic\n/dev/v4l-subdev7 | { 2}}", shape=Mrecord, style=filled, fillcolor=green] - n00000047:port2 -> n0000004b:port0 [style=dashed] - n0000004b [label="{{ 0} | ipu2_ic_prp\n/dev/v4l-subdev8 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] - n0000004b:port1 -> n0000004f:port0 [style=dashed] - n0000004b:port2 -> n00000058:port0 [style=dashed] - n0000004f [label="{{ 0} | ipu2_ic_prpenc\n/dev/v4l-subdev9 | { 1}}", shape=Mrecord, style=filled, fillcolor=green] - n0000004f:port1 -> n00000052 [style=dashed] - n00000052 [label="ipu2_ic_prpenc capture\n/dev/video5", shape=box, style=filled, fillcolor=yellow] - n00000058 [label="{{ 0} | ipu2_ic_prpvf\n/dev/v4l-subdev10 | { 1}}", shape=Mrecord, style=filled, fillcolor=green] - n00000058:port1 -> n0000005b [style=dashed] - n0000005b [label="ipu2_ic_prpvf capture\n/dev/video6", shape=box, style=filled, fillcolor=yellow] - n0000006b [label="{{ 0} | ipu2_csi1\n/dev/v4l-subdev11 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] - n0000006b:port2 -> n0000006f [style=dashed] - n0000006b:port1 -> n0000004b:port0 [style=dashed] - n0000006b:port1 -> n00000047:port0 [style=dashed] - n0000006f [label="ipu2_csi1 capture\n/dev/video7", shape=box, style=filled, fillcolor=yellow] - n00000079 [label="{{ 0} | imx6-mipi-csi2\n/dev/v4l-subdev12 | { 1 | 2 | 3 | 4}}", shape=Mrecord, style=filled, fillcolor=green] - n00000079:port2 -> n0000002f:port0 [style=dashed] - n00000079:port3 -> n0000003d:port0 [style=dashed] - n00000079:port1 -> n0000007f:port0 [style=dashed] - n00000079:port4 -> n00000083:port0 [style=dashed] - n0000007f [label="{{ 0 | 1} | ipu1_csi0_mux\n/dev/v4l-subdev13 | { 2}}", shape=Mrecord, style=filled, fillcolor=green] - n0000007f:port2 -> n00000001:port0 [style=dashed] - n00000083 [label="{{ 0 | 1} | ipu2_csi1_mux\n/dev/v4l-subdev14 | { 2}}", shape=Mrecord, style=filled, fillcolor=green] - n00000083:port2 -> n0000006b:port0 [style=dashed] - n00000087 [label="{{} | ov5640 1-003c\n/dev/v4l-subdev15 | { 0}}", shape=Mrecord, style=filled, fillcolor=green] - n00000087:port0 -> n00000079:port0 [style=dashed] -} +digraph board { + rankdir=TB + n00000001 [label="{{ 0} | ipu1_csi0\n/dev/v4l-subdev0 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] + n00000001:port2 -> n00000005 [style=dashed] + n00000001:port1 -> n0000000f:port0 [style=dashed] + n00000001:port1 -> n0000000b:port0 [style=dashed] + n00000005 [label="ipu1_csi0 capture\n/dev/video0", shape=box, style=filled, fillcolor=yellow] + n0000000b [label="{{ 0 | 1} | ipu1_vdic\n/dev/v4l-subdev1 | { 2}}", shape=Mrecord, style=filled, fillcolor=green] + n0000000b:port2 -> n0000000f:port0 [style=dashed] + n0000000f [label="{{ 0} | ipu1_ic_prp\n/dev/v4l-subdev2 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] + n0000000f:port1 -> n00000013:port0 [style=dashed] + n0000000f:port2 -> n0000001c:port0 [style=dashed] + n00000013 [label="{{ 0} | ipu1_ic_prpenc\n/dev/v4l-subdev3 | { 1}}", shape=Mrecord, style=filled, fillcolor=green] + n00000013:port1 -> n00000016 [style=dashed] + n00000016 [label="ipu1_ic_prpenc capture\n/dev/video1", shape=box, style=filled, fillcolor=yellow] + n0000001c [label="{{ 0} | ipu1_ic_prpvf\n/dev/v4l-subdev4 | { 1}}", shape=Mrecord, style=filled, fillcolor=green] + n0000001c:port1 -> n0000001f [style=dashed] + n0000001f [label="ipu1_ic_prpvf capture\n/dev/video2", shape=box, style=filled, fillcolor=yellow] + n0000002f [label="{{ 0} | ipu1_csi1\n/dev/v4l-subdev5 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] + n0000002f:port2 -> n00000033 [style=dashed] + n0000002f:port1 -> n0000000f:port0 [style=dashed] + n0000002f:port1 -> n0000000b:port0 [style=dashed] + n00000033 [label="ipu1_csi1 capture\n/dev/video3", shape=box, style=filled, fillcolor=yellow] + n0000003d [label="{{ 0} | ipu2_csi0\n/dev/v4l-subdev6 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] + n0000003d:port2 -> n00000041 [style=dashed] + n0000003d:port1 -> n0000004b:port0 [style=dashed] + n0000003d:port1 -> n00000047:port0 [style=dashed] + n00000041 [label="ipu2_csi0 capture\n/dev/video4", shape=box, style=filled, fillcolor=yellow] + n00000047 [label="{{ 0 | 1} | ipu2_vdic\n/dev/v4l-subdev7 | { 2}}", shape=Mrecord, style=filled, fillcolor=green] + n00000047:port2 -> n0000004b:port0 [style=dashed] + n0000004b [label="{{ 0} | ipu2_ic_prp\n/dev/v4l-subdev8 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] + n0000004b:port1 -> n0000004f:port0 [style=dashed] + n0000004b:port2 -> n00000058:port0 [style=dashed] + n0000004f [label="{{ 0} | ipu2_ic_prpenc\n/dev/v4l-subdev9 | { 1}}", shape=Mrecord, style=filled, fillcolor=green] + n0000004f:port1 -> n00000052 [style=dashed] + n00000052 [label="ipu2_ic_prpenc capture\n/dev/video5", shape=box, style=filled, fillcolor=yellow] + n00000058 [label="{{ 0} | ipu2_ic_prpvf\n/dev/v4l-subdev10 | { 1}}", shape=Mrecord, style=filled, fillcolor=green] + n00000058:port1 -> n0000005b [style=dashed] + n0000005b [label="ipu2_ic_prpvf capture\n/dev/video6", shape=box, style=filled, fillcolor=yellow] + n0000006b [label="{{ 0} | ipu2_csi1\n/dev/v4l-subdev11 | { 1 | 2}}", shape=Mrecord, style=filled, fillcolor=green] + n0000006b:port2 -> n0000006f [style=dashed] + n0000006b:port1 -> n0000004b:port0 [style=dashed] + n0000006b:port1 -> n00000047:port0 [style=dashed] + n0000006f [label="ipu2_csi1 capture\n/dev/video7", shape=box, style=filled, fillcolor=yellow] + n00000079 [label="{{ 0} | imx6-mipi-csi2\n/dev/v4l-subdev12 | { 1 | 2 | 3 | 4}}", shape=Mrecord, style=filled, fillcolor=green] + n00000079:port2 -> n0000002f:port0 [style=dashed] + n00000079:port3 -> n0000003d:port0 [style=dashed] + n00000079:port1 -> n0000007f:port0 [style=dashed] + n00000079:port4 -> n00000083:port0 [style=dashed] + n0000007f [label="{{ 0 | 1} | ipu1_csi0_mux\n/dev/v4l-subdev13 | { 2}}", shape=Mrecord, style=filled, fillcolor=green] + n0000007f:port2 -> n00000001:port0 [style=dashed] + n00000083 [label="{{ 0 | 1} | ipu2_csi1_mux\n/dev/v4l-subdev14 | { 2}}", shape=Mrecord, style=filled, fillcolor=green] + n00000083:port2 -> n0000006b:port0 [style=dashed] + n00000087 [label="{{} | ov5640 1-003c\n/dev/v4l-subdev15 | { 0}}", shape=Mrecord, style=filled, fillcolor=green] + n00000087:port0 -> n00000079:port0 [style=dashed] +} diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/other-usb-cardlist.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/other-usb-cardlist.rst index b90c5276d..fb88db50e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/other-usb-cardlist.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/other-usb-cardlist.rst @@ -1,78 +1,78 @@ -.. SPDX-License-Identifier: GPL-2.0 - -Other USB cards list -==================== - -================ ====================================== ===================== -Driver Card name USB IDs -================ ====================================== ===================== -airspy Airspy 1d50:60a1 -dvb-as102 Abilis Systems DVB-Titan 1BA6:0001 -dvb-as102 PCTV Systems picoStick (74e) 2013:0246 -dvb-as102 Elgato EyeTV DTT Deluxe 0fd9:002c -dvb-as102 nBox DVB-T Dongle 0b89:0007 -dvb-as102 Sky IT Digital Key (green led) 2137:0001 -b2c2-flexcop-usb Technisat/B2C2 FlexCop II/IIb/III 0af7:0101 - Digital TV -go7007 WIS GO7007 MPEG encoder 1943:a250, 093b:a002, - 093b:a004, 0eb1:6666, - 0eb1:6668 -hackrf HackRF Software Decoder Radio 1d50:6089 -hdpvr Hauppauge HD PVR 2040:4900, 2040:4901, - 2040:4902, 2040:4982, - 2040:4903 -msi2500 Mirics MSi3101 SDR Dongle 1df7:2500, 2040:d300 -pvrusb2 Hauppauge WinTV-PVR USB2 2040:2900, 2040:2950, - 2040:2400, 1164:0622, - 1164:0602, 11ba:1003, - 11ba:1001, 2040:7300, - 2040:7500, 2040:7501, - 0ccd:0039, 2040:7502, - 2040:7510 -pwc Creative Webcam 5 041E:400C -pwc Creative Webcam Pro Ex 041E:4011 -pwc Logitech QuickCam 3000 Pro 046D:08B0 -pwc Logitech QuickCam Notebook Pro 046D:08B1 -pwc Logitech QuickCam 4000 Pro 046D:08B2 -pwc Logitech QuickCam Zoom (old model) 046D:08B3 -pwc Logitech QuickCam Zoom (new model) 046D:08B4 -pwc Logitech QuickCam Orbit/Sphere 046D:08B5 -pwc Logitech/Cisco VT Camera 046D:08B6 -pwc Logitech ViewPort AV 100 046D:08B7 -pwc Logitech QuickCam 046D:08B8 -pwc Philips PCA645VC 0471:0302 -pwc Philips PCA646VC 0471:0303 -pwc Askey VC010 type 2 0471:0304 -pwc Philips PCVC675K (Vesta) 0471:0307 -pwc Philips PCVC680K (Vesta Pro) 0471:0308 -pwc Philips PCVC690K (Vesta Pro Scan) 0471:030C -pwc Philips PCVC730K (ToUCam Fun), 0471:0310 - PCVC830 (ToUCam II) -pwc Philips PCVC740K (ToUCam Pro), 0471:0311 - PCVC840 (ToUCam II) -pwc Philips PCVC750K (ToUCam Pro Scan) 0471:0312 -pwc Philips PCVC720K/40 (ToUCam XS) 0471:0313 -pwc Philips SPC 900NC 0471:0329 -pwc Philips SPC 880NC 0471:032C -pwc Sotec Afina Eye 04CC:8116 -pwc Samsung MPC-C10 055D:9000 -pwc Samsung MPC-C30 055D:9001 -pwc Samsung SNC-35E (Ver3.0) 055D:9002 -pwc Askey VC010 type 1 069A:0001 -pwc AME Co. Afina Eye 06BE:8116 -pwc Visionite VCS-UC300 0d81:1900 -pwc Visionite VCS-UM100 0d81:1910 -s2255drv Sensoray 2255 1943:2255, 1943:2257 -stk1160 STK1160 USB video capture dongle 05e1:0408 -dvb-ttusb-budget Technotrend/Hauppauge Nova-USB devices 0b48:1003, 0b48:1004, - 0b48:1005 -dvb-ttusb_dec Technotrend/Hauppauge MPEG decoder 0b48:1006 - DEC3000-s -dvb-ttusb_dec Technotrend/Hauppauge MPEG decoder 0b48:1007 -dvb-ttusb_dec Technotrend/Hauppauge MPEG decoder 0b48:1008 - DEC2000-t -dvb-ttusb_dec Technotrend/Hauppauge MPEG decoder - DEC2540-t 0b48:1009 -usbtv Fushicai USBTV007 Audio-Video Grabber 1b71:3002, 1f71:3301, - 1f71:3306 -================ ====================================== ===================== +.. SPDX-License-Identifier: GPL-2.0 + +Other USB cards list +==================== + +================ ====================================== ===================== +Driver Card name USB IDs +================ ====================================== ===================== +airspy Airspy 1d50:60a1 +dvb-as102 Abilis Systems DVB-Titan 1BA6:0001 +dvb-as102 PCTV Systems picoStick (74e) 2013:0246 +dvb-as102 Elgato EyeTV DTT Deluxe 0fd9:002c +dvb-as102 nBox DVB-T Dongle 0b89:0007 +dvb-as102 Sky IT Digital Key (green led) 2137:0001 +b2c2-flexcop-usb Technisat/B2C2 FlexCop II/IIb/III 0af7:0101 + Digital TV +go7007 WIS GO7007 MPEG encoder 1943:a250, 093b:a002, + 093b:a004, 0eb1:6666, + 0eb1:6668 +hackrf HackRF Software Decoder Radio 1d50:6089 +hdpvr Hauppauge HD PVR 2040:4900, 2040:4901, + 2040:4902, 2040:4982, + 2040:4903 +msi2500 Mirics MSi3101 SDR Dongle 1df7:2500, 2040:d300 +pvrusb2 Hauppauge WinTV-PVR USB2 2040:2900, 2040:2950, + 2040:2400, 1164:0622, + 1164:0602, 11ba:1003, + 11ba:1001, 2040:7300, + 2040:7500, 2040:7501, + 0ccd:0039, 2040:7502, + 2040:7510 +pwc Creative Webcam 5 041E:400C +pwc Creative Webcam Pro Ex 041E:4011 +pwc Logitech QuickCam 3000 Pro 046D:08B0 +pwc Logitech QuickCam Notebook Pro 046D:08B1 +pwc Logitech QuickCam 4000 Pro 046D:08B2 +pwc Logitech QuickCam Zoom (old model) 046D:08B3 +pwc Logitech QuickCam Zoom (new model) 046D:08B4 +pwc Logitech QuickCam Orbit/Sphere 046D:08B5 +pwc Logitech/Cisco VT Camera 046D:08B6 +pwc Logitech ViewPort AV 100 046D:08B7 +pwc Logitech QuickCam 046D:08B8 +pwc Philips PCA645VC 0471:0302 +pwc Philips PCA646VC 0471:0303 +pwc Askey VC010 type 2 0471:0304 +pwc Philips PCVC675K (Vesta) 0471:0307 +pwc Philips PCVC680K (Vesta Pro) 0471:0308 +pwc Philips PCVC690K (Vesta Pro Scan) 0471:030C +pwc Philips PCVC730K (ToUCam Fun), 0471:0310 + PCVC830 (ToUCam II) +pwc Philips PCVC740K (ToUCam Pro), 0471:0311 + PCVC840 (ToUCam II) +pwc Philips PCVC750K (ToUCam Pro Scan) 0471:0312 +pwc Philips PCVC720K/40 (ToUCam XS) 0471:0313 +pwc Philips SPC 900NC 0471:0329 +pwc Philips SPC 880NC 0471:032C +pwc Sotec Afina Eye 04CC:8116 +pwc Samsung MPC-C10 055D:9000 +pwc Samsung MPC-C30 055D:9001 +pwc Samsung SNC-35E (Ver3.0) 055D:9002 +pwc Askey VC010 type 1 069A:0001 +pwc AME Co. Afina Eye 06BE:8116 +pwc Visionite VCS-UC300 0d81:1900 +pwc Visionite VCS-UM100 0d81:1910 +s2255drv Sensoray 2255 1943:2255, 1943:2257 +stk1160 STK1160 USB video capture dongle 05e1:0408 +dvb-ttusb-budget Technotrend/Hauppauge Nova-USB devices 0b48:1003, 0b48:1004, + 0b48:1005 +dvb-ttusb_dec Technotrend/Hauppauge MPEG decoder 0b48:1006 + DEC3000-s +dvb-ttusb_dec Technotrend/Hauppauge MPEG decoder 0b48:1007 +dvb-ttusb_dec Technotrend/Hauppauge MPEG decoder 0b48:1008 + DEC2000-t +dvb-ttusb_dec Technotrend/Hauppauge MPEG decoder + DEC2540-t 0b48:1009 +usbtv Fushicai USBTV007 Audio-Video Grabber 1b71:3002, 1f71:3301, + 1f71:3306 +================ ====================================== ===================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/pci-cardlist.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/pci-cardlist.rst index 232cef873..7d8e3c898 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/pci-cardlist.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/pci-cardlist.rst @@ -1,109 +1,109 @@ -.. SPDX-License-Identifier: GPL-2.0 - -PCI drivers -=========== - -The PCI boards are identified by an identification called PCI ID. The PCI ID -is actually composed by two parts: - - - Vendor ID and device ID; - - Subsystem ID and Subsystem device ID; - -The ``lspci -nn`` command allows identifying the vendor/device PCI IDs: - -.. code-block:: none - :emphasize-lines: 3 - - $ lspci -nn - ... - 00:0a.0 Multimedia controller [0480]: Philips Semiconductors SAA7131/SAA7133/SAA7135 Video Broadcast Decoder [1131:7133] (rev d1) - 00:0b.0 Multimedia controller [0480]: Brooktree Corporation Bt878 Audio Capture [109e:0878] (rev 11) - 01:00.0 Multimedia video controller [0400]: Conexant Systems, Inc. CX23887/8 PCIe Broadcast Audio and Video Decoder with 3D Comb [14f1:8880] (rev 0f) - 02:01.0 Multimedia video controller [0400]: Internext Compression Inc iTVC15 (CX23415) Video Decoder [4444:0803] (rev 01) - 02:02.0 Multimedia video controller [0400]: Conexant Systems, Inc. CX23418 Single-Chip MPEG-2 Encoder with Integrated Analog Video/Broadcast Audio Decoder [14f1:5b7a] - 02:03.0 Multimedia video controller [0400]: Brooktree Corporation Bt878 Video Capture [109e:036e] (rev 11) - ... - -The subsystem IDs can be obtained using ``lspci -vn`` - -.. code-block:: none - :emphasize-lines: 4 - - $ lspci -vn - ... - 00:0a.0 0480: 1131:7133 (rev d1) - Subsystem: 1461:f01d - Flags: bus master, medium devsel, latency 32, IRQ 209 - Memory at e2002000 (32-bit, non-prefetchable) [size=2K] - Capabilities: [40] Power Management version 2 - ... - -At the above example, the first card uses the ``saa7134`` driver, and -has a vendor/device PCI ID equal to ``1131:7133`` and a PCI subsystem -ID equal to ``1461:f01d`` (see :doc:`Saa7134 card list`). - -Unfortunately, sometimes the same PCI subsystem ID is used by different -products. So, several media drivers allow passing a ``card=`` parameter, -in order to setup a card number that would match the correct settings for -an specific board. - -The current supported PCI/PCIe cards (not including staging drivers) are -listed below\ [#]_. - -.. [#] some of the drivers have sub-drivers, not shown at this table - -================ ======================================================== -Driver Name -================ ======================================================== -altera-ci Altera FPGA based CI module -b2c2-flexcop-pci Technisat/B2C2 Air/Sky/Cable2PC PCI -bt878 DVB/ATSC Support for bt878 based TV cards -bttv BT8x8 Video For Linux -cobalt Cisco Cobalt -cx18 Conexant cx23418 MPEG encoder -cx23885 Conexant cx23885 (2388x successor) -cx25821 Conexant cx25821 -cx88xx Conexant 2388x (bt878 successor) -ddbridge Digital Devices bridge -dm1105 SDMC DM1105 based PCI cards -dt3155 DT3155 frame grabber -dvb-ttpci AV7110 cards -earth-pt1 PT1 cards -earth-pt3 Earthsoft PT3 cards -hexium_gemini Hexium Gemini frame grabber -hexium_orion Hexium HV-PCI6 and Orion frame grabber -hopper HOPPER based cards -ipu3-cio2 Intel ipu3-cio2 driver -ivtv Conexant cx23416/cx23415 MPEG encoder/decoder -ivtvfb Conexant cx23415 framebuffer -mantis MANTIS based cards -mgb4 Digiteq Automotive MGB4 frame grabber -mxb Siemens-Nixdorf 'Multimedia eXtension Board' -netup-unidvb NetUP Universal DVB card -ngene Micronas nGene -pluto2 Pluto2 cards -saa7134 Philips SAA7134 -saa7164 NXP SAA7164 -smipcie SMI PCIe DVBSky cards -solo6x10 Bluecherry / Softlogic 6x10 capture cards (MPEG-4/H.264) -sta2x11_vip STA2X11 VIP Video For Linux -tw5864 Techwell TW5864 video/audio grabber and encoder -tw686x Intersil/Techwell TW686x -tw68 Techwell tw68x Video For Linux -zoran Zoran-36057/36067 JPEG codec -================ ======================================================== - -Some of those drivers support multiple devices, as shown at the card -lists below: - -.. toctree:: - :maxdepth: 1 - - bttv-cardlist - cx18-cardlist - cx23885-cardlist - cx88-cardlist - ivtv-cardlist - saa7134-cardlist - saa7164-cardlist - zoran-cardlist +.. SPDX-License-Identifier: GPL-2.0 + +PCI drivers +=========== + +The PCI boards are identified by an identification called PCI ID. The PCI ID +is actually composed by two parts: + + - Vendor ID and device ID; + - Subsystem ID and Subsystem device ID; + +The ``lspci -nn`` command allows identifying the vendor/device PCI IDs: + +.. code-block:: none + :emphasize-lines: 3 + + $ lspci -nn + ... + 00:0a.0 Multimedia controller [0480]: Philips Semiconductors SAA7131/SAA7133/SAA7135 Video Broadcast Decoder [1131:7133] (rev d1) + 00:0b.0 Multimedia controller [0480]: Brooktree Corporation Bt878 Audio Capture [109e:0878] (rev 11) + 01:00.0 Multimedia video controller [0400]: Conexant Systems, Inc. CX23887/8 PCIe Broadcast Audio and Video Decoder with 3D Comb [14f1:8880] (rev 0f) + 02:01.0 Multimedia video controller [0400]: Internext Compression Inc iTVC15 (CX23415) Video Decoder [4444:0803] (rev 01) + 02:02.0 Multimedia video controller [0400]: Conexant Systems, Inc. CX23418 Single-Chip MPEG-2 Encoder with Integrated Analog Video/Broadcast Audio Decoder [14f1:5b7a] + 02:03.0 Multimedia video controller [0400]: Brooktree Corporation Bt878 Video Capture [109e:036e] (rev 11) + ... + +The subsystem IDs can be obtained using ``lspci -vn`` + +.. code-block:: none + :emphasize-lines: 4 + + $ lspci -vn + ... + 00:0a.0 0480: 1131:7133 (rev d1) + Subsystem: 1461:f01d + Flags: bus master, medium devsel, latency 32, IRQ 209 + Memory at e2002000 (32-bit, non-prefetchable) [size=2K] + Capabilities: [40] Power Management version 2 + ... + +At the above example, the first card uses the ``saa7134`` driver, and +has a vendor/device PCI ID equal to ``1131:7133`` and a PCI subsystem +ID equal to ``1461:f01d`` (see :doc:`Saa7134 card list`). + +Unfortunately, sometimes the same PCI subsystem ID is used by different +products. So, several media drivers allow passing a ``card=`` parameter, +in order to setup a card number that would match the correct settings for +an specific board. + +The current supported PCI/PCIe cards (not including staging drivers) are +listed below\ [#]_. + +.. [#] some of the drivers have sub-drivers, not shown at this table + +================ ======================================================== +Driver Name +================ ======================================================== +altera-ci Altera FPGA based CI module +b2c2-flexcop-pci Technisat/B2C2 Air/Sky/Cable2PC PCI +bt878 DVB/ATSC Support for bt878 based TV cards +bttv BT8x8 Video For Linux +cobalt Cisco Cobalt +cx18 Conexant cx23418 MPEG encoder +cx23885 Conexant cx23885 (2388x successor) +cx25821 Conexant cx25821 +cx88xx Conexant 2388x (bt878 successor) +ddbridge Digital Devices bridge +dm1105 SDMC DM1105 based PCI cards +dt3155 DT3155 frame grabber +dvb-ttpci AV7110 cards +earth-pt1 PT1 cards +earth-pt3 Earthsoft PT3 cards +hexium_gemini Hexium Gemini frame grabber +hexium_orion Hexium HV-PCI6 and Orion frame grabber +hopper HOPPER based cards +ipu3-cio2 Intel ipu3-cio2 driver +ivtv Conexant cx23416/cx23415 MPEG encoder/decoder +ivtvfb Conexant cx23415 framebuffer +mantis MANTIS based cards +mgb4 Digiteq Automotive MGB4 frame grabber +mxb Siemens-Nixdorf 'Multimedia eXtension Board' +netup-unidvb NetUP Universal DVB card +ngene Micronas nGene +pluto2 Pluto2 cards +saa7134 Philips SAA7134 +saa7164 NXP SAA7164 +smipcie SMI PCIe DVBSky cards +solo6x10 Bluecherry / Softlogic 6x10 capture cards (MPEG-4/H.264) +sta2x11_vip STA2X11 VIP Video For Linux +tw5864 Techwell TW5864 video/audio grabber and encoder +tw686x Intersil/Techwell TW686x +tw68 Techwell tw68x Video For Linux +zoran Zoran-36057/36067 JPEG codec +================ ======================================================== + +Some of those drivers support multiple devices, as shown at the card +lists below: + +.. toctree:: + :maxdepth: 1 + + bttv-cardlist + cx18-cardlist + cx23885-cardlist + cx88-cardlist + ivtv-cardlist + saa7134-cardlist + saa7164-cardlist + zoran-cardlist diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/platform-cardlist.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/platform-cardlist.rst index 8cc686d53..1230ae403 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/platform-cardlist.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/platform-cardlist.rst @@ -1,89 +1,89 @@ -.. SPDX-License-Identifier: GPL-2.0 - -Platform drivers -================ - -There are several drivers that are focused on providing support for -functionality that are already included at the main board, and don't -use neither USB nor PCI bus. Those drivers are called platform -drivers, and are very popular on embedded devices. - -The current supported of platform drivers (not including staging drivers) are -listed below - -================= ============================================================ -Driver Name -================= ============================================================ -am437x-vpfe TI AM437x VPFE -aspeed-video Aspeed AST2400 and AST2500 -atmel-isc ATMEL Image Sensor Controller (ISC) -atmel-isi ATMEL Image Sensor Interface (ISI) -c8sectpfe SDR platform devices -c8sectpfe SDR platform devices -cafe_ccic Marvell 88ALP01 (Cafe) CMOS Camera Controller -cdns-csi2rx Cadence MIPI-CSI2 RX Controller -cdns-csi2tx Cadence MIPI-CSI2 TX Controller -coda-vpu Chips&Media Coda multi-standard codec IP -dm355_ccdc TI DM355 CCDC video capture -dm644x_ccdc TI DM6446 CCDC video capture -exynos-fimc-is EXYNOS4x12 FIMC-IS (Imaging Subsystem) -exynos-fimc-lite EXYNOS FIMC-LITE camera interface -exynos-gsc Samsung Exynos G-Scaler -exy Samsung S5P/EXYNOS4 SoC series Camera Subsystem -imx-pxp i.MX Pixel Pipeline (PXP) -isdf TI DM365 ISIF video capture -mmp_camera Marvell Armada 610 integrated camera controller -mtk_jpeg Mediatek JPEG Codec -mtk-mdp Mediatek MDP -mtk-vcodec-dec Mediatek Video Codec -mtk-vpu Mediatek Video Processor Unit -mx2_emmaprp MX2 eMMa-PrP -omap3-isp OMAP 3 Camera -omap-vout OMAP2/OMAP3 V4L2-Display -pxa_camera PXA27x Quick Capture Interface -qcom-camss Qualcomm V4L2 Camera Subsystem -rcar-csi2 R-Car MIPI CSI-2 Receiver -rcar_drif Renesas Digital Radio Interface (DRIF) -rcar-fcp Renesas Frame Compression Processor -rcar_fdp1 Renesas Fine Display Processor -rcar_jpu Renesas JPEG Processing Unit -rcar-vin R-Car Video Input (VIN) -renesas-ceu Renesas Capture Engine Unit (CEU) -rockchip-rga Rockchip Raster 2d Graphic Acceleration Unit -s3c-camif Samsung S3C24XX/S3C64XX SoC Camera Interface -s5p-csis S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) -s5p-fimc S5P/EXYNOS4 FIMC/CAMIF camera interface -s5p-g2d Samsung S5P and EXYNOS4 G2D 2d graphics accelerator -s5p-jpeg Samsung S5P/Exynos3250/Exynos4 JPEG codec -s5p-mfc Samsung S5P MFC Video Codec -sh_veu SuperH VEU mem2mem video processing -sh_vou SuperH VOU video output -stm32-dcmi STM32 Digital Camera Memory Interface (DCMI) -stm32-dma2d STM32 Chrom-Art Accelerator Unit -sun4i-csi Allwinner A10 CMOS Sensor Interface Support -sun6i-csi Allwinner V3s Camera Sensor Interface -sun8i-di Allwinner Deinterlace -sun8i-rotate Allwinner DE2 rotation -ti-cal TI Memory-to-memory multimedia devices -ti-csc TI DVB platform devices -ti-vpe TI VPE (Video Processing Engine) -venus-enc Qualcomm Venus V4L2 encoder/decoder -via-camera VIAFB camera controller -video-mux Video Multiplexer -vpif_display TI DaVinci VPIF V4L2-Display -vpif_capture TI DaVinci VPIF video capture -vsp1 Renesas VSP1 Video Processing Engine -xilinx-tpg Xilinx Video Test Pattern Generator -xilinx-video Xilinx Video IP (EXPERIMENTAL) -xilinx-vtc Xilinx Video Timing Controller -================= ============================================================ - -MMC/SDIO DVB adapters ---------------------- - -======= =========================================== -Driver Name -======= =========================================== -smssdio Siano SMS1xxx based MDTV via SDIO interface -======= =========================================== - +.. SPDX-License-Identifier: GPL-2.0 + +Platform drivers +================ + +There are several drivers that are focused on providing support for +functionality that are already included at the main board, and don't +use neither USB nor PCI bus. Those drivers are called platform +drivers, and are very popular on embedded devices. + +The current supported of platform drivers (not including staging drivers) are +listed below + +================= ============================================================ +Driver Name +================= ============================================================ +am437x-vpfe TI AM437x VPFE +aspeed-video Aspeed AST2400 and AST2500 +atmel-isc ATMEL Image Sensor Controller (ISC) +atmel-isi ATMEL Image Sensor Interface (ISI) +c8sectpfe SDR platform devices +c8sectpfe SDR platform devices +cafe_ccic Marvell 88ALP01 (Cafe) CMOS Camera Controller +cdns-csi2rx Cadence MIPI-CSI2 RX Controller +cdns-csi2tx Cadence MIPI-CSI2 TX Controller +coda-vpu Chips&Media Coda multi-standard codec IP +dm355_ccdc TI DM355 CCDC video capture +dm644x_ccdc TI DM6446 CCDC video capture +exynos-fimc-is EXYNOS4x12 FIMC-IS (Imaging Subsystem) +exynos-fimc-lite EXYNOS FIMC-LITE camera interface +exynos-gsc Samsung Exynos G-Scaler +exy Samsung S5P/EXYNOS4 SoC series Camera Subsystem +imx-pxp i.MX Pixel Pipeline (PXP) +isdf TI DM365 ISIF video capture +mmp_camera Marvell Armada 610 integrated camera controller +mtk_jpeg Mediatek JPEG Codec +mtk-mdp Mediatek MDP +mtk-vcodec-dec Mediatek Video Codec +mtk-vpu Mediatek Video Processor Unit +mx2_emmaprp MX2 eMMa-PrP +omap3-isp OMAP 3 Camera +omap-vout OMAP2/OMAP3 V4L2-Display +pxa_camera PXA27x Quick Capture Interface +qcom-camss Qualcomm V4L2 Camera Subsystem +rcar-csi2 R-Car MIPI CSI-2 Receiver +rcar_drif Renesas Digital Radio Interface (DRIF) +rcar-fcp Renesas Frame Compression Processor +rcar_fdp1 Renesas Fine Display Processor +rcar_jpu Renesas JPEG Processing Unit +rcar-vin R-Car Video Input (VIN) +renesas-ceu Renesas Capture Engine Unit (CEU) +rockchip-rga Rockchip Raster 2d Graphic Acceleration Unit +s3c-camif Samsung S3C24XX/S3C64XX SoC Camera Interface +s5p-csis S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) +s5p-fimc S5P/EXYNOS4 FIMC/CAMIF camera interface +s5p-g2d Samsung S5P and EXYNOS4 G2D 2d graphics accelerator +s5p-jpeg Samsung S5P/Exynos3250/Exynos4 JPEG codec +s5p-mfc Samsung S5P MFC Video Codec +sh_veu SuperH VEU mem2mem video processing +sh_vou SuperH VOU video output +stm32-dcmi STM32 Digital Camera Memory Interface (DCMI) +stm32-dma2d STM32 Chrom-Art Accelerator Unit +sun4i-csi Allwinner A10 CMOS Sensor Interface Support +sun6i-csi Allwinner V3s Camera Sensor Interface +sun8i-di Allwinner Deinterlace +sun8i-rotate Allwinner DE2 rotation +ti-cal TI Memory-to-memory multimedia devices +ti-csc TI DVB platform devices +ti-vpe TI VPE (Video Processing Engine) +venus-enc Qualcomm Venus V4L2 encoder/decoder +via-camera VIAFB camera controller +video-mux Video Multiplexer +vpif_display TI DaVinci VPIF V4L2-Display +vpif_capture TI DaVinci VPIF video capture +vsp1 Renesas VSP1 Video Processing Engine +xilinx-tpg Xilinx Video Test Pattern Generator +xilinx-video Xilinx Video IP (EXPERIMENTAL) +xilinx-vtc Xilinx Video Timing Controller +================= ============================================================ + +MMC/SDIO DVB adapters +--------------------- + +======= =========================================== +Driver Name +======= =========================================== +smssdio Siano SMS1xxx based MDTV via SDIO interface +======= =========================================== + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/tuner-cardlist.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/tuner-cardlist.rst index d9258f3fc..65ecf48dd 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/tuner-cardlist.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/tuner-cardlist.rst @@ -1,102 +1,102 @@ -.. SPDX-License-Identifier: GPL-2.0 - -Tuner cards list -================ - -============ ===================================================== -Tuner number Card name -============ ===================================================== -0 Temic PAL (4002 FH5) -1 Philips PAL_I (FI1246 and compatibles) -2 Philips NTSC (FI1236,FM1236 and compatibles) -3 Philips (SECAM+PAL_BG) (FI1216MF, FM1216MF, FR1216MF) -4 NoTuner -5 Philips PAL_BG (FI1216 and compatibles) -6 Temic NTSC (4032 FY5) -7 Temic PAL_I (4062 FY5) -8 Temic NTSC (4036 FY5) -9 Alps HSBH1 -10 Alps TSBE1 -11 Alps TSBB5 -12 Alps TSBE5 -13 Alps TSBC5 -14 Temic PAL_BG (4006FH5) -15 Alps TSCH6 -16 Temic PAL_DK (4016 FY5) -17 Philips NTSC_M (MK2) -18 Temic PAL_I (4066 FY5) -19 Temic PAL* auto (4006 FN5) -20 Temic PAL_BG (4009 FR5) or PAL_I (4069 FR5) -21 Temic NTSC (4039 FR5) -22 Temic PAL/SECAM multi (4046 FM5) -23 Philips PAL_DK (FI1256 and compatibles) -24 Philips PAL/SECAM multi (FQ1216ME) -25 LG PAL_I+FM (TAPC-I001D) -26 LG PAL_I (TAPC-I701D) -27 LG NTSC+FM (TPI8NSR01F) -28 LG PAL_BG+FM (TPI8PSB01D) -29 LG PAL_BG (TPI8PSB11D) -30 Temic PAL* auto + FM (4009 FN5) -31 SHARP NTSC_JP (2U5JF5540) -32 Samsung PAL TCPM9091PD27 -33 MT20xx universal -34 Temic PAL_BG (4106 FH5) -35 Temic PAL_DK/SECAM_L (4012 FY5) -36 Temic NTSC (4136 FY5) -37 LG PAL (newer TAPC series) -38 Philips PAL/SECAM multi (FM1216ME MK3) -39 LG NTSC (newer TAPC series) -40 HITACHI V7-J180AT -41 Philips PAL_MK (FI1216 MK) -42 Philips FCV1236D ATSC/NTSC dual in -43 Philips NTSC MK3 (FM1236MK3 or FM1236/F) -44 Philips 4 in 1 (ATI TV Wonder Pro/Conexant) -45 Microtune 4049 FM5 -46 Panasonic VP27s/ENGE4324D -47 LG NTSC (TAPE series) -48 Tenna TNF 8831 BGFF) -49 Microtune 4042 FI5 ATSC/NTSC dual in -50 TCL 2002N -51 Philips PAL/SECAM_D (FM 1256 I-H3) -52 Thomson DTT 7610 (ATSC/NTSC) -53 Philips FQ1286 -54 Philips/NXP TDA 8290/8295 + 8275/8275A/18271 -55 TCL 2002MB -56 Philips PAL/SECAM multi (FQ1216AME MK4) -57 Philips FQ1236A MK4 -58 Ymec TVision TVF-8531MF/8831MF/8731MF -59 Ymec TVision TVF-5533MF -60 Thomson DTT 761X (ATSC/NTSC) -61 Tena TNF9533-D/IF/TNF9533-B/DF -62 Philips TEA5767HN FM Radio -63 Philips FMD1216ME MK3 Hybrid Tuner -64 LG TDVS-H06xF -65 Ymec TVF66T5-B/DFF -66 LG TALN series -67 Philips TD1316 Hybrid Tuner -68 Philips TUV1236D ATSC/NTSC dual in -69 Tena TNF 5335 and similar models -70 Samsung TCPN 2121P30A -71 Xceive xc2028/xc3028 tuner -72 Thomson FE6600 -73 Samsung TCPG 6121P30A -75 Philips TEA5761 FM Radio -76 Xceive 5000 tuner -77 TCL tuner MF02GIP-5N-E -78 Philips FMD1216MEX MK3 Hybrid Tuner -79 Philips PAL/SECAM multi (FM1216 MK5) -80 Philips FQ1216LME MK3 PAL/SECAM w/active loopthrough -81 Partsnic (Daewoo) PTI-5NF05 -82 Philips CU1216L -83 NXP TDA18271 -84 Sony BTF-Pxn01Z -85 Philips FQ1236 MK5 -86 Tena TNF5337 MFD -87 Xceive 4000 tuner -88 Xceive 5000C tuner -89 Sony BTF-PG472Z PAL/SECAM -90 Sony BTF-PK467Z NTSC-M-JP -91 Sony BTF-PB463Z NTSC-M -92 Silicon Labs Si2157 tuner -93 Tena TNF931D-DFDR1 -============ ===================================================== +.. SPDX-License-Identifier: GPL-2.0 + +Tuner cards list +================ + +============ ===================================================== +Tuner number Card name +============ ===================================================== +0 Temic PAL (4002 FH5) +1 Philips PAL_I (FI1246 and compatibles) +2 Philips NTSC (FI1236,FM1236 and compatibles) +3 Philips (SECAM+PAL_BG) (FI1216MF, FM1216MF, FR1216MF) +4 NoTuner +5 Philips PAL_BG (FI1216 and compatibles) +6 Temic NTSC (4032 FY5) +7 Temic PAL_I (4062 FY5) +8 Temic NTSC (4036 FY5) +9 Alps HSBH1 +10 Alps TSBE1 +11 Alps TSBB5 +12 Alps TSBE5 +13 Alps TSBC5 +14 Temic PAL_BG (4006FH5) +15 Alps TSCH6 +16 Temic PAL_DK (4016 FY5) +17 Philips NTSC_M (MK2) +18 Temic PAL_I (4066 FY5) +19 Temic PAL* auto (4006 FN5) +20 Temic PAL_BG (4009 FR5) or PAL_I (4069 FR5) +21 Temic NTSC (4039 FR5) +22 Temic PAL/SECAM multi (4046 FM5) +23 Philips PAL_DK (FI1256 and compatibles) +24 Philips PAL/SECAM multi (FQ1216ME) +25 LG PAL_I+FM (TAPC-I001D) +26 LG PAL_I (TAPC-I701D) +27 LG NTSC+FM (TPI8NSR01F) +28 LG PAL_BG+FM (TPI8PSB01D) +29 LG PAL_BG (TPI8PSB11D) +30 Temic PAL* auto + FM (4009 FN5) +31 SHARP NTSC_JP (2U5JF5540) +32 Samsung PAL TCPM9091PD27 +33 MT20xx universal +34 Temic PAL_BG (4106 FH5) +35 Temic PAL_DK/SECAM_L (4012 FY5) +36 Temic NTSC (4136 FY5) +37 LG PAL (newer TAPC series) +38 Philips PAL/SECAM multi (FM1216ME MK3) +39 LG NTSC (newer TAPC series) +40 HITACHI V7-J180AT +41 Philips PAL_MK (FI1216 MK) +42 Philips FCV1236D ATSC/NTSC dual in +43 Philips NTSC MK3 (FM1236MK3 or FM1236/F) +44 Philips 4 in 1 (ATI TV Wonder Pro/Conexant) +45 Microtune 4049 FM5 +46 Panasonic VP27s/ENGE4324D +47 LG NTSC (TAPE series) +48 Tenna TNF 8831 BGFF) +49 Microtune 4042 FI5 ATSC/NTSC dual in +50 TCL 2002N +51 Philips PAL/SECAM_D (FM 1256 I-H3) +52 Thomson DTT 7610 (ATSC/NTSC) +53 Philips FQ1286 +54 Philips/NXP TDA 8290/8295 + 8275/8275A/18271 +55 TCL 2002MB +56 Philips PAL/SECAM multi (FQ1216AME MK4) +57 Philips FQ1236A MK4 +58 Ymec TVision TVF-8531MF/8831MF/8731MF +59 Ymec TVision TVF-5533MF +60 Thomson DTT 761X (ATSC/NTSC) +61 Tena TNF9533-D/IF/TNF9533-B/DF +62 Philips TEA5767HN FM Radio +63 Philips FMD1216ME MK3 Hybrid Tuner +64 LG TDVS-H06xF +65 Ymec TVF66T5-B/DFF +66 LG TALN series +67 Philips TD1316 Hybrid Tuner +68 Philips TUV1236D ATSC/NTSC dual in +69 Tena TNF 5335 and similar models +70 Samsung TCPN 2121P30A +71 Xceive xc2028/xc3028 tuner +72 Thomson FE6600 +73 Samsung TCPG 6121P30A +75 Philips TEA5761 FM Radio +76 Xceive 5000 tuner +77 TCL tuner MF02GIP-5N-E +78 Philips FMD1216MEX MK3 Hybrid Tuner +79 Philips PAL/SECAM multi (FM1216 MK5) +80 Philips FQ1216LME MK3 PAL/SECAM w/active loopthrough +81 Partsnic (Daewoo) PTI-5NF05 +82 Philips CU1216L +83 NXP TDA18271 +84 Sony BTF-Pxn01Z +85 Philips FQ1236 MK5 +86 Tena TNF5337 MFD +87 Xceive 4000 tuner +88 Xceive 5000C tuner +89 Sony BTF-PG472Z PAL/SECAM +90 Sony BTF-PK467Z NTSC-M-JP +91 Sony BTF-PB463Z NTSC-M +92 Silicon Labs Si2157 tuner +93 Tena TNF931D-DFDR1 +============ ===================================================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/vimc.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/vimc.rst index 7d1be0665..29d843a8d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/vimc.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/media/vimc.rst @@ -1,110 +1,110 @@ -.. SPDX-License-Identifier: GPL-2.0 - -The Virtual Media Controller Driver (vimc) -========================================== - -The vimc driver emulates complex video hardware using the V4L2 API and the Media -API. It has a capture device and three subdevices: sensor, debayer and scaler. - -Topology --------- - -The topology is hardcoded, although you could modify it in vimc-core and -recompile the driver to achieve your own topology. This is the default topology: - -.. _vimc_topology_graph: - -.. kernel-figure:: vimc.dot - :alt: Diagram of the default media pipeline topology - :align: center - - Media pipeline graph on vimc - -Configuring the topology -~~~~~~~~~~~~~~~~~~~~~~~~ - -Each subdevice will come with its default configuration (pixelformat, height, -width, ...). One needs to configure the topology in order to match the -configuration on each linked subdevice to stream frames through the pipeline. -If the configuration doesn't match, the stream will fail. The ``v4l-utils`` -package is a bundle of user-space applications, that comes with ``media-ctl`` and -``v4l2-ctl`` that can be used to configure the vimc configuration. This sequence -of commands fits for the default topology: - -.. code-block:: bash - - media-ctl -d platform:vimc -V '"Sensor A":0[fmt:SBGGR8_1X8/640x480]' - media-ctl -d platform:vimc -V '"Debayer A":0[fmt:SBGGR8_1X8/640x480]' - media-ctl -d platform:vimc -V '"Scaler":0[fmt:RGB888_1X24/640x480]' - media-ctl -d platform:vimc -V '"Scaler":0[crop:(100,50)/400x150]' - media-ctl -d platform:vimc -V '"Scaler":1[fmt:RGB888_1X24/300x700]' - v4l2-ctl -z platform:vimc -d "RGB/YUV Capture" -v width=300,height=700 - v4l2-ctl -z platform:vimc -d "Raw Capture 0" -v pixelformat=BA81 - -Subdevices ----------- - -Subdevices define the behavior of an entity in the topology. Depending on the -subdevice, the entity can have multiple pads of type source or sink. - -vimc-sensor: - Generates images in several formats using video test pattern generator. - Exposes: - - * 1 Pad source - -vimc-lens: - Ancillary lens for a sensor. Supports auto focus control. Linked to - a vimc-sensor using an ancillary link. The lens supports FOCUS_ABSOLUTE - control. - -.. code-block:: bash - - media-ctl -p - ... - - entity 28: Lens A (0 pad, 0 link) - type V4L2 subdev subtype Lens flags 0 - device node name /dev/v4l-subdev6 - - entity 29: Lens B (0 pad, 0 link) - type V4L2 subdev subtype Lens flags 0 - device node name /dev/v4l-subdev7 - v4l2-ctl -d /dev/v4l-subdev7 -C focus_absolute - focus_absolute: 0 - - -vimc-debayer: - Transforms images in bayer format into a non-bayer format. - Exposes: - - * 1 Pad sink - * 1 Pad source - -vimc-scaler: - Re-size the image to meet the source pad resolution. E.g.: if the sync - pad is configured to 360x480 and the source to 1280x720, the image will - be stretched to fit the source resolution. Works for any resolution - within the vimc limitations (even shrinking the image if necessary). - Exposes: - - * 1 Pad sink - * 1 Pad source - -vimc-capture: - Exposes node /dev/videoX to allow userspace to capture the stream. - Exposes: - - * 1 Pad sink - * 1 Pad source - -Module options --------------- - -Vimc has a module parameter to configure the driver. - -* ``allocator=`` - - memory allocator selection, default is 0. It specifies the way buffers - will be allocated. - - - 0: vmalloc - - 1: dma-contig +.. SPDX-License-Identifier: GPL-2.0 + +The Virtual Media Controller Driver (vimc) +========================================== + +The vimc driver emulates complex video hardware using the V4L2 API and the Media +API. It has a capture device and three subdevices: sensor, debayer and scaler. + +Topology +-------- + +The topology is hardcoded, although you could modify it in vimc-core and +recompile the driver to achieve your own topology. This is the default topology: + +.. _vimc_topology_graph: + +.. kernel-figure:: vimc.dot + :alt: Diagram of the default media pipeline topology + :align: center + + Media pipeline graph on vimc + +Configuring the topology +~~~~~~~~~~~~~~~~~~~~~~~~ + +Each subdevice will come with its default configuration (pixelformat, height, +width, ...). One needs to configure the topology in order to match the +configuration on each linked subdevice to stream frames through the pipeline. +If the configuration doesn't match, the stream will fail. The ``v4l-utils`` +package is a bundle of user-space applications, that comes with ``media-ctl`` and +``v4l2-ctl`` that can be used to configure the vimc configuration. This sequence +of commands fits for the default topology: + +.. code-block:: bash + + media-ctl -d platform:vimc -V '"Sensor A":0[fmt:SBGGR8_1X8/640x480]' + media-ctl -d platform:vimc -V '"Debayer A":0[fmt:SBGGR8_1X8/640x480]' + media-ctl -d platform:vimc -V '"Scaler":0[fmt:RGB888_1X24/640x480]' + media-ctl -d platform:vimc -V '"Scaler":0[crop:(100,50)/400x150]' + media-ctl -d platform:vimc -V '"Scaler":1[fmt:RGB888_1X24/300x700]' + v4l2-ctl -z platform:vimc -d "RGB/YUV Capture" -v width=300,height=700 + v4l2-ctl -z platform:vimc -d "Raw Capture 0" -v pixelformat=BA81 + +Subdevices +---------- + +Subdevices define the behavior of an entity in the topology. Depending on the +subdevice, the entity can have multiple pads of type source or sink. + +vimc-sensor: + Generates images in several formats using video test pattern generator. + Exposes: + + * 1 Pad source + +vimc-lens: + Ancillary lens for a sensor. Supports auto focus control. Linked to + a vimc-sensor using an ancillary link. The lens supports FOCUS_ABSOLUTE + control. + +.. code-block:: bash + + media-ctl -p + ... + - entity 28: Lens A (0 pad, 0 link) + type V4L2 subdev subtype Lens flags 0 + device node name /dev/v4l-subdev6 + - entity 29: Lens B (0 pad, 0 link) + type V4L2 subdev subtype Lens flags 0 + device node name /dev/v4l-subdev7 + v4l2-ctl -d /dev/v4l-subdev7 -C focus_absolute + focus_absolute: 0 + + +vimc-debayer: + Transforms images in bayer format into a non-bayer format. + Exposes: + + * 1 Pad sink + * 1 Pad source + +vimc-scaler: + Re-size the image to meet the source pad resolution. E.g.: if the sync + pad is configured to 360x480 and the source to 1280x720, the image will + be stretched to fit the source resolution. Works for any resolution + within the vimc limitations (even shrinking the image if necessary). + Exposes: + + * 1 Pad sink + * 1 Pad source + +vimc-capture: + Exposes node /dev/videoX to allow userspace to capture the stream. + Exposes: + + * 1 Pad sink + * 1 Pad source + +Module options +-------------- + +Vimc has a module parameter to configure the driver. + +* ``allocator=`` + + memory allocator selection, default is 0. It specifies the way buffers + will be allocated. + + - 0: vmalloc + - 1: dma-contig diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/mm/shrinker_debugfs.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/mm/shrinker_debugfs.rst index 848984041..c582033bd 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/mm/shrinker_debugfs.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/mm/shrinker_debugfs.rst @@ -1,133 +1,133 @@ -========================== -Shrinker Debugfs Interface -========================== - -Shrinker debugfs interface provides a visibility into the kernel memory -shrinkers subsystem and allows to get information about individual shrinkers -and interact with them. - -For each shrinker registered in the system a directory in **/shrinker/** -is created. The directory's name is composed from the shrinker's name and an -unique id: e.g. *kfree_rcu-0* or *sb-xfs:vda1-36*. - -Each shrinker directory contains **count** and **scan** files, which allow to -trigger *count_objects()* and *scan_objects()* callbacks for each memcg and -numa node (if applicable). - -Usage: ------- - -1. *List registered shrinkers* - - :: - - $ cd /sys/kernel/debug/shrinker/ - $ ls - dquota-cache-16 sb-devpts-28 sb-proc-47 sb-tmpfs-42 - mm-shadow-18 sb-devtmpfs-5 sb-proc-48 sb-tmpfs-43 - mm-zspool:zram0-34 sb-hugetlbfs-17 sb-pstore-31 sb-tmpfs-44 - rcu-kfree-0 sb-hugetlbfs-33 sb-rootfs-2 sb-tmpfs-49 - sb-aio-20 sb-iomem-12 sb-securityfs-6 sb-tracefs-13 - sb-anon_inodefs-15 sb-mqueue-21 sb-selinuxfs-22 sb-xfs:vda1-36 - sb-bdev-3 sb-nsfs-4 sb-sockfs-8 sb-zsmalloc-19 - sb-bpf-32 sb-pipefs-14 sb-sysfs-26 thp-deferred_split-10 - sb-btrfs:vda2-24 sb-proc-25 sb-tmpfs-1 thp-zero-9 - sb-cgroup2-30 sb-proc-39 sb-tmpfs-27 xfs-buf:vda1-37 - sb-configfs-23 sb-proc-41 sb-tmpfs-29 xfs-inodegc:vda1-38 - sb-dax-11 sb-proc-45 sb-tmpfs-35 - sb-debugfs-7 sb-proc-46 sb-tmpfs-40 - -2. *Get information about a specific shrinker* - - :: - - $ cd sb-btrfs\:vda2-24/ - $ ls - count scan - -3. *Count objects* - - Each line in the output has the following format:: - - ... - ... - ... - - If there are no objects on all numa nodes, a line is omitted. If there - are no objects at all, the output might be empty. - - If the shrinker is not memcg-aware or CONFIG_MEMCG is off, 0 is printed - as cgroup inode id. If the shrinker is not numa-aware, 0's are printed - for all nodes except the first one. - :: - - $ cat count - 1 224 2 - 21 98 0 - 55 818 10 - 2367 2 0 - 2401 30 0 - 225 13 0 - 599 35 0 - 939 124 0 - 1041 3 0 - 1075 1 0 - 1109 1 0 - 1279 60 0 - 1313 7 0 - 1347 39 0 - 1381 3 0 - 1449 14 0 - 1483 63 0 - 1517 53 0 - 1551 6 0 - 1585 1 0 - 1619 6 0 - 1653 40 0 - 1687 11 0 - 1721 8 0 - 1755 4 0 - 1789 52 0 - 1823 888 0 - 1857 1 0 - 1925 2 0 - 1959 32 0 - 2027 22 0 - 2061 9 0 - 2469 799 0 - 2537 861 0 - 2639 1 0 - 2707 70 0 - 2775 4 0 - 2877 84 0 - 293 1 0 - 735 8 0 - -4. *Scan objects* - - The expected input format:: - - - - For a non-memcg-aware shrinker or on a system with no memory - cgrups **0** should be passed as cgroup id. - :: - - $ cd /sys/kernel/debug/shrinker/ - $ cd sb-btrfs\:vda2-24/ - - $ cat count | head -n 5 - 1 212 0 - 21 97 0 - 55 802 5 - 2367 2 0 - 225 13 0 - - $ echo "55 0 200" > scan - - $ cat count | head -n 5 - 1 212 0 - 21 96 0 - 55 752 5 - 2367 2 0 - 225 13 0 +========================== +Shrinker Debugfs Interface +========================== + +Shrinker debugfs interface provides a visibility into the kernel memory +shrinkers subsystem and allows to get information about individual shrinkers +and interact with them. + +For each shrinker registered in the system a directory in **/shrinker/** +is created. The directory's name is composed from the shrinker's name and an +unique id: e.g. *kfree_rcu-0* or *sb-xfs:vda1-36*. + +Each shrinker directory contains **count** and **scan** files, which allow to +trigger *count_objects()* and *scan_objects()* callbacks for each memcg and +numa node (if applicable). + +Usage: +------ + +1. *List registered shrinkers* + + :: + + $ cd /sys/kernel/debug/shrinker/ + $ ls + dquota-cache-16 sb-devpts-28 sb-proc-47 sb-tmpfs-42 + mm-shadow-18 sb-devtmpfs-5 sb-proc-48 sb-tmpfs-43 + mm-zspool:zram0-34 sb-hugetlbfs-17 sb-pstore-31 sb-tmpfs-44 + rcu-kfree-0 sb-hugetlbfs-33 sb-rootfs-2 sb-tmpfs-49 + sb-aio-20 sb-iomem-12 sb-securityfs-6 sb-tracefs-13 + sb-anon_inodefs-15 sb-mqueue-21 sb-selinuxfs-22 sb-xfs:vda1-36 + sb-bdev-3 sb-nsfs-4 sb-sockfs-8 sb-zsmalloc-19 + sb-bpf-32 sb-pipefs-14 sb-sysfs-26 thp-deferred_split-10 + sb-btrfs:vda2-24 sb-proc-25 sb-tmpfs-1 thp-zero-9 + sb-cgroup2-30 sb-proc-39 sb-tmpfs-27 xfs-buf:vda1-37 + sb-configfs-23 sb-proc-41 sb-tmpfs-29 xfs-inodegc:vda1-38 + sb-dax-11 sb-proc-45 sb-tmpfs-35 + sb-debugfs-7 sb-proc-46 sb-tmpfs-40 + +2. *Get information about a specific shrinker* + + :: + + $ cd sb-btrfs\:vda2-24/ + $ ls + count scan + +3. *Count objects* + + Each line in the output has the following format:: + + ... + ... + ... + + If there are no objects on all numa nodes, a line is omitted. If there + are no objects at all, the output might be empty. + + If the shrinker is not memcg-aware or CONFIG_MEMCG is off, 0 is printed + as cgroup inode id. If the shrinker is not numa-aware, 0's are printed + for all nodes except the first one. + :: + + $ cat count + 1 224 2 + 21 98 0 + 55 818 10 + 2367 2 0 + 2401 30 0 + 225 13 0 + 599 35 0 + 939 124 0 + 1041 3 0 + 1075 1 0 + 1109 1 0 + 1279 60 0 + 1313 7 0 + 1347 39 0 + 1381 3 0 + 1449 14 0 + 1483 63 0 + 1517 53 0 + 1551 6 0 + 1585 1 0 + 1619 6 0 + 1653 40 0 + 1687 11 0 + 1721 8 0 + 1755 4 0 + 1789 52 0 + 1823 888 0 + 1857 1 0 + 1925 2 0 + 1959 32 0 + 2027 22 0 + 2061 9 0 + 2469 799 0 + 2537 861 0 + 2639 1 0 + 2707 70 0 + 2775 4 0 + 2877 84 0 + 293 1 0 + 735 8 0 + +4. *Scan objects* + + The expected input format:: + + + + For a non-memcg-aware shrinker or on a system with no memory + cgrups **0** should be passed as cgroup id. + :: + + $ cd /sys/kernel/debug/shrinker/ + $ cd sb-btrfs\:vda2-24/ + + $ cat count | head -n 5 + 1 212 0 + 21 97 0 + 55 802 5 + 2367 2 0 + 225 13 0 + + $ echo "55 0 200" > scan + + $ cat count | head -n 5 + 1 212 0 + 21 96 0 + 55 752 5 + 2367 2 0 + 225 13 0 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/nfs/nfs-idmapper.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/nfs/nfs-idmapper.rst index 4c1348b1e..58b8e6341 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/nfs/nfs-idmapper.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/nfs/nfs-idmapper.rst @@ -1,78 +1,78 @@ -============= -NFS ID Mapper -============= - -Id mapper is used by NFS to translate user and group ids into names, and to -translate user and group names into ids. Part of this translation involves -performing an upcall to userspace to request the information. There are two -ways NFS could obtain this information: placing a call to /sbin/request-key -or by placing a call to the rpc.idmap daemon. - -NFS will attempt to call /sbin/request-key first. If this succeeds, the -result will be cached using the generic request-key cache. This call should -only fail if /etc/request-key.conf is not configured for the id_resolver key -type, see the "Configuring" section below if you wish to use the request-key -method. - -If the call to /sbin/request-key fails (if /etc/request-key.conf is not -configured with the id_resolver key type), then the idmapper will ask the -legacy rpc.idmap daemon for the id mapping. This result will be stored -in a custom NFS idmap cache. - - -Configuring -=========== - -The file /etc/request-key.conf will need to be modified so /sbin/request-key can -direct the upcall. The following line should be added: - -``#OP TYPE DESCRIPTION CALLOUT INFO PROGRAM ARG1 ARG2 ARG3 ...`` -``#====== ======= =============== =============== ===============================`` -``create id_resolver * * /usr/sbin/nfs.idmap %k %d 600`` - - -This will direct all id_resolver requests to the program /usr/sbin/nfs.idmap. -The last parameter, 600, defines how many seconds into the future the key will -expire. This parameter is optional for /usr/sbin/nfs.idmap. When the timeout -is not specified, nfs.idmap will default to 600 seconds. - -id mapper uses for key descriptions:: - - uid: Find the UID for the given user - gid: Find the GID for the given group - user: Find the user name for the given UID - group: Find the group name for the given GID - -You can handle any of these individually, rather than using the generic upcall -program. If you would like to use your own program for a uid lookup then you -would edit your request-key.conf so it look similar to this: - -``#OP TYPE DESCRIPTION CALLOUT INFO PROGRAM ARG1 ARG2 ARG3 ...`` -``#====== ======= =============== =============== ===============================`` -``create id_resolver uid:* * /some/other/program %k %d 600`` -``create id_resolver * * /usr/sbin/nfs.idmap %k %d 600`` - - -Notice that the new line was added above the line for the generic program. -request-key will find the first matching line and corresponding program. In -this case, /some/other/program will handle all uid lookups and -/usr/sbin/nfs.idmap will handle gid, user, and group lookups. - -See Documentation/security/keys/request-key.rst for more information -about the request-key function. - - -nfs.idmap -========= - -nfs.idmap is designed to be called by request-key, and should not be run "by -hand". This program takes two arguments, a serialized key and a key -description. The serialized key is first converted into a key_serial_t, and -then passed as an argument to keyctl_instantiate (both are part of keyutils.h). - -The actual lookups are performed by functions found in nfsidmap.h. nfs.idmap -determines the correct function to call by looking at the first part of the -description string. For example, a uid lookup description will appear as -"uid:user@domain". - -nfs.idmap will return 0 if the key was instantiated, and non-zero otherwise. +============= +NFS ID Mapper +============= + +Id mapper is used by NFS to translate user and group ids into names, and to +translate user and group names into ids. Part of this translation involves +performing an upcall to userspace to request the information. There are two +ways NFS could obtain this information: placing a call to /sbin/request-key +or by placing a call to the rpc.idmap daemon. + +NFS will attempt to call /sbin/request-key first. If this succeeds, the +result will be cached using the generic request-key cache. This call should +only fail if /etc/request-key.conf is not configured for the id_resolver key +type, see the "Configuring" section below if you wish to use the request-key +method. + +If the call to /sbin/request-key fails (if /etc/request-key.conf is not +configured with the id_resolver key type), then the idmapper will ask the +legacy rpc.idmap daemon for the id mapping. This result will be stored +in a custom NFS idmap cache. + + +Configuring +=========== + +The file /etc/request-key.conf will need to be modified so /sbin/request-key can +direct the upcall. The following line should be added: + +``#OP TYPE DESCRIPTION CALLOUT INFO PROGRAM ARG1 ARG2 ARG3 ...`` +``#====== ======= =============== =============== ===============================`` +``create id_resolver * * /usr/sbin/nfs.idmap %k %d 600`` + + +This will direct all id_resolver requests to the program /usr/sbin/nfs.idmap. +The last parameter, 600, defines how many seconds into the future the key will +expire. This parameter is optional for /usr/sbin/nfs.idmap. When the timeout +is not specified, nfs.idmap will default to 600 seconds. + +id mapper uses for key descriptions:: + + uid: Find the UID for the given user + gid: Find the GID for the given group + user: Find the user name for the given UID + group: Find the group name for the given GID + +You can handle any of these individually, rather than using the generic upcall +program. If you would like to use your own program for a uid lookup then you +would edit your request-key.conf so it look similar to this: + +``#OP TYPE DESCRIPTION CALLOUT INFO PROGRAM ARG1 ARG2 ARG3 ...`` +``#====== ======= =============== =============== ===============================`` +``create id_resolver uid:* * /some/other/program %k %d 600`` +``create id_resolver * * /usr/sbin/nfs.idmap %k %d 600`` + + +Notice that the new line was added above the line for the generic program. +request-key will find the first matching line and corresponding program. In +this case, /some/other/program will handle all uid lookups and +/usr/sbin/nfs.idmap will handle gid, user, and group lookups. + +See Documentation/security/keys/request-key.rst for more information +about the request-key function. + + +nfs.idmap +========= + +nfs.idmap is designed to be called by request-key, and should not be run "by +hand". This program takes two arguments, a serialized key and a key +description. The serialized key is first converted into a key_serial_t, and +then passed as an argument to keyctl_instantiate (both are part of keyutils.h). + +The actual lookups are performed by functions found in nfsidmap.h. nfs.idmap +determines the correct function to call by looking at the first part of the +description string. For example, a uid lookup description will appear as +"uid:user@domain". + +nfs.idmap will return 0 if the key was instantiated, and non-zero otherwise. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/perf/alibaba_pmu.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/perf/alibaba_pmu.rst index 75db2d68e..7d8400239 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/perf/alibaba_pmu.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/perf/alibaba_pmu.rst @@ -1,105 +1,105 @@ -============================================================= -Alibaba's T-Head SoC Uncore Performance Monitoring Unit (PMU) -============================================================= - -The Yitian 710, custom-built by Alibaba Group's chip development business, -T-Head, implements uncore PMU for performance and functional debugging to -facilitate system maintenance. - -DDR Sub-System Driveway (DRW) PMU Driver -========================================= - -Yitian 710 employs eight DDR5/4 channels, four on each die. Each DDR5 channel -is independent of others to service system memory requests. And one DDR5 -channel is split into two independent sub-channels. The DDR Sub-System Driveway -implements separate PMUs for each sub-channel to monitor various performance -metrics. - -The Driveway PMU devices are named as ali_drw_ with perf. -For example, ali_drw_21000 and ali_drw_21080 are two PMU devices for two -sub-channels of the same channel in die 0. And the PMU device of die 1 is -prefixed with ali_drw_400XXXXX, e.g. ali_drw_40021000. - -Each sub-channel has 36 PMU counters in total, which is classified into -four groups: - -- Group 0: PMU Cycle Counter. This group has one pair of counters - pmu_cycle_cnt_low and pmu_cycle_cnt_high, that is used as the cycle count - based on DDRC core clock. - -- Group 1: PMU Bandwidth Counters. This group has 8 counters that are used - to count the total access number of either the eight bank groups in a - selected rank, or four ranks separately in the first 4 counters. The base - transfer unit is 64B. - -- Group 2: PMU Retry Counters. This group has 10 counters, that intend to - count the total retry number of each type of uncorrectable error. - -- Group 3: PMU Common Counters. This group has 16 counters, that are used - to count the common events. - -For now, the Driveway PMU driver only uses counters in group 0 and group 3. - -The DDR Controller (DDRCTL) and DDR PHY combine to create a complete solution -for connecting an SoC application bus to DDR memory devices. The DDRCTL -receives transactions Host Interface (HIF) which is custom-defined by Synopsys. -These transactions are queued internally and scheduled for access while -satisfying the SDRAM protocol timing requirements, transaction priorities, and -dependencies between the transactions. The DDRCTL in turn issues commands on -the DDR PHY Interface (DFI) to the PHY module, which launches and captures data -to and from the SDRAM. The driveway PMUs have hardware logic to gather -statistics and performance logging signals on HIF, DFI, etc. - -By counting the READ, WRITE and RMW commands sent to the DDRC through the HIF -interface, we could calculate the bandwidth. Example usage of counting memory -data bandwidth:: - - perf stat \ - -e ali_drw_21000/hif_wr/ \ - -e ali_drw_21000/hif_rd/ \ - -e ali_drw_21000/hif_rmw/ \ - -e ali_drw_21000/cycle/ \ - -e ali_drw_21080/hif_wr/ \ - -e ali_drw_21080/hif_rd/ \ - -e ali_drw_21080/hif_rmw/ \ - -e ali_drw_21080/cycle/ \ - -e ali_drw_23000/hif_wr/ \ - -e ali_drw_23000/hif_rd/ \ - -e ali_drw_23000/hif_rmw/ \ - -e ali_drw_23000/cycle/ \ - -e ali_drw_23080/hif_wr/ \ - -e ali_drw_23080/hif_rd/ \ - -e ali_drw_23080/hif_rmw/ \ - -e ali_drw_23080/cycle/ \ - -e ali_drw_25000/hif_wr/ \ - -e ali_drw_25000/hif_rd/ \ - -e ali_drw_25000/hif_rmw/ \ - -e ali_drw_25000/cycle/ \ - -e ali_drw_25080/hif_wr/ \ - -e ali_drw_25080/hif_rd/ \ - -e ali_drw_25080/hif_rmw/ \ - -e ali_drw_25080/cycle/ \ - -e ali_drw_27000/hif_wr/ \ - -e ali_drw_27000/hif_rd/ \ - -e ali_drw_27000/hif_rmw/ \ - -e ali_drw_27000/cycle/ \ - -e ali_drw_27080/hif_wr/ \ - -e ali_drw_27080/hif_rd/ \ - -e ali_drw_27080/hif_rmw/ \ - -e ali_drw_27080/cycle/ -- sleep 10 - -Example usage of counting all memory read/write bandwidth by metric:: - - perf stat -M ddr_read_bandwidth.all -- sleep 10 - perf stat -M ddr_write_bandwidth.all -- sleep 10 - -The average DRAM bandwidth can be calculated as follows: - -- Read Bandwidth = perf_hif_rd * DDRC_WIDTH * DDRC_Freq / DDRC_Cycle -- Write Bandwidth = (perf_hif_wr + perf_hif_rmw) * DDRC_WIDTH * DDRC_Freq / DDRC_Cycle - -Here, DDRC_WIDTH = 64 bytes. - -The current driver does not support sampling. So "perf record" is -unsupported. Also attach to a task is unsupported as the events are all -uncore. +============================================================= +Alibaba's T-Head SoC Uncore Performance Monitoring Unit (PMU) +============================================================= + +The Yitian 710, custom-built by Alibaba Group's chip development business, +T-Head, implements uncore PMU for performance and functional debugging to +facilitate system maintenance. + +DDR Sub-System Driveway (DRW) PMU Driver +========================================= + +Yitian 710 employs eight DDR5/4 channels, four on each die. Each DDR5 channel +is independent of others to service system memory requests. And one DDR5 +channel is split into two independent sub-channels. The DDR Sub-System Driveway +implements separate PMUs for each sub-channel to monitor various performance +metrics. + +The Driveway PMU devices are named as ali_drw_ with perf. +For example, ali_drw_21000 and ali_drw_21080 are two PMU devices for two +sub-channels of the same channel in die 0. And the PMU device of die 1 is +prefixed with ali_drw_400XXXXX, e.g. ali_drw_40021000. + +Each sub-channel has 36 PMU counters in total, which is classified into +four groups: + +- Group 0: PMU Cycle Counter. This group has one pair of counters + pmu_cycle_cnt_low and pmu_cycle_cnt_high, that is used as the cycle count + based on DDRC core clock. + +- Group 1: PMU Bandwidth Counters. This group has 8 counters that are used + to count the total access number of either the eight bank groups in a + selected rank, or four ranks separately in the first 4 counters. The base + transfer unit is 64B. + +- Group 2: PMU Retry Counters. This group has 10 counters, that intend to + count the total retry number of each type of uncorrectable error. + +- Group 3: PMU Common Counters. This group has 16 counters, that are used + to count the common events. + +For now, the Driveway PMU driver only uses counters in group 0 and group 3. + +The DDR Controller (DDRCTL) and DDR PHY combine to create a complete solution +for connecting an SoC application bus to DDR memory devices. The DDRCTL +receives transactions Host Interface (HIF) which is custom-defined by Synopsys. +These transactions are queued internally and scheduled for access while +satisfying the SDRAM protocol timing requirements, transaction priorities, and +dependencies between the transactions. The DDRCTL in turn issues commands on +the DDR PHY Interface (DFI) to the PHY module, which launches and captures data +to and from the SDRAM. The driveway PMUs have hardware logic to gather +statistics and performance logging signals on HIF, DFI, etc. + +By counting the READ, WRITE and RMW commands sent to the DDRC through the HIF +interface, we could calculate the bandwidth. Example usage of counting memory +data bandwidth:: + + perf stat \ + -e ali_drw_21000/hif_wr/ \ + -e ali_drw_21000/hif_rd/ \ + -e ali_drw_21000/hif_rmw/ \ + -e ali_drw_21000/cycle/ \ + -e ali_drw_21080/hif_wr/ \ + -e ali_drw_21080/hif_rd/ \ + -e ali_drw_21080/hif_rmw/ \ + -e ali_drw_21080/cycle/ \ + -e ali_drw_23000/hif_wr/ \ + -e ali_drw_23000/hif_rd/ \ + -e ali_drw_23000/hif_rmw/ \ + -e ali_drw_23000/cycle/ \ + -e ali_drw_23080/hif_wr/ \ + -e ali_drw_23080/hif_rd/ \ + -e ali_drw_23080/hif_rmw/ \ + -e ali_drw_23080/cycle/ \ + -e ali_drw_25000/hif_wr/ \ + -e ali_drw_25000/hif_rd/ \ + -e ali_drw_25000/hif_rmw/ \ + -e ali_drw_25000/cycle/ \ + -e ali_drw_25080/hif_wr/ \ + -e ali_drw_25080/hif_rd/ \ + -e ali_drw_25080/hif_rmw/ \ + -e ali_drw_25080/cycle/ \ + -e ali_drw_27000/hif_wr/ \ + -e ali_drw_27000/hif_rd/ \ + -e ali_drw_27000/hif_rmw/ \ + -e ali_drw_27000/cycle/ \ + -e ali_drw_27080/hif_wr/ \ + -e ali_drw_27080/hif_rd/ \ + -e ali_drw_27080/hif_rmw/ \ + -e ali_drw_27080/cycle/ -- sleep 10 + +Example usage of counting all memory read/write bandwidth by metric:: + + perf stat -M ddr_read_bandwidth.all -- sleep 10 + perf stat -M ddr_write_bandwidth.all -- sleep 10 + +The average DRAM bandwidth can be calculated as follows: + +- Read Bandwidth = perf_hif_rd * DDRC_WIDTH * DDRC_Freq / DDRC_Cycle +- Write Bandwidth = (perf_hif_wr + perf_hif_rmw) * DDRC_WIDTH * DDRC_Freq / DDRC_Cycle + +Here, DDRC_WIDTH = 64 bytes. + +The current driver does not support sampling. So "perf record" is +unsupported. Also attach to a task is unsupported as the events are all +uncore. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/perf/dwc_pcie_pmu.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/perf/dwc_pcie_pmu.rst index 69a266421..39b8e1fdd 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/perf/dwc_pcie_pmu.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/admin-guide/perf/dwc_pcie_pmu.rst @@ -1,94 +1,94 @@ -====================================================================== -Synopsys DesignWare Cores (DWC) PCIe Performance Monitoring Unit (PMU) -====================================================================== - -DesignWare Cores (DWC) PCIe PMU -=============================== - -The PMU is a PCIe configuration space register block provided by each PCIe Root -Port in a Vendor-Specific Extended Capability named RAS D.E.S (Debug, Error -injection, and Statistics). - -As the name indicates, the RAS DES capability supports system level -debugging, AER error injection, and collection of statistics. To facilitate -collection of statistics, Synopsys DesignWare Cores PCIe controller -provides the following two features: - -- one 64-bit counter for Time Based Analysis (RX/TX data throughput and - time spent in each low-power LTSSM state) and -- one 32-bit counter for Event Counting (error and non-error events for - a specified lane) - -Note: There is no interrupt for counter overflow. - -Time Based Analysis -------------------- - -Using this feature you can obtain information regarding RX/TX data -throughput and time spent in each low-power LTSSM state by the controller. -The PMU measures data in two categories: - -- Group#0: Percentage of time the controller stays in LTSSM states. -- Group#1: Amount of data processed (Units of 16 bytes). - -Lane Event counters -------------------- - -Using this feature you can obtain Error and Non-Error information in -specific lane by the controller. The PMU event is selected by all of: - -- Group i -- Event j within the Group i -- Lane k - -Some of the events only exist for specific configurations. - -DesignWare Cores (DWC) PCIe PMU Driver -======================================= - -This driver adds PMU devices for each PCIe Root Port named based on the SBDF of -the Root Port. For example, - - 0001:30:03.0 PCI bridge: Device 1ded:8000 (rev 01) - -the PMU device name for this Root Port is dwc_rootport_13018. - -The DWC PCIe PMU driver registers a perf PMU driver, which provides -description of available events and configuration options in sysfs, see -/sys/bus/event_source/devices/dwc_rootport_{sbdf}. - -The "format" directory describes format of the config fields of the -perf_event_attr structure. The "events" directory provides configuration -templates for all documented events. For example, -"Rx_PCIe_TLP_Data_Payload" is an equivalent of "eventid=0x22,type=0x1". - -The "perf list" command shall list the available events from sysfs, e.g.:: - - $# perf list | grep dwc_rootport - <...> - dwc_rootport_13018/Rx_PCIe_TLP_Data_Payload/ [Kernel PMU event] - <...> - dwc_rootport_13018/rx_memory_read,lane=?/ [Kernel PMU event] - -Time Based Analysis Event Usage -------------------------------- - -Example usage of counting PCIe RX TLP data payload (Units of bytes):: - - $# perf stat -a -e dwc_rootport_13018/Rx_PCIe_TLP_Data_Payload/ - -The average RX/TX bandwidth can be calculated using the following formula: - - PCIe RX Bandwidth = Rx_PCIe_TLP_Data_Payload / Measure_Time_Window - PCIe TX Bandwidth = Tx_PCIe_TLP_Data_Payload / Measure_Time_Window - -Lane Event Usage -------------------------------- - -Each lane has the same event set and to avoid generating a list of hundreds -of events, the user need to specify the lane ID explicitly, e.g.:: - - $# perf stat -a -e dwc_rootport_13018/rx_memory_read,lane=4/ - -The driver does not support sampling, therefore "perf record" will not -work. Per-task (without "-a") perf sessions are not supported. +====================================================================== +Synopsys DesignWare Cores (DWC) PCIe Performance Monitoring Unit (PMU) +====================================================================== + +DesignWare Cores (DWC) PCIe PMU +=============================== + +The PMU is a PCIe configuration space register block provided by each PCIe Root +Port in a Vendor-Specific Extended Capability named RAS D.E.S (Debug, Error +injection, and Statistics). + +As the name indicates, the RAS DES capability supports system level +debugging, AER error injection, and collection of statistics. To facilitate +collection of statistics, Synopsys DesignWare Cores PCIe controller +provides the following two features: + +- one 64-bit counter for Time Based Analysis (RX/TX data throughput and + time spent in each low-power LTSSM state) and +- one 32-bit counter for Event Counting (error and non-error events for + a specified lane) + +Note: There is no interrupt for counter overflow. + +Time Based Analysis +------------------- + +Using this feature you can obtain information regarding RX/TX data +throughput and time spent in each low-power LTSSM state by the controller. +The PMU measures data in two categories: + +- Group#0: Percentage of time the controller stays in LTSSM states. +- Group#1: Amount of data processed (Units of 16 bytes). + +Lane Event counters +------------------- + +Using this feature you can obtain Error and Non-Error information in +specific lane by the controller. The PMU event is selected by all of: + +- Group i +- Event j within the Group i +- Lane k + +Some of the events only exist for specific configurations. + +DesignWare Cores (DWC) PCIe PMU Driver +======================================= + +This driver adds PMU devices for each PCIe Root Port named based on the SBDF of +the Root Port. For example, + + 0001:30:03.0 PCI bridge: Device 1ded:8000 (rev 01) + +the PMU device name for this Root Port is dwc_rootport_13018. + +The DWC PCIe PMU driver registers a perf PMU driver, which provides +description of available events and configuration options in sysfs, see +/sys/bus/event_source/devices/dwc_rootport_{sbdf}. + +The "format" directory describes format of the config fields of the +perf_event_attr structure. The "events" directory provides configuration +templates for all documented events. For example, +"Rx_PCIe_TLP_Data_Payload" is an equivalent of "eventid=0x22,type=0x1". + +The "perf list" command shall list the available events from sysfs, e.g.:: + + $# perf list | grep dwc_rootport + <...> + dwc_rootport_13018/Rx_PCIe_TLP_Data_Payload/ [Kernel PMU event] + <...> + dwc_rootport_13018/rx_memory_read,lane=?/ [Kernel PMU event] + +Time Based Analysis Event Usage +------------------------------- + +Example usage of counting PCIe RX TLP data payload (Units of bytes):: + + $# perf stat -a -e dwc_rootport_13018/Rx_PCIe_TLP_Data_Payload/ + +The average RX/TX bandwidth can be calculated using the following formula: + + PCIe RX Bandwidth = Rx_PCIe_TLP_Data_Payload / Measure_Time_Window + PCIe TX Bandwidth = Tx_PCIe_TLP_Data_Payload / Measure_Time_Window + +Lane Event Usage +------------------------------- + +Each lane has the same event set and to avoid generating a list of hundreds +of events, the user need to specify the lane ID explicitly, e.g.:: + + $# perf stat -a -e dwc_rootport_13018/rx_memory_read,lane=4/ + +The driver does not support sampling, therefore "perf record" will not +work. Per-task (without "-a") perf sessions are not supported. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arc/arc.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arc/arc.rst index 1d1d2c75f..6c4d978f3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arc/arc.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arc/arc.rst @@ -1,85 +1,85 @@ -.. SPDX-License-Identifier: GPL-2.0 - -Linux kernel for ARC processors -******************************* - -Other sources of information -############################ - -Below are some resources where more information can be found on -ARC processors and relevant open source projects. - -- ``_ - Community portal for open source on ARC. - Good place to start to find relevant FOSS projects, toolchain releases, - news items and more. - -- ``_ - - Home for all development activities regarding open source projects for - ARC processors. Some of the projects are forks of various upstream projects, - where "work in progress" is hosted prior to submission to upstream projects. - Other projects are developed by Synopsys and made available to community - as open source for use on ARC Processors. - -- `Official Synopsys ARC Processors website - `_ - - location, with access to some IP documentation (`Programmer's Reference - Manual, AKA PRM for ARC HS processors - `_) - and free versions of some commercial tools (`Free nSIM - `_ and - `MetaWare Light Edition `_). - Please note though, registration is required to access both the documentation and - the tools. - -Important note on ARC processors configurability -################################################ - -ARC processors are highly configurable and several configurable options -are supported in Linux. Some options are transparent to software -(i.e cache geometries, some can be detected at runtime and configured -and used accordingly, while some need to be explicitly selected or configured -in the kernel's configuration utility (AKA "make menuconfig"). - -However not all configurable options are supported when an ARC processor -is to run Linux. SoC design teams should refer to "Appendix E: -Configuration for ARC Linux" in the ARC HS Databook for configurability -guidelines. - -Following these guidelines and selecting valid configuration options -up front is critical to help prevent any unwanted issues during -SoC bringup and software development in general. - -Building the Linux kernel for ARC processors -############################################ - -The process of kernel building for ARC processors is the same as for any other -architecture and could be done in 2 ways: - -- Cross-compilation: process of compiling for ARC targets on a development - host with a different processor architecture (generally x86_64/amd64). -- Native compilation: process of compiling for ARC on a ARC platform - (hardware board or a simulator like QEMU) with complete development environment - (GNU toolchain, dtc, make etc) installed on the platform. - -In both cases, up-to-date GNU toolchain for ARC for the host is needed. -Synopsys offers prebuilt toolchain releases which can be used for this purpose, -available from: - -- Synopsys GNU toolchain releases: - ``_ - -- Linux kernel compilers collection: - ``_ - -- Bootlin's toolchain collection: ``_ - -Once the toolchain is installed in the system, make sure its "bin" folder -is added in your ``PATH`` environment variable. Then set ``ARCH=arc`` & -``CROSS_COMPILE=arc-linux`` (or whatever matches installed ARC toolchain prefix) -and then as usual ``make defconfig && make``. - -This will produce "vmlinux" file in the root of the kernel source tree -usable for loading on the target system via JTAG. -If you need to get an image usable with U-Boot bootloader, -type ``make uImage`` and ``uImage`` will be produced in ``arch/arc/boot`` -folder. +.. SPDX-License-Identifier: GPL-2.0 + +Linux kernel for ARC processors +******************************* + +Other sources of information +############################ + +Below are some resources where more information can be found on +ARC processors and relevant open source projects. + +- ``_ - Community portal for open source on ARC. + Good place to start to find relevant FOSS projects, toolchain releases, + news items and more. + +- ``_ - + Home for all development activities regarding open source projects for + ARC processors. Some of the projects are forks of various upstream projects, + where "work in progress" is hosted prior to submission to upstream projects. + Other projects are developed by Synopsys and made available to community + as open source for use on ARC Processors. + +- `Official Synopsys ARC Processors website + `_ - + location, with access to some IP documentation (`Programmer's Reference + Manual, AKA PRM for ARC HS processors + `_) + and free versions of some commercial tools (`Free nSIM + `_ and + `MetaWare Light Edition `_). + Please note though, registration is required to access both the documentation and + the tools. + +Important note on ARC processors configurability +################################################ + +ARC processors are highly configurable and several configurable options +are supported in Linux. Some options are transparent to software +(i.e cache geometries, some can be detected at runtime and configured +and used accordingly, while some need to be explicitly selected or configured +in the kernel's configuration utility (AKA "make menuconfig"). + +However not all configurable options are supported when an ARC processor +is to run Linux. SoC design teams should refer to "Appendix E: +Configuration for ARC Linux" in the ARC HS Databook for configurability +guidelines. + +Following these guidelines and selecting valid configuration options +up front is critical to help prevent any unwanted issues during +SoC bringup and software development in general. + +Building the Linux kernel for ARC processors +############################################ + +The process of kernel building for ARC processors is the same as for any other +architecture and could be done in 2 ways: + +- Cross-compilation: process of compiling for ARC targets on a development + host with a different processor architecture (generally x86_64/amd64). +- Native compilation: process of compiling for ARC on a ARC platform + (hardware board or a simulator like QEMU) with complete development environment + (GNU toolchain, dtc, make etc) installed on the platform. + +In both cases, up-to-date GNU toolchain for ARC for the host is needed. +Synopsys offers prebuilt toolchain releases which can be used for this purpose, +available from: + +- Synopsys GNU toolchain releases: + ``_ + +- Linux kernel compilers collection: + ``_ + +- Bootlin's toolchain collection: ``_ + +Once the toolchain is installed in the system, make sure its "bin" folder +is added in your ``PATH`` environment variable. Then set ``ARCH=arc`` & +``CROSS_COMPILE=arc-linux`` (or whatever matches installed ARC toolchain prefix) +and then as usual ``make defconfig && make``. + +This will produce "vmlinux" file in the root of the kernel source tree +usable for loading on the target system via JTAG. +If you need to get an image usable with U-Boot bootloader, +type ``make uImage`` and ``uImage`` will be produced in ``arch/arc/boot`` +folder. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/memory.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/memory.rst index 8615dec8f..0cb1e2938 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/memory.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/memory.rst @@ -1,103 +1,103 @@ -================================= -Kernel Memory Layout on ARM Linux -================================= - - Russell King - - November 17, 2005 (2.6.15) - -This document describes the virtual memory layout which the Linux -kernel uses for ARM processors. It indicates which regions are -free for platforms to use, and which are used by generic code. - -The ARM CPU is capable of addressing a maximum of 4GB virtual memory -space, and this must be shared between user space processes, the -kernel, and hardware devices. - -As the ARM architecture matures, it becomes necessary to reserve -certain regions of VM space for use for new facilities; therefore -this document may reserve more VM space over time. - -=============== =============== =============================================== -Start End Use -=============== =============== =============================================== -ffff8000 ffffffff copy_user_page / clear_user_page use. - For SA11xx and Xscale, this is used to - setup a minicache mapping. - -ffff4000 ffffffff cache aliasing on ARMv6 and later CPUs. - -ffff1000 ffff7fff Reserved. - Platforms must not use this address range. - -ffff0000 ffff0fff CPU vector page. - The CPU vectors are mapped here if the - CPU supports vector relocation (control - register V bit.) - -fffe0000 fffeffff XScale cache flush area. This is used - in proc-xscale.S to flush the whole data - cache. (XScale does not have TCM.) - -fffe8000 fffeffff DTCM mapping area for platforms with - DTCM mounted inside the CPU. - -fffe0000 fffe7fff ITCM mapping area for platforms with - ITCM mounted inside the CPU. - -ffc80000 ffefffff Fixmap mapping region. Addresses provided - by fix_to_virt() will be located here. - -ffc00000 ffc7ffff Guard region - -ff800000 ffbfffff Permanent, fixed read-only mapping of the - firmware provided DT blob - -fee00000 feffffff Mapping of PCI I/O space. This is a static - mapping within the vmalloc space. - -VMALLOC_START VMALLOC_END-1 vmalloc() / ioremap() space. - Memory returned by vmalloc/ioremap will - be dynamically placed in this region. - Machine specific static mappings are also - located here through iotable_init(). - VMALLOC_START is based upon the value - of the high_memory variable, and VMALLOC_END - is equal to 0xff800000. - -PAGE_OFFSET high_memory-1 Kernel direct-mapped RAM region. - This maps the platforms RAM, and typically - maps all platform RAM in a 1:1 relationship. - -PKMAP_BASE PAGE_OFFSET-1 Permanent kernel mappings - One way of mapping HIGHMEM pages into kernel - space. - -MODULES_VADDR MODULES_END-1 Kernel module space - Kernel modules inserted via insmod are - placed here using dynamic mappings. - -TASK_SIZE MODULES_VADDR-1 KASAn shadow memory when KASan is in use. - The range from MODULES_VADDR to the top - of the memory is shadowed here with 1 bit - per byte of memory. - -00001000 TASK_SIZE-1 User space mappings - Per-thread mappings are placed here via - the mmap() system call. - -00000000 00000fff CPU vector page / null pointer trap - CPUs which do not support vector remapping - place their vector page here. NULL pointer - dereferences by both the kernel and user - space are also caught via this mapping. -=============== =============== =============================================== - -Please note that mappings which collide with the above areas may result -in a non-bootable kernel, or may cause the kernel to (eventually) panic -at run time. - -Since future CPUs may impact the kernel mapping layout, user programs -must not access any memory which is not mapped inside their 0x0001000 -to TASK_SIZE address range. If they wish to access these areas, they -must set up their own mappings using open() and mmap(). +================================= +Kernel Memory Layout on ARM Linux +================================= + + Russell King + + November 17, 2005 (2.6.15) + +This document describes the virtual memory layout which the Linux +kernel uses for ARM processors. It indicates which regions are +free for platforms to use, and which are used by generic code. + +The ARM CPU is capable of addressing a maximum of 4GB virtual memory +space, and this must be shared between user space processes, the +kernel, and hardware devices. + +As the ARM architecture matures, it becomes necessary to reserve +certain regions of VM space for use for new facilities; therefore +this document may reserve more VM space over time. + +=============== =============== =============================================== +Start End Use +=============== =============== =============================================== +ffff8000 ffffffff copy_user_page / clear_user_page use. + For SA11xx and Xscale, this is used to + setup a minicache mapping. + +ffff4000 ffffffff cache aliasing on ARMv6 and later CPUs. + +ffff1000 ffff7fff Reserved. + Platforms must not use this address range. + +ffff0000 ffff0fff CPU vector page. + The CPU vectors are mapped here if the + CPU supports vector relocation (control + register V bit.) + +fffe0000 fffeffff XScale cache flush area. This is used + in proc-xscale.S to flush the whole data + cache. (XScale does not have TCM.) + +fffe8000 fffeffff DTCM mapping area for platforms with + DTCM mounted inside the CPU. + +fffe0000 fffe7fff ITCM mapping area for platforms with + ITCM mounted inside the CPU. + +ffc80000 ffefffff Fixmap mapping region. Addresses provided + by fix_to_virt() will be located here. + +ffc00000 ffc7ffff Guard region + +ff800000 ffbfffff Permanent, fixed read-only mapping of the + firmware provided DT blob + +fee00000 feffffff Mapping of PCI I/O space. This is a static + mapping within the vmalloc space. + +VMALLOC_START VMALLOC_END-1 vmalloc() / ioremap() space. + Memory returned by vmalloc/ioremap will + be dynamically placed in this region. + Machine specific static mappings are also + located here through iotable_init(). + VMALLOC_START is based upon the value + of the high_memory variable, and VMALLOC_END + is equal to 0xff800000. + +PAGE_OFFSET high_memory-1 Kernel direct-mapped RAM region. + This maps the platforms RAM, and typically + maps all platform RAM in a 1:1 relationship. + +PKMAP_BASE PAGE_OFFSET-1 Permanent kernel mappings + One way of mapping HIGHMEM pages into kernel + space. + +MODULES_VADDR MODULES_END-1 Kernel module space + Kernel modules inserted via insmod are + placed here using dynamic mappings. + +TASK_SIZE MODULES_VADDR-1 KASAn shadow memory when KASan is in use. + The range from MODULES_VADDR to the top + of the memory is shadowed here with 1 bit + per byte of memory. + +00001000 TASK_SIZE-1 User space mappings + Per-thread mappings are placed here via + the mmap() system call. + +00000000 00000fff CPU vector page / null pointer trap + CPUs which do not support vector remapping + place their vector page here. NULL pointer + dereferences by both the kernel and user + space are also caught via this mapping. +=============== =============== =============================================== + +Please note that mappings which collide with the above areas may result +in a non-bootable kernel, or may cause the kernel to (eventually) panic +at run time. + +Since future CPUs may impact the kernel mapping layout, user programs +must not access any memory which is not mapped inside their 0x0001000 +to TASK_SIZE address range. If they wish to access these areas, they +must set up their own mappings using open() and mmap(). diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/nwfpe/nwfpe.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/nwfpe/nwfpe.rst index c6d90ad2e..35cd90dac 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/nwfpe/nwfpe.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/nwfpe/nwfpe.rst @@ -1,74 +1,74 @@ -Introduction -============ - -This directory contains the version 0.92 test release of the NetWinder -Floating Point Emulator. - -The majority of the code was written by me, Scott Bambrough It is -written in C, with a small number of routines in inline assembler -where required. It was written quickly, with a goal of implementing a -working version of all the floating point instructions the compiler -emits as the first target. I have attempted to be as optimal as -possible, but there remains much room for improvement. - -I have attempted to make the emulator as portable as possible. One of -the problems is with leading underscores on kernel symbols. Elf -kernels have no leading underscores, a.out compiled kernels do. I -have attempted to use the C_SYMBOL_NAME macro wherever this may be -important. - -Another choice I made was in the file structure. I have attempted to -contain all operating system specific code in one module (fpmodule.*). -All the other files contain emulator specific code. This should allow -others to port the emulator to NetBSD for instance relatively easily. - -The floating point operations are based on SoftFloat Release 2, by -John Hauser. SoftFloat is a software implementation of floating-point -that conforms to the IEC/IEEE Standard for Binary Floating-point -Arithmetic. As many as four formats are supported: single precision, -double precision, extended double precision, and quadruple precision. -All operations required by the standard are implemented, except for -conversions to and from decimal. We use only the single precision, -double precision and extended double precision formats. The port of -SoftFloat to the ARM was done by Phil Blundell, based on an earlier -port of SoftFloat version 1 by Neil Carson for NetBSD/arm32. - -The file README.FPE contains a description of what has been implemented -so far in the emulator. The file TODO contains a information on what -remains to be done, and other ideas for the emulator. - -Bug reports, comments, suggestions should be directed to me at -. General reports of "this program doesn't -work correctly when your emulator is installed" are useful for -determining that bugs still exist; but are virtually useless when -attempting to isolate the problem. Please report them, but don't -expect quick action. Bugs still exist. The problem remains in isolating -which instruction contains the bug. Small programs illustrating a specific -problem are a godsend. - -Legal Notices -------------- - -The NetWinder Floating Point Emulator is free software. Everything Rebel.com -has written is provided under the GNU GPL. See the file COPYING for copying -conditions. Excluded from the above is the SoftFloat code. John Hauser's -legal notice for SoftFloat is included below. - -------------------------------------------------------------------------------- - -SoftFloat Legal Notice - -SoftFloat was written by John R. Hauser. This work was made possible in -part by the International Computer Science Institute, located at Suite 600, -1947 Center Street, Berkeley, California 94704. Funding was partially -provided by the National Science Foundation under grant MIP-9311980. The -original version of this code was written as part of a project to build -a fixed-point vector processor in collaboration with the University of -California at Berkeley, overseen by Profs. Nelson Morgan and John Wawrzynek. - -THIS SOFTWARE IS DISTRIBUTED AS IS, FOR FREE. Although reasonable effort -has been made to avoid it, THIS SOFTWARE MAY CONTAIN FAULTS THAT WILL AT -TIMES RESULT IN INCORRECT BEHAVIOR. USE OF THIS SOFTWARE IS RESTRICTED TO -PERSONS AND ORGANIZATIONS WHO CAN AND WILL TAKE FULL RESPONSIBILITY FOR ANY -AND ALL LOSSES, COSTS, OR OTHER PROBLEMS ARISING FROM ITS USE. -------------------------------------------------------------------------------- +Introduction +============ + +This directory contains the version 0.92 test release of the NetWinder +Floating Point Emulator. + +The majority of the code was written by me, Scott Bambrough It is +written in C, with a small number of routines in inline assembler +where required. It was written quickly, with a goal of implementing a +working version of all the floating point instructions the compiler +emits as the first target. I have attempted to be as optimal as +possible, but there remains much room for improvement. + +I have attempted to make the emulator as portable as possible. One of +the problems is with leading underscores on kernel symbols. Elf +kernels have no leading underscores, a.out compiled kernels do. I +have attempted to use the C_SYMBOL_NAME macro wherever this may be +important. + +Another choice I made was in the file structure. I have attempted to +contain all operating system specific code in one module (fpmodule.*). +All the other files contain emulator specific code. This should allow +others to port the emulator to NetBSD for instance relatively easily. + +The floating point operations are based on SoftFloat Release 2, by +John Hauser. SoftFloat is a software implementation of floating-point +that conforms to the IEC/IEEE Standard for Binary Floating-point +Arithmetic. As many as four formats are supported: single precision, +double precision, extended double precision, and quadruple precision. +All operations required by the standard are implemented, except for +conversions to and from decimal. We use only the single precision, +double precision and extended double precision formats. The port of +SoftFloat to the ARM was done by Phil Blundell, based on an earlier +port of SoftFloat version 1 by Neil Carson for NetBSD/arm32. + +The file README.FPE contains a description of what has been implemented +so far in the emulator. The file TODO contains a information on what +remains to be done, and other ideas for the emulator. + +Bug reports, comments, suggestions should be directed to me at +. General reports of "this program doesn't +work correctly when your emulator is installed" are useful for +determining that bugs still exist; but are virtually useless when +attempting to isolate the problem. Please report them, but don't +expect quick action. Bugs still exist. The problem remains in isolating +which instruction contains the bug. Small programs illustrating a specific +problem are a godsend. + +Legal Notices +------------- + +The NetWinder Floating Point Emulator is free software. Everything Rebel.com +has written is provided under the GNU GPL. See the file COPYING for copying +conditions. Excluded from the above is the SoftFloat code. John Hauser's +legal notice for SoftFloat is included below. + +------------------------------------------------------------------------------- + +SoftFloat Legal Notice + +SoftFloat was written by John R. Hauser. This work was made possible in +part by the International Computer Science Institute, located at Suite 600, +1947 Center Street, Berkeley, California 94704. Funding was partially +provided by the National Science Foundation under grant MIP-9311980. The +original version of this code was written as part of a project to build +a fixed-point vector processor in collaboration with the University of +California at Berkeley, overseen by Profs. Nelson Morgan and John Wawrzynek. + +THIS SOFTWARE IS DISTRIBUTED AS IS, FOR FREE. Although reasonable effort +has been made to avoid it, THIS SOFTWARE MAY CONTAIN FAULTS THAT WILL AT +TIMES RESULT IN INCORRECT BEHAVIOR. USE OF THIS SOFTWARE IS RESTRICTED TO +PERSONS AND ORGANIZATIONS WHO CAN AND WILL TAKE FULL RESPONSIBILITY FOR ANY +AND ALL LOSSES, COSTS, OR OTHER PROBLEMS ARISING FROM ITS USE. +------------------------------------------------------------------------------- diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/nwfpe/todo.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/nwfpe/todo.rst index f12c5fa82..393f11b14 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/nwfpe/todo.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/nwfpe/todo.rst @@ -1,72 +1,72 @@ -TODO LIST -========= - -:: - - POW{cond}{P,M,Z} Fd, Fn, - power - RPW{cond}{P,M,Z} Fd, Fn, - reverse power - POL{cond}{P,M,Z} Fd, Fn, - polar angle (arctan2) - - LOG{cond}{P,M,Z} Fd, - logarithm to base 10 - LGN{cond}{P,M,Z} Fd, - logarithm to base e - EXP{cond}{P,M,Z} Fd, - exponent - SIN{cond}{P,M,Z} Fd, - sine - COS{cond}{P,M,Z} Fd, - cosine - TAN{cond}{P,M,Z} Fd, - tangent - ASN{cond}{P,M,Z} Fd, - arcsine - ACS{cond}{P,M,Z} Fd, - arccosine - ATN{cond}{P,M,Z} Fd, - arctangent - -These are not implemented. They are not currently issued by the compiler, -and are handled by routines in libc. These are not implemented by the FPA11 -hardware, but are handled by the floating point support code. They should -be implemented in future versions. - -There are a couple of ways to approach the implementation of these. One -method would be to use accurate table methods for these routines. I have -a couple of papers by S. Gal from IBM's research labs in Haifa, Israel that -seem to promise extreme accuracy (in the order of 99.8%) and reasonable speed. -These methods are used in GLIBC for some of the transcendental functions. - -Another approach, which I know little about is CORDIC. This stands for -Coordinate Rotation Digital Computer, and is a method of computing -transcendental functions using mostly shifts and adds and a few -multiplications and divisions. The ARM excels at shifts and adds, -so such a method could be promising, but requires more research to -determine if it is feasible. - -Rounding Methods ----------------- - -The IEEE standard defines 4 rounding modes. Round to nearest is the -default, but rounding to + or - infinity or round to zero are also allowed. -Many architectures allow the rounding mode to be specified by modifying bits -in a control register. Not so with the ARM FPA11 architecture. To change -the rounding mode one must specify it with each instruction. - -This has made porting some benchmarks difficult. It is possible to -introduce such a capability into the emulator. The FPCR contains -bits describing the rounding mode. The emulator could be altered to -examine a flag, which if set forced it to ignore the rounding mode in -the instruction, and use the mode specified in the bits in the FPCR. - -This would require a method of getting/setting the flag, and the bits -in the FPCR. This requires a kernel call in ArmLinux, as WFC/RFC are -supervisor only instructions. If anyone has any ideas or comments I -would like to hear them. - -NOTE: - pulled out from some docs on ARM floating point, specifically - for the Acorn FPE, but not limited to it: - - The floating point control register (FPCR) may only be present in some - implementations: it is there to control the hardware in an implementation- - specific manner, for example to disable the floating point system. The user - mode of the ARM is not permitted to use this register (since the right is - reserved to alter it between implementations) and the WFC and RFC - instructions will trap if tried in user mode. - - Hence, the answer is yes, you could do this, but then you will run a high - risk of becoming isolated if and when hardware FP emulation comes out - - -- Russell. +TODO LIST +========= + +:: + + POW{cond}{P,M,Z} Fd, Fn, - power + RPW{cond}{P,M,Z} Fd, Fn, - reverse power + POL{cond}{P,M,Z} Fd, Fn, - polar angle (arctan2) + + LOG{cond}{P,M,Z} Fd, - logarithm to base 10 + LGN{cond}{P,M,Z} Fd, - logarithm to base e + EXP{cond}{P,M,Z} Fd, - exponent + SIN{cond}{P,M,Z} Fd, - sine + COS{cond}{P,M,Z} Fd, - cosine + TAN{cond}{P,M,Z} Fd, - tangent + ASN{cond}{P,M,Z} Fd, - arcsine + ACS{cond}{P,M,Z} Fd, - arccosine + ATN{cond}{P,M,Z} Fd, - arctangent + +These are not implemented. They are not currently issued by the compiler, +and are handled by routines in libc. These are not implemented by the FPA11 +hardware, but are handled by the floating point support code. They should +be implemented in future versions. + +There are a couple of ways to approach the implementation of these. One +method would be to use accurate table methods for these routines. I have +a couple of papers by S. Gal from IBM's research labs in Haifa, Israel that +seem to promise extreme accuracy (in the order of 99.8%) and reasonable speed. +These methods are used in GLIBC for some of the transcendental functions. + +Another approach, which I know little about is CORDIC. This stands for +Coordinate Rotation Digital Computer, and is a method of computing +transcendental functions using mostly shifts and adds and a few +multiplications and divisions. The ARM excels at shifts and adds, +so such a method could be promising, but requires more research to +determine if it is feasible. + +Rounding Methods +---------------- + +The IEEE standard defines 4 rounding modes. Round to nearest is the +default, but rounding to + or - infinity or round to zero are also allowed. +Many architectures allow the rounding mode to be specified by modifying bits +in a control register. Not so with the ARM FPA11 architecture. To change +the rounding mode one must specify it with each instruction. + +This has made porting some benchmarks difficult. It is possible to +introduce such a capability into the emulator. The FPCR contains +bits describing the rounding mode. The emulator could be altered to +examine a flag, which if set forced it to ignore the rounding mode in +the instruction, and use the mode specified in the bits in the FPCR. + +This would require a method of getting/setting the flag, and the bits +in the FPCR. This requires a kernel call in ArmLinux, as WFC/RFC are +supervisor only instructions. If anyone has any ideas or comments I +would like to hear them. + +NOTE: + pulled out from some docs on ARM floating point, specifically + for the Acorn FPE, but not limited to it: + + The floating point control register (FPCR) may only be present in some + implementations: it is there to control the hardware in an implementation- + specific manner, for example to disable the floating point system. The user + mode of the ARM is not permitted to use this register (since the right is + reserved to alter it between implementations) and the WFC and RFC + instructions will trap if tried in user mode. + + Hence, the answer is yes, you could do this, but then you will run a high + risk of becoming isolated if and when hardware FP emulation comes out + + -- Russell. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/samsung/bootloader-interface.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/samsung/bootloader-interface.rst index a7ad12378..a56f325da 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/samsung/bootloader-interface.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/samsung/bootloader-interface.rst @@ -1,81 +1,81 @@ -========================================================== -Interface between kernel and boot loaders on Exynos boards -========================================================== - -Author: Krzysztof Kozlowski - -Date : 6 June 2015 - -The document tries to describe currently used interface between Linux kernel -and boot loaders on Samsung Exynos based boards. This is not a definition -of interface but rather a description of existing state, a reference -for information purpose only. - -In the document "boot loader" means any of following: U-boot, proprietary -SBOOT or any other firmware for ARMv7 and ARMv8 initializing the board before -executing kernel. - - -1. Non-Secure mode - -Address: sysram_ns_base_addr - -============= ============================================ ================== -Offset Value Purpose -============= ============================================ ================== -0x08 exynos_cpu_resume_ns, mcpm_entry_point System suspend -0x0c 0x00000bad (Magic cookie) System suspend -0x1c exynos4_secondary_startup Secondary CPU boot -0x1c + 4*cpu exynos4_secondary_startup (Exynos4412) Secondary CPU boot -0x20 0xfcba0d10 (Magic cookie) AFTR -0x24 exynos_cpu_resume_ns AFTR -0x28 + 4*cpu 0x8 (Magic cookie, Exynos3250) AFTR -0x28 0x0 or last value during resume (Exynos542x) System suspend -============= ============================================ ================== - - -2. Secure mode - -Address: sysram_base_addr - -============= ============================================ ================== -Offset Value Purpose -============= ============================================ ================== -0x00 exynos4_secondary_startup Secondary CPU boot -0x04 exynos4_secondary_startup (Exynos542x) Secondary CPU boot -4*cpu exynos4_secondary_startup (Exynos4412) Secondary CPU boot -0x20 exynos_cpu_resume (Exynos4210 r1.0) AFTR -0x24 0xfcba0d10 (Magic cookie, Exynos4210 r1.0) AFTR -============= ============================================ ================== - -Address: pmu_base_addr - -============= ============================================ ================== -Offset Value Purpose -============= ============================================ ================== -0x0800 exynos_cpu_resume AFTR, suspend -0x0800 mcpm_entry_point (Exynos542x with MCPM) AFTR, suspend -0x0804 0xfcba0d10 (Magic cookie) AFTR -0x0804 0x00000bad (Magic cookie) System suspend -0x0814 exynos4_secondary_startup (Exynos4210 r1.1) Secondary CPU boot -0x0818 0xfcba0d10 (Magic cookie, Exynos4210 r1.1) AFTR -0x081C exynos_cpu_resume (Exynos4210 r1.1) AFTR -============= ============================================ ================== - -3. Other (regardless of secure/non-secure mode) - -Address: pmu_base_addr - -============= =============================== =============================== -Offset Value Purpose -============= =============================== =============================== -0x0908 Non-zero Secondary CPU boot up indicator - on Exynos3250 and Exynos542x -============= =============================== =============================== - - -4. Glossary - -AFTR - ARM Off Top Running, a low power mode, Cortex cores and many other -modules are power gated, except the TOP modules -MCPM - Multi-Cluster Power Management +========================================================== +Interface between kernel and boot loaders on Exynos boards +========================================================== + +Author: Krzysztof Kozlowski + +Date : 6 June 2015 + +The document tries to describe currently used interface between Linux kernel +and boot loaders on Samsung Exynos based boards. This is not a definition +of interface but rather a description of existing state, a reference +for information purpose only. + +In the document "boot loader" means any of following: U-boot, proprietary +SBOOT or any other firmware for ARMv7 and ARMv8 initializing the board before +executing kernel. + + +1. Non-Secure mode + +Address: sysram_ns_base_addr + +============= ============================================ ================== +Offset Value Purpose +============= ============================================ ================== +0x08 exynos_cpu_resume_ns, mcpm_entry_point System suspend +0x0c 0x00000bad (Magic cookie) System suspend +0x1c exynos4_secondary_startup Secondary CPU boot +0x1c + 4*cpu exynos4_secondary_startup (Exynos4412) Secondary CPU boot +0x20 0xfcba0d10 (Magic cookie) AFTR +0x24 exynos_cpu_resume_ns AFTR +0x28 + 4*cpu 0x8 (Magic cookie, Exynos3250) AFTR +0x28 0x0 or last value during resume (Exynos542x) System suspend +============= ============================================ ================== + + +2. Secure mode + +Address: sysram_base_addr + +============= ============================================ ================== +Offset Value Purpose +============= ============================================ ================== +0x00 exynos4_secondary_startup Secondary CPU boot +0x04 exynos4_secondary_startup (Exynos542x) Secondary CPU boot +4*cpu exynos4_secondary_startup (Exynos4412) Secondary CPU boot +0x20 exynos_cpu_resume (Exynos4210 r1.0) AFTR +0x24 0xfcba0d10 (Magic cookie, Exynos4210 r1.0) AFTR +============= ============================================ ================== + +Address: pmu_base_addr + +============= ============================================ ================== +Offset Value Purpose +============= ============================================ ================== +0x0800 exynos_cpu_resume AFTR, suspend +0x0800 mcpm_entry_point (Exynos542x with MCPM) AFTR, suspend +0x0804 0xfcba0d10 (Magic cookie) AFTR +0x0804 0x00000bad (Magic cookie) System suspend +0x0814 exynos4_secondary_startup (Exynos4210 r1.1) Secondary CPU boot +0x0818 0xfcba0d10 (Magic cookie, Exynos4210 r1.1) AFTR +0x081C exynos_cpu_resume (Exynos4210 r1.1) AFTR +============= ============================================ ================== + +3. Other (regardless of secure/non-secure mode) + +Address: pmu_base_addr + +============= =============================== =============================== +Offset Value Purpose +============= =============================== =============================== +0x0908 Non-zero Secondary CPU boot up indicator + on Exynos3250 and Exynos542x +============= =============================== =============================== + + +4. Glossary + +AFTR - ARM Off Top Running, a low power mode, Cortex cores and many other +modules are power gated, except the TOP modules +MCPM - Multi-Cluster Power Management diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/samsung/clksrc-change-registers.awk b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/samsung/clksrc-change-registers.awk old mode 100644 new mode 100755 index e297418a2..7be1b8aa7 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/samsung/clksrc-change-registers.awk +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/samsung/clksrc-change-registers.awk @@ -1,166 +1,166 @@ -#!/usr/bin/awk -f -# -# Copyright 2010 Ben Dooks -# -# Released under GPLv2 - -# example usage -# ./clksrc-change-registers.awk arch/arm/plat-s5pc1xx/include/plat/regs-clock.h < src > dst - -function extract_value(s) -{ - eqat = index(s, "=") - comat = index(s, ",") - return substr(s, eqat+2, (comat-eqat)-2) -} - -function remove_brackets(b) -{ - return substr(b, 2, length(b)-2) -} - -function splitdefine(l, p) -{ - r = split(l, tp) - - p[0] = tp[2] - p[1] = remove_brackets(tp[3]) -} - -function find_length(f) -{ - if (0) - printf "find_length " f "\n" > "/dev/stderr" - - if (f ~ /0x1/) - return 1 - else if (f ~ /0x3/) - return 2 - else if (f ~ /0x7/) - return 3 - else if (f ~ /0xf/) - return 4 - - printf "unknown length " f "\n" > "/dev/stderr" - exit -} - -function find_shift(s) -{ - id = index(s, "<") - if (id <= 0) { - printf "cannot find shift " s "\n" > "/dev/stderr" - exit - } - - return substr(s, id+2) -} - - -BEGIN { - if (ARGC < 2) { - print "too few arguments" > "/dev/stderr" - exit - } - -# read the header file and find the mask values that we will need -# to replace and create an associative array of values - - while (getline line < ARGV[1] > 0) { - if (line ~ /\#define.*_MASK/ && - !(line ~ /USB_SIG_MASK/)) { - splitdefine(line, fields) - name = fields[0] - if (0) - printf "MASK " line "\n" > "/dev/stderr" - dmask[name,0] = find_length(fields[1]) - dmask[name,1] = find_shift(fields[1]) - if (0) - printf "=> '" name "' LENGTH=" dmask[name,0] " SHIFT=" dmask[name,1] "\n" > "/dev/stderr" - } else { - } - } - - delete ARGV[1] -} - -/clksrc_clk.*=.*{/ { - shift="" - mask="" - divshift="" - reg_div="" - reg_src="" - indent=1 - - print $0 - - for(; indent >= 1;) { - if ((getline line) <= 0) { - printf "unexpected end of file" > "/dev/stderr" - exit 1; - } - - if (line ~ /\.shift/) { - shift = extract_value(line) - } else if (line ~ /\.mask/) { - mask = extract_value(line) - } else if (line ~ /\.reg_divider/) { - reg_div = extract_value(line) - } else if (line ~ /\.reg_source/) { - reg_src = extract_value(line) - } else if (line ~ /\.divider_shift/) { - divshift = extract_value(line) - } else if (line ~ /{/) { - indent++ - print line - } else if (line ~ /}/) { - indent-- - - if (indent == 0) { - if (0) { - printf "shift '" shift "' ='" dmask[shift,0] "'\n" > "/dev/stderr" - printf "mask '" mask "'\n" > "/dev/stderr" - printf "dshft '" divshift "'\n" > "/dev/stderr" - printf "rdiv '" reg_div "'\n" > "/dev/stderr" - printf "rsrc '" reg_src "'\n" > "/dev/stderr" - } - - generated = mask - sub(reg_src, reg_div, generated) - - if (0) { - printf "/* rsrc " reg_src " */\n" - printf "/* rdiv " reg_div " */\n" - printf "/* shift " shift " */\n" - printf "/* mask " mask " */\n" - printf "/* generated " generated " */\n" - } - - if (reg_div != "") { - printf "\t.reg_div = { " - printf ".reg = " reg_div ", " - printf ".shift = " dmask[generated,1] ", " - printf ".size = " dmask[generated,0] ", " - printf "},\n" - } - - printf "\t.reg_src = { " - printf ".reg = " reg_src ", " - printf ".shift = " dmask[mask,1] ", " - printf ".size = " dmask[mask,0] ", " - - printf "},\n" - - } - - print line - } else { - print line - } - - if (0) - printf indent ":" line "\n" > "/dev/stderr" - } -} - -// && ! /clksrc_clk.*=.*{/ { print $0 } +#!/usr/bin/awk -f +# +# Copyright 2010 Ben Dooks +# +# Released under GPLv2 + +# example usage +# ./clksrc-change-registers.awk arch/arm/plat-s5pc1xx/include/plat/regs-clock.h < src > dst + +function extract_value(s) +{ + eqat = index(s, "=") + comat = index(s, ",") + return substr(s, eqat+2, (comat-eqat)-2) +} + +function remove_brackets(b) +{ + return substr(b, 2, length(b)-2) +} + +function splitdefine(l, p) +{ + r = split(l, tp) + + p[0] = tp[2] + p[1] = remove_brackets(tp[3]) +} + +function find_length(f) +{ + if (0) + printf "find_length " f "\n" > "/dev/stderr" + + if (f ~ /0x1/) + return 1 + else if (f ~ /0x3/) + return 2 + else if (f ~ /0x7/) + return 3 + else if (f ~ /0xf/) + return 4 + + printf "unknown length " f "\n" > "/dev/stderr" + exit +} + +function find_shift(s) +{ + id = index(s, "<") + if (id <= 0) { + printf "cannot find shift " s "\n" > "/dev/stderr" + exit + } + + return substr(s, id+2) +} + + +BEGIN { + if (ARGC < 2) { + print "too few arguments" > "/dev/stderr" + exit + } + +# read the header file and find the mask values that we will need +# to replace and create an associative array of values + + while (getline line < ARGV[1] > 0) { + if (line ~ /\#define.*_MASK/ && + !(line ~ /USB_SIG_MASK/)) { + splitdefine(line, fields) + name = fields[0] + if (0) + printf "MASK " line "\n" > "/dev/stderr" + dmask[name,0] = find_length(fields[1]) + dmask[name,1] = find_shift(fields[1]) + if (0) + printf "=> '" name "' LENGTH=" dmask[name,0] " SHIFT=" dmask[name,1] "\n" > "/dev/stderr" + } else { + } + } + + delete ARGV[1] +} + +/clksrc_clk.*=.*{/ { + shift="" + mask="" + divshift="" + reg_div="" + reg_src="" + indent=1 + + print $0 + + for(; indent >= 1;) { + if ((getline line) <= 0) { + printf "unexpected end of file" > "/dev/stderr" + exit 1; + } + + if (line ~ /\.shift/) { + shift = extract_value(line) + } else if (line ~ /\.mask/) { + mask = extract_value(line) + } else if (line ~ /\.reg_divider/) { + reg_div = extract_value(line) + } else if (line ~ /\.reg_source/) { + reg_src = extract_value(line) + } else if (line ~ /\.divider_shift/) { + divshift = extract_value(line) + } else if (line ~ /{/) { + indent++ + print line + } else if (line ~ /}/) { + indent-- + + if (indent == 0) { + if (0) { + printf "shift '" shift "' ='" dmask[shift,0] "'\n" > "/dev/stderr" + printf "mask '" mask "'\n" > "/dev/stderr" + printf "dshft '" divshift "'\n" > "/dev/stderr" + printf "rdiv '" reg_div "'\n" > "/dev/stderr" + printf "rsrc '" reg_src "'\n" > "/dev/stderr" + } + + generated = mask + sub(reg_src, reg_div, generated) + + if (0) { + printf "/* rsrc " reg_src " */\n" + printf "/* rdiv " reg_div " */\n" + printf "/* shift " shift " */\n" + printf "/* mask " mask " */\n" + printf "/* generated " generated " */\n" + } + + if (reg_div != "") { + printf "\t.reg_div = { " + printf ".reg = " reg_div ", " + printf ".shift = " dmask[generated,1] ", " + printf ".size = " dmask[generated,0] ", " + printf "},\n" + } + + printf "\t.reg_src = { " + printf ".reg = " reg_src ", " + printf ".shift = " dmask[mask,1] ", " + printf ".size = " dmask[mask,0] ", " + + printf "},\n" + + } + + print line + } else { + print line + } + + if (0) + printf indent ":" line "\n" > "/dev/stderr" + } +} + +// && ! /clksrc_clk.*=.*{/ { print $0 } diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/setup.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/setup.rst index 5f901204e..8e12ef3fb 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/setup.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/setup.rst @@ -1,108 +1,108 @@ -============================================= -Kernel initialisation parameters on ARM Linux -============================================= - -The following document describes the kernel initialisation parameter -structure, otherwise known as 'struct param_struct' which is used -for most ARM Linux architectures. - -This structure is used to pass initialisation parameters from the -kernel loader to the Linux kernel proper, and may be short lived -through the kernel initialisation process. As a general rule, it -should not be referenced outside of arch/arm/kernel/setup.c:setup_arch(). - -There are a lot of parameters listed in there, and they are described -below: - - page_size - This parameter must be set to the page size of the machine, and - will be checked by the kernel. - - nr_pages - This is the total number of pages of memory in the system. If - the memory is banked, then this should contain the total number - of pages in the system. - - If the system contains separate VRAM, this value should not - include this information. - - ramdisk_size - This is now obsolete, and should not be used. - - flags - Various kernel flags, including: - - ===== ======================== - bit 0 1 = mount root read only - bit 1 unused - bit 2 0 = load ramdisk - bit 3 0 = prompt for ramdisk - ===== ======================== - - rootdev - major/minor number pair of device to mount as the root filesystem. - - video_num_cols / video_num_rows - These two together describe the character size of the dummy console, - or VGA console character size. They should not be used for any other - purpose. - - It's generally a good idea to set these to be either standard VGA, or - the equivalent character size of your fbcon display. This then allows - all the bootup messages to be displayed correctly. - - video_x / video_y - This describes the character position of cursor on VGA console, and - is otherwise unused. (should not be used for other console types, and - should not be used for other purposes). - - memc_control_reg - MEMC chip control register for Acorn Archimedes and Acorn A5000 - based machines. May be used differently by different architectures. - - sounddefault - Default sound setting on Acorn machines. May be used differently by - different architectures. - - adfsdrives - Number of ADFS/MFM disks. May be used differently by different - architectures. - - bytes_per_char_h / bytes_per_char_v - These are now obsolete, and should not be used. - - pages_in_bank[4] - Number of pages in each bank of the systems memory (used for RiscPC). - This is intended to be used on systems where the physical memory - is non-contiguous from the processors point of view. - - pages_in_vram - Number of pages in VRAM (used on Acorn RiscPC). This value may also - be used by loaders if the size of the video RAM can't be obtained - from the hardware. - - initrd_start / initrd_size - This describes the kernel virtual start address and size of the - initial ramdisk. - - rd_start - Start address in sectors of the ramdisk image on a floppy disk. - - system_rev - system revision number. - - system_serial_low / system_serial_high - system 64-bit serial number - - mem_fclk_21285 - The speed of the external oscillator to the 21285 (footbridge), - which control's the speed of the memory bus, timer & serial port. - Depending upon the speed of the cpu its value can be between - 0-66 MHz. If no params are passed or a value of zero is passed, - then a value of 50 Mhz is the default on 21285 architectures. - - paths[8][128] - These are now obsolete, and should not be used. - - commandline - Kernel command line parameters. Details can be found elsewhere. +============================================= +Kernel initialisation parameters on ARM Linux +============================================= + +The following document describes the kernel initialisation parameter +structure, otherwise known as 'struct param_struct' which is used +for most ARM Linux architectures. + +This structure is used to pass initialisation parameters from the +kernel loader to the Linux kernel proper, and may be short lived +through the kernel initialisation process. As a general rule, it +should not be referenced outside of arch/arm/kernel/setup.c:setup_arch(). + +There are a lot of parameters listed in there, and they are described +below: + + page_size + This parameter must be set to the page size of the machine, and + will be checked by the kernel. + + nr_pages + This is the total number of pages of memory in the system. If + the memory is banked, then this should contain the total number + of pages in the system. + + If the system contains separate VRAM, this value should not + include this information. + + ramdisk_size + This is now obsolete, and should not be used. + + flags + Various kernel flags, including: + + ===== ======================== + bit 0 1 = mount root read only + bit 1 unused + bit 2 0 = load ramdisk + bit 3 0 = prompt for ramdisk + ===== ======================== + + rootdev + major/minor number pair of device to mount as the root filesystem. + + video_num_cols / video_num_rows + These two together describe the character size of the dummy console, + or VGA console character size. They should not be used for any other + purpose. + + It's generally a good idea to set these to be either standard VGA, or + the equivalent character size of your fbcon display. This then allows + all the bootup messages to be displayed correctly. + + video_x / video_y + This describes the character position of cursor on VGA console, and + is otherwise unused. (should not be used for other console types, and + should not be used for other purposes). + + memc_control_reg + MEMC chip control register for Acorn Archimedes and Acorn A5000 + based machines. May be used differently by different architectures. + + sounddefault + Default sound setting on Acorn machines. May be used differently by + different architectures. + + adfsdrives + Number of ADFS/MFM disks. May be used differently by different + architectures. + + bytes_per_char_h / bytes_per_char_v + These are now obsolete, and should not be used. + + pages_in_bank[4] + Number of pages in each bank of the systems memory (used for RiscPC). + This is intended to be used on systems where the physical memory + is non-contiguous from the processors point of view. + + pages_in_vram + Number of pages in VRAM (used on Acorn RiscPC). This value may also + be used by loaders if the size of the video RAM can't be obtained + from the hardware. + + initrd_start / initrd_size + This describes the kernel virtual start address and size of the + initial ramdisk. + + rd_start + Start address in sectors of the ramdisk image on a floppy disk. + + system_rev + system revision number. + + system_serial_low / system_serial_high + system 64-bit serial number + + mem_fclk_21285 + The speed of the external oscillator to the 21285 (footbridge), + which control's the speed of the memory bus, timer & serial port. + Depending upon the speed of the cpu its value can be between + 0-66 MHz. If no params are passed or a value of zero is passed, + then a value of 50 Mhz is the default on 21285 architectures. + + paths[8][128] + These are now obsolete, and should not be used. + + commandline + Kernel command line parameters. Details can be found elsewhere. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/sunxi.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/sunxi.rst index 9ed853d4b..b85d1e2f2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/sunxi.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm/sunxi.rst @@ -1,170 +1,170 @@ -================== -ARM Allwinner SoCs -================== - -This document lists all the ARM Allwinner SoCs that are currently -supported in mainline by the Linux kernel. This document will also -provide links to documentation and/or datasheet for these SoCs. - -SunXi family ------------- - Linux kernel mach directory: arch/arm/mach-sunxi - - Flavors: - - * ARM926 based SoCs - - Allwinner F20 (sun3i) - - * Not Supported - - * ARM Cortex-A8 based SoCs - - Allwinner A10 (sun4i) - - * Datasheet - - http://dl.linux-sunxi.org/A10/A10%20Datasheet%20-%20v1.21%20%282012-04-06%29.pdf - * User Manual - - http://dl.linux-sunxi.org/A10/A10%20User%20Manual%20-%20v1.20%20%282012-04-09%2c%20DECRYPTED%29.pdf - - - Allwinner A10s (sun5i) - - * Datasheet - - http://dl.linux-sunxi.org/A10s/A10s%20Datasheet%20-%20v1.20%20%282012-03-27%29.pdf - - - Allwinner A13 / R8 (sun5i) - - * Datasheet - - http://dl.linux-sunxi.org/A13/A13%20Datasheet%20-%20v1.12%20%282012-03-29%29.pdf - * User Manual - - http://dl.linux-sunxi.org/A13/A13%20User%20Manual%20-%20v1.2%20%282013-01-08%29.pdf - - - Next Thing Co GR8 (sun5i) - - * Single ARM Cortex-A7 based SoCs - - Allwinner V3s (sun8i) - - * Datasheet - - http://linux-sunxi.org/File:Allwinner_V3s_Datasheet_V1.0.pdf - - * Dual ARM Cortex-A7 based SoCs - - Allwinner A20 (sun7i) - - * User Manual - - http://dl.linux-sunxi.org/A20/A20%20User%20Manual%202013-03-22.pdf - - - Allwinner A23 (sun8i) - - * Datasheet - - http://dl.linux-sunxi.org/A23/A23%20Datasheet%20V1.0%2020130830.pdf - - * User Manual - - http://dl.linux-sunxi.org/A23/A23%20User%20Manual%20V1.0%2020130830.pdf - - * Quad ARM Cortex-A7 based SoCs - - Allwinner A31 (sun6i) - - * Datasheet - - http://dl.linux-sunxi.org/A31/A3x_release_document/A31/IC/A31%20datasheet%20V1.3%2020131106.pdf - - * User Manual - - http://dl.linux-sunxi.org/A31/A3x_release_document/A31/IC/A31%20user%20manual%20V1.1%2020130630.pdf - - - Allwinner A31s (sun6i) - - * Datasheet - - http://dl.linux-sunxi.org/A31/A3x_release_document/A31s/IC/A31s%20datasheet%20V1.3%2020131106.pdf - - * User Manual - - http://dl.linux-sunxi.org/A31/A3x_release_document/A31s/IC/A31s%20User%20Manual%20%20V1.0%2020130322.pdf - - - Allwinner A33 (sun8i) - - * Datasheet - - http://dl.linux-sunxi.org/A33/A33%20Datasheet%20release%201.1.pdf - - * User Manual - - http://dl.linux-sunxi.org/A33/A33%20user%20manual%20release%201.1.pdf - - - Allwinner H2+ (sun8i) - - * No document available now, but is known to be working properly with - H3 drivers and memory map. - - - Allwinner H3 (sun8i) - - * Datasheet - - https://linux-sunxi.org/images/4/4b/Allwinner_H3_Datasheet_V1.2.pdf - - - Allwinner R40 (sun8i) - - * Datasheet - - https://github.com/tinalinux/docs/raw/r40-v1.y/R40_Datasheet_V1.0.pdf - - * User Manual - - https://github.com/tinalinux/docs/raw/r40-v1.y/Allwinner_R40_User_Manual_V1.0.pdf - - * Quad ARM Cortex-A15, Quad ARM Cortex-A7 based SoCs - - Allwinner A80 - - * Datasheet - - http://dl.linux-sunxi.org/A80/A80_Datasheet_Revision_1.0_0404.pdf - - * Octa ARM Cortex-A7 based SoCs - - Allwinner A83T - - * Datasheet - - https://github.com/allwinner-zh/documents/raw/master/A83T/A83T_Datasheet_v1.3_20150510.pdf - - * User Manual - - https://github.com/allwinner-zh/documents/raw/master/A83T/A83T_User_Manual_v1.5.1_20150513.pdf - - * Quad ARM Cortex-A53 based SoCs - - Allwinner A64 - - * Datasheet - - http://dl.linux-sunxi.org/A64/A64_Datasheet_V1.1.pdf - - * User Manual - - http://dl.linux-sunxi.org/A64/Allwinner%20A64%20User%20Manual%20v1.0.pdf - - - Allwinner H6 - - * Datasheet - - https://linux-sunxi.org/images/5/5c/Allwinner_H6_V200_Datasheet_V1.1.pdf - - * User Manual - - https://linux-sunxi.org/images/4/46/Allwinner_H6_V200_User_Manual_V1.1.pdf - - - Allwinner H616 - - * Datasheet - - https://linux-sunxi.org/images/b/b9/H616_Datasheet_V1.0_cleaned.pdf - - * User Manual - - https://linux-sunxi.org/images/2/24/H616_User_Manual_V1.0_cleaned.pdf +================== +ARM Allwinner SoCs +================== + +This document lists all the ARM Allwinner SoCs that are currently +supported in mainline by the Linux kernel. This document will also +provide links to documentation and/or datasheet for these SoCs. + +SunXi family +------------ + Linux kernel mach directory: arch/arm/mach-sunxi + + Flavors: + + * ARM926 based SoCs + - Allwinner F20 (sun3i) + + * Not Supported + + * ARM Cortex-A8 based SoCs + - Allwinner A10 (sun4i) + + * Datasheet + + http://dl.linux-sunxi.org/A10/A10%20Datasheet%20-%20v1.21%20%282012-04-06%29.pdf + * User Manual + + http://dl.linux-sunxi.org/A10/A10%20User%20Manual%20-%20v1.20%20%282012-04-09%2c%20DECRYPTED%29.pdf + + - Allwinner A10s (sun5i) + + * Datasheet + + http://dl.linux-sunxi.org/A10s/A10s%20Datasheet%20-%20v1.20%20%282012-03-27%29.pdf + + - Allwinner A13 / R8 (sun5i) + + * Datasheet + + http://dl.linux-sunxi.org/A13/A13%20Datasheet%20-%20v1.12%20%282012-03-29%29.pdf + * User Manual + + http://dl.linux-sunxi.org/A13/A13%20User%20Manual%20-%20v1.2%20%282013-01-08%29.pdf + + - Next Thing Co GR8 (sun5i) + + * Single ARM Cortex-A7 based SoCs + - Allwinner V3s (sun8i) + + * Datasheet + + http://linux-sunxi.org/File:Allwinner_V3s_Datasheet_V1.0.pdf + + * Dual ARM Cortex-A7 based SoCs + - Allwinner A20 (sun7i) + + * User Manual + + http://dl.linux-sunxi.org/A20/A20%20User%20Manual%202013-03-22.pdf + + - Allwinner A23 (sun8i) + + * Datasheet + + http://dl.linux-sunxi.org/A23/A23%20Datasheet%20V1.0%2020130830.pdf + + * User Manual + + http://dl.linux-sunxi.org/A23/A23%20User%20Manual%20V1.0%2020130830.pdf + + * Quad ARM Cortex-A7 based SoCs + - Allwinner A31 (sun6i) + + * Datasheet + + http://dl.linux-sunxi.org/A31/A3x_release_document/A31/IC/A31%20datasheet%20V1.3%2020131106.pdf + + * User Manual + + http://dl.linux-sunxi.org/A31/A3x_release_document/A31/IC/A31%20user%20manual%20V1.1%2020130630.pdf + + - Allwinner A31s (sun6i) + + * Datasheet + + http://dl.linux-sunxi.org/A31/A3x_release_document/A31s/IC/A31s%20datasheet%20V1.3%2020131106.pdf + + * User Manual + + http://dl.linux-sunxi.org/A31/A3x_release_document/A31s/IC/A31s%20User%20Manual%20%20V1.0%2020130322.pdf + + - Allwinner A33 (sun8i) + + * Datasheet + + http://dl.linux-sunxi.org/A33/A33%20Datasheet%20release%201.1.pdf + + * User Manual + + http://dl.linux-sunxi.org/A33/A33%20user%20manual%20release%201.1.pdf + + - Allwinner H2+ (sun8i) + + * No document available now, but is known to be working properly with + H3 drivers and memory map. + + - Allwinner H3 (sun8i) + + * Datasheet + + https://linux-sunxi.org/images/4/4b/Allwinner_H3_Datasheet_V1.2.pdf + + - Allwinner R40 (sun8i) + + * Datasheet + + https://github.com/tinalinux/docs/raw/r40-v1.y/R40_Datasheet_V1.0.pdf + + * User Manual + + https://github.com/tinalinux/docs/raw/r40-v1.y/Allwinner_R40_User_Manual_V1.0.pdf + + * Quad ARM Cortex-A15, Quad ARM Cortex-A7 based SoCs + - Allwinner A80 + + * Datasheet + + http://dl.linux-sunxi.org/A80/A80_Datasheet_Revision_1.0_0404.pdf + + * Octa ARM Cortex-A7 based SoCs + - Allwinner A83T + + * Datasheet + + https://github.com/allwinner-zh/documents/raw/master/A83T/A83T_Datasheet_v1.3_20150510.pdf + + * User Manual + + https://github.com/allwinner-zh/documents/raw/master/A83T/A83T_User_Manual_v1.5.1_20150513.pdf + + * Quad ARM Cortex-A53 based SoCs + - Allwinner A64 + + * Datasheet + + http://dl.linux-sunxi.org/A64/A64_Datasheet_V1.1.pdf + + * User Manual + + http://dl.linux-sunxi.org/A64/Allwinner%20A64%20User%20Manual%20v1.0.pdf + + - Allwinner H6 + + * Datasheet + + https://linux-sunxi.org/images/5/5c/Allwinner_H6_V200_Datasheet_V1.1.pdf + + * User Manual + + https://linux-sunxi.org/images/4/46/Allwinner_H6_V200_User_Manual_V1.1.pdf + + - Allwinner H616 + + * Datasheet + + https://linux-sunxi.org/images/b/b9/H616_Datasheet_V1.0_cleaned.pdf + + * User Manual + + https://linux-sunxi.org/images/2/24/H616_User_Manual_V1.0_cleaned.pdf diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm64/amu.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm64/amu.rst index f282e612a..01f2de2b0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm64/amu.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm64/amu.rst @@ -1,119 +1,119 @@ -.. _amu_index: - -======================================================= -Activity Monitors Unit (AMU) extension in AArch64 Linux -======================================================= - -Author: Ionela Voinescu - -Date: 2019-09-10 - -This document briefly describes the provision of Activity Monitors Unit -support in AArch64 Linux. - - -Architecture overview ---------------------- - -The activity monitors extension is an optional extension introduced by the -ARMv8.4 CPU architecture. - -The activity monitors unit, implemented in each CPU, provides performance -counters intended for system management use. The AMU extension provides a -system register interface to the counter registers and also supports an -optional external memory-mapped interface. - -Version 1 of the Activity Monitors architecture implements a counter group -of four fixed and architecturally defined 64-bit event counters. - - - CPU cycle counter: increments at the frequency of the CPU. - - Constant counter: increments at the fixed frequency of the system - clock. - - Instructions retired: increments with every architecturally executed - instruction. - - Memory stall cycles: counts instruction dispatch stall cycles caused by - misses in the last level cache within the clock domain. - -When in WFI or WFE these counters do not increment. - -The Activity Monitors architecture provides space for up to 16 architected -event counters. Future versions of the architecture may use this space to -implement additional architected event counters. - -Additionally, version 1 implements a counter group of up to 16 auxiliary -64-bit event counters. - -On cold reset all counters reset to 0. - - -Basic support -------------- - -The kernel can safely run a mix of CPUs with and without support for the -activity monitors extension. Therefore, when CONFIG_ARM64_AMU_EXTN is -selected we unconditionally enable the capability to allow any late CPU -(secondary or hotplugged) to detect and use the feature. - -When the feature is detected on a CPU, we flag the availability of the -feature but this does not guarantee the correct functionality of the -counters, only the presence of the extension. - -Firmware (code running at higher exception levels, e.g. arm-tf) support is -needed to: - - - Enable access for lower exception levels (EL2 and EL1) to the AMU - registers. - - Enable the counters. If not enabled these will read as 0. - - Save/restore the counters before/after the CPU is being put/brought up - from the 'off' power state. - -When using kernels that have this feature enabled but boot with broken -firmware the user may experience panics or lockups when accessing the -counter registers. Even if these symptoms are not observed, the values -returned by the register reads might not correctly reflect reality. Most -commonly, the counters will read as 0, indicating that they are not -enabled. - -If proper support is not provided in firmware it's best to disable -CONFIG_ARM64_AMU_EXTN. To be noted that for security reasons, this does not -bypass the setting of AMUSERENR_EL0 to trap accesses from EL0 (userspace) to -EL1 (kernel). Therefore, firmware should still ensure accesses to AMU registers -are not trapped in EL2/EL3. - -The fixed counters of AMUv1 are accessible though the following system -register definitions: - - - SYS_AMEVCNTR0_CORE_EL0 - - SYS_AMEVCNTR0_CONST_EL0 - - SYS_AMEVCNTR0_INST_RET_EL0 - - SYS_AMEVCNTR0_MEM_STALL_EL0 - -Auxiliary platform specific counters can be accessed using -SYS_AMEVCNTR1_EL0(n), where n is a value between 0 and 15. - -Details can be found in: arch/arm64/include/asm/sysreg.h. - - -Userspace access ----------------- - -Currently, access from userspace to the AMU registers is disabled due to: - - - Security reasons: they might expose information about code executed in - secure mode. - - Purpose: AMU counters are intended for system management use. - -Also, the presence of the feature is not visible to userspace. - - -Virtualization --------------- - -Currently, access from userspace (EL0) and kernelspace (EL1) on the KVM -guest side is disabled due to: - - - Security reasons: they might expose information about code executed - by other guests or the host. - -Any attempt to access the AMU registers will result in an UNDEFINED -exception being injected into the guest. +.. _amu_index: + +======================================================= +Activity Monitors Unit (AMU) extension in AArch64 Linux +======================================================= + +Author: Ionela Voinescu + +Date: 2019-09-10 + +This document briefly describes the provision of Activity Monitors Unit +support in AArch64 Linux. + + +Architecture overview +--------------------- + +The activity monitors extension is an optional extension introduced by the +ARMv8.4 CPU architecture. + +The activity monitors unit, implemented in each CPU, provides performance +counters intended for system management use. The AMU extension provides a +system register interface to the counter registers and also supports an +optional external memory-mapped interface. + +Version 1 of the Activity Monitors architecture implements a counter group +of four fixed and architecturally defined 64-bit event counters. + + - CPU cycle counter: increments at the frequency of the CPU. + - Constant counter: increments at the fixed frequency of the system + clock. + - Instructions retired: increments with every architecturally executed + instruction. + - Memory stall cycles: counts instruction dispatch stall cycles caused by + misses in the last level cache within the clock domain. + +When in WFI or WFE these counters do not increment. + +The Activity Monitors architecture provides space for up to 16 architected +event counters. Future versions of the architecture may use this space to +implement additional architected event counters. + +Additionally, version 1 implements a counter group of up to 16 auxiliary +64-bit event counters. + +On cold reset all counters reset to 0. + + +Basic support +------------- + +The kernel can safely run a mix of CPUs with and without support for the +activity monitors extension. Therefore, when CONFIG_ARM64_AMU_EXTN is +selected we unconditionally enable the capability to allow any late CPU +(secondary or hotplugged) to detect and use the feature. + +When the feature is detected on a CPU, we flag the availability of the +feature but this does not guarantee the correct functionality of the +counters, only the presence of the extension. + +Firmware (code running at higher exception levels, e.g. arm-tf) support is +needed to: + + - Enable access for lower exception levels (EL2 and EL1) to the AMU + registers. + - Enable the counters. If not enabled these will read as 0. + - Save/restore the counters before/after the CPU is being put/brought up + from the 'off' power state. + +When using kernels that have this feature enabled but boot with broken +firmware the user may experience panics or lockups when accessing the +counter registers. Even if these symptoms are not observed, the values +returned by the register reads might not correctly reflect reality. Most +commonly, the counters will read as 0, indicating that they are not +enabled. + +If proper support is not provided in firmware it's best to disable +CONFIG_ARM64_AMU_EXTN. To be noted that for security reasons, this does not +bypass the setting of AMUSERENR_EL0 to trap accesses from EL0 (userspace) to +EL1 (kernel). Therefore, firmware should still ensure accesses to AMU registers +are not trapped in EL2/EL3. + +The fixed counters of AMUv1 are accessible though the following system +register definitions: + + - SYS_AMEVCNTR0_CORE_EL0 + - SYS_AMEVCNTR0_CONST_EL0 + - SYS_AMEVCNTR0_INST_RET_EL0 + - SYS_AMEVCNTR0_MEM_STALL_EL0 + +Auxiliary platform specific counters can be accessed using +SYS_AMEVCNTR1_EL0(n), where n is a value between 0 and 15. + +Details can be found in: arch/arm64/include/asm/sysreg.h. + + +Userspace access +---------------- + +Currently, access from userspace to the AMU registers is disabled due to: + + - Security reasons: they might expose information about code executed in + secure mode. + - Purpose: AMU counters are intended for system management use. + +Also, the presence of the feature is not visible to userspace. + + +Virtualization +-------------- + +Currently, access from userspace (EL0) and kernelspace (EL1) on the KVM +guest side is disabled due to: + + - Security reasons: they might expose information about code executed + by other guests or the host. + +Any attempt to access the AMU registers will result in an UNDEFINED +exception being injected into the guest. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm64/cpu-hotplug.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm64/cpu-hotplug.rst index 83882b2cc..8fb438bf7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm64/cpu-hotplug.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm64/cpu-hotplug.rst @@ -1,79 +1,79 @@ -.. SPDX-License-Identifier: GPL-2.0 -.. _cpuhp_index: - -==================== -CPU Hotplug and ACPI -==================== - -CPU hotplug in the arm64 world is commonly used to describe the kernel taking -CPUs online/offline using PSCI. This document is about ACPI firmware allowing -CPUs that were not available during boot to be added to the system later. - -``possible`` and ``present`` refer to the state of the CPU as seen by linux. - - -CPU Hotplug on physical systems - CPUs not present at boot ----------------------------------------------------------- - -Physical systems need to mark a CPU that is ``possible`` but not ``present`` as -being ``present``. An example would be a dual socket machine, where the package -in one of the sockets can be replaced while the system is running. - -This is not supported. - -In the arm64 world CPUs are not a single device but a slice of the system. -There are no systems that support the physical addition (or removal) of CPUs -while the system is running, and ACPI is not able to sufficiently describe -them. - -e.g. New CPUs come with new caches, but the platform's cache topology is -described in a static table, the PPTT. How caches are shared between CPUs is -not discoverable, and must be described by firmware. - -e.g. The GIC redistributor for each CPU must be accessed by the driver during -boot to discover the system wide supported features. ACPI's MADT GICC -structures can describe a redistributor associated with a disabled CPU, but -can't describe whether the redistributor is accessible, only that it is not -'always on'. - -arm64's ACPI tables assume that everything described is ``present``. - - -CPU Hotplug on virtual systems - CPUs not enabled at boot ---------------------------------------------------------- - -Virtual systems have the advantage that all the properties the system will -ever have can be described at boot. There are no power-domain considerations -as such devices are emulated. - -CPU Hotplug on virtual systems is supported. It is distinct from physical -CPU Hotplug as all resources are described as ``present``, but CPUs may be -marked as disabled by firmware. Only the CPU's online/offline behaviour is -influenced by firmware. An example is where a virtual machine boots with a -single CPU, and additional CPUs are added once a cloud orchestrator deploys -the workload. - -For a virtual machine, the VMM (e.g. Qemu) plays the part of firmware. - -Virtual hotplug is implemented as a firmware policy affecting which CPUs can be -brought online. Firmware can enforce its policy via PSCI's return codes. e.g. -``DENIED``. - -The ACPI tables must describe all the resources of the virtual machine. CPUs -that firmware wishes to disable either from boot (or later) should not be -``enabled`` in the MADT GICC structures, but should have the ``online capable`` -bit set, to indicate they can be enabled later. The boot CPU must be marked as -``enabled``. The 'always on' GICR structure must be used to describe the -redistributors. - -CPUs described as ``online capable`` but not ``enabled`` can be set to enabled -by the DSDT's Processor object's _STA method. On virtual systems the _STA method -must always report the CPU as ``present``. Changes to the firmware policy can -be notified to the OS via device-check or eject-request. - -CPUs described as ``enabled`` in the static table, should not have their _STA -modified dynamically by firmware. Soft-restart features such as kexec will -re-read the static properties of the system from these static tables, and -may malfunction if these no longer describe the running system. Linux will -re-discover the dynamic properties of the system from the _STA method later -during boot. +.. SPDX-License-Identifier: GPL-2.0 +.. _cpuhp_index: + +==================== +CPU Hotplug and ACPI +==================== + +CPU hotplug in the arm64 world is commonly used to describe the kernel taking +CPUs online/offline using PSCI. This document is about ACPI firmware allowing +CPUs that were not available during boot to be added to the system later. + +``possible`` and ``present`` refer to the state of the CPU as seen by linux. + + +CPU Hotplug on physical systems - CPUs not present at boot +---------------------------------------------------------- + +Physical systems need to mark a CPU that is ``possible`` but not ``present`` as +being ``present``. An example would be a dual socket machine, where the package +in one of the sockets can be replaced while the system is running. + +This is not supported. + +In the arm64 world CPUs are not a single device but a slice of the system. +There are no systems that support the physical addition (or removal) of CPUs +while the system is running, and ACPI is not able to sufficiently describe +them. + +e.g. New CPUs come with new caches, but the platform's cache topology is +described in a static table, the PPTT. How caches are shared between CPUs is +not discoverable, and must be described by firmware. + +e.g. The GIC redistributor for each CPU must be accessed by the driver during +boot to discover the system wide supported features. ACPI's MADT GICC +structures can describe a redistributor associated with a disabled CPU, but +can't describe whether the redistributor is accessible, only that it is not +'always on'. + +arm64's ACPI tables assume that everything described is ``present``. + + +CPU Hotplug on virtual systems - CPUs not enabled at boot +--------------------------------------------------------- + +Virtual systems have the advantage that all the properties the system will +ever have can be described at boot. There are no power-domain considerations +as such devices are emulated. + +CPU Hotplug on virtual systems is supported. It is distinct from physical +CPU Hotplug as all resources are described as ``present``, but CPUs may be +marked as disabled by firmware. Only the CPU's online/offline behaviour is +influenced by firmware. An example is where a virtual machine boots with a +single CPU, and additional CPUs are added once a cloud orchestrator deploys +the workload. + +For a virtual machine, the VMM (e.g. Qemu) plays the part of firmware. + +Virtual hotplug is implemented as a firmware policy affecting which CPUs can be +brought online. Firmware can enforce its policy via PSCI's return codes. e.g. +``DENIED``. + +The ACPI tables must describe all the resources of the virtual machine. CPUs +that firmware wishes to disable either from boot (or later) should not be +``enabled`` in the MADT GICC structures, but should have the ``online capable`` +bit set, to indicate they can be enabled later. The boot CPU must be marked as +``enabled``. The 'always on' GICR structure must be used to describe the +redistributors. + +CPUs described as ``online capable`` but not ``enabled`` can be set to enabled +by the DSDT's Processor object's _STA method. On virtual systems the _STA method +must always report the CPU as ``present``. Changes to the firmware policy can +be notified to the OS via device-check or eject-request. + +CPUs described as ``enabled`` in the static table, should not have their _STA +modified dynamically by firmware. Soft-restart features such as kexec will +re-read the static properties of the system from these static tables, and +may malfunction if these no longer describe the running system. Linux will +re-discover the dynamic properties of the system from the _STA method later +during boot. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm64/kdump.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm64/kdump.rst index a6c2314cd..56a89f45d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm64/kdump.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/arm64/kdump.rst @@ -1,92 +1,92 @@ -======================================= -crashkernel memory reservation on arm64 -======================================= - -Author: Baoquan He - -Kdump mechanism is used to capture a corrupted kernel vmcore so that -it can be subsequently analyzed. In order to do this, a preliminarily -reserved memory is needed to pre-load the kdump kernel and boot such -kernel if corruption happens. - -That reserved memory for kdump is adapted to be able to minimally -accommodate the kdump kernel and the user space programs needed for the -vmcore collection. - -Kernel parameter -================ - -Through the kernel parameters below, memory can be reserved accordingly -during the early stage of the first kernel booting so that a continuous -large chunk of memomy can be found. The low memory reservation needs to -be considered if the crashkernel is reserved from the high memory area. - -- crashkernel=size@offset -- crashkernel=size -- crashkernel=size,high crashkernel=size,low - -Low memory and high memory -========================== - -For kdump reservations, low memory is the memory area under a specific -limit, usually decided by the accessible address bits of the DMA-capable -devices needed by the kdump kernel to run. Those devices not related to -vmcore dumping can be ignored. On arm64, the low memory upper bound is -not fixed: it is 1G on the RPi4 platform but 4G on most other systems. -On special kernels built with CONFIG_ZONE_(DMA|DMA32) disabled, the -whole system RAM is low memory. Outside of the low memory described -above, the rest of system RAM is considered high memory. - -Implementation -============== - -1) crashkernel=size@offset --------------------------- - -The crashkernel memory must be reserved at the user-specified region or -fail if already occupied. - - -2) crashkernel=size -------------------- - -The crashkernel memory region will be reserved in any available position -according to the search order: - -Firstly, the kernel searches the low memory area for an available region -with the specified size. - -If searching for low memory fails, the kernel falls back to searching -the high memory area for an available region of the specified size. If -the reservation in high memory succeeds, a default size reservation in -the low memory will be done. Currently the default size is 128M, -sufficient for the low memory needs of the kdump kernel. - -Note: crashkernel=size is the recommended option for crashkernel kernel -reservations. The user would not need to know the system memory layout -for a specific platform. - -3) crashkernel=size,high crashkernel=size,low ---------------------------------------------- - -crashkernel=size,(high|low) are an important supplement to -crashkernel=size. They allows the user to specify how much memory needs -to be allocated from the high memory and low memory respectively. On -many systems the low memory is precious and crashkernel reservations -from this area should be kept to a minimum. - -To reserve memory for crashkernel=size,high, searching is first -attempted from the high memory region. If the reservation succeeds, the -low memory reservation will be done subsequently. - -If reservation from the high memory failed, the kernel falls back to -searching the low memory with the specified size in crashkernel=,high. -If it succeeds, no further reservation for low memory is needed. - -Notes: - -- If crashkernel=,low is not specified, the default low memory - reservation will be done automatically. - -- if crashkernel=0,low is specified, it means that the low memory - reservation is omitted intentionally. +======================================= +crashkernel memory reservation on arm64 +======================================= + +Author: Baoquan He + +Kdump mechanism is used to capture a corrupted kernel vmcore so that +it can be subsequently analyzed. In order to do this, a preliminarily +reserved memory is needed to pre-load the kdump kernel and boot such +kernel if corruption happens. + +That reserved memory for kdump is adapted to be able to minimally +accommodate the kdump kernel and the user space programs needed for the +vmcore collection. + +Kernel parameter +================ + +Through the kernel parameters below, memory can be reserved accordingly +during the early stage of the first kernel booting so that a continuous +large chunk of memomy can be found. The low memory reservation needs to +be considered if the crashkernel is reserved from the high memory area. + +- crashkernel=size@offset +- crashkernel=size +- crashkernel=size,high crashkernel=size,low + +Low memory and high memory +========================== + +For kdump reservations, low memory is the memory area under a specific +limit, usually decided by the accessible address bits of the DMA-capable +devices needed by the kdump kernel to run. Those devices not related to +vmcore dumping can be ignored. On arm64, the low memory upper bound is +not fixed: it is 1G on the RPi4 platform but 4G on most other systems. +On special kernels built with CONFIG_ZONE_(DMA|DMA32) disabled, the +whole system RAM is low memory. Outside of the low memory described +above, the rest of system RAM is considered high memory. + +Implementation +============== + +1) crashkernel=size@offset +-------------------------- + +The crashkernel memory must be reserved at the user-specified region or +fail if already occupied. + + +2) crashkernel=size +------------------- + +The crashkernel memory region will be reserved in any available position +according to the search order: + +Firstly, the kernel searches the low memory area for an available region +with the specified size. + +If searching for low memory fails, the kernel falls back to searching +the high memory area for an available region of the specified size. If +the reservation in high memory succeeds, a default size reservation in +the low memory will be done. Currently the default size is 128M, +sufficient for the low memory needs of the kdump kernel. + +Note: crashkernel=size is the recommended option for crashkernel kernel +reservations. The user would not need to know the system memory layout +for a specific platform. + +3) crashkernel=size,high crashkernel=size,low +--------------------------------------------- + +crashkernel=size,(high|low) are an important supplement to +crashkernel=size. They allows the user to specify how much memory needs +to be allocated from the high memory and low memory respectively. On +many systems the low memory is precious and crashkernel reservations +from this area should be kept to a minimum. + +To reserve memory for crashkernel=size,high, searching is first +attempted from the high memory region. If the reservation succeeds, the +low memory reservation will be done subsequently. + +If reservation from the high memory failed, the kernel falls back to +searching the low memory with the specified size in crashkernel=,high. +If it succeeds, no further reservation for low memory is needed. + +Notes: + +- If crashkernel=,low is not specified, the default low memory + reservation will be done automatically. + +- if crashkernel=0,low is specified, it means that the low memory + reservation is omitted intentionally. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/openrisc/openrisc_port.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/openrisc/openrisc_port.rst index e49211218..1565b9546 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/openrisc/openrisc_port.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/openrisc/openrisc_port.rst @@ -1,121 +1,121 @@ -============== -OpenRISC Linux -============== - -This is a port of Linux to the OpenRISC class of microprocessors; the initial -target architecture, specifically, is the 32-bit OpenRISC 1000 family (or1k). - -For information about OpenRISC processors and ongoing development: - - ======= ============================= - website https://openrisc.io - email openrisc@lists.librecores.org - ======= ============================= - ---------------------------------------------------------------------- - -Build instructions for OpenRISC toolchain and Linux -=================================================== - -In order to build and run Linux for OpenRISC, you'll need at least a basic -toolchain and, perhaps, the architectural simulator. Steps to get these bits -in place are outlined here. - -1) Toolchain - -Toolchain binaries can be obtained from openrisc.io or our github releases page. -Instructions for building the different toolchains can be found on openrisc.io -or Stafford's toolchain build and release scripts. - - ========== ================================================= - binaries https://github.com/openrisc/or1k-gcc/releases - toolchains https://openrisc.io/software - building https://github.com/stffrdhrn/or1k-toolchain-build - ========== ================================================= - -2) Building - -Build the Linux kernel as usual:: - - make ARCH=openrisc CROSS_COMPILE="or1k-linux-" defconfig - make ARCH=openrisc CROSS_COMPILE="or1k-linux-" - -3) Running on FPGA (optional) - -The OpenRISC community typically uses FuseSoC to manage building and programming -an SoC into an FPGA. The below is an example of programming a De0 Nano -development board with the OpenRISC SoC. During the build FPGA RTL is code -downloaded from the FuseSoC IP cores repository and built using the FPGA vendor -tools. Binaries are loaded onto the board with openocd. - -:: - - git clone https://github.com/olofk/fusesoc - cd fusesoc - sudo pip install -e . - - fusesoc init - fusesoc build de0_nano - fusesoc pgm de0_nano - - openocd -f interface/altera-usb-blaster.cfg \ - -f board/or1k_generic.cfg - - telnet localhost 4444 - > init - > halt; load_image vmlinux ; reset - -4) Running on a Simulator (optional) - -QEMU is a processor emulator which we recommend for simulating the OpenRISC -platform. Please follow the OpenRISC instructions on the QEMU website to get -Linux running on QEMU. You can build QEMU yourself, but your Linux distribution -likely provides binary packages to support OpenRISC. - - ============= ====================================================== - qemu openrisc https://wiki.qemu.org/Documentation/Platforms/OpenRISC - ============= ====================================================== - ---------------------------------------------------------------------- - -Terminology -=========== - -In the code, the following particles are used on symbols to limit the scope -to more or less specific processor implementations: - -========= ======================================= -openrisc: the OpenRISC class of processors -or1k: the OpenRISC 1000 family of processors -or1200: the OpenRISC 1200 processor -========= ======================================= - ---------------------------------------------------------------------- - -History -======== - -18-11-2003 Matjaz Breskvar (phoenix@bsemi.com) - initial port of linux to OpenRISC/or32 architecture. - all the core stuff is implemented and seams usable. - -08-12-2003 Matjaz Breskvar (phoenix@bsemi.com) - complete change of TLB miss handling. - rewrite of exceptions handling. - fully functional sash-3.6 in default initrd. - a much improved version with changes all around. - -10-04-2004 Matjaz Breskvar (phoenix@bsemi.com) - a lot of bugfixes all over. - ethernet support, functional http and telnet servers. - running many standard linux apps. - -26-06-2004 Matjaz Breskvar (phoenix@bsemi.com) - port to 2.6.x - -30-11-2004 Matjaz Breskvar (phoenix@bsemi.com) - lots of bugfixes and enhancements. - added opencores framebuffer driver. - -09-10-2010 Jonas Bonn (jonas@southpole.se) - major rewrite to bring up to par with upstream Linux 2.6.36 +============== +OpenRISC Linux +============== + +This is a port of Linux to the OpenRISC class of microprocessors; the initial +target architecture, specifically, is the 32-bit OpenRISC 1000 family (or1k). + +For information about OpenRISC processors and ongoing development: + + ======= ============================= + website https://openrisc.io + email openrisc@lists.librecores.org + ======= ============================= + +--------------------------------------------------------------------- + +Build instructions for OpenRISC toolchain and Linux +=================================================== + +In order to build and run Linux for OpenRISC, you'll need at least a basic +toolchain and, perhaps, the architectural simulator. Steps to get these bits +in place are outlined here. + +1) Toolchain + +Toolchain binaries can be obtained from openrisc.io or our github releases page. +Instructions for building the different toolchains can be found on openrisc.io +or Stafford's toolchain build and release scripts. + + ========== ================================================= + binaries https://github.com/openrisc/or1k-gcc/releases + toolchains https://openrisc.io/software + building https://github.com/stffrdhrn/or1k-toolchain-build + ========== ================================================= + +2) Building + +Build the Linux kernel as usual:: + + make ARCH=openrisc CROSS_COMPILE="or1k-linux-" defconfig + make ARCH=openrisc CROSS_COMPILE="or1k-linux-" + +3) Running on FPGA (optional) + +The OpenRISC community typically uses FuseSoC to manage building and programming +an SoC into an FPGA. The below is an example of programming a De0 Nano +development board with the OpenRISC SoC. During the build FPGA RTL is code +downloaded from the FuseSoC IP cores repository and built using the FPGA vendor +tools. Binaries are loaded onto the board with openocd. + +:: + + git clone https://github.com/olofk/fusesoc + cd fusesoc + sudo pip install -e . + + fusesoc init + fusesoc build de0_nano + fusesoc pgm de0_nano + + openocd -f interface/altera-usb-blaster.cfg \ + -f board/or1k_generic.cfg + + telnet localhost 4444 + > init + > halt; load_image vmlinux ; reset + +4) Running on a Simulator (optional) + +QEMU is a processor emulator which we recommend for simulating the OpenRISC +platform. Please follow the OpenRISC instructions on the QEMU website to get +Linux running on QEMU. You can build QEMU yourself, but your Linux distribution +likely provides binary packages to support OpenRISC. + + ============= ====================================================== + qemu openrisc https://wiki.qemu.org/Documentation/Platforms/OpenRISC + ============= ====================================================== + +--------------------------------------------------------------------- + +Terminology +=========== + +In the code, the following particles are used on symbols to limit the scope +to more or less specific processor implementations: + +========= ======================================= +openrisc: the OpenRISC class of processors +or1k: the OpenRISC 1000 family of processors +or1200: the OpenRISC 1200 processor +========= ======================================= + +--------------------------------------------------------------------- + +History +======== + +18-11-2003 Matjaz Breskvar (phoenix@bsemi.com) + initial port of linux to OpenRISC/or32 architecture. + all the core stuff is implemented and seams usable. + +08-12-2003 Matjaz Breskvar (phoenix@bsemi.com) + complete change of TLB miss handling. + rewrite of exceptions handling. + fully functional sash-3.6 in default initrd. + a much improved version with changes all around. + +10-04-2004 Matjaz Breskvar (phoenix@bsemi.com) + a lot of bugfixes all over. + ethernet support, functional http and telnet servers. + running many standard linux apps. + +26-06-2004 Matjaz Breskvar (phoenix@bsemi.com) + port to 2.6.x + +30-11-2004 Matjaz Breskvar (phoenix@bsemi.com) + lots of bugfixes and enhancements. + added opencores framebuffer driver. + +09-10-2010 Jonas Bonn (jonas@southpole.se) + major rewrite to bring up to par with upstream Linux 2.6.36 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/powerpc/dawr-power9.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/powerpc/dawr-power9.rst index 5f0fd43ef..310f2e0ce 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/powerpc/dawr-power9.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/powerpc/dawr-power9.rst @@ -1,101 +1,101 @@ -===================== -DAWR issues on POWER9 -===================== - -On older POWER9 processors, the Data Address Watchpoint Register (DAWR) can -cause a checkstop if it points to cache inhibited (CI) memory. Currently Linux -has no way to distinguish CI memory when configuring the DAWR, so on affected -systems, the DAWR is disabled. - -Affected processor revisions -============================ - -This issue is only present on processors prior to v2.3. The revision can be -found in /proc/cpuinfo:: - - processor : 0 - cpu : POWER9, altivec supported - clock : 3800.000000MHz - revision : 2.3 (pvr 004e 1203) - -On a system with the issue, the DAWR is disabled as detailed below. - -Technical Details: -================== - -DAWR has 6 different ways of being set. -1) ptrace -2) h_set_mode(DAWR) -3) h_set_dabr() -4) kvmppc_set_one_reg() -5) xmon - -For ptrace, we now advertise zero breakpoints on POWER9 via the -PPC_PTRACE_GETHWDBGINFO call. This results in GDB falling back to -software emulation of the watchpoint (which is slow). - -h_set_mode(DAWR) and h_set_dabr() will now return an error to the -guest on a POWER9 host. Current Linux guests ignore this error, so -they will silently not get the DAWR. - -kvmppc_set_one_reg() will store the value in the vcpu but won't -actually set it on POWER9 hardware. This is done so we don't break -migration from POWER8 to POWER9, at the cost of silently losing the -DAWR on the migration. - -For xmon, the 'bd' command will return an error on P9. - -Consequences for users -====================== - -For GDB watchpoints (ie 'watch' command) on POWER9 bare metal , GDB -will accept the command. Unfortunately since there is no hardware -support for the watchpoint, GDB will software emulate the watchpoint -making it run very slowly. - -The same will also be true for any guests started on a POWER9 -host. The watchpoint will fail and GDB will fall back to software -emulation. - -If a guest is started on a POWER8 host, GDB will accept the watchpoint -and configure the hardware to use the DAWR. This will run at full -speed since it can use the hardware emulation. Unfortunately if this -guest is migrated to a POWER9 host, the watchpoint will be lost on the -POWER9. Loads and stores to the watchpoint locations will not be -trapped in GDB. The watchpoint is remembered, so if the guest is -migrated back to the POWER8 host, it will start working again. - -Force enabling the DAWR -======================= -Kernels (since ~v5.2) have an option to force enable the DAWR via:: - - echo Y > /sys/kernel/debug/powerpc/dawr_enable_dangerous - -This enables the DAWR even on POWER9. - -This is a dangerous setting, USE AT YOUR OWN RISK. - -Some users may not care about a bad user crashing their box -(ie. single user/desktop systems) and really want the DAWR. This -allows them to force enable DAWR. - -This flag can also be used to disable DAWR access. Once this is -cleared, all DAWR access should be cleared immediately and your -machine once again safe from crashing. - -Userspace may get confused by toggling this. If DAWR is force -enabled/disabled between getting the number of breakpoints (via -PTRACE_GETHWDBGINFO) and setting the breakpoint, userspace will get an -inconsistent view of what's available. Similarly for guests. - -For the DAWR to be enabled in a KVM guest, the DAWR needs to be force -enabled in the host AND the guest. For this reason, this won't work on -POWERVM as it doesn't allow the HCALL to work. Writes of 'Y' to the -dawr_enable_dangerous file will fail if the hypervisor doesn't support -writing the DAWR. - -To double check the DAWR is working, run this kernel selftest: - - tools/testing/selftests/powerpc/ptrace/ptrace-hwbreak.c - -Any errors/failures/skips mean something is wrong. +===================== +DAWR issues on POWER9 +===================== + +On older POWER9 processors, the Data Address Watchpoint Register (DAWR) can +cause a checkstop if it points to cache inhibited (CI) memory. Currently Linux +has no way to distinguish CI memory when configuring the DAWR, so on affected +systems, the DAWR is disabled. + +Affected processor revisions +============================ + +This issue is only present on processors prior to v2.3. The revision can be +found in /proc/cpuinfo:: + + processor : 0 + cpu : POWER9, altivec supported + clock : 3800.000000MHz + revision : 2.3 (pvr 004e 1203) + +On a system with the issue, the DAWR is disabled as detailed below. + +Technical Details: +================== + +DAWR has 6 different ways of being set. +1) ptrace +2) h_set_mode(DAWR) +3) h_set_dabr() +4) kvmppc_set_one_reg() +5) xmon + +For ptrace, we now advertise zero breakpoints on POWER9 via the +PPC_PTRACE_GETHWDBGINFO call. This results in GDB falling back to +software emulation of the watchpoint (which is slow). + +h_set_mode(DAWR) and h_set_dabr() will now return an error to the +guest on a POWER9 host. Current Linux guests ignore this error, so +they will silently not get the DAWR. + +kvmppc_set_one_reg() will store the value in the vcpu but won't +actually set it on POWER9 hardware. This is done so we don't break +migration from POWER8 to POWER9, at the cost of silently losing the +DAWR on the migration. + +For xmon, the 'bd' command will return an error on P9. + +Consequences for users +====================== + +For GDB watchpoints (ie 'watch' command) on POWER9 bare metal , GDB +will accept the command. Unfortunately since there is no hardware +support for the watchpoint, GDB will software emulate the watchpoint +making it run very slowly. + +The same will also be true for any guests started on a POWER9 +host. The watchpoint will fail and GDB will fall back to software +emulation. + +If a guest is started on a POWER8 host, GDB will accept the watchpoint +and configure the hardware to use the DAWR. This will run at full +speed since it can use the hardware emulation. Unfortunately if this +guest is migrated to a POWER9 host, the watchpoint will be lost on the +POWER9. Loads and stores to the watchpoint locations will not be +trapped in GDB. The watchpoint is remembered, so if the guest is +migrated back to the POWER8 host, it will start working again. + +Force enabling the DAWR +======================= +Kernels (since ~v5.2) have an option to force enable the DAWR via:: + + echo Y > /sys/kernel/debug/powerpc/dawr_enable_dangerous + +This enables the DAWR even on POWER9. + +This is a dangerous setting, USE AT YOUR OWN RISK. + +Some users may not care about a bad user crashing their box +(ie. single user/desktop systems) and really want the DAWR. This +allows them to force enable DAWR. + +This flag can also be used to disable DAWR access. Once this is +cleared, all DAWR access should be cleared immediately and your +machine once again safe from crashing. + +Userspace may get confused by toggling this. If DAWR is force +enabled/disabled between getting the number of breakpoints (via +PTRACE_GETHWDBGINFO) and setting the breakpoint, userspace will get an +inconsistent view of what's available. Similarly for guests. + +For the DAWR to be enabled in a KVM guest, the DAWR needs to be force +enabled in the host AND the guest. For this reason, this won't work on +POWERVM as it doesn't allow the HCALL to work. Writes of 'Y' to the +dawr_enable_dangerous file will fail if the hypervisor doesn't support +writing the DAWR. + +To double check the DAWR is working, run this kernel selftest: + + tools/testing/selftests/powerpc/ptrace/ptrace-hwbreak.c + +Any errors/failures/skips mean something is wrong. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/powerpc/dscr.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/powerpc/dscr.rst index f93f72411..f735ec537 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/powerpc/dscr.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/powerpc/dscr.rst @@ -1,87 +1,87 @@ -=================================== -DSCR (Data Stream Control Register) -=================================== - -DSCR register in powerpc allows user to have some control of prefetch of data -stream in the processor. Please refer to the ISA documents or related manual -for more detailed information regarding how to use this DSCR to attain this -control of the prefetches . This document here provides an overview of kernel -support for DSCR, related kernel objects, its functionalities and exported -user interface. - -(A) Data Structures: - - (1) thread_struct:: - - dscr /* Thread DSCR value */ - dscr_inherit /* Thread has changed default DSCR */ - - (2) PACA:: - - dscr_default /* per-CPU DSCR default value */ - - (3) sysfs.c:: - - dscr_default /* System DSCR default value */ - -(B) Scheduler Changes: - - Scheduler will write the per-CPU DSCR default which is stored in the - CPU's PACA value into the register if the thread has dscr_inherit value - cleared which means that it has not changed the default DSCR till now. - If the dscr_inherit value is set which means that it has changed the - default DSCR value, scheduler will write the changed value which will - now be contained in thread struct's dscr into the register instead of - the per-CPU default PACA based DSCR value. - - NOTE: Please note here that the system wide global DSCR value never - gets used directly in the scheduler process context switch at all. - -(C) SYSFS Interface: - - - Global DSCR default: /sys/devices/system/cpu/dscr_default - - CPU specific DSCR default: /sys/devices/system/cpu/cpuN/dscr - - Changing the global DSCR default in the sysfs will change all the CPU - specific DSCR defaults immediately in their PACA structures. Again if - the current process has the dscr_inherit clear, it also writes the new - value into every CPU's DSCR register right away and updates the current - thread's DSCR value as well. - - Changing the CPU specific DSCR default value in the sysfs does exactly - the same thing as above but unlike the global one above, it just changes - stuff for that particular CPU instead for all the CPUs on the system. - -(D) User Space Instructions: - - The DSCR register can be accessed in the user space using any of these - two SPR numbers available for that purpose. - - (1) Problem state SPR: 0x03 (Un-privileged, POWER8 only) - (2) Privileged state SPR: 0x11 (Privileged) - - Accessing DSCR through privileged SPR number (0x11) from user space - works, as it is emulated following an illegal instruction exception - inside the kernel. Both mfspr and mtspr instructions are emulated. - - Accessing DSCR through user level SPR (0x03) from user space will first - create a facility unavailable exception. Inside this exception handler - all mfspr instruction based read attempts will get emulated and returned - where as the first mtspr instruction based write attempts will enable - the DSCR facility for the next time around (both for read and write) by - setting DSCR facility in the FSCR register. - -(E) Specifics about 'dscr_inherit': - - The thread struct element 'dscr_inherit' represents whether the thread - in question has attempted and changed the DSCR itself using any of the - following methods. This element signifies whether the thread wants to - use the CPU default DSCR value or its own changed DSCR value in the - kernel. - - (1) mtspr instruction (SPR number 0x03) - (2) mtspr instruction (SPR number 0x11) - (3) ptrace interface (Explicitly set user DSCR value) - - Any child of the process created after this event in the process inherits - this same behaviour as well. +=================================== +DSCR (Data Stream Control Register) +=================================== + +DSCR register in powerpc allows user to have some control of prefetch of data +stream in the processor. Please refer to the ISA documents or related manual +for more detailed information regarding how to use this DSCR to attain this +control of the prefetches . This document here provides an overview of kernel +support for DSCR, related kernel objects, its functionalities and exported +user interface. + +(A) Data Structures: + + (1) thread_struct:: + + dscr /* Thread DSCR value */ + dscr_inherit /* Thread has changed default DSCR */ + + (2) PACA:: + + dscr_default /* per-CPU DSCR default value */ + + (3) sysfs.c:: + + dscr_default /* System DSCR default value */ + +(B) Scheduler Changes: + + Scheduler will write the per-CPU DSCR default which is stored in the + CPU's PACA value into the register if the thread has dscr_inherit value + cleared which means that it has not changed the default DSCR till now. + If the dscr_inherit value is set which means that it has changed the + default DSCR value, scheduler will write the changed value which will + now be contained in thread struct's dscr into the register instead of + the per-CPU default PACA based DSCR value. + + NOTE: Please note here that the system wide global DSCR value never + gets used directly in the scheduler process context switch at all. + +(C) SYSFS Interface: + + - Global DSCR default: /sys/devices/system/cpu/dscr_default + - CPU specific DSCR default: /sys/devices/system/cpu/cpuN/dscr + + Changing the global DSCR default in the sysfs will change all the CPU + specific DSCR defaults immediately in their PACA structures. Again if + the current process has the dscr_inherit clear, it also writes the new + value into every CPU's DSCR register right away and updates the current + thread's DSCR value as well. + + Changing the CPU specific DSCR default value in the sysfs does exactly + the same thing as above but unlike the global one above, it just changes + stuff for that particular CPU instead for all the CPUs on the system. + +(D) User Space Instructions: + + The DSCR register can be accessed in the user space using any of these + two SPR numbers available for that purpose. + + (1) Problem state SPR: 0x03 (Un-privileged, POWER8 only) + (2) Privileged state SPR: 0x11 (Privileged) + + Accessing DSCR through privileged SPR number (0x11) from user space + works, as it is emulated following an illegal instruction exception + inside the kernel. Both mfspr and mtspr instructions are emulated. + + Accessing DSCR through user level SPR (0x03) from user space will first + create a facility unavailable exception. Inside this exception handler + all mfspr instruction based read attempts will get emulated and returned + where as the first mtspr instruction based write attempts will enable + the DSCR facility for the next time around (both for read and write) by + setting DSCR facility in the FSCR register. + +(E) Specifics about 'dscr_inherit': + + The thread struct element 'dscr_inherit' represents whether the thread + in question has attempted and changed the DSCR itself using any of the + following methods. This element signifies whether the thread wants to + use the CPU default DSCR value or its own changed DSCR value in the + kernel. + + (1) mtspr instruction (SPR number 0x03) + (2) mtspr instruction (SPR number 0x11) + (3) ptrace interface (Explicitly set user DSCR value) + + Any child of the process created after this event in the process inherits + this same behaviour as well. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/riscv/cmodx.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/riscv/cmodx.rst index 3f27751e2..8c48bcff3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/riscv/cmodx.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/riscv/cmodx.rst @@ -1,98 +1,98 @@ -.. SPDX-License-Identifier: GPL-2.0 - -============================================================================== -Concurrent Modification and Execution of Instructions (CMODX) for RISC-V Linux -============================================================================== - -CMODX is a programming technique where a program executes instructions that were -modified by the program itself. Instruction storage and the instruction cache -(icache) are not guaranteed to be synchronized on RISC-V hardware. Therefore, the -program must enforce its own synchronization with the unprivileged fence.i -instruction. - -However, the default Linux ABI prohibits the use of fence.i in userspace -applications. At any point the scheduler may migrate a task onto a new hart. If -migration occurs after the userspace synchronized the icache and instruction -storage with fence.i, the icache on the new hart will no longer be clean. This -is due to the behavior of fence.i only affecting the hart that it is called on. -Thus, the hart that the task has been migrated to may not have synchronized -instruction storage and icache. - -There are two ways to solve this problem: use the riscv_flush_icache() syscall, -or use the ``PR_RISCV_SET_ICACHE_FLUSH_CTX`` prctl() and emit fence.i in -userspace. The syscall performs a one-off icache flushing operation. The prctl -changes the Linux ABI to allow userspace to emit icache flushing operations. - -As an aside, "deferred" icache flushes can sometimes be triggered in the kernel. -At the time of writing, this only occurs during the riscv_flush_icache() syscall -and when the kernel uses copy_to_user_page(). These deferred flushes happen only -when the memory map being used by a hart changes. If the prctl() context caused -an icache flush, this deferred icache flush will be skipped as it is redundant. -Therefore, there will be no additional flush when using the riscv_flush_icache() -syscall inside of the prctl() context. - -prctl() Interface ---------------------- - -Call prctl() with ``PR_RISCV_SET_ICACHE_FLUSH_CTX`` as the first argument. The -remaining arguments will be delegated to the riscv_set_icache_flush_ctx -function detailed below. - -.. kernel-doc:: arch/riscv/mm/cacheflush.c - :identifiers: riscv_set_icache_flush_ctx - -Example usage: - -The following files are meant to be compiled and linked with each other. The -modify_instruction() function replaces an add with 0 with an add with one, -causing the instruction sequence in get_value() to change from returning a zero -to returning a one. - -cmodx.c:: - - #include - #include - - extern int get_value(); - extern void modify_instruction(); - - int main() - { - int value = get_value(); - printf("Value before cmodx: %d\n", value); - - // Call prctl before first fence.i is called inside modify_instruction - prctl(PR_RISCV_SET_ICACHE_FLUSH_CTX, PR_RISCV_CTX_SW_FENCEI_ON, PR_RISCV_SCOPE_PER_PROCESS); - modify_instruction(); - // Call prctl after final fence.i is called in process - prctl(PR_RISCV_SET_ICACHE_FLUSH_CTX, PR_RISCV_CTX_SW_FENCEI_OFF, PR_RISCV_SCOPE_PER_PROCESS); - - value = get_value(); - printf("Value after cmodx: %d\n", value); - return 0; - } - -cmodx.S:: - - .option norvc - - .text - .global modify_instruction - modify_instruction: - lw a0, new_insn - lui a5,%hi(old_insn) - sw a0,%lo(old_insn)(a5) - fence.i - ret - - .section modifiable, "awx" - .global get_value - get_value: - li a0, 0 - old_insn: - addi a0, a0, 0 - ret - - .data - new_insn: - addi a0, a0, 1 +.. SPDX-License-Identifier: GPL-2.0 + +============================================================================== +Concurrent Modification and Execution of Instructions (CMODX) for RISC-V Linux +============================================================================== + +CMODX is a programming technique where a program executes instructions that were +modified by the program itself. Instruction storage and the instruction cache +(icache) are not guaranteed to be synchronized on RISC-V hardware. Therefore, the +program must enforce its own synchronization with the unprivileged fence.i +instruction. + +However, the default Linux ABI prohibits the use of fence.i in userspace +applications. At any point the scheduler may migrate a task onto a new hart. If +migration occurs after the userspace synchronized the icache and instruction +storage with fence.i, the icache on the new hart will no longer be clean. This +is due to the behavior of fence.i only affecting the hart that it is called on. +Thus, the hart that the task has been migrated to may not have synchronized +instruction storage and icache. + +There are two ways to solve this problem: use the riscv_flush_icache() syscall, +or use the ``PR_RISCV_SET_ICACHE_FLUSH_CTX`` prctl() and emit fence.i in +userspace. The syscall performs a one-off icache flushing operation. The prctl +changes the Linux ABI to allow userspace to emit icache flushing operations. + +As an aside, "deferred" icache flushes can sometimes be triggered in the kernel. +At the time of writing, this only occurs during the riscv_flush_icache() syscall +and when the kernel uses copy_to_user_page(). These deferred flushes happen only +when the memory map being used by a hart changes. If the prctl() context caused +an icache flush, this deferred icache flush will be skipped as it is redundant. +Therefore, there will be no additional flush when using the riscv_flush_icache() +syscall inside of the prctl() context. + +prctl() Interface +--------------------- + +Call prctl() with ``PR_RISCV_SET_ICACHE_FLUSH_CTX`` as the first argument. The +remaining arguments will be delegated to the riscv_set_icache_flush_ctx +function detailed below. + +.. kernel-doc:: arch/riscv/mm/cacheflush.c + :identifiers: riscv_set_icache_flush_ctx + +Example usage: + +The following files are meant to be compiled and linked with each other. The +modify_instruction() function replaces an add with 0 with an add with one, +causing the instruction sequence in get_value() to change from returning a zero +to returning a one. + +cmodx.c:: + + #include + #include + + extern int get_value(); + extern void modify_instruction(); + + int main() + { + int value = get_value(); + printf("Value before cmodx: %d\n", value); + + // Call prctl before first fence.i is called inside modify_instruction + prctl(PR_RISCV_SET_ICACHE_FLUSH_CTX, PR_RISCV_CTX_SW_FENCEI_ON, PR_RISCV_SCOPE_PER_PROCESS); + modify_instruction(); + // Call prctl after final fence.i is called in process + prctl(PR_RISCV_SET_ICACHE_FLUSH_CTX, PR_RISCV_CTX_SW_FENCEI_OFF, PR_RISCV_SCOPE_PER_PROCESS); + + value = get_value(); + printf("Value after cmodx: %d\n", value); + return 0; + } + +cmodx.S:: + + .option norvc + + .text + .global modify_instruction + modify_instruction: + lw a0, new_insn + lui a5,%hi(old_insn) + sw a0,%lo(old_insn)(a5) + fence.i + ret + + .section modifiable, "awx" + .global get_value + get_value: + li a0, 0 + old_insn: + addi a0, a0, 0 + ret + + .data + new_insn: + addi a0, a0, 1 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/s390/mm.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/s390/mm.rst index 0caaf6833..084adad5e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/s390/mm.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/s390/mm.rst @@ -1,111 +1,111 @@ -.. SPDX-License-Identifier: GPL-2.0 - -================= -Memory Management -================= - -Virtual memory layout -===================== - -.. note:: - - - Some aspects of the virtual memory layout setup are not - clarified (number of page levels, alignment, DMA memory). - - - Unused gaps in the virtual memory layout could be present - or not - depending on how partucular system is configured. - No page tables are created for the unused gaps. - - - The virtual memory regions are tracked or untracked by KASAN - instrumentation, as well as the KASAN shadow memory itself is - created only when CONFIG_KASAN configuration option is enabled. - -:: - - ============================================================================= - | Physical | Virtual | VM area description - ============================================================================= - +- 0 --------------+- 0 --------------+ - | | S390_lowcore | Low-address memory - | +- 8 KB -----------+ - | | | - | | | - | | ... unused gap | KASAN untracked - | | | - +- AMODE31_START --+- AMODE31_START --+ .amode31 rand. phys/virt start - |.amode31 text/data|.amode31 text/data| KASAN untracked - +- AMODE31_END ----+- AMODE31_END ----+ .amode31 rand. phys/virt end (<2GB) - | | | - | | | - +- __kaslr_offset_phys | kernel rand. phys start - | | | - | kernel text/data | | - | | | - +------------------+ | kernel phys end - | | | - | | | - | | | - | | | - +- ident_map_size -+ | - | | - | ... unused gap | KASAN untracked - | | - +- __identity_base + identity mapping start (>= 2GB) - | | - | identity | phys == virt - __identity_base - | mapping | virt == phys + __identity_base - | | - | | KASAN tracked - | | - | | - | | - | | - | | - | | - | | - | | - | | - | | - | | - | | - | | - | | - | | - +---- vmemmap -----+ 'struct page' array start - | | - | virtually mapped | - | memory map | KASAN untracked - | | - +- __abs_lowcore --+ - | | - | Absolute Lowcore | KASAN untracked - | | - +- __memcpy_real_area - | | - | Real Memory Copy| KASAN untracked - | | - +- VMALLOC_START --+ vmalloc area start - | | KASAN untracked or - | vmalloc area | KASAN shallowly populated in case - | | CONFIG_KASAN_VMALLOC=y - +- MODULES_VADDR --+ modules area start - | | KASAN allocated per module or - | modules area | KASAN shallowly populated in case - | | CONFIG_KASAN_VMALLOC=y - +- __kaslr_offset -+ kernel rand. virt start - | | KASAN tracked - | kernel text/data | phys == (kvirt - __kaslr_offset) + - | | __kaslr_offset_phys - +- kernel .bss end + kernel rand. virt end - | | - | ... unused gap | KASAN untracked - | | - +------------------+ UltraVisor Secure Storage limit - | | - | ... unused gap | KASAN untracked - | | - +KASAN_SHADOW_START+ KASAN shadow memory start - | | - | KASAN shadow | KASAN untracked - | | - +------------------+ ASCE limit +.. SPDX-License-Identifier: GPL-2.0 + +================= +Memory Management +================= + +Virtual memory layout +===================== + +.. note:: + + - Some aspects of the virtual memory layout setup are not + clarified (number of page levels, alignment, DMA memory). + + - Unused gaps in the virtual memory layout could be present + or not - depending on how partucular system is configured. + No page tables are created for the unused gaps. + + - The virtual memory regions are tracked or untracked by KASAN + instrumentation, as well as the KASAN shadow memory itself is + created only when CONFIG_KASAN configuration option is enabled. + +:: + + ============================================================================= + | Physical | Virtual | VM area description + ============================================================================= + +- 0 --------------+- 0 --------------+ + | | S390_lowcore | Low-address memory + | +- 8 KB -----------+ + | | | + | | | + | | ... unused gap | KASAN untracked + | | | + +- AMODE31_START --+- AMODE31_START --+ .amode31 rand. phys/virt start + |.amode31 text/data|.amode31 text/data| KASAN untracked + +- AMODE31_END ----+- AMODE31_END ----+ .amode31 rand. phys/virt end (<2GB) + | | | + | | | + +- __kaslr_offset_phys | kernel rand. phys start + | | | + | kernel text/data | | + | | | + +------------------+ | kernel phys end + | | | + | | | + | | | + | | | + +- ident_map_size -+ | + | | + | ... unused gap | KASAN untracked + | | + +- __identity_base + identity mapping start (>= 2GB) + | | + | identity | phys == virt - __identity_base + | mapping | virt == phys + __identity_base + | | + | | KASAN tracked + | | + | | + | | + | | + | | + | | + | | + | | + | | + | | + | | + | | + | | + | | + | | + +---- vmemmap -----+ 'struct page' array start + | | + | virtually mapped | + | memory map | KASAN untracked + | | + +- __abs_lowcore --+ + | | + | Absolute Lowcore | KASAN untracked + | | + +- __memcpy_real_area + | | + | Real Memory Copy| KASAN untracked + | | + +- VMALLOC_START --+ vmalloc area start + | | KASAN untracked or + | vmalloc area | KASAN shallowly populated in case + | | CONFIG_KASAN_VMALLOC=y + +- MODULES_VADDR --+ modules area start + | | KASAN allocated per module or + | modules area | KASAN shallowly populated in case + | | CONFIG_KASAN_VMALLOC=y + +- __kaslr_offset -+ kernel rand. virt start + | | KASAN tracked + | kernel text/data | phys == (kvirt - __kaslr_offset) + + | | __kaslr_offset_phys + +- kernel .bss end + kernel rand. virt end + | | + | ... unused gap | KASAN untracked + | | + +------------------+ UltraVisor Secure Storage limit + | | + | ... unused gap | KASAN untracked + | | + +KASAN_SHADOW_START+ KASAN shadow memory start + | | + | KASAN shadow | KASAN untracked + | | + +------------------+ ASCE limit diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/s390/pci.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/s390/pci.rst index 4008d53f0..d5755484d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/s390/pci.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/s390/pci.rst @@ -1,133 +1,133 @@ -.. SPDX-License-Identifier: GPL-2.0 - -========= -S/390 PCI -========= - -Authors: - - Pierre Morel - -Copyright, IBM Corp. 2020 - - -Command line parameters and debugfs entries -=========================================== - -Command line parameters ------------------------ - -* nomio - - Do not use PCI Mapped I/O (MIO) instructions. - -* norid - - Ignore the RID field and force use of one PCI domain per PCI function. - -debugfs entries ---------------- - -The S/390 debug feature (s390dbf) generates views to hold various debug results in sysfs directories of the form: - - * /sys/kernel/debug/s390dbf/pci_*/ - -For example: - - - /sys/kernel/debug/s390dbf/pci_msg/sprintf - Holds messages from the processing of PCI events, like machine check handling - and setting of global functionality, like UID checking. - - Change the level of logging to be more or less verbose by piping - a number between 0 and 6 to /sys/kernel/debug/s390dbf/pci_*/level. For - details, see the documentation on the S/390 debug feature at - Documentation/arch/s390/s390dbf.rst. - -Sysfs entries -============= - -Entries specific to zPCI functions and entries that hold zPCI information. - -* /sys/bus/pci/slots/XXXXXXXX - - The slot entries are set up using the function identifier (FID) of the - PCI function. The format depicted as XXXXXXXX above is 8 hexadecimal digits - with 0 padding and lower case hexadecimal digits. - - - /sys/bus/pci/slots/XXXXXXXX/power - - A physical function that currently supports a virtual function cannot be - powered off until all virtual functions are removed with: - echo 0 > /sys/bus/pci/devices/XXXX:XX:XX.X/sriov_numvf - -* /sys/bus/pci/devices/XXXX:XX:XX.X/ - - - function_id - A zPCI function identifier that uniquely identifies the function in the Z server. - - - function_handle - Low-level identifier used for a configured PCI function. - It might be useful for debugging. - - - pchid - Model-dependent location of the I/O adapter. - - - pfgid - PCI function group ID, functions that share identical functionality - use a common identifier. - A PCI group defines interrupts, IOMMU, IOTLB, and DMA specifics. - - - vfn - The virtual function number, from 1 to N for virtual functions, - 0 for physical functions. - - - pft - The PCI function type - - - port - The port corresponds to the physical port the function is attached to. - It also gives an indication of the physical function a virtual function - is attached to. - - - uid - The user identifier (UID) may be defined as part of the machine - configuration or the z/VM or KVM guest configuration. If the accompanying - uid_is_unique attribute is 1 the platform guarantees that the UID is unique - within that instance and no devices with the same UID can be attached - during the lifetime of the system. - - - uid_is_unique - Indicates whether the user identifier (UID) is guaranteed to be and remain - unique within this Linux instance. - - - pfip/segmentX - The segments determine the isolation of a function. - They correspond to the physical path to the function. - The more the segments are different, the more the functions are isolated. - -Enumeration and hotplug -======================= - -The PCI address consists of four parts: domain, bus, device and function, -and is of this form: DDDD:BB:dd.f - -* When not using multi-functions (norid is set, or the firmware does not - support multi-functions): - - - There is only one function per domain. - - - The domain is set from the zPCI function's UID as defined during the - LPAR creation. - -* When using multi-functions (norid parameter is not set), - zPCI functions are addressed differently: - - - There is still only one bus per domain. - - - There can be up to 256 functions per bus. - - - The domain part of the address of all functions for - a multi-Function device is set from the zPCI function's UID as defined - in the LPAR creation for the function zero. - - - New functions will only be ready for use after the function zero - (the function with devfn 0) has been enumerated. +.. SPDX-License-Identifier: GPL-2.0 + +========= +S/390 PCI +========= + +Authors: + - Pierre Morel + +Copyright, IBM Corp. 2020 + + +Command line parameters and debugfs entries +=========================================== + +Command line parameters +----------------------- + +* nomio + + Do not use PCI Mapped I/O (MIO) instructions. + +* norid + + Ignore the RID field and force use of one PCI domain per PCI function. + +debugfs entries +--------------- + +The S/390 debug feature (s390dbf) generates views to hold various debug results in sysfs directories of the form: + + * /sys/kernel/debug/s390dbf/pci_*/ + +For example: + + - /sys/kernel/debug/s390dbf/pci_msg/sprintf + Holds messages from the processing of PCI events, like machine check handling + and setting of global functionality, like UID checking. + + Change the level of logging to be more or less verbose by piping + a number between 0 and 6 to /sys/kernel/debug/s390dbf/pci_*/level. For + details, see the documentation on the S/390 debug feature at + Documentation/arch/s390/s390dbf.rst. + +Sysfs entries +============= + +Entries specific to zPCI functions and entries that hold zPCI information. + +* /sys/bus/pci/slots/XXXXXXXX + + The slot entries are set up using the function identifier (FID) of the + PCI function. The format depicted as XXXXXXXX above is 8 hexadecimal digits + with 0 padding and lower case hexadecimal digits. + + - /sys/bus/pci/slots/XXXXXXXX/power + + A physical function that currently supports a virtual function cannot be + powered off until all virtual functions are removed with: + echo 0 > /sys/bus/pci/devices/XXXX:XX:XX.X/sriov_numvf + +* /sys/bus/pci/devices/XXXX:XX:XX.X/ + + - function_id + A zPCI function identifier that uniquely identifies the function in the Z server. + + - function_handle + Low-level identifier used for a configured PCI function. + It might be useful for debugging. + + - pchid + Model-dependent location of the I/O adapter. + + - pfgid + PCI function group ID, functions that share identical functionality + use a common identifier. + A PCI group defines interrupts, IOMMU, IOTLB, and DMA specifics. + + - vfn + The virtual function number, from 1 to N for virtual functions, + 0 for physical functions. + + - pft + The PCI function type + + - port + The port corresponds to the physical port the function is attached to. + It also gives an indication of the physical function a virtual function + is attached to. + + - uid + The user identifier (UID) may be defined as part of the machine + configuration or the z/VM or KVM guest configuration. If the accompanying + uid_is_unique attribute is 1 the platform guarantees that the UID is unique + within that instance and no devices with the same UID can be attached + during the lifetime of the system. + + - uid_is_unique + Indicates whether the user identifier (UID) is guaranteed to be and remain + unique within this Linux instance. + + - pfip/segmentX + The segments determine the isolation of a function. + They correspond to the physical path to the function. + The more the segments are different, the more the functions are isolated. + +Enumeration and hotplug +======================= + +The PCI address consists of four parts: domain, bus, device and function, +and is of this form: DDDD:BB:dd.f + +* When not using multi-functions (norid is set, or the firmware does not + support multi-functions): + + - There is only one function per domain. + + - The domain is set from the zPCI function's UID as defined during the + LPAR creation. + +* When using multi-functions (norid parameter is not set), + zPCI functions are addressed differently: + + - There is still only one bus per domain. + + - There can be up to 256 functions per bus. + + - The domain part of the address of all functions for + a multi-Function device is set from the zPCI function's UID as defined + in the LPAR creation for the function zero. + + - New functions will only be ready for use after the function zero + (the function with devfn 0) has been enumerated. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/s390/vfio-ap-locking.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/s390/vfio-ap-locking.rst index 2c22464c3..0dfcdb562 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/s390/vfio-ap-locking.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/s390/vfio-ap-locking.rst @@ -1,115 +1,115 @@ -.. SPDX-License-Identifier: GPL-2.0 - -====================== -VFIO AP Locks Overview -====================== -This document describes the locks that are pertinent to the secure operation -of the vfio_ap device driver. Throughout this document, the following variables -will be used to denote instances of the structures herein described: - -.. code-block:: c - - struct ap_matrix_dev *matrix_dev; - struct ap_matrix_mdev *matrix_mdev; - struct kvm *kvm; - -The Matrix Devices Lock (drivers/s390/crypto/vfio_ap_private.h) ---------------------------------------------------------------- - -.. code-block:: c - - struct ap_matrix_dev { - ... - struct list_head mdev_list; - struct mutex mdevs_lock; - ... - } - -The Matrix Devices Lock (matrix_dev->mdevs_lock) is implemented as a global -mutex contained within the single object of struct ap_matrix_dev. This lock -controls access to all fields contained within each matrix_mdev -(matrix_dev->mdev_list). This lock must be held while reading from, writing to -or using the data from a field contained within a matrix_mdev instance -representing one of the vfio_ap device driver's mediated devices. - -The KVM Lock (include/linux/kvm_host.h) ---------------------------------------- - -.. code-block:: c - - struct kvm { - ... - struct mutex lock; - ... - } - -The KVM Lock (kvm->lock) controls access to the state data for a KVM guest. This -lock must be held by the vfio_ap device driver while one or more AP adapters, -domains or control domains are being plugged into or unplugged from the guest. - -The KVM pointer is stored in the in the matrix_mdev instance -(matrix_mdev->kvm = kvm) containing the state of the mediated device that has -been attached to the KVM guest. - -The Guests Lock (drivers/s390/crypto/vfio_ap_private.h) ------------------------------------------------------------ - -.. code-block:: c - - struct ap_matrix_dev { - ... - struct list_head mdev_list; - struct mutex guests_lock; - ... - } - -The Guests Lock (matrix_dev->guests_lock) controls access to the -matrix_mdev instances (matrix_dev->mdev_list) that represent mediated devices -that hold the state for the mediated devices that have been attached to a -KVM guest. This lock must be held: - -1. To control access to the KVM pointer (matrix_mdev->kvm) while the vfio_ap - device driver is using it to plug/unplug AP devices passed through to the KVM - guest. - -2. To add matrix_mdev instances to or remove them from matrix_dev->mdev_list. - This is necessary to ensure the proper locking order when the list is perused - to find an ap_matrix_mdev instance for the purpose of plugging/unplugging - AP devices passed through to a KVM guest. - - For example, when a queue device is removed from the vfio_ap device driver, - if the adapter is passed through to a KVM guest, it will have to be - unplugged. In order to figure out whether the adapter is passed through, - the matrix_mdev object to which the queue is assigned will have to be - found. The KVM pointer (matrix_mdev->kvm) can then be used to determine if - the mediated device is passed through (matrix_mdev->kvm != NULL) and if so, - to unplug the adapter. - -It is not necessary to take the Guests Lock to access the KVM pointer if the -pointer is not used to plug/unplug devices passed through to the KVM guest; -however, in this case, the Matrix Devices Lock (matrix_dev->mdevs_lock) must be -held in order to access the KVM pointer since it is set and cleared under the -protection of the Matrix Devices Lock. A case in point is the function that -handles interception of the PQAP(AQIC) instruction sub-function. This handler -needs to access the KVM pointer only for the purposes of setting or clearing IRQ -resources, so only the matrix_dev->mdevs_lock needs to be held. - -The PQAP Hook Lock (arch/s390/include/asm/kvm_host.h) ------------------------------------------------------ - -.. code-block:: c - - typedef int (*crypto_hook)(struct kvm_vcpu *vcpu); - - struct kvm_s390_crypto { - ... - struct rw_semaphore pqap_hook_rwsem; - crypto_hook *pqap_hook; - ... - }; - -The PQAP Hook Lock is a r/w semaphore that controls access to the function -pointer of the handler ``(*kvm->arch.crypto.pqap_hook)`` to invoke when the -PQAP(AQIC) instruction sub-function is intercepted by the host. The lock must be -held in write mode when pqap_hook value is set, and in read mode when the -pqap_hook function is called. +.. SPDX-License-Identifier: GPL-2.0 + +====================== +VFIO AP Locks Overview +====================== +This document describes the locks that are pertinent to the secure operation +of the vfio_ap device driver. Throughout this document, the following variables +will be used to denote instances of the structures herein described: + +.. code-block:: c + + struct ap_matrix_dev *matrix_dev; + struct ap_matrix_mdev *matrix_mdev; + struct kvm *kvm; + +The Matrix Devices Lock (drivers/s390/crypto/vfio_ap_private.h) +--------------------------------------------------------------- + +.. code-block:: c + + struct ap_matrix_dev { + ... + struct list_head mdev_list; + struct mutex mdevs_lock; + ... + } + +The Matrix Devices Lock (matrix_dev->mdevs_lock) is implemented as a global +mutex contained within the single object of struct ap_matrix_dev. This lock +controls access to all fields contained within each matrix_mdev +(matrix_dev->mdev_list). This lock must be held while reading from, writing to +or using the data from a field contained within a matrix_mdev instance +representing one of the vfio_ap device driver's mediated devices. + +The KVM Lock (include/linux/kvm_host.h) +--------------------------------------- + +.. code-block:: c + + struct kvm { + ... + struct mutex lock; + ... + } + +The KVM Lock (kvm->lock) controls access to the state data for a KVM guest. This +lock must be held by the vfio_ap device driver while one or more AP adapters, +domains or control domains are being plugged into or unplugged from the guest. + +The KVM pointer is stored in the in the matrix_mdev instance +(matrix_mdev->kvm = kvm) containing the state of the mediated device that has +been attached to the KVM guest. + +The Guests Lock (drivers/s390/crypto/vfio_ap_private.h) +----------------------------------------------------------- + +.. code-block:: c + + struct ap_matrix_dev { + ... + struct list_head mdev_list; + struct mutex guests_lock; + ... + } + +The Guests Lock (matrix_dev->guests_lock) controls access to the +matrix_mdev instances (matrix_dev->mdev_list) that represent mediated devices +that hold the state for the mediated devices that have been attached to a +KVM guest. This lock must be held: + +1. To control access to the KVM pointer (matrix_mdev->kvm) while the vfio_ap + device driver is using it to plug/unplug AP devices passed through to the KVM + guest. + +2. To add matrix_mdev instances to or remove them from matrix_dev->mdev_list. + This is necessary to ensure the proper locking order when the list is perused + to find an ap_matrix_mdev instance for the purpose of plugging/unplugging + AP devices passed through to a KVM guest. + + For example, when a queue device is removed from the vfio_ap device driver, + if the adapter is passed through to a KVM guest, it will have to be + unplugged. In order to figure out whether the adapter is passed through, + the matrix_mdev object to which the queue is assigned will have to be + found. The KVM pointer (matrix_mdev->kvm) can then be used to determine if + the mediated device is passed through (matrix_mdev->kvm != NULL) and if so, + to unplug the adapter. + +It is not necessary to take the Guests Lock to access the KVM pointer if the +pointer is not used to plug/unplug devices passed through to the KVM guest; +however, in this case, the Matrix Devices Lock (matrix_dev->mdevs_lock) must be +held in order to access the KVM pointer since it is set and cleared under the +protection of the Matrix Devices Lock. A case in point is the function that +handles interception of the PQAP(AQIC) instruction sub-function. This handler +needs to access the KVM pointer only for the purposes of setting or clearing IRQ +resources, so only the matrix_dev->mdevs_lock needs to be held. + +The PQAP Hook Lock (arch/s390/include/asm/kvm_host.h) +----------------------------------------------------- + +.. code-block:: c + + typedef int (*crypto_hook)(struct kvm_vcpu *vcpu); + + struct kvm_s390_crypto { + ... + struct rw_semaphore pqap_hook_rwsem; + crypto_hook *pqap_hook; + ... + }; + +The PQAP Hook Lock is a r/w semaphore that controls access to the function +pointer of the handler ``(*kvm->arch.crypto.pqap_hook)`` to invoke when the +PQAP(AQIC) instruction sub-function is intercepted by the host. The lock must be +held in write mode when pqap_hook value is set, and in read mode when the +pqap_hook function is called. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/amd_hsmp.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/amd_hsmp.rst index 0282862a0..1e499ecf5 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/amd_hsmp.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/amd_hsmp.rst @@ -1,105 +1,105 @@ -.. SPDX-License-Identifier: GPL-2.0 - -============================================ -AMD HSMP interface -============================================ - -Newer Fam19h EPYC server line of processors from AMD support system -management functionality via HSMP (Host System Management Port). - -The Host System Management Port (HSMP) is an interface to provide -OS-level software with access to system management functions via a -set of mailbox registers. - -More details on the interface can be found in chapter -"7 Host System Management Port (HSMP)" of the family/model PPR -Eg: https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/programmer-references/55898_B1_pub_0_50.zip - - -HSMP interface is supported on EPYC server CPU models only. - - -HSMP device -============================================ - -amd_hsmp driver under the drivers/platforms/x86/ creates miscdevice -/dev/hsmp to let user space programs run hsmp mailbox commands. - -$ ls -al /dev/hsmp -crw-r--r-- 1 root root 10, 123 Jan 21 21:41 /dev/hsmp - -Characteristics of the dev node: - * Write mode is used for running set/configure commands - * Read mode is used for running get/status monitor commands - -Access restrictions: - * Only root user is allowed to open the file in write mode. - * The file can be opened in read mode by all the users. - -In-kernel integration: - * Other subsystems in the kernel can use the exported transport - function hsmp_send_message(). - * Locking across callers is taken care by the driver. - - -HSMP sysfs interface -==================== - -1. Metrics table binary sysfs - -AMD MI300A MCM provides GET_METRICS_TABLE message to retrieve -most of the system management information from SMU in one go. - -The metrics table is made available as hexadecimal sysfs binary file -under per socket sysfs directory created at -/sys/devices/platform/amd_hsmp/socket%d/metrics_bin - -Note: lseek() is not supported as entire metrics table is read. - -Metrics table definitions will be documented as part of Public PPR. -The same is defined in the amd_hsmp.h header. - - -An example -========== - -To access hsmp device from a C program. -First, you need to include the headers:: - - #include - -Which defines the supported messages/message IDs. - -Next thing, open the device file, as follows:: - - int file; - - file = open("/dev/hsmp", O_RDWR); - if (file < 0) { - /* ERROR HANDLING; you can check errno to see what went wrong */ - exit(1); - } - -The following IOCTL is defined: - -``ioctl(file, HSMP_IOCTL_CMD, struct hsmp_message *msg)`` - The argument is a pointer to a:: - - struct hsmp_message { - __u32 msg_id; /* Message ID */ - __u16 num_args; /* Number of input argument words in message */ - __u16 response_sz; /* Number of expected output/response words */ - __u32 args[HSMP_MAX_MSG_LEN]; /* argument/response buffer */ - __u16 sock_ind; /* socket number */ - }; - -The ioctl would return a non-zero on failure; you can read errno to see -what happened. The transaction returns 0 on success. - -More details on the interface and message definitions can be found in chapter -"7 Host System Management Port (HSMP)" of the respective family/model PPR -eg: https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/programmer-references/55898_B1_pub_0_50.zip - -User space C-APIs are made available by linking against the esmi library, -which is provided by the E-SMS project https://www.amd.com/en/developer/e-sms.html. -See: https://github.com/amd/esmi_ib_library +.. SPDX-License-Identifier: GPL-2.0 + +============================================ +AMD HSMP interface +============================================ + +Newer Fam19h EPYC server line of processors from AMD support system +management functionality via HSMP (Host System Management Port). + +The Host System Management Port (HSMP) is an interface to provide +OS-level software with access to system management functions via a +set of mailbox registers. + +More details on the interface can be found in chapter +"7 Host System Management Port (HSMP)" of the family/model PPR +Eg: https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/programmer-references/55898_B1_pub_0_50.zip + + +HSMP interface is supported on EPYC server CPU models only. + + +HSMP device +============================================ + +amd_hsmp driver under the drivers/platforms/x86/ creates miscdevice +/dev/hsmp to let user space programs run hsmp mailbox commands. + +$ ls -al /dev/hsmp +crw-r--r-- 1 root root 10, 123 Jan 21 21:41 /dev/hsmp + +Characteristics of the dev node: + * Write mode is used for running set/configure commands + * Read mode is used for running get/status monitor commands + +Access restrictions: + * Only root user is allowed to open the file in write mode. + * The file can be opened in read mode by all the users. + +In-kernel integration: + * Other subsystems in the kernel can use the exported transport + function hsmp_send_message(). + * Locking across callers is taken care by the driver. + + +HSMP sysfs interface +==================== + +1. Metrics table binary sysfs + +AMD MI300A MCM provides GET_METRICS_TABLE message to retrieve +most of the system management information from SMU in one go. + +The metrics table is made available as hexadecimal sysfs binary file +under per socket sysfs directory created at +/sys/devices/platform/amd_hsmp/socket%d/metrics_bin + +Note: lseek() is not supported as entire metrics table is read. + +Metrics table definitions will be documented as part of Public PPR. +The same is defined in the amd_hsmp.h header. + + +An example +========== + +To access hsmp device from a C program. +First, you need to include the headers:: + + #include + +Which defines the supported messages/message IDs. + +Next thing, open the device file, as follows:: + + int file; + + file = open("/dev/hsmp", O_RDWR); + if (file < 0) { + /* ERROR HANDLING; you can check errno to see what went wrong */ + exit(1); + } + +The following IOCTL is defined: + +``ioctl(file, HSMP_IOCTL_CMD, struct hsmp_message *msg)`` + The argument is a pointer to a:: + + struct hsmp_message { + __u32 msg_id; /* Message ID */ + __u16 num_args; /* Number of input argument words in message */ + __u16 response_sz; /* Number of expected output/response words */ + __u32 args[HSMP_MAX_MSG_LEN]; /* argument/response buffer */ + __u16 sock_ind; /* socket number */ + }; + +The ioctl would return a non-zero on failure; you can read errno to see +what happened. The transaction returns 0 on success. + +More details on the interface and message definitions can be found in chapter +"7 Host System Management Port (HSMP)" of the respective family/model PPR +eg: https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/programmer-references/55898_B1_pub_0_50.zip + +User space C-APIs are made available by linking against the esmi library, +which is provided by the E-SMS project https://www.amd.com/en/developer/e-sms.html. +See: https://github.com/amd/esmi_ib_library diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/entry_64.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/entry_64.rst index 8896656ac..0afdce3c0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/entry_64.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/entry_64.rst @@ -1,110 +1,110 @@ -.. SPDX-License-Identifier: GPL-2.0 - -============== -Kernel Entries -============== - -This file documents some of the kernel entries in -arch/x86/entry/entry_64.S. A lot of this explanation is adapted from -an email from Ingo Molnar: - -https://lore.kernel.org/r/20110529191055.GC9835%40elte.hu - -The x86 architecture has quite a few different ways to jump into -kernel code. Most of these entry points are registered in -arch/x86/kernel/traps.c and implemented in arch/x86/entry/entry_64.S -for 64-bit, arch/x86/entry/entry_32.S for 32-bit and finally -arch/x86/entry/entry_64_compat.S which implements the 32-bit compatibility -syscall entry points and thus provides for 32-bit processes the -ability to execute syscalls when running on 64-bit kernels. - -The IDT vector assignments are listed in arch/x86/include/asm/irq_vectors.h. - -Some of these entries are: - - - system_call: syscall instruction from 64-bit code. - - - entry_INT80_compat: int 0x80 from 32-bit or 64-bit code; compat syscall - either way. - - - entry_INT80_compat, ia32_sysenter: syscall and sysenter from 32-bit - code - - - interrupt: An array of entries. Every IDT vector that doesn't - explicitly point somewhere else gets set to the corresponding - value in interrupts. These point to a whole array of - magically-generated functions that make their way to common_interrupt() - with the interrupt number as a parameter. - - - APIC interrupts: Various special-purpose interrupts for things - like TLB shootdown. - - - Architecturally-defined exceptions like divide_error. - -There are a few complexities here. The different x86-64 entries -have different calling conventions. The syscall and sysenter -instructions have their own peculiar calling conventions. Some of -the IDT entries push an error code onto the stack; others don't. -IDT entries using the IST alternative stack mechanism need their own -magic to get the stack frames right. (You can find some -documentation in the AMD APM, Volume 2, Chapter 8 and the Intel SDM, -Volume 3, Chapter 6.) - -Dealing with the swapgs instruction is especially tricky. Swapgs -toggles whether gs is the kernel gs or the user gs. The swapgs -instruction is rather fragile: it must nest perfectly and only in -single depth, it should only be used if entering from user mode to -kernel mode and then when returning to user-space, and precisely -so. If we mess that up even slightly, we crash. - -So when we have a secondary entry, already in kernel mode, we *must -not* use SWAPGS blindly - nor must we forget doing a SWAPGS when it's -not switched/swapped yet. - -Now, there's a secondary complication: there's a cheap way to test -which mode the CPU is in and an expensive way. - -The cheap way is to pick this info off the entry frame on the kernel -stack, from the CS of the ptregs area of the kernel stack:: - - xorl %ebx,%ebx - testl $3,CS+8(%rsp) - je error_kernelspace - SWAPGS - -The expensive (paranoid) way is to read back the MSR_GS_BASE value -(which is what SWAPGS modifies):: - - movl $1,%ebx - movl $MSR_GS_BASE,%ecx - rdmsr - testl %edx,%edx - js 1f /* negative -> in kernel */ - SWAPGS - xorl %ebx,%ebx - 1: ret - -If we are at an interrupt or user-trap/gate-alike boundary then we can -use the faster check: the stack will be a reliable indicator of -whether SWAPGS was already done: if we see that we are a secondary -entry interrupting kernel mode execution, then we know that the GS -base has already been switched. If it says that we interrupted -user-space execution then we must do the SWAPGS. - -But if we are in an NMI/MCE/DEBUG/whatever super-atomic entry context, -which might have triggered right after a normal entry wrote CS to the -stack but before we executed SWAPGS, then the only safe way to check -for GS is the slower method: the RDMSR. - -Therefore, super-atomic entries (except NMI, which is handled separately) -must use idtentry with paranoid=1 to handle gsbase correctly. This -triggers three main behavior changes: - - - Interrupt entry will use the slower gsbase check. - - Interrupt entry from user mode will switch off the IST stack. - - Interrupt exit to kernel mode will not attempt to reschedule. - -We try to only use IST entries and the paranoid entry code for vectors -that absolutely need the more expensive check for the GS base - and we -generate all 'normal' entry points with the regular (faster) paranoid=0 -variant. +.. SPDX-License-Identifier: GPL-2.0 + +============== +Kernel Entries +============== + +This file documents some of the kernel entries in +arch/x86/entry/entry_64.S. A lot of this explanation is adapted from +an email from Ingo Molnar: + +https://lore.kernel.org/r/20110529191055.GC9835%40elte.hu + +The x86 architecture has quite a few different ways to jump into +kernel code. Most of these entry points are registered in +arch/x86/kernel/traps.c and implemented in arch/x86/entry/entry_64.S +for 64-bit, arch/x86/entry/entry_32.S for 32-bit and finally +arch/x86/entry/entry_64_compat.S which implements the 32-bit compatibility +syscall entry points and thus provides for 32-bit processes the +ability to execute syscalls when running on 64-bit kernels. + +The IDT vector assignments are listed in arch/x86/include/asm/irq_vectors.h. + +Some of these entries are: + + - system_call: syscall instruction from 64-bit code. + + - entry_INT80_compat: int 0x80 from 32-bit or 64-bit code; compat syscall + either way. + + - entry_INT80_compat, ia32_sysenter: syscall and sysenter from 32-bit + code + + - interrupt: An array of entries. Every IDT vector that doesn't + explicitly point somewhere else gets set to the corresponding + value in interrupts. These point to a whole array of + magically-generated functions that make their way to common_interrupt() + with the interrupt number as a parameter. + + - APIC interrupts: Various special-purpose interrupts for things + like TLB shootdown. + + - Architecturally-defined exceptions like divide_error. + +There are a few complexities here. The different x86-64 entries +have different calling conventions. The syscall and sysenter +instructions have their own peculiar calling conventions. Some of +the IDT entries push an error code onto the stack; others don't. +IDT entries using the IST alternative stack mechanism need their own +magic to get the stack frames right. (You can find some +documentation in the AMD APM, Volume 2, Chapter 8 and the Intel SDM, +Volume 3, Chapter 6.) + +Dealing with the swapgs instruction is especially tricky. Swapgs +toggles whether gs is the kernel gs or the user gs. The swapgs +instruction is rather fragile: it must nest perfectly and only in +single depth, it should only be used if entering from user mode to +kernel mode and then when returning to user-space, and precisely +so. If we mess that up even slightly, we crash. + +So when we have a secondary entry, already in kernel mode, we *must +not* use SWAPGS blindly - nor must we forget doing a SWAPGS when it's +not switched/swapped yet. + +Now, there's a secondary complication: there's a cheap way to test +which mode the CPU is in and an expensive way. + +The cheap way is to pick this info off the entry frame on the kernel +stack, from the CS of the ptregs area of the kernel stack:: + + xorl %ebx,%ebx + testl $3,CS+8(%rsp) + je error_kernelspace + SWAPGS + +The expensive (paranoid) way is to read back the MSR_GS_BASE value +(which is what SWAPGS modifies):: + + movl $1,%ebx + movl $MSR_GS_BASE,%ecx + rdmsr + testl %edx,%edx + js 1f /* negative -> in kernel */ + SWAPGS + xorl %ebx,%ebx + 1: ret + +If we are at an interrupt or user-trap/gate-alike boundary then we can +use the faster check: the stack will be a reliable indicator of +whether SWAPGS was already done: if we see that we are a secondary +entry interrupting kernel mode execution, then we know that the GS +base has already been switched. If it says that we interrupted +user-space execution then we must do the SWAPGS. + +But if we are in an NMI/MCE/DEBUG/whatever super-atomic entry context, +which might have triggered right after a normal entry wrote CS to the +stack but before we executed SWAPGS, then the only safe way to check +for GS is the slower method: the RDMSR. + +Therefore, super-atomic entries (except NMI, which is handled separately) +must use idtentry with paranoid=1 to handle gsbase correctly. This +triggers three main behavior changes: + + - Interrupt entry will use the slower gsbase check. + - Interrupt entry from user mode will switch off the IST stack. + - Interrupt exit to kernel mode will not attempt to reschedule. + +We try to only use IST entries and the paranoid entry code for vectors +that absolutely need the more expensive check for the GS base - and we +generate all 'normal' entry points with the regular (faster) paranoid=0 +variant. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/intel-hfi.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/intel-hfi.rst index f9a7efd1f..49dea58ea 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/intel-hfi.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/intel-hfi.rst @@ -1,72 +1,72 @@ -.. SPDX-License-Identifier: GPL-2.0 - -============================================================ -Hardware-Feedback Interface for scheduling on Intel Hardware -============================================================ - -Overview --------- - -Intel has described the Hardware Feedback Interface (HFI) in the Intel 64 and -IA-32 Architectures Software Developer's Manual (Intel SDM) Volume 3 Section -14.6 [1]_. - -The HFI gives the operating system a performance and energy efficiency -capability data for each CPU in the system. Linux can use the information from -the HFI to influence task placement decisions. - -The Hardware Feedback Interface -------------------------------- - -The Hardware Feedback Interface provides to the operating system information -about the performance and energy efficiency of each CPU in the system. Each -capability is given as a unit-less quantity in the range [0-255]. Higher values -indicate higher capability. Energy efficiency and performance are reported in -separate capabilities. Even though on some systems these two metrics may be -related, they are specified as independent capabilities in the Intel SDM. - -These capabilities may change at runtime as a result of changes in the -operating conditions of the system or the action of external factors. The rate -at which these capabilities are updated is specific to each processor model. On -some models, capabilities are set at boot time and never change. On others, -capabilities may change every tens of milliseconds. For instance, a remote -mechanism may be used to lower Thermal Design Power. Such change can be -reflected in the HFI. Likewise, if the system needs to be throttled due to -excessive heat, the HFI may reflect reduced performance on specific CPUs. - -The kernel or a userspace policy daemon can use these capabilities to modify -task placement decisions. For instance, if either the performance or energy -capabilities of a given logical processor becomes zero, it is an indication that -the hardware recommends to the operating system to not schedule any tasks on -that processor for performance or energy efficiency reasons, respectively. - -Implementation details for Linux --------------------------------- - -The infrastructure to handle thermal event interrupts has two parts. In the -Local Vector Table of a CPU's local APIC, there exists a register for the -Thermal Monitor Register. This register controls how interrupts are delivered -to a CPU when the thermal monitor generates and interrupt. Further details -can be found in the Intel SDM Vol. 3 Section 10.5 [1]_. - -The thermal monitor may generate interrupts per CPU or per package. The HFI -generates package-level interrupts. This monitor is configured and initialized -via a set of machine-specific registers. Specifically, the HFI interrupt and -status are controlled via designated bits in the IA32_PACKAGE_THERM_INTERRUPT -and IA32_PACKAGE_THERM_STATUS registers, respectively. There exists one HFI -table per package. Further details can be found in the Intel SDM Vol. 3 -Section 14.9 [1]_. - -The hardware issues an HFI interrupt after updating the HFI table and is ready -for the operating system to consume it. CPUs receive such interrupt via the -thermal entry in the Local APIC's Local Vector Table. - -When servicing such interrupt, the HFI driver parses the updated table and -relays the update to userspace using the thermal notification framework. Given -that there may be many HFI updates every second, the updates relayed to -userspace are throttled at a rate of CONFIG_HZ jiffies. - -References ----------- - -.. [1] https://www.intel.com/sdm +.. SPDX-License-Identifier: GPL-2.0 + +============================================================ +Hardware-Feedback Interface for scheduling on Intel Hardware +============================================================ + +Overview +-------- + +Intel has described the Hardware Feedback Interface (HFI) in the Intel 64 and +IA-32 Architectures Software Developer's Manual (Intel SDM) Volume 3 Section +14.6 [1]_. + +The HFI gives the operating system a performance and energy efficiency +capability data for each CPU in the system. Linux can use the information from +the HFI to influence task placement decisions. + +The Hardware Feedback Interface +------------------------------- + +The Hardware Feedback Interface provides to the operating system information +about the performance and energy efficiency of each CPU in the system. Each +capability is given as a unit-less quantity in the range [0-255]. Higher values +indicate higher capability. Energy efficiency and performance are reported in +separate capabilities. Even though on some systems these two metrics may be +related, they are specified as independent capabilities in the Intel SDM. + +These capabilities may change at runtime as a result of changes in the +operating conditions of the system or the action of external factors. The rate +at which these capabilities are updated is specific to each processor model. On +some models, capabilities are set at boot time and never change. On others, +capabilities may change every tens of milliseconds. For instance, a remote +mechanism may be used to lower Thermal Design Power. Such change can be +reflected in the HFI. Likewise, if the system needs to be throttled due to +excessive heat, the HFI may reflect reduced performance on specific CPUs. + +The kernel or a userspace policy daemon can use these capabilities to modify +task placement decisions. For instance, if either the performance or energy +capabilities of a given logical processor becomes zero, it is an indication that +the hardware recommends to the operating system to not schedule any tasks on +that processor for performance or energy efficiency reasons, respectively. + +Implementation details for Linux +-------------------------------- + +The infrastructure to handle thermal event interrupts has two parts. In the +Local Vector Table of a CPU's local APIC, there exists a register for the +Thermal Monitor Register. This register controls how interrupts are delivered +to a CPU when the thermal monitor generates and interrupt. Further details +can be found in the Intel SDM Vol. 3 Section 10.5 [1]_. + +The thermal monitor may generate interrupts per CPU or per package. The HFI +generates package-level interrupts. This monitor is configured and initialized +via a set of machine-specific registers. Specifically, the HFI interrupt and +status are controlled via designated bits in the IA32_PACKAGE_THERM_INTERRUPT +and IA32_PACKAGE_THERM_STATUS registers, respectively. There exists one HFI +table per package. Further details can be found in the Intel SDM Vol. 3 +Section 14.9 [1]_. + +The hardware issues an HFI interrupt after updating the HFI table and is ready +for the operating system to consume it. CPUs receive such interrupt via the +thermal entry in the Local APIC's Local Vector Table. + +When servicing such interrupt, the HFI driver parses the updated table and +relays the update to userspace using the thermal notification framework. Given +that there may be many HFI updates every second, the updates relayed to +userspace are throttled at a rate of CONFIG_HZ jiffies. + +References +---------- + +.. [1] https://www.intel.com/sdm diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/tlb.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/tlb.rst index 48f58418a..82ec58ae6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/tlb.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/tlb.rst @@ -1,83 +1,83 @@ -.. SPDX-License-Identifier: GPL-2.0 - -======= -The TLB -======= - -When the kernel unmaps or modified the attributes of a range of -memory, it has two choices: - - 1. Flush the entire TLB with a two-instruction sequence. This is - a quick operation, but it causes collateral damage: TLB entries - from areas other than the one we are trying to flush will be - destroyed and must be refilled later, at some cost. - 2. Use the invlpg instruction to invalidate a single page at a - time. This could potentially cost many more instructions, but - it is a much more precise operation, causing no collateral - damage to other TLB entries. - -Which method to do depends on a few things: - - 1. The size of the flush being performed. A flush of the entire - address space is obviously better performed by flushing the - entire TLB than doing 2^48/PAGE_SIZE individual flushes. - 2. The contents of the TLB. If the TLB is empty, then there will - be no collateral damage caused by doing the global flush, and - all of the individual flush will have ended up being wasted - work. - 3. The size of the TLB. The larger the TLB, the more collateral - damage we do with a full flush. So, the larger the TLB, the - more attractive an individual flush looks. Data and - instructions have separate TLBs, as do different page sizes. - 4. The microarchitecture. The TLB has become a multi-level - cache on modern CPUs, and the global flushes have become more - expensive relative to single-page flushes. - -There is obviously no way the kernel can know all these things, -especially the contents of the TLB during a given flush. The -sizes of the flush will vary greatly depending on the workload as -well. There is essentially no "right" point to choose. - -You may be doing too many individual invalidations if you see the -invlpg instruction (or instructions _near_ it) show up high in -profiles. If you believe that individual invalidations being -called too often, you can lower the tunable:: - - /sys/kernel/debug/x86/tlb_single_page_flush_ceiling - -This will cause us to do the global flush for more cases. -Lowering it to 0 will disable the use of the individual flushes. -Setting it to 1 is a very conservative setting and it should -never need to be 0 under normal circumstances. - -Despite the fact that a single individual flush on x86 is -guaranteed to flush a full 2MB [1]_, hugetlbfs always uses the full -flushes. THP is treated exactly the same as normal memory. - -You might see invlpg inside of flush_tlb_mm_range() show up in -profiles, or you can use the trace_tlb_flush() tracepoints. to -determine how long the flush operations are taking. - -Essentially, you are balancing the cycles you spend doing invlpg -with the cycles that you spend refilling the TLB later. - -You can measure how expensive TLB refills are by using -performance counters and 'perf stat', like this:: - - perf stat -e - cpu/event=0x8,umask=0x84,name=dtlb_load_misses_walk_duration/, - cpu/event=0x8,umask=0x82,name=dtlb_load_misses_walk_completed/, - cpu/event=0x49,umask=0x4,name=dtlb_store_misses_walk_duration/, - cpu/event=0x49,umask=0x2,name=dtlb_store_misses_walk_completed/, - cpu/event=0x85,umask=0x4,name=itlb_misses_walk_duration/, - cpu/event=0x85,umask=0x2,name=itlb_misses_walk_completed/ - -That works on an IvyBridge-era CPU (i5-3320M). Different CPUs -may have differently-named counters, but they should at least -be there in some form. You can use pmu-tools 'ocperf list' -(https://github.com/andikleen/pmu-tools) to find the right -counters for a given CPU. - -.. [1] A footnote in Intel's SDM "4.10.4.2 Recommended Invalidation" - says: "One execution of INVLPG is sufficient even for a page - with size greater than 4 KBytes." +.. SPDX-License-Identifier: GPL-2.0 + +======= +The TLB +======= + +When the kernel unmaps or modified the attributes of a range of +memory, it has two choices: + + 1. Flush the entire TLB with a two-instruction sequence. This is + a quick operation, but it causes collateral damage: TLB entries + from areas other than the one we are trying to flush will be + destroyed and must be refilled later, at some cost. + 2. Use the invlpg instruction to invalidate a single page at a + time. This could potentially cost many more instructions, but + it is a much more precise operation, causing no collateral + damage to other TLB entries. + +Which method to do depends on a few things: + + 1. The size of the flush being performed. A flush of the entire + address space is obviously better performed by flushing the + entire TLB than doing 2^48/PAGE_SIZE individual flushes. + 2. The contents of the TLB. If the TLB is empty, then there will + be no collateral damage caused by doing the global flush, and + all of the individual flush will have ended up being wasted + work. + 3. The size of the TLB. The larger the TLB, the more collateral + damage we do with a full flush. So, the larger the TLB, the + more attractive an individual flush looks. Data and + instructions have separate TLBs, as do different page sizes. + 4. The microarchitecture. The TLB has become a multi-level + cache on modern CPUs, and the global flushes have become more + expensive relative to single-page flushes. + +There is obviously no way the kernel can know all these things, +especially the contents of the TLB during a given flush. The +sizes of the flush will vary greatly depending on the workload as +well. There is essentially no "right" point to choose. + +You may be doing too many individual invalidations if you see the +invlpg instruction (or instructions _near_ it) show up high in +profiles. If you believe that individual invalidations being +called too often, you can lower the tunable:: + + /sys/kernel/debug/x86/tlb_single_page_flush_ceiling + +This will cause us to do the global flush for more cases. +Lowering it to 0 will disable the use of the individual flushes. +Setting it to 1 is a very conservative setting and it should +never need to be 0 under normal circumstances. + +Despite the fact that a single individual flush on x86 is +guaranteed to flush a full 2MB [1]_, hugetlbfs always uses the full +flushes. THP is treated exactly the same as normal memory. + +You might see invlpg inside of flush_tlb_mm_range() show up in +profiles, or you can use the trace_tlb_flush() tracepoints. to +determine how long the flush operations are taking. + +Essentially, you are balancing the cycles you spend doing invlpg +with the cycles that you spend refilling the TLB later. + +You can measure how expensive TLB refills are by using +performance counters and 'perf stat', like this:: + + perf stat -e + cpu/event=0x8,umask=0x84,name=dtlb_load_misses_walk_duration/, + cpu/event=0x8,umask=0x82,name=dtlb_load_misses_walk_completed/, + cpu/event=0x49,umask=0x4,name=dtlb_store_misses_walk_duration/, + cpu/event=0x49,umask=0x2,name=dtlb_store_misses_walk_completed/, + cpu/event=0x85,umask=0x4,name=itlb_misses_walk_duration/, + cpu/event=0x85,umask=0x2,name=itlb_misses_walk_completed/ + +That works on an IvyBridge-era CPU (i5-3320M). Different CPUs +may have differently-named counters, but they should at least +be there in some form. You can use pmu-tools 'ocperf list' +(https://github.com/andikleen/pmu-tools) to find the right +counters for a given CPU. + +.. [1] A footnote in Intel's SDM "4.10.4.2 Recommended Invalidation" + says: "One execution of INVLPG is sufficient even for a page + with size greater than 4 KBytes." diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/x86_64/fake-numa-for-cpusets.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/x86_64/fake-numa-for-cpusets.rst index 7b598ba58..ba74617d4 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/x86_64/fake-numa-for-cpusets.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/x86_64/fake-numa-for-cpusets.rst @@ -1,78 +1,78 @@ -.. SPDX-License-Identifier: GPL-2.0 - -===================== -Fake NUMA For CPUSets -===================== - -:Author: David Rientjes - -Using numa=fake and CPUSets for Resource Management - -This document describes how the numa=fake x86_64 command-line option can be used -in conjunction with cpusets for coarse memory management. Using this feature, -you can create fake NUMA nodes that represent contiguous chunks of memory and -assign them to cpusets and their attached tasks. This is a way of limiting the -amount of system memory that are available to a certain class of tasks. - -For more information on the features of cpusets, see -Documentation/admin-guide/cgroup-v1/cpusets.rst. -There are a number of different configurations you can use for your needs. For -more information on the numa=fake command line option and its various ways of -configuring fake nodes, see Documentation/arch/x86/x86_64/boot-options.rst. - -For the purposes of this introduction, we'll assume a very primitive NUMA -emulation setup of "numa=fake=4*512,". This will split our system memory into -four equal chunks of 512M each that we can now use to assign to cpusets. As -you become more familiar with using this combination for resource control, -you'll determine a better setup to minimize the number of nodes you have to deal -with. - -A machine may be split as follows with "numa=fake=4*512," as reported by dmesg:: - - Faking node 0 at 0000000000000000-0000000020000000 (512MB) - Faking node 1 at 0000000020000000-0000000040000000 (512MB) - Faking node 2 at 0000000040000000-0000000060000000 (512MB) - Faking node 3 at 0000000060000000-0000000080000000 (512MB) - ... - On node 0 totalpages: 130975 - On node 1 totalpages: 131072 - On node 2 totalpages: 131072 - On node 3 totalpages: 131072 - -Now following the instructions for mounting the cpusets filesystem from -Documentation/admin-guide/cgroup-v1/cpusets.rst, you can assign fake nodes (i.e. contiguous memory -address spaces) to individual cpusets:: - - [root@xroads /]# mkdir exampleset - [root@xroads /]# mount -t cpuset none exampleset - [root@xroads /]# mkdir exampleset/ddset - [root@xroads /]# cd exampleset/ddset - [root@xroads /exampleset/ddset]# echo 0-1 > cpus - [root@xroads /exampleset/ddset]# echo 0-1 > mems - -Now this cpuset, 'ddset', will only allowed access to fake nodes 0 and 1 for -memory allocations (1G). - -You can now assign tasks to these cpusets to limit the memory resources -available to them according to the fake nodes assigned as mems:: - - [root@xroads /exampleset/ddset]# echo $$ > tasks - [root@xroads /exampleset/ddset]# dd if=/dev/zero of=tmp bs=1024 count=1G - [1] 13425 - -Notice the difference between the system memory usage as reported by -/proc/meminfo between the restricted cpuset case above and the unrestricted -case (i.e. running the same 'dd' command without assigning it to a fake NUMA -cpuset): - - ======== ============ ========== - Name Unrestricted Restricted - ======== ============ ========== - MemTotal 3091900 kB 3091900 kB - MemFree 42113 kB 1513236 kB - ======== ============ ========== - -This allows for coarse memory management for the tasks you assign to particular -cpusets. Since cpusets can form a hierarchy, you can create some pretty -interesting combinations of use-cases for various classes of tasks for your -memory management needs. +.. SPDX-License-Identifier: GPL-2.0 + +===================== +Fake NUMA For CPUSets +===================== + +:Author: David Rientjes + +Using numa=fake and CPUSets for Resource Management + +This document describes how the numa=fake x86_64 command-line option can be used +in conjunction with cpusets for coarse memory management. Using this feature, +you can create fake NUMA nodes that represent contiguous chunks of memory and +assign them to cpusets and their attached tasks. This is a way of limiting the +amount of system memory that are available to a certain class of tasks. + +For more information on the features of cpusets, see +Documentation/admin-guide/cgroup-v1/cpusets.rst. +There are a number of different configurations you can use for your needs. For +more information on the numa=fake command line option and its various ways of +configuring fake nodes, see Documentation/arch/x86/x86_64/boot-options.rst. + +For the purposes of this introduction, we'll assume a very primitive NUMA +emulation setup of "numa=fake=4*512,". This will split our system memory into +four equal chunks of 512M each that we can now use to assign to cpusets. As +you become more familiar with using this combination for resource control, +you'll determine a better setup to minimize the number of nodes you have to deal +with. + +A machine may be split as follows with "numa=fake=4*512," as reported by dmesg:: + + Faking node 0 at 0000000000000000-0000000020000000 (512MB) + Faking node 1 at 0000000020000000-0000000040000000 (512MB) + Faking node 2 at 0000000040000000-0000000060000000 (512MB) + Faking node 3 at 0000000060000000-0000000080000000 (512MB) + ... + On node 0 totalpages: 130975 + On node 1 totalpages: 131072 + On node 2 totalpages: 131072 + On node 3 totalpages: 131072 + +Now following the instructions for mounting the cpusets filesystem from +Documentation/admin-guide/cgroup-v1/cpusets.rst, you can assign fake nodes (i.e. contiguous memory +address spaces) to individual cpusets:: + + [root@xroads /]# mkdir exampleset + [root@xroads /]# mount -t cpuset none exampleset + [root@xroads /]# mkdir exampleset/ddset + [root@xroads /]# cd exampleset/ddset + [root@xroads /exampleset/ddset]# echo 0-1 > cpus + [root@xroads /exampleset/ddset]# echo 0-1 > mems + +Now this cpuset, 'ddset', will only allowed access to fake nodes 0 and 1 for +memory allocations (1G). + +You can now assign tasks to these cpusets to limit the memory resources +available to them according to the fake nodes assigned as mems:: + + [root@xroads /exampleset/ddset]# echo $$ > tasks + [root@xroads /exampleset/ddset]# dd if=/dev/zero of=tmp bs=1024 count=1G + [1] 13425 + +Notice the difference between the system memory usage as reported by +/proc/meminfo between the restricted cpuset case above and the unrestricted +case (i.e. running the same 'dd' command without assigning it to a fake NUMA +cpuset): + + ======== ============ ========== + Name Unrestricted Restricted + ======== ============ ========== + MemTotal 3091900 kB 3091900 kB + MemFree 42113 kB 1513236 kB + ======== ============ ========== + +This allows for coarse memory management for the tasks you assign to particular +cpusets. Since cpusets can form a hierarchy, you can create some pretty +interesting combinations of use-cases for various classes of tasks for your +memory management needs. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/x86_64/fred.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/x86_64/fred.rst index 0094441d1..9f57e7b91 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/x86_64/fred.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/arch/x86/x86_64/fred.rst @@ -1,96 +1,96 @@ -.. SPDX-License-Identifier: GPL-2.0 - -========================================= -Flexible Return and Event Delivery (FRED) -========================================= - -Overview -======== - -The FRED architecture defines simple new transitions that change -privilege level (ring transitions). The FRED architecture was -designed with the following goals: - -1) Improve overall performance and response time by replacing event - delivery through the interrupt descriptor table (IDT event - delivery) and event return by the IRET instruction with lower - latency transitions. - -2) Improve software robustness by ensuring that event delivery - establishes the full supervisor context and that event return - establishes the full user context. - -The new transitions defined by the FRED architecture are FRED event -delivery and, for returning from events, two FRED return instructions. -FRED event delivery can effect a transition from ring 3 to ring 0, but -it is used also to deliver events incident to ring 0. One FRED -instruction (ERETU) effects a return from ring 0 to ring 3, while the -other (ERETS) returns while remaining in ring 0. Collectively, FRED -event delivery and the FRED return instructions are FRED transitions. - -In addition to these transitions, the FRED architecture defines a new -instruction (LKGS) for managing the state of the GS segment register. -The LKGS instruction can be used by 64-bit operating systems that do -not use the new FRED transitions. - -Furthermore, the FRED architecture is easy to extend for future CPU -architectures. - -Software based event dispatching -================================ - -FRED operates differently from IDT in terms of event handling. Instead -of directly dispatching an event to its handler based on the event -vector, FRED requires the software to dispatch an event to its handler -based on both the event's type and vector. Therefore, an event dispatch -framework must be implemented to facilitate the event-to-handler -dispatch process. The FRED event dispatch framework takes control -once an event is delivered, and employs a two-level dispatch. - -The first level dispatching is event type based, and the second level -dispatching is event vector based. - -Full supervisor/user context -============================ - -FRED event delivery atomically save and restore full supervisor/user -context upon event delivery and return. Thus it avoids the problem of -transient states due to %cr2 and/or %dr6, and it is no longer needed -to handle all the ugly corner cases caused by half baked entry states. - -FRED allows explicit unblock of NMI with new event return instructions -ERETS/ERETU, avoiding the mess caused by IRET which unconditionally -unblocks NMI, e.g., when an exception happens during NMI handling. - -FRED always restores the full value of %rsp, thus ESPFIX is no longer -needed when FRED is enabled. - -LKGS -==== - -LKGS behaves like the MOV to GS instruction except that it loads the -base address into the IA32_KERNEL_GS_BASE MSR instead of the GS -segment’s descriptor cache. With LKGS, it ends up with avoiding -mucking with kernel GS, i.e., an operating system can always operate -with its own GS base address. - -Because FRED event delivery from ring 3 and ERETU both swap the value -of the GS base address and that of the IA32_KERNEL_GS_BASE MSR, plus -the introduction of LKGS instruction, the SWAPGS instruction is no -longer needed when FRED is enabled, thus is disallowed (#UD). - -Stack levels -============ - -4 stack levels 0~3 are introduced to replace the nonreentrant IST for -event handling, and each stack level should be configured to use a -dedicated stack. - -The current stack level could be unchanged or go higher upon FRED -event delivery. If unchanged, the CPU keeps using the current event -stack. If higher, the CPU switches to a new event stack specified by -the MSR of the new stack level, i.e., MSR_IA32_FRED_RSP[123]. - -Only execution of a FRED return instruction ERET[US], could lower the -current stack level, causing the CPU to switch back to the stack it was -on before a previous event delivery that promoted the stack level. +.. SPDX-License-Identifier: GPL-2.0 + +========================================= +Flexible Return and Event Delivery (FRED) +========================================= + +Overview +======== + +The FRED architecture defines simple new transitions that change +privilege level (ring transitions). The FRED architecture was +designed with the following goals: + +1) Improve overall performance and response time by replacing event + delivery through the interrupt descriptor table (IDT event + delivery) and event return by the IRET instruction with lower + latency transitions. + +2) Improve software robustness by ensuring that event delivery + establishes the full supervisor context and that event return + establishes the full user context. + +The new transitions defined by the FRED architecture are FRED event +delivery and, for returning from events, two FRED return instructions. +FRED event delivery can effect a transition from ring 3 to ring 0, but +it is used also to deliver events incident to ring 0. One FRED +instruction (ERETU) effects a return from ring 0 to ring 3, while the +other (ERETS) returns while remaining in ring 0. Collectively, FRED +event delivery and the FRED return instructions are FRED transitions. + +In addition to these transitions, the FRED architecture defines a new +instruction (LKGS) for managing the state of the GS segment register. +The LKGS instruction can be used by 64-bit operating systems that do +not use the new FRED transitions. + +Furthermore, the FRED architecture is easy to extend for future CPU +architectures. + +Software based event dispatching +================================ + +FRED operates differently from IDT in terms of event handling. Instead +of directly dispatching an event to its handler based on the event +vector, FRED requires the software to dispatch an event to its handler +based on both the event's type and vector. Therefore, an event dispatch +framework must be implemented to facilitate the event-to-handler +dispatch process. The FRED event dispatch framework takes control +once an event is delivered, and employs a two-level dispatch. + +The first level dispatching is event type based, and the second level +dispatching is event vector based. + +Full supervisor/user context +============================ + +FRED event delivery atomically save and restore full supervisor/user +context upon event delivery and return. Thus it avoids the problem of +transient states due to %cr2 and/or %dr6, and it is no longer needed +to handle all the ugly corner cases caused by half baked entry states. + +FRED allows explicit unblock of NMI with new event return instructions +ERETS/ERETU, avoiding the mess caused by IRET which unconditionally +unblocks NMI, e.g., when an exception happens during NMI handling. + +FRED always restores the full value of %rsp, thus ESPFIX is no longer +needed when FRED is enabled. + +LKGS +==== + +LKGS behaves like the MOV to GS instruction except that it loads the +base address into the IA32_KERNEL_GS_BASE MSR instead of the GS +segment’s descriptor cache. With LKGS, it ends up with avoiding +mucking with kernel GS, i.e., an operating system can always operate +with its own GS base address. + +Because FRED event delivery from ring 3 and ERETU both swap the value +of the GS base address and that of the IA32_KERNEL_GS_BASE MSR, plus +the introduction of LKGS instruction, the SWAPGS instruction is no +longer needed when FRED is enabled, thus is disallowed (#UD). + +Stack levels +============ + +4 stack levels 0~3 are introduced to replace the nonreentrant IST for +event handling, and each stack level should be configured to use a +dedicated stack. + +The current stack level could be unchanged or go higher upon FRED +event delivery. If unchanged, the CPU keeps using the current event +stack. If higher, the CPU switches to a new event stack specified by +the MSR of the new stack level, i.e., MSR_IA32_FRED_RSP[123]. + +Only execution of a FRED return instruction ERET[US], could lower the +current stack level, causing the CPU to switch back to the stack it was +on before a previous event delivery that promoted the stack level. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/block/pr.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/block/pr.rst index 896913e49..c893d6da8 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/block/pr.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/block/pr.rst @@ -1,119 +1,119 @@ -=============================================== -Block layer support for Persistent Reservations -=============================================== - -The Linux kernel supports a user space interface for simplified -Persistent Reservations which map to block devices that support -these (like SCSI). Persistent Reservations allow restricting -access to block devices to specific initiators in a shared storage -setup. - -This document gives a general overview of the support ioctl commands. -For a more detailed reference please refer to the SCSI Primary -Commands standard, specifically the section on Reservations and the -"PERSISTENT RESERVE IN" and "PERSISTENT RESERVE OUT" commands. - -All implementations are expected to ensure the reservations survive -a power loss and cover all connections in a multi path environment. -These behaviors are optional in SPC but will be automatically applied -by Linux. - - -The following types of reservations are supported: --------------------------------------------------- - - - PR_WRITE_EXCLUSIVE - Only the initiator that owns the reservation can write to the - device. Any initiator can read from the device. - - - PR_EXCLUSIVE_ACCESS - Only the initiator that owns the reservation can access the - device. - - - PR_WRITE_EXCLUSIVE_REG_ONLY - Only initiators with a registered key can write to the device, - Any initiator can read from the device. - - - PR_EXCLUSIVE_ACCESS_REG_ONLY - Only initiators with a registered key can access the device. - - - PR_WRITE_EXCLUSIVE_ALL_REGS - - Only initiators with a registered key can write to the device, - Any initiator can read from the device. - All initiators with a registered key are considered reservation - holders. - Please reference the SPC spec on the meaning of a reservation - holder if you want to use this type. - - - PR_EXCLUSIVE_ACCESS_ALL_REGS - Only initiators with a registered key can access the device. - All initiators with a registered key are considered reservation - holders. - Please reference the SPC spec on the meaning of a reservation - holder if you want to use this type. - - -The following ioctl are supported: ----------------------------------- - -1. IOC_PR_REGISTER -^^^^^^^^^^^^^^^^^^ - -This ioctl command registers a new reservation if the new_key argument -is non-null. If no existing reservation exists old_key must be zero, -if an existing reservation should be replaced old_key must contain -the old reservation key. - -If the new_key argument is 0 it unregisters the existing reservation passed -in old_key. - - -2. IOC_PR_RESERVE -^^^^^^^^^^^^^^^^^ - -This ioctl command reserves the device and thus restricts access for other -devices based on the type argument. The key argument must be the existing -reservation key for the device as acquired by the IOC_PR_REGISTER, -IOC_PR_REGISTER_IGNORE, IOC_PR_PREEMPT or IOC_PR_PREEMPT_ABORT commands. - - -3. IOC_PR_RELEASE -^^^^^^^^^^^^^^^^^ - -This ioctl command releases the reservation specified by key and flags -and thus removes any access restriction implied by it. - - -4. IOC_PR_PREEMPT -^^^^^^^^^^^^^^^^^ - -This ioctl command releases the existing reservation referred to by -old_key and replaces it with a new reservation of type for the -reservation key new_key. - - -5. IOC_PR_PREEMPT_ABORT -^^^^^^^^^^^^^^^^^^^^^^^ - -This ioctl command works like IOC_PR_PREEMPT except that it also aborts -any outstanding command sent over a connection identified by old_key. - -6. IOC_PR_CLEAR -^^^^^^^^^^^^^^^ - -This ioctl command unregisters both key and any other reservation key -registered with the device and drops any existing reservation. - - -Flags ------ - -All the ioctls have a flag field. Currently only one flag is supported: - - - PR_FL_IGNORE_KEY - Ignore the existing reservation key. This is commonly supported for - IOC_PR_REGISTER, and some implementation may support the flag for - IOC_PR_RESERVE. - -For all unknown flags the kernel will return -EOPNOTSUPP. +=============================================== +Block layer support for Persistent Reservations +=============================================== + +The Linux kernel supports a user space interface for simplified +Persistent Reservations which map to block devices that support +these (like SCSI). Persistent Reservations allow restricting +access to block devices to specific initiators in a shared storage +setup. + +This document gives a general overview of the support ioctl commands. +For a more detailed reference please refer to the SCSI Primary +Commands standard, specifically the section on Reservations and the +"PERSISTENT RESERVE IN" and "PERSISTENT RESERVE OUT" commands. + +All implementations are expected to ensure the reservations survive +a power loss and cover all connections in a multi path environment. +These behaviors are optional in SPC but will be automatically applied +by Linux. + + +The following types of reservations are supported: +-------------------------------------------------- + + - PR_WRITE_EXCLUSIVE + Only the initiator that owns the reservation can write to the + device. Any initiator can read from the device. + + - PR_EXCLUSIVE_ACCESS + Only the initiator that owns the reservation can access the + device. + + - PR_WRITE_EXCLUSIVE_REG_ONLY + Only initiators with a registered key can write to the device, + Any initiator can read from the device. + + - PR_EXCLUSIVE_ACCESS_REG_ONLY + Only initiators with a registered key can access the device. + + - PR_WRITE_EXCLUSIVE_ALL_REGS + + Only initiators with a registered key can write to the device, + Any initiator can read from the device. + All initiators with a registered key are considered reservation + holders. + Please reference the SPC spec on the meaning of a reservation + holder if you want to use this type. + + - PR_EXCLUSIVE_ACCESS_ALL_REGS + Only initiators with a registered key can access the device. + All initiators with a registered key are considered reservation + holders. + Please reference the SPC spec on the meaning of a reservation + holder if you want to use this type. + + +The following ioctl are supported: +---------------------------------- + +1. IOC_PR_REGISTER +^^^^^^^^^^^^^^^^^^ + +This ioctl command registers a new reservation if the new_key argument +is non-null. If no existing reservation exists old_key must be zero, +if an existing reservation should be replaced old_key must contain +the old reservation key. + +If the new_key argument is 0 it unregisters the existing reservation passed +in old_key. + + +2. IOC_PR_RESERVE +^^^^^^^^^^^^^^^^^ + +This ioctl command reserves the device and thus restricts access for other +devices based on the type argument. The key argument must be the existing +reservation key for the device as acquired by the IOC_PR_REGISTER, +IOC_PR_REGISTER_IGNORE, IOC_PR_PREEMPT or IOC_PR_PREEMPT_ABORT commands. + + +3. IOC_PR_RELEASE +^^^^^^^^^^^^^^^^^ + +This ioctl command releases the reservation specified by key and flags +and thus removes any access restriction implied by it. + + +4. IOC_PR_PREEMPT +^^^^^^^^^^^^^^^^^ + +This ioctl command releases the existing reservation referred to by +old_key and replaces it with a new reservation of type for the +reservation key new_key. + + +5. IOC_PR_PREEMPT_ABORT +^^^^^^^^^^^^^^^^^^^^^^^ + +This ioctl command works like IOC_PR_PREEMPT except that it also aborts +any outstanding command sent over a connection identified by old_key. + +6. IOC_PR_CLEAR +^^^^^^^^^^^^^^^ + +This ioctl command unregisters both key and any other reservation key +registered with the device and drops any existing reservation. + + +Flags +----- + +All the ioctls have a flag field. Currently only one flag is supported: + + - PR_FL_IGNORE_KEY + Ignore the existing reservation key. This is commonly supported for + IOC_PR_REGISTER, and some implementation may support the flag for + IOC_PR_RESERVE. + +For all unknown flags the kernel will return -EOPNOTSUPP. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/block/stat.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/block/stat.rst index f274241f1..a1cd9db20 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/block/stat.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/block/stat.rst @@ -1,103 +1,103 @@ -=============================================== -Block layer statistics in /sys/block//stat -=============================================== - -This file documents the contents of the /sys/block//stat file. - -The stat file provides several statistics about the state of block -device . - -Q. - Why are there multiple statistics in a single file? Doesn't sysfs - normally contain a single value per file? - -A. - By having a single file, the kernel can guarantee that the statistics - represent a consistent snapshot of the state of the device. If the - statistics were exported as multiple files containing one statistic - each, it would be impossible to guarantee that a set of readings - represent a single point in time. - -The stat file consists of a single line of text containing 17 decimal -values separated by whitespace. The fields are summarized in the -following table, and described in more detail below. - - -=============== ============= ================================================= -Name units description -=============== ============= ================================================= -read I/Os requests number of read I/Os processed -read merges requests number of read I/Os merged with in-queue I/O -read sectors sectors number of sectors read -read ticks milliseconds total wait time for read requests -write I/Os requests number of write I/Os processed -write merges requests number of write I/Os merged with in-queue I/O -write sectors sectors number of sectors written -write ticks milliseconds total wait time for write requests -in_flight requests number of I/Os currently in flight -io_ticks milliseconds total time this block device has been active -time_in_queue milliseconds total wait time for all requests -discard I/Os requests number of discard I/Os processed -discard merges requests number of discard I/Os merged with in-queue I/O -discard sectors sectors number of sectors discarded -discard ticks milliseconds total wait time for discard requests -flush I/Os requests number of flush I/Os processed -flush ticks milliseconds total wait time for flush requests -=============== ============= ================================================= - -read I/Os, write I/Os, discard I/0s -=================================== - -These values increment when an I/O request completes. - -flush I/Os -========== - -These values increment when an flush I/O request completes. - -Block layer combines flush requests and executes at most one at a time. -This counts flush requests executed by disk. Not tracked for partitions. - -read merges, write merges, discard merges -========================================= - -These values increment when an I/O request is merged with an -already-queued I/O request. - -read sectors, write sectors, discard_sectors -============================================ - -These values count the number of sectors read from, written to, or -discarded from this block device. The "sectors" in question are the -standard UNIX 512-byte sectors, not any device- or filesystem-specific -block size. The counters are incremented when the I/O completes. - -read ticks, write ticks, discard ticks, flush ticks -=================================================== - -These values count the number of milliseconds that I/O requests have -waited on this block device. If there are multiple I/O requests waiting, -these values will increase at a rate greater than 1000/second; for -example, if 60 read requests wait for an average of 30 ms, the read_ticks -field will increase by 60*30 = 1800. - -in_flight -========= - -This value counts the number of I/O requests that have been issued to -the device driver but have not yet completed. It does not include I/O -requests that are in the queue but not yet issued to the device driver. - -io_ticks -======== - -This value counts the number of milliseconds during which the device has -had I/O requests queued. - -time_in_queue -============= - -This value counts the number of milliseconds that I/O requests have waited -on this block device. If there are multiple I/O requests waiting, this -value will increase as the product of the number of milliseconds times the -number of requests waiting (see "read ticks" above for an example). +=============================================== +Block layer statistics in /sys/block//stat +=============================================== + +This file documents the contents of the /sys/block//stat file. + +The stat file provides several statistics about the state of block +device . + +Q. + Why are there multiple statistics in a single file? Doesn't sysfs + normally contain a single value per file? + +A. + By having a single file, the kernel can guarantee that the statistics + represent a consistent snapshot of the state of the device. If the + statistics were exported as multiple files containing one statistic + each, it would be impossible to guarantee that a set of readings + represent a single point in time. + +The stat file consists of a single line of text containing 17 decimal +values separated by whitespace. The fields are summarized in the +following table, and described in more detail below. + + +=============== ============= ================================================= +Name units description +=============== ============= ================================================= +read I/Os requests number of read I/Os processed +read merges requests number of read I/Os merged with in-queue I/O +read sectors sectors number of sectors read +read ticks milliseconds total wait time for read requests +write I/Os requests number of write I/Os processed +write merges requests number of write I/Os merged with in-queue I/O +write sectors sectors number of sectors written +write ticks milliseconds total wait time for write requests +in_flight requests number of I/Os currently in flight +io_ticks milliseconds total time this block device has been active +time_in_queue milliseconds total wait time for all requests +discard I/Os requests number of discard I/Os processed +discard merges requests number of discard I/Os merged with in-queue I/O +discard sectors sectors number of sectors discarded +discard ticks milliseconds total wait time for discard requests +flush I/Os requests number of flush I/Os processed +flush ticks milliseconds total wait time for flush requests +=============== ============= ================================================= + +read I/Os, write I/Os, discard I/0s +=================================== + +These values increment when an I/O request completes. + +flush I/Os +========== + +These values increment when an flush I/O request completes. + +Block layer combines flush requests and executes at most one at a time. +This counts flush requests executed by disk. Not tracked for partitions. + +read merges, write merges, discard merges +========================================= + +These values increment when an I/O request is merged with an +already-queued I/O request. + +read sectors, write sectors, discard_sectors +============================================ + +These values count the number of sectors read from, written to, or +discarded from this block device. The "sectors" in question are the +standard UNIX 512-byte sectors, not any device- or filesystem-specific +block size. The counters are incremented when the I/O completes. + +read ticks, write ticks, discard ticks, flush ticks +=================================================== + +These values count the number of milliseconds that I/O requests have +waited on this block device. If there are multiple I/O requests waiting, +these values will increase at a rate greater than 1000/second; for +example, if 60 read requests wait for an average of 30 ms, the read_ticks +field will increase by 60*30 = 1800. + +in_flight +========= + +This value counts the number of I/O requests that have been issued to +the device driver but have not yet completed. It does not include I/O +requests that are in the queue but not yet issued to the device driver. + +io_ticks +======== + +This value counts the number of milliseconds during which the device has +had I/O requests queued. + +time_in_queue +============= + +This value counts the number of milliseconds that I/O requests have waited +on this block device. If there are multiple I/O requests waiting, this +value will increase as the product of the number of milliseconds times the +number of requests waiting (see "read ticks" above for an example). diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/block/writeback_cache_control.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/block/writeback_cache_control.rst index 1d623fcbf..c3707d071 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/block/writeback_cache_control.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/block/writeback_cache_control.rst @@ -1,95 +1,95 @@ -========================================== -Explicit volatile write back cache control -========================================== - -Introduction ------------- - -Many storage devices, especially in the consumer market, come with volatile -write back caches. That means the devices signal I/O completion to the -operating system before data actually has hit the non-volatile storage. This -behavior obviously speeds up various workloads, but it means the operating -system needs to force data out to the non-volatile storage when it performs -a data integrity operation like fsync, sync or an unmount. - -The Linux block layer provides two simple mechanisms that let filesystems -control the caching behavior of the storage device. These mechanisms are -a forced cache flush, and the Force Unit Access (FUA) flag for requests. - - -Explicit cache flushes ----------------------- - -The REQ_PREFLUSH flag can be OR ed into the r/w flags of a bio submitted from -the filesystem and will make sure the volatile cache of the storage device -has been flushed before the actual I/O operation is started. This explicitly -guarantees that previously completed write requests are on non-volatile -storage before the flagged bio starts. In addition the REQ_PREFLUSH flag can be -set on an otherwise empty bio structure, which causes only an explicit cache -flush without any dependent I/O. It is recommend to use -the blkdev_issue_flush() helper for a pure cache flush. - - -Forced Unit Access ------------------- - -The REQ_FUA flag can be OR ed into the r/w flags of a bio submitted from the -filesystem and will make sure that I/O completion for this request is only -signaled after the data has been committed to non-volatile storage. - - -Implementation details for filesystems --------------------------------------- - -Filesystems can simply set the REQ_PREFLUSH and REQ_FUA bits and do not have to -worry if the underlying devices need any explicit cache flushing and how -the Forced Unit Access is implemented. The REQ_PREFLUSH and REQ_FUA flags -may both be set on a single bio. - -Feature settings for block drivers ----------------------------------- - -For devices that do not support volatile write caches there is no driver -support required, the block layer completes empty REQ_PREFLUSH requests before -entering the driver and strips off the REQ_PREFLUSH and REQ_FUA bits from -requests that have a payload. - -For devices with volatile write caches the driver needs to tell the block layer -that it supports flushing caches by setting the - - BLK_FEAT_WRITE_CACHE - -flag in the queue_limits feature field. For devices that also support the FUA -bit the block layer needs to be told to pass on the REQ_FUA bit by also setting -the - - BLK_FEAT_FUA - -flag in the features field of the queue_limits structure. - -Implementation details for bio based block drivers --------------------------------------------------- - -For bio based drivers the REQ_PREFLUSH and REQ_FUA bit are simply passed on to -the driver if the driver sets the BLK_FEAT_WRITE_CACHE flag and the driver -needs to handle them. - -*NOTE*: The REQ_FUA bit also gets passed on when the BLK_FEAT_FUA flags is -_not_ set. Any bio based driver that sets BLK_FEAT_WRITE_CACHE also needs to -handle REQ_FUA. - -For remapping drivers the REQ_FUA bits need to be propagated to underlying -devices, and a global flush needs to be implemented for bios with the -REQ_PREFLUSH bit set. - -Implementation details for blk-mq drivers ------------------------------------------ - -When the BLK_FEAT_WRITE_CACHE flag is set, REQ_OP_WRITE | REQ_PREFLUSH requests -with a payload are automatically turned into a sequence of a REQ_OP_FLUSH -request followed by the actual write by the block layer. - -When the BLK_FEAT_FUA flags is set, the REQ_FUA bit is simply passed on for the -REQ_OP_WRITE request, else a REQ_OP_FLUSH request is sent by the block layer -after the completion of the write request for bio submissions with the REQ_FUA -bit set. +========================================== +Explicit volatile write back cache control +========================================== + +Introduction +------------ + +Many storage devices, especially in the consumer market, come with volatile +write back caches. That means the devices signal I/O completion to the +operating system before data actually has hit the non-volatile storage. This +behavior obviously speeds up various workloads, but it means the operating +system needs to force data out to the non-volatile storage when it performs +a data integrity operation like fsync, sync or an unmount. + +The Linux block layer provides two simple mechanisms that let filesystems +control the caching behavior of the storage device. These mechanisms are +a forced cache flush, and the Force Unit Access (FUA) flag for requests. + + +Explicit cache flushes +---------------------- + +The REQ_PREFLUSH flag can be OR ed into the r/w flags of a bio submitted from +the filesystem and will make sure the volatile cache of the storage device +has been flushed before the actual I/O operation is started. This explicitly +guarantees that previously completed write requests are on non-volatile +storage before the flagged bio starts. In addition the REQ_PREFLUSH flag can be +set on an otherwise empty bio structure, which causes only an explicit cache +flush without any dependent I/O. It is recommend to use +the blkdev_issue_flush() helper for a pure cache flush. + + +Forced Unit Access +------------------ + +The REQ_FUA flag can be OR ed into the r/w flags of a bio submitted from the +filesystem and will make sure that I/O completion for this request is only +signaled after the data has been committed to non-volatile storage. + + +Implementation details for filesystems +-------------------------------------- + +Filesystems can simply set the REQ_PREFLUSH and REQ_FUA bits and do not have to +worry if the underlying devices need any explicit cache flushing and how +the Forced Unit Access is implemented. The REQ_PREFLUSH and REQ_FUA flags +may both be set on a single bio. + +Feature settings for block drivers +---------------------------------- + +For devices that do not support volatile write caches there is no driver +support required, the block layer completes empty REQ_PREFLUSH requests before +entering the driver and strips off the REQ_PREFLUSH and REQ_FUA bits from +requests that have a payload. + +For devices with volatile write caches the driver needs to tell the block layer +that it supports flushing caches by setting the + + BLK_FEAT_WRITE_CACHE + +flag in the queue_limits feature field. For devices that also support the FUA +bit the block layer needs to be told to pass on the REQ_FUA bit by also setting +the + + BLK_FEAT_FUA + +flag in the features field of the queue_limits structure. + +Implementation details for bio based block drivers +-------------------------------------------------- + +For bio based drivers the REQ_PREFLUSH and REQ_FUA bit are simply passed on to +the driver if the driver sets the BLK_FEAT_WRITE_CACHE flag and the driver +needs to handle them. + +*NOTE*: The REQ_FUA bit also gets passed on when the BLK_FEAT_FUA flags is +_not_ set. Any bio based driver that sets BLK_FEAT_WRITE_CACHE also needs to +handle REQ_FUA. + +For remapping drivers the REQ_FUA bits need to be propagated to underlying +devices, and a global flush needs to be implemented for bios with the +REQ_PREFLUSH bit set. + +Implementation details for blk-mq drivers +----------------------------------------- + +When the BLK_FEAT_WRITE_CACHE flag is set, REQ_OP_WRITE | REQ_PREFLUSH requests +with a payload are automatically turned into a sequence of a REQ_OP_FLUSH +request followed by the actual write by the block layer. + +When the BLK_FEAT_FUA flags is set, the REQ_FUA bit is simply passed on for the +REQ_OP_WRITE request, else a REQ_OP_FLUSH request is sent by the block layer +after the completion of the write request for bio submissions with the REQ_FUA +bit set. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/bpf_licensing.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/bpf_licensing.rst index 27850fc40..b19c433f4 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/bpf_licensing.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/bpf_licensing.rst @@ -1,92 +1,92 @@ -============= -BPF licensing -============= - -Background -========== - -* Classic BPF was BSD licensed - -"BPF" was originally introduced as BSD Packet Filter in -http://www.tcpdump.org/papers/bpf-usenix93.pdf. The corresponding instruction -set and its implementation came from BSD with BSD license. That original -instruction set is now known as "classic BPF". - -However an instruction set is a specification for machine-language interaction, -similar to a programming language. It is not a code. Therefore, the -application of a BSD license may be misleading in a certain context, as the -instruction set may enjoy no copyright protection. - -* eBPF (extended BPF) instruction set continues to be BSD - -In 2014, the classic BPF instruction set was significantly extended. We -typically refer to this instruction set as eBPF to disambiguate it from cBPF. -The eBPF instruction set is still BSD licensed. - -Implementations of eBPF -======================= - -Using the eBPF instruction set requires implementing code in both kernel space -and user space. - -In Linux Kernel ---------------- - -The reference implementations of the eBPF interpreter and various just-in-time -compilers are part of Linux and are GPLv2 licensed. The implementation of -eBPF helper functions is also GPLv2 licensed. Interpreters, JITs, helpers, -and verifiers are called eBPF runtime. - -In User Space -------------- - -There are also implementations of eBPF runtime (interpreter, JITs, helper -functions) under -Apache2 (https://github.com/iovisor/ubpf), -MIT (https://github.com/qmonnet/rbpf), and -BSD (https://github.com/DPDK/dpdk/blob/main/lib/librte_bpf). - -In HW ------ - -The HW can choose to execute eBPF instruction natively and provide eBPF runtime -in HW or via the use of implementing firmware with a proprietary license. - -In other operating systems --------------------------- - -Other kernels or user space implementations of eBPF instruction set and runtime -can have proprietary licenses. - -Using BPF programs in the Linux kernel -====================================== - -Linux Kernel (while being GPLv2) allows linking of proprietary kernel modules -under these rules: -Documentation/process/license-rules.rst - -When a kernel module is loaded, the linux kernel checks which functions it -intends to use. If any function is marked as "GPL only," the corresponding -module or program has to have GPL compatible license. - -Loading BPF program into the Linux kernel is similar to loading a kernel -module. BPF is loaded at run time and not statically linked to the Linux -kernel. BPF program loading follows the same license checking rules as kernel -modules. BPF programs can be proprietary if they don't use "GPL only" BPF -helper functions. - -Further, some BPF program types - Linux Security Modules (LSM) and TCP -Congestion Control (struct_ops), as of Aug 2021 - are required to be GPL -compatible even if they don't use "GPL only" helper functions directly. The -registration step of LSM and TCP congestion control modules of the Linux -kernel is done through EXPORT_SYMBOL_GPL kernel functions. In that sense LSM -and struct_ops BPF programs are implicitly calling "GPL only" functions. -The same restriction applies to BPF programs that call kernel functions -directly via unstable interface also known as "kfunc". - -Packaging BPF programs with user space applications -==================================================== - -Generally, proprietary-licensed applications and GPL licensed BPF programs -written for the Linux kernel in the same package can co-exist because they are -separate executable processes. This applies to both cBPF and eBPF programs. +============= +BPF licensing +============= + +Background +========== + +* Classic BPF was BSD licensed + +"BPF" was originally introduced as BSD Packet Filter in +http://www.tcpdump.org/papers/bpf-usenix93.pdf. The corresponding instruction +set and its implementation came from BSD with BSD license. That original +instruction set is now known as "classic BPF". + +However an instruction set is a specification for machine-language interaction, +similar to a programming language. It is not a code. Therefore, the +application of a BSD license may be misleading in a certain context, as the +instruction set may enjoy no copyright protection. + +* eBPF (extended BPF) instruction set continues to be BSD + +In 2014, the classic BPF instruction set was significantly extended. We +typically refer to this instruction set as eBPF to disambiguate it from cBPF. +The eBPF instruction set is still BSD licensed. + +Implementations of eBPF +======================= + +Using the eBPF instruction set requires implementing code in both kernel space +and user space. + +In Linux Kernel +--------------- + +The reference implementations of the eBPF interpreter and various just-in-time +compilers are part of Linux and are GPLv2 licensed. The implementation of +eBPF helper functions is also GPLv2 licensed. Interpreters, JITs, helpers, +and verifiers are called eBPF runtime. + +In User Space +------------- + +There are also implementations of eBPF runtime (interpreter, JITs, helper +functions) under +Apache2 (https://github.com/iovisor/ubpf), +MIT (https://github.com/qmonnet/rbpf), and +BSD (https://github.com/DPDK/dpdk/blob/main/lib/librte_bpf). + +In HW +----- + +The HW can choose to execute eBPF instruction natively and provide eBPF runtime +in HW or via the use of implementing firmware with a proprietary license. + +In other operating systems +-------------------------- + +Other kernels or user space implementations of eBPF instruction set and runtime +can have proprietary licenses. + +Using BPF programs in the Linux kernel +====================================== + +Linux Kernel (while being GPLv2) allows linking of proprietary kernel modules +under these rules: +Documentation/process/license-rules.rst + +When a kernel module is loaded, the linux kernel checks which functions it +intends to use. If any function is marked as "GPL only," the corresponding +module or program has to have GPL compatible license. + +Loading BPF program into the Linux kernel is similar to loading a kernel +module. BPF is loaded at run time and not statically linked to the Linux +kernel. BPF program loading follows the same license checking rules as kernel +modules. BPF programs can be proprietary if they don't use "GPL only" BPF +helper functions. + +Further, some BPF program types - Linux Security Modules (LSM) and TCP +Congestion Control (struct_ops), as of Aug 2021 - are required to be GPL +compatible even if they don't use "GPL only" helper functions directly. The +registration step of LSM and TCP congestion control modules of the Linux +kernel is done through EXPORT_SYMBOL_GPL kernel functions. In that sense LSM +and struct_ops BPF programs are implicitly calling "GPL only" functions. +The same restriction applies to BPF programs that call kernel functions +directly via unstable interface also known as "kfunc". + +Packaging BPF programs with user space applications +==================================================== + +Generally, proprietary-licensed applications and GPL licensed BPF programs +written for the Linux kernel in the same package can co-exist because they are +separate executable processes. This applies to both cBPF and eBPF programs. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/map_cgrp_storage.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/map_cgrp_storage.rst index 1b2552f96..5d3f603ef 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/map_cgrp_storage.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/map_cgrp_storage.rst @@ -1,109 +1,109 @@ -.. SPDX-License-Identifier: GPL-2.0-only -.. Copyright (C) 2022 Meta Platforms, Inc. and affiliates. - -========================= -BPF_MAP_TYPE_CGRP_STORAGE -========================= - -The ``BPF_MAP_TYPE_CGRP_STORAGE`` map type represents a local fix-sized -storage for cgroups. It is only available with ``CONFIG_CGROUPS``. -The programs are made available by the same Kconfig. The -data for a particular cgroup can be retrieved by looking up the map -with that cgroup. - -This document describes the usage and semantics of the -``BPF_MAP_TYPE_CGRP_STORAGE`` map type. - -Usage -===== - -The map key must be ``sizeof(int)`` representing a cgroup fd. -To access the storage in a program, use ``bpf_cgrp_storage_get``:: - - void *bpf_cgrp_storage_get(struct bpf_map *map, struct cgroup *cgroup, void *value, u64 flags) - -``flags`` could be 0 or ``BPF_LOCAL_STORAGE_GET_F_CREATE`` which indicates that -a new local storage will be created if one does not exist. - -The local storage can be removed with ``bpf_cgrp_storage_delete``:: - - long bpf_cgrp_storage_delete(struct bpf_map *map, struct cgroup *cgroup) - -The map is available to all program types. - -Examples -======== - -A BPF program example with BPF_MAP_TYPE_CGRP_STORAGE:: - - #include - #include - #include - - struct { - __uint(type, BPF_MAP_TYPE_CGRP_STORAGE); - __uint(map_flags, BPF_F_NO_PREALLOC); - __type(key, int); - __type(value, long); - } cgrp_storage SEC(".maps"); - - SEC("tp_btf/sys_enter") - int BPF_PROG(on_enter, struct pt_regs *regs, long id) - { - struct task_struct *task = bpf_get_current_task_btf(); - long *ptr; - - ptr = bpf_cgrp_storage_get(&cgrp_storage, task->cgroups->dfl_cgrp, 0, - BPF_LOCAL_STORAGE_GET_F_CREATE); - if (ptr) - __sync_fetch_and_add(ptr, 1); - - return 0; - } - -Userspace accessing map declared above:: - - #include - #include - - __u32 map_lookup(struct bpf_map *map, int cgrp_fd) - { - __u32 *value; - value = bpf_map_lookup_elem(bpf_map__fd(map), &cgrp_fd); - if (value) - return *value; - return 0; - } - -Difference Between BPF_MAP_TYPE_CGRP_STORAGE and BPF_MAP_TYPE_CGROUP_STORAGE -============================================================================ - -The old cgroup storage map ``BPF_MAP_TYPE_CGROUP_STORAGE`` has been marked as -deprecated (renamed to ``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED``). The new -``BPF_MAP_TYPE_CGRP_STORAGE`` map should be used instead. The following -illusates the main difference between ``BPF_MAP_TYPE_CGRP_STORAGE`` and -``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED``. - -(1). ``BPF_MAP_TYPE_CGRP_STORAGE`` can be used by all program types while - ``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED`` is available only to cgroup program types - like BPF_CGROUP_INET_INGRESS or BPF_CGROUP_SOCK_OPS, etc. - -(2). ``BPF_MAP_TYPE_CGRP_STORAGE`` supports local storage for more than one - cgroup while ``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED`` only supports one cgroup - which is attached by a BPF program. - -(3). ``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED`` allocates local storage at attach time so - ``bpf_get_local_storage()`` always returns non-NULL local storage. - ``BPF_MAP_TYPE_CGRP_STORAGE`` allocates local storage at runtime so - it is possible that ``bpf_cgrp_storage_get()`` may return null local storage. - To avoid such null local storage issue, user space can do - ``bpf_map_update_elem()`` to pre-allocate local storage before a BPF program - is attached. - -(4). ``BPF_MAP_TYPE_CGRP_STORAGE`` supports deleting local storage by a BPF program - while ``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED`` only deletes storage during - prog detach time. - -So overall, ``BPF_MAP_TYPE_CGRP_STORAGE`` supports all ``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED`` -functionality and beyond. It is recommended to use ``BPF_MAP_TYPE_CGRP_STORAGE`` -instead of ``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED``. +.. SPDX-License-Identifier: GPL-2.0-only +.. Copyright (C) 2022 Meta Platforms, Inc. and affiliates. + +========================= +BPF_MAP_TYPE_CGRP_STORAGE +========================= + +The ``BPF_MAP_TYPE_CGRP_STORAGE`` map type represents a local fix-sized +storage for cgroups. It is only available with ``CONFIG_CGROUPS``. +The programs are made available by the same Kconfig. The +data for a particular cgroup can be retrieved by looking up the map +with that cgroup. + +This document describes the usage and semantics of the +``BPF_MAP_TYPE_CGRP_STORAGE`` map type. + +Usage +===== + +The map key must be ``sizeof(int)`` representing a cgroup fd. +To access the storage in a program, use ``bpf_cgrp_storage_get``:: + + void *bpf_cgrp_storage_get(struct bpf_map *map, struct cgroup *cgroup, void *value, u64 flags) + +``flags`` could be 0 or ``BPF_LOCAL_STORAGE_GET_F_CREATE`` which indicates that +a new local storage will be created if one does not exist. + +The local storage can be removed with ``bpf_cgrp_storage_delete``:: + + long bpf_cgrp_storage_delete(struct bpf_map *map, struct cgroup *cgroup) + +The map is available to all program types. + +Examples +======== + +A BPF program example with BPF_MAP_TYPE_CGRP_STORAGE:: + + #include + #include + #include + + struct { + __uint(type, BPF_MAP_TYPE_CGRP_STORAGE); + __uint(map_flags, BPF_F_NO_PREALLOC); + __type(key, int); + __type(value, long); + } cgrp_storage SEC(".maps"); + + SEC("tp_btf/sys_enter") + int BPF_PROG(on_enter, struct pt_regs *regs, long id) + { + struct task_struct *task = bpf_get_current_task_btf(); + long *ptr; + + ptr = bpf_cgrp_storage_get(&cgrp_storage, task->cgroups->dfl_cgrp, 0, + BPF_LOCAL_STORAGE_GET_F_CREATE); + if (ptr) + __sync_fetch_and_add(ptr, 1); + + return 0; + } + +Userspace accessing map declared above:: + + #include + #include + + __u32 map_lookup(struct bpf_map *map, int cgrp_fd) + { + __u32 *value; + value = bpf_map_lookup_elem(bpf_map__fd(map), &cgrp_fd); + if (value) + return *value; + return 0; + } + +Difference Between BPF_MAP_TYPE_CGRP_STORAGE and BPF_MAP_TYPE_CGROUP_STORAGE +============================================================================ + +The old cgroup storage map ``BPF_MAP_TYPE_CGROUP_STORAGE`` has been marked as +deprecated (renamed to ``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED``). The new +``BPF_MAP_TYPE_CGRP_STORAGE`` map should be used instead. The following +illusates the main difference between ``BPF_MAP_TYPE_CGRP_STORAGE`` and +``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED``. + +(1). ``BPF_MAP_TYPE_CGRP_STORAGE`` can be used by all program types while + ``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED`` is available only to cgroup program types + like BPF_CGROUP_INET_INGRESS or BPF_CGROUP_SOCK_OPS, etc. + +(2). ``BPF_MAP_TYPE_CGRP_STORAGE`` supports local storage for more than one + cgroup while ``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED`` only supports one cgroup + which is attached by a BPF program. + +(3). ``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED`` allocates local storage at attach time so + ``bpf_get_local_storage()`` always returns non-NULL local storage. + ``BPF_MAP_TYPE_CGRP_STORAGE`` allocates local storage at runtime so + it is possible that ``bpf_cgrp_storage_get()`` may return null local storage. + To avoid such null local storage issue, user space can do + ``bpf_map_update_elem()`` to pre-allocate local storage before a BPF program + is attached. + +(4). ``BPF_MAP_TYPE_CGRP_STORAGE`` supports deleting local storage by a BPF program + while ``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED`` only deletes storage during + prog detach time. + +So overall, ``BPF_MAP_TYPE_CGRP_STORAGE`` supports all ``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED`` +functionality and beyond. It is recommended to use ``BPF_MAP_TYPE_CGRP_STORAGE`` +instead of ``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED``. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/map_of_maps.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/map_of_maps.rst index 7b97e80a7..7b5617c2d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/map_of_maps.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/map_of_maps.rst @@ -1,130 +1,130 @@ -.. SPDX-License-Identifier: GPL-2.0-only -.. Copyright (C) 2022 Red Hat, Inc. - -======================================================== -BPF_MAP_TYPE_ARRAY_OF_MAPS and BPF_MAP_TYPE_HASH_OF_MAPS -======================================================== - -.. note:: - - ``BPF_MAP_TYPE_ARRAY_OF_MAPS`` and ``BPF_MAP_TYPE_HASH_OF_MAPS`` were - introduced in kernel version 4.12 - -``BPF_MAP_TYPE_ARRAY_OF_MAPS`` and ``BPF_MAP_TYPE_HASH_OF_MAPS`` provide general -purpose support for map in map storage. One level of nesting is supported, where -an outer map contains instances of a single type of inner map, for example -``array_of_maps->sock_map``. - -When creating an outer map, an inner map instance is used to initialize the -metadata that the outer map holds about its inner maps. This inner map has a -separate lifetime from the outer map and can be deleted after the outer map has -been created. - -The outer map supports element lookup, update and delete from user space using -the syscall API. A BPF program is only allowed to do element lookup in the outer -map. - -.. note:: - - Multi-level nesting is not supported. - - Any BPF map type can be used as an inner map, except for - ``BPF_MAP_TYPE_PROG_ARRAY``. - - A BPF program cannot update or delete outer map entries. - -For ``BPF_MAP_TYPE_ARRAY_OF_MAPS`` the key is an unsigned 32-bit integer index -into the array. The array is a fixed size with ``max_entries`` elements that are -zero initialized when created. - -For ``BPF_MAP_TYPE_HASH_OF_MAPS`` the key type can be chosen when defining the -map. The kernel is responsible for allocating and freeing key/value pairs, up to -the max_entries limit that you specify. Hash maps use pre-allocation of hash -table elements by default. The ``BPF_F_NO_PREALLOC`` flag can be used to disable -pre-allocation when it is too memory expensive. - -Usage -===== - -Kernel BPF Helper ------------------ - -bpf_map_lookup_elem() -~~~~~~~~~~~~~~~~~~~~~ - -.. code-block:: c - - void *bpf_map_lookup_elem(struct bpf_map *map, const void *key) - -Inner maps can be retrieved using the ``bpf_map_lookup_elem()`` helper. This -helper returns a pointer to the inner map, or ``NULL`` if no entry was found. - -Examples -======== - -Kernel BPF Example ------------------- - -This snippet shows how to create and initialise an array of devmaps in a BPF -program. Note that the outer array can only be modified from user space using -the syscall API. - -.. code-block:: c - - struct inner_map { - __uint(type, BPF_MAP_TYPE_DEVMAP); - __uint(max_entries, 10); - __type(key, __u32); - __type(value, __u32); - } inner_map1 SEC(".maps"), inner_map2 SEC(".maps"); - - struct { - __uint(type, BPF_MAP_TYPE_ARRAY_OF_MAPS); - __uint(max_entries, 2); - __type(key, __u32); - __array(values, struct inner_map); - } outer_map SEC(".maps") = { - .values = { &inner_map1, - &inner_map2 } - }; - -See ``progs/test_btf_map_in_map.c`` in ``tools/testing/selftests/bpf`` for more -examples of declarative initialisation of outer maps. - -User Space ----------- - -This snippet shows how to create an array based outer map: - -.. code-block:: c - - int create_outer_array(int inner_fd) { - LIBBPF_OPTS(bpf_map_create_opts, opts, .inner_map_fd = inner_fd); - int fd; - - fd = bpf_map_create(BPF_MAP_TYPE_ARRAY_OF_MAPS, - "example_array", /* name */ - sizeof(__u32), /* key size */ - sizeof(__u32), /* value size */ - 256, /* max entries */ - &opts); /* create opts */ - return fd; - } - - -This snippet shows how to add an inner map to an outer map: - -.. code-block:: c - - int add_devmap(int outer_fd, int index, const char *name) { - int fd; - - fd = bpf_map_create(BPF_MAP_TYPE_DEVMAP, name, - sizeof(__u32), sizeof(__u32), 256, NULL); - if (fd < 0) - return fd; - - return bpf_map_update_elem(outer_fd, &index, &fd, BPF_ANY); - } - -References -========== - -- https://lore.kernel.org/netdev/20170322170035.923581-3-kafai@fb.com/ -- https://lore.kernel.org/netdev/20170322170035.923581-4-kafai@fb.com/ +.. SPDX-License-Identifier: GPL-2.0-only +.. Copyright (C) 2022 Red Hat, Inc. + +======================================================== +BPF_MAP_TYPE_ARRAY_OF_MAPS and BPF_MAP_TYPE_HASH_OF_MAPS +======================================================== + +.. note:: + - ``BPF_MAP_TYPE_ARRAY_OF_MAPS`` and ``BPF_MAP_TYPE_HASH_OF_MAPS`` were + introduced in kernel version 4.12 + +``BPF_MAP_TYPE_ARRAY_OF_MAPS`` and ``BPF_MAP_TYPE_HASH_OF_MAPS`` provide general +purpose support for map in map storage. One level of nesting is supported, where +an outer map contains instances of a single type of inner map, for example +``array_of_maps->sock_map``. + +When creating an outer map, an inner map instance is used to initialize the +metadata that the outer map holds about its inner maps. This inner map has a +separate lifetime from the outer map and can be deleted after the outer map has +been created. + +The outer map supports element lookup, update and delete from user space using +the syscall API. A BPF program is only allowed to do element lookup in the outer +map. + +.. note:: + - Multi-level nesting is not supported. + - Any BPF map type can be used as an inner map, except for + ``BPF_MAP_TYPE_PROG_ARRAY``. + - A BPF program cannot update or delete outer map entries. + +For ``BPF_MAP_TYPE_ARRAY_OF_MAPS`` the key is an unsigned 32-bit integer index +into the array. The array is a fixed size with ``max_entries`` elements that are +zero initialized when created. + +For ``BPF_MAP_TYPE_HASH_OF_MAPS`` the key type can be chosen when defining the +map. The kernel is responsible for allocating and freeing key/value pairs, up to +the max_entries limit that you specify. Hash maps use pre-allocation of hash +table elements by default. The ``BPF_F_NO_PREALLOC`` flag can be used to disable +pre-allocation when it is too memory expensive. + +Usage +===== + +Kernel BPF Helper +----------------- + +bpf_map_lookup_elem() +~~~~~~~~~~~~~~~~~~~~~ + +.. code-block:: c + + void *bpf_map_lookup_elem(struct bpf_map *map, const void *key) + +Inner maps can be retrieved using the ``bpf_map_lookup_elem()`` helper. This +helper returns a pointer to the inner map, or ``NULL`` if no entry was found. + +Examples +======== + +Kernel BPF Example +------------------ + +This snippet shows how to create and initialise an array of devmaps in a BPF +program. Note that the outer array can only be modified from user space using +the syscall API. + +.. code-block:: c + + struct inner_map { + __uint(type, BPF_MAP_TYPE_DEVMAP); + __uint(max_entries, 10); + __type(key, __u32); + __type(value, __u32); + } inner_map1 SEC(".maps"), inner_map2 SEC(".maps"); + + struct { + __uint(type, BPF_MAP_TYPE_ARRAY_OF_MAPS); + __uint(max_entries, 2); + __type(key, __u32); + __array(values, struct inner_map); + } outer_map SEC(".maps") = { + .values = { &inner_map1, + &inner_map2 } + }; + +See ``progs/test_btf_map_in_map.c`` in ``tools/testing/selftests/bpf`` for more +examples of declarative initialisation of outer maps. + +User Space +---------- + +This snippet shows how to create an array based outer map: + +.. code-block:: c + + int create_outer_array(int inner_fd) { + LIBBPF_OPTS(bpf_map_create_opts, opts, .inner_map_fd = inner_fd); + int fd; + + fd = bpf_map_create(BPF_MAP_TYPE_ARRAY_OF_MAPS, + "example_array", /* name */ + sizeof(__u32), /* key size */ + sizeof(__u32), /* value size */ + 256, /* max entries */ + &opts); /* create opts */ + return fd; + } + + +This snippet shows how to add an inner map to an outer map: + +.. code-block:: c + + int add_devmap(int outer_fd, int index, const char *name) { + int fd; + + fd = bpf_map_create(BPF_MAP_TYPE_DEVMAP, name, + sizeof(__u32), sizeof(__u32), 256, NULL); + if (fd < 0) + return fd; + + return bpf_map_update_elem(outer_fd, &index, &fd, BPF_ANY); + } + +References +========== + +- https://lore.kernel.org/netdev/20170322170035.923581-3-kafai@fb.com/ +- https://lore.kernel.org/netdev/20170322170035.923581-4-kafai@fb.com/ diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/map_queue_stack.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/map_queue_stack.rst index 971ce1bca..8d14ed49d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/map_queue_stack.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/map_queue_stack.rst @@ -1,146 +1,146 @@ -.. SPDX-License-Identifier: GPL-2.0-only -.. Copyright (C) 2022 Red Hat, Inc. - -========================================= -BPF_MAP_TYPE_QUEUE and BPF_MAP_TYPE_STACK -========================================= - -.. note:: - - ``BPF_MAP_TYPE_QUEUE`` and ``BPF_MAP_TYPE_STACK`` were introduced - in kernel version 4.20 - -``BPF_MAP_TYPE_QUEUE`` provides FIFO storage and ``BPF_MAP_TYPE_STACK`` -provides LIFO storage for BPF programs. These maps support peek, pop and -push operations that are exposed to BPF programs through the respective -helpers. These operations are exposed to userspace applications using -the existing ``bpf`` syscall in the following way: - -- ``BPF_MAP_LOOKUP_ELEM`` -> peek -- ``BPF_MAP_LOOKUP_AND_DELETE_ELEM`` -> pop -- ``BPF_MAP_UPDATE_ELEM`` -> push - -``BPF_MAP_TYPE_QUEUE`` and ``BPF_MAP_TYPE_STACK`` do not support -``BPF_F_NO_PREALLOC``. - -Usage -===== - -Kernel BPF ----------- - -bpf_map_push_elem() -~~~~~~~~~~~~~~~~~~~ - -.. code-block:: c - - long bpf_map_push_elem(struct bpf_map *map, const void *value, u64 flags) - -An element ``value`` can be added to a queue or stack using the -``bpf_map_push_elem`` helper. The ``flags`` parameter must be set to -``BPF_ANY`` or ``BPF_EXIST``. If ``flags`` is set to ``BPF_EXIST`` then, -when the queue or stack is full, the oldest element will be removed to -make room for ``value`` to be added. Returns ``0`` on success, or -negative error in case of failure. - -bpf_map_peek_elem() -~~~~~~~~~~~~~~~~~~~ - -.. code-block:: c - - long bpf_map_peek_elem(struct bpf_map *map, void *value) - -This helper fetches an element ``value`` from a queue or stack without -removing it. Returns ``0`` on success, or negative error in case of -failure. - -bpf_map_pop_elem() -~~~~~~~~~~~~~~~~~~ - -.. code-block:: c - - long bpf_map_pop_elem(struct bpf_map *map, void *value) - -This helper removes an element into ``value`` from a queue or -stack. Returns ``0`` on success, or negative error in case of failure. - - -Userspace ---------- - -bpf_map_update_elem() -~~~~~~~~~~~~~~~~~~~~~ - -.. code-block:: c - - int bpf_map_update_elem (int fd, const void *key, const void *value, __u64 flags) - -A userspace program can push ``value`` onto a queue or stack using libbpf's -``bpf_map_update_elem`` function. The ``key`` parameter must be set to -``NULL`` and ``flags`` must be set to ``BPF_ANY`` or ``BPF_EXIST``, with the -same semantics as the ``bpf_map_push_elem`` kernel helper. Returns ``0`` on -success, or negative error in case of failure. - -bpf_map_lookup_elem() -~~~~~~~~~~~~~~~~~~~~~ - -.. code-block:: c - - int bpf_map_lookup_elem (int fd, const void *key, void *value) - -A userspace program can peek at the ``value`` at the head of a queue or stack -using the libbpf ``bpf_map_lookup_elem`` function. The ``key`` parameter must be -set to ``NULL``. Returns ``0`` on success, or negative error in case of -failure. - -bpf_map_lookup_and_delete_elem() -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -.. code-block:: c - - int bpf_map_lookup_and_delete_elem (int fd, const void *key, void *value) - -A userspace program can pop a ``value`` from the head of a queue or stack using -the libbpf ``bpf_map_lookup_and_delete_elem`` function. The ``key`` parameter -must be set to ``NULL``. Returns ``0`` on success, or negative error in case of -failure. - -Examples -======== - -Kernel BPF ----------- - -This snippet shows how to declare a queue in a BPF program: - -.. code-block:: c - - struct { - __uint(type, BPF_MAP_TYPE_QUEUE); - __type(value, __u32); - __uint(max_entries, 10); - } queue SEC(".maps"); - - -Userspace ---------- - -This snippet shows how to use libbpf's low-level API to create a queue from -userspace: - -.. code-block:: c - - int create_queue() - { - return bpf_map_create(BPF_MAP_TYPE_QUEUE, - "sample_queue", /* name */ - 0, /* key size, must be zero */ - sizeof(__u32), /* value size */ - 10, /* max entries */ - NULL); /* create options */ - } - - -References -========== - -https://lwn.net/ml/netdev/153986858555.9127.14517764371945179514.stgit@kernel/ +.. SPDX-License-Identifier: GPL-2.0-only +.. Copyright (C) 2022 Red Hat, Inc. + +========================================= +BPF_MAP_TYPE_QUEUE and BPF_MAP_TYPE_STACK +========================================= + +.. note:: + - ``BPF_MAP_TYPE_QUEUE`` and ``BPF_MAP_TYPE_STACK`` were introduced + in kernel version 4.20 + +``BPF_MAP_TYPE_QUEUE`` provides FIFO storage and ``BPF_MAP_TYPE_STACK`` +provides LIFO storage for BPF programs. These maps support peek, pop and +push operations that are exposed to BPF programs through the respective +helpers. These operations are exposed to userspace applications using +the existing ``bpf`` syscall in the following way: + +- ``BPF_MAP_LOOKUP_ELEM`` -> peek +- ``BPF_MAP_LOOKUP_AND_DELETE_ELEM`` -> pop +- ``BPF_MAP_UPDATE_ELEM`` -> push + +``BPF_MAP_TYPE_QUEUE`` and ``BPF_MAP_TYPE_STACK`` do not support +``BPF_F_NO_PREALLOC``. + +Usage +===== + +Kernel BPF +---------- + +bpf_map_push_elem() +~~~~~~~~~~~~~~~~~~~ + +.. code-block:: c + + long bpf_map_push_elem(struct bpf_map *map, const void *value, u64 flags) + +An element ``value`` can be added to a queue or stack using the +``bpf_map_push_elem`` helper. The ``flags`` parameter must be set to +``BPF_ANY`` or ``BPF_EXIST``. If ``flags`` is set to ``BPF_EXIST`` then, +when the queue or stack is full, the oldest element will be removed to +make room for ``value`` to be added. Returns ``0`` on success, or +negative error in case of failure. + +bpf_map_peek_elem() +~~~~~~~~~~~~~~~~~~~ + +.. code-block:: c + + long bpf_map_peek_elem(struct bpf_map *map, void *value) + +This helper fetches an element ``value`` from a queue or stack without +removing it. Returns ``0`` on success, or negative error in case of +failure. + +bpf_map_pop_elem() +~~~~~~~~~~~~~~~~~~ + +.. code-block:: c + + long bpf_map_pop_elem(struct bpf_map *map, void *value) + +This helper removes an element into ``value`` from a queue or +stack. Returns ``0`` on success, or negative error in case of failure. + + +Userspace +--------- + +bpf_map_update_elem() +~~~~~~~~~~~~~~~~~~~~~ + +.. code-block:: c + + int bpf_map_update_elem (int fd, const void *key, const void *value, __u64 flags) + +A userspace program can push ``value`` onto a queue or stack using libbpf's +``bpf_map_update_elem`` function. The ``key`` parameter must be set to +``NULL`` and ``flags`` must be set to ``BPF_ANY`` or ``BPF_EXIST``, with the +same semantics as the ``bpf_map_push_elem`` kernel helper. Returns ``0`` on +success, or negative error in case of failure. + +bpf_map_lookup_elem() +~~~~~~~~~~~~~~~~~~~~~ + +.. code-block:: c + + int bpf_map_lookup_elem (int fd, const void *key, void *value) + +A userspace program can peek at the ``value`` at the head of a queue or stack +using the libbpf ``bpf_map_lookup_elem`` function. The ``key`` parameter must be +set to ``NULL``. Returns ``0`` on success, or negative error in case of +failure. + +bpf_map_lookup_and_delete_elem() +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. code-block:: c + + int bpf_map_lookup_and_delete_elem (int fd, const void *key, void *value) + +A userspace program can pop a ``value`` from the head of a queue or stack using +the libbpf ``bpf_map_lookup_and_delete_elem`` function. The ``key`` parameter +must be set to ``NULL``. Returns ``0`` on success, or negative error in case of +failure. + +Examples +======== + +Kernel BPF +---------- + +This snippet shows how to declare a queue in a BPF program: + +.. code-block:: c + + struct { + __uint(type, BPF_MAP_TYPE_QUEUE); + __type(value, __u32); + __uint(max_entries, 10); + } queue SEC(".maps"); + + +Userspace +--------- + +This snippet shows how to use libbpf's low-level API to create a queue from +userspace: + +.. code-block:: c + + int create_queue() + { + return bpf_map_create(BPF_MAP_TYPE_QUEUE, + "sample_queue", /* name */ + 0, /* key size, must be zero */ + sizeof(__u32), /* value size */ + 10, /* max entries */ + NULL); /* create options */ + } + + +References +========== + +https://lwn.net/ml/netdev/153986858555.9127.14517764371945179514.stgit@kernel/ diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/prog_sk_lookup.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/prog_sk_lookup.rst index 43963957d..85a305c19 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/prog_sk_lookup.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/bpf/prog_sk_lookup.rst @@ -1,98 +1,98 @@ -.. SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) - -===================== -BPF sk_lookup program -===================== - -BPF sk_lookup program type (``BPF_PROG_TYPE_SK_LOOKUP``) introduces programmability -into the socket lookup performed by the transport layer when a packet is to be -delivered locally. - -When invoked BPF sk_lookup program can select a socket that will receive the -incoming packet by calling the ``bpf_sk_assign()`` BPF helper function. - -Hooks for a common attach point (``BPF_SK_LOOKUP``) exist for both TCP and UDP. - -Motivation -========== - -BPF sk_lookup program type was introduced to address setup scenarios where -binding sockets to an address with ``bind()`` socket call is impractical, such -as: - -1. receiving connections on a range of IP addresses, e.g. 192.0.2.0/24, when - binding to a wildcard address ``INADRR_ANY`` is not possible due to a port - conflict, -2. receiving connections on all or a wide range of ports, i.e. an L7 proxy use - case. - -Such setups would require creating and ``bind()``'ing one socket to each of the -IP address/port in the range, leading to resource consumption and potential -latency spikes during socket lookup. - -Attachment -========== - -BPF sk_lookup program can be attached to a network namespace with -``bpf(BPF_LINK_CREATE, ...)`` syscall using the ``BPF_SK_LOOKUP`` attach type and a -netns FD as attachment ``target_fd``. - -Multiple programs can be attached to one network namespace. Programs will be -invoked in the same order as they were attached. - -Hooks -===== - -The attached BPF sk_lookup programs run whenever the transport layer needs to -find a listening (TCP) or an unconnected (UDP) socket for an incoming packet. - -Incoming traffic to established (TCP) and connected (UDP) sockets is delivered -as usual without triggering the BPF sk_lookup hook. - -The attached BPF programs must return with either ``SK_PASS`` or ``SK_DROP`` -verdict code. As for other BPF program types that are network filters, -``SK_PASS`` signifies that the socket lookup should continue on to regular -hashtable-based lookup, while ``SK_DROP`` causes the transport layer to drop the -packet. - -A BPF sk_lookup program can also select a socket to receive the packet by -calling ``bpf_sk_assign()`` BPF helper. Typically, the program looks up a socket -in a map holding sockets, such as ``SOCKMAP`` or ``SOCKHASH``, and passes a -``struct bpf_sock *`` to ``bpf_sk_assign()`` helper to record the -selection. Selecting a socket only takes effect if the program has terminated -with ``SK_PASS`` code. - -When multiple programs are attached, the end result is determined from return -codes of all the programs according to the following rules: - -1. If any program returned ``SK_PASS`` and selected a valid socket, the socket - is used as the result of the socket lookup. -2. If more than one program returned ``SK_PASS`` and selected a socket, the last - selection takes effect. -3. If any program returned ``SK_DROP``, and no program returned ``SK_PASS`` and - selected a socket, socket lookup fails. -4. If all programs returned ``SK_PASS`` and none of them selected a socket, - socket lookup continues on. - -API -=== - -In its context, an instance of ``struct bpf_sk_lookup``, BPF sk_lookup program -receives information about the packet that triggered the socket lookup. Namely: - -* IP version (``AF_INET`` or ``AF_INET6``), -* L4 protocol identifier (``IPPROTO_TCP`` or ``IPPROTO_UDP``), -* source and destination IP address, -* source and destination L4 port, -* the socket that has been selected with ``bpf_sk_assign()``. - -Refer to ``struct bpf_sk_lookup`` declaration in ``linux/bpf.h`` user API -header, and `bpf-helpers(7) -`_ man-page section -for ``bpf_sk_assign()`` for details. - -Example -======= - -See ``tools/testing/selftests/bpf/prog_tests/sk_lookup.c`` for the reference -implementation. +.. SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +===================== +BPF sk_lookup program +===================== + +BPF sk_lookup program type (``BPF_PROG_TYPE_SK_LOOKUP``) introduces programmability +into the socket lookup performed by the transport layer when a packet is to be +delivered locally. + +When invoked BPF sk_lookup program can select a socket that will receive the +incoming packet by calling the ``bpf_sk_assign()`` BPF helper function. + +Hooks for a common attach point (``BPF_SK_LOOKUP``) exist for both TCP and UDP. + +Motivation +========== + +BPF sk_lookup program type was introduced to address setup scenarios where +binding sockets to an address with ``bind()`` socket call is impractical, such +as: + +1. receiving connections on a range of IP addresses, e.g. 192.0.2.0/24, when + binding to a wildcard address ``INADRR_ANY`` is not possible due to a port + conflict, +2. receiving connections on all or a wide range of ports, i.e. an L7 proxy use + case. + +Such setups would require creating and ``bind()``'ing one socket to each of the +IP address/port in the range, leading to resource consumption and potential +latency spikes during socket lookup. + +Attachment +========== + +BPF sk_lookup program can be attached to a network namespace with +``bpf(BPF_LINK_CREATE, ...)`` syscall using the ``BPF_SK_LOOKUP`` attach type and a +netns FD as attachment ``target_fd``. + +Multiple programs can be attached to one network namespace. Programs will be +invoked in the same order as they were attached. + +Hooks +===== + +The attached BPF sk_lookup programs run whenever the transport layer needs to +find a listening (TCP) or an unconnected (UDP) socket for an incoming packet. + +Incoming traffic to established (TCP) and connected (UDP) sockets is delivered +as usual without triggering the BPF sk_lookup hook. + +The attached BPF programs must return with either ``SK_PASS`` or ``SK_DROP`` +verdict code. As for other BPF program types that are network filters, +``SK_PASS`` signifies that the socket lookup should continue on to regular +hashtable-based lookup, while ``SK_DROP`` causes the transport layer to drop the +packet. + +A BPF sk_lookup program can also select a socket to receive the packet by +calling ``bpf_sk_assign()`` BPF helper. Typically, the program looks up a socket +in a map holding sockets, such as ``SOCKMAP`` or ``SOCKHASH``, and passes a +``struct bpf_sock *`` to ``bpf_sk_assign()`` helper to record the +selection. Selecting a socket only takes effect if the program has terminated +with ``SK_PASS`` code. + +When multiple programs are attached, the end result is determined from return +codes of all the programs according to the following rules: + +1. If any program returned ``SK_PASS`` and selected a valid socket, the socket + is used as the result of the socket lookup. +2. If more than one program returned ``SK_PASS`` and selected a socket, the last + selection takes effect. +3. If any program returned ``SK_DROP``, and no program returned ``SK_PASS`` and + selected a socket, socket lookup fails. +4. If all programs returned ``SK_PASS`` and none of them selected a socket, + socket lookup continues on. + +API +=== + +In its context, an instance of ``struct bpf_sk_lookup``, BPF sk_lookup program +receives information about the packet that triggered the socket lookup. Namely: + +* IP version (``AF_INET`` or ``AF_INET6``), +* L4 protocol identifier (``IPPROTO_TCP`` or ``IPPROTO_UDP``), +* source and destination IP address, +* source and destination L4 port, +* the socket that has been selected with ``bpf_sk_assign()``. + +Refer to ``struct bpf_sk_lookup`` declaration in ``linux/bpf.h`` user API +header, and `bpf-helpers(7) +`_ man-page section +for ``bpf_sk_assign()`` for details. + +Example +======= + +See ``tools/testing/selftests/bpf/prog_tests/sk_lookup.c`` for the reference +implementation. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/cdrom/packet-writing.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/cdrom/packet-writing.rst index d95b0c0f2..43db58c50 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/cdrom/packet-writing.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/cdrom/packet-writing.rst @@ -1,139 +1,139 @@ -============== -Packet writing -============== - -Getting started quick ---------------------- - -- Select packet support in the block device section and UDF support in - the file system section. - -- Compile and install kernel and modules, reboot. - -- You need the udftools package (pktsetup, mkudffs, cdrwtool). - Download from https://github.com/pali/udftools - -- Grab a new CD-RW disc and format it (assuming CD-RW is hdc, substitute - as appropriate):: - - # cdrwtool -d /dev/hdc -q - -- Setup your writer:: - - # pktsetup dev_name /dev/hdc - -- Now you can mount /dev/pktcdvd/dev_name and copy files to it. Enjoy:: - - # mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime - - -Packet writing for DVD-RW media -------------------------------- - -DVD-RW discs can be written to much like CD-RW discs if they are in -the so called "restricted overwrite" mode. To put a disc in restricted -overwrite mode, run:: - - # dvd+rw-format /dev/hdc - -You can then use the disc the same way you would use a CD-RW disc:: - - # pktsetup dev_name /dev/hdc - # mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime - - -Packet writing for DVD+RW media -------------------------------- - -According to the DVD+RW specification, a drive supporting DVD+RW discs -shall implement "true random writes with 2KB granularity", which means -that it should be possible to put any filesystem with a block size >= -2KB on such a disc. For example, it should be possible to do:: - - # dvd+rw-format /dev/hdc (only needed if the disc has never - been formatted) - # mkudffs /dev/hdc - # mount /dev/hdc /cdrom -t udf -o rw,noatime - -However, some drives don't follow the specification and expect the -host to perform aligned writes at 32KB boundaries. Other drives do -follow the specification, but suffer bad performance problems if the -writes are not 32KB aligned. - -Both problems can be solved by using the pktcdvd driver, which always -generates aligned writes:: - - # dvd+rw-format /dev/hdc - # pktsetup dev_name /dev/hdc - # mkudffs /dev/pktcdvd/dev_name - # mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime - - -Packet writing for DVD-RAM media --------------------------------- - -DVD-RAM discs are random writable, so using the pktcdvd driver is not -necessary. However, using the pktcdvd driver can improve performance -in the same way it does for DVD+RW media. - - -Notes ------ - -- CD-RW media can usually not be overwritten more than about 1000 - times, so to avoid unnecessary wear on the media, you should always - use the noatime mount option. - -- Defect management (ie automatic remapping of bad sectors) has not - been implemented yet, so you are likely to get at least some - filesystem corruption if the disc wears out. - -- Since the pktcdvd driver makes the disc appear as a regular block - device with a 2KB block size, you can put any filesystem you like on - the disc. For example, run:: - - # /sbin/mke2fs /dev/pktcdvd/dev_name - - to create an ext2 filesystem on the disc. - - -Using the pktcdvd sysfs interface ---------------------------------- - -Since Linux 2.6.20, the pktcdvd module has a sysfs interface -and can be controlled by it. For example the "pktcdvd" tool uses -this interface. (see http://tom.ist-im-web.de/linux/software/pktcdvd ) - -"pktcdvd" works similar to "pktsetup", e.g.:: - - # pktcdvd -a dev_name /dev/hdc - # mkudffs /dev/pktcdvd/dev_name - # mount -t udf -o rw,noatime /dev/pktcdvd/dev_name /dvdram - # cp files /dvdram - # umount /dvdram - # pktcdvd -r dev_name - - -For a description of the sysfs interface look into the file: - - Documentation/ABI/testing/sysfs-class-pktcdvd - - -Using the pktcdvd debugfs interface ------------------------------------ - -To read pktcdvd device infos in human readable form, do:: - - # cat /sys/kernel/debug/pktcdvd/pktcdvd[0-7]/info - -For a description of the debugfs interface look into the file: - - Documentation/ABI/testing/debugfs-pktcdvd - - - -Links ------ - -See http://fy.chalmers.se/~appro/linux/DVD+RW/ for more information -about DVD writing. +============== +Packet writing +============== + +Getting started quick +--------------------- + +- Select packet support in the block device section and UDF support in + the file system section. + +- Compile and install kernel and modules, reboot. + +- You need the udftools package (pktsetup, mkudffs, cdrwtool). + Download from https://github.com/pali/udftools + +- Grab a new CD-RW disc and format it (assuming CD-RW is hdc, substitute + as appropriate):: + + # cdrwtool -d /dev/hdc -q + +- Setup your writer:: + + # pktsetup dev_name /dev/hdc + +- Now you can mount /dev/pktcdvd/dev_name and copy files to it. Enjoy:: + + # mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime + + +Packet writing for DVD-RW media +------------------------------- + +DVD-RW discs can be written to much like CD-RW discs if they are in +the so called "restricted overwrite" mode. To put a disc in restricted +overwrite mode, run:: + + # dvd+rw-format /dev/hdc + +You can then use the disc the same way you would use a CD-RW disc:: + + # pktsetup dev_name /dev/hdc + # mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime + + +Packet writing for DVD+RW media +------------------------------- + +According to the DVD+RW specification, a drive supporting DVD+RW discs +shall implement "true random writes with 2KB granularity", which means +that it should be possible to put any filesystem with a block size >= +2KB on such a disc. For example, it should be possible to do:: + + # dvd+rw-format /dev/hdc (only needed if the disc has never + been formatted) + # mkudffs /dev/hdc + # mount /dev/hdc /cdrom -t udf -o rw,noatime + +However, some drives don't follow the specification and expect the +host to perform aligned writes at 32KB boundaries. Other drives do +follow the specification, but suffer bad performance problems if the +writes are not 32KB aligned. + +Both problems can be solved by using the pktcdvd driver, which always +generates aligned writes:: + + # dvd+rw-format /dev/hdc + # pktsetup dev_name /dev/hdc + # mkudffs /dev/pktcdvd/dev_name + # mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime + + +Packet writing for DVD-RAM media +-------------------------------- + +DVD-RAM discs are random writable, so using the pktcdvd driver is not +necessary. However, using the pktcdvd driver can improve performance +in the same way it does for DVD+RW media. + + +Notes +----- + +- CD-RW media can usually not be overwritten more than about 1000 + times, so to avoid unnecessary wear on the media, you should always + use the noatime mount option. + +- Defect management (ie automatic remapping of bad sectors) has not + been implemented yet, so you are likely to get at least some + filesystem corruption if the disc wears out. + +- Since the pktcdvd driver makes the disc appear as a regular block + device with a 2KB block size, you can put any filesystem you like on + the disc. For example, run:: + + # /sbin/mke2fs /dev/pktcdvd/dev_name + + to create an ext2 filesystem on the disc. + + +Using the pktcdvd sysfs interface +--------------------------------- + +Since Linux 2.6.20, the pktcdvd module has a sysfs interface +and can be controlled by it. For example the "pktcdvd" tool uses +this interface. (see http://tom.ist-im-web.de/linux/software/pktcdvd ) + +"pktcdvd" works similar to "pktsetup", e.g.:: + + # pktcdvd -a dev_name /dev/hdc + # mkudffs /dev/pktcdvd/dev_name + # mount -t udf -o rw,noatime /dev/pktcdvd/dev_name /dvdram + # cp files /dvdram + # umount /dvdram + # pktcdvd -r dev_name + + +For a description of the sysfs interface look into the file: + + Documentation/ABI/testing/sysfs-class-pktcdvd + + +Using the pktcdvd debugfs interface +----------------------------------- + +To read pktcdvd device infos in human readable form, do:: + + # cat /sys/kernel/debug/pktcdvd/pktcdvd[0-7]/info + +For a description of the debugfs interface look into the file: + + Documentation/ABI/testing/debugfs-pktcdvd + + + +Links +----- + +See http://fy.chalmers.se/~appro/linux/DVD+RW/ for more information +about DVD writing. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/core-api/floating-point.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/core-api/floating-point.rst index 34f942fd3..a8d0d4b05 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/core-api/floating-point.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/core-api/floating-point.rst @@ -1,78 +1,78 @@ -.. SPDX-License-Identifier: GPL-2.0+ - -Floating-point API -================== - -Kernel code is normally prohibited from using floating-point (FP) registers or -instructions, including the C float and double data types. This rule reduces -system call overhead, because the kernel does not need to save and restore the -userspace floating-point register state. - -However, occasionally drivers or library functions may need to include FP code. -This is supported by isolating the functions containing FP code to a separate -translation unit (a separate source file), and saving/restoring the FP register -state around calls to those functions. This creates "critical sections" of -floating-point usage. - -The reason for this isolation is to prevent the compiler from generating code -touching the FP registers outside these critical sections. Compilers sometimes -use FP registers to optimize inlined ``memcpy`` or variable assignment, as -floating-point registers may be wider than general-purpose registers. - -Usability of floating-point code within the kernel is architecture-specific. -Additionally, because a single kernel may be configured to support platforms -both with and without a floating-point unit, FPU availability must be checked -both at build time and at run time. - -Several architectures implement the generic kernel floating-point API from -``linux/fpu.h``, as described below. Some other architectures implement their -own unique APIs, which are documented separately. - -Build-time API --------------- - -Floating-point code may be built if the option ``ARCH_HAS_KERNEL_FPU_SUPPORT`` -is enabled. For C code, such code must be placed in a separate file, and that -file must have its compilation flags adjusted using the following pattern:: - - CFLAGS_foo.o += $(CC_FLAGS_FPU) - CFLAGS_REMOVE_foo.o += $(CC_FLAGS_NO_FPU) - -Architectures are expected to define one or both of these variables in their -top-level Makefile as needed. For example:: - - CC_FLAGS_FPU := -mhard-float - -or:: - - CC_FLAGS_NO_FPU := -msoft-float - -Normal kernel code is assumed to use the equivalent of ``CC_FLAGS_NO_FPU``. - -Runtime API ------------ - -The runtime API is provided in ``linux/fpu.h``. This header cannot be included -from files implementing FP code (those with their compilation flags adjusted as -above). Instead, it must be included when defining the FP critical sections. - -.. c:function:: bool kernel_fpu_available( void ) - - This function reports if floating-point code can be used on this CPU or - platform. The value returned by this function is not expected to change - at runtime, so it only needs to be called once, not before every - critical section. - -.. c:function:: void kernel_fpu_begin( void ) - void kernel_fpu_end( void ) - - These functions create a floating-point critical section. It is only - valid to call ``kernel_fpu_begin()`` after a previous call to - ``kernel_fpu_available()`` returned ``true``. These functions are only - guaranteed to be callable from (preemptible or non-preemptible) process - context. - - Preemption may be disabled inside critical sections, so their size - should be minimized. They are *not* required to be reentrant. If the - caller expects to nest critical sections, it must implement its own - reference counting. +.. SPDX-License-Identifier: GPL-2.0+ + +Floating-point API +================== + +Kernel code is normally prohibited from using floating-point (FP) registers or +instructions, including the C float and double data types. This rule reduces +system call overhead, because the kernel does not need to save and restore the +userspace floating-point register state. + +However, occasionally drivers or library functions may need to include FP code. +This is supported by isolating the functions containing FP code to a separate +translation unit (a separate source file), and saving/restoring the FP register +state around calls to those functions. This creates "critical sections" of +floating-point usage. + +The reason for this isolation is to prevent the compiler from generating code +touching the FP registers outside these critical sections. Compilers sometimes +use FP registers to optimize inlined ``memcpy`` or variable assignment, as +floating-point registers may be wider than general-purpose registers. + +Usability of floating-point code within the kernel is architecture-specific. +Additionally, because a single kernel may be configured to support platforms +both with and without a floating-point unit, FPU availability must be checked +both at build time and at run time. + +Several architectures implement the generic kernel floating-point API from +``linux/fpu.h``, as described below. Some other architectures implement their +own unique APIs, which are documented separately. + +Build-time API +-------------- + +Floating-point code may be built if the option ``ARCH_HAS_KERNEL_FPU_SUPPORT`` +is enabled. For C code, such code must be placed in a separate file, and that +file must have its compilation flags adjusted using the following pattern:: + + CFLAGS_foo.o += $(CC_FLAGS_FPU) + CFLAGS_REMOVE_foo.o += $(CC_FLAGS_NO_FPU) + +Architectures are expected to define one or both of these variables in their +top-level Makefile as needed. For example:: + + CC_FLAGS_FPU := -mhard-float + +or:: + + CC_FLAGS_NO_FPU := -msoft-float + +Normal kernel code is assumed to use the equivalent of ``CC_FLAGS_NO_FPU``. + +Runtime API +----------- + +The runtime API is provided in ``linux/fpu.h``. This header cannot be included +from files implementing FP code (those with their compilation flags adjusted as +above). Instead, it must be included when defining the FP critical sections. + +.. c:function:: bool kernel_fpu_available( void ) + + This function reports if floating-point code can be used on this CPU or + platform. The value returned by this function is not expected to change + at runtime, so it only needs to be called once, not before every + critical section. + +.. c:function:: void kernel_fpu_begin( void ) + void kernel_fpu_end( void ) + + These functions create a floating-point critical section. It is only + valid to call ``kernel_fpu_begin()`` after a previous call to + ``kernel_fpu_available()`` returned ``true``. These functions are only + guaranteed to be callable from (preemptible or non-preemptible) process + context. + + Preemption may be disabled inside critical sections, so their size + should be minimized. They are *not* required to be reentrant. If the + caller expects to nest critical sections, it must implement its own + reference counting. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/core-api/netlink.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/core-api/netlink.rst index 741512a7a..9f692b02b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/core-api/netlink.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/core-api/netlink.rst @@ -1,102 +1,102 @@ -.. SPDX-License-Identifier: BSD-3-Clause - -.. _kernel_netlink: - -=================================== -Netlink notes for kernel developers -=================================== - -General guidance -================ - -Attribute enums ---------------- - -Older families often define "null" attributes and commands with value -of ``0`` and named ``unspec``. This is supported (``type: unused``) -but should be avoided in new families. The ``unspec`` enum values are -not used in practice, so just set the value of the first attribute to ``1``. - -Message enums -------------- - -Use the same command IDs for requests and replies. This makes it easier -to match them up, and we have plenty of ID space. - -Use separate command IDs for notifications. This makes it easier to -sort the notifications from replies (and present them to the user -application via a different API than replies). - -Answer requests ---------------- - -Older families do not reply to all of the commands, especially NEW / ADD -commands. User only gets information whether the operation succeeded or -not via the ACK. Try to find useful data to return. Once the command is -added whether it replies with a full message or only an ACK is uAPI and -cannot be changed. It's better to err on the side of replying. - -Specifically NEW and ADD commands should reply with information identifying -the created object such as the allocated object's ID (without having to -resort to using ``NLM_F_ECHO``). - -NLM_F_ECHO ----------- - -Make sure to pass the request info to genl_notify() to allow ``NLM_F_ECHO`` -to take effect. This is useful for programs that need precise feedback -from the kernel (for example for logging purposes). - -Support dump consistency ------------------------- - -If iterating over objects during dump may skip over objects or repeat -them - make sure to report dump inconsistency with ``NLM_F_DUMP_INTR``. -This is usually implemented by maintaining a generation id for the -structure and recording it in the ``seq`` member of struct netlink_callback. - -Netlink specification -===================== - -Documentation of the Netlink specification parts which are only relevant -to the kernel space. - -Globals -------- - -kernel-policy -~~~~~~~~~~~~~ - -Defines whether the kernel validation policy is ``global`` i.e. the same for all -operations of the family, defined for each operation individually - ``per-op``, -or separately for each operation and operation type (do vs dump) - ``split``. -New families should use ``per-op`` (default) to be able to narrow down the -attributes accepted by a specific command. - -checks ------- - -Documentation for the ``checks`` sub-sections of attribute specs. - -unterminated-ok -~~~~~~~~~~~~~~~ - -Accept strings without the null-termination (for legacy families only). -Switches from the ``NLA_NUL_STRING`` to ``NLA_STRING`` policy type. - -max-len -~~~~~~~ - -Defines max length for a binary or string attribute (corresponding -to the ``len`` member of struct nla_policy). For string attributes terminating -null character is not counted towards ``max-len``. - -The field may either be a literal integer value or a name of a defined -constant. String types may reduce the constant by one -(i.e. specify ``max-len: CONST - 1``) to reserve space for the terminating -character so implementations should recognize such pattern. - -min-len -~~~~~~~ - -Similar to ``max-len`` but defines minimum length. +.. SPDX-License-Identifier: BSD-3-Clause + +.. _kernel_netlink: + +=================================== +Netlink notes for kernel developers +=================================== + +General guidance +================ + +Attribute enums +--------------- + +Older families often define "null" attributes and commands with value +of ``0`` and named ``unspec``. This is supported (``type: unused``) +but should be avoided in new families. The ``unspec`` enum values are +not used in practice, so just set the value of the first attribute to ``1``. + +Message enums +------------- + +Use the same command IDs for requests and replies. This makes it easier +to match them up, and we have plenty of ID space. + +Use separate command IDs for notifications. This makes it easier to +sort the notifications from replies (and present them to the user +application via a different API than replies). + +Answer requests +--------------- + +Older families do not reply to all of the commands, especially NEW / ADD +commands. User only gets information whether the operation succeeded or +not via the ACK. Try to find useful data to return. Once the command is +added whether it replies with a full message or only an ACK is uAPI and +cannot be changed. It's better to err on the side of replying. + +Specifically NEW and ADD commands should reply with information identifying +the created object such as the allocated object's ID (without having to +resort to using ``NLM_F_ECHO``). + +NLM_F_ECHO +---------- + +Make sure to pass the request info to genl_notify() to allow ``NLM_F_ECHO`` +to take effect. This is useful for programs that need precise feedback +from the kernel (for example for logging purposes). + +Support dump consistency +------------------------ + +If iterating over objects during dump may skip over objects or repeat +them - make sure to report dump inconsistency with ``NLM_F_DUMP_INTR``. +This is usually implemented by maintaining a generation id for the +structure and recording it in the ``seq`` member of struct netlink_callback. + +Netlink specification +===================== + +Documentation of the Netlink specification parts which are only relevant +to the kernel space. + +Globals +------- + +kernel-policy +~~~~~~~~~~~~~ + +Defines whether the kernel validation policy is ``global`` i.e. the same for all +operations of the family, defined for each operation individually - ``per-op``, +or separately for each operation and operation type (do vs dump) - ``split``. +New families should use ``per-op`` (default) to be able to narrow down the +attributes accepted by a specific command. + +checks +------ + +Documentation for the ``checks`` sub-sections of attribute specs. + +unterminated-ok +~~~~~~~~~~~~~~~ + +Accept strings without the null-termination (for legacy families only). +Switches from the ``NLA_NUL_STRING`` to ``NLA_STRING`` policy type. + +max-len +~~~~~~~ + +Defines max length for a binary or string attribute (corresponding +to the ``len`` member of struct nla_policy). For string attributes terminating +null character is not counted towards ``max-len``. + +The field may either be a literal integer value or a name of a defined +constant. String types may reduce the constant by one +(i.e. specify ``max-len: CONST - 1``) to reserve space for the terminating +character so implementations should recognize such pattern. + +min-len +~~~~~~~ + +Similar to ``max-len`` but defines minimum length. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/core-api/protection-keys.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/core-api/protection-keys.rst index 18e922349..7eb7c6023 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/core-api/protection-keys.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/core-api/protection-keys.rst @@ -1,120 +1,120 @@ -.. SPDX-License-Identifier: GPL-2.0 - -====================== -Memory Protection Keys -====================== - -Memory Protection Keys provide a mechanism for enforcing page-based -protections, but without requiring modification of the page tables when an -application changes protection domains. - -Pkeys Userspace (PKU) is a feature which can be found on: - * Intel server CPUs, Skylake and later - * Intel client CPUs, Tiger Lake (11th Gen Core) and later - * Future AMD CPUs - * arm64 CPUs implementing the Permission Overlay Extension (FEAT_S1POE) - -x86_64 -====== -Pkeys work by dedicating 4 previously Reserved bits in each page table entry to -a "protection key", giving 16 possible keys. - -Protections for each key are defined with a per-CPU user-accessible register -(PKRU). Each of these is a 32-bit register storing two bits (Access Disable -and Write Disable) for each of 16 keys. - -Being a CPU register, PKRU is inherently thread-local, potentially giving each -thread a different set of protections from every other thread. - -There are two instructions (RDPKRU/WRPKRU) for reading and writing to the -register. The feature is only available in 64-bit mode, even though there is -theoretically space in the PAE PTEs. These permissions are enforced on data -access only and have no effect on instruction fetches. - -arm64 -===== - -Pkeys use 3 bits in each page table entry, to encode a "protection key index", -giving 8 possible keys. - -Protections for each key are defined with a per-CPU user-writable system -register (POR_EL0). This is a 64-bit register encoding read, write and execute -overlay permissions for each protection key index. - -Being a CPU register, POR_EL0 is inherently thread-local, potentially giving -each thread a different set of protections from every other thread. - -Unlike x86_64, the protection key permissions also apply to instruction -fetches. - -Syscalls -======== - -There are 3 system calls which directly interact with pkeys:: - - int pkey_alloc(unsigned long flags, unsigned long init_access_rights) - int pkey_free(int pkey); - int pkey_mprotect(unsigned long start, size_t len, - unsigned long prot, int pkey); - -Before a pkey can be used, it must first be allocated with pkey_alloc(). An -application writes to the architecture specific CPU register directly in order -to change access permissions to memory covered with a key. In this example -this is wrapped by a C function called pkey_set(). -:: - - int real_prot = PROT_READ|PROT_WRITE; - pkey = pkey_alloc(0, PKEY_DISABLE_WRITE); - ptr = mmap(NULL, PAGE_SIZE, PROT_NONE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); - ret = pkey_mprotect(ptr, PAGE_SIZE, real_prot, pkey); - ... application runs here - -Now, if the application needs to update the data at 'ptr', it can -gain access, do the update, then remove its write access:: - - pkey_set(pkey, 0); // clear PKEY_DISABLE_WRITE - *ptr = foo; // assign something - pkey_set(pkey, PKEY_DISABLE_WRITE); // set PKEY_DISABLE_WRITE again - -Now when it frees the memory, it will also free the pkey since it -is no longer in use:: - - munmap(ptr, PAGE_SIZE); - pkey_free(pkey); - -.. note:: pkey_set() is a wrapper around writing to the CPU register. - Example implementations can be found in - tools/testing/selftests/mm/pkey-{arm64,powerpc,x86}.h - -Behavior -======== - -The kernel attempts to make protection keys consistent with the -behavior of a plain mprotect(). For instance if you do this:: - - mprotect(ptr, size, PROT_NONE); - something(ptr); - -you can expect the same effects with protection keys when doing this:: - - pkey = pkey_alloc(0, PKEY_DISABLE_WRITE | PKEY_DISABLE_READ); - pkey_mprotect(ptr, size, PROT_READ|PROT_WRITE, pkey); - something(ptr); - -That should be true whether something() is a direct access to 'ptr' -like:: - - *ptr = foo; - -or when the kernel does the access on the application's behalf like -with a read():: - - read(fd, ptr, 1); - -The kernel will send a SIGSEGV in both cases, but si_code will be set -to SEGV_PKERR when violating protection keys versus SEGV_ACCERR when -the plain mprotect() permissions are violated. - -Note that kernel accesses from a kthread (such as io_uring) will use a default -value for the protection key register and so will not be consistent with -userspace's value of the register or mprotect(). +.. SPDX-License-Identifier: GPL-2.0 + +====================== +Memory Protection Keys +====================== + +Memory Protection Keys provide a mechanism for enforcing page-based +protections, but without requiring modification of the page tables when an +application changes protection domains. + +Pkeys Userspace (PKU) is a feature which can be found on: + * Intel server CPUs, Skylake and later + * Intel client CPUs, Tiger Lake (11th Gen Core) and later + * Future AMD CPUs + * arm64 CPUs implementing the Permission Overlay Extension (FEAT_S1POE) + +x86_64 +====== +Pkeys work by dedicating 4 previously Reserved bits in each page table entry to +a "protection key", giving 16 possible keys. + +Protections for each key are defined with a per-CPU user-accessible register +(PKRU). Each of these is a 32-bit register storing two bits (Access Disable +and Write Disable) for each of 16 keys. + +Being a CPU register, PKRU is inherently thread-local, potentially giving each +thread a different set of protections from every other thread. + +There are two instructions (RDPKRU/WRPKRU) for reading and writing to the +register. The feature is only available in 64-bit mode, even though there is +theoretically space in the PAE PTEs. These permissions are enforced on data +access only and have no effect on instruction fetches. + +arm64 +===== + +Pkeys use 3 bits in each page table entry, to encode a "protection key index", +giving 8 possible keys. + +Protections for each key are defined with a per-CPU user-writable system +register (POR_EL0). This is a 64-bit register encoding read, write and execute +overlay permissions for each protection key index. + +Being a CPU register, POR_EL0 is inherently thread-local, potentially giving +each thread a different set of protections from every other thread. + +Unlike x86_64, the protection key permissions also apply to instruction +fetches. + +Syscalls +======== + +There are 3 system calls which directly interact with pkeys:: + + int pkey_alloc(unsigned long flags, unsigned long init_access_rights) + int pkey_free(int pkey); + int pkey_mprotect(unsigned long start, size_t len, + unsigned long prot, int pkey); + +Before a pkey can be used, it must first be allocated with pkey_alloc(). An +application writes to the architecture specific CPU register directly in order +to change access permissions to memory covered with a key. In this example +this is wrapped by a C function called pkey_set(). +:: + + int real_prot = PROT_READ|PROT_WRITE; + pkey = pkey_alloc(0, PKEY_DISABLE_WRITE); + ptr = mmap(NULL, PAGE_SIZE, PROT_NONE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); + ret = pkey_mprotect(ptr, PAGE_SIZE, real_prot, pkey); + ... application runs here + +Now, if the application needs to update the data at 'ptr', it can +gain access, do the update, then remove its write access:: + + pkey_set(pkey, 0); // clear PKEY_DISABLE_WRITE + *ptr = foo; // assign something + pkey_set(pkey, PKEY_DISABLE_WRITE); // set PKEY_DISABLE_WRITE again + +Now when it frees the memory, it will also free the pkey since it +is no longer in use:: + + munmap(ptr, PAGE_SIZE); + pkey_free(pkey); + +.. note:: pkey_set() is a wrapper around writing to the CPU register. + Example implementations can be found in + tools/testing/selftests/mm/pkey-{arm64,powerpc,x86}.h + +Behavior +======== + +The kernel attempts to make protection keys consistent with the +behavior of a plain mprotect(). For instance if you do this:: + + mprotect(ptr, size, PROT_NONE); + something(ptr); + +you can expect the same effects with protection keys when doing this:: + + pkey = pkey_alloc(0, PKEY_DISABLE_WRITE | PKEY_DISABLE_READ); + pkey_mprotect(ptr, size, PROT_READ|PROT_WRITE, pkey); + something(ptr); + +That should be true whether something() is a direct access to 'ptr' +like:: + + *ptr = foo; + +or when the kernel does the access on the application's behalf like +with a read():: + + read(fd, ptr, 1); + +The kernel will send a SIGSEGV in both cases, but si_code will be set +to SEGV_PKERR when violating protection keys versus SEGV_ACCERR when +the plain mprotect() permissions are violated. + +Note that kernel accesses from a kthread (such as io_uring) will use a default +value for the protection key register and so will not be consistent with +userspace's value of the register or mprotect(). diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/core-api/union_find.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/core-api/union_find.rst index 52880f019..6df8b94fd 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/core-api/union_find.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/core-api/union_find.rst @@ -1,106 +1,106 @@ -.. SPDX-License-Identifier: GPL-2.0 - -==================== -Union-Find in Linux -==================== - - -:Date: June 21, 2024 -:Author: Xavier - -What is union-find, and what is it used for? ------------------------------------------------- - -Union-find is a data structure used to handle the merging and querying -of disjoint sets. The primary operations supported by union-find are: - - Initialization: Resetting each element as an individual set, with - each set's initial parent node pointing to itself. - - Find: Determine which set a particular element belongs to, usually by - returning a “representative element” of that set. This operation - is used to check if two elements are in the same set. - - Union: Merge two sets into one. - -As a data structure used to maintain sets (groups), union-find is commonly -utilized to solve problems related to offline queries, dynamic connectivity, -and graph theory. It is also a key component in Kruskal's algorithm for -computing the minimum spanning tree, which is crucial in scenarios like -network routing. Consequently, union-find is widely referenced. Additionally, -union-find has applications in symbolic computation, register allocation, -and more. - -Space Complexity: O(n), where n is the number of nodes. - -Time Complexity: Using path compression can reduce the time complexity of -the find operation, and using union by rank can reduce the time complexity -of the union operation. These optimizations reduce the average time -complexity of each find and union operation to O(α(n)), where α(n) is the -inverse Ackermann function. This can be roughly considered a constant time -complexity for practical purposes. - -This document covers use of the Linux union-find implementation. For more -information on the nature and implementation of union-find, see: - - Wikipedia entry on union-find - https://en.wikipedia.org/wiki/Disjoint-set_data_structure - -Linux implementation of union-find ------------------------------------ - -Linux's union-find implementation resides in the file "lib/union_find.c". -To use it, "#include ". - -The union-find data structure is defined as follows:: - - struct uf_node { - struct uf_node *parent; - unsigned int rank; - }; - -In this structure, parent points to the parent node of the current node. -The rank field represents the height of the current tree. During a union -operation, the tree with the smaller rank is attached under the tree with the -larger rank to maintain balance. - -Initializing union-find ------------------------ - -You can complete the initialization using either static or initialization -interface. Initialize the parent pointer to point to itself and set the rank -to 0. -Example:: - - struct uf_node my_node = UF_INIT_NODE(my_node); - -or - - uf_node_init(&my_node); - -Find the Root Node of union-find --------------------------------- - -This operation is mainly used to determine whether two nodes belong to the same -set in the union-find. If they have the same root, they are in the same set. -During the find operation, path compression is performed to improve the -efficiency of subsequent find operations. -Example:: - - int connected; - struct uf_node *root1 = uf_find(&node_1); - struct uf_node *root2 = uf_find(&node_2); - if (root1 == root2) - connected = 1; - else - connected = 0; - -Union Two Sets in union-find ----------------------------- - -To union two sets in the union-find, you first find their respective root nodes -and then link the smaller node to the larger node based on the rank of the root -nodes. -Example:: - - uf_union(&node_1, &node_2); +.. SPDX-License-Identifier: GPL-2.0 + +==================== +Union-Find in Linux +==================== + + +:Date: June 21, 2024 +:Author: Xavier + +What is union-find, and what is it used for? +------------------------------------------------ + +Union-find is a data structure used to handle the merging and querying +of disjoint sets. The primary operations supported by union-find are: + + Initialization: Resetting each element as an individual set, with + each set's initial parent node pointing to itself. + + Find: Determine which set a particular element belongs to, usually by + returning a “representative element” of that set. This operation + is used to check if two elements are in the same set. + + Union: Merge two sets into one. + +As a data structure used to maintain sets (groups), union-find is commonly +utilized to solve problems related to offline queries, dynamic connectivity, +and graph theory. It is also a key component in Kruskal's algorithm for +computing the minimum spanning tree, which is crucial in scenarios like +network routing. Consequently, union-find is widely referenced. Additionally, +union-find has applications in symbolic computation, register allocation, +and more. + +Space Complexity: O(n), where n is the number of nodes. + +Time Complexity: Using path compression can reduce the time complexity of +the find operation, and using union by rank can reduce the time complexity +of the union operation. These optimizations reduce the average time +complexity of each find and union operation to O(α(n)), where α(n) is the +inverse Ackermann function. This can be roughly considered a constant time +complexity for practical purposes. + +This document covers use of the Linux union-find implementation. For more +information on the nature and implementation of union-find, see: + + Wikipedia entry on union-find + https://en.wikipedia.org/wiki/Disjoint-set_data_structure + +Linux implementation of union-find +----------------------------------- + +Linux's union-find implementation resides in the file "lib/union_find.c". +To use it, "#include ". + +The union-find data structure is defined as follows:: + + struct uf_node { + struct uf_node *parent; + unsigned int rank; + }; + +In this structure, parent points to the parent node of the current node. +The rank field represents the height of the current tree. During a union +operation, the tree with the smaller rank is attached under the tree with the +larger rank to maintain balance. + +Initializing union-find +----------------------- + +You can complete the initialization using either static or initialization +interface. Initialize the parent pointer to point to itself and set the rank +to 0. +Example:: + + struct uf_node my_node = UF_INIT_NODE(my_node); + +or + + uf_node_init(&my_node); + +Find the Root Node of union-find +-------------------------------- + +This operation is mainly used to determine whether two nodes belong to the same +set in the union-find. If they have the same root, they are in the same set. +During the find operation, path compression is performed to improve the +efficiency of subsequent find operations. +Example:: + + int connected; + struct uf_node *root1 = uf_find(&node_1); + struct uf_node *root2 = uf_find(&node_2); + if (root1 == root2) + connected = 1; + else + connected = 0; + +Union Two Sets in union-find +---------------------------- + +To union two sets in the union-find, you first find their respective root nodes +and then link the smaller node to the larger node based on the rank of the root +nodes. +Example:: + + uf_union(&node_1, &node_2); diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/cpu-freq/core.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/cpu-freq/core.rst index 49ebb2667..4ceef8e72 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/cpu-freq/core.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/cpu-freq/core.rst @@ -1,113 +1,113 @@ -.. SPDX-License-Identifier: GPL-2.0 - -============================================================= -General description of the CPUFreq core and CPUFreq notifiers -============================================================= - -Authors: - - Dominik Brodowski - - David Kimdon - - Rafael J. Wysocki - - Viresh Kumar - -.. Contents: - - 1. CPUFreq core and interfaces - 2. CPUFreq notifiers - 3. CPUFreq Table Generation with Operating Performance Point (OPP) - -1. General Information -====================== - -The CPUFreq core code is located in drivers/cpufreq/cpufreq.c. This -cpufreq code offers a standardized interface for the CPUFreq -architecture drivers (those pieces of code that do actual -frequency transitions), as well as to "notifiers". These are device -drivers or other part of the kernel that need to be informed of -policy changes (ex. thermal modules like ACPI) or of all -frequency changes (ex. timing code) or even need to force certain -speed limits (like LCD drivers on ARM architecture). Additionally, the -kernel "constant" loops_per_jiffy is updated on frequency changes -here. - -Reference counting of the cpufreq policies is done by cpufreq_cpu_get -and cpufreq_cpu_put, which make sure that the cpufreq driver is -correctly registered with the core, and will not be unloaded until -cpufreq_put_cpu is called. That also ensures that the respective cpufreq -policy doesn't get freed while being used. - -2. CPUFreq notifiers -==================== - -CPUFreq notifiers conform to the standard kernel notifier interface. -See linux/include/linux/notifier.h for details on notifiers. - -There are two different CPUFreq notifiers - policy notifiers and -transition notifiers. - - -2.1 CPUFreq policy notifiers ----------------------------- - -These are notified when a new policy is created or removed. - -The phase is specified in the second argument to the notifier. The phase is -CPUFREQ_CREATE_POLICY when the policy is first created and it is -CPUFREQ_REMOVE_POLICY when the policy is removed. - -The third argument, a ``void *pointer``, points to a struct cpufreq_policy -consisting of several values, including min, max (the lower and upper -frequencies (in kHz) of the new policy). - - -2.2 CPUFreq transition notifiers --------------------------------- - -These are notified twice for each online CPU in the policy, when the -CPUfreq driver switches the CPU core frequency and this change has no -any external implications. - -The second argument specifies the phase - CPUFREQ_PRECHANGE or -CPUFREQ_POSTCHANGE. - -The third argument is a struct cpufreq_freqs with the following -values: - -====== ====================================== -policy a pointer to the struct cpufreq_policy -old old frequency -new new frequency -flags flags of the cpufreq driver -====== ====================================== - -3. CPUFreq Table Generation with Operating Performance Point (OPP) -================================================================== -For details about OPP, see Documentation/power/opp.rst - -dev_pm_opp_init_cpufreq_table - - This function provides a ready to use conversion routine to translate - the OPP layer's internal information about the available frequencies - into a format readily providable to cpufreq. - - .. Warning:: - - Do not use this function in interrupt context. - - Example:: - - soc_pm_init() - { - /* Do things */ - r = dev_pm_opp_init_cpufreq_table(dev, &freq_table); - if (!r) - policy->freq_table = freq_table; - /* Do other things */ - } - - .. note:: - - This function is available only if CONFIG_CPU_FREQ is enabled in - addition to CONFIG_PM_OPP. - -dev_pm_opp_free_cpufreq_table - Free up the table allocated by dev_pm_opp_init_cpufreq_table +.. SPDX-License-Identifier: GPL-2.0 + +============================================================= +General description of the CPUFreq core and CPUFreq notifiers +============================================================= + +Authors: + - Dominik Brodowski + - David Kimdon + - Rafael J. Wysocki + - Viresh Kumar + +.. Contents: + + 1. CPUFreq core and interfaces + 2. CPUFreq notifiers + 3. CPUFreq Table Generation with Operating Performance Point (OPP) + +1. General Information +====================== + +The CPUFreq core code is located in drivers/cpufreq/cpufreq.c. This +cpufreq code offers a standardized interface for the CPUFreq +architecture drivers (those pieces of code that do actual +frequency transitions), as well as to "notifiers". These are device +drivers or other part of the kernel that need to be informed of +policy changes (ex. thermal modules like ACPI) or of all +frequency changes (ex. timing code) or even need to force certain +speed limits (like LCD drivers on ARM architecture). Additionally, the +kernel "constant" loops_per_jiffy is updated on frequency changes +here. + +Reference counting of the cpufreq policies is done by cpufreq_cpu_get +and cpufreq_cpu_put, which make sure that the cpufreq driver is +correctly registered with the core, and will not be unloaded until +cpufreq_put_cpu is called. That also ensures that the respective cpufreq +policy doesn't get freed while being used. + +2. CPUFreq notifiers +==================== + +CPUFreq notifiers conform to the standard kernel notifier interface. +See linux/include/linux/notifier.h for details on notifiers. + +There are two different CPUFreq notifiers - policy notifiers and +transition notifiers. + + +2.1 CPUFreq policy notifiers +---------------------------- + +These are notified when a new policy is created or removed. + +The phase is specified in the second argument to the notifier. The phase is +CPUFREQ_CREATE_POLICY when the policy is first created and it is +CPUFREQ_REMOVE_POLICY when the policy is removed. + +The third argument, a ``void *pointer``, points to a struct cpufreq_policy +consisting of several values, including min, max (the lower and upper +frequencies (in kHz) of the new policy). + + +2.2 CPUFreq transition notifiers +-------------------------------- + +These are notified twice for each online CPU in the policy, when the +CPUfreq driver switches the CPU core frequency and this change has no +any external implications. + +The second argument specifies the phase - CPUFREQ_PRECHANGE or +CPUFREQ_POSTCHANGE. + +The third argument is a struct cpufreq_freqs with the following +values: + +====== ====================================== +policy a pointer to the struct cpufreq_policy +old old frequency +new new frequency +flags flags of the cpufreq driver +====== ====================================== + +3. CPUFreq Table Generation with Operating Performance Point (OPP) +================================================================== +For details about OPP, see Documentation/power/opp.rst + +dev_pm_opp_init_cpufreq_table - + This function provides a ready to use conversion routine to translate + the OPP layer's internal information about the available frequencies + into a format readily providable to cpufreq. + + .. Warning:: + + Do not use this function in interrupt context. + + Example:: + + soc_pm_init() + { + /* Do things */ + r = dev_pm_opp_init_cpufreq_table(dev, &freq_table); + if (!r) + policy->freq_table = freq_table; + /* Do other things */ + } + + .. note:: + + This function is available only if CONFIG_CPU_FREQ is enabled in + addition to CONFIG_PM_OPP. + +dev_pm_opp_free_cpufreq_table + Free up the table allocated by dev_pm_opp_init_cpufreq_table diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/dev-tools/gpio-sloppy-logic-analyzer.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/dev-tools/gpio-sloppy-logic-analyzer.rst index 00c1624b4..d69f24c0d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/dev-tools/gpio-sloppy-logic-analyzer.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/dev-tools/gpio-sloppy-logic-analyzer.rst @@ -1,93 +1,93 @@ -.. SPDX-License-Identifier: GPL-2.0 - -============================================= -Linux Kernel GPIO based sloppy logic analyzer -============================================= - -:Author: Wolfram Sang - -Introduction -============ - -This document briefly describes how to run the GPIO based in-kernel sloppy -logic analyzer running on an isolated CPU. - -The sloppy logic analyzer will utilize a few GPIO lines in input mode on a -system to rapidly sample these digital lines, which will, if the Nyquist -criteria is met, result in a time series log with approximate waveforms as they -appeared on these lines. One way to use it is to analyze external traffic -connected to these GPIO lines with wires (i.e. digital probes), acting as a -common logic analyzer. - -Another feature is to snoop on on-chip peripherals if the I/O cells of these -peripherals can be used in GPIO input mode at the same time as they are being -used as inputs or outputs for the peripheral. That means you could e.g. snoop -I2C traffic without any wiring (if your hardware supports it). In the pin -control subsystem such pin controllers are called "non-strict": a certain pin -can be used with a certain peripheral and as a GPIO input line at the same -time. - -Note that this is a last resort analyzer which can be affected by latencies, -non-deterministic code paths and non-maskable interrupts. It is called 'sloppy' -for a reason. However, for e.g. remote development, it may be useful to get a -first view and aid further debugging. - -Setup -===== - -Your kernel must have CONFIG_DEBUG_FS and CONFIG_CPUSETS enabled. Ideally, your -runtime environment does not utilize cpusets otherwise, then isolation of a CPU -core is easiest. If you do need cpusets, check that helper script for the -sloppy logic analyzer does not interfere with your other settings. - -Tell the kernel which GPIOs are used as probes. For a Device Tree based system, -you need to use the following bindings. Because these bindings are only for -debugging, there is no official schema:: - - i2c-analyzer { - compatible = "gpio-sloppy-logic-analyzer"; - probe-gpios = <&gpio6 21 GPIO_OPEN_DRAIN>, <&gpio6 4 GPIO_OPEN_DRAIN>; - probe-names = "SCL", "SDA"; - }; - -Note that you must provide a name for every GPIO specified. Currently a -maximum of 8 probes are supported. 32 are likely possible but are not -implemented yet. - -Usage -===== - -The logic analyzer is configurable via files in debugfs. However, it is -strongly recommended to not use them directly, but to use the script -``tools/gpio/gpio-sloppy-logic-analyzer``. Besides checking parameters more -extensively, it will isolate the CPU core so you will have the least -disturbance while measuring. - -The script has a help option explaining the parameters. For the above DT -snippet which analyzes an I2C bus at 400kHz on a Renesas Salvator-XS board, the -following settings are used: The isolated CPU shall be CPU1 because it is a big -core in a big.LITTLE setup. Because CPU1 is the default, we don't need a -parameter. The bus speed is 400kHz. So, the sampling theorem says we need to -sample at least at 800kHz. However, falling edges of both signals in an I2C -start condition happen faster, so we need a higher sampling frequency, e.g. -``-s 1500000`` for 1.5MHz. Also, we don't want to sample right away but wait -for a start condition on an idle bus. So, we need to set a trigger to a falling -edge on SDA while SCL stays high, i.e. ``-t 1H+2F``. Last is the duration, let -us assume 15ms here which results in the parameter ``-d 15000``. So, -altogether:: - - gpio-sloppy-logic-analyzer -s 1500000 -t 1H+2F -d 15000 - -Note that the process will return you back to the prompt but a sub-process is -still sampling in the background. Unless this has finished, you will not find a -result file in the current or specified directory. For the above example, we -will then need to trigger I2C communication:: - - i2cdetect -y -r - -Result is a .sr file to be consumed with PulseView or sigrok-cli from the free -`sigrok`_ project. It is a zip file which also contains the binary sample data -which may be consumed by other software. The filename is the logic analyzer -instance name plus a since-epoch timestamp. - -.. _sigrok: https://sigrok.org/ +.. SPDX-License-Identifier: GPL-2.0 + +============================================= +Linux Kernel GPIO based sloppy logic analyzer +============================================= + +:Author: Wolfram Sang + +Introduction +============ + +This document briefly describes how to run the GPIO based in-kernel sloppy +logic analyzer running on an isolated CPU. + +The sloppy logic analyzer will utilize a few GPIO lines in input mode on a +system to rapidly sample these digital lines, which will, if the Nyquist +criteria is met, result in a time series log with approximate waveforms as they +appeared on these lines. One way to use it is to analyze external traffic +connected to these GPIO lines with wires (i.e. digital probes), acting as a +common logic analyzer. + +Another feature is to snoop on on-chip peripherals if the I/O cells of these +peripherals can be used in GPIO input mode at the same time as they are being +used as inputs or outputs for the peripheral. That means you could e.g. snoop +I2C traffic without any wiring (if your hardware supports it). In the pin +control subsystem such pin controllers are called "non-strict": a certain pin +can be used with a certain peripheral and as a GPIO input line at the same +time. + +Note that this is a last resort analyzer which can be affected by latencies, +non-deterministic code paths and non-maskable interrupts. It is called 'sloppy' +for a reason. However, for e.g. remote development, it may be useful to get a +first view and aid further debugging. + +Setup +===== + +Your kernel must have CONFIG_DEBUG_FS and CONFIG_CPUSETS enabled. Ideally, your +runtime environment does not utilize cpusets otherwise, then isolation of a CPU +core is easiest. If you do need cpusets, check that helper script for the +sloppy logic analyzer does not interfere with your other settings. + +Tell the kernel which GPIOs are used as probes. For a Device Tree based system, +you need to use the following bindings. Because these bindings are only for +debugging, there is no official schema:: + + i2c-analyzer { + compatible = "gpio-sloppy-logic-analyzer"; + probe-gpios = <&gpio6 21 GPIO_OPEN_DRAIN>, <&gpio6 4 GPIO_OPEN_DRAIN>; + probe-names = "SCL", "SDA"; + }; + +Note that you must provide a name for every GPIO specified. Currently a +maximum of 8 probes are supported. 32 are likely possible but are not +implemented yet. + +Usage +===== + +The logic analyzer is configurable via files in debugfs. However, it is +strongly recommended to not use them directly, but to use the script +``tools/gpio/gpio-sloppy-logic-analyzer``. Besides checking parameters more +extensively, it will isolate the CPU core so you will have the least +disturbance while measuring. + +The script has a help option explaining the parameters. For the above DT +snippet which analyzes an I2C bus at 400kHz on a Renesas Salvator-XS board, the +following settings are used: The isolated CPU shall be CPU1 because it is a big +core in a big.LITTLE setup. Because CPU1 is the default, we don't need a +parameter. The bus speed is 400kHz. So, the sampling theorem says we need to +sample at least at 800kHz. However, falling edges of both signals in an I2C +start condition happen faster, so we need a higher sampling frequency, e.g. +``-s 1500000`` for 1.5MHz. Also, we don't want to sample right away but wait +for a start condition on an idle bus. So, we need to set a trigger to a falling +edge on SDA while SCL stays high, i.e. ``-t 1H+2F``. Last is the duration, let +us assume 15ms here which results in the parameter ``-d 15000``. So, +altogether:: + + gpio-sloppy-logic-analyzer -s 1500000 -t 1H+2F -d 15000 + +Note that the process will return you back to the prompt but a sub-process is +still sampling in the background. Unless this has finished, you will not find a +result file in the current or specified directory. For the above example, we +will then need to trigger I2C communication:: + + i2cdetect -y -r + +Result is a .sr file to be consumed with PulseView or sigrok-cli from the free +`sigrok`_ project. It is a zip file which also contains the binary sample data +which may be consumed by other software. The filename is the logic analyzer +instance name plus a since-epoch timestamp. + +.. _sigrok: https://sigrok.org/ diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/dev-tools/kunit/index.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/dev-tools/kunit/index.rst index 9e83605cf..b3593ae29 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/dev-tools/kunit/index.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/dev-tools/kunit/index.rst @@ -1,109 +1,109 @@ -.. SPDX-License-Identifier: GPL-2.0 - -================================= -KUnit - Linux Kernel Unit Testing -================================= - -.. toctree:: - :maxdepth: 2 - :caption: Contents: - - start - architecture - run_wrapper - run_manual - usage - api/index - style - faq - running_tips - -This section details the kernel unit testing framework. - -Introduction -============ - -KUnit (Kernel unit testing framework) provides a common framework for -unit tests within the Linux kernel. Using KUnit, you can define groups -of test cases called test suites. The tests either run on kernel boot -if built-in, or load as a module. KUnit automatically flags and reports -failed test cases in the kernel log. The test results appear in -:doc:`KTAP (Kernel - Test Anything Protocol) format`. -It is inspired by JUnit, Python’s unittest.mock, and GoogleTest/GoogleMock -(C++ unit testing framework). - -KUnit tests are part of the kernel, written in the C (programming) -language, and test parts of the Kernel implementation (example: a C -language function). Excluding build time, from invocation to -completion, KUnit can run around 100 tests in less than 10 seconds. -KUnit can test any kernel component, for example: file system, system -calls, memory management, device drivers and so on. - -KUnit follows the white-box testing approach. The test has access to -internal system functionality. KUnit runs in kernel space and is not -restricted to things exposed to user-space. - -In addition, KUnit has kunit_tool, a script (``tools/testing/kunit/kunit.py``) -that configures the Linux kernel, runs KUnit tests under QEMU or UML -(:doc:`User Mode Linux `), -parses the test results and -displays them in a user friendly manner. - -Features --------- - -- Provides a framework for writing unit tests. -- Runs tests on any kernel architecture. -- Runs a test in milliseconds. - -Prerequisites -------------- - -- Any Linux kernel compatible hardware. -- For Kernel under test, Linux kernel version 5.5 or greater. - -Unit Testing -============ - -A unit test tests a single unit of code in isolation. A unit test is the finest -granularity of testing and allows all possible code paths to be tested in the -code under test. This is possible if the code under test is small and does not -have any external dependencies outside of the test's control like hardware. - - -Write Unit Tests ----------------- - -To write good unit tests, there is a simple but powerful pattern: -Arrange-Act-Assert. This is a great way to structure test cases and -defines an order of operations. - -- Arrange inputs and targets: At the start of the test, arrange the data - that allows a function to work. Example: initialize a statement or - object. -- Act on the target behavior: Call your function/code under test. -- Assert expected outcome: Verify that the result (or resulting state) is as - expected. - -Unit Testing Advantages ------------------------ - -- Increases testing speed and development in the long run. -- Detects bugs at initial stage and therefore decreases bug fix cost - compared to acceptance testing. -- Improves code quality. -- Encourages writing testable code. - -Read also :ref:`kinds-of-tests`. - -How do I use it? -================ - -You can find a step-by-step guide to writing and running KUnit tests in -Documentation/dev-tools/kunit/start.rst - -Alternatively, feel free to look through the rest of the KUnit documentation, -or to experiment with tools/testing/kunit/kunit.py and the example test under -lib/kunit/kunit-example-test.c - -Happy testing! +.. SPDX-License-Identifier: GPL-2.0 + +================================= +KUnit - Linux Kernel Unit Testing +================================= + +.. toctree:: + :maxdepth: 2 + :caption: Contents: + + start + architecture + run_wrapper + run_manual + usage + api/index + style + faq + running_tips + +This section details the kernel unit testing framework. + +Introduction +============ + +KUnit (Kernel unit testing framework) provides a common framework for +unit tests within the Linux kernel. Using KUnit, you can define groups +of test cases called test suites. The tests either run on kernel boot +if built-in, or load as a module. KUnit automatically flags and reports +failed test cases in the kernel log. The test results appear in +:doc:`KTAP (Kernel - Test Anything Protocol) format`. +It is inspired by JUnit, Python’s unittest.mock, and GoogleTest/GoogleMock +(C++ unit testing framework). + +KUnit tests are part of the kernel, written in the C (programming) +language, and test parts of the Kernel implementation (example: a C +language function). Excluding build time, from invocation to +completion, KUnit can run around 100 tests in less than 10 seconds. +KUnit can test any kernel component, for example: file system, system +calls, memory management, device drivers and so on. + +KUnit follows the white-box testing approach. The test has access to +internal system functionality. KUnit runs in kernel space and is not +restricted to things exposed to user-space. + +In addition, KUnit has kunit_tool, a script (``tools/testing/kunit/kunit.py``) +that configures the Linux kernel, runs KUnit tests under QEMU or UML +(:doc:`User Mode Linux `), +parses the test results and +displays them in a user friendly manner. + +Features +-------- + +- Provides a framework for writing unit tests. +- Runs tests on any kernel architecture. +- Runs a test in milliseconds. + +Prerequisites +------------- + +- Any Linux kernel compatible hardware. +- For Kernel under test, Linux kernel version 5.5 or greater. + +Unit Testing +============ + +A unit test tests a single unit of code in isolation. A unit test is the finest +granularity of testing and allows all possible code paths to be tested in the +code under test. This is possible if the code under test is small and does not +have any external dependencies outside of the test's control like hardware. + + +Write Unit Tests +---------------- + +To write good unit tests, there is a simple but powerful pattern: +Arrange-Act-Assert. This is a great way to structure test cases and +defines an order of operations. + +- Arrange inputs and targets: At the start of the test, arrange the data + that allows a function to work. Example: initialize a statement or + object. +- Act on the target behavior: Call your function/code under test. +- Assert expected outcome: Verify that the result (or resulting state) is as + expected. + +Unit Testing Advantages +----------------------- + +- Increases testing speed and development in the long run. +- Detects bugs at initial stage and therefore decreases bug fix cost + compared to acceptance testing. +- Improves code quality. +- Encourages writing testable code. + +Read also :ref:`kinds-of-tests`. + +How do I use it? +================ + +You can find a step-by-step guide to writing and running KUnit tests in +Documentation/dev-tools/kunit/start.rst + +Alternatively, feel free to look through the rest of the KUnit documentation, +or to experiment with tools/testing/kunit/kunit.py and the example test under +lib/kunit/kunit-example-test.c + +Happy testing! diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/dev-tools/kunit/run_manual.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/dev-tools/kunit/run_manual.rst index ef754882c..699d92885 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/dev-tools/kunit/run_manual.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/dev-tools/kunit/run_manual.rst @@ -1,100 +1,100 @@ -.. SPDX-License-Identifier: GPL-2.0 - -============================ -Run Tests without kunit_tool -============================ - -If we do not want to use kunit_tool (For example: we want to integrate -with other systems, or run tests on real hardware), we can -include KUnit in any kernel, read out results, and parse manually. - -.. note:: KUnit is not designed for use in a production system. It is - possible that tests may reduce the stability or security of - the system. - -Configure the Kernel -==================== - -KUnit tests can run without kunit_tool. This can be useful, if: - -- We have an existing kernel configuration to test. -- Need to run on real hardware (or using an emulator/VM kunit_tool - does not support). -- Wish to integrate with some existing testing systems. - -KUnit is configured with the ``CONFIG_KUNIT`` option, and individual -tests can also be built by enabling their config options in our -``.config``. KUnit tests usually (but don't always) have config options -ending in ``_KUNIT_TEST``. Most tests can either be built as a module, -or be built into the kernel. - -.. note :: - - We can enable the ``KUNIT_ALL_TESTS`` config option to - automatically enable all tests with satisfied dependencies. This is - a good way of quickly testing everything applicable to the current - config. - -Once we have built our kernel (and/or modules), it is simple to run -the tests. If the tests are built-in, they will run automatically on the -kernel boot. The results will be written to the kernel log (``dmesg``) -in TAP format. - -If the tests are built as modules, they will run when the module is -loaded. - -.. code-block :: bash - - # modprobe example-test - -The results will appear in TAP format in ``dmesg``. - -debugfs -======= - -KUnit can be accessed from userspace via the debugfs filesystem (See more -information about debugfs at Documentation/filesystems/debugfs.rst). - -If ``CONFIG_KUNIT_DEBUGFS`` is enabled, the KUnit debugfs filesystem is -mounted at /sys/kernel/debug/kunit. You can use this filesystem to perform -the following actions. - -Retrieve Test Results -===================== - -You can use debugfs to retrieve KUnit test results. The test results are -accessible from the debugfs filesystem in the following read-only file: - -.. code-block :: bash - - /sys/kernel/debug/kunit//results - -The test results are printed in a KTAP document. Note this document is separate -to the kernel log and thus, may have different test suite numbering. - -Run Tests After Kernel Has Booted -================================= - -You can use the debugfs filesystem to trigger built-in tests to run after -boot. To run the test suite, you can use the following command to write to -the ``/sys/kernel/debug/kunit//run`` file: - -.. code-block :: bash - - echo "any string" > /sys/kernel/debugfs/kunit//run - -As a result, the test suite runs and the results are printed to the kernel -log. - -However, this feature is not available with KUnit suites that use init data, -because init data may have been discarded after the kernel boots. KUnit -suites that use init data should be defined using the -kunit_test_init_section_suites() macro. - -Also, you cannot use this feature to run tests concurrently. Instead a test -will wait to run until other tests have completed or failed. - -.. note :: - - For test authors, to use this feature, tests will need to correctly initialise - and/or clean up any data, so the test runs correctly a second time. +.. SPDX-License-Identifier: GPL-2.0 + +============================ +Run Tests without kunit_tool +============================ + +If we do not want to use kunit_tool (For example: we want to integrate +with other systems, or run tests on real hardware), we can +include KUnit in any kernel, read out results, and parse manually. + +.. note:: KUnit is not designed for use in a production system. It is + possible that tests may reduce the stability or security of + the system. + +Configure the Kernel +==================== + +KUnit tests can run without kunit_tool. This can be useful, if: + +- We have an existing kernel configuration to test. +- Need to run on real hardware (or using an emulator/VM kunit_tool + does not support). +- Wish to integrate with some existing testing systems. + +KUnit is configured with the ``CONFIG_KUNIT`` option, and individual +tests can also be built by enabling their config options in our +``.config``. KUnit tests usually (but don't always) have config options +ending in ``_KUNIT_TEST``. Most tests can either be built as a module, +or be built into the kernel. + +.. note :: + + We can enable the ``KUNIT_ALL_TESTS`` config option to + automatically enable all tests with satisfied dependencies. This is + a good way of quickly testing everything applicable to the current + config. + +Once we have built our kernel (and/or modules), it is simple to run +the tests. If the tests are built-in, they will run automatically on the +kernel boot. The results will be written to the kernel log (``dmesg``) +in TAP format. + +If the tests are built as modules, they will run when the module is +loaded. + +.. code-block :: bash + + # modprobe example-test + +The results will appear in TAP format in ``dmesg``. + +debugfs +======= + +KUnit can be accessed from userspace via the debugfs filesystem (See more +information about debugfs at Documentation/filesystems/debugfs.rst). + +If ``CONFIG_KUNIT_DEBUGFS`` is enabled, the KUnit debugfs filesystem is +mounted at /sys/kernel/debug/kunit. You can use this filesystem to perform +the following actions. + +Retrieve Test Results +===================== + +You can use debugfs to retrieve KUnit test results. The test results are +accessible from the debugfs filesystem in the following read-only file: + +.. code-block :: bash + + /sys/kernel/debug/kunit//results + +The test results are printed in a KTAP document. Note this document is separate +to the kernel log and thus, may have different test suite numbering. + +Run Tests After Kernel Has Booted +================================= + +You can use the debugfs filesystem to trigger built-in tests to run after +boot. To run the test suite, you can use the following command to write to +the ``/sys/kernel/debug/kunit//run`` file: + +.. code-block :: bash + + echo "any string" > /sys/kernel/debugfs/kunit//run + +As a result, the test suite runs and the results are printed to the kernel +log. + +However, this feature is not available with KUnit suites that use init data, +because init data may have been discarded after the kernel boots. KUnit +suites that use init data should be defined using the +kunit_test_init_section_suites() macro. + +Also, you cannot use this feature to run tests concurrently. Instead a test +will wait to run until other tests have completed or failed. + +.. note :: + + For test authors, to use this feature, tests will need to correctly initialise + and/or clean up any data, so the test runs correctly a second time. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/dev-tools/sparse.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/dev-tools/sparse.rst index c33e7d8b7..dc791c8d8 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/dev-tools/sparse.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/dev-tools/sparse.rst @@ -1,104 +1,104 @@ -.. Copyright 2004 Linus Torvalds -.. Copyright 2004 Pavel Machek -.. Copyright 2006 Bob Copeland - -Sparse -====== - -Sparse is a semantic checker for C programs; it can be used to find a -number of potential problems with kernel code. See -https://lwn.net/Articles/689907/ for an overview of sparse; this document -contains some kernel-specific sparse information. -More information on sparse, mainly about its internals, can be found in -its official pages at https://sparse.docs.kernel.org. - - -Using sparse for typechecking ------------------------------ - -"__bitwise" is a type attribute, so you have to do something like this:: - - typedef int __bitwise pm_request_t; - - enum pm_request { - PM_SUSPEND = (__force pm_request_t) 1, - PM_RESUME = (__force pm_request_t) 2 - }; - -which makes PM_SUSPEND and PM_RESUME "bitwise" integers (the "__force" is -there because sparse will complain about casting to/from a bitwise type, -but in this case we really _do_ want to force the conversion). And because -the enum values are all the same type, now "enum pm_request" will be that -type too. - -And with gcc, all the "__bitwise"/"__force stuff" goes away, and it all -ends up looking just like integers to gcc. - -Quite frankly, you don't need the enum there. The above all really just -boils down to one special "int __bitwise" type. - -So the simpler way is to just do:: - - typedef int __bitwise pm_request_t; - - #define PM_SUSPEND ((__force pm_request_t) 1) - #define PM_RESUME ((__force pm_request_t) 2) - -and you now have all the infrastructure needed for strict typechecking. - -One small note: the constant integer "0" is special. You can use a -constant zero as a bitwise integer type without sparse ever complaining. -This is because "bitwise" (as the name implies) was designed for making -sure that bitwise types don't get mixed up (little-endian vs big-endian -vs cpu-endian vs whatever), and there the constant "0" really _is_ -special. - -Using sparse for lock checking ------------------------------- - -The following macros are undefined for gcc and defined during a sparse -run to use the "context" tracking feature of sparse, applied to -locking. These annotations tell sparse when a lock is held, with -regard to the annotated function's entry and exit. - -__must_hold - The specified lock is held on function entry and exit. - -__acquires - The specified lock is held on function exit, but not entry. - -__releases - The specified lock is held on function entry, but not exit. - -If the function enters and exits without the lock held, acquiring and -releasing the lock inside the function in a balanced way, no -annotation is needed. The three annotations above are for cases where -sparse would otherwise report a context imbalance. - -Getting sparse --------------- - -You can get tarballs of the latest released versions from: -https://www.kernel.org/pub/software/devel/sparse/dist/ - -Alternatively, you can get snapshots of the latest development version -of sparse using git to clone:: - - git://git.kernel.org/pub/scm/devel/sparse/sparse.git - -Once you have it, just do:: - - make - make install - -as a regular user, and it will install sparse in your ~/bin directory. - -Using sparse ------------- - -Do a kernel make with "make C=1" to run sparse on all the C files that get -recompiled, or use "make C=2" to run sparse on the files whether they need to -be recompiled or not. The latter is a fast way to check the whole tree if you -have already built it. - -The optional make variable CF can be used to pass arguments to sparse. The -build system passes -Wbitwise to sparse automatically. - -Note that sparse defines the __CHECKER__ preprocessor symbol. +.. Copyright 2004 Linus Torvalds +.. Copyright 2004 Pavel Machek +.. Copyright 2006 Bob Copeland + +Sparse +====== + +Sparse is a semantic checker for C programs; it can be used to find a +number of potential problems with kernel code. See +https://lwn.net/Articles/689907/ for an overview of sparse; this document +contains some kernel-specific sparse information. +More information on sparse, mainly about its internals, can be found in +its official pages at https://sparse.docs.kernel.org. + + +Using sparse for typechecking +----------------------------- + +"__bitwise" is a type attribute, so you have to do something like this:: + + typedef int __bitwise pm_request_t; + + enum pm_request { + PM_SUSPEND = (__force pm_request_t) 1, + PM_RESUME = (__force pm_request_t) 2 + }; + +which makes PM_SUSPEND and PM_RESUME "bitwise" integers (the "__force" is +there because sparse will complain about casting to/from a bitwise type, +but in this case we really _do_ want to force the conversion). And because +the enum values are all the same type, now "enum pm_request" will be that +type too. + +And with gcc, all the "__bitwise"/"__force stuff" goes away, and it all +ends up looking just like integers to gcc. + +Quite frankly, you don't need the enum there. The above all really just +boils down to one special "int __bitwise" type. + +So the simpler way is to just do:: + + typedef int __bitwise pm_request_t; + + #define PM_SUSPEND ((__force pm_request_t) 1) + #define PM_RESUME ((__force pm_request_t) 2) + +and you now have all the infrastructure needed for strict typechecking. + +One small note: the constant integer "0" is special. You can use a +constant zero as a bitwise integer type without sparse ever complaining. +This is because "bitwise" (as the name implies) was designed for making +sure that bitwise types don't get mixed up (little-endian vs big-endian +vs cpu-endian vs whatever), and there the constant "0" really _is_ +special. + +Using sparse for lock checking +------------------------------ + +The following macros are undefined for gcc and defined during a sparse +run to use the "context" tracking feature of sparse, applied to +locking. These annotations tell sparse when a lock is held, with +regard to the annotated function's entry and exit. + +__must_hold - The specified lock is held on function entry and exit. + +__acquires - The specified lock is held on function exit, but not entry. + +__releases - The specified lock is held on function entry, but not exit. + +If the function enters and exits without the lock held, acquiring and +releasing the lock inside the function in a balanced way, no +annotation is needed. The three annotations above are for cases where +sparse would otherwise report a context imbalance. + +Getting sparse +-------------- + +You can get tarballs of the latest released versions from: +https://www.kernel.org/pub/software/devel/sparse/dist/ + +Alternatively, you can get snapshots of the latest development version +of sparse using git to clone:: + + git://git.kernel.org/pub/scm/devel/sparse/sparse.git + +Once you have it, just do:: + + make + make install + +as a regular user, and it will install sparse in your ~/bin directory. + +Using sparse +------------ + +Do a kernel make with "make C=1" to run sparse on all the C files that get +recompiled, or use "make C=2" to run sparse on the files whether they need to +be recompiled or not. The latter is a fast way to check the whole tree if you +have already built it. + +The optional make variable CF can be used to pass arguments to sparse. The +build system passes -Wbitwise to sparse automatically. + +Note that sparse defines the __CHECKER__ preprocessor symbol. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/apple.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/apple.yaml index 92c337cfd..883fd67e3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/apple.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/apple.yaml @@ -1,114 +1,114 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/arm/apple.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Apple ARM Machine - -maintainers: - - Hector Martin - -description: | - ARM platforms using SoCs designed by Apple Inc., branded "Apple Silicon". - - This currently includes devices based on the "M1" SoC: - - - Mac mini (M1, 2020) - - MacBook Pro (13-inch, M1, 2020) - - MacBook Air (M1, 2020) - - iMac (24-inch, M1, 2021) - - Devices based on the "M2" SoC: - - - MacBook Air (M2, 2022) - - MacBook Pro (13-inch, M2, 2022) - - Mac mini (M2, 2023) - - And devices based on the "M1 Pro", "M1 Max" and "M1 Ultra" SoCs: - - - MacBook Pro (14-inch, M1 Pro, 2021) - - MacBook Pro (14-inch, M1 Max, 2021) - - MacBook Pro (16-inch, M1 Pro, 2021) - - MacBook Pro (16-inch, M1 Max, 2021) - - Mac Studio (M1 Max, 2022) - - Mac Studio (M1 Ultra, 2022) - - The compatible property should follow this format: - - compatible = "apple,", "apple,", "apple,arm-platform"; - - represents the board/device and comes from the `target-type` - property of the root node of the Apple Device Tree, lowercased. It can be - queried on macOS using the following command: - - $ ioreg -d2 -l | grep target-type - - is the lowercased SoC ID. Apple uses at least *five* different - names for their SoCs: - - - Marketing name ("M1") - - Internal name ("H13G") - - Codename ("Tonga") - - SoC ID ("T8103") - - Package/IC part number ("APL1102") - - Devicetrees should use the lowercased SoC ID, to avoid confusion if - multiple SoCs share the same marketing name. This can be obtained from - the `compatible` property of the arm-io node of the Apple Device Tree, - which can be queried as follows on macOS: - - $ ioreg -n arm-io | grep compatible - -properties: - $nodename: - const: "/" - compatible: - oneOf: - - description: Apple M1 SoC based platforms - items: - - enum: - - apple,j274 # Mac mini (M1, 2020) - - apple,j293 # MacBook Pro (13-inch, M1, 2020) - - apple,j313 # MacBook Air (M1, 2020) - - apple,j456 # iMac (24-inch, 4x USB-C, M1, 2021) - - apple,j457 # iMac (24-inch, 2x USB-C, M1, 2021) - - const: apple,t8103 - - const: apple,arm-platform - - - description: Apple M2 SoC based platforms - items: - - enum: - - apple,j413 # MacBook Air (M2, 2022) - - apple,j473 # Mac mini (M2, 2023) - - apple,j493 # MacBook Pro (13-inch, M2, 2022) - - const: apple,t8112 - - const: apple,arm-platform - - - description: Apple M1 Pro SoC based platforms - items: - - enum: - - apple,j314s # MacBook Pro (14-inch, M1 Pro, 2021) - - apple,j316s # MacBook Pro (16-inch, M1 Pro, 2021) - - const: apple,t6000 - - const: apple,arm-platform - - - description: Apple M1 Max SoC based platforms - items: - - enum: - - apple,j314c # MacBook Pro (14-inch, M1 Max, 2021) - - apple,j316c # MacBook Pro (16-inch, M1 Max, 2021) - - apple,j375c # Mac Studio (M1 Max, 2022) - - const: apple,t6001 - - const: apple,arm-platform - - - description: Apple M1 Ultra SoC based platforms - items: - - enum: - - apple,j375d # Mac Studio (M1 Ultra, 2022) - - const: apple,t6002 - - const: apple,arm-platform - -additionalProperties: true - -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/apple.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple ARM Machine + +maintainers: + - Hector Martin + +description: | + ARM platforms using SoCs designed by Apple Inc., branded "Apple Silicon". + + This currently includes devices based on the "M1" SoC: + + - Mac mini (M1, 2020) + - MacBook Pro (13-inch, M1, 2020) + - MacBook Air (M1, 2020) + - iMac (24-inch, M1, 2021) + + Devices based on the "M2" SoC: + + - MacBook Air (M2, 2022) + - MacBook Pro (13-inch, M2, 2022) + - Mac mini (M2, 2023) + + And devices based on the "M1 Pro", "M1 Max" and "M1 Ultra" SoCs: + + - MacBook Pro (14-inch, M1 Pro, 2021) + - MacBook Pro (14-inch, M1 Max, 2021) + - MacBook Pro (16-inch, M1 Pro, 2021) + - MacBook Pro (16-inch, M1 Max, 2021) + - Mac Studio (M1 Max, 2022) + - Mac Studio (M1 Ultra, 2022) + + The compatible property should follow this format: + + compatible = "apple,", "apple,", "apple,arm-platform"; + + represents the board/device and comes from the `target-type` + property of the root node of the Apple Device Tree, lowercased. It can be + queried on macOS using the following command: + + $ ioreg -d2 -l | grep target-type + + is the lowercased SoC ID. Apple uses at least *five* different + names for their SoCs: + + - Marketing name ("M1") + - Internal name ("H13G") + - Codename ("Tonga") + - SoC ID ("T8103") + - Package/IC part number ("APL1102") + + Devicetrees should use the lowercased SoC ID, to avoid confusion if + multiple SoCs share the same marketing name. This can be obtained from + the `compatible` property of the arm-io node of the Apple Device Tree, + which can be queried as follows on macOS: + + $ ioreg -n arm-io | grep compatible + +properties: + $nodename: + const: "/" + compatible: + oneOf: + - description: Apple M1 SoC based platforms + items: + - enum: + - apple,j274 # Mac mini (M1, 2020) + - apple,j293 # MacBook Pro (13-inch, M1, 2020) + - apple,j313 # MacBook Air (M1, 2020) + - apple,j456 # iMac (24-inch, 4x USB-C, M1, 2021) + - apple,j457 # iMac (24-inch, 2x USB-C, M1, 2021) + - const: apple,t8103 + - const: apple,arm-platform + + - description: Apple M2 SoC based platforms + items: + - enum: + - apple,j413 # MacBook Air (M2, 2022) + - apple,j473 # Mac mini (M2, 2023) + - apple,j493 # MacBook Pro (13-inch, M2, 2022) + - const: apple,t8112 + - const: apple,arm-platform + + - description: Apple M1 Pro SoC based platforms + items: + - enum: + - apple,j314s # MacBook Pro (14-inch, M1 Pro, 2021) + - apple,j316s # MacBook Pro (16-inch, M1 Pro, 2021) + - const: apple,t6000 + - const: apple,arm-platform + + - description: Apple M1 Max SoC based platforms + items: + - enum: + - apple,j314c # MacBook Pro (14-inch, M1 Max, 2021) + - apple,j316c # MacBook Pro (16-inch, M1 Max, 2021) + - apple,j375c # Mac Studio (M1 Max, 2022) + - const: apple,t6001 + - const: apple,arm-platform + + - description: Apple M1 Ultra SoC based platforms + items: + - enum: + - apple,j375d # Mac Studio (M1 Ultra, 2022) + - const: apple,t6002 + - const: apple,arm-platform + +additionalProperties: true + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/apple/apple,pmgr.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/apple/apple,pmgr.yaml index fceefcdc1..673277a7a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/apple/apple,pmgr.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/apple/apple,pmgr.yaml @@ -1,135 +1,135 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/arm/apple/apple,pmgr.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Apple SoC Power Manager (PMGR) - -maintainers: - - Hector Martin - -description: | - Apple SoCs include PMGR blocks responsible for power management, - which can control various clocks, resets, power states, and - performance features. This node represents the PMGR as a syscon, - with sub-nodes representing individual features. - -properties: - $nodename: - pattern: "^power-management@[0-9a-f]+$" - - compatible: - items: - - enum: - - apple,t8103-pmgr - - apple,t8112-pmgr - - apple,t6000-pmgr - - const: apple,pmgr - - const: syscon - - const: simple-mfd - - reg: - maxItems: 1 - - "#address-cells": - const: 1 - - "#size-cells": - const: 1 - -patternProperties: - "power-controller@[0-9a-f]+$": - description: - The individual power management domains within this controller - type: object - $ref: /schemas/power/apple,pmgr-pwrstate.yaml# - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - soc { - #address-cells = <2>; - #size-cells = <2>; - - power-management@23b700000 { - compatible = "apple,t8103-pmgr", "apple,pmgr", "syscon", "simple-mfd"; - #address-cells = <1>; - #size-cells = <1>; - reg = <0x2 0x3b700000 0x0 0x14000>; - - ps_sio: power-controller@1c0 { - compatible = "apple,t8103-pmgr-pwrstate", "apple,pmgr-pwrstate"; - reg = <0x1c0 8>; - #power-domain-cells = <0>; - #reset-cells = <0>; - label = "sio"; - apple,always-on; - }; - - ps_uart_p: power-controller@220 { - compatible = "apple,t8103-pmgr-pwrstate", "apple,pmgr-pwrstate"; - reg = <0x220 8>; - #power-domain-cells = <0>; - #reset-cells = <0>; - label = "uart_p"; - power-domains = <&ps_sio>; - }; - - ps_uart0: power-controller@270 { - compatible = "apple,t8103-pmgr-pwrstate", "apple,pmgr-pwrstate"; - reg = <0x270 8>; - #power-domain-cells = <0>; - #reset-cells = <0>; - label = "uart0"; - power-domains = <&ps_uart_p>; - }; - }; - - power-management@23d280000 { - compatible = "apple,t8103-pmgr", "apple,pmgr", "syscon", "simple-mfd"; - #address-cells = <1>; - #size-cells = <1>; - reg = <0x2 0x3d280000 0x0 0xc000>; - - ps_aop_filter: power-controller@4000 { - compatible = "apple,t8103-pmgr-pwrstate", "apple,pmgr-pwrstate"; - reg = <0x4000 8>; - #power-domain-cells = <0>; - #reset-cells = <0>; - label = "aop_filter"; - }; - - ps_aop_base: power-controller@4010 { - compatible = "apple,t8103-pmgr-pwrstate", "apple,pmgr-pwrstate"; - reg = <0x4010 8>; - #power-domain-cells = <0>; - #reset-cells = <0>; - label = "aop_base"; - power-domains = <&ps_aop_filter>; - }; - - ps_aop_shim: power-controller@4038 { - compatible = "apple,t8103-pmgr-pwrstate", "apple,pmgr-pwrstate"; - reg = <0x4038 8>; - #power-domain-cells = <0>; - #reset-cells = <0>; - label = "aop_shim"; - power-domains = <&ps_aop_base>; - }; - - ps_aop_uart0: power-controller@4048 { - compatible = "apple,t8103-pmgr-pwrstate", "apple,pmgr-pwrstate"; - reg = <0x4048 8>; - #power-domain-cells = <0>; - #reset-cells = <0>; - label = "aop_uart0"; - power-domains = <&ps_aop_shim>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/apple/apple,pmgr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple SoC Power Manager (PMGR) + +maintainers: + - Hector Martin + +description: | + Apple SoCs include PMGR blocks responsible for power management, + which can control various clocks, resets, power states, and + performance features. This node represents the PMGR as a syscon, + with sub-nodes representing individual features. + +properties: + $nodename: + pattern: "^power-management@[0-9a-f]+$" + + compatible: + items: + - enum: + - apple,t8103-pmgr + - apple,t8112-pmgr + - apple,t6000-pmgr + - const: apple,pmgr + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + +patternProperties: + "power-controller@[0-9a-f]+$": + description: + The individual power management domains within this controller + type: object + $ref: /schemas/power/apple,pmgr-pwrstate.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + power-management@23b700000 { + compatible = "apple,t8103-pmgr", "apple,pmgr", "syscon", "simple-mfd"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x2 0x3b700000 0x0 0x14000>; + + ps_sio: power-controller@1c0 { + compatible = "apple,t8103-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg = <0x1c0 8>; + #power-domain-cells = <0>; + #reset-cells = <0>; + label = "sio"; + apple,always-on; + }; + + ps_uart_p: power-controller@220 { + compatible = "apple,t8103-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg = <0x220 8>; + #power-domain-cells = <0>; + #reset-cells = <0>; + label = "uart_p"; + power-domains = <&ps_sio>; + }; + + ps_uart0: power-controller@270 { + compatible = "apple,t8103-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg = <0x270 8>; + #power-domain-cells = <0>; + #reset-cells = <0>; + label = "uart0"; + power-domains = <&ps_uart_p>; + }; + }; + + power-management@23d280000 { + compatible = "apple,t8103-pmgr", "apple,pmgr", "syscon", "simple-mfd"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x2 0x3d280000 0x0 0xc000>; + + ps_aop_filter: power-controller@4000 { + compatible = "apple,t8103-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg = <0x4000 8>; + #power-domain-cells = <0>; + #reset-cells = <0>; + label = "aop_filter"; + }; + + ps_aop_base: power-controller@4010 { + compatible = "apple,t8103-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg = <0x4010 8>; + #power-domain-cells = <0>; + #reset-cells = <0>; + label = "aop_base"; + power-domains = <&ps_aop_filter>; + }; + + ps_aop_shim: power-controller@4038 { + compatible = "apple,t8103-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg = <0x4038 8>; + #power-domain-cells = <0>; + #reset-cells = <0>; + label = "aop_shim"; + power-domains = <&ps_aop_base>; + }; + + ps_aop_uart0: power-controller@4048 { + compatible = "apple,t8103-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg = <0x4048 8>; + #power-domain-cells = <0>; + #reset-cells = <0>; + label = "aop_uart0"; + power-domains = <&ps_aop_shim>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/arm,coresight-etm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/arm,coresight-etm.yaml index 5bc2b4c3b..01200f675 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/arm,coresight-etm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/arm,coresight-etm.yaml @@ -1,159 +1,159 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/arm/arm,coresight-etm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Arm CoreSight Embedded Trace MacroCell - -maintainers: - - Mathieu Poirier - - Mike Leach - - Leo Yan - - Suzuki K Poulose - -description: | - CoreSight components are compliant with the ARM CoreSight architecture - specification and can be connected in various topologies to suit a particular - SoCs tracing needs. These trace components can generally be classified as - sinks, links and sources. Trace data produced by one or more sources flows - through the intermediate links connecting the source to the currently selected - sink. - - The Embedded Trace Macrocell (ETM) is a real-time trace module providing - instruction and data tracing of a processor. - -select: - properties: - compatible: - contains: - enum: - - arm,coresight-etm3x - - arm,coresight-etm4x - - arm,coresight-etm4x-sysreg - required: - - compatible - -allOf: - - if: - not: - properties: - compatible: - contains: - const: arm,coresight-etm4x-sysreg - then: - $ref: /schemas/arm/primecell.yaml# - required: - - reg - -properties: - compatible: - oneOf: - - description: - Embedded Trace Macrocell with memory mapped access. - items: - - enum: - - arm,coresight-etm3x - - arm,coresight-etm4x - - const: arm,primecell - - description: - Embedded Trace Macrocell (version 4.x), with system register access only - const: arm,coresight-etm4x-sysreg - - reg: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 2 - - clock-names: - minItems: 1 - items: - - const: apb_pclk - - const: atclk - - power-domains: - maxItems: 1 - - arm,coresight-loses-context-with-cpu: - type: boolean - description: - Indicates that the hardware will lose register context on CPU power down - (e.g. CPUIdle). An example of where this may be needed are systems which - contain a coresight component and CPU in the same power domain. When the - CPU powers down the coresight component also powers down and loses its - context. - - arm,cp14: - type: boolean - description: - Must be present if the system accesses ETM/PTM management registers via - co-processor 14. - - qcom,skip-power-up: - type: boolean - description: - Indicates that an implementation can skip powering up the trace unit. - TRCPDCR.PU does not have to be set on Qualcomm Technologies Inc. systems - since ETMs are in the same power domain as their CPU cores. This property - is required to identify such systems with hardware errata where the CPU - watchdog counter is stopped when TRCPDCR.PU is set. - - cpu: - description: - phandle to the cpu this ETM is bound to. - $ref: /schemas/types.yaml#/definitions/phandle - - out-ports: - $ref: /schemas/graph.yaml#/properties/ports - additionalProperties: false - - properties: - port: - description: Output connection from the ETM to CoreSight Trace bus. - $ref: /schemas/graph.yaml#/properties/port - -required: - - compatible - - clocks - - clock-names - - cpu - - out-ports - -unevaluatedProperties: false - -examples: - - | - ptm@2201c000 { - compatible = "arm,coresight-etm3x", "arm,primecell"; - reg = <0x2201c000 0x1000>; - - cpu = <&cpu0>; - clocks = <&oscclk6a>; - clock-names = "apb_pclk"; - out-ports { - port { - ptm0_out_port: endpoint { - remote-endpoint = <&funnel_in_port0>; - }; - }; - }; - }; - - ptm@2201d000 { - compatible = "arm,coresight-etm3x", "arm,primecell"; - reg = <0x2201d000 0x1000>; - - cpu = <&cpu1>; - clocks = <&oscclk6a>; - clock-names = "apb_pclk"; - out-ports { - port { - ptm1_out_port: endpoint { - remote-endpoint = <&funnel_in_port1>; - }; - }; - }; - }; -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/arm,coresight-etm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Arm CoreSight Embedded Trace MacroCell + +maintainers: + - Mathieu Poirier + - Mike Leach + - Leo Yan + - Suzuki K Poulose + +description: | + CoreSight components are compliant with the ARM CoreSight architecture + specification and can be connected in various topologies to suit a particular + SoCs tracing needs. These trace components can generally be classified as + sinks, links and sources. Trace data produced by one or more sources flows + through the intermediate links connecting the source to the currently selected + sink. + + The Embedded Trace Macrocell (ETM) is a real-time trace module providing + instruction and data tracing of a processor. + +select: + properties: + compatible: + contains: + enum: + - arm,coresight-etm3x + - arm,coresight-etm4x + - arm,coresight-etm4x-sysreg + required: + - compatible + +allOf: + - if: + not: + properties: + compatible: + contains: + const: arm,coresight-etm4x-sysreg + then: + $ref: /schemas/arm/primecell.yaml# + required: + - reg + +properties: + compatible: + oneOf: + - description: + Embedded Trace Macrocell with memory mapped access. + items: + - enum: + - arm,coresight-etm3x + - arm,coresight-etm4x + - const: arm,primecell + - description: + Embedded Trace Macrocell (version 4.x), with system register access only + const: arm,coresight-etm4x-sysreg + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + items: + - const: apb_pclk + - const: atclk + + power-domains: + maxItems: 1 + + arm,coresight-loses-context-with-cpu: + type: boolean + description: + Indicates that the hardware will lose register context on CPU power down + (e.g. CPUIdle). An example of where this may be needed are systems which + contain a coresight component and CPU in the same power domain. When the + CPU powers down the coresight component also powers down and loses its + context. + + arm,cp14: + type: boolean + description: + Must be present if the system accesses ETM/PTM management registers via + co-processor 14. + + qcom,skip-power-up: + type: boolean + description: + Indicates that an implementation can skip powering up the trace unit. + TRCPDCR.PU does not have to be set on Qualcomm Technologies Inc. systems + since ETMs are in the same power domain as their CPU cores. This property + is required to identify such systems with hardware errata where the CPU + watchdog counter is stopped when TRCPDCR.PU is set. + + cpu: + description: + phandle to the cpu this ETM is bound to. + $ref: /schemas/types.yaml#/definitions/phandle + + out-ports: + $ref: /schemas/graph.yaml#/properties/ports + additionalProperties: false + + properties: + port: + description: Output connection from the ETM to CoreSight Trace bus. + $ref: /schemas/graph.yaml#/properties/port + +required: + - compatible + - clocks + - clock-names + - cpu + - out-ports + +unevaluatedProperties: false + +examples: + - | + ptm@2201c000 { + compatible = "arm,coresight-etm3x", "arm,primecell"; + reg = <0x2201c000 0x1000>; + + cpu = <&cpu0>; + clocks = <&oscclk6a>; + clock-names = "apb_pclk"; + out-ports { + port { + ptm0_out_port: endpoint { + remote-endpoint = <&funnel_in_port0>; + }; + }; + }; + }; + + ptm@2201d000 { + compatible = "arm,coresight-etm3x", "arm,primecell"; + reg = <0x2201d000 0x1000>; + + cpu = <&cpu1>; + clocks = <&oscclk6a>; + clock-names = "apb_pclk"; + out-ports { + port { + ptm1_out_port: endpoint { + remote-endpoint = <&funnel_in_port1>; + }; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/arm,coresight-tmc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/arm,coresight-tmc.yaml index 554d3ab98..cb8dceaca 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/arm,coresight-tmc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/arm,coresight-tmc.yaml @@ -1,137 +1,137 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/arm/arm,coresight-tmc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Arm CoreSight Trace Memory Controller - -maintainers: - - Mathieu Poirier - - Mike Leach - - Leo Yan - - Suzuki K Poulose - -description: | - CoreSight components are compliant with the ARM CoreSight architecture - specification and can be connected in various topologies to suit a particular - SoCs tracing needs. These trace components can generally be classified as - sinks, links and sources. Trace data produced by one or more sources flows - through the intermediate links connecting the source to the currently selected - sink. - - Trace Memory Controller is used for Embedded Trace Buffer(ETB), Embedded Trace - FIFO(ETF) and Embedded Trace Router(ETR) configurations. The configuration - mode (ETB, ETF, ETR) is discovered at boot time when the device is probed. - -# Need a custom select here or 'arm,primecell' will match on lots of nodes -select: - properties: - compatible: - contains: - const: arm,coresight-tmc - required: - - compatible - -allOf: - - $ref: /schemas/arm/primecell.yaml# - -properties: - compatible: - items: - - const: arm,coresight-tmc - - const: arm,primecell - - reg: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 2 - - clock-names: - minItems: 1 - items: - - const: apb_pclk - - const: atclk - - iommus: - maxItems: 1 - - power-domains: - maxItems: 1 - - arm,buffer-size: - $ref: /schemas/types.yaml#/definitions/uint32 - deprecated: true - description: - Size of contiguous buffer space for TMC ETR (embedded trace router). The - buffer size can be configured dynamically via buffer_size property in - sysfs instead. - - arm,scatter-gather: - type: boolean - description: - Indicates that the TMC-ETR can safely use the SG mode on this system. - - arm,max-burst-size: - description: - The maximum burst size initiated by TMC on the AXI master interface. The - burst size can be in the range [0..15], the setting supports one data - transfer per burst up to a maximum of 16 data transfers per burst. - $ref: /schemas/types.yaml#/definitions/uint32 - maximum: 15 - - in-ports: - $ref: /schemas/graph.yaml#/properties/ports - additionalProperties: false - - properties: - port: - description: Input connection from the CoreSight Trace bus. - $ref: /schemas/graph.yaml#/properties/port - - out-ports: - $ref: /schemas/graph.yaml#/properties/ports - additionalProperties: false - - properties: - port: - description: AXI or ATB Master output connection. Used for ETR - and ETF configurations. - $ref: /schemas/graph.yaml#/properties/port - -required: - - compatible - - reg - - clocks - - clock-names - - in-ports - -unevaluatedProperties: false - -examples: - - | - etr@20070000 { - compatible = "arm,coresight-tmc", "arm,primecell"; - reg = <0x20070000 0x1000>; - - clocks = <&oscclk6a>; - clock-names = "apb_pclk"; - in-ports { - port { - etr_in_port: endpoint { - remote-endpoint = <&replicator2_out_port0>; - }; - }; - }; - - out-ports { - port { - etr_out_port: endpoint { - remote-endpoint = <&catu_in_port>; - }; - }; - }; - }; -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/arm,coresight-tmc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Arm CoreSight Trace Memory Controller + +maintainers: + - Mathieu Poirier + - Mike Leach + - Leo Yan + - Suzuki K Poulose + +description: | + CoreSight components are compliant with the ARM CoreSight architecture + specification and can be connected in various topologies to suit a particular + SoCs tracing needs. These trace components can generally be classified as + sinks, links and sources. Trace data produced by one or more sources flows + through the intermediate links connecting the source to the currently selected + sink. + + Trace Memory Controller is used for Embedded Trace Buffer(ETB), Embedded Trace + FIFO(ETF) and Embedded Trace Router(ETR) configurations. The configuration + mode (ETB, ETF, ETR) is discovered at boot time when the device is probed. + +# Need a custom select here or 'arm,primecell' will match on lots of nodes +select: + properties: + compatible: + contains: + const: arm,coresight-tmc + required: + - compatible + +allOf: + - $ref: /schemas/arm/primecell.yaml# + +properties: + compatible: + items: + - const: arm,coresight-tmc + - const: arm,primecell + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + items: + - const: apb_pclk + - const: atclk + + iommus: + maxItems: 1 + + power-domains: + maxItems: 1 + + arm,buffer-size: + $ref: /schemas/types.yaml#/definitions/uint32 + deprecated: true + description: + Size of contiguous buffer space for TMC ETR (embedded trace router). The + buffer size can be configured dynamically via buffer_size property in + sysfs instead. + + arm,scatter-gather: + type: boolean + description: + Indicates that the TMC-ETR can safely use the SG mode on this system. + + arm,max-burst-size: + description: + The maximum burst size initiated by TMC on the AXI master interface. The + burst size can be in the range [0..15], the setting supports one data + transfer per burst up to a maximum of 16 data transfers per burst. + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 15 + + in-ports: + $ref: /schemas/graph.yaml#/properties/ports + additionalProperties: false + + properties: + port: + description: Input connection from the CoreSight Trace bus. + $ref: /schemas/graph.yaml#/properties/port + + out-ports: + $ref: /schemas/graph.yaml#/properties/ports + additionalProperties: false + + properties: + port: + description: AXI or ATB Master output connection. Used for ETR + and ETF configurations. + $ref: /schemas/graph.yaml#/properties/port + +required: + - compatible + - reg + - clocks + - clock-names + - in-ports + +unevaluatedProperties: false + +examples: + - | + etr@20070000 { + compatible = "arm,coresight-tmc", "arm,primecell"; + reg = <0x20070000 0x1000>; + + clocks = <&oscclk6a>; + clock-names = "apb_pclk"; + in-ports { + port { + etr_in_port: endpoint { + remote-endpoint = <&replicator2_out_port0>; + }; + }; + }; + + out-ports { + port { + etr_out_port: endpoint { + remote-endpoint = <&catu_in_port>; + }; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml index ff9d7ec60..07892cbdd 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml @@ -1,151 +1,151 @@ -# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/arm/bcm/brcm,bcmbca.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Broadcom Broadband SoC - -description: - Broadcom Broadband SoCs include family of high performance DSL/PON/Wireless - chips that can be used as home gateway, router and WLAN AP for residential, - enterprise and carrier applications. - -maintainers: - - William Zhang - - Anand Gore - - Kursad Oney - - Rafał Miłecki - -properties: - $nodename: - const: '/' - compatible: - oneOf: - - description: BCM47622 based boards - items: - - enum: - - brcm,bcm947622 - - const: brcm,bcm47622 - - const: brcm,bcmbca - - - description: BCM4906 based boards - items: - - enum: - - netgear,r8000p - - tplink,archer-c2300-v1 - - const: brcm,bcm4906 - - const: brcm,bcm4908 - - const: brcm,bcmbca - - - description: BCM4908 based boards - items: - - enum: - - asus,gt-ac5300 - - brcm,bcm94908 - - netgear,raxe500 - - const: brcm,bcm4908 - - const: brcm,bcmbca - - - description: BCM49408 based boards - items: - - const: brcm,bcm49408 - - const: brcm,bcm4908 - - const: brcm,bcmbca - - - description: BCM4912 based boards - items: - - enum: - - asus,gt-ax6000 - - brcm,bcm94912 - - const: brcm,bcm4912 - - const: brcm,bcmbca - - - description: BCM63138 based boards - items: - - enum: - - brcm,bcm963138 - - brcm,BCM963138DVT - - const: brcm,bcm63138 - - const: brcm,bcmbca - - - description: BCM63146 based boards - items: - - enum: - - brcm,bcm963146 - - const: brcm,bcm63146 - - const: brcm,bcmbca - - - description: BCM63148 based boards - items: - - enum: - - brcm,bcm963148 - - const: brcm,bcm63148 - - const: brcm,bcmbca - - - description: BCM63158 based boards - items: - - enum: - - brcm,bcm963158 - - const: brcm,bcm63158 - - const: brcm,bcmbca - - - description: BCM63178 based boards - items: - - enum: - - brcm,bcm963178 - - const: brcm,bcm63178 - - const: brcm,bcmbca - - - description: BCM6756 based boards - items: - - enum: - - brcm,bcm96756 - - const: brcm,bcm6756 - - const: brcm,bcmbca - - - description: BCM6813 based boards - items: - - enum: - - brcm,bcm96813 - - const: brcm,bcm6813 - - const: brcm,bcmbca - - - description: BCM6846 based boards - items: - - enum: - - brcm,bcm96846 - - const: brcm,bcm6846 - - const: brcm,bcmbca - - - description: BCM6855 based boards - items: - - enum: - - brcm,bcm96855 - - const: brcm,bcm6855 - - const: brcm,bcmbca - - - description: BCM6856 based boards - items: - - enum: - - brcm,bcm96856 - - const: brcm,bcm6856 - - const: brcm,bcmbca - - - description: BCM6858 based boards - items: - - enum: - - brcm,bcm96858 - - const: brcm,bcm6858 - - const: brcm,bcmbca - - - description: BCM6878 based boards - items: - - enum: - - brcm,bcm96878 - - const: brcm,bcm6878 - - const: brcm,bcmbca - -additionalProperties: true - -... +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/bcm/brcm,bcmbca.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Broadband SoC + +description: + Broadcom Broadband SoCs include family of high performance DSL/PON/Wireless + chips that can be used as home gateway, router and WLAN AP for residential, + enterprise and carrier applications. + +maintainers: + - William Zhang + - Anand Gore + - Kursad Oney + - Rafał Miłecki + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: BCM47622 based boards + items: + - enum: + - brcm,bcm947622 + - const: brcm,bcm47622 + - const: brcm,bcmbca + + - description: BCM4906 based boards + items: + - enum: + - netgear,r8000p + - tplink,archer-c2300-v1 + - const: brcm,bcm4906 + - const: brcm,bcm4908 + - const: brcm,bcmbca + + - description: BCM4908 based boards + items: + - enum: + - asus,gt-ac5300 + - brcm,bcm94908 + - netgear,raxe500 + - const: brcm,bcm4908 + - const: brcm,bcmbca + + - description: BCM49408 based boards + items: + - const: brcm,bcm49408 + - const: brcm,bcm4908 + - const: brcm,bcmbca + + - description: BCM4912 based boards + items: + - enum: + - asus,gt-ax6000 + - brcm,bcm94912 + - const: brcm,bcm4912 + - const: brcm,bcmbca + + - description: BCM63138 based boards + items: + - enum: + - brcm,bcm963138 + - brcm,BCM963138DVT + - const: brcm,bcm63138 + - const: brcm,bcmbca + + - description: BCM63146 based boards + items: + - enum: + - brcm,bcm963146 + - const: brcm,bcm63146 + - const: brcm,bcmbca + + - description: BCM63148 based boards + items: + - enum: + - brcm,bcm963148 + - const: brcm,bcm63148 + - const: brcm,bcmbca + + - description: BCM63158 based boards + items: + - enum: + - brcm,bcm963158 + - const: brcm,bcm63158 + - const: brcm,bcmbca + + - description: BCM63178 based boards + items: + - enum: + - brcm,bcm963178 + - const: brcm,bcm63178 + - const: brcm,bcmbca + + - description: BCM6756 based boards + items: + - enum: + - brcm,bcm96756 + - const: brcm,bcm6756 + - const: brcm,bcmbca + + - description: BCM6813 based boards + items: + - enum: + - brcm,bcm96813 + - const: brcm,bcm6813 + - const: brcm,bcmbca + + - description: BCM6846 based boards + items: + - enum: + - brcm,bcm96846 + - const: brcm,bcm6846 + - const: brcm,bcmbca + + - description: BCM6855 based boards + items: + - enum: + - brcm,bcm96855 + - const: brcm,bcm6855 + - const: brcm,bcmbca + + - description: BCM6856 based boards + items: + - enum: + - brcm,bcm96856 + - const: brcm,bcm6856 + - const: brcm,bcmbca + + - description: BCM6858 based boards + items: + - enum: + - brcm,bcm96858 + - const: brcm,bcm6858 + - const: brcm,bcmbca + + - description: BCM6878 based boards + items: + - enum: + - brcm,bcm96878 + - const: brcm,bcm6878 + - const: brcm,bcmbca + +additionalProperties: true + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/hisilicon/controller/sysctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/hisilicon/controller/sysctrl.yaml index 6050c113f..7a221e1c0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/hisilicon/controller/sysctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/hisilicon/controller/sysctrl.yaml @@ -1,149 +1,149 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/arm/hisilicon/controller/sysctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Hisilicon system controller - -maintainers: - - Wei Xu - -description: | - The Hisilicon system controller is used on many Hisilicon boards, it can be - used to assist the slave core startup, reboot the system, etc. - - There are some variants of the Hisilicon system controller, such as HiP01, - Hi3519, Hi6220 system controller, each of them is mostly compatible with the - Hisilicon system controller, but some same registers located at different - offset. In addition, the HiP01 system controller has some specific control - registers for HIP01 SoC family, such as slave core boot. - - The compatible names of each system controller are as follows: - Hisilicon system controller --> hisilicon,sysctrl - HiP01 system controller --> hisilicon,hip01-sysctrl - Hi6220 system controller --> hisilicon,hi6220-sysctrl - Hi3519 system controller --> hisilicon,hi3519-sysctrl - -allOf: - - if: - properties: - compatible: - contains: - const: hisilicon,hi6220-sysctrl - then: - required: - - '#clock-cells' - -properties: - compatible: - oneOf: - - items: - - enum: - - hisilicon,sysctrl - - hisilicon,hi6220-sysctrl - - hisilicon,hi3519-sysctrl - - const: syscon - - items: - - const: hisilicon,hip01-sysctrl - - const: hisilicon,sysctrl - - reg: - maxItems: 1 - - smp-offset: - description: | - offset in sysctrl for notifying slave cpu booting - cpu 1, reg; - cpu 2, reg + 0x4; - cpu 3, reg + 0x8; - If reg value is not zero, cpun exit wfi and go - $ref: /schemas/types.yaml#/definitions/uint32 - - resume-offset: - description: offset in sysctrl for notifying cpu0 when resume - $ref: /schemas/types.yaml#/definitions/uint32 - - reboot-offset: - description: offset in sysctrl for system reboot - $ref: /schemas/types.yaml#/definitions/uint32 - - '#clock-cells': - const: 1 - - '#reset-cells': - const: 1 - - '#address-cells': - const: 1 - - '#size-cells': - const: 1 - - ranges: true - -patternProperties: - '^clock@': - type: object - additionalProperties: false - - properties: - compatible: - enum: - - hisilicon,hi3620-clock - - hisilicon,hi3620-mmc-clock - - reg: - maxItems: 1 - - '#clock-cells': - const: 1 - -required: - - compatible - - reg - -additionalProperties: - type: object - -examples: - - | - /* Hisilicon system controller */ - system-controller@802000 { - compatible = "hisilicon,sysctrl", "syscon"; - #address-cells = <1>; - #size-cells = <1>; - ranges = <0 0x802000 0x1000>; - reg = <0x802000 0x1000>; - - smp-offset = <0x31c>; - resume-offset = <0x308>; - reboot-offset = <0x4>; - - clock: clock@0 { - compatible = "hisilicon,hi3620-clock"; - reg = <0 0x10000>; - #clock-cells = <1>; - }; - }; - - /* HiP01 system controller */ - system-controller@10000000 { - compatible = "hisilicon,hip01-sysctrl", "hisilicon,sysctrl"; - reg = <0x10000000 0x1000>; - reboot-offset = <0x4>; - }; - - /* Hi6220 system controller */ - system-controller@f7030000 { - compatible = "hisilicon,hi6220-sysctrl", "syscon"; - reg = <0xf7030000 0x2000>; - #clock-cells = <1>; - }; - - /* Hi3519 system controller */ - system-controller@12010000 { - compatible = "hisilicon,hi3519-sysctrl", "syscon"; - reg = <0x12010000 0x1000>; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/hisilicon/controller/sysctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Hisilicon system controller + +maintainers: + - Wei Xu + +description: | + The Hisilicon system controller is used on many Hisilicon boards, it can be + used to assist the slave core startup, reboot the system, etc. + + There are some variants of the Hisilicon system controller, such as HiP01, + Hi3519, Hi6220 system controller, each of them is mostly compatible with the + Hisilicon system controller, but some same registers located at different + offset. In addition, the HiP01 system controller has some specific control + registers for HIP01 SoC family, such as slave core boot. + + The compatible names of each system controller are as follows: + Hisilicon system controller --> hisilicon,sysctrl + HiP01 system controller --> hisilicon,hip01-sysctrl + Hi6220 system controller --> hisilicon,hi6220-sysctrl + Hi3519 system controller --> hisilicon,hi3519-sysctrl + +allOf: + - if: + properties: + compatible: + contains: + const: hisilicon,hi6220-sysctrl + then: + required: + - '#clock-cells' + +properties: + compatible: + oneOf: + - items: + - enum: + - hisilicon,sysctrl + - hisilicon,hi6220-sysctrl + - hisilicon,hi3519-sysctrl + - const: syscon + - items: + - const: hisilicon,hip01-sysctrl + - const: hisilicon,sysctrl + + reg: + maxItems: 1 + + smp-offset: + description: | + offset in sysctrl for notifying slave cpu booting + cpu 1, reg; + cpu 2, reg + 0x4; + cpu 3, reg + 0x8; + If reg value is not zero, cpun exit wfi and go + $ref: /schemas/types.yaml#/definitions/uint32 + + resume-offset: + description: offset in sysctrl for notifying cpu0 when resume + $ref: /schemas/types.yaml#/definitions/uint32 + + reboot-offset: + description: offset in sysctrl for system reboot + $ref: /schemas/types.yaml#/definitions/uint32 + + '#clock-cells': + const: 1 + + '#reset-cells': + const: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + + ranges: true + +patternProperties: + '^clock@': + type: object + additionalProperties: false + + properties: + compatible: + enum: + - hisilicon,hi3620-clock + - hisilicon,hi3620-mmc-clock + + reg: + maxItems: 1 + + '#clock-cells': + const: 1 + +required: + - compatible + - reg + +additionalProperties: + type: object + +examples: + - | + /* Hisilicon system controller */ + system-controller@802000 { + compatible = "hisilicon,sysctrl", "syscon"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x802000 0x1000>; + reg = <0x802000 0x1000>; + + smp-offset = <0x31c>; + resume-offset = <0x308>; + reboot-offset = <0x4>; + + clock: clock@0 { + compatible = "hisilicon,hi3620-clock"; + reg = <0 0x10000>; + #clock-cells = <1>; + }; + }; + + /* HiP01 system controller */ + system-controller@10000000 { + compatible = "hisilicon,hip01-sysctrl", "hisilicon,sysctrl"; + reg = <0x10000000 0x1000>; + reboot-offset = <0x4>; + }; + + /* Hi6220 system controller */ + system-controller@f7030000 { + compatible = "hisilicon,hi6220-sysctrl", "syscon"; + reg = <0xf7030000 0x2000>; + #clock-cells = <1>; + }; + + /* Hi3519 system controller */ + system-controller@12010000 { + compatible = "hisilicon,hi3519-sysctrl", "syscon"; + reg = <0x12010000 0x1000>; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml index 42f0a9724..25a2b4210 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml @@ -1,124 +1,124 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/arm/keystone/ti,sci.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: TI-SCI controller - -maintainers: - - Nishanth Menon - -description: | - Texas Instrument's processors including those belonging to Keystone generation - of processors have separate hardware entity which is now responsible for the - management of the System on Chip (SoC) system. These include various system - level functions as well. - - An example of such an SoC is K2G, which contains the system control hardware - block called Power Management Micro Controller (PMMC). This hardware block is - initialized early into boot process and provides services to Operating Systems - on multiple processors including ones running Linux. - - See https://software-dl.ti.com/tisci/esd/latest/index.html for protocol definition. - - The TI-SCI node describes the Texas Instrument's System Controller entity node. - This parent node may optionally have additional children nodes which describe - specific functionality such as clocks, power domain, reset or additional - functionality as may be required for the SoC. This hierarchy also describes the - relationship between the TI-SCI parent node to the child node. - -properties: - $nodename: - pattern: "^system-controller@[0-9a-f]+$" - - compatible: - oneOf: - - description: System controller on TI 66AK2G SoC and other K3 SoCs - items: - - const: ti,k2g-sci - - description: System controller on TI AM654 SoC - items: - - const: ti,am654-sci - - reg-names: - description: | - Specifies the debug messages memory mapped region that is optionally - made available from TI-SCI controller. - const: debug_messages - - reg: - minItems: 1 - - mbox-names: - description: | - Specifies the mailboxes used to communicate with TI-SCI Controller - made available from TI-SCI controller. - items: - - const: rx - - const: tx - - mboxes: - minItems: 2 - - ti,host-id: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Value corresponding to the host ID assigned by Firmware - for identification of host processing entities such as virtual machines. - - power-controller: - type: object - $ref: /schemas/soc/ti/sci-pm-domain.yaml# - - clock-controller: - type: object - $ref: /schemas/clock/ti,sci-clk.yaml# - - reset-controller: - type: object - $ref: /schemas/reset/ti,sci-reset.yaml# - -required: - - compatible - - mbox-names - - mboxes - -additionalProperties: false - -examples: - - | - pmmc: system-controller@2921800 { - compatible = "ti,k2g-sci"; - mbox-names = "rx", "tx"; - mboxes = <&msgmgr 5 2>, - <&msgmgr 0 0>; - reg-names = "debug_messages"; - reg = <0x02921800 0x800>; - }; - - - | - dmsc: system-controller@44083000 { - compatible = "ti,k2g-sci"; - ti,host-id = <12>; - mbox-names = "rx", "tx"; - mboxes = <&secure_proxy_main 11>, - <&secure_proxy_main 13>; - reg-names = "debug_messages"; - reg = <0x44083000 0x1000>; - - k3_pds: power-controller { - compatible = "ti,sci-pm-domain"; - #power-domain-cells = <2>; - }; - - k3_clks: clock-controller { - compatible = "ti,k2g-sci-clk"; - #clock-cells = <2>; - }; - - k3_reset: reset-controller { - compatible = "ti,sci-reset"; - #reset-cells = <2>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/keystone/ti,sci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI-SCI controller + +maintainers: + - Nishanth Menon + +description: | + Texas Instrument's processors including those belonging to Keystone generation + of processors have separate hardware entity which is now responsible for the + management of the System on Chip (SoC) system. These include various system + level functions as well. + + An example of such an SoC is K2G, which contains the system control hardware + block called Power Management Micro Controller (PMMC). This hardware block is + initialized early into boot process and provides services to Operating Systems + on multiple processors including ones running Linux. + + See https://software-dl.ti.com/tisci/esd/latest/index.html for protocol definition. + + The TI-SCI node describes the Texas Instrument's System Controller entity node. + This parent node may optionally have additional children nodes which describe + specific functionality such as clocks, power domain, reset or additional + functionality as may be required for the SoC. This hierarchy also describes the + relationship between the TI-SCI parent node to the child node. + +properties: + $nodename: + pattern: "^system-controller@[0-9a-f]+$" + + compatible: + oneOf: + - description: System controller on TI 66AK2G SoC and other K3 SoCs + items: + - const: ti,k2g-sci + - description: System controller on TI AM654 SoC + items: + - const: ti,am654-sci + + reg-names: + description: | + Specifies the debug messages memory mapped region that is optionally + made available from TI-SCI controller. + const: debug_messages + + reg: + minItems: 1 + + mbox-names: + description: | + Specifies the mailboxes used to communicate with TI-SCI Controller + made available from TI-SCI controller. + items: + - const: rx + - const: tx + + mboxes: + minItems: 2 + + ti,host-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Value corresponding to the host ID assigned by Firmware + for identification of host processing entities such as virtual machines. + + power-controller: + type: object + $ref: /schemas/soc/ti/sci-pm-domain.yaml# + + clock-controller: + type: object + $ref: /schemas/clock/ti,sci-clk.yaml# + + reset-controller: + type: object + $ref: /schemas/reset/ti,sci-reset.yaml# + +required: + - compatible + - mbox-names + - mboxes + +additionalProperties: false + +examples: + - | + pmmc: system-controller@2921800 { + compatible = "ti,k2g-sci"; + mbox-names = "rx", "tx"; + mboxes = <&msgmgr 5 2>, + <&msgmgr 0 0>; + reg-names = "debug_messages"; + reg = <0x02921800 0x800>; + }; + + - | + dmsc: system-controller@44083000 { + compatible = "ti,k2g-sci"; + ti,host-id = <12>; + mbox-names = "rx", "tx"; + mboxes = <&secure_proxy_main 11>, + <&secure_proxy_main 13>; + reg-names = "debug_messages"; + reg = <0x44083000 0x1000>; + + k3_pds: power-controller { + compatible = "ti,sci-pm-domain"; + #power-domain-cells = <2>; + }; + + k3_clks: clock-controller { + compatible = "ti,k2g-sci-clk"; + #clock-cells = <2>; + }; + + k3_reset: reset-controller { + compatible = "ti,sci-reset"; + #reset-cells = <2>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml index 15b104360..b3c6888c1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml @@ -1,117 +1,117 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/arm/mediatek/mediatek,mmsys.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MediaTek mmsys controller - -maintainers: - - Matthias Brugger - -description: - The MediaTek mmsys system controller provides clock control, routing control, - and miscellaneous control in mmsys partition. - -properties: - $nodename: - pattern: "^syscon@[0-9a-f]+$" - - compatible: - oneOf: - - items: - - enum: - - mediatek,mt2701-mmsys - - mediatek,mt2712-mmsys - - mediatek,mt6765-mmsys - - mediatek,mt6779-mmsys - - mediatek,mt6795-mmsys - - mediatek,mt6797-mmsys - - mediatek,mt8167-mmsys - - mediatek,mt8173-mmsys - - mediatek,mt8183-mmsys - - mediatek,mt8186-mmsys - - mediatek,mt8188-vdosys0 - - mediatek,mt8188-vdosys1 - - mediatek,mt8188-vppsys0 - - mediatek,mt8188-vppsys1 - - mediatek,mt8192-mmsys - - mediatek,mt8195-vdosys1 - - mediatek,mt8195-vppsys0 - - mediatek,mt8195-vppsys1 - - mediatek,mt8365-mmsys - - const: syscon - - - description: vdosys0 and vdosys1 are 2 display HW pipelines, - so mt8195 binding should be deprecated. - deprecated: true - items: - - const: mediatek,mt8195-mmsys - - const: syscon - - - items: - - const: mediatek,mt7623-mmsys - - const: mediatek,mt2701-mmsys - - const: syscon - - - items: - - const: mediatek,mt8195-vdosys0 - - const: mediatek,mt8195-mmsys - - const: syscon - - reg: - maxItems: 1 - - power-domains: - description: - A phandle and PM domain specifier as defined by bindings - of the power controller specified by phandle. See - Documentation/devicetree/bindings/power/power-domain.yaml for details. - - mboxes: - description: - Using mailbox to communicate with GCE, it should have this - property and list of phandle, mailbox specifiers. See - Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml - for details. - $ref: /schemas/types.yaml#/definitions/phandle-array - - mediatek,gce-client-reg: - description: - The register of client driver can be configured by gce with 4 arguments - defined in this property, such as phandle of gce, subsys id, - register offset and size. - Each subsys id is mapping to a base address of display function blocks - register which is defined in the gce header - include/dt-bindings/gce/-gce.h. - $ref: /schemas/types.yaml#/definitions/phandle-array - maxItems: 1 - - "#clock-cells": - const: 1 - - '#reset-cells': - const: 1 - -required: - - compatible - - reg - - "#clock-cells" - -additionalProperties: false - -examples: - - | - #include - #include - - mmsys: syscon@14000000 { - compatible = "mediatek,mt8173-mmsys", "syscon"; - reg = <0x14000000 0x1000>; - power-domains = <&spm MT8173_POWER_DOMAIN_MM>; - #clock-cells = <1>; - #reset-cells = <1>; - mboxes = <&gce 0 CMDQ_THR_PRIO_HIGHEST>, - <&gce 1 CMDQ_THR_PRIO_HIGHEST>; - mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0 0x1000>; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/mediatek/mediatek,mmsys.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek mmsys controller + +maintainers: + - Matthias Brugger + +description: + The MediaTek mmsys system controller provides clock control, routing control, + and miscellaneous control in mmsys partition. + +properties: + $nodename: + pattern: "^syscon@[0-9a-f]+$" + + compatible: + oneOf: + - items: + - enum: + - mediatek,mt2701-mmsys + - mediatek,mt2712-mmsys + - mediatek,mt6765-mmsys + - mediatek,mt6779-mmsys + - mediatek,mt6795-mmsys + - mediatek,mt6797-mmsys + - mediatek,mt8167-mmsys + - mediatek,mt8173-mmsys + - mediatek,mt8183-mmsys + - mediatek,mt8186-mmsys + - mediatek,mt8188-vdosys0 + - mediatek,mt8188-vdosys1 + - mediatek,mt8188-vppsys0 + - mediatek,mt8188-vppsys1 + - mediatek,mt8192-mmsys + - mediatek,mt8195-vdosys1 + - mediatek,mt8195-vppsys0 + - mediatek,mt8195-vppsys1 + - mediatek,mt8365-mmsys + - const: syscon + + - description: vdosys0 and vdosys1 are 2 display HW pipelines, + so mt8195 binding should be deprecated. + deprecated: true + items: + - const: mediatek,mt8195-mmsys + - const: syscon + + - items: + - const: mediatek,mt7623-mmsys + - const: mediatek,mt2701-mmsys + - const: syscon + + - items: + - const: mediatek,mt8195-vdosys0 + - const: mediatek,mt8195-mmsys + - const: syscon + + reg: + maxItems: 1 + + power-domains: + description: + A phandle and PM domain specifier as defined by bindings + of the power controller specified by phandle. See + Documentation/devicetree/bindings/power/power-domain.yaml for details. + + mboxes: + description: + Using mailbox to communicate with GCE, it should have this + property and list of phandle, mailbox specifiers. See + Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml + for details. + $ref: /schemas/types.yaml#/definitions/phandle-array + + mediatek,gce-client-reg: + description: + The register of client driver can be configured by gce with 4 arguments + defined in this property, such as phandle of gce, subsys id, + register offset and size. + Each subsys id is mapping to a base address of display function blocks + register which is defined in the gce header + include/dt-bindings/gce/-gce.h. + $ref: /schemas/types.yaml#/definitions/phandle-array + maxItems: 1 + + "#clock-cells": + const: 1 + + '#reset-cells': + const: 1 + +required: + - compatible + - reg + - "#clock-cells" + +additionalProperties: false + +examples: + - | + #include + #include + + mmsys: syscon@14000000 { + compatible = "mediatek,mt8173-mmsys", "syscon"; + reg = <0x14000000 0x1000>; + power-domains = <&spm MT8173_POWER_DOMAIN_MM>; + #clock-cells = <1>; + #reset-cells = <1>; + mboxes = <&gce 0 CMDQ_THR_PRIO_HIGHEST>, + <&gce 1 CMDQ_THR_PRIO_HIGHEST>; + mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0 0x1000>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/omap/omap.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/omap/omap.txt index b2327d35b..c863ec07c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/omap/omap.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/omap/omap.txt @@ -1,126 +1,126 @@ -* Texas Instruments OMAP - -OMAP is currently using a static file per SoC family to describe the -IPs present in the SoC. -On top of that an omap_device is created to extend the platform_device -capabilities and to allow binding with one or several hwmods. -The hwmods will contain all the information to build the device: -address range, irq lines, dma lines, interconnect, PRCM register, -clock domain, input clocks. -For the moment just point to the existing hwmod, the next step will be -to move data from hwmod to device-tree representation. - - -Required properties: -- compatible: Every devices present in OMAP SoC should be in the - form: "ti,XXX" -- ti,hwmods: list of hwmod names (ascii strings), that comes from the OMAP - HW documentation, attached to a device. Must contain at least - one hwmod. - -Optional properties: -- ti,no_idle_on_suspend: When present, it prevents the PM to idle the module - during suspend. -- ti,no-reset-on-init: When present, the module should not be reset at init -- ti,no-idle-on-init: When present, the module should not be idled at init -- ti,no-idle: When present, the module is never allowed to idle. - -Example: - -spinlock@1 { - compatible = "ti,omap4-spinlock"; - ti,hwmods = "spinlock"; -}; - -SoC Type (optional): - -- General Purpose devices - compatible = "ti,gp" -- High Security devices - compatible = "ti,hs" - -SoC Families: - -- DRA7 generic - defaults to DRA742 - compatible = "ti,dra7" -- AM33x generic - compatible = "ti,am33xx" -- AM43x generic - defaults to AM4372 - compatible = "ti,am43" - -SoCs: - -- DRA762 - compatible = "ti,dra762", "ti,dra7" - -- DRA742 - compatible = "ti,dra742", "ti,dra74", "ti,dra7" - -- DRA722 - compatible = "ti,dra722", "ti,dra72", "ti,dra7" - -- DRA718 - compatible = "ti,dra718", "ti,dra722", "ti,dra72", "ti,dra7" - -- AM5748 - compatible = "ti,am5748", "ti,dra762", "ti,dra7" - -- AM5728 - compatible = "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7" - -- AM5726 - compatible = "ti,am5726", "ti,dra742", "ti,dra74", "ti,dra7" - -- AM5718 - compatible = "ti,am5718", "ti,dra722", "ti,dra72", "ti,dra7" - -- AM5716 - compatible = "ti,am5716", "ti,dra722", "ti,dra72", "ti,dra7" - -- AM4372 - compatible = "ti,am4372", "ti,am43" - -Boards (incomplete list of examples): - - -- AM437x CM-T43 - compatible = "compulab,am437x-cm-t43", "ti,am4372", "ti,am43" - -- AM437x SBC-T43 - compatible = "compulab,am437x-sbc-t43", "compulab,am437x-cm-t43", "ti,am4372", "ti,am43" - -- AM43x EPOS EVM - compatible = "ti,am43x-epos-evm", "ti,am43", "ti,am438x" - -- AM437x GP EVM - compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43" - -- AM437x SK EVM: AM437x StarterKit Evaluation Module - compatible = "ti,am437x-sk-evm", "ti,am4372", "ti,am43" - -- AM57XX CL-SOM-AM57x - compatible = "compulab,cl-som-am57x", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7" - -- AM57XX SBC-AM57x - compatible = "compulab,sbc-am57x", "compulab,cl-som-am57x", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7" - -- AM5748 IDK - compatible = "ti,am5748-idk", "ti,am5748", "ti,dra762", "ti,dra7"; - -- AM5728 IDK - compatible = "ti,am5728-idk", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7" - -- AM5718 IDK - compatible = "ti,am5718-idk", "ti,am5718", "ti,dra7" - -- DRA762 EVM: Software Development Board for DRA762 - compatible = "ti,dra76-evm", "ti,dra762", "ti,dra7" - -- DRA742 EVM: Software Development Board for DRA742 - compatible = "ti,dra7-evm", "ti,dra742", "ti,dra74", "ti,dra7" - -- DRA722 EVM: Software Development Board for DRA722 - compatible = "ti,dra72-evm", "ti,dra722", "ti,dra72", "ti,dra7" - -- DRA718 EVM: Software Development Board for DRA718 - compatible = "ti,dra718-evm", "ti,dra718", "ti,dra722", "ti,dra72", "ti,dra7" +* Texas Instruments OMAP + +OMAP is currently using a static file per SoC family to describe the +IPs present in the SoC. +On top of that an omap_device is created to extend the platform_device +capabilities and to allow binding with one or several hwmods. +The hwmods will contain all the information to build the device: +address range, irq lines, dma lines, interconnect, PRCM register, +clock domain, input clocks. +For the moment just point to the existing hwmod, the next step will be +to move data from hwmod to device-tree representation. + + +Required properties: +- compatible: Every devices present in OMAP SoC should be in the + form: "ti,XXX" +- ti,hwmods: list of hwmod names (ascii strings), that comes from the OMAP + HW documentation, attached to a device. Must contain at least + one hwmod. + +Optional properties: +- ti,no_idle_on_suspend: When present, it prevents the PM to idle the module + during suspend. +- ti,no-reset-on-init: When present, the module should not be reset at init +- ti,no-idle-on-init: When present, the module should not be idled at init +- ti,no-idle: When present, the module is never allowed to idle. + +Example: + +spinlock@1 { + compatible = "ti,omap4-spinlock"; + ti,hwmods = "spinlock"; +}; + +SoC Type (optional): + +- General Purpose devices + compatible = "ti,gp" +- High Security devices + compatible = "ti,hs" + +SoC Families: + +- DRA7 generic - defaults to DRA742 + compatible = "ti,dra7" +- AM33x generic + compatible = "ti,am33xx" +- AM43x generic - defaults to AM4372 + compatible = "ti,am43" + +SoCs: + +- DRA762 + compatible = "ti,dra762", "ti,dra7" + +- DRA742 + compatible = "ti,dra742", "ti,dra74", "ti,dra7" + +- DRA722 + compatible = "ti,dra722", "ti,dra72", "ti,dra7" + +- DRA718 + compatible = "ti,dra718", "ti,dra722", "ti,dra72", "ti,dra7" + +- AM5748 + compatible = "ti,am5748", "ti,dra762", "ti,dra7" + +- AM5728 + compatible = "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7" + +- AM5726 + compatible = "ti,am5726", "ti,dra742", "ti,dra74", "ti,dra7" + +- AM5718 + compatible = "ti,am5718", "ti,dra722", "ti,dra72", "ti,dra7" + +- AM5716 + compatible = "ti,am5716", "ti,dra722", "ti,dra72", "ti,dra7" + +- AM4372 + compatible = "ti,am4372", "ti,am43" + +Boards (incomplete list of examples): + + +- AM437x CM-T43 + compatible = "compulab,am437x-cm-t43", "ti,am4372", "ti,am43" + +- AM437x SBC-T43 + compatible = "compulab,am437x-sbc-t43", "compulab,am437x-cm-t43", "ti,am4372", "ti,am43" + +- AM43x EPOS EVM + compatible = "ti,am43x-epos-evm", "ti,am43", "ti,am438x" + +- AM437x GP EVM + compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43" + +- AM437x SK EVM: AM437x StarterKit Evaluation Module + compatible = "ti,am437x-sk-evm", "ti,am4372", "ti,am43" + +- AM57XX CL-SOM-AM57x + compatible = "compulab,cl-som-am57x", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7" + +- AM57XX SBC-AM57x + compatible = "compulab,sbc-am57x", "compulab,cl-som-am57x", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7" + +- AM5748 IDK + compatible = "ti,am5748-idk", "ti,am5748", "ti,dra762", "ti,dra7"; + +- AM5728 IDK + compatible = "ti,am5728-idk", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7" + +- AM5718 IDK + compatible = "ti,am5718-idk", "ti,am5718", "ti,dra7" + +- DRA762 EVM: Software Development Board for DRA762 + compatible = "ti,dra76-evm", "ti,dra762", "ti,dra7" + +- DRA742 EVM: Software Development Board for DRA742 + compatible = "ti,dra7-evm", "ti,dra742", "ti,dra74", "ti,dra7" + +- DRA722 EVM: Software Development Board for DRA722 + compatible = "ti,dra72-evm", "ti,dra722", "ti,dra72", "ti,dra7" + +- DRA718 EVM: Software Development Board for DRA718 + compatible = "ti,dra718-evm", "ti,dra718", "ti,dra722", "ti,dra72", "ti,dra7" diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/pmu.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/pmu.yaml index 270f9c759..528544d0a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/pmu.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/pmu.yaml @@ -1,124 +1,124 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/arm/pmu.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ARM Performance Monitor Units - -maintainers: - - Mark Rutland - - Will Deacon - -description: |+ - ARM cores often have a PMU for counting cpu and cache events like cache misses - and hits. The interface to the PMU is part of the ARM ARM. The ARM PMU - representation in the device tree should be done as under:- - -properties: - compatible: - items: - - enum: - - apm,potenza-pmu - - apple,avalanche-pmu - - apple,blizzard-pmu - - apple,firestorm-pmu - - apple,icestorm-pmu - - arm,armv8-pmuv3 # Only for s/w models - - arm,arm1136-pmu - - arm,arm1176-pmu - - arm,arm11mpcore-pmu - - arm,cortex-a5-pmu - - arm,cortex-a7-pmu - - arm,cortex-a8-pmu - - arm,cortex-a9-pmu - - arm,cortex-a12-pmu - - arm,cortex-a15-pmu - - arm,cortex-a17-pmu - - arm,cortex-a32-pmu - - arm,cortex-a34-pmu - - arm,cortex-a35-pmu - - arm,cortex-a53-pmu - - arm,cortex-a55-pmu - - arm,cortex-a57-pmu - - arm,cortex-a65-pmu - - arm,cortex-a72-pmu - - arm,cortex-a73-pmu - - arm,cortex-a75-pmu - - arm,cortex-a76-pmu - - arm,cortex-a77-pmu - - arm,cortex-a78-pmu - - arm,cortex-a510-pmu - - arm,cortex-a520-pmu - - arm,cortex-a710-pmu - - arm,cortex-a715-pmu - - arm,cortex-a720-pmu - - arm,cortex-a725-pmu - - arm,cortex-x1-pmu - - arm,cortex-x2-pmu - - arm,cortex-x3-pmu - - arm,cortex-x4-pmu - - arm,cortex-x925-pmu - - arm,neoverse-e1-pmu - - arm,neoverse-n1-pmu - - arm,neoverse-n2-pmu - - arm,neoverse-n3-pmu - - arm,neoverse-v1-pmu - - arm,neoverse-v2-pmu - - arm,neoverse-v3-pmu - - arm,neoverse-v3ae-pmu - - brcm,vulcan-pmu - - cavium,thunder-pmu - - nvidia,denver-pmu - - nvidia,carmel-pmu - - qcom,krait-pmu - - qcom,scorpion-pmu - - qcom,scorpion-mp-pmu - - interrupts: - # Don't know how many CPUs, so no constraints to specify - description: 1 per-cpu interrupt (PPI) or 1 interrupt per core. - - interrupt-affinity: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - maxItems: 1 - description: - When using SPIs, specifies a list of phandles to CPU - nodes corresponding directly to the affinity of - the SPIs listed in the interrupts property. - - When using a PPI, specifies a list of phandles to CPU - nodes corresponding to the set of CPUs which have - a PMU of this type signalling the PPI listed in the - interrupts property, unless this is already specified - by the PPI interrupt specifier itself (in which case - the interrupt-affinity property shouldn't be present). - - This property should be present when there is more than - a single SPI. - - qcom,no-pc-write: - type: boolean - description: - Indicates that this PMU doesn't support the 0xc and 0xd events. - - secure-reg-access: - type: boolean - description: - Indicates that the ARMv7 Secure Debug Enable Register - (SDER) is accessible. This will cause the driver to do - any setup required that is only possible in ARMv7 secure - state. If not present the ARMv7 SDER will not be touched, - which means the PMU may fail to operate unless external - code (bootloader or security monitor) has performed the - appropriate initialisation. Note that this property is - not valid for non-ARMv7 CPUs or ARMv7 CPUs booting Linux - in Non-secure state. - -required: - - compatible - -additionalProperties: false - -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/pmu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARM Performance Monitor Units + +maintainers: + - Mark Rutland + - Will Deacon + +description: |+ + ARM cores often have a PMU for counting cpu and cache events like cache misses + and hits. The interface to the PMU is part of the ARM ARM. The ARM PMU + representation in the device tree should be done as under:- + +properties: + compatible: + items: + - enum: + - apm,potenza-pmu + - apple,avalanche-pmu + - apple,blizzard-pmu + - apple,firestorm-pmu + - apple,icestorm-pmu + - arm,armv8-pmuv3 # Only for s/w models + - arm,arm1136-pmu + - arm,arm1176-pmu + - arm,arm11mpcore-pmu + - arm,cortex-a5-pmu + - arm,cortex-a7-pmu + - arm,cortex-a8-pmu + - arm,cortex-a9-pmu + - arm,cortex-a12-pmu + - arm,cortex-a15-pmu + - arm,cortex-a17-pmu + - arm,cortex-a32-pmu + - arm,cortex-a34-pmu + - arm,cortex-a35-pmu + - arm,cortex-a53-pmu + - arm,cortex-a55-pmu + - arm,cortex-a57-pmu + - arm,cortex-a65-pmu + - arm,cortex-a72-pmu + - arm,cortex-a73-pmu + - arm,cortex-a75-pmu + - arm,cortex-a76-pmu + - arm,cortex-a77-pmu + - arm,cortex-a78-pmu + - arm,cortex-a510-pmu + - arm,cortex-a520-pmu + - arm,cortex-a710-pmu + - arm,cortex-a715-pmu + - arm,cortex-a720-pmu + - arm,cortex-a725-pmu + - arm,cortex-x1-pmu + - arm,cortex-x2-pmu + - arm,cortex-x3-pmu + - arm,cortex-x4-pmu + - arm,cortex-x925-pmu + - arm,neoverse-e1-pmu + - arm,neoverse-n1-pmu + - arm,neoverse-n2-pmu + - arm,neoverse-n3-pmu + - arm,neoverse-v1-pmu + - arm,neoverse-v2-pmu + - arm,neoverse-v3-pmu + - arm,neoverse-v3ae-pmu + - brcm,vulcan-pmu + - cavium,thunder-pmu + - nvidia,denver-pmu + - nvidia,carmel-pmu + - qcom,krait-pmu + - qcom,scorpion-pmu + - qcom,scorpion-mp-pmu + + interrupts: + # Don't know how many CPUs, so no constraints to specify + description: 1 per-cpu interrupt (PPI) or 1 interrupt per core. + + interrupt-affinity: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + maxItems: 1 + description: + When using SPIs, specifies a list of phandles to CPU + nodes corresponding directly to the affinity of + the SPIs listed in the interrupts property. + + When using a PPI, specifies a list of phandles to CPU + nodes corresponding to the set of CPUs which have + a PMU of this type signalling the PPI listed in the + interrupts property, unless this is already specified + by the PPI interrupt specifier itself (in which case + the interrupt-affinity property shouldn't be present). + + This property should be present when there is more than + a single SPI. + + qcom,no-pc-write: + type: boolean + description: + Indicates that this PMU doesn't support the 0xc and 0xd events. + + secure-reg-access: + type: boolean + description: + Indicates that the ARMv7 Secure Debug Enable Register + (SDER) is accessible. This will cause the driver to do + any setup required that is only possible in ARMv7 secure + state. If not present the ARMv7 SDER will not be touched, + which means the PMU may fail to operate unless external + code (bootloader or security monitor) has performed the + appropriate initialisation. Note that this property is + not valid for non-ARMv7 CPUs or ARMv7 CPUs booting Linux + in Non-secure state. + +required: + - compatible + +additionalProperties: false + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/qcom,coresight-tpda.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/qcom,coresight-tpda.yaml index 15788d58a..5ed40f21b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/qcom,coresight-tpda.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/qcom,coresight-tpda.yaml @@ -1,124 +1,124 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -# Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/arm/qcom,coresight-tpda.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Trace, Profiling and Diagnostics Aggregator - TPDA - -description: | - TPDAs are responsible for packetization and timestamping of data sets - utilizing the MIPI STPv2 packet protocol. Pulling data sets from one or - more attached TPDM and pushing the resultant (packetized) data out a - master ATB interface. Performing an arbitrated ATB interleaving (funneling) - task for free-flowing data from TPDM (i.e. CMB and DSB data set flows). - - There is no strict binding between TPDM and TPDA. TPDA can have multiple - TPDMs connect to it. But There must be only one TPDA in the path from the - TPDM source to TMC sink. TPDM can directly connect to TPDA's inport or - connect to funnel which will connect to TPDA's inport. - - We can use the commands are similar to the below to validate TPDMs. - Enable coresight sink first. - - echo 1 > /sys/bus/coresight/devices/tmc_etf0/enable_sink - echo 1 > /sys/bus/coresight/devices/tpdm0/enable_source - echo 1 > /sys/bus/coresight/devices/tpdm0/integration_test - echo 2 > /sys/bus/coresight/devices/tpdm0/integration_test - - The test data will be collected in the coresight sink which is enabled. - If rwp register of the sink is keeping updating when do integration_test - (by cat tmc_etf0/mgmt/rwp), it means there is data generated from TPDM - to sink. - -maintainers: - - Mao Jinlong - - Tao Zhang - -# Need a custom select here or 'arm,primecell' will match on lots of nodes -select: - properties: - compatible: - contains: - enum: - - qcom,coresight-tpda - required: - - compatible - -properties: - $nodename: - pattern: "^tpda(@[0-9a-f]+)$" - compatible: - items: - - const: qcom,coresight-tpda - - const: arm,primecell - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - clock-names: - items: - - const: apb_pclk - - in-ports: - description: | - Input connections from TPDM to TPDA - $ref: /schemas/graph.yaml#/properties/ports - - out-ports: - description: | - Output connections from the TPDA to legacy CoreSight trace bus. - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port: - description: - Output connection from the TPDA to legacy CoreSight Trace bus. - $ref: /schemas/graph.yaml#/properties/port - -required: - - compatible - - reg - - clocks - - clock-names - - in-ports - - out-ports - -additionalProperties: false - -examples: - # minimum tpda definition. - - | - tpda@6004000 { - compatible = "qcom,coresight-tpda", "arm,primecell"; - reg = <0x6004000 0x1000>; - - clocks = <&aoss_qmp>; - clock-names = "apb_pclk"; - - in-ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - tpda_qdss_0_in_tpdm_dcc: endpoint { - remote-endpoint = <&tpdm_dcc_out_tpda_qdss_0>; - }; - }; - }; - - out-ports { - port { - tpda_qdss_out_funnel_in0: endpoint { - remote-endpoint = <&funnel_in0_in_tpda_qdss>; - }; - }; - }; - }; - -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +# Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/qcom,coresight-tpda.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Trace, Profiling and Diagnostics Aggregator - TPDA + +description: | + TPDAs are responsible for packetization and timestamping of data sets + utilizing the MIPI STPv2 packet protocol. Pulling data sets from one or + more attached TPDM and pushing the resultant (packetized) data out a + master ATB interface. Performing an arbitrated ATB interleaving (funneling) + task for free-flowing data from TPDM (i.e. CMB and DSB data set flows). + + There is no strict binding between TPDM and TPDA. TPDA can have multiple + TPDMs connect to it. But There must be only one TPDA in the path from the + TPDM source to TMC sink. TPDM can directly connect to TPDA's inport or + connect to funnel which will connect to TPDA's inport. + + We can use the commands are similar to the below to validate TPDMs. + Enable coresight sink first. + + echo 1 > /sys/bus/coresight/devices/tmc_etf0/enable_sink + echo 1 > /sys/bus/coresight/devices/tpdm0/enable_source + echo 1 > /sys/bus/coresight/devices/tpdm0/integration_test + echo 2 > /sys/bus/coresight/devices/tpdm0/integration_test + + The test data will be collected in the coresight sink which is enabled. + If rwp register of the sink is keeping updating when do integration_test + (by cat tmc_etf0/mgmt/rwp), it means there is data generated from TPDM + to sink. + +maintainers: + - Mao Jinlong + - Tao Zhang + +# Need a custom select here or 'arm,primecell' will match on lots of nodes +select: + properties: + compatible: + contains: + enum: + - qcom,coresight-tpda + required: + - compatible + +properties: + $nodename: + pattern: "^tpda(@[0-9a-f]+)$" + compatible: + items: + - const: qcom,coresight-tpda + - const: arm,primecell + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: apb_pclk + + in-ports: + description: | + Input connections from TPDM to TPDA + $ref: /schemas/graph.yaml#/properties/ports + + out-ports: + description: | + Output connections from the TPDA to legacy CoreSight trace bus. + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port: + description: + Output connection from the TPDA to legacy CoreSight Trace bus. + $ref: /schemas/graph.yaml#/properties/port + +required: + - compatible + - reg + - clocks + - clock-names + - in-ports + - out-ports + +additionalProperties: false + +examples: + # minimum tpda definition. + - | + tpda@6004000 { + compatible = "qcom,coresight-tpda", "arm,primecell"; + reg = <0x6004000 0x1000>; + + clocks = <&aoss_qmp>; + clock-names = "apb_pclk"; + + in-ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + tpda_qdss_0_in_tpdm_dcc: endpoint { + remote-endpoint = <&tpdm_dcc_out_tpda_qdss_0>; + }; + }; + }; + + out-ports { + port { + tpda_qdss_out_funnel_in0: endpoint { + remote-endpoint = <&funnel_in0_in_tpda_qdss>; + }; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml index e856b5047..07d21a361 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml @@ -1,146 +1,146 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -# Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/arm/qcom,coresight-tpdm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Trace, Profiling and Diagnostics Monitor - TPDM - -description: | - The TPDM or Monitor serves as data collection component for various dataset - types specified in the QPMDA spec. It covers Implementation defined ((ImplDef), - Basic Counts (BC), Tenure Counts (TC), Continuous Multi-Bit (CMB), and Discrete - Single Bit (DSB). It performs data collection in the data producing clock - domain and transfers it to the data collection time domain, generally ATB - clock domain. - - The primary use case of the TPDM is to collect data from different data - sources and send it to a TPDA for packetization, timestamping, and funneling. - -maintainers: - - Mao Jinlong - - Tao Zhang - -# Need a custom select here or 'arm,primecell' will match on lots of nodes -select: - properties: - compatible: - contains: - enum: - - qcom,coresight-tpdm - required: - - compatible - -properties: - $nodename: - pattern: "^tpdm(@[0-9a-f]+)$" - compatible: - items: - - const: qcom,coresight-tpdm - - const: arm,primecell - - reg: - maxItems: 1 - - qcom,dsb-element-bits: - description: - Specifies the DSB(Discrete Single Bit) element size supported by - the monitor. The associated aggregator will read this size before it - is enabled. DSB element size currently only supports 32-bit and 64-bit. - enum: [32, 64] - - qcom,cmb-element-bits: - description: - Specifies the CMB(Continuous Multi-Bit) element size supported by - the monitor. The associated aggregator will read this size before it - is enabled. CMB element size currently only supports 8-bit, 32-bit - and 64-bit. - enum: [8, 32, 64] - - qcom,dsb-msrs-num: - description: - Specifies the number of DSB(Discrete Single Bit) MSR(mux select register) - registers supported by the monitor. If this property is not configured - or set to 0, it means this DSB TPDM doesn't support MSR. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 32 - - qcom,cmb-msrs-num: - description: - Specifies the number of CMB MSR(mux select register) registers supported - by the monitor. If this property is not configured or set to 0, it means - this TPDM doesn't support CMB MSR. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 32 - - clocks: - maxItems: 1 - - clock-names: - items: - - const: apb_pclk - - out-ports: - description: | - Output connections from the TPDM to coresight funnel/TPDA. - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port: - description: Output connection from the TPDM to coresight - funnel/TPDA. - $ref: /schemas/graph.yaml#/properties/port - -required: - - compatible - - reg - - clocks - - clock-names - -additionalProperties: false - -examples: - # minimum TPDM definition. TPDM connect to coresight TPDA. - - | - tpdm@684c000 { - compatible = "qcom,coresight-tpdm", "arm,primecell"; - reg = <0x0684c000 0x1000>; - - qcom,dsb-element-bits = <32>; - qcom,dsb-msrs-num = <16>; - - clocks = <&aoss_qmp>; - clock-names = "apb_pclk"; - - out-ports { - port { - tpdm_prng_out_tpda_qdss: endpoint { - remote-endpoint = - <&tpda_qdss_in_tpdm_prng>; - }; - }; - }; - }; - - tpdm@6c29000 { - compatible = "qcom,coresight-tpdm", "arm,primecell"; - reg = <0x06c29000 0x1000>; - - qcom,cmb-element-bits = <64>; - qcom,cmb-msrs-num = <32>; - - clocks = <&aoss_qmp>; - clock-names = "apb_pclk"; - - out-ports { - port { - tpdm_ipcc_out_funnel_center: endpoint { - remote-endpoint = <&funnel_center_in_tpdm_ipcc>; - }; - }; - }; - }; -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +# Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/qcom,coresight-tpdm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Trace, Profiling and Diagnostics Monitor - TPDM + +description: | + The TPDM or Monitor serves as data collection component for various dataset + types specified in the QPMDA spec. It covers Implementation defined ((ImplDef), + Basic Counts (BC), Tenure Counts (TC), Continuous Multi-Bit (CMB), and Discrete + Single Bit (DSB). It performs data collection in the data producing clock + domain and transfers it to the data collection time domain, generally ATB + clock domain. + + The primary use case of the TPDM is to collect data from different data + sources and send it to a TPDA for packetization, timestamping, and funneling. + +maintainers: + - Mao Jinlong + - Tao Zhang + +# Need a custom select here or 'arm,primecell' will match on lots of nodes +select: + properties: + compatible: + contains: + enum: + - qcom,coresight-tpdm + required: + - compatible + +properties: + $nodename: + pattern: "^tpdm(@[0-9a-f]+)$" + compatible: + items: + - const: qcom,coresight-tpdm + - const: arm,primecell + + reg: + maxItems: 1 + + qcom,dsb-element-bits: + description: + Specifies the DSB(Discrete Single Bit) element size supported by + the monitor. The associated aggregator will read this size before it + is enabled. DSB element size currently only supports 32-bit and 64-bit. + enum: [32, 64] + + qcom,cmb-element-bits: + description: + Specifies the CMB(Continuous Multi-Bit) element size supported by + the monitor. The associated aggregator will read this size before it + is enabled. CMB element size currently only supports 8-bit, 32-bit + and 64-bit. + enum: [8, 32, 64] + + qcom,dsb-msrs-num: + description: + Specifies the number of DSB(Discrete Single Bit) MSR(mux select register) + registers supported by the monitor. If this property is not configured + or set to 0, it means this DSB TPDM doesn't support MSR. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 32 + + qcom,cmb-msrs-num: + description: + Specifies the number of CMB MSR(mux select register) registers supported + by the monitor. If this property is not configured or set to 0, it means + this TPDM doesn't support CMB MSR. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 32 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: apb_pclk + + out-ports: + description: | + Output connections from the TPDM to coresight funnel/TPDA. + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port: + description: Output connection from the TPDM to coresight + funnel/TPDA. + $ref: /schemas/graph.yaml#/properties/port + +required: + - compatible + - reg + - clocks + - clock-names + +additionalProperties: false + +examples: + # minimum TPDM definition. TPDM connect to coresight TPDA. + - | + tpdm@684c000 { + compatible = "qcom,coresight-tpdm", "arm,primecell"; + reg = <0x0684c000 0x1000>; + + qcom,dsb-element-bits = <32>; + qcom,dsb-msrs-num = <16>; + + clocks = <&aoss_qmp>; + clock-names = "apb_pclk"; + + out-ports { + port { + tpdm_prng_out_tpda_qdss: endpoint { + remote-endpoint = + <&tpda_qdss_in_tpdm_prng>; + }; + }; + }; + }; + + tpdm@6c29000 { + compatible = "qcom,coresight-tpdm", "arm,primecell"; + reg = <0x06c29000 0x1000>; + + qcom,cmb-element-bits = <64>; + qcom,cmb-msrs-num = <32>; + + clocks = <&aoss_qmp>; + clock-names = "apb_pclk"; + + out-ports { + port { + tpdm_ipcc_out_funnel_center: endpoint { + remote-endpoint = <&funnel_center_in_tpdm_ipcc>; + }; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/secure.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/secure.txt index 91196678a..f27bbff2c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/secure.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/secure.txt @@ -1,70 +1,70 @@ -* ARM Secure world bindings - -ARM CPUs with TrustZone support have two distinct address spaces, -"Normal" and "Secure". Most devicetree consumers (including the Linux -kernel) are not TrustZone aware and run entirely in either the Normal -world or the Secure world. However some devicetree consumers are -TrustZone aware and need to be able to determine whether devices are -visible only in the Secure address space, only in the Normal address -space, or visible in both. (One example of that situation would be a -virtual machine which boots Secure firmware and wants to tell the -firmware about the layout of the machine via devicetree.) - -The general principle of the naming scheme for Secure world bindings -is that any property that needs a different value in the Secure world -can be supported by prefixing the property name with "secure-". So for -instance "secure-foo" would override "foo". For property names with -a vendor prefix, the Secure variant of "vendor,foo" would be -"vendor,secure-foo". If there is no "secure-" property then the Secure -world value is the same as specified for the Normal world by the -non-prefixed property. However, only the properties listed below may -validly have "secure-" versions; this list will be enlarged on a -case-by-case basis. - -Defining the bindings in this way means that a device tree which has -been annotated to indicate the presence of Secure-only devices can -still be processed unmodified by existing Non-secure software (and in -particular by the kernel). - -Note that it is still valid for bindings intended for purely Secure -world consumers (like kernels that run entirely in Secure) to simply -describe the view of Secure world using the standard bindings. These -secure- bindings only need to be used where both the Secure and Normal -world views need to be described in a single device tree. - -Valid Secure world properties ------------------------------ - -- secure-status : specifies whether the device is present and usable - in the secure world. The combination of this with "status" allows - the various possible combinations of device visibility to be - specified. If "secure-status" is not specified it defaults to the - same value as "status"; if "status" is not specified either then - both default to "okay". This means the following combinations are - possible: - - /* Neither specified: default to visible in both S and NS */ - secure-status = "okay"; /* visible in both */ - status = "okay"; /* visible in both */ - status = "okay"; secure-status = "okay"; /* visible in both */ - secure-status = "disabled"; /* NS-only */ - status = "okay"; secure-status = "disabled"; /* NS-only */ - status = "disabled"; secure-status = "okay"; /* S-only */ - status = "disabled"; /* disabled in both */ - status = "disabled"; secure-status = "disabled"; /* disabled in both */ - -The secure-chosen node ----------------------- - -Similar to the /chosen node which serves as a place for passing data -between firmware and the operating system, the /secure-chosen node may -be used to pass data to the Secure OS. Only the properties defined -below may appear in the /secure-chosen node. - -- stdout-path : specifies the device to be used by the Secure OS for - its console output. The syntax is the same as for /chosen/stdout-path. - If the /secure-chosen node exists but the stdout-path property is not - present, the Secure OS should not perform any console output. If - /secure-chosen does not exist, the Secure OS should use the value of - /chosen/stdout-path instead (that is, use the same device as the - Normal world OS). +* ARM Secure world bindings + +ARM CPUs with TrustZone support have two distinct address spaces, +"Normal" and "Secure". Most devicetree consumers (including the Linux +kernel) are not TrustZone aware and run entirely in either the Normal +world or the Secure world. However some devicetree consumers are +TrustZone aware and need to be able to determine whether devices are +visible only in the Secure address space, only in the Normal address +space, or visible in both. (One example of that situation would be a +virtual machine which boots Secure firmware and wants to tell the +firmware about the layout of the machine via devicetree.) + +The general principle of the naming scheme for Secure world bindings +is that any property that needs a different value in the Secure world +can be supported by prefixing the property name with "secure-". So for +instance "secure-foo" would override "foo". For property names with +a vendor prefix, the Secure variant of "vendor,foo" would be +"vendor,secure-foo". If there is no "secure-" property then the Secure +world value is the same as specified for the Normal world by the +non-prefixed property. However, only the properties listed below may +validly have "secure-" versions; this list will be enlarged on a +case-by-case basis. + +Defining the bindings in this way means that a device tree which has +been annotated to indicate the presence of Secure-only devices can +still be processed unmodified by existing Non-secure software (and in +particular by the kernel). + +Note that it is still valid for bindings intended for purely Secure +world consumers (like kernels that run entirely in Secure) to simply +describe the view of Secure world using the standard bindings. These +secure- bindings only need to be used where both the Secure and Normal +world views need to be described in a single device tree. + +Valid Secure world properties +----------------------------- + +- secure-status : specifies whether the device is present and usable + in the secure world. The combination of this with "status" allows + the various possible combinations of device visibility to be + specified. If "secure-status" is not specified it defaults to the + same value as "status"; if "status" is not specified either then + both default to "okay". This means the following combinations are + possible: + + /* Neither specified: default to visible in both S and NS */ + secure-status = "okay"; /* visible in both */ + status = "okay"; /* visible in both */ + status = "okay"; secure-status = "okay"; /* visible in both */ + secure-status = "disabled"; /* NS-only */ + status = "okay"; secure-status = "disabled"; /* NS-only */ + status = "disabled"; secure-status = "okay"; /* S-only */ + status = "disabled"; /* disabled in both */ + status = "disabled"; secure-status = "disabled"; /* disabled in both */ + +The secure-chosen node +---------------------- + +Similar to the /chosen node which serves as a place for passing data +between firmware and the operating system, the /secure-chosen node may +be used to pass data to the Secure OS. Only the properties defined +below may appear in the /secure-chosen node. + +- stdout-path : specifies the device to be used by the Secure OS for + its console output. The syntax is the same as for /chosen/stdout-path. + If the /secure-chosen node exists but the stdout-path property is not + present, the Secure OS should not perform any console output. If + /secure-chosen does not exist, the Secure OS should use the value of + /chosen/stdout-path instead (that is, use the same device as the + Normal world OS). diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/sunxi/allwinner,sun4i-a10-mbus.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/sunxi/allwinner,sun4i-a10-mbus.yaml index 622df9dc2..99566688d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/sunxi/allwinner,sun4i-a10-mbus.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/sunxi/allwinner,sun4i-a10-mbus.yaml @@ -1,168 +1,168 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/arm/sunxi/allwinner,sun4i-a10-mbus.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Allwinner Memory Bus (MBUS) controller - -maintainers: - - Chen-Yu Tsai - - Maxime Ripard - -description: | - The MBUS controller drives the MBUS that other devices in the SoC - will use to perform DMA. It also has a register interface that - allows to monitor and control the bandwidth and priorities for - masters on that bus. - - Each device having to perform their DMA through the MBUS must have - the interconnects and interconnect-names properties set to the MBUS - controller and with "dma-mem" as the interconnect name. - -properties: - "#interconnect-cells": - const: 1 - description: - The content of the cell is the MBUS ID. - - compatible: - enum: - - allwinner,sun5i-a13-mbus - - allwinner,sun8i-a33-mbus - - allwinner,sun8i-a50-mbus - - allwinner,sun8i-a83t-mbus - - allwinner,sun8i-h3-mbus - - allwinner,sun8i-r40-mbus - - allwinner,sun8i-v3s-mbus - - allwinner,sun8i-v536-mbus - - allwinner,sun20i-d1-mbus - - allwinner,sun50i-a64-mbus - - allwinner,sun50i-a100-mbus - - allwinner,sun50i-h5-mbus - - allwinner,sun50i-h6-mbus - - allwinner,sun50i-h616-mbus - - allwinner,sun50i-r329-mbus - - reg: - minItems: 1 - items: - - description: MBUS interconnect/bandwidth limit/PMU registers - - description: DRAM controller/PHY registers - - reg-names: - minItems: 1 - items: - - const: mbus - - const: dram - - clocks: - minItems: 1 - items: - - description: MBUS interconnect module clock - - description: DRAM controller/PHY module clock - - description: Register bus clock, shared by MBUS and DRAM - - clock-names: - minItems: 1 - items: - - const: mbus - - const: dram - - const: bus - - interrupts: - maxItems: 1 - description: - MBUS PMU activity interrupt. - - dma-ranges: - description: - See section 2.3.9 of the DeviceTree Specification. - - '#address-cells': true - - '#size-cells': true - -required: - - "#interconnect-cells" - - compatible - - reg - - clocks - - dma-ranges - -if: - not: - properties: - compatible: - contains: - enum: - - allwinner,sun5i-a13-mbus - - allwinner,sun8i-r40-mbus - -then: - properties: - reg: - minItems: 2 - - reg-names: - minItems: 2 - - clocks: - minItems: 3 - - clock-names: - minItems: 3 - - required: - - reg-names - - clock-names - -else: - properties: - reg: - maxItems: 1 - - reg-names: - maxItems: 1 - - clocks: - maxItems: 1 - - clock-names: - maxItems: 1 - -additionalProperties: false - -examples: - - | - #include - #include - - dram-controller@1c01000 { - compatible = "allwinner,sun5i-a13-mbus"; - reg = <0x01c01000 0x1000>; - clocks = <&ccu CLK_MBUS>; - #address-cells = <1>; - #size-cells = <1>; - dma-ranges = <0x00000000 0x40000000 0x20000000>; - #interconnect-cells = <1>; - }; - - - | - dram-controller@1c62000 { - compatible = "allwinner,sun50i-a64-mbus"; - reg = <0x01c62000 0x1000>, - <0x01c63000 0x1000>; - reg-names = "mbus", "dram"; - clocks = <&ccu CLK_MBUS>, - <&ccu CLK_DRAM>, - <&ccu CLK_BUS_DRAM>; - clock-names = "mbus", "dram", "bus"; - interrupts = ; - #address-cells = <1>; - #size-cells = <1>; - dma-ranges = <0x00000000 0x40000000 0xc0000000>; - #interconnect-cells = <1>; - }; - -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/sunxi/allwinner,sun4i-a10-mbus.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner Memory Bus (MBUS) controller + +maintainers: + - Chen-Yu Tsai + - Maxime Ripard + +description: | + The MBUS controller drives the MBUS that other devices in the SoC + will use to perform DMA. It also has a register interface that + allows to monitor and control the bandwidth and priorities for + masters on that bus. + + Each device having to perform their DMA through the MBUS must have + the interconnects and interconnect-names properties set to the MBUS + controller and with "dma-mem" as the interconnect name. + +properties: + "#interconnect-cells": + const: 1 + description: + The content of the cell is the MBUS ID. + + compatible: + enum: + - allwinner,sun5i-a13-mbus + - allwinner,sun8i-a33-mbus + - allwinner,sun8i-a50-mbus + - allwinner,sun8i-a83t-mbus + - allwinner,sun8i-h3-mbus + - allwinner,sun8i-r40-mbus + - allwinner,sun8i-v3s-mbus + - allwinner,sun8i-v536-mbus + - allwinner,sun20i-d1-mbus + - allwinner,sun50i-a64-mbus + - allwinner,sun50i-a100-mbus + - allwinner,sun50i-h5-mbus + - allwinner,sun50i-h6-mbus + - allwinner,sun50i-h616-mbus + - allwinner,sun50i-r329-mbus + + reg: + minItems: 1 + items: + - description: MBUS interconnect/bandwidth limit/PMU registers + - description: DRAM controller/PHY registers + + reg-names: + minItems: 1 + items: + - const: mbus + - const: dram + + clocks: + minItems: 1 + items: + - description: MBUS interconnect module clock + - description: DRAM controller/PHY module clock + - description: Register bus clock, shared by MBUS and DRAM + + clock-names: + minItems: 1 + items: + - const: mbus + - const: dram + - const: bus + + interrupts: + maxItems: 1 + description: + MBUS PMU activity interrupt. + + dma-ranges: + description: + See section 2.3.9 of the DeviceTree Specification. + + '#address-cells': true + + '#size-cells': true + +required: + - "#interconnect-cells" + - compatible + - reg + - clocks + - dma-ranges + +if: + not: + properties: + compatible: + contains: + enum: + - allwinner,sun5i-a13-mbus + - allwinner,sun8i-r40-mbus + +then: + properties: + reg: + minItems: 2 + + reg-names: + minItems: 2 + + clocks: + minItems: 3 + + clock-names: + minItems: 3 + + required: + - reg-names + - clock-names + +else: + properties: + reg: + maxItems: 1 + + reg-names: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + maxItems: 1 + +additionalProperties: false + +examples: + - | + #include + #include + + dram-controller@1c01000 { + compatible = "allwinner,sun5i-a13-mbus"; + reg = <0x01c01000 0x1000>; + clocks = <&ccu CLK_MBUS>; + #address-cells = <1>; + #size-cells = <1>; + dma-ranges = <0x00000000 0x40000000 0x20000000>; + #interconnect-cells = <1>; + }; + + - | + dram-controller@1c62000 { + compatible = "allwinner,sun50i-a64-mbus"; + reg = <0x01c62000 0x1000>, + <0x01c63000 0x1000>; + reg-names = "mbus", "dram"; + clocks = <&ccu CLK_MBUS>, + <&ccu CLK_DRAM>, + <&ccu CLK_BUS_DRAM>; + clock-names = "mbus", "dram", "bus"; + interrupts = ; + #address-cells = <1>; + #size-cells = <1>; + dma-ranges = <0x00000000 0x40000000 0xc0000000>; + #interconnect-cells = <1>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra194-cbb.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra194-cbb.yaml index be2300c08..d9c54c32c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra194-cbb.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra194-cbb.yaml @@ -1,97 +1,97 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/arm/tegra/nvidia,tegra194-cbb.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NVIDIA Tegra194 CBB 1.0 - -maintainers: - - Sumit Gupta - -description: |+ - The Control Backbone (CBB) is comprised of the physical path from an - initiator to a target's register configuration space. CBB 1.0 has - multiple hierarchical sub-NOCs (Network-on-Chip) and connects various - initiators and targets using different bridges like AXIP2P, AXI2APB. - - This driver handles errors due to illegal register accesses reported - by the NOCs inside the CBB. NOCs reporting errors are cluster NOCs - "AON-NOC, SCE-NOC, RCE-NOC, BPMP-NOC, CV-NOC" and "CBB Central NOC" - which is the main NOC. - - By default, the access issuing initiator is informed about the error - using SError or Data Abort exception unless the ERD (Error Response - Disable) is enabled/set for that initiator. If the ERD is enabled, then - SError or Data Abort is masked and the error is reported with interrupt. - - - For CCPLEX (CPU Complex) initiator, the driver sets ERD bit. So, the - errors due to illegal accesses from CCPLEX are reported by interrupts. - If ERD is not set, then error is reported by SError. - - For other initiators, the ERD is disabled. So, the access issuing - initiator is informed about the illegal access by Data Abort exception. - In addition, an interrupt is also generated to CCPLEX. These initiators - include all engines using Cortex-R5 (which is ARMv7 CPU cluster) and - engines like TSEC (Security co-processor), NVDEC (NVIDIA Video Decoder - engine) etc which can initiate transactions. - - The driver prints relevant debug information like Error Code, Error - Description, Master, Address, AXI ID, Cache, Protection, Security Group - etc on receiving error notification. - -properties: - $nodename: - pattern: "^[a-z]+-noc@[0-9a-f]+$" - - compatible: - enum: - - nvidia,tegra194-cbb-noc - - nvidia,tegra194-aon-noc - - nvidia,tegra194-bpmp-noc - - nvidia,tegra194-rce-noc - - nvidia,tegra194-sce-noc - - reg: - maxItems: 1 - - interrupts: - description: - CCPLEX receives secure or nonsecure interrupt depending on error type. - A secure interrupt is received for SEC(firewall) & SLV errors and a - non-secure interrupt is received for TMO & DEC errors. - items: - - description: non-secure interrupt - - description: secure interrupt - - nvidia,axi2apb: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Specifies the node having all axi2apb bridges which need to be checked - for any error logged in their status register. - - nvidia,apbmisc: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Specifies the apbmisc node which need to be used for reading the ERD - register. - -additionalProperties: false - -required: - - compatible - - reg - - interrupts - - nvidia,apbmisc - -examples: - - | - #include - - cbb-noc@2300000 { - compatible = "nvidia,tegra194-cbb-noc"; - reg = <0x02300000 0x1000>; - interrupts = , - ; - nvidia,axi2apb = <&axi2apb>; - nvidia,apbmisc = <&apbmisc>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/tegra/nvidia,tegra194-cbb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra194 CBB 1.0 + +maintainers: + - Sumit Gupta + +description: |+ + The Control Backbone (CBB) is comprised of the physical path from an + initiator to a target's register configuration space. CBB 1.0 has + multiple hierarchical sub-NOCs (Network-on-Chip) and connects various + initiators and targets using different bridges like AXIP2P, AXI2APB. + + This driver handles errors due to illegal register accesses reported + by the NOCs inside the CBB. NOCs reporting errors are cluster NOCs + "AON-NOC, SCE-NOC, RCE-NOC, BPMP-NOC, CV-NOC" and "CBB Central NOC" + which is the main NOC. + + By default, the access issuing initiator is informed about the error + using SError or Data Abort exception unless the ERD (Error Response + Disable) is enabled/set for that initiator. If the ERD is enabled, then + SError or Data Abort is masked and the error is reported with interrupt. + + - For CCPLEX (CPU Complex) initiator, the driver sets ERD bit. So, the + errors due to illegal accesses from CCPLEX are reported by interrupts. + If ERD is not set, then error is reported by SError. + - For other initiators, the ERD is disabled. So, the access issuing + initiator is informed about the illegal access by Data Abort exception. + In addition, an interrupt is also generated to CCPLEX. These initiators + include all engines using Cortex-R5 (which is ARMv7 CPU cluster) and + engines like TSEC (Security co-processor), NVDEC (NVIDIA Video Decoder + engine) etc which can initiate transactions. + + The driver prints relevant debug information like Error Code, Error + Description, Master, Address, AXI ID, Cache, Protection, Security Group + etc on receiving error notification. + +properties: + $nodename: + pattern: "^[a-z]+-noc@[0-9a-f]+$" + + compatible: + enum: + - nvidia,tegra194-cbb-noc + - nvidia,tegra194-aon-noc + - nvidia,tegra194-bpmp-noc + - nvidia,tegra194-rce-noc + - nvidia,tegra194-sce-noc + + reg: + maxItems: 1 + + interrupts: + description: + CCPLEX receives secure or nonsecure interrupt depending on error type. + A secure interrupt is received for SEC(firewall) & SLV errors and a + non-secure interrupt is received for TMO & DEC errors. + items: + - description: non-secure interrupt + - description: secure interrupt + + nvidia,axi2apb: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Specifies the node having all axi2apb bridges which need to be checked + for any error logged in their status register. + + nvidia,apbmisc: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Specifies the apbmisc node which need to be used for reading the ERD + register. + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - nvidia,apbmisc + +examples: + - | + #include + + cbb-noc@2300000 { + compatible = "nvidia,tegra194-cbb-noc"; + reg = <0x02300000 0x1000>; + interrupts = , + ; + nvidia,axi2apb = <&axi2apb>; + nvidia,apbmisc = <&apbmisc>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/ata/ahci-common.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/ata/ahci-common.yaml index 05a5c1943..38770c4c8 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/ata/ahci-common.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/ata/ahci-common.yaml @@ -1,123 +1,123 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/ata/ahci-common.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Common Properties for Serial ATA AHCI controllers - -maintainers: - - Hans de Goede - - Damien Le Moal - -description: - This document defines device tree properties for a common AHCI SATA - controller implementation. It's hardware interface is supposed to - conform to the technical standard defined by Intel (see Serial ATA - Advanced Host Controller Interface specification for details). The - document doesn't constitute a DT-node binding by itself but merely - defines a set of common properties for the AHCI-compatible devices. - -select: false - -allOf: - - $ref: sata-common.yaml# - -properties: - reg: - description: - Generic AHCI registers space conforming to the Serial ATA AHCI - specification. - - reg-names: - description: CSR space IDs - contains: - const: ahci - - interrupts: - description: - Generic AHCI state change interrupt. Can be implemented either as a - single line attached to the controller or as a set of the signals - indicating the particular port events. - minItems: 1 - maxItems: 32 - - ahci-supply: - description: Power regulator for AHCI controller - - target-supply: - description: Power regulator for SATA target device - - phy-supply: - description: Power regulator for SATA PHY - - phys: - description: Reference to the SATA PHY node - maxItems: 1 - - phy-names: - const: sata-phy - - hba-cap: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Bitfield of the HBA generic platform capabilities like Staggered - Spin-up or Mechanical Presence Switch support. It can be used to - appropriately initialize the HWinit fields of the HBA CAP register - in case if the system firmware hasn't done it. - - ports-implemented: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Mask that indicates which ports the HBA supports. Useful if PI is not - programmed by the BIOS, which is true for some embedded SoC's. - -patternProperties: - "^sata-port@[0-9a-f]+$": - $ref: '#/$defs/ahci-port' - description: - It is optionally possible to describe the ports as sub-nodes so - to enable each port independently when dealing with multiple PHYs. - -required: - - reg - - interrupts - -additionalProperties: true - -$defs: - ahci-port: - $ref: /schemas/ata/sata-common.yaml#/$defs/sata-port - - properties: - reg: - description: - AHCI SATA port identifier. By design AHCI controller can't have - more than 32 ports due to the CAP.NP fields and PI register size - constraints. - minimum: 0 - maximum: 31 - - phys: - description: Individual AHCI SATA port PHY - maxItems: 1 - - phy-names: - description: AHCI SATA port PHY ID - const: sata-phy - - target-supply: - description: Power regulator for SATA port target device - - hba-port-cap: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Bitfield of the HBA port-specific platform capabilities like Hot - plugging, eSATA, FIS-based Switching, etc (see AHCI specification - for details). It can be used to initialize the HWinit fields of - the PxCMD register in case if the system firmware hasn't done it. - - required: - - reg - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/ata/ahci-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Common Properties for Serial ATA AHCI controllers + +maintainers: + - Hans de Goede + - Damien Le Moal + +description: + This document defines device tree properties for a common AHCI SATA + controller implementation. It's hardware interface is supposed to + conform to the technical standard defined by Intel (see Serial ATA + Advanced Host Controller Interface specification for details). The + document doesn't constitute a DT-node binding by itself but merely + defines a set of common properties for the AHCI-compatible devices. + +select: false + +allOf: + - $ref: sata-common.yaml# + +properties: + reg: + description: + Generic AHCI registers space conforming to the Serial ATA AHCI + specification. + + reg-names: + description: CSR space IDs + contains: + const: ahci + + interrupts: + description: + Generic AHCI state change interrupt. Can be implemented either as a + single line attached to the controller or as a set of the signals + indicating the particular port events. + minItems: 1 + maxItems: 32 + + ahci-supply: + description: Power regulator for AHCI controller + + target-supply: + description: Power regulator for SATA target device + + phy-supply: + description: Power regulator for SATA PHY + + phys: + description: Reference to the SATA PHY node + maxItems: 1 + + phy-names: + const: sata-phy + + hba-cap: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Bitfield of the HBA generic platform capabilities like Staggered + Spin-up or Mechanical Presence Switch support. It can be used to + appropriately initialize the HWinit fields of the HBA CAP register + in case if the system firmware hasn't done it. + + ports-implemented: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Mask that indicates which ports the HBA supports. Useful if PI is not + programmed by the BIOS, which is true for some embedded SoC's. + +patternProperties: + "^sata-port@[0-9a-f]+$": + $ref: '#/$defs/ahci-port' + description: + It is optionally possible to describe the ports as sub-nodes so + to enable each port independently when dealing with multiple PHYs. + +required: + - reg + - interrupts + +additionalProperties: true + +$defs: + ahci-port: + $ref: /schemas/ata/sata-common.yaml#/$defs/sata-port + + properties: + reg: + description: + AHCI SATA port identifier. By design AHCI controller can't have + more than 32 ports due to the CAP.NP fields and PI register size + constraints. + minimum: 0 + maximum: 31 + + phys: + description: Individual AHCI SATA port PHY + maxItems: 1 + + phy-names: + description: AHCI SATA port PHY ID + const: sata-phy + + target-supply: + description: Power regulator for SATA port target device + + hba-port-cap: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Bitfield of the HBA port-specific platform capabilities like Hot + plugging, eSATA, FIS-based Switching, etc (see AHCI specification + for details). It can be used to initialize the HWinit fields of + the PxCMD register in case if the system firmware hasn't done it. + + required: + - reg + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.yaml index 8a217cd39..a17297cbe 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/ata/nvidia,tegra-ahci.yaml @@ -1,175 +1,175 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/ata/nvidia,tegra-ahci.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Tegra AHCI SATA Controller - -maintainers: - - Thierry Reding - - Jonathan Hunter - -properties: - compatible: - enum: - - nvidia,tegra124-ahci - - nvidia,tegra132-ahci - - nvidia,tegra210-ahci - - nvidia,tegra186-ahci - - reg: - minItems: 2 - items: - - description: AHCI registers - - description: SATA configuration and IPFS registers - - description: SATA AUX registers - - interrupts: - maxItems: 1 - - clock-names: - items: - - const: sata - - const: sata-oob - - clocks: - maxItems: 2 - - reset-names: - minItems: 2 - items: - - const: sata - - const: sata-cold - - const: sata-oob - - resets: - minItems: 2 - maxItems: 3 - - iommus: - maxItems: 1 - - interconnect-names: - items: - - const: dma-mem - - const: write - - interconnects: - maxItems: 2 - - power-domains: - items: - - description: SAX power-domain - - phy-names: - items: - - const: sata-0 - - phys: - maxItems: 1 - - hvdd-supply: - description: SATA HVDD regulator supply. - - vddio-supply: - description: SATA VDDIO regulator supply. - - avdd-supply: - description: SATA AVDD regulator supply. - - target-5v-supply: - description: SATA 5V power regulator supply. - - target-12v-supply: - description: SATA 12V power regulator supply. - -required: - - compatible - - reg - - interrupts - - clock-names - - clocks - - reset-names - - resets - -allOf: - - if: - properties: - compatible: - contains: - enum: - - nvidia,tegra124-ahci - - nvidia,tegra132-ahci - then: - properties: - reg: - maxItems: 2 - reset-names: - minItems: 3 - resets: - minItems: 3 - required: - - phys - - phy-names - - hvdd-supply - - vddio-supply - - avdd-supply - - - if: - properties: - compatible: - contains: - enum: - - nvidia,tegra210-ahci - then: - properties: - reg: - minItems: 3 - reset-names: - minItems: 3 - resets: - minItems: 3 - - - if: - properties: - compatible: - contains: - enum: - - nvidia,tegra186-ahci - then: - properties: - reg: - minItems: 3 - reset-names: - maxItems: 2 - resets: - maxItems: 2 - required: - - iommus - - interconnect-names - - interconnects - - power-domains - -additionalProperties: false - -examples: - - | - #include - #include - #include - - sata@70020000 { - compatible = "nvidia,tegra210-ahci"; - reg = <0x70027000 0x00002000>, /* AHCI */ - <0x70020000 0x00007000>, /* SATA */ - <0x70001100 0x00010000>; /* SATA AUX */ - interrupts = ; - clocks = <&tegra_car TEGRA210_CLK_SATA>, - <&tegra_car TEGRA210_CLK_SATA_OOB>; - clock-names = "sata", "sata-oob"; - resets = <&tegra_car 124>, - <&tegra_car 129>, - <&tegra_car 123>; - reset-names = "sata", "sata-cold", "sata-oob"; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/ata/nvidia,tegra-ahci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Tegra AHCI SATA Controller + +maintainers: + - Thierry Reding + - Jonathan Hunter + +properties: + compatible: + enum: + - nvidia,tegra124-ahci + - nvidia,tegra132-ahci + - nvidia,tegra210-ahci + - nvidia,tegra186-ahci + + reg: + minItems: 2 + items: + - description: AHCI registers + - description: SATA configuration and IPFS registers + - description: SATA AUX registers + + interrupts: + maxItems: 1 + + clock-names: + items: + - const: sata + - const: sata-oob + + clocks: + maxItems: 2 + + reset-names: + minItems: 2 + items: + - const: sata + - const: sata-cold + - const: sata-oob + + resets: + minItems: 2 + maxItems: 3 + + iommus: + maxItems: 1 + + interconnect-names: + items: + - const: dma-mem + - const: write + + interconnects: + maxItems: 2 + + power-domains: + items: + - description: SAX power-domain + + phy-names: + items: + - const: sata-0 + + phys: + maxItems: 1 + + hvdd-supply: + description: SATA HVDD regulator supply. + + vddio-supply: + description: SATA VDDIO regulator supply. + + avdd-supply: + description: SATA AVDD regulator supply. + + target-5v-supply: + description: SATA 5V power regulator supply. + + target-12v-supply: + description: SATA 12V power regulator supply. + +required: + - compatible + - reg + - interrupts + - clock-names + - clocks + - reset-names + - resets + +allOf: + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra124-ahci + - nvidia,tegra132-ahci + then: + properties: + reg: + maxItems: 2 + reset-names: + minItems: 3 + resets: + minItems: 3 + required: + - phys + - phy-names + - hvdd-supply + - vddio-supply + - avdd-supply + + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra210-ahci + then: + properties: + reg: + minItems: 3 + reset-names: + minItems: 3 + resets: + minItems: 3 + + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra186-ahci + then: + properties: + reg: + minItems: 3 + reset-names: + maxItems: 2 + resets: + maxItems: 2 + required: + - iommus + - interconnect-names + - interconnects + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + #include + + sata@70020000 { + compatible = "nvidia,tegra210-ahci"; + reg = <0x70027000 0x00002000>, /* AHCI */ + <0x70020000 0x00007000>, /* SATA */ + <0x70001100 0x00010000>; /* SATA AUX */ + interrupts = ; + clocks = <&tegra_car TEGRA210_CLK_SATA>, + <&tegra_car TEGRA210_CLK_SATA_OOB>; + clock-names = "sata", "sata-oob"; + resets = <&tegra_car 124>, + <&tegra_car 129>, + <&tegra_car 123>; + reset-names = "sata", "sata-cold", "sata-oob"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/auxdisplay/hit,hd44780.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/auxdisplay/hit,hd44780.yaml index 939116774..3ca0e9863 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/auxdisplay/hit,hd44780.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/auxdisplay/hit,hd44780.yaml @@ -1,127 +1,127 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/auxdisplay/hit,hd44780.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Hitachi HD44780 Character LCD Controller - -maintainers: - - Geert Uytterhoeven - -description: - The Hitachi HD44780 Character LCD Controller is commonly used on character - LCDs that can display one or more lines of text. It exposes an M6800 bus - interface, which can be used in either 4-bit or 8-bit mode. By using a - GPIO expander it is possible to use the driver with one of the popular I2C - expander boards based on the PCF8574 available for these displays. For - an example see below. - -properties: - compatible: - const: hit,hd44780 - - data-gpios: - description: - GPIO pins connected to the data signal lines DB0-DB7 (8-bit mode) or - DB4-DB7 (4-bit mode) of the LCD Controller's bus interface. - oneOf: - - maxItems: 4 - - maxItems: 8 - - enable-gpios: - description: - GPIO pin connected to the "E" (Enable) signal line of the LCD - Controller's bus interface. - maxItems: 1 - - rs-gpios: - description: - GPIO pin connected to the "RS" (Register Select) signal line of the LCD - Controller's bus interface. - maxItems: 1 - - rw-gpios: - description: - GPIO pin connected to the "RW" (Read/Write) signal line of the LCD - Controller's bus interface. - maxItems: 1 - - backlight-gpios: - description: GPIO pin used for enabling the LCD's backlight. - maxItems: 1 - - display-height-chars: - description: Height of the display, in character cells, - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 1 - maximum: 4 - - display-width-chars: - description: Width of the display, in character cells. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 1 - maximum: 64 - - internal-buffer-width: - description: - Internal buffer width (default is 40 for displays with 1 or 2 lines, and - display-width-chars for displays with more than 2 lines). - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 1 - maximum: 64 - -required: - - compatible - - data-gpios - - enable-gpios - - rs-gpios - - display-height-chars - - display-width-chars - -additionalProperties: false - -examples: - - | - #include - display-controller { - compatible = "hit,hd44780"; - - data-gpios = <&hc595 0 GPIO_ACTIVE_HIGH>, - <&hc595 1 GPIO_ACTIVE_HIGH>, - <&hc595 2 GPIO_ACTIVE_HIGH>, - <&hc595 3 GPIO_ACTIVE_HIGH>; - enable-gpios = <&hc595 4 GPIO_ACTIVE_HIGH>; - rs-gpios = <&hc595 5 GPIO_ACTIVE_HIGH>; - - display-height-chars = <2>; - display-width-chars = <16>; - }; - - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - pcf8574: gpio-expander@27 { - compatible = "nxp,pcf8574"; - reg = <0x27>; - gpio-controller; - #gpio-cells = <2>; - }; - }; - - display-controller { - compatible = "hit,hd44780"; - display-height-chars = <2>; - display-width-chars = <16>; - data-gpios = <&pcf8574 4 GPIO_ACTIVE_HIGH>, - <&pcf8574 5 GPIO_ACTIVE_HIGH>, - <&pcf8574 6 GPIO_ACTIVE_HIGH>, - <&pcf8574 7 GPIO_ACTIVE_HIGH>; - enable-gpios = <&pcf8574 2 GPIO_ACTIVE_HIGH>; - rs-gpios = <&pcf8574 0 GPIO_ACTIVE_HIGH>; - rw-gpios = <&pcf8574 1 GPIO_ACTIVE_HIGH>; - backlight-gpios = <&pcf8574 3 GPIO_ACTIVE_HIGH>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/auxdisplay/hit,hd44780.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Hitachi HD44780 Character LCD Controller + +maintainers: + - Geert Uytterhoeven + +description: + The Hitachi HD44780 Character LCD Controller is commonly used on character + LCDs that can display one or more lines of text. It exposes an M6800 bus + interface, which can be used in either 4-bit or 8-bit mode. By using a + GPIO expander it is possible to use the driver with one of the popular I2C + expander boards based on the PCF8574 available for these displays. For + an example see below. + +properties: + compatible: + const: hit,hd44780 + + data-gpios: + description: + GPIO pins connected to the data signal lines DB0-DB7 (8-bit mode) or + DB4-DB7 (4-bit mode) of the LCD Controller's bus interface. + oneOf: + - maxItems: 4 + - maxItems: 8 + + enable-gpios: + description: + GPIO pin connected to the "E" (Enable) signal line of the LCD + Controller's bus interface. + maxItems: 1 + + rs-gpios: + description: + GPIO pin connected to the "RS" (Register Select) signal line of the LCD + Controller's bus interface. + maxItems: 1 + + rw-gpios: + description: + GPIO pin connected to the "RW" (Read/Write) signal line of the LCD + Controller's bus interface. + maxItems: 1 + + backlight-gpios: + description: GPIO pin used for enabling the LCD's backlight. + maxItems: 1 + + display-height-chars: + description: Height of the display, in character cells, + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + maximum: 4 + + display-width-chars: + description: Width of the display, in character cells. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + maximum: 64 + + internal-buffer-width: + description: + Internal buffer width (default is 40 for displays with 1 or 2 lines, and + display-width-chars for displays with more than 2 lines). + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + maximum: 64 + +required: + - compatible + - data-gpios + - enable-gpios + - rs-gpios + - display-height-chars + - display-width-chars + +additionalProperties: false + +examples: + - | + #include + display-controller { + compatible = "hit,hd44780"; + + data-gpios = <&hc595 0 GPIO_ACTIVE_HIGH>, + <&hc595 1 GPIO_ACTIVE_HIGH>, + <&hc595 2 GPIO_ACTIVE_HIGH>, + <&hc595 3 GPIO_ACTIVE_HIGH>; + enable-gpios = <&hc595 4 GPIO_ACTIVE_HIGH>; + rs-gpios = <&hc595 5 GPIO_ACTIVE_HIGH>; + + display-height-chars = <2>; + display-width-chars = <16>; + }; + + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pcf8574: gpio-expander@27 { + compatible = "nxp,pcf8574"; + reg = <0x27>; + gpio-controller; + #gpio-cells = <2>; + }; + }; + + display-controller { + compatible = "hit,hd44780"; + display-height-chars = <2>; + display-width-chars = <16>; + data-gpios = <&pcf8574 4 GPIO_ACTIVE_HIGH>, + <&pcf8574 5 GPIO_ACTIVE_HIGH>, + <&pcf8574 6 GPIO_ACTIVE_HIGH>, + <&pcf8574 7 GPIO_ACTIVE_HIGH>; + enable-gpios = <&pcf8574 2 GPIO_ACTIVE_HIGH>; + rs-gpios = <&pcf8574 0 GPIO_ACTIVE_HIGH>; + rw-gpios = <&pcf8574 1 GPIO_ACTIVE_HIGH>; + backlight-gpios = <&pcf8574 3 GPIO_ACTIVE_HIGH>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/bus/qcom,ssc-block-bus.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/bus/qcom,ssc-block-bus.yaml index c7fcec8ee..8e9e6ff35 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/bus/qcom,ssc-block-bus.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/bus/qcom,ssc-block-bus.yaml @@ -1,144 +1,144 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/bus/qcom,ssc-block-bus.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: The AHB Bus Providing a Global View of the SSC Block on (some) qcom SoCs - -maintainers: - - Michael Srba - -description: | - This binding describes the dependencies (clocks, resets, power domains) which - need to be turned on in a sequence before communication over the AHB bus - becomes possible. - - Additionally, the reg property is used to pass to the driver the location of - two sadly undocumented registers which need to be poked as part of the sequence. - - The SSC (Snapdragon Sensor Core) block contains a gpio controller, i2c/spi/uart - controllers, a hexagon core, and a clock controller which provides clocks for - the above. - -properties: - compatible: - items: - - const: qcom,msm8998-ssc-block-bus - - const: qcom,ssc-block-bus - - reg: - items: - - description: SSCAON_CONFIG0 registers - - description: SSCAON_CONFIG1 registers - - reg-names: - items: - - const: mpm_sscaon_config0 - - const: mpm_sscaon_config1 - - '#address-cells': - enum: [ 1, 2 ] - - '#size-cells': - enum: [ 1, 2 ] - - ranges: true - - clocks: - maxItems: 6 - - clock-names: - items: - - const: xo - - const: aggre2 - - const: gcc_im_sleep - - const: aggre2_north - - const: ssc_xo - - const: ssc_ahbs - - power-domains: - items: - - description: CX power domain - - description: MX power domain - - power-domain-names: - items: - - const: ssc_cx - - const: ssc_mx - - resets: - items: - - description: Main reset - - description: - SSC Branch Control Register reset (associated with the ssc_xo and - ssc_ahbs clocks) - - reset-names: - items: - - const: ssc_reset - - const: ssc_bcr - - qcom,halt-regs: - $ref: /schemas/types.yaml#/definitions/phandle-array - description: describes how to locate the ssc AXI halt register - items: - - items: - - description: Phandle reference to a syscon representing TCSR - - description: offset for the ssc AXI halt register - -required: - - compatible - - reg - - reg-names - - '#address-cells' - - '#size-cells' - - ranges - - clocks - - clock-names - - power-domains - - power-domain-names - - resets - - reset-names - - qcom,halt-regs - -additionalProperties: - type: object - -examples: - - | - #include - #include - #include - - soc { - #address-cells = <1>; - #size-cells = <1>; - - // devices under this node are physically located in the SSC block, connected to an ssc-internal bus; - ssc_ahb_slave: bus@10ac008 { - #address-cells = <1>; - #size-cells = <1>; - ranges; - - compatible = "qcom,msm8998-ssc-block-bus", "qcom,ssc-block-bus"; - reg = <0x10ac008 0x4>, <0x10ac010 0x4>; - reg-names = "mpm_sscaon_config0", "mpm_sscaon_config1"; - - clocks = <&xo>, - <&rpmcc RPM_SMD_AGGR2_NOC_CLK>, - <&gcc GCC_IM_SLEEP>, - <&gcc AGGRE2_SNOC_NORTH_AXI>, - <&gcc SSC_XO>, - <&gcc SSC_CNOC_AHBS_CLK>; - clock-names = "xo", "aggre2", "gcc_im_sleep", "aggre2_north", "ssc_xo", "ssc_ahbs"; - - resets = <&gcc GCC_SSC_RESET>, <&gcc GCC_SSC_BCR>; - reset-names = "ssc_reset", "ssc_bcr"; - - power-domains = <&rpmpd MSM8998_SSCCX>, <&rpmpd MSM8998_SSCMX>; - power-domain-names = "ssc_cx", "ssc_mx"; - - qcom,halt-regs = <&tcsr_mutex_regs 0x26000>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bus/qcom,ssc-block-bus.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: The AHB Bus Providing a Global View of the SSC Block on (some) qcom SoCs + +maintainers: + - Michael Srba + +description: | + This binding describes the dependencies (clocks, resets, power domains) which + need to be turned on in a sequence before communication over the AHB bus + becomes possible. + + Additionally, the reg property is used to pass to the driver the location of + two sadly undocumented registers which need to be poked as part of the sequence. + + The SSC (Snapdragon Sensor Core) block contains a gpio controller, i2c/spi/uart + controllers, a hexagon core, and a clock controller which provides clocks for + the above. + +properties: + compatible: + items: + - const: qcom,msm8998-ssc-block-bus + - const: qcom,ssc-block-bus + + reg: + items: + - description: SSCAON_CONFIG0 registers + - description: SSCAON_CONFIG1 registers + + reg-names: + items: + - const: mpm_sscaon_config0 + - const: mpm_sscaon_config1 + + '#address-cells': + enum: [ 1, 2 ] + + '#size-cells': + enum: [ 1, 2 ] + + ranges: true + + clocks: + maxItems: 6 + + clock-names: + items: + - const: xo + - const: aggre2 + - const: gcc_im_sleep + - const: aggre2_north + - const: ssc_xo + - const: ssc_ahbs + + power-domains: + items: + - description: CX power domain + - description: MX power domain + + power-domain-names: + items: + - const: ssc_cx + - const: ssc_mx + + resets: + items: + - description: Main reset + - description: + SSC Branch Control Register reset (associated with the ssc_xo and + ssc_ahbs clocks) + + reset-names: + items: + - const: ssc_reset + - const: ssc_bcr + + qcom,halt-regs: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: describes how to locate the ssc AXI halt register + items: + - items: + - description: Phandle reference to a syscon representing TCSR + - description: offset for the ssc AXI halt register + +required: + - compatible + - reg + - reg-names + - '#address-cells' + - '#size-cells' + - ranges + - clocks + - clock-names + - power-domains + - power-domain-names + - resets + - reset-names + - qcom,halt-regs + +additionalProperties: + type: object + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <1>; + #size-cells = <1>; + + // devices under this node are physically located in the SSC block, connected to an ssc-internal bus; + ssc_ahb_slave: bus@10ac008 { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + compatible = "qcom,msm8998-ssc-block-bus", "qcom,ssc-block-bus"; + reg = <0x10ac008 0x4>, <0x10ac010 0x4>; + reg-names = "mpm_sscaon_config0", "mpm_sscaon_config1"; + + clocks = <&xo>, + <&rpmcc RPM_SMD_AGGR2_NOC_CLK>, + <&gcc GCC_IM_SLEEP>, + <&gcc AGGRE2_SNOC_NORTH_AXI>, + <&gcc SSC_XO>, + <&gcc SSC_CNOC_AHBS_CLK>; + clock-names = "xo", "aggre2", "gcc_im_sleep", "aggre2_north", "ssc_xo", "ssc_ahbs"; + + resets = <&gcc GCC_SSC_RESET>, <&gcc GCC_SSC_BCR>; + reset-names = "ssc_reset", "ssc_bcr"; + + power-domains = <&rpmpd MSM8998_SSCCX>, <&rpmpd MSM8998_SSCMX>; + power-domain-names = "ssc_cx", "ssc_mx"; + + qcom,halt-regs = <&tcsr_mutex_regs 0x26000>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/bus/socionext,uniphier-system-bus.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/bus/socionext,uniphier-system-bus.yaml index e1852515e..49df13fc2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/bus/socionext,uniphier-system-bus.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/bus/socionext,uniphier-system-bus.yaml @@ -1,103 +1,103 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/bus/socionext,uniphier-system-bus.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: UniPhier System Bus - -description: | - The UniPhier System Bus is an external bus that connects on-board devices to - the UniPhier SoC. It is a simple (semi-)parallel bus with address, data, and - some control signals. It supports up to 8 banks (chip selects). - - Before any access to the bus, the bus controller must be configured; the bus - controller registers provide the control for the translation from the offset - within each bank to the CPU-viewed address. The needed setup includes the - base address, the size of each bank. Optionally, some timing parameters can - be optimized for faster bus access. - -maintainers: - - Masahiro Yamada - -properties: - compatible: - const: socionext,uniphier-system-bus - - reg: - maxItems: 1 - - "#address-cells": - description: | - The first cell is the bank number (chip select). - The second cell is the address offset within the bank. - const: 2 - - "#size-cells": - const: 1 - - ranges: - description: | - Provide address translation from the System Bus to the parent bus. - - Note: - The address region(s) that can be assigned for the System Bus is - implementation defined. Some SoCs can use 0x00000000-0x0fffffff and - 0x40000000-0x4fffffff, while other SoCs only 0x40000000-0x4fffffff. - There might be additional limitations depending on SoCs and the boot mode. - The address translation is arbitrary as long as the banks are assigned in - the supported address space with the required alignment and they do not - overlap one another. - - For example, it is possible to map: - bank 0 to 0x42000000-0x43ffffff, bank 5 to 0x46000000-0x46ffffff - It is also possible to map: - bank 0 to 0x48000000-0x49ffffff, bank 5 to 0x44000000-0x44ffffff - There is no reason to stick to a particular translation mapping, but the - "ranges" property should provide a "reasonable" default that is known to - work. The software should initialize the bus controller according to it. - -patternProperties: - "^.*@[1-5],[1-9a-f][0-9a-f]+$": - description: Devices attached to chip selects - type: object - -required: - - compatible - - reg - - "#address-cells" - - "#size-cells" - - ranges - -additionalProperties: false - -examples: - - | - // In this example, - // - the Ethernet device is connected at the offset 0x01f00000 of CS1 and - // mapped to 0x43f00000 of the parent bus. - // - the UART device is connected at the offset 0x00200000 of CS5 and - // mapped to 0x46200000 of the parent bus. - - system-bus@58c00000 { - compatible = "socionext,uniphier-system-bus"; - reg = <0x58c00000 0x400>; - #address-cells = <2>; - #size-cells = <1>; - ranges = <1 0x00000000 0x42000000 0x02000000>, - <5 0x00000000 0x46000000 0x01000000>; - - ethernet@1,1f00000 { - compatible = "smsc,lan9115"; - reg = <1 0x01f00000 0x1000>; - interrupts = <0 48 4>; - phy-mode = "mii"; - }; - - serial@5,200000 { - compatible = "ns16550a"; - reg = <5 0x00200000 0x20>; - interrupts = <0 49 4>; - clock-frequency = <12288000>; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bus/socionext,uniphier-system-bus.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: UniPhier System Bus + +description: | + The UniPhier System Bus is an external bus that connects on-board devices to + the UniPhier SoC. It is a simple (semi-)parallel bus with address, data, and + some control signals. It supports up to 8 banks (chip selects). + + Before any access to the bus, the bus controller must be configured; the bus + controller registers provide the control for the translation from the offset + within each bank to the CPU-viewed address. The needed setup includes the + base address, the size of each bank. Optionally, some timing parameters can + be optimized for faster bus access. + +maintainers: + - Masahiro Yamada + +properties: + compatible: + const: socionext,uniphier-system-bus + + reg: + maxItems: 1 + + "#address-cells": + description: | + The first cell is the bank number (chip select). + The second cell is the address offset within the bank. + const: 2 + + "#size-cells": + const: 1 + + ranges: + description: | + Provide address translation from the System Bus to the parent bus. + + Note: + The address region(s) that can be assigned for the System Bus is + implementation defined. Some SoCs can use 0x00000000-0x0fffffff and + 0x40000000-0x4fffffff, while other SoCs only 0x40000000-0x4fffffff. + There might be additional limitations depending on SoCs and the boot mode. + The address translation is arbitrary as long as the banks are assigned in + the supported address space with the required alignment and they do not + overlap one another. + + For example, it is possible to map: + bank 0 to 0x42000000-0x43ffffff, bank 5 to 0x46000000-0x46ffffff + It is also possible to map: + bank 0 to 0x48000000-0x49ffffff, bank 5 to 0x44000000-0x44ffffff + There is no reason to stick to a particular translation mapping, but the + "ranges" property should provide a "reasonable" default that is known to + work. The software should initialize the bus controller according to it. + +patternProperties: + "^.*@[1-5],[1-9a-f][0-9a-f]+$": + description: Devices attached to chip selects + type: object + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - ranges + +additionalProperties: false + +examples: + - | + // In this example, + // - the Ethernet device is connected at the offset 0x01f00000 of CS1 and + // mapped to 0x43f00000 of the parent bus. + // - the UART device is connected at the offset 0x00200000 of CS5 and + // mapped to 0x46200000 of the parent bus. + + system-bus@58c00000 { + compatible = "socionext,uniphier-system-bus"; + reg = <0x58c00000 0x400>; + #address-cells = <2>; + #size-cells = <1>; + ranges = <1 0x00000000 0x42000000 0x02000000>, + <5 0x00000000 0x46000000 0x01000000>; + + ethernet@1,1f00000 { + compatible = "smsc,lan9115"; + reg = <1 0x01f00000 0x1000>; + interrupts = <0 48 4>; + phy-mode = "mii"; + }; + + serial@5,200000 { + compatible = "ns16550a"; + reg = <5 0x00200000 0x20>; + interrupts = <0 49 4>; + clock-frequency = <12288000>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml index b4b768733..7e8cebe21 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml @@ -1,174 +1,174 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -# Copyright (C) 2020 SiFive, Inc. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/cache/sifive,ccache0.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: SiFive Composable Cache Controller - -maintainers: - - Paul Walmsley - -description: - The SiFive Composable Cache Controller is used to provide access to fast copies - of memory for masters in a Core Complex. The Composable Cache Controller also - acts as directory-based coherency manager. - All the properties in ePAPR/DeviceTree specification applies for this platform. - -select: - properties: - compatible: - contains: - enum: - - sifive,ccache0 - - sifive,fu540-c000-ccache - - sifive,fu740-c000-ccache - - required: - - compatible - -properties: - compatible: - oneOf: - - items: - - enum: - - sifive,ccache0 - - sifive,fu540-c000-ccache - - sifive,fu740-c000-ccache - - const: cache - - items: - - enum: - - starfive,jh7100-ccache - - starfive,jh7110-ccache - - const: sifive,ccache0 - - const: cache - - items: - - const: microchip,mpfs-ccache - - const: sifive,fu540-c000-ccache - - const: cache - - cache-block-size: - const: 64 - - cache-level: - enum: [2, 3] - - cache-sets: - enum: [1024, 2048] - - cache-size: - const: 2097152 - - cache-unified: true - - interrupts: - minItems: 3 - items: - - description: DirError interrupt - - description: DataError interrupt - - description: DataFail interrupt - - description: DirFail interrupt - - reg: - maxItems: 1 - - next-level-cache: true - - memory-region: - maxItems: 1 - description: | - The reference to the reserved-memory for the L2 Loosely Integrated Memory region. - The reserved memory node should be defined as per the bindings in reserved-memory.txt. - -allOf: - - $ref: /schemas/cache-controller.yaml# - - - if: - properties: - compatible: - contains: - enum: - - sifive,fu740-c000-ccache - - starfive,jh7100-ccache - - starfive,jh7110-ccache - - microchip,mpfs-ccache - - then: - properties: - interrupts: - description: | - Must contain entries for DirError, DataError, DataFail, DirFail signals. - minItems: 4 - - else: - properties: - interrupts: - description: | - Must contain entries for DirError, DataError and DataFail signals. - maxItems: 3 - - - if: - properties: - compatible: - contains: - enum: - - sifive,fu740-c000-ccache - - starfive,jh7100-ccache - - starfive,jh7110-ccache - - then: - properties: - cache-sets: - const: 2048 - - else: - properties: - cache-sets: - const: 1024 - - - if: - properties: - compatible: - contains: - const: sifive,ccache0 - - then: - properties: - cache-level: - enum: [2, 3] - - else: - properties: - cache-level: - const: 2 - -additionalProperties: false - -required: - - compatible - - cache-block-size - - cache-level - - cache-sets - - cache-size - - cache-unified - - interrupts - - reg - -examples: - - | - cache-controller@2010000 { - compatible = "sifive,fu540-c000-ccache", "cache"; - cache-block-size = <64>; - cache-level = <2>; - cache-sets = <1024>; - cache-size = <2097152>; - cache-unified; - reg = <0x2010000 0x1000>; - interrupt-parent = <&plic0>; - interrupts = <1>, - <2>, - <3>; - next-level-cache = <&L25>; - memory-region = <&l2_lim>; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright (C) 2020 SiFive, Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/cache/sifive,ccache0.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SiFive Composable Cache Controller + +maintainers: + - Paul Walmsley + +description: + The SiFive Composable Cache Controller is used to provide access to fast copies + of memory for masters in a Core Complex. The Composable Cache Controller also + acts as directory-based coherency manager. + All the properties in ePAPR/DeviceTree specification applies for this platform. + +select: + properties: + compatible: + contains: + enum: + - sifive,ccache0 + - sifive,fu540-c000-ccache + - sifive,fu740-c000-ccache + + required: + - compatible + +properties: + compatible: + oneOf: + - items: + - enum: + - sifive,ccache0 + - sifive,fu540-c000-ccache + - sifive,fu740-c000-ccache + - const: cache + - items: + - enum: + - starfive,jh7100-ccache + - starfive,jh7110-ccache + - const: sifive,ccache0 + - const: cache + - items: + - const: microchip,mpfs-ccache + - const: sifive,fu540-c000-ccache + - const: cache + + cache-block-size: + const: 64 + + cache-level: + enum: [2, 3] + + cache-sets: + enum: [1024, 2048] + + cache-size: + const: 2097152 + + cache-unified: true + + interrupts: + minItems: 3 + items: + - description: DirError interrupt + - description: DataError interrupt + - description: DataFail interrupt + - description: DirFail interrupt + + reg: + maxItems: 1 + + next-level-cache: true + + memory-region: + maxItems: 1 + description: | + The reference to the reserved-memory for the L2 Loosely Integrated Memory region. + The reserved memory node should be defined as per the bindings in reserved-memory.txt. + +allOf: + - $ref: /schemas/cache-controller.yaml# + + - if: + properties: + compatible: + contains: + enum: + - sifive,fu740-c000-ccache + - starfive,jh7100-ccache + - starfive,jh7110-ccache + - microchip,mpfs-ccache + + then: + properties: + interrupts: + description: | + Must contain entries for DirError, DataError, DataFail, DirFail signals. + minItems: 4 + + else: + properties: + interrupts: + description: | + Must contain entries for DirError, DataError and DataFail signals. + maxItems: 3 + + - if: + properties: + compatible: + contains: + enum: + - sifive,fu740-c000-ccache + - starfive,jh7100-ccache + - starfive,jh7110-ccache + + then: + properties: + cache-sets: + const: 2048 + + else: + properties: + cache-sets: + const: 1024 + + - if: + properties: + compatible: + contains: + const: sifive,ccache0 + + then: + properties: + cache-level: + enum: [2, 3] + + else: + properties: + cache-level: + const: 2 + +additionalProperties: false + +required: + - compatible + - cache-block-size + - cache-level + - cache-sets + - cache-size + - cache-unified + - interrupts + - reg + +examples: + - | + cache-controller@2010000 { + compatible = "sifive,fu540-c000-ccache", "cache"; + cache-block-size = <64>; + cache-level = <2>; + cache-sets = <1024>; + cache-size = <2097152>; + cache-unified; + reg = <0x2010000 0x1000>; + interrupt-parent = <&plic0>; + interrupts = <1>, + <2>, + <3>; + next-level-cache = <&L25>; + memory-region = <&l2_lim>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/allwinner,sun4i-a10-ccu.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/allwinner,sun4i-a10-ccu.yaml index 0ae85b668..1690b9d99 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/allwinner,sun4i-a10-ccu.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/allwinner,sun4i-a10-ccu.yaml @@ -1,153 +1,153 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/allwinner,sun4i-a10-ccu.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Allwinner Clock Control Unit - -maintainers: - - Chen-Yu Tsai - - Maxime Ripard - -properties: - "#clock-cells": - const: 1 - - "#reset-cells": - const: 1 - - compatible: - enum: - - allwinner,sun4i-a10-ccu - - allwinner,sun5i-a10s-ccu - - allwinner,sun5i-a13-ccu - - allwinner,sun6i-a31-ccu - - allwinner,sun7i-a20-ccu - - allwinner,sun8i-a23-ccu - - allwinner,sun8i-a33-ccu - - allwinner,sun8i-a83t-ccu - - allwinner,sun8i-a83t-r-ccu - - allwinner,sun8i-h3-ccu - - allwinner,sun8i-h3-r-ccu - - allwinner,sun8i-r40-ccu - - allwinner,sun8i-v3-ccu - - allwinner,sun8i-v3s-ccu - - allwinner,sun9i-a80-ccu - - allwinner,sun20i-d1-ccu - - allwinner,sun20i-d1-r-ccu - - allwinner,sun50i-a64-ccu - - allwinner,sun50i-a64-r-ccu - - allwinner,sun50i-a100-ccu - - allwinner,sun50i-a100-r-ccu - - allwinner,sun50i-h5-ccu - - allwinner,sun50i-h6-ccu - - allwinner,sun50i-h6-r-ccu - - allwinner,sun50i-h616-ccu - - allwinner,sun50i-h616-r-ccu - - allwinner,suniv-f1c100s-ccu - - nextthing,gr8-ccu - - reg: - maxItems: 1 - - clocks: - minItems: 2 - items: - - description: High Frequency Oscillator (usually at 24MHz) - - description: Low Frequency Oscillator (usually at 32kHz) - - description: Internal Oscillator - - description: Peripherals PLL - - clock-names: - minItems: 2 - items: - - const: hosc - - const: losc - - const: iosc - - const: pll-periph - -required: - - "#clock-cells" - - "#reset-cells" - - compatible - - reg - - clocks - - clock-names - -if: - properties: - compatible: - enum: - - allwinner,sun8i-a83t-r-ccu - - allwinner,sun8i-h3-r-ccu - - allwinner,sun20i-d1-r-ccu - - allwinner,sun50i-a64-r-ccu - - allwinner,sun50i-a100-r-ccu - - allwinner,sun50i-h6-r-ccu - - allwinner,sun50i-h616-r-ccu - -then: - properties: - clocks: - minItems: 4 - maxItems: 4 - - clock-names: - minItems: 4 - maxItems: 4 - -else: - if: - properties: - compatible: - enum: - - allwinner,sun20i-d1-ccu - - allwinner,sun50i-a100-ccu - - allwinner,sun50i-h6-ccu - - allwinner,sun50i-h616-ccu - - then: - properties: - clocks: - minItems: 3 - maxItems: 3 - - clock-names: - minItems: 3 - maxItems: 3 - - else: - properties: - clocks: - minItems: 2 - maxItems: 2 - - clock-names: - minItems: 2 - maxItems: 2 - -additionalProperties: false - -examples: - - | - ccu: clock@1c20000 { - compatible = "allwinner,sun8i-h3-ccu"; - reg = <0x01c20000 0x400>; - clocks = <&osc24M>, <&osc32k>; - clock-names = "hosc", "losc"; - #clock-cells = <1>; - #reset-cells = <1>; - }; - - - | - r_ccu: clock@1f01400 { - compatible = "allwinner,sun50i-a64-r-ccu"; - reg = <0x01f01400 0x100>; - clocks = <&osc24M>, <&osc32k>, <&iosc>, <&ccu 11>; - clock-names = "hosc", "losc", "iosc", "pll-periph"; - #clock-cells = <1>; - #reset-cells = <1>; - }; - -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/allwinner,sun4i-a10-ccu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner Clock Control Unit + +maintainers: + - Chen-Yu Tsai + - Maxime Ripard + +properties: + "#clock-cells": + const: 1 + + "#reset-cells": + const: 1 + + compatible: + enum: + - allwinner,sun4i-a10-ccu + - allwinner,sun5i-a10s-ccu + - allwinner,sun5i-a13-ccu + - allwinner,sun6i-a31-ccu + - allwinner,sun7i-a20-ccu + - allwinner,sun8i-a23-ccu + - allwinner,sun8i-a33-ccu + - allwinner,sun8i-a83t-ccu + - allwinner,sun8i-a83t-r-ccu + - allwinner,sun8i-h3-ccu + - allwinner,sun8i-h3-r-ccu + - allwinner,sun8i-r40-ccu + - allwinner,sun8i-v3-ccu + - allwinner,sun8i-v3s-ccu + - allwinner,sun9i-a80-ccu + - allwinner,sun20i-d1-ccu + - allwinner,sun20i-d1-r-ccu + - allwinner,sun50i-a64-ccu + - allwinner,sun50i-a64-r-ccu + - allwinner,sun50i-a100-ccu + - allwinner,sun50i-a100-r-ccu + - allwinner,sun50i-h5-ccu + - allwinner,sun50i-h6-ccu + - allwinner,sun50i-h6-r-ccu + - allwinner,sun50i-h616-ccu + - allwinner,sun50i-h616-r-ccu + - allwinner,suniv-f1c100s-ccu + - nextthing,gr8-ccu + + reg: + maxItems: 1 + + clocks: + minItems: 2 + items: + - description: High Frequency Oscillator (usually at 24MHz) + - description: Low Frequency Oscillator (usually at 32kHz) + - description: Internal Oscillator + - description: Peripherals PLL + + clock-names: + minItems: 2 + items: + - const: hosc + - const: losc + - const: iosc + - const: pll-periph + +required: + - "#clock-cells" + - "#reset-cells" + - compatible + - reg + - clocks + - clock-names + +if: + properties: + compatible: + enum: + - allwinner,sun8i-a83t-r-ccu + - allwinner,sun8i-h3-r-ccu + - allwinner,sun20i-d1-r-ccu + - allwinner,sun50i-a64-r-ccu + - allwinner,sun50i-a100-r-ccu + - allwinner,sun50i-h6-r-ccu + - allwinner,sun50i-h616-r-ccu + +then: + properties: + clocks: + minItems: 4 + maxItems: 4 + + clock-names: + minItems: 4 + maxItems: 4 + +else: + if: + properties: + compatible: + enum: + - allwinner,sun20i-d1-ccu + - allwinner,sun50i-a100-ccu + - allwinner,sun50i-h6-ccu + - allwinner,sun50i-h616-ccu + + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + + clock-names: + minItems: 3 + maxItems: 3 + + else: + properties: + clocks: + minItems: 2 + maxItems: 2 + + clock-names: + minItems: 2 + maxItems: 2 + +additionalProperties: false + +examples: + - | + ccu: clock@1c20000 { + compatible = "allwinner,sun8i-h3-ccu"; + reg = <0x01c20000 0x400>; + clocks = <&osc24M>, <&osc32k>; + clock-names = "hosc", "losc"; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + - | + r_ccu: clock@1f01400 { + compatible = "allwinner,sun50i-a64-r-ccu"; + reg = <0x01f01400 0x100>; + clocks = <&osc24M>, <&osc32k>, <&iosc>, <&ccu 11>; + clock-names = "hosc", "losc", "iosc", "pll-periph"; + #clock-cells = <1>; + #reset-cells = <1>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/allwinner,sun4i-a10-usb-clk.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/allwinner,sun4i-a10-usb-clk.yaml index fd0f9fdf9..5103b675e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/allwinner,sun4i-a10-usb-clk.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/allwinner,sun4i-a10-usb-clk.yaml @@ -1,166 +1,166 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/allwinner,sun4i-a10-usb-clk.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Allwinner A10 USB Clock - -maintainers: - - Chen-Yu Tsai - - Maxime Ripard - -deprecated: true - -properties: - "#clock-cells": - const: 1 - description: > - The additional ID argument passed to the clock shall refer to - the index of the output. - - "#reset-cells": - const: 1 - - compatible: - enum: - - allwinner,sun4i-a10-usb-clk - - allwinner,sun5i-a13-usb-clk - - allwinner,sun6i-a31-usb-clk - - allwinner,sun8i-a23-usb-clk - - allwinner,sun8i-h3-usb-clk - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - clock-output-names: - minItems: 2 - maxItems: 8 - -required: - - "#clock-cells" - - "#reset-cells" - - compatible - - reg - - clocks - - clock-output-names - -additionalProperties: false - -allOf: - - if: - properties: - compatible: - contains: - const: allwinner,sun4i-a10-usb-clk - - then: - properties: - clock-output-names: - maxItems: 3 - - - if: - properties: - compatible: - contains: - const: allwinner,sun5i-a13-usb-clk - - then: - properties: - clock-output-names: - maxItems: 2 - - - if: - properties: - compatible: - contains: - const: allwinner,sun6i-a31-usb-clk - - then: - properties: - clock-output-names: - maxItems: 6 - - - if: - properties: - compatible: - contains: - const: allwinner,sun8i-a23-usb-clk - - then: - properties: - clock-output-names: - maxItems: 5 - - - if: - properties: - compatible: - contains: - const: allwinner,sun8i-h3-usb-clk - - then: - properties: - clock-output-names: - maxItems: 8 - -examples: - - | - clk@1c200cc { - #clock-cells = <1>; - #reset-cells = <1>; - compatible = "allwinner,sun4i-a10-usb-clk"; - reg = <0x01c200cc 0x4>; - clocks = <&pll6 1>; - clock-output-names = "usb_ohci0", "usb_ohci1", "usb_phy"; - }; - - - | - clk@1c200cc { - #clock-cells = <1>; - #reset-cells = <1>; - compatible = "allwinner,sun5i-a13-usb-clk"; - reg = <0x01c200cc 0x4>; - clocks = <&pll6 1>; - clock-output-names = "usb_ohci0", "usb_phy"; - }; - - - | - clk@1c200cc { - #clock-cells = <1>; - #reset-cells = <1>; - compatible = "allwinner,sun6i-a31-usb-clk"; - reg = <0x01c200cc 0x4>; - clocks = <&osc24M>; - clock-output-names = "usb_phy0", "usb_phy1", "usb_phy2", - "usb_ohci0", "usb_ohci1", - "usb_ohci2"; - }; - - - | - clk@1c200cc { - #clock-cells = <1>; - #reset-cells = <1>; - compatible = "allwinner,sun8i-a23-usb-clk"; - reg = <0x01c200cc 0x4>; - clocks = <&osc24M>; - clock-output-names = "usb_phy0", "usb_phy1", "usb_hsic", - "usb_hsic_12M", "usb_ohci0"; - }; - - - | - clk@1c200cc { - #clock-cells = <1>; - #reset-cells = <1>; - compatible = "allwinner,sun8i-h3-usb-clk"; - reg = <0x01c200cc 0x4>; - clocks = <&osc24M>; - clock-output-names = "usb_phy0", "usb_phy1", - "usb_phy2", "usb_phy3", - "usb_ohci0", "usb_ohci1", - "usb_ohci2", "usb_ohci3"; - }; - -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/allwinner,sun4i-a10-usb-clk.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner A10 USB Clock + +maintainers: + - Chen-Yu Tsai + - Maxime Ripard + +deprecated: true + +properties: + "#clock-cells": + const: 1 + description: > + The additional ID argument passed to the clock shall refer to + the index of the output. + + "#reset-cells": + const: 1 + + compatible: + enum: + - allwinner,sun4i-a10-usb-clk + - allwinner,sun5i-a13-usb-clk + - allwinner,sun6i-a31-usb-clk + - allwinner,sun8i-a23-usb-clk + - allwinner,sun8i-h3-usb-clk + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-output-names: + minItems: 2 + maxItems: 8 + +required: + - "#clock-cells" + - "#reset-cells" + - compatible + - reg + - clocks + - clock-output-names + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + contains: + const: allwinner,sun4i-a10-usb-clk + + then: + properties: + clock-output-names: + maxItems: 3 + + - if: + properties: + compatible: + contains: + const: allwinner,sun5i-a13-usb-clk + + then: + properties: + clock-output-names: + maxItems: 2 + + - if: + properties: + compatible: + contains: + const: allwinner,sun6i-a31-usb-clk + + then: + properties: + clock-output-names: + maxItems: 6 + + - if: + properties: + compatible: + contains: + const: allwinner,sun8i-a23-usb-clk + + then: + properties: + clock-output-names: + maxItems: 5 + + - if: + properties: + compatible: + contains: + const: allwinner,sun8i-h3-usb-clk + + then: + properties: + clock-output-names: + maxItems: 8 + +examples: + - | + clk@1c200cc { + #clock-cells = <1>; + #reset-cells = <1>; + compatible = "allwinner,sun4i-a10-usb-clk"; + reg = <0x01c200cc 0x4>; + clocks = <&pll6 1>; + clock-output-names = "usb_ohci0", "usb_ohci1", "usb_phy"; + }; + + - | + clk@1c200cc { + #clock-cells = <1>; + #reset-cells = <1>; + compatible = "allwinner,sun5i-a13-usb-clk"; + reg = <0x01c200cc 0x4>; + clocks = <&pll6 1>; + clock-output-names = "usb_ohci0", "usb_phy"; + }; + + - | + clk@1c200cc { + #clock-cells = <1>; + #reset-cells = <1>; + compatible = "allwinner,sun6i-a31-usb-clk"; + reg = <0x01c200cc 0x4>; + clocks = <&osc24M>; + clock-output-names = "usb_phy0", "usb_phy1", "usb_phy2", + "usb_ohci0", "usb_ohci1", + "usb_ohci2"; + }; + + - | + clk@1c200cc { + #clock-cells = <1>; + #reset-cells = <1>; + compatible = "allwinner,sun8i-a23-usb-clk"; + reg = <0x01c200cc 0x4>; + clocks = <&osc24M>; + clock-output-names = "usb_phy0", "usb_phy1", "usb_hsic", + "usb_hsic_12M", "usb_ohci0"; + }; + + - | + clk@1c200cc { + #clock-cells = <1>; + #reset-cells = <1>; + compatible = "allwinner,sun8i-h3-usb-clk"; + reg = <0x01c200cc 0x4>; + clocks = <&osc24M>; + clock-output-names = "usb_phy0", "usb_phy1", + "usb_phy2", "usb_phy3", + "usb_ohci0", "usb_ohci1", + "usb_ohci2", "usb_ohci3"; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/amlogic,c3-peripherals-clkc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/amlogic,c3-peripherals-clkc.yaml index 7099b9fec..98e30b8c0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/amlogic,c3-peripherals-clkc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/amlogic,c3-peripherals-clkc.yaml @@ -1,120 +1,120 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (C) 2022-2023 Amlogic, Inc. All rights reserved -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/amlogic,c3-peripherals-clkc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Amlogic C3 series Peripheral Clock Controller - -maintainers: - - Neil Armstrong - - Jerome Brunet - - Xianwei Zhao - - Chuan Liu - -properties: - compatible: - const: amlogic,c3-peripherals-clkc - - reg: - maxItems: 1 - - clocks: - minItems: 16 - items: - - description: input oscillator (usually at 24MHz) - - description: input oscillators multiplexer - - description: input fix pll - - description: input fclk div 2 - - description: input fclk div 2p5 - - description: input fclk div 3 - - description: input fclk div 4 - - description: input fclk div 5 - - description: input fclk div 7 - - description: input gp0 pll - - description: input gp1 pll - - description: input hifi pll - - description: input sys clk - - description: input axi clk - - description: input sys pll div 16 - - description: input cpu clk div 16 - - description: input pad clock for rtc clk (optional) - - clock-names: - minItems: 16 - items: - - const: xtal_24m - - const: oscin - - const: fix - - const: fdiv2 - - const: fdiv2p5 - - const: fdiv3 - - const: fdiv4 - - const: fdiv5 - - const: fdiv7 - - const: gp0 - - const: gp1 - - const: hifi - - const: sysclk - - const: axiclk - - const: sysplldiv16 - - const: cpudiv16 - - const: pad_osc - - "#clock-cells": - const: 1 - -required: - - compatible - - reg - - clocks - - clock-names - - "#clock-cells" - -additionalProperties: false - -examples: - - | - apb { - #address-cells = <2>; - #size-cells = <2>; - - clock-controller@0 { - compatible = "amlogic,c3-peripherals-clkc"; - reg = <0x0 0x0 0x0 0x49c>; - #clock-cells = <1>; - clocks = <&xtal_24m>, - <&scmi_clk 8>, - <&scmi_clk 12>, - <&clkc_pll 3>, - <&clkc_pll 5>, - <&clkc_pll 7>, - <&clkc_pll 9>, - <&clkc_pll 11>, - <&clkc_pll 13>, - <&clkc_pll 15>, - <&scmi_clk 13>, - <&clkc_pll 17>, - <&scmi_clk 9>, - <&scmi_clk 10>, - <&scmi_clk 14>, - <&scmi_clk 15>; - clock-names = "xtal_24m", - "oscin", - "fix", - "fdiv2", - "fdiv2p5", - "fdiv3", - "fdiv4", - "fdiv5", - "fdiv7", - "gp0", - "gp1", - "hifi", - "sysclk", - "axiclk", - "sysplldiv16", - "cpudiv16"; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2022-2023 Amlogic, Inc. All rights reserved +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/amlogic,c3-peripherals-clkc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic C3 series Peripheral Clock Controller + +maintainers: + - Neil Armstrong + - Jerome Brunet + - Xianwei Zhao + - Chuan Liu + +properties: + compatible: + const: amlogic,c3-peripherals-clkc + + reg: + maxItems: 1 + + clocks: + minItems: 16 + items: + - description: input oscillator (usually at 24MHz) + - description: input oscillators multiplexer + - description: input fix pll + - description: input fclk div 2 + - description: input fclk div 2p5 + - description: input fclk div 3 + - description: input fclk div 4 + - description: input fclk div 5 + - description: input fclk div 7 + - description: input gp0 pll + - description: input gp1 pll + - description: input hifi pll + - description: input sys clk + - description: input axi clk + - description: input sys pll div 16 + - description: input cpu clk div 16 + - description: input pad clock for rtc clk (optional) + + clock-names: + minItems: 16 + items: + - const: xtal_24m + - const: oscin + - const: fix + - const: fdiv2 + - const: fdiv2p5 + - const: fdiv3 + - const: fdiv4 + - const: fdiv5 + - const: fdiv7 + - const: gp0 + - const: gp1 + - const: hifi + - const: sysclk + - const: axiclk + - const: sysplldiv16 + - const: cpudiv16 + - const: pad_osc + + "#clock-cells": + const: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - "#clock-cells" + +additionalProperties: false + +examples: + - | + apb { + #address-cells = <2>; + #size-cells = <2>; + + clock-controller@0 { + compatible = "amlogic,c3-peripherals-clkc"; + reg = <0x0 0x0 0x0 0x49c>; + #clock-cells = <1>; + clocks = <&xtal_24m>, + <&scmi_clk 8>, + <&scmi_clk 12>, + <&clkc_pll 3>, + <&clkc_pll 5>, + <&clkc_pll 7>, + <&clkc_pll 9>, + <&clkc_pll 11>, + <&clkc_pll 13>, + <&clkc_pll 15>, + <&scmi_clk 13>, + <&clkc_pll 17>, + <&scmi_clk 9>, + <&scmi_clk 10>, + <&scmi_clk 14>, + <&scmi_clk 15>; + clock-names = "xtal_24m", + "oscin", + "fix", + "fdiv2", + "fdiv2p5", + "fdiv3", + "fdiv4", + "fdiv5", + "fdiv7", + "gp0", + "gp1", + "hifi", + "sysclk", + "axiclk", + "sysplldiv16", + "cpudiv16"; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/arm,syscon-icst.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/arm,syscon-icst.yaml index 7f081b19b..b5533f813 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/arm,syscon-icst.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/arm,syscon-icst.yaml @@ -1,110 +1,110 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/arm,syscon-icst.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ARM System Controller ICST Clocks - -maintainers: - - Linus Walleij - -description: | - The ICS525 and ICS307 oscillators are produced by Integrated - Devices Technology (IDT). ARM integrated these oscillators deeply into their - reference designs by adding special control registers that manage such - oscillators to their system controllers. - - The various ARM system controllers contain logic to serialize and initialize - an ICST clock request after a write to the 32 bit register at an offset - into the system controller. Furthermore, to even be able to alter one of - these frequencies, the system controller must first be unlocked by - writing a special token to another offset in the system controller. - - Some ARM hardware contain special versions of the serial interface that only - connects the low 8 bits of the VDW (missing one bit), hard-wires RDW to - different values and sometimes also hard-wires the output divider. They - therefore have special compatible strings as per this table (the OD value is - the value on the pins, not the resulting output divider). - - In the core modules and logic tiles, the ICST is a configurable clock fed - from a 24 MHz clock on the motherboard (usually the main crystal) used for - generating e.g. video clocks. It is located on the core module and there is - only one of these. This clock node must be a subnode of the core module. - - Hardware variant RDW OD VDW - - Integrator/AP 22 1 Bit 8 0, rest variable - integratorap-cm - - Integrator/AP 46 3 Bit 8 0, rest variable - integratorap-sys - - Integrator/AP 22 or 1 17 or (33 or 25 MHz) - integratorap-pci 14 1 14 - - Integrator/CP 22 variable Bit 8 0, rest variable - integratorcp-cm-core - - Integrator/CP 22 variable Bit 8 0, rest variable - integratorcp-cm-mem - - The ICST oscillator must be provided inside a system controller node. - -properties: - "#clock-cells": - const: 0 - - compatible: - enum: - - arm,syscon-icst525 - - arm,syscon-icst307 - - arm,syscon-icst525-integratorap-cm - - arm,syscon-icst525-integratorap-sys - - arm,syscon-icst525-integratorap-pci - - arm,syscon-icst525-integratorcp-cm-core - - arm,syscon-icst525-integratorcp-cm-mem - - arm,integrator-cm-auxosc - - arm,versatile-cm-auxosc - - arm,impd1-vco1 - - arm,impd1-vco2 - - reg: - maxItems: 1 - description: The VCO register - - clocks: - description: Parent clock for the ICST VCO - maxItems: 1 - - clock-output-names: - maxItems: 1 - - lock-offset: - $ref: /schemas/types.yaml#/definitions/uint32 - description: Offset to the unlocking register for the oscillator - - vco-offset: - $ref: /schemas/types.yaml#/definitions/uint32 - description: Offset to the VCO register for the oscillator - deprecated: true - -required: - - "#clock-cells" - - compatible - - clocks - -additionalProperties: false - -examples: - - | - vco1: clock { - compatible = "arm,impd1-vco1"; - #clock-cells = <0>; - lock-offset = <0x08>; - vco-offset = <0x00>; - clocks = <&sysclk>; - clock-output-names = "IM-PD1-VCO1"; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/arm,syscon-icst.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARM System Controller ICST Clocks + +maintainers: + - Linus Walleij + +description: | + The ICS525 and ICS307 oscillators are produced by Integrated + Devices Technology (IDT). ARM integrated these oscillators deeply into their + reference designs by adding special control registers that manage such + oscillators to their system controllers. + + The various ARM system controllers contain logic to serialize and initialize + an ICST clock request after a write to the 32 bit register at an offset + into the system controller. Furthermore, to even be able to alter one of + these frequencies, the system controller must first be unlocked by + writing a special token to another offset in the system controller. + + Some ARM hardware contain special versions of the serial interface that only + connects the low 8 bits of the VDW (missing one bit), hard-wires RDW to + different values and sometimes also hard-wires the output divider. They + therefore have special compatible strings as per this table (the OD value is + the value on the pins, not the resulting output divider). + + In the core modules and logic tiles, the ICST is a configurable clock fed + from a 24 MHz clock on the motherboard (usually the main crystal) used for + generating e.g. video clocks. It is located on the core module and there is + only one of these. This clock node must be a subnode of the core module. + + Hardware variant RDW OD VDW + + Integrator/AP 22 1 Bit 8 0, rest variable + integratorap-cm + + Integrator/AP 46 3 Bit 8 0, rest variable + integratorap-sys + + Integrator/AP 22 or 1 17 or (33 or 25 MHz) + integratorap-pci 14 1 14 + + Integrator/CP 22 variable Bit 8 0, rest variable + integratorcp-cm-core + + Integrator/CP 22 variable Bit 8 0, rest variable + integratorcp-cm-mem + + The ICST oscillator must be provided inside a system controller node. + +properties: + "#clock-cells": + const: 0 + + compatible: + enum: + - arm,syscon-icst525 + - arm,syscon-icst307 + - arm,syscon-icst525-integratorap-cm + - arm,syscon-icst525-integratorap-sys + - arm,syscon-icst525-integratorap-pci + - arm,syscon-icst525-integratorcp-cm-core + - arm,syscon-icst525-integratorcp-cm-mem + - arm,integrator-cm-auxosc + - arm,versatile-cm-auxosc + - arm,impd1-vco1 + - arm,impd1-vco2 + + reg: + maxItems: 1 + description: The VCO register + + clocks: + description: Parent clock for the ICST VCO + maxItems: 1 + + clock-output-names: + maxItems: 1 + + lock-offset: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Offset to the unlocking register for the oscillator + + vco-offset: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Offset to the VCO register for the oscillator + deprecated: true + +required: + - "#clock-cells" + - compatible + - clocks + +additionalProperties: false + +examples: + - | + vco1: clock { + compatible = "arm,impd1-vco1"; + #clock-cells = <0>; + lock-offset = <0x08>; + vco-offset = <0x00>; + clocks = <&sysclk>; + clock-output-names = "IM-PD1-VCO1"; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/atmel,at91rm9200-pmc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/atmel,at91rm9200-pmc.yaml index a087bb967..c9eb60776 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/atmel,at91rm9200-pmc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/atmel,at91rm9200-pmc.yaml @@ -1,156 +1,156 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/atmel,at91rm9200-pmc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Atmel Power Management Controller (PMC) - -maintainers: - - Claudiu Beznea - -description: - The power management controller optimizes power consumption by controlling all - system and user peripheral clocks. The PMC enables/disables the clock inputs - to many of the peripherals and to the processor. - -properties: - compatible: - oneOf: - - items: - - const: atmel,at91sam9g20-pmc - - const: atmel,at91sam9260-pmc - - const: syscon - - items: - - enum: - - atmel,at91sam9g15-pmc - - atmel,at91sam9g25-pmc - - atmel,at91sam9g35-pmc - - atmel,at91sam9x25-pmc - - atmel,at91sam9x35-pmc - - const: atmel,at91sam9x5-pmc - - const: syscon - - items: - - enum: - - atmel,at91rm9200-pmc - - atmel,at91sam9260-pmc - - atmel,at91sam9g45-pmc - - atmel,at91sam9n12-pmc - - atmel,at91sam9rl-pmc - - atmel,at91sam9x5-pmc - - atmel,sama5d2-pmc - - atmel,sama5d3-pmc - - atmel,sama5d4-pmc - - microchip,sam9x60-pmc - - microchip,sam9x7-pmc - - microchip,sama7g5-pmc - - const: syscon - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - "#clock-cells": - description: | - - 1st cell is the clock type, one of PMC_TYPE_CORE, PMC_TYPE_SYSTEM, - PMC_TYPE_PERIPHERAL, PMC_TYPE_GCK, PMC_TYPE_PROGRAMMABLE (as defined - in ) - - 2nd cell is the clock identifier as defined in - - pmc: clock-controller@f0018000 { - compatible = "atmel,sama5d4-pmc", "syscon"; - reg = <0xf0018000 0x120>; - interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; - #clock-cells = <2>; - clocks = <&clk32k>, <&main_xtal>; - clock-names = "slow_clk", "main_xtal"; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/atmel,at91rm9200-pmc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel Power Management Controller (PMC) + +maintainers: + - Claudiu Beznea + +description: + The power management controller optimizes power consumption by controlling all + system and user peripheral clocks. The PMC enables/disables the clock inputs + to many of the peripherals and to the processor. + +properties: + compatible: + oneOf: + - items: + - const: atmel,at91sam9g20-pmc + - const: atmel,at91sam9260-pmc + - const: syscon + - items: + - enum: + - atmel,at91sam9g15-pmc + - atmel,at91sam9g25-pmc + - atmel,at91sam9g35-pmc + - atmel,at91sam9x25-pmc + - atmel,at91sam9x35-pmc + - const: atmel,at91sam9x5-pmc + - const: syscon + - items: + - enum: + - atmel,at91rm9200-pmc + - atmel,at91sam9260-pmc + - atmel,at91sam9g45-pmc + - atmel,at91sam9n12-pmc + - atmel,at91sam9rl-pmc + - atmel,at91sam9x5-pmc + - atmel,sama5d2-pmc + - atmel,sama5d3-pmc + - atmel,sama5d4-pmc + - microchip,sam9x60-pmc + - microchip,sam9x7-pmc + - microchip,sama7g5-pmc + - const: syscon + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + "#clock-cells": + description: | + - 1st cell is the clock type, one of PMC_TYPE_CORE, PMC_TYPE_SYSTEM, + PMC_TYPE_PERIPHERAL, PMC_TYPE_GCK, PMC_TYPE_PROGRAMMABLE (as defined + in ) + - 2nd cell is the clock identifier as defined in + + pmc: clock-controller@f0018000 { + compatible = "atmel,sama5d4-pmc", "syscon"; + reg = <0xf0018000 0x120>; + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; + #clock-cells = <2>; + clocks = <&clk32k>, <&main_xtal>; + clock-names = "slow_clk", "main_xtal"; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/brcm,kona-ccu.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/brcm,kona-ccu.yaml index 0e7030b83..e5656950b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/brcm,kona-ccu.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/brcm,kona-ccu.yaml @@ -1,181 +1,181 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/brcm,kona-ccu.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Broadcom Kona family clock control units (CCU) - -maintainers: - - Florian Fainelli - - Ray Jui - - Scott Branden - -description: | - Broadcom "Kona" style clock control unit (CCU) is a clock provider that - manages a set of clock signals. - - All available clock IDs are defined in - - include/dt-bindings/clock/bcm281xx.h for BCM281XX family - - include/dt-bindings/clock/bcm21664.h for BCM21664 family - -properties: - compatible: - enum: - - brcm,bcm11351-aon-ccu - - brcm,bcm11351-hub-ccu - - brcm,bcm11351-master-ccu - - brcm,bcm11351-root-ccu - - brcm,bcm11351-slave-ccu - - brcm,bcm21664-aon-ccu - - brcm,bcm21664-master-ccu - - brcm,bcm21664-root-ccu - - brcm,bcm21664-slave-ccu - - reg: - maxItems: 1 - - '#clock-cells': - const: 1 - - clock-output-names: - minItems: 1 - maxItems: 10 - -required: - - compatible - - reg - - '#clock-cells' - - clock-output-names - -allOf: - - if: - properties: - compatible: - contains: - const: brcm,bcm11351-aon-ccu - then: - properties: - clock-output-names: - items: - - const: hub_timer - - const: pmu_bsc - - const: pmu_bsc_var - - if: - properties: - compatible: - contains: - const: brcm,bcm11351-hub-ccu - then: - properties: - clock-output-names: - const: tmon_1m - - if: - properties: - compatible: - contains: - const: brcm,bcm11351-master-ccu - then: - properties: - clock-output-names: - items: - - const: sdio1 - - const: sdio2 - - const: sdio3 - - const: sdio4 - - const: usb_ic - - const: hsic2_48m - - const: hsic2_12m - - if: - properties: - compatible: - contains: - enum: - - brcm,bcm11351-root-ccu - - brcm,bcm21664-root-ccu - then: - properties: - clock-output-names: - const: frac_1m - - if: - properties: - compatible: - contains: - const: brcm,bcm11351-slave-ccu - then: - properties: - clock-output-names: - items: - - const: uartb - - const: uartb2 - - const: uartb3 - - const: uartb4 - - const: ssp0 - - const: ssp2 - - const: bsc1 - - const: bsc2 - - const: bsc3 - - const: pwm - - if: - properties: - compatible: - contains: - const: brcm,bcm21664-aon-ccu - then: - properties: - clock-output-names: - const: hub_timer - - if: - properties: - compatible: - contains: - const: brcm,bcm21664-master-ccu - then: - properties: - clock-output-names: - items: - - const: sdio1 - - const: sdio2 - - const: sdio3 - - const: sdio4 - - const: sdio1_sleep - - const: sdio2_sleep - - const: sdio3_sleep - - const: sdio4_sleep - - if: - properties: - compatible: - contains: - const: brcm,bcm21664-slave-ccu - then: - properties: - clock-output-names: - items: - - const: uartb - - const: uartb2 - - const: uartb3 - - const: bsc1 - - const: bsc2 - - const: bsc3 - - const: bsc4 - -additionalProperties: false - -examples: - - | - clock-controller@3e011000 { - compatible = "brcm,bcm11351-slave-ccu"; - reg = <0x3e011000 0x0f00>; - #clock-cells = <1>; - clock-output-names = "uartb", - "uartb2", - "uartb3", - "uartb4", - "ssp0", - "ssp2", - "bsc1", - "bsc2", - "bsc3", - "pwm"; - }; -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/brcm,kona-ccu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Kona family clock control units (CCU) + +maintainers: + - Florian Fainelli + - Ray Jui + - Scott Branden + +description: | + Broadcom "Kona" style clock control unit (CCU) is a clock provider that + manages a set of clock signals. + + All available clock IDs are defined in + - include/dt-bindings/clock/bcm281xx.h for BCM281XX family + - include/dt-bindings/clock/bcm21664.h for BCM21664 family + +properties: + compatible: + enum: + - brcm,bcm11351-aon-ccu + - brcm,bcm11351-hub-ccu + - brcm,bcm11351-master-ccu + - brcm,bcm11351-root-ccu + - brcm,bcm11351-slave-ccu + - brcm,bcm21664-aon-ccu + - brcm,bcm21664-master-ccu + - brcm,bcm21664-root-ccu + - brcm,bcm21664-slave-ccu + + reg: + maxItems: 1 + + '#clock-cells': + const: 1 + + clock-output-names: + minItems: 1 + maxItems: 10 + +required: + - compatible + - reg + - '#clock-cells' + - clock-output-names + +allOf: + - if: + properties: + compatible: + contains: + const: brcm,bcm11351-aon-ccu + then: + properties: + clock-output-names: + items: + - const: hub_timer + - const: pmu_bsc + - const: pmu_bsc_var + - if: + properties: + compatible: + contains: + const: brcm,bcm11351-hub-ccu + then: + properties: + clock-output-names: + const: tmon_1m + - if: + properties: + compatible: + contains: + const: brcm,bcm11351-master-ccu + then: + properties: + clock-output-names: + items: + - const: sdio1 + - const: sdio2 + - const: sdio3 + - const: sdio4 + - const: usb_ic + - const: hsic2_48m + - const: hsic2_12m + - if: + properties: + compatible: + contains: + enum: + - brcm,bcm11351-root-ccu + - brcm,bcm21664-root-ccu + then: + properties: + clock-output-names: + const: frac_1m + - if: + properties: + compatible: + contains: + const: brcm,bcm11351-slave-ccu + then: + properties: + clock-output-names: + items: + - const: uartb + - const: uartb2 + - const: uartb3 + - const: uartb4 + - const: ssp0 + - const: ssp2 + - const: bsc1 + - const: bsc2 + - const: bsc3 + - const: pwm + - if: + properties: + compatible: + contains: + const: brcm,bcm21664-aon-ccu + then: + properties: + clock-output-names: + const: hub_timer + - if: + properties: + compatible: + contains: + const: brcm,bcm21664-master-ccu + then: + properties: + clock-output-names: + items: + - const: sdio1 + - const: sdio2 + - const: sdio3 + - const: sdio4 + - const: sdio1_sleep + - const: sdio2_sleep + - const: sdio3_sleep + - const: sdio4_sleep + - if: + properties: + compatible: + contains: + const: brcm,bcm21664-slave-ccu + then: + properties: + clock-output-names: + items: + - const: uartb + - const: uartb2 + - const: uartb3 + - const: bsc1 + - const: bsc2 + - const: bsc3 + - const: bsc4 + +additionalProperties: false + +examples: + - | + clock-controller@3e011000 { + compatible = "brcm,bcm11351-slave-ccu"; + reg = <0x3e011000 0x0f00>; + #clock-cells = <1>; + clock-output-names = "uartb", + "uartb2", + "uartb3", + "uartb4", + "ssp0", + "ssp2", + "bsc1", + "bsc2", + "bsc3", + "pwm"; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/imx25-clock.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/imx25-clock.yaml index ec9f1e772..c626a1585 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/imx25-clock.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/imx25-clock.yaml @@ -1,178 +1,178 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/imx25-clock.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale i.MX25 Clock Controller - -maintainers: - - Sascha Hauer - -description: | - The clock consumer should specify the desired clock by having the clock - ID in its "clocks" phandle cell. The following is a full list of i.MX25 - clocks and IDs. - - Clock ID - -------------------------- - dummy 0 - osc 1 - mpll 2 - upll 3 - mpll_cpu_3_4 4 - cpu_sel 5 - cpu 6 - ahb 7 - usb_div 8 - ipg 9 - per0_sel 10 - per1_sel 11 - per2_sel 12 - per3_sel 13 - per4_sel 14 - per5_sel 15 - per6_sel 16 - per7_sel 17 - per8_sel 18 - per9_sel 19 - per10_sel 20 - per11_sel 21 - per12_sel 22 - per13_sel 23 - per14_sel 24 - per15_sel 25 - per0 26 - per1 27 - per2 28 - per3 29 - per4 30 - per5 31 - per6 32 - per7 33 - per8 34 - per9 35 - per10 36 - per11 37 - per12 38 - per13 39 - per14 40 - per15 41 - csi_ipg_per 42 - epit_ipg_per 43 - esai_ipg_per 44 - esdhc1_ipg_per 45 - esdhc2_ipg_per 46 - gpt_ipg_per 47 - i2c_ipg_per 48 - lcdc_ipg_per 49 - nfc_ipg_per 50 - owire_ipg_per 51 - pwm_ipg_per 52 - sim1_ipg_per 53 - sim2_ipg_per 54 - ssi1_ipg_per 55 - ssi2_ipg_per 56 - uart_ipg_per 57 - ata_ahb 58 - reserved 59 - csi_ahb 60 - emi_ahb 61 - esai_ahb 62 - esdhc1_ahb 63 - esdhc2_ahb 64 - fec_ahb 65 - lcdc_ahb 66 - rtic_ahb 67 - sdma_ahb 68 - slcdc_ahb 69 - usbotg_ahb 70 - reserved 71 - reserved 72 - reserved 73 - reserved 74 - can1_ipg 75 - can2_ipg 76 - csi_ipg 77 - cspi1_ipg 78 - cspi2_ipg 79 - cspi3_ipg 80 - dryice_ipg 81 - ect_ipg 82 - epit1_ipg 83 - epit2_ipg 84 - reserved 85 - esdhc1_ipg 86 - esdhc2_ipg 87 - fec_ipg 88 - reserved 89 - reserved 90 - reserved 91 - gpt1_ipg 92 - gpt2_ipg 93 - gpt3_ipg 94 - gpt4_ipg 95 - reserved 96 - reserved 97 - reserved 98 - iim_ipg 99 - reserved 100 - reserved 101 - kpp_ipg 102 - lcdc_ipg 103 - reserved 104 - pwm1_ipg 105 - pwm2_ipg 106 - pwm3_ipg 107 - pwm4_ipg 108 - rngb_ipg 109 - reserved 110 - scc_ipg 111 - sdma_ipg 112 - sim1_ipg 113 - sim2_ipg 114 - slcdc_ipg 115 - spba_ipg 116 - ssi1_ipg 117 - ssi2_ipg 118 - tsc_ipg 119 - uart1_ipg 120 - uart2_ipg 121 - uart3_ipg 122 - uart4_ipg 123 - uart5_ipg 124 - reserved 125 - wdt_ipg 126 - cko_div 127 - cko_sel 128 - cko 129 - -properties: - compatible: - const: fsl,imx25-ccm - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - '#clock-cells': - const: 1 - -required: - - compatible - - reg - - interrupts - - '#clock-cells' - -additionalProperties: false - -examples: - - | - clock-controller@53f80000 { - compatible = "fsl,imx25-ccm"; - reg = <0x53f80000 0x4000>; - interrupts = <31>; - #clock-cells = <1>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/imx25-clock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX25 Clock Controller + +maintainers: + - Sascha Hauer + +description: | + The clock consumer should specify the desired clock by having the clock + ID in its "clocks" phandle cell. The following is a full list of i.MX25 + clocks and IDs. + + Clock ID + -------------------------- + dummy 0 + osc 1 + mpll 2 + upll 3 + mpll_cpu_3_4 4 + cpu_sel 5 + cpu 6 + ahb 7 + usb_div 8 + ipg 9 + per0_sel 10 + per1_sel 11 + per2_sel 12 + per3_sel 13 + per4_sel 14 + per5_sel 15 + per6_sel 16 + per7_sel 17 + per8_sel 18 + per9_sel 19 + per10_sel 20 + per11_sel 21 + per12_sel 22 + per13_sel 23 + per14_sel 24 + per15_sel 25 + per0 26 + per1 27 + per2 28 + per3 29 + per4 30 + per5 31 + per6 32 + per7 33 + per8 34 + per9 35 + per10 36 + per11 37 + per12 38 + per13 39 + per14 40 + per15 41 + csi_ipg_per 42 + epit_ipg_per 43 + esai_ipg_per 44 + esdhc1_ipg_per 45 + esdhc2_ipg_per 46 + gpt_ipg_per 47 + i2c_ipg_per 48 + lcdc_ipg_per 49 + nfc_ipg_per 50 + owire_ipg_per 51 + pwm_ipg_per 52 + sim1_ipg_per 53 + sim2_ipg_per 54 + ssi1_ipg_per 55 + ssi2_ipg_per 56 + uart_ipg_per 57 + ata_ahb 58 + reserved 59 + csi_ahb 60 + emi_ahb 61 + esai_ahb 62 + esdhc1_ahb 63 + esdhc2_ahb 64 + fec_ahb 65 + lcdc_ahb 66 + rtic_ahb 67 + sdma_ahb 68 + slcdc_ahb 69 + usbotg_ahb 70 + reserved 71 + reserved 72 + reserved 73 + reserved 74 + can1_ipg 75 + can2_ipg 76 + csi_ipg 77 + cspi1_ipg 78 + cspi2_ipg 79 + cspi3_ipg 80 + dryice_ipg 81 + ect_ipg 82 + epit1_ipg 83 + epit2_ipg 84 + reserved 85 + esdhc1_ipg 86 + esdhc2_ipg 87 + fec_ipg 88 + reserved 89 + reserved 90 + reserved 91 + gpt1_ipg 92 + gpt2_ipg 93 + gpt3_ipg 94 + gpt4_ipg 95 + reserved 96 + reserved 97 + reserved 98 + iim_ipg 99 + reserved 100 + reserved 101 + kpp_ipg 102 + lcdc_ipg 103 + reserved 104 + pwm1_ipg 105 + pwm2_ipg 106 + pwm3_ipg 107 + pwm4_ipg 108 + rngb_ipg 109 + reserved 110 + scc_ipg 111 + sdma_ipg 112 + sim1_ipg 113 + sim2_ipg 114 + slcdc_ipg 115 + spba_ipg 116 + ssi1_ipg 117 + ssi2_ipg 118 + tsc_ipg 119 + uart1_ipg 120 + uart2_ipg 121 + uart3_ipg 122 + uart4_ipg 123 + uart5_ipg 124 + reserved 125 + wdt_ipg 126 + cko_div 127 + cko_sel 128 + cko 129 + +properties: + compatible: + const: fsl,imx25-ccm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + '#clock-cells': + const: 1 + +required: + - compatible + - reg + - interrupts + - '#clock-cells' + +additionalProperties: false + +examples: + - | + clock-controller@53f80000 { + compatible = "fsl,imx25-ccm"; + reg = <0x53f80000 0x4000>; + interrupts = <31>; + #clock-cells = <1>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/imx7ulp-pcc-clock.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/imx7ulp-pcc-clock.yaml index 242ba6ab8..76842038f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/imx7ulp-pcc-clock.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/imx7ulp-pcc-clock.yaml @@ -1,110 +1,110 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/imx7ulp-pcc-clock.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale i.MX7ULP Peripheral Clock Control (PCC) modules Clock Controller - -maintainers: - - A.s. Dong - -description: | - i.MX7ULP Clock functions are under joint control of the System - Clock Generation (SCG) modules, Peripheral Clock Control (PCC) - modules, and Core Mode Controller (CMC)1 blocks - - The clocking scheme provides clear separation between M4 domain - and A7 domain. Except for a few clock sources shared between two - domains, such as the System Oscillator clock, the Slow IRC (SIRC), - and and the Fast IRC clock (FIRCLK), clock sources and clock - management are separated and contained within each domain. - - M4 clock management consists of SCG0, PCC0, PCC1, and CMC0 modules. - A7 clock management consists of SCG1, PCC2, PCC3, and CMC1 modules. - - Note: this binding doc is only for A7 clock domain. - - The Peripheral Clock Control (PCC) is responsible for clock selection, - optional division and clock gating mode for peripherals in their - respected power domain. - - The clock consumer should specify the desired clock by having the clock - ID in its "clocks" phandle cell. - See include/dt-bindings/clock/imx7ulp-clock.h for the full list of - i.MX7ULP clock IDs of each module. - -properties: - compatible: - enum: - - fsl,imx7ulp-pcc2 - - fsl,imx7ulp-pcc3 - - reg: - maxItems: 1 - - '#clock-cells': - const: 1 - - clocks: - items: - - description: nic1 bus clock - - description: nic1 clock - - description: ddr clock - - description: apll pfd2 - - description: apll pfd1 - - description: apll pfd0 - - description: usb pll - - description: system osc bus clock - - description: fast internal reference clock bus - - description: rtc osc - - description: system pll bus clock - - clock-names: - items: - - const: nic1_bus_clk - - const: nic1_clk - - const: ddr_clk - - const: apll_pfd2 - - const: apll_pfd1 - - const: apll_pfd0 - - const: upll - - const: sosc_bus_clk - - const: firc_bus_clk - - const: rosc - - const: spll_bus_clk - -required: - - compatible - - reg - - '#clock-cells' - - clocks - - clock-names - -additionalProperties: false - -examples: - - | - #include - #include - - clock-controller@403f0000 { - compatible = "fsl,imx7ulp-pcc2"; - reg = <0x403f0000 0x10000>; - #clock-cells = <1>; - clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>, - <&scg1 IMX7ULP_CLK_NIC1_DIV>, - <&scg1 IMX7ULP_CLK_DDR_DIV>, - <&scg1 IMX7ULP_CLK_APLL_PFD2>, - <&scg1 IMX7ULP_CLK_APLL_PFD1>, - <&scg1 IMX7ULP_CLK_APLL_PFD0>, - <&scg1 IMX7ULP_CLK_UPLL>, - <&scg1 IMX7ULP_CLK_SOSC_BUS_CLK>, - <&scg1 IMX7ULP_CLK_FIRC_BUS_CLK>, - <&scg1 IMX7ULP_CLK_ROSC>, - <&scg1 IMX7ULP_CLK_SPLL_BUS_CLK>; - clock-names = "nic1_bus_clk", "nic1_clk", "ddr_clk", - "apll_pfd2", "apll_pfd1", "apll_pfd0", - "upll", "sosc_bus_clk", "firc_bus_clk", - "rosc", "spll_bus_clk"; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/imx7ulp-pcc-clock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX7ULP Peripheral Clock Control (PCC) modules Clock Controller + +maintainers: + - A.s. Dong + +description: | + i.MX7ULP Clock functions are under joint control of the System + Clock Generation (SCG) modules, Peripheral Clock Control (PCC) + modules, and Core Mode Controller (CMC)1 blocks + + The clocking scheme provides clear separation between M4 domain + and A7 domain. Except for a few clock sources shared between two + domains, such as the System Oscillator clock, the Slow IRC (SIRC), + and and the Fast IRC clock (FIRCLK), clock sources and clock + management are separated and contained within each domain. + + M4 clock management consists of SCG0, PCC0, PCC1, and CMC0 modules. + A7 clock management consists of SCG1, PCC2, PCC3, and CMC1 modules. + + Note: this binding doc is only for A7 clock domain. + + The Peripheral Clock Control (PCC) is responsible for clock selection, + optional division and clock gating mode for peripherals in their + respected power domain. + + The clock consumer should specify the desired clock by having the clock + ID in its "clocks" phandle cell. + See include/dt-bindings/clock/imx7ulp-clock.h for the full list of + i.MX7ULP clock IDs of each module. + +properties: + compatible: + enum: + - fsl,imx7ulp-pcc2 + - fsl,imx7ulp-pcc3 + + reg: + maxItems: 1 + + '#clock-cells': + const: 1 + + clocks: + items: + - description: nic1 bus clock + - description: nic1 clock + - description: ddr clock + - description: apll pfd2 + - description: apll pfd1 + - description: apll pfd0 + - description: usb pll + - description: system osc bus clock + - description: fast internal reference clock bus + - description: rtc osc + - description: system pll bus clock + + clock-names: + items: + - const: nic1_bus_clk + - const: nic1_clk + - const: ddr_clk + - const: apll_pfd2 + - const: apll_pfd1 + - const: apll_pfd0 + - const: upll + - const: sosc_bus_clk + - const: firc_bus_clk + - const: rosc + - const: spll_bus_clk + +required: + - compatible + - reg + - '#clock-cells' + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + + clock-controller@403f0000 { + compatible = "fsl,imx7ulp-pcc2"; + reg = <0x403f0000 0x10000>; + #clock-cells = <1>; + clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>, + <&scg1 IMX7ULP_CLK_NIC1_DIV>, + <&scg1 IMX7ULP_CLK_DDR_DIV>, + <&scg1 IMX7ULP_CLK_APLL_PFD2>, + <&scg1 IMX7ULP_CLK_APLL_PFD1>, + <&scg1 IMX7ULP_CLK_APLL_PFD0>, + <&scg1 IMX7ULP_CLK_UPLL>, + <&scg1 IMX7ULP_CLK_SOSC_BUS_CLK>, + <&scg1 IMX7ULP_CLK_FIRC_BUS_CLK>, + <&scg1 IMX7ULP_CLK_ROSC>, + <&scg1 IMX7ULP_CLK_SPLL_BUS_CLK>; + clock-names = "nic1_bus_clk", "nic1_clk", "ddr_clk", + "apll_pfd2", "apll_pfd1", "apll_pfd0", + "upll", "sosc_bus_clk", "firc_bus_clk", + "rosc", "spll_bus_clk"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/lpc1850-cgu.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/lpc1850-cgu.txt index 45f82dd43..2cc32a9a9 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/lpc1850-cgu.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/lpc1850-cgu.txt @@ -1,131 +1,131 @@ -* NXP LPC1850 Clock Generation Unit (CGU) - -The CGU generates multiple independent clocks for the core and the -peripheral blocks of the LPC18xx. Each independent clock is called -a base clock and itself is one of the inputs to the two Clock -Control Units (CCUs) which control the branch clocks to the -individual peripherals. - -The CGU selects the inputs to the clock generators from multiple -clock sources, controls the clock generation, and routes the outputs -of the clock generators through the clock source bus to the output -stages. Each output stage provides an independent clock source and -corresponds to one of the base clocks for the LPC18xx. - - - Above text taken from NXP LPC1850 User Manual. - - -This binding uses the common clock binding: - Documentation/devicetree/bindings/clock/clock-bindings.txt - -Required properties: -- compatible: - Should be "nxp,lpc1850-cgu" -- reg: - Shall define the base and range of the address space - containing clock control registers -- #clock-cells: - Shall have value <1>. The permitted clock-specifier values - are the base clock numbers defined below. -- clocks: - Shall contain a list of phandles for the external input - sources to the CGU. The list shall be in the following - order: xtal, 32khz, enet_rx_clk, enet_tx_clk, gp_clkin. -- clock-indices: - Shall be an ordered list of numbers defining the base clock - number provided by the CGU. -- clock-output-names: - Shall be an ordered list of strings defining the names of - the clocks provided by the CGU. - -Which base clocks that are available on the CGU depends on the -specific LPC part. Base clocks are numbered from 0 to 27. - -Number: Name: Description: - 0 BASE_SAFE_CLK Base safe clock (always on) for WWDT - 1 BASE_USB0_CLK Base clock for USB0 - 2 BASE_PERIPH_CLK Base clock for Cortex-M0SUB subsystem, - SPI, and SGPIO - 3 BASE_USB1_CLK Base clock for USB1 - 4 BASE_CPU_CLK System base clock for ARM Cortex-M core - and APB peripheral blocks #0 and #2 - 5 BASE_SPIFI_CLK Base clock for SPIFI - 6 BASE_SPI_CLK Base clock for SPI - 7 BASE_PHY_RX_CLK Base clock for Ethernet PHY Receive clock - 8 BASE_PHY_TX_CLK Base clock for Ethernet PHY Transmit clock - 9 BASE_APB1_CLK Base clock for APB peripheral block # 1 -10 BASE_APB3_CLK Base clock for APB peripheral block # 3 -11 BASE_LCD_CLK Base clock for LCD -12 BASE_ADCHS_CLK Base clock for ADCHS -13 BASE_SDIO_CLK Base clock for SD/MMC -14 BASE_SSP0_CLK Base clock for SSP0 -15 BASE_SSP1_CLK Base clock for SSP1 -16 BASE_UART0_CLK Base clock for UART0 -17 BASE_UART1_CLK Base clock for UART1 -18 BASE_UART2_CLK Base clock for UART2 -19 BASE_UART3_CLK Base clock for UART3 -20 BASE_OUT_CLK Base clock for CLKOUT pin -24-21 - Reserved -25 BASE_AUDIO_CLK Base clock for audio system (I2S) -26 BASE_CGU_OUT0_CLK Base clock for CGU_OUT0 clock output -27 BASE_CGU_OUT1_CLK Base clock for CGU_OUT1 clock output - -BASE_PERIPH_CLK and BASE_SPI_CLK is only available on LPC43xx. -BASE_ADCHS_CLK is only available on LPC4370. - - -Example board file: - -/ { - clocks { - xtal: xtal { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <12000000>; - }; - - xtal32: xtal32 { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <32768>; - }; - - enet_rx_clk: enet_rx_clk { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <0>; - clock-output-names = "enet_rx_clk"; - }; - - enet_tx_clk: enet_tx_clk { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <0>; - clock-output-names = "enet_tx_clk"; - }; - - gp_clkin: gp_clkin { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <0>; - clock-output-names = "gp_clkin"; - }; - }; - - soc { - cgu: clock-controller@40050000 { - compatible = "nxp,lpc1850-cgu"; - reg = <0x40050000 0x1000>; - #clock-cells = <1>; - clocks = <&xtal>, <&creg_clk 1>, <&enet_rx_clk>, <&enet_tx_clk>, <&gp_clkin>; - }; - - /* A CGU and CCU clock consumer */ - lcdc: lcdc@40008000 { - ... - clocks = <&cgu BASE_LCD_CLK>, <&ccu1 CLK_CPU_LCD>; - clock-names = "clcdclk", "apb_pclk"; - ... - }; - }; -}; +* NXP LPC1850 Clock Generation Unit (CGU) + +The CGU generates multiple independent clocks for the core and the +peripheral blocks of the LPC18xx. Each independent clock is called +a base clock and itself is one of the inputs to the two Clock +Control Units (CCUs) which control the branch clocks to the +individual peripherals. + +The CGU selects the inputs to the clock generators from multiple +clock sources, controls the clock generation, and routes the outputs +of the clock generators through the clock source bus to the output +stages. Each output stage provides an independent clock source and +corresponds to one of the base clocks for the LPC18xx. + + - Above text taken from NXP LPC1850 User Manual. + + +This binding uses the common clock binding: + Documentation/devicetree/bindings/clock/clock-bindings.txt + +Required properties: +- compatible: + Should be "nxp,lpc1850-cgu" +- reg: + Shall define the base and range of the address space + containing clock control registers +- #clock-cells: + Shall have value <1>. The permitted clock-specifier values + are the base clock numbers defined below. +- clocks: + Shall contain a list of phandles for the external input + sources to the CGU. The list shall be in the following + order: xtal, 32khz, enet_rx_clk, enet_tx_clk, gp_clkin. +- clock-indices: + Shall be an ordered list of numbers defining the base clock + number provided by the CGU. +- clock-output-names: + Shall be an ordered list of strings defining the names of + the clocks provided by the CGU. + +Which base clocks that are available on the CGU depends on the +specific LPC part. Base clocks are numbered from 0 to 27. + +Number: Name: Description: + 0 BASE_SAFE_CLK Base safe clock (always on) for WWDT + 1 BASE_USB0_CLK Base clock for USB0 + 2 BASE_PERIPH_CLK Base clock for Cortex-M0SUB subsystem, + SPI, and SGPIO + 3 BASE_USB1_CLK Base clock for USB1 + 4 BASE_CPU_CLK System base clock for ARM Cortex-M core + and APB peripheral blocks #0 and #2 + 5 BASE_SPIFI_CLK Base clock for SPIFI + 6 BASE_SPI_CLK Base clock for SPI + 7 BASE_PHY_RX_CLK Base clock for Ethernet PHY Receive clock + 8 BASE_PHY_TX_CLK Base clock for Ethernet PHY Transmit clock + 9 BASE_APB1_CLK Base clock for APB peripheral block # 1 +10 BASE_APB3_CLK Base clock for APB peripheral block # 3 +11 BASE_LCD_CLK Base clock for LCD +12 BASE_ADCHS_CLK Base clock for ADCHS +13 BASE_SDIO_CLK Base clock for SD/MMC +14 BASE_SSP0_CLK Base clock for SSP0 +15 BASE_SSP1_CLK Base clock for SSP1 +16 BASE_UART0_CLK Base clock for UART0 +17 BASE_UART1_CLK Base clock for UART1 +18 BASE_UART2_CLK Base clock for UART2 +19 BASE_UART3_CLK Base clock for UART3 +20 BASE_OUT_CLK Base clock for CLKOUT pin +24-21 - Reserved +25 BASE_AUDIO_CLK Base clock for audio system (I2S) +26 BASE_CGU_OUT0_CLK Base clock for CGU_OUT0 clock output +27 BASE_CGU_OUT1_CLK Base clock for CGU_OUT1 clock output + +BASE_PERIPH_CLK and BASE_SPI_CLK is only available on LPC43xx. +BASE_ADCHS_CLK is only available on LPC4370. + + +Example board file: + +/ { + clocks { + xtal: xtal { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <12000000>; + }; + + xtal32: xtal32 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + }; + + enet_rx_clk: enet_rx_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + clock-output-names = "enet_rx_clk"; + }; + + enet_tx_clk: enet_tx_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + clock-output-names = "enet_tx_clk"; + }; + + gp_clkin: gp_clkin { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + clock-output-names = "gp_clkin"; + }; + }; + + soc { + cgu: clock-controller@40050000 { + compatible = "nxp,lpc1850-cgu"; + reg = <0x40050000 0x1000>; + #clock-cells = <1>; + clocks = <&xtal>, <&creg_clk 1>, <&enet_rx_clk>, <&enet_tx_clk>, <&gp_clkin>; + }; + + /* A CGU and CCU clock consumer */ + lcdc: lcdc@40008000 { + ... + clocks = <&cgu BASE_LCD_CLK>, <&ccu1 CLK_CPU_LCD>; + clock-names = "clcdclk", "apb_pclk"; + ... + }; + }; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/qcom,dispcc-sm8x50.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/qcom,dispcc-sm8x50.yaml index 6fa53c183..53a5ab319 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/qcom,dispcc-sm8x50.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/qcom,dispcc-sm8x50.yaml @@ -1,123 +1,123 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/qcom,dispcc-sm8x50.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Display Clock & Reset Controller on SM8150/SM8250/SM8350 - -maintainers: - - Jonathan Marek - -description: | - Qualcomm display clock control module provides the clocks, resets and power - domains on SM8150/SM8250/SM8350. - - See also:: - include/dt-bindings/clock/qcom,dispcc-sm8150.h - include/dt-bindings/clock/qcom,dispcc-sm8250.h - include/dt-bindings/clock/qcom,dispcc-sm8350.h - -properties: - compatible: - enum: - - qcom,sc8180x-dispcc - - qcom,sm8150-dispcc - - qcom,sm8250-dispcc - - qcom,sm8350-dispcc - - clocks: - minItems: 7 - items: - - description: Board XO source - - description: Byte clock from DSI PHY0 - - description: Pixel clock from DSI PHY0 - - description: Byte clock from DSI PHY1 - - description: Pixel clock from DSI PHY1 - - description: Link clock from DP PHY - - description: VCO DIV clock from DP PHY - - description: Link clock from eDP PHY - - description: VCO DIV clock from eDP PHY - - description: Link clock from DP1 PHY - - description: VCO DIV clock from DP1 PHY - - description: Link clock from DP2 PHY - - description: VCO DIV clock from DP2 PHY - - clock-names: - minItems: 7 - items: - - const: bi_tcxo - - const: dsi0_phy_pll_out_byteclk - - const: dsi0_phy_pll_out_dsiclk - - const: dsi1_phy_pll_out_byteclk - - const: dsi1_phy_pll_out_dsiclk - - const: dp_phy_pll_link_clk - - const: dp_phy_pll_vco_div_clk - - const: edp_phy_pll_link_clk - - const: edp_phy_pll_vco_div_clk - - const: dptx1_phy_pll_link_clk - - const: dptx1_phy_pll_vco_div_clk - - const: dptx2_phy_pll_link_clk - - const: dptx2_phy_pll_vco_div_clk - - power-domains: - description: - A phandle and PM domain specifier for the MMCX power domain. - maxItems: 1 - - required-opps: - description: - A phandle to an OPP node describing required MMCX performance point. - maxItems: 1 - -required: - - compatible - - clocks - - clock-names - - '#power-domain-cells' - -allOf: - - $ref: qcom,gcc.yaml# - - if: - not: - properties: - compatible: - contains: - const: qcom,sc8180x-dispcc - then: - properties: - clocks: - maxItems: 7 - clock-names: - maxItems: 7 - -unevaluatedProperties: false - -examples: - - | - #include - #include - clock-controller@af00000 { - compatible = "qcom,sm8250-dispcc"; - reg = <0x0af00000 0x10000>; - clocks = <&rpmhcc RPMH_CXO_CLK>, - <&dsi0_phy 0>, - <&dsi0_phy 1>, - <&dsi1_phy 0>, - <&dsi1_phy 1>, - <&dp_phy 0>, - <&dp_phy 1>; - clock-names = "bi_tcxo", - "dsi0_phy_pll_out_byteclk", - "dsi0_phy_pll_out_dsiclk", - "dsi1_phy_pll_out_byteclk", - "dsi1_phy_pll_out_dsiclk", - "dp_phy_pll_link_clk", - "dp_phy_pll_vco_div_clk"; - #clock-cells = <1>; - #reset-cells = <1>; - #power-domain-cells = <1>; - power-domains = <&rpmhpd RPMHPD_MMCX>; - required-opps = <&rpmhpd_opp_low_svs>; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,dispcc-sm8x50.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Display Clock & Reset Controller on SM8150/SM8250/SM8350 + +maintainers: + - Jonathan Marek + +description: | + Qualcomm display clock control module provides the clocks, resets and power + domains on SM8150/SM8250/SM8350. + + See also:: + include/dt-bindings/clock/qcom,dispcc-sm8150.h + include/dt-bindings/clock/qcom,dispcc-sm8250.h + include/dt-bindings/clock/qcom,dispcc-sm8350.h + +properties: + compatible: + enum: + - qcom,sc8180x-dispcc + - qcom,sm8150-dispcc + - qcom,sm8250-dispcc + - qcom,sm8350-dispcc + + clocks: + minItems: 7 + items: + - description: Board XO source + - description: Byte clock from DSI PHY0 + - description: Pixel clock from DSI PHY0 + - description: Byte clock from DSI PHY1 + - description: Pixel clock from DSI PHY1 + - description: Link clock from DP PHY + - description: VCO DIV clock from DP PHY + - description: Link clock from eDP PHY + - description: VCO DIV clock from eDP PHY + - description: Link clock from DP1 PHY + - description: VCO DIV clock from DP1 PHY + - description: Link clock from DP2 PHY + - description: VCO DIV clock from DP2 PHY + + clock-names: + minItems: 7 + items: + - const: bi_tcxo + - const: dsi0_phy_pll_out_byteclk + - const: dsi0_phy_pll_out_dsiclk + - const: dsi1_phy_pll_out_byteclk + - const: dsi1_phy_pll_out_dsiclk + - const: dp_phy_pll_link_clk + - const: dp_phy_pll_vco_div_clk + - const: edp_phy_pll_link_clk + - const: edp_phy_pll_vco_div_clk + - const: dptx1_phy_pll_link_clk + - const: dptx1_phy_pll_vco_div_clk + - const: dptx2_phy_pll_link_clk + - const: dptx2_phy_pll_vco_div_clk + + power-domains: + description: + A phandle and PM domain specifier for the MMCX power domain. + maxItems: 1 + + required-opps: + description: + A phandle to an OPP node describing required MMCX performance point. + maxItems: 1 + +required: + - compatible + - clocks + - clock-names + - '#power-domain-cells' + +allOf: + - $ref: qcom,gcc.yaml# + - if: + not: + properties: + compatible: + contains: + const: qcom,sc8180x-dispcc + then: + properties: + clocks: + maxItems: 7 + clock-names: + maxItems: 7 + +unevaluatedProperties: false + +examples: + - | + #include + #include + clock-controller@af00000 { + compatible = "qcom,sm8250-dispcc"; + reg = <0x0af00000 0x10000>; + clocks = <&rpmhcc RPMH_CXO_CLK>, + <&dsi0_phy 0>, + <&dsi0_phy 1>, + <&dsi1_phy 0>, + <&dsi1_phy 1>, + <&dp_phy 0>, + <&dp_phy 1>; + clock-names = "bi_tcxo", + "dsi0_phy_pll_out_byteclk", + "dsi0_phy_pll_out_dsiclk", + "dsi1_phy_pll_out_byteclk", + "dsi1_phy_pll_out_dsiclk", + "dp_phy_pll_link_clk", + "dp_phy_pll_vco_div_clk"; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + power-domains = <&rpmhpd RPMHPD_MMCX>; + required-opps = <&rpmhpd_opp_low_svs>; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/qcom,gcc-sc8280xp.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/qcom,gcc-sc8280xp.yaml index 7dd1caf19..5cfde8a4d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/qcom,gcc-sc8280xp.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/qcom,gcc-sc8280xp.yaml @@ -1,122 +1,122 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/qcom,gcc-sc8280xp.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Global Clock & Reset Controller on SC8280xp - -maintainers: - - Bjorn Andersson - -description: | - Qualcomm global clock control module provides the clocks, resets and - power domains on SC8280xp. - - See also:: include/dt-bindings/clock/qcom,gcc-sc8280xp.h - -properties: - compatible: - const: qcom,gcc-sc8280xp - - clocks: - items: - - description: XO reference clock - - description: Sleep clock - - description: UFS memory first RX symbol clock - - description: UFS memory second RX symbol clock - - description: UFS memory first TX symbol clock - - description: UFS card first RX symbol clock - - description: UFS card second RX symbol clock - - description: UFS card first TX symbol clock - - description: Primary USB SuperSpeed pipe clock - - description: USB4 PHY pipegmux clock source - - description: USB4 PHY DP gmux clock source - - description: USB4 PHY sys pipegmux clock source - - description: USB4 PHY PCIe pipe clock - - description: USB4 PHY router max pipe clock - - description: Primary USB4 RX0 clock - - description: Primary USB4 RX1 clock - - description: Secondary USB SuperSpeed pipe clock - - description: Second USB4 PHY pipegmux clock source - - description: Second USB4 PHY DP gmux clock source - - description: Second USB4 PHY sys pipegmux clock source - - description: Second USB4 PHY PCIe pipe clock - - description: Second USB4 PHY router max pipe clock - - description: Secondary USB4 RX0 clock - - description: Secondary USB4 RX1 clock - - description: Multiport USB first SuperSpeed pipe clock - - description: Multiport USB second SuperSpeed pipe clock - - description: PCIe 2a pipe clock - - description: PCIe 2b pipe clock - - description: PCIe 3a pipe clock - - description: PCIe 3b pipe clock - - description: PCIe 4 pipe clock - - description: First EMAC controller reference clock - - description: Second EMAC controller reference clock - - power-domains: - items: - - description: CX domain - - protected-clocks: - maxItems: 389 - -required: - - compatible - - clocks - - '#power-domain-cells' - -allOf: - - $ref: qcom,gcc.yaml# - -unevaluatedProperties: false - -examples: - - | - #include - #include - - clock-controller@100000 { - compatible = "qcom,gcc-sc8280xp"; - reg = <0x00100000 0x1f0000>; - clocks = <&rpmhcc RPMH_CXO_CLK>, - <&sleep_clk>, - <&ufs_phy_rx_symbol_0_clk>, - <&ufs_phy_rx_symbol_1_clk>, - <&ufs_phy_tx_symbol_0_clk>, - <&ufs_card_rx_symbol_0_clk>, - <&ufs_card_rx_symbol_1_clk>, - <&ufs_card_tx_symbol_0_clk>, - <&usb_0_ssphy>, - <&gcc_usb4_phy_pipegmux_clk_src>, - <&gcc_usb4_phy_dp_gmux_clk_src>, - <&gcc_usb4_phy_sys_pipegmux_clk_src>, - <&usb4_phy_gcc_usb4_pcie_pipe_clk>, - <&usb4_phy_gcc_usb4rtr_max_pipe_clk>, - <&qusb4phy_gcc_usb4_rx0_clk>, - <&qusb4phy_gcc_usb4_rx1_clk>, - <&usb_1_ssphy>, - <&gcc_usb4_1_phy_pipegmux_clk_src>, - <&gcc_usb4_1_phy_dp_gmux_clk_src>, - <&gcc_usb4_1_phy_sys_pipegmux_clk_src>, - <&usb4_1_phy_gcc_usb4_pcie_pipe_clk>, - <&usb4_1_phy_gcc_usb4rtr_max_pipe_clk>, - <&qusb4phy_1_gcc_usb4_rx0_clk>, - <&qusb4phy_1_gcc_usb4_rx1_clk>, - <&usb_2_ssphy>, - <&usb_3_ssphy>, - <&pcie2a_lane>, - <&pcie2b_lane>, - <&pcie3a_lane>, - <&pcie3b_lane>, - <&pcie4_lane>, - <&rxc0_ref_clk>, - <&rxc1_ref_clk>; - power-domains = <&rpmhpd SC8280XP_CX>; - - #clock-cells = <1>; - #reset-cells = <1>; - #power-domain-cells = <1>; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,gcc-sc8280xp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Global Clock & Reset Controller on SC8280xp + +maintainers: + - Bjorn Andersson + +description: | + Qualcomm global clock control module provides the clocks, resets and + power domains on SC8280xp. + + See also:: include/dt-bindings/clock/qcom,gcc-sc8280xp.h + +properties: + compatible: + const: qcom,gcc-sc8280xp + + clocks: + items: + - description: XO reference clock + - description: Sleep clock + - description: UFS memory first RX symbol clock + - description: UFS memory second RX symbol clock + - description: UFS memory first TX symbol clock + - description: UFS card first RX symbol clock + - description: UFS card second RX symbol clock + - description: UFS card first TX symbol clock + - description: Primary USB SuperSpeed pipe clock + - description: USB4 PHY pipegmux clock source + - description: USB4 PHY DP gmux clock source + - description: USB4 PHY sys pipegmux clock source + - description: USB4 PHY PCIe pipe clock + - description: USB4 PHY router max pipe clock + - description: Primary USB4 RX0 clock + - description: Primary USB4 RX1 clock + - description: Secondary USB SuperSpeed pipe clock + - description: Second USB4 PHY pipegmux clock source + - description: Second USB4 PHY DP gmux clock source + - description: Second USB4 PHY sys pipegmux clock source + - description: Second USB4 PHY PCIe pipe clock + - description: Second USB4 PHY router max pipe clock + - description: Secondary USB4 RX0 clock + - description: Secondary USB4 RX1 clock + - description: Multiport USB first SuperSpeed pipe clock + - description: Multiport USB second SuperSpeed pipe clock + - description: PCIe 2a pipe clock + - description: PCIe 2b pipe clock + - description: PCIe 3a pipe clock + - description: PCIe 3b pipe clock + - description: PCIe 4 pipe clock + - description: First EMAC controller reference clock + - description: Second EMAC controller reference clock + + power-domains: + items: + - description: CX domain + + protected-clocks: + maxItems: 389 + +required: + - compatible + - clocks + - '#power-domain-cells' + +allOf: + - $ref: qcom,gcc.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + + clock-controller@100000 { + compatible = "qcom,gcc-sc8280xp"; + reg = <0x00100000 0x1f0000>; + clocks = <&rpmhcc RPMH_CXO_CLK>, + <&sleep_clk>, + <&ufs_phy_rx_symbol_0_clk>, + <&ufs_phy_rx_symbol_1_clk>, + <&ufs_phy_tx_symbol_0_clk>, + <&ufs_card_rx_symbol_0_clk>, + <&ufs_card_rx_symbol_1_clk>, + <&ufs_card_tx_symbol_0_clk>, + <&usb_0_ssphy>, + <&gcc_usb4_phy_pipegmux_clk_src>, + <&gcc_usb4_phy_dp_gmux_clk_src>, + <&gcc_usb4_phy_sys_pipegmux_clk_src>, + <&usb4_phy_gcc_usb4_pcie_pipe_clk>, + <&usb4_phy_gcc_usb4rtr_max_pipe_clk>, + <&qusb4phy_gcc_usb4_rx0_clk>, + <&qusb4phy_gcc_usb4_rx1_clk>, + <&usb_1_ssphy>, + <&gcc_usb4_1_phy_pipegmux_clk_src>, + <&gcc_usb4_1_phy_dp_gmux_clk_src>, + <&gcc_usb4_1_phy_sys_pipegmux_clk_src>, + <&usb4_1_phy_gcc_usb4_pcie_pipe_clk>, + <&usb4_1_phy_gcc_usb4rtr_max_pipe_clk>, + <&qusb4phy_1_gcc_usb4_rx0_clk>, + <&qusb4phy_1_gcc_usb4_rx1_clk>, + <&usb_2_ssphy>, + <&usb_3_ssphy>, + <&pcie2a_lane>, + <&pcie2b_lane>, + <&pcie3a_lane>, + <&pcie3b_lane>, + <&pcie4_lane>, + <&rxc0_ref_clk>, + <&rxc1_ref_clk>; + power-domains = <&rpmhpd SC8280XP_CX>; + + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml index 050aaf84c..02fcffe93 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml @@ -1,160 +1,160 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/qcom,rpmcc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm RPM Clock Controller - -maintainers: - - Bjorn Andersson - - Krzysztof Kozlowski - -description: | - The clock enumerators are defined in and - come in pairs:: FOO_CLK followed by FOO_A_CLK. The latter clock is - an "active" clock, which means that the consumer only care that the clock is - available when the apps CPU subsystem is active, i.e. not suspended or in - deep idle. If it is important that the clock keeps running during system - suspend, you need to specify the non-active clock, the one not containing - *_A_* in the enumerator name. - -properties: - compatible: - items: - - enum: - - qcom,rpmcc-apq8060 - - qcom,rpmcc-apq8064 - - qcom,rpmcc-ipq806x - - qcom,rpmcc-mdm9607 - - qcom,rpmcc-msm8226 - - qcom,rpmcc-msm8660 - - qcom,rpmcc-msm8909 - - qcom,rpmcc-msm8916 - - qcom,rpmcc-msm8917 - - qcom,rpmcc-msm8936 - - qcom,rpmcc-msm8953 - - qcom,rpmcc-msm8974 - - qcom,rpmcc-msm8976 - - qcom,rpmcc-msm8992 - - qcom,rpmcc-msm8994 - - qcom,rpmcc-msm8996 - - qcom,rpmcc-msm8998 - - qcom,rpmcc-qcm2290 - - qcom,rpmcc-qcs404 - - qcom,rpmcc-sdm660 - - qcom,rpmcc-sm6115 - - qcom,rpmcc-sm6125 - - qcom,rpmcc-sm6375 - - const: qcom,rpmcc - - '#clock-cells': - const: 1 - - clocks: - minItems: 1 - maxItems: 2 - - clock-names: - minItems: 1 - maxItems: 2 - -required: - - compatible - - '#clock-cells' - -allOf: - - if: - properties: - compatible: - contains: - enum: - - qcom,rpmcc-apq8060 - - qcom,rpmcc-ipq806x - - qcom,rpmcc-msm8660 - - then: - properties: - clocks: - items: - - description: pxo clock - - clock-names: - items: - - const: pxo - - - if: - properties: - compatible: - contains: - const: qcom,rpmcc-apq8064 - then: - properties: - clocks: - items: - - description: pxo clock - - description: cxo clock - - clock-names: - items: - - const: pxo - - const: cxo - - - if: - properties: - compatible: - contains: - enum: - - qcom,rpmcc-mdm9607 - - qcom,rpmcc-msm8226 - - qcom,rpmcc-msm8916 - - qcom,rpmcc-msm8917 - - qcom,rpmcc-msm8936 - - qcom,rpmcc-msm8953 - - qcom,rpmcc-msm8974 - - qcom,rpmcc-msm8976 - - qcom,rpmcc-msm8992 - - qcom,rpmcc-msm8994 - - qcom,rpmcc-msm8996 - - qcom,rpmcc-msm8998 - - qcom,rpmcc-qcm2290 - - qcom,rpmcc-qcs404 - - qcom,rpmcc-sdm660 - - qcom,rpmcc-sm6115 - - qcom,rpmcc-sm6125 - - then: - properties: - clocks: - items: - - description: xo clock - - clock-names: - items: - - const: xo - -additionalProperties: false - -examples: - - | - rpm { - rpm-requests { - compatible = "qcom,rpm-msm8916", "qcom,smd-rpm"; - qcom,smd-channels = "rpm_requests"; - - clock-controller { - compatible = "qcom,rpmcc-msm8916", "qcom,rpmcc"; - #clock-cells = <1>; - }; - }; - }; - - - | - rpm { - clock-controller { - compatible = "qcom,rpmcc-ipq806x", "qcom,rpmcc"; - #clock-cells = <1>; - clocks = <&pxo_board>; - clock-names = "pxo"; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,rpmcc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm RPM Clock Controller + +maintainers: + - Bjorn Andersson + - Krzysztof Kozlowski + +description: | + The clock enumerators are defined in and + come in pairs:: FOO_CLK followed by FOO_A_CLK. The latter clock is + an "active" clock, which means that the consumer only care that the clock is + available when the apps CPU subsystem is active, i.e. not suspended or in + deep idle. If it is important that the clock keeps running during system + suspend, you need to specify the non-active clock, the one not containing + *_A_* in the enumerator name. + +properties: + compatible: + items: + - enum: + - qcom,rpmcc-apq8060 + - qcom,rpmcc-apq8064 + - qcom,rpmcc-ipq806x + - qcom,rpmcc-mdm9607 + - qcom,rpmcc-msm8226 + - qcom,rpmcc-msm8660 + - qcom,rpmcc-msm8909 + - qcom,rpmcc-msm8916 + - qcom,rpmcc-msm8917 + - qcom,rpmcc-msm8936 + - qcom,rpmcc-msm8953 + - qcom,rpmcc-msm8974 + - qcom,rpmcc-msm8976 + - qcom,rpmcc-msm8992 + - qcom,rpmcc-msm8994 + - qcom,rpmcc-msm8996 + - qcom,rpmcc-msm8998 + - qcom,rpmcc-qcm2290 + - qcom,rpmcc-qcs404 + - qcom,rpmcc-sdm660 + - qcom,rpmcc-sm6115 + - qcom,rpmcc-sm6125 + - qcom,rpmcc-sm6375 + - const: qcom,rpmcc + + '#clock-cells': + const: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + maxItems: 2 + +required: + - compatible + - '#clock-cells' + +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,rpmcc-apq8060 + - qcom,rpmcc-ipq806x + - qcom,rpmcc-msm8660 + + then: + properties: + clocks: + items: + - description: pxo clock + + clock-names: + items: + - const: pxo + + - if: + properties: + compatible: + contains: + const: qcom,rpmcc-apq8064 + then: + properties: + clocks: + items: + - description: pxo clock + - description: cxo clock + + clock-names: + items: + - const: pxo + - const: cxo + + - if: + properties: + compatible: + contains: + enum: + - qcom,rpmcc-mdm9607 + - qcom,rpmcc-msm8226 + - qcom,rpmcc-msm8916 + - qcom,rpmcc-msm8917 + - qcom,rpmcc-msm8936 + - qcom,rpmcc-msm8953 + - qcom,rpmcc-msm8974 + - qcom,rpmcc-msm8976 + - qcom,rpmcc-msm8992 + - qcom,rpmcc-msm8994 + - qcom,rpmcc-msm8996 + - qcom,rpmcc-msm8998 + - qcom,rpmcc-qcm2290 + - qcom,rpmcc-qcs404 + - qcom,rpmcc-sdm660 + - qcom,rpmcc-sm6115 + - qcom,rpmcc-sm6125 + + then: + properties: + clocks: + items: + - description: xo clock + + clock-names: + items: + - const: xo + +additionalProperties: false + +examples: + - | + rpm { + rpm-requests { + compatible = "qcom,rpm-msm8916", "qcom,smd-rpm"; + qcom,smd-channels = "rpm_requests"; + + clock-controller { + compatible = "qcom,rpmcc-msm8916", "qcom,rpmcc"; + #clock-cells = <1>; + }; + }; + }; + + - | + rpm { + clock-controller { + compatible = "qcom,rpmcc-ipq806x", "qcom,rpmcc"; + #clock-cells = <1>; + clocks = <&pxo_board>; + clock-names = "pxo"; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/renesas,cpg-mssr.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/renesas,cpg-mssr.yaml index 285704567..77ce3615c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/renesas,cpg-mssr.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/renesas,cpg-mssr.yaml @@ -1,126 +1,126 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/renesas,cpg-mssr.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas Clock Pulse Generator / Module Standby and Software Reset - -maintainers: - - Geert Uytterhoeven - -description: | - On Renesas ARM SoCs (SH/R-Mobile, R-Car, RZ), the CPG (Clock Pulse Generator) - and MSSR (Module Standby and Software Reset) blocks are intimately connected, - and share the same register block. - - They provide the following functionalities: - - The CPG block generates various core clocks, - - The MSSR block provides two functions: - 1. Module Standby, providing a Clock Domain to control the clock supply - to individual SoC devices, - 2. Reset Control, to perform a software reset of individual SoC devices. - -properties: - compatible: - enum: - - renesas,r7s9210-cpg-mssr # RZ/A2 - - renesas,r8a7742-cpg-mssr # RZ/G1H - - renesas,r8a7743-cpg-mssr # RZ/G1M - - renesas,r8a7744-cpg-mssr # RZ/G1N - - renesas,r8a7745-cpg-mssr # RZ/G1E - - renesas,r8a77470-cpg-mssr # RZ/G1C - - renesas,r8a774a1-cpg-mssr # RZ/G2M - - renesas,r8a774a3-cpg-mssr # RZ/G2M v3.0 - - renesas,r8a774b1-cpg-mssr # RZ/G2N - - renesas,r8a774c0-cpg-mssr # RZ/G2E - - renesas,r8a774e1-cpg-mssr # RZ/G2H - - renesas,r8a7790-cpg-mssr # R-Car H2 - - renesas,r8a7791-cpg-mssr # R-Car M2-W - - renesas,r8a7792-cpg-mssr # R-Car V2H - - renesas,r8a7793-cpg-mssr # R-Car M2-N - - renesas,r8a7794-cpg-mssr # R-Car E2 - - renesas,r8a7795-cpg-mssr # R-Car H3 - - renesas,r8a7796-cpg-mssr # R-Car M3-W - - renesas,r8a77961-cpg-mssr # R-Car M3-W+ - - renesas,r8a77965-cpg-mssr # R-Car M3-N - - renesas,r8a77970-cpg-mssr # R-Car V3M - - renesas,r8a77980-cpg-mssr # R-Car V3H - - renesas,r8a77990-cpg-mssr # R-Car E3 - - renesas,r8a77995-cpg-mssr # R-Car D3 - - renesas,r8a779a0-cpg-mssr # R-Car V3U - - renesas,r8a779f0-cpg-mssr # R-Car S4-8 - - renesas,r8a779g0-cpg-mssr # R-Car V4H - - renesas,r8a779h0-cpg-mssr # R-Car V4M - - reg: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 2 - - clock-names: - minItems: 1 - maxItems: 2 - items: - enum: - - extal # All - - extalr # Most R-Car Gen3 and RZ/G2 - - usb_extal # Most R-Car Gen2 and RZ/G1 - - '#clock-cells': - description: | - - For CPG core clocks, the two clock specifier cells must be "CPG_CORE" - and a core clock reference, as defined in - - - For module clocks, the two clock specifier cells must be "CPG_MOD" and - a module number, as defined in the datasheet. - const: 2 - - '#power-domain-cells': - description: - SoC devices that are part of the CPG/MSSR Clock Domain and can be - power-managed through Module Standby should refer to the CPG device node - in their "power-domains" property, as documented by the generic PM Domain - bindings in Documentation/devicetree/bindings/power/power-domain.yaml. - const: 0 - - '#reset-cells': - description: - The single reset specifier cell must be the module number, as defined in - the datasheet. - const: 1 - -if: - not: - properties: - compatible: - items: - enum: - - renesas,r7s9210-cpg-mssr -then: - required: - - '#reset-cells' - -required: - - compatible - - reg - - clocks - - clock-names - - '#clock-cells' - - '#power-domain-cells' - -additionalProperties: false - -examples: - - | - cpg: clock-controller@e6150000 { - compatible = "renesas,r8a7795-cpg-mssr"; - reg = <0xe6150000 0x1000>; - clocks = <&extal_clk>, <&extalr_clk>; - clock-names = "extal", "extalr"; - #clock-cells = <2>; - #power-domain-cells = <0>; - #reset-cells = <1>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/renesas,cpg-mssr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas Clock Pulse Generator / Module Standby and Software Reset + +maintainers: + - Geert Uytterhoeven + +description: | + On Renesas ARM SoCs (SH/R-Mobile, R-Car, RZ), the CPG (Clock Pulse Generator) + and MSSR (Module Standby and Software Reset) blocks are intimately connected, + and share the same register block. + + They provide the following functionalities: + - The CPG block generates various core clocks, + - The MSSR block provides two functions: + 1. Module Standby, providing a Clock Domain to control the clock supply + to individual SoC devices, + 2. Reset Control, to perform a software reset of individual SoC devices. + +properties: + compatible: + enum: + - renesas,r7s9210-cpg-mssr # RZ/A2 + - renesas,r8a7742-cpg-mssr # RZ/G1H + - renesas,r8a7743-cpg-mssr # RZ/G1M + - renesas,r8a7744-cpg-mssr # RZ/G1N + - renesas,r8a7745-cpg-mssr # RZ/G1E + - renesas,r8a77470-cpg-mssr # RZ/G1C + - renesas,r8a774a1-cpg-mssr # RZ/G2M + - renesas,r8a774a3-cpg-mssr # RZ/G2M v3.0 + - renesas,r8a774b1-cpg-mssr # RZ/G2N + - renesas,r8a774c0-cpg-mssr # RZ/G2E + - renesas,r8a774e1-cpg-mssr # RZ/G2H + - renesas,r8a7790-cpg-mssr # R-Car H2 + - renesas,r8a7791-cpg-mssr # R-Car M2-W + - renesas,r8a7792-cpg-mssr # R-Car V2H + - renesas,r8a7793-cpg-mssr # R-Car M2-N + - renesas,r8a7794-cpg-mssr # R-Car E2 + - renesas,r8a7795-cpg-mssr # R-Car H3 + - renesas,r8a7796-cpg-mssr # R-Car M3-W + - renesas,r8a77961-cpg-mssr # R-Car M3-W+ + - renesas,r8a77965-cpg-mssr # R-Car M3-N + - renesas,r8a77970-cpg-mssr # R-Car V3M + - renesas,r8a77980-cpg-mssr # R-Car V3H + - renesas,r8a77990-cpg-mssr # R-Car E3 + - renesas,r8a77995-cpg-mssr # R-Car D3 + - renesas,r8a779a0-cpg-mssr # R-Car V3U + - renesas,r8a779f0-cpg-mssr # R-Car S4-8 + - renesas,r8a779g0-cpg-mssr # R-Car V4H + - renesas,r8a779h0-cpg-mssr # R-Car V4M + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + maxItems: 2 + items: + enum: + - extal # All + - extalr # Most R-Car Gen3 and RZ/G2 + - usb_extal # Most R-Car Gen2 and RZ/G1 + + '#clock-cells': + description: | + - For CPG core clocks, the two clock specifier cells must be "CPG_CORE" + and a core clock reference, as defined in + + - For module clocks, the two clock specifier cells must be "CPG_MOD" and + a module number, as defined in the datasheet. + const: 2 + + '#power-domain-cells': + description: + SoC devices that are part of the CPG/MSSR Clock Domain and can be + power-managed through Module Standby should refer to the CPG device node + in their "power-domains" property, as documented by the generic PM Domain + bindings in Documentation/devicetree/bindings/power/power-domain.yaml. + const: 0 + + '#reset-cells': + description: + The single reset specifier cell must be the module number, as defined in + the datasheet. + const: 1 + +if: + not: + properties: + compatible: + items: + enum: + - renesas,r7s9210-cpg-mssr +then: + required: + - '#reset-cells' + +required: + - compatible + - reg + - clocks + - clock-names + - '#clock-cells' + - '#power-domain-cells' + +additionalProperties: false + +examples: + - | + cpg: clock-controller@e6150000 { + compatible = "renesas,r8a7795-cpg-mssr"; + reg = <0xe6150000 0x1000>; + clocks = <&extal_clk>, <&extalr_clk>; + clock-names = "extal", "extalr"; + #clock-cells = <2>; + #power-domain-cells = <0>; + #reset-cells = <1>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/renesas,emev2-smu.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/renesas,emev2-smu.yaml index 42e8108f5..4d9a64800 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/renesas,emev2-smu.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/renesas,emev2-smu.yaml @@ -1,140 +1,140 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/renesas,emev2-smu.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas EMMA Mobile EV2 System Management Unit - -maintainers: - - Geert Uytterhoeven - - Magnus Damm - -description: | - The System Management Unit is described in user's manual R19UH0037EJ1000_SMU. - This is not a clock provider, but clocks under SMU depend on it. - -properties: - compatible: - const: renesas,emev2-smu - - reg: - maxItems: 1 - - '#address-cells': - const: 2 - - '#size-cells': - const: 0 - -required: - - compatible - - reg - - '#address-cells' - - '#size-cells' - -patternProperties: - ".*sclkdiv@.*": - type: object - - description: | - Function block with an input mux and a divider, which corresponds to - "Serial clock generator" in fig. "Clock System Overview" of the manual, - and "xxx frequency division setting register" (XXXCLKDIV) registers. - This makes internal (neither input nor output) clock that is provided - to input of xxxGCLK block. - - properties: - compatible: - const: renesas,emev2-smu-clkdiv - - reg: - maxItems: 1 - description: - Byte offset from SMU base and Bit position in the register. - - clocks: - minItems: 1 - maxItems: 4 - - '#clock-cells': - const: 0 - - required: - - compatible - - reg - - clocks - - '#clock-cells' - - additionalProperties: false - - ".*sclk@.*": - type: object - - description: | - Clock gating node shown as "Clock stop processing block" in the - fig. "Clock System Overview" of the manual. - Registers are "xxx clock gate control register" (XXXGCLKCTRL). - - properties: - compatible: - const: renesas,emev2-smu-gclk - - reg: - maxItems: 1 - description: - Byte offset from SMU base and Bit position in the register. - - clocks: - maxItems: 1 - - '#clock-cells': - const: 0 - - required: - - compatible - - reg - - clocks - - '#clock-cells' - - additionalProperties: false - -additionalProperties: true - -examples: - - | - // Example of clock-tree description: - // - // This describes a clock path in the clock tree - // c32ki -> pll3_fo -> usia_u0_sclkdiv -> usia_u0_sclk - clocks@e0110000 { - compatible = "renesas,emev2-smu"; - reg = <0xe0110000 0x10000>; - #address-cells = <2>; - #size-cells = <0>; - - c32ki: c32ki { - compatible = "fixed-clock"; - clock-frequency = <32768>; - #clock-cells = <0>; - }; - pll3_fo: pll3_fo { - compatible = "fixed-factor-clock"; - clocks = <&c32ki>; - clock-div = <1>; - clock-mult = <7000>; - #clock-cells = <0>; - }; - usia_u0_sclkdiv: usia_u0_sclkdiv@610,0 { - compatible = "renesas,emev2-smu-clkdiv"; - reg = <0x610 0>; - clocks = <&pll3_fo>; - #clock-cells = <0>; - }; - usia_u0_sclk: usia_u0_sclk@4a0,1 { - compatible = "renesas,emev2-smu-gclk"; - reg = <0x4a0 1>; - clocks = <&usia_u0_sclkdiv>; - #clock-cells = <0>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/renesas,emev2-smu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas EMMA Mobile EV2 System Management Unit + +maintainers: + - Geert Uytterhoeven + - Magnus Damm + +description: | + The System Management Unit is described in user's manual R19UH0037EJ1000_SMU. + This is not a clock provider, but clocks under SMU depend on it. + +properties: + compatible: + const: renesas,emev2-smu + + reg: + maxItems: 1 + + '#address-cells': + const: 2 + + '#size-cells': + const: 0 + +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' + +patternProperties: + ".*sclkdiv@.*": + type: object + + description: | + Function block with an input mux and a divider, which corresponds to + "Serial clock generator" in fig. "Clock System Overview" of the manual, + and "xxx frequency division setting register" (XXXCLKDIV) registers. + This makes internal (neither input nor output) clock that is provided + to input of xxxGCLK block. + + properties: + compatible: + const: renesas,emev2-smu-clkdiv + + reg: + maxItems: 1 + description: + Byte offset from SMU base and Bit position in the register. + + clocks: + minItems: 1 + maxItems: 4 + + '#clock-cells': + const: 0 + + required: + - compatible + - reg + - clocks + - '#clock-cells' + + additionalProperties: false + + ".*sclk@.*": + type: object + + description: | + Clock gating node shown as "Clock stop processing block" in the + fig. "Clock System Overview" of the manual. + Registers are "xxx clock gate control register" (XXXGCLKCTRL). + + properties: + compatible: + const: renesas,emev2-smu-gclk + + reg: + maxItems: 1 + description: + Byte offset from SMU base and Bit position in the register. + + clocks: + maxItems: 1 + + '#clock-cells': + const: 0 + + required: + - compatible + - reg + - clocks + - '#clock-cells' + + additionalProperties: false + +additionalProperties: true + +examples: + - | + // Example of clock-tree description: + // + // This describes a clock path in the clock tree + // c32ki -> pll3_fo -> usia_u0_sclkdiv -> usia_u0_sclk + clocks@e0110000 { + compatible = "renesas,emev2-smu"; + reg = <0xe0110000 0x10000>; + #address-cells = <2>; + #size-cells = <0>; + + c32ki: c32ki { + compatible = "fixed-clock"; + clock-frequency = <32768>; + #clock-cells = <0>; + }; + pll3_fo: pll3_fo { + compatible = "fixed-factor-clock"; + clocks = <&c32ki>; + clock-div = <1>; + clock-mult = <7000>; + #clock-cells = <0>; + }; + usia_u0_sclkdiv: usia_u0_sclkdiv@610,0 { + compatible = "renesas,emev2-smu-clkdiv"; + reg = <0x610 0>; + clocks = <&pll3_fo>; + #clock-cells = <0>; + }; + usia_u0_sclk: usia_u0_sclk@4a0,1 { + compatible = "renesas,emev2-smu-gclk"; + reg = <0x4a0 1>; + clocks = <&usia_u0_sclkdiv>; + #clock-cells = <0>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/samsung,exynosautov920-clock.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/samsung,exynosautov920-clock.yaml index aa608be31..3330b2727 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/samsung,exynosautov920-clock.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/samsung,exynosautov920-clock.yaml @@ -1,162 +1,162 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/samsung,exynosautov920-clock.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung ExynosAuto v920 SoC clock controller - -maintainers: - - Sunyeal Hong - - Chanwoo Choi - - Krzysztof Kozlowski - - Sylwester Nawrocki - -description: | - ExynosAuto v920 clock controller is comprised of several CMU units, generating - clocks for different domains. Those CMU units are modeled as separate device - tree nodes, and might depend on each other. Root clocks in that clock tree are - two external clocks:: OSCCLK/XTCXO (38.4 MHz) and RTCCLK/XrtcXTI (32768 Hz). - The external OSCCLK must be defined as fixed-rate clock in dts. - - CMU_TOP is a top-level CMU, where all base clocks are prepared using PLLs and - dividers; all other clocks of function blocks (other CMUs) are usually - derived from CMU_TOP. - - Each clock is assigned an identifier and client nodes can use this identifier - to specify the clock which they consume. All clocks available for usage - in clock consumer nodes are defined as preprocessor macros in - 'include/dt-bindings/clock/samsung,exynosautov920.h' header. - -properties: - compatible: - enum: - - samsung,exynosautov920-cmu-top - - samsung,exynosautov920-cmu-peric0 - - samsung,exynosautov920-cmu-peric1 - - samsung,exynosautov920-cmu-misc - - samsung,exynosautov920-cmu-hsi0 - - samsung,exynosautov920-cmu-hsi1 - - clocks: - minItems: 1 - maxItems: 4 - - clock-names: - minItems: 1 - maxItems: 4 - - "#clock-cells": - const: 1 - - reg: - maxItems: 1 - -allOf: - - if: - properties: - compatible: - contains: - const: samsung,exynosautov920-cmu-top - - then: - properties: - clocks: - items: - - description: External reference clock (38.4 MHz) - - clock-names: - items: - - const: oscclk - - - if: - properties: - compatible: - contains: - enum: - - samsung,exynosautov920-cmu-peric0 - - samsung,exynosautov920-cmu-peric1 - - then: - properties: - clocks: - items: - - description: External reference clock (38.4 MHz) - - description: CMU_PERICn NOC clock (from CMU_TOP) - - description: CMU_PERICn IP clock (from CMU_TOP) - - clock-names: - items: - - const: oscclk - - const: noc - - const: ip - - - if: - properties: - compatible: - enum: - - samsung,exynosautov920-cmu-misc - - samsung,exynosautov920-cmu-hsi0 - - then: - properties: - clocks: - items: - - description: External reference clock (38.4 MHz) - - description: CMU_MISC/CMU_HSI0 NOC clock (from CMU_TOP) - - clock-names: - items: - - const: oscclk - - const: noc - - - if: - properties: - compatible: - contains: - const: samsung,exynosautov920-cmu-hsi1 - - then: - properties: - clocks: - items: - - description: External reference clock (38.4 MHz) - - description: CMU_HSI1 NOC clock (from CMU_TOP) - - description: CMU_HSI1 USBDRD clock (from CMU_TOP) - - description: CMU_HSI1 MMC_CARD clock (from CMU_TOP) - - clock-names: - items: - - const: oscclk - - const: noc - - const: usbdrd - - const: mmc_card - -required: - - compatible - - "#clock-cells" - - clocks - - clock-names - - reg - -additionalProperties: false - -examples: - # Clock controller node for CMU_PERIC0 - - | - #include - - cmu_peric0: clock-controller@10800000 { - compatible = "samsung,exynosautov920-cmu-peric0"; - reg = <0x10800000 0x8000>; - #clock-cells = <1>; - - clocks = <&xtcxo>, - <&cmu_top DOUT_CLKCMU_PERIC0_NOC>, - <&cmu_top DOUT_CLKCMU_PERIC0_IP>; - clock-names = "oscclk", - "noc", - "ip"; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/samsung,exynosautov920-clock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung ExynosAuto v920 SoC clock controller + +maintainers: + - Sunyeal Hong + - Chanwoo Choi + - Krzysztof Kozlowski + - Sylwester Nawrocki + +description: | + ExynosAuto v920 clock controller is comprised of several CMU units, generating + clocks for different domains. Those CMU units are modeled as separate device + tree nodes, and might depend on each other. Root clocks in that clock tree are + two external clocks:: OSCCLK/XTCXO (38.4 MHz) and RTCCLK/XrtcXTI (32768 Hz). + The external OSCCLK must be defined as fixed-rate clock in dts. + + CMU_TOP is a top-level CMU, where all base clocks are prepared using PLLs and + dividers; all other clocks of function blocks (other CMUs) are usually + derived from CMU_TOP. + + Each clock is assigned an identifier and client nodes can use this identifier + to specify the clock which they consume. All clocks available for usage + in clock consumer nodes are defined as preprocessor macros in + 'include/dt-bindings/clock/samsung,exynosautov920.h' header. + +properties: + compatible: + enum: + - samsung,exynosautov920-cmu-top + - samsung,exynosautov920-cmu-peric0 + - samsung,exynosautov920-cmu-peric1 + - samsung,exynosautov920-cmu-misc + - samsung,exynosautov920-cmu-hsi0 + - samsung,exynosautov920-cmu-hsi1 + + clocks: + minItems: 1 + maxItems: 4 + + clock-names: + minItems: 1 + maxItems: 4 + + "#clock-cells": + const: 1 + + reg: + maxItems: 1 + +allOf: + - if: + properties: + compatible: + contains: + const: samsung,exynosautov920-cmu-top + + then: + properties: + clocks: + items: + - description: External reference clock (38.4 MHz) + + clock-names: + items: + - const: oscclk + + - if: + properties: + compatible: + contains: + enum: + - samsung,exynosautov920-cmu-peric0 + - samsung,exynosautov920-cmu-peric1 + + then: + properties: + clocks: + items: + - description: External reference clock (38.4 MHz) + - description: CMU_PERICn NOC clock (from CMU_TOP) + - description: CMU_PERICn IP clock (from CMU_TOP) + + clock-names: + items: + - const: oscclk + - const: noc + - const: ip + + - if: + properties: + compatible: + enum: + - samsung,exynosautov920-cmu-misc + - samsung,exynosautov920-cmu-hsi0 + + then: + properties: + clocks: + items: + - description: External reference clock (38.4 MHz) + - description: CMU_MISC/CMU_HSI0 NOC clock (from CMU_TOP) + + clock-names: + items: + - const: oscclk + - const: noc + + - if: + properties: + compatible: + contains: + const: samsung,exynosautov920-cmu-hsi1 + + then: + properties: + clocks: + items: + - description: External reference clock (38.4 MHz) + - description: CMU_HSI1 NOC clock (from CMU_TOP) + - description: CMU_HSI1 USBDRD clock (from CMU_TOP) + - description: CMU_HSI1 MMC_CARD clock (from CMU_TOP) + + clock-names: + items: + - const: oscclk + - const: noc + - const: usbdrd + - const: mmc_card + +required: + - compatible + - "#clock-cells" + - clocks + - clock-names + - reg + +additionalProperties: false + +examples: + # Clock controller node for CMU_PERIC0 + - | + #include + + cmu_peric0: clock-controller@10800000 { + compatible = "samsung,exynosautov920-cmu-peric0"; + reg = <0x10800000 0x8000>; + #clock-cells = <1>; + + clocks = <&xtcxo>, + <&cmu_top DOUT_CLKCMU_PERIC0_NOC>, + <&cmu_top DOUT_CLKCMU_PERIC0_IP>; + clock-names = "oscclk", + "noc", + "ip"; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/sprd,sc9860-clk.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/sprd,sc9860-clk.yaml index 3d5703f08..502cd7235 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/sprd,sc9860-clk.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/sprd,sc9860-clk.yaml @@ -1,159 +1,159 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/sprd,sc9860-clk.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Spreadtrum SC9860 clock - -maintainers: - - Orson Zhai - - Baolin Wang - - Chunyan Zhang - -properties: - compatible: - enum: - - sprd,sc9860-agcp-gate - - sprd,sc9860-aonsecure-clk - - sprd,sc9860-aon-gate - - sprd,sc9860-aon-prediv - - sprd,sc9860-apahb-gate - - sprd,sc9860-apapb-gate - - sprd,sc9860-ap-clk - - sprd,sc9860-cam-clk - - sprd,sc9860-cam-gate - - sprd,sc9860-disp-clk - - sprd,sc9860-disp-gate - - sprd,sc9860-gpu-clk - - sprd,sc9860-pll - - sprd,sc9860-pmu-gate - - sprd,sc9860-vsp-clk - - sprd,sc9860-vsp-gate - - reg: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 3 - - '#clock-cells': - const: 1 - - sprd,syscon: - $ref: /schemas/types.yaml#/definitions/phandle - description: - phandle to the syscon which is in the same address area with the - clock, and so we can get regmap for the clocks from the syscon device - -required: - - compatible - - clocks - - '#clock-cells' - -allOf: - - if: - properties: - compatible: - contains: - enum: - - sprd,sc9860-agcp-gate - - sprd,sc9860-aon-gate - - sprd,sc9860-apahb-gate - - sprd,sc9860-apapb-gate - - sprd,sc9860-cam-gate - - sprd,sc9860-disp-gate - - sprd,sc9860-gpu-clk - - sprd,sc9860-pll - - sprd,sc9860-pmu-gate - - sprd,sc9860-vsp-gate - then: - properties: - clocks: - maxItems: 1 - - if: - properties: - compatible: - contains: - enum: - - sprd,sc9860-aonsecure-clk - - sprd,sc9860-cam-clk - - sprd,sc9860-disp-clk - - sprd,sc9860-vsp-clk - then: - properties: - clocks: - minItems: 2 - maxItems: 2 - - if: - properties: - compatible: - contains: - enum: - - sprd,sc9860-aon-prediv - - sprd,sc9860-ap-clk - then: - properties: - clocks: - minItems: 3 - - if: - properties: - compatible: - contains: - enum: - - sprd,sc9860-aonsecure-clk - - sprd,sc9860-aon-prediv - - sprd,sc9860-ap-clk - - sprd,sc9860-cam-clk - - sprd,sc9860-disp-clk - - sprd,sc9860-gpu-clk - - sprd,sc9860-vsp-clk - then: - required: - - reg - properties: - sprd,syscon: false - - if: - properties: - compatible: - contains: - enum: - - sprd,sc9860-agcp-gate - - sprd,sc9860-aon-gate - - sprd,sc9860-apahb-gate - - sprd,sc9860-apapb-gate - - sprd,sc9860-cam-gate - - sprd,sc9860-disp-gate - - sprd,sc9860-pll - - sprd,sc9860-pmu-gate - - sprd,sc9860-vsp-gate - then: - required: - - sprd,syscon - properties: - reg: false - -additionalProperties: false - -examples: - - | - soc { - #address-cells = <2>; - #size-cells = <2>; - - pmu-gate { - compatible = "sprd,sc9860-pmu-gate"; - clocks = <&ext_26m>; - #clock-cells = <1>; - sprd,syscon = <&pmu_regs>; - }; - - clock-controller@20000000 { - compatible = "sprd,sc9860-ap-clk"; - reg = <0 0x20000000 0 0x400>; - clocks = <&ext_26m>, <&pll 0>, <&pmu_gate 0>; - #clock-cells = <1>; - }; - }; -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/sprd,sc9860-clk.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Spreadtrum SC9860 clock + +maintainers: + - Orson Zhai + - Baolin Wang + - Chunyan Zhang + +properties: + compatible: + enum: + - sprd,sc9860-agcp-gate + - sprd,sc9860-aonsecure-clk + - sprd,sc9860-aon-gate + - sprd,sc9860-aon-prediv + - sprd,sc9860-apahb-gate + - sprd,sc9860-apapb-gate + - sprd,sc9860-ap-clk + - sprd,sc9860-cam-clk + - sprd,sc9860-cam-gate + - sprd,sc9860-disp-clk + - sprd,sc9860-disp-gate + - sprd,sc9860-gpu-clk + - sprd,sc9860-pll + - sprd,sc9860-pmu-gate + - sprd,sc9860-vsp-clk + - sprd,sc9860-vsp-gate + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 3 + + '#clock-cells': + const: 1 + + sprd,syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: + phandle to the syscon which is in the same address area with the + clock, and so we can get regmap for the clocks from the syscon device + +required: + - compatible + - clocks + - '#clock-cells' + +allOf: + - if: + properties: + compatible: + contains: + enum: + - sprd,sc9860-agcp-gate + - sprd,sc9860-aon-gate + - sprd,sc9860-apahb-gate + - sprd,sc9860-apapb-gate + - sprd,sc9860-cam-gate + - sprd,sc9860-disp-gate + - sprd,sc9860-gpu-clk + - sprd,sc9860-pll + - sprd,sc9860-pmu-gate + - sprd,sc9860-vsp-gate + then: + properties: + clocks: + maxItems: 1 + - if: + properties: + compatible: + contains: + enum: + - sprd,sc9860-aonsecure-clk + - sprd,sc9860-cam-clk + - sprd,sc9860-disp-clk + - sprd,sc9860-vsp-clk + then: + properties: + clocks: + minItems: 2 + maxItems: 2 + - if: + properties: + compatible: + contains: + enum: + - sprd,sc9860-aon-prediv + - sprd,sc9860-ap-clk + then: + properties: + clocks: + minItems: 3 + - if: + properties: + compatible: + contains: + enum: + - sprd,sc9860-aonsecure-clk + - sprd,sc9860-aon-prediv + - sprd,sc9860-ap-clk + - sprd,sc9860-cam-clk + - sprd,sc9860-disp-clk + - sprd,sc9860-gpu-clk + - sprd,sc9860-vsp-clk + then: + required: + - reg + properties: + sprd,syscon: false + - if: + properties: + compatible: + contains: + enum: + - sprd,sc9860-agcp-gate + - sprd,sc9860-aon-gate + - sprd,sc9860-apahb-gate + - sprd,sc9860-apapb-gate + - sprd,sc9860-cam-gate + - sprd,sc9860-disp-gate + - sprd,sc9860-pll + - sprd,sc9860-pmu-gate + - sprd,sc9860-vsp-gate + then: + required: + - sprd,syscon + properties: + reg: false + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + pmu-gate { + compatible = "sprd,sc9860-pmu-gate"; + clocks = <&ext_26m>; + #clock-cells = <1>; + sprd,syscon = <&pmu_regs>; + }; + + clock-controller@20000000 { + compatible = "sprd,sc9860-ap-clk"; + reg = <0 0x20000000 0 0x400>; + clocks = <&ext_26m>, <&pll 0>, <&pmu_gate 0>; + #clock-cells = <1>; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/st,stm32-rcc.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/st,stm32-rcc.txt index 744c4c8dd..cfa04b614 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/st,stm32-rcc.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/st,stm32-rcc.txt @@ -1,138 +1,138 @@ -STMicroelectronics STM32 Reset and Clock Controller -=================================================== - -The RCC IP is both a reset and a clock controller. - -Please refer to clock-bindings.txt for common clock controller binding usage. -Please also refer to reset.txt for common reset controller binding usage. - -Required properties: -- compatible: Should be: - "st,stm32f42xx-rcc" - "st,stm32f469-rcc" - "st,stm32f746-rcc" - "st,stm32f769-rcc" - -- reg: should be register base and length as documented in the - datasheet -- #reset-cells: 1, see below -- #clock-cells: 2, device nodes should specify the clock in their "clocks" - property, containing a phandle to the clock device node, an index selecting - between gated clocks and other clocks and an index specifying the clock to - use. -- clocks: External oscillator clock phandle - - high speed external clock signal (HSE) - - external I2S clock (I2S_CKIN) - -Example: - - rcc: rcc@40023800 { - #reset-cells = <1>; - #clock-cells = <2> - compatible = "st,stm32f42xx-rcc", "st,stm32-rcc"; - reg = <0x40023800 0x400>; - clocks = <&clk_hse>, <&clk_i2s_ckin>; - }; - -Specifying gated clocks -======================= - -The primary index must be set to 0. - -The secondary index is the bit number within the RCC register bank, starting -from the first RCC clock enable register (RCC_AHB1ENR, address offset 0x30). - -It is calculated as: index = register_offset / 4 * 32 + bit_offset. -Where bit_offset is the bit offset within the register (LSB is 0, MSB is 31). - -To simplify the usage and to share bit definition with the reset and clock -drivers of the RCC IP, macros are available to generate the index in -human-readble format. - -For STM32F4 series, the macro are available here: - - include/dt-bindings/mfd/stm32f4-rcc.h - -Example: - - /* Gated clock, AHB1 bit 0 (GPIOA) */ - ... { - clocks = <&rcc 0 STM32F4_AHB1_CLOCK(GPIOA)> - }; - - /* Gated clock, AHB2 bit 4 (CRYP) */ - ... { - clocks = <&rcc 0 STM32F4_AHB2_CLOCK(CRYP)> - }; - -Specifying other clocks -======================= - -The primary index must be set to 1. - -The secondary index is bound with the following magic numbers: - - 0 SYSTICK - 1 FCLK - 2 CLK_LSI (low-power clock source) - 3 CLK_LSE (generated from a 32.768 kHz low-speed external - crystal or ceramic resonator) - 4 CLK_HSE_RTC (HSE division factor for RTC clock) - 5 CLK_RTC (real-time clock) - 6 PLL_VCO_I2S (vco frequency of I2S pll) - 7 PLL_VCO_SAI (vco frequency of SAI pll) - 8 CLK_LCD (LCD-TFT) - 9 CLK_I2S (I2S clocks) - 10 CLK_SAI1 (audio clocks) - 11 CLK_SAI2 - 12 CLK_I2SQ_PDIV (post divisor of pll i2s q divisor) - 13 CLK_SAIQ_PDIV (post divisor of pll sai q divisor) - - 14 CLK_HSI (Internal ocscillator clock) - 15 CLK_SYSCLK (System Clock) - 16 CLK_HDMI_CEC (HDMI-CEC clock) - 17 CLK_SPDIF (SPDIF-Rx clock) - 18 CLK_USART1 (U(s)arts clocks) - 19 CLK_USART2 - 20 CLK_USART3 - 21 CLK_UART4 - 22 CLK_UART5 - 23 CLK_USART6 - 24 CLK_UART7 - 25 CLK_UART8 - 26 CLK_I2C1 (I2S clocks) - 27 CLK_I2C2 - 28 CLK_I2C3 - 29 CLK_I2C4 - 30 CLK_LPTIMER (LPTimer1 clock) - 31 CLK_PLL_SRC - 32 CLK_DFSDM1 - 33 CLK_ADFSDM1 - 34 CLK_F769_DSI -) - -Example: - - /* Misc clock, FCLK */ - ... { - clocks = <&rcc 1 STM32F4_APB1_CLOCK(TIM2)> - }; - - -Specifying softreset control of devices -======================================= - -Device nodes should specify the reset channel required in their "resets" -property, containing a phandle to the reset device node and an index specifying -which channel to use. -The index is the bit number within the RCC registers bank, starting from RCC -base address. -It is calculated as: index = register_offset / 4 * 32 + bit_offset. -Where bit_offset is the bit offset within the register. -For example, for CRC reset: - crc = AHB1RSTR_offset / 4 * 32 + CRCRST_bit_offset = 0x10 / 4 * 32 + 12 = 140 - -example: - - timer2 { - resets = <&rcc STM32F4_APB1_RESET(TIM2)>; - }; +STMicroelectronics STM32 Reset and Clock Controller +=================================================== + +The RCC IP is both a reset and a clock controller. + +Please refer to clock-bindings.txt for common clock controller binding usage. +Please also refer to reset.txt for common reset controller binding usage. + +Required properties: +- compatible: Should be: + "st,stm32f42xx-rcc" + "st,stm32f469-rcc" + "st,stm32f746-rcc" + "st,stm32f769-rcc" + +- reg: should be register base and length as documented in the + datasheet +- #reset-cells: 1, see below +- #clock-cells: 2, device nodes should specify the clock in their "clocks" + property, containing a phandle to the clock device node, an index selecting + between gated clocks and other clocks and an index specifying the clock to + use. +- clocks: External oscillator clock phandle + - high speed external clock signal (HSE) + - external I2S clock (I2S_CKIN) + +Example: + + rcc: rcc@40023800 { + #reset-cells = <1>; + #clock-cells = <2> + compatible = "st,stm32f42xx-rcc", "st,stm32-rcc"; + reg = <0x40023800 0x400>; + clocks = <&clk_hse>, <&clk_i2s_ckin>; + }; + +Specifying gated clocks +======================= + +The primary index must be set to 0. + +The secondary index is the bit number within the RCC register bank, starting +from the first RCC clock enable register (RCC_AHB1ENR, address offset 0x30). + +It is calculated as: index = register_offset / 4 * 32 + bit_offset. +Where bit_offset is the bit offset within the register (LSB is 0, MSB is 31). + +To simplify the usage and to share bit definition with the reset and clock +drivers of the RCC IP, macros are available to generate the index in +human-readble format. + +For STM32F4 series, the macro are available here: + - include/dt-bindings/mfd/stm32f4-rcc.h + +Example: + + /* Gated clock, AHB1 bit 0 (GPIOA) */ + ... { + clocks = <&rcc 0 STM32F4_AHB1_CLOCK(GPIOA)> + }; + + /* Gated clock, AHB2 bit 4 (CRYP) */ + ... { + clocks = <&rcc 0 STM32F4_AHB2_CLOCK(CRYP)> + }; + +Specifying other clocks +======================= + +The primary index must be set to 1. + +The secondary index is bound with the following magic numbers: + + 0 SYSTICK + 1 FCLK + 2 CLK_LSI (low-power clock source) + 3 CLK_LSE (generated from a 32.768 kHz low-speed external + crystal or ceramic resonator) + 4 CLK_HSE_RTC (HSE division factor for RTC clock) + 5 CLK_RTC (real-time clock) + 6 PLL_VCO_I2S (vco frequency of I2S pll) + 7 PLL_VCO_SAI (vco frequency of SAI pll) + 8 CLK_LCD (LCD-TFT) + 9 CLK_I2S (I2S clocks) + 10 CLK_SAI1 (audio clocks) + 11 CLK_SAI2 + 12 CLK_I2SQ_PDIV (post divisor of pll i2s q divisor) + 13 CLK_SAIQ_PDIV (post divisor of pll sai q divisor) + + 14 CLK_HSI (Internal ocscillator clock) + 15 CLK_SYSCLK (System Clock) + 16 CLK_HDMI_CEC (HDMI-CEC clock) + 17 CLK_SPDIF (SPDIF-Rx clock) + 18 CLK_USART1 (U(s)arts clocks) + 19 CLK_USART2 + 20 CLK_USART3 + 21 CLK_UART4 + 22 CLK_UART5 + 23 CLK_USART6 + 24 CLK_UART7 + 25 CLK_UART8 + 26 CLK_I2C1 (I2S clocks) + 27 CLK_I2C2 + 28 CLK_I2C3 + 29 CLK_I2C4 + 30 CLK_LPTIMER (LPTimer1 clock) + 31 CLK_PLL_SRC + 32 CLK_DFSDM1 + 33 CLK_ADFSDM1 + 34 CLK_F769_DSI +) + +Example: + + /* Misc clock, FCLK */ + ... { + clocks = <&rcc 1 STM32F4_APB1_CLOCK(TIM2)> + }; + + +Specifying softreset control of devices +======================================= + +Device nodes should specify the reset channel required in their "resets" +property, containing a phandle to the reset device node and an index specifying +which channel to use. +The index is the bit number within the RCC registers bank, starting from RCC +base address. +It is calculated as: index = register_offset / 4 * 32 + bit_offset. +Where bit_offset is the bit offset within the register. +For example, for CRC reset: + crc = AHB1RSTR_offset / 4 * 32 + CRCRST_bit_offset = 0x10 / 4 * 32 + 12 = 140 + +example: + + timer2 { + resets = <&rcc STM32F4_APB1_RESET(TIM2)>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/starfive,jh7110-syscrg.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/starfive,jh7110-syscrg.yaml index ac64e10e2..5ba0a885a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/starfive,jh7110-syscrg.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/starfive,jh7110-syscrg.yaml @@ -1,118 +1,118 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/starfive,jh7110-syscrg.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: StarFive JH7110 System Clock and Reset Generator - -maintainers: - - Emil Renner Berthing - -properties: - compatible: - const: starfive,jh7110-syscrg - - reg: - maxItems: 1 - - clocks: - oneOf: - - items: - - description: Main Oscillator (24 MHz) - - description: GMAC1 RMII reference or GMAC1 RGMII RX - - description: External I2S TX bit clock - - description: External I2S TX left/right channel clock - - description: External I2S RX bit clock - - description: External I2S RX left/right channel clock - - description: External TDM clock - - description: External audio master clock - - description: PLL0 - - description: PLL1 - - description: PLL2 - - - items: - - description: Main Oscillator (24 MHz) - - description: GMAC1 RMII reference - - description: GMAC1 RGMII RX - - description: External I2S TX bit clock - - description: External I2S TX left/right channel clock - - description: External I2S RX bit clock - - description: External I2S RX left/right channel clock - - description: External TDM clock - - description: External audio master clock - - description: PLL0 - - description: PLL1 - - description: PLL2 - - clock-names: - oneOf: - - items: - - const: osc - - enum: - - gmac1_rmii_refin - - gmac1_rgmii_rxin - - const: i2stx_bclk_ext - - const: i2stx_lrck_ext - - const: i2srx_bclk_ext - - const: i2srx_lrck_ext - - const: tdm_ext - - const: mclk_ext - - const: pll0_out - - const: pll1_out - - const: pll2_out - - - items: - - const: osc - - const: gmac1_rmii_refin - - const: gmac1_rgmii_rxin - - const: i2stx_bclk_ext - - const: i2stx_lrck_ext - - const: i2srx_bclk_ext - - const: i2srx_lrck_ext - - const: tdm_ext - - const: mclk_ext - - const: pll0_out - - const: pll1_out - - const: pll2_out - - '#clock-cells': - const: 1 - description: - See for valid indices. - - '#reset-cells': - const: 1 - description: - See for valid indices. - -required: - - compatible - - reg - - clocks - - clock-names - - '#clock-cells' - - '#reset-cells' - -additionalProperties: false - -examples: - - | - clock-controller@13020000 { - compatible = "starfive,jh7110-syscrg"; - reg = <0x13020000 0x10000>; - clocks = <&osc>, <&gmac1_rmii_refin>, - <&gmac1_rgmii_rxin>, - <&i2stx_bclk_ext>, <&i2stx_lrck_ext>, - <&i2srx_bclk_ext>, <&i2srx_lrck_ext>, - <&tdm_ext>, <&mclk_ext>, - <&pllclk 0>, <&pllclk 1>, <&pllclk 2>; - clock-names = "osc", "gmac1_rmii_refin", - "gmac1_rgmii_rxin", - "i2stx_bclk_ext", "i2stx_lrck_ext", - "i2srx_bclk_ext", "i2srx_lrck_ext", - "tdm_ext", "mclk_ext", - "pll0_out", "pll1_out", "pll2_out"; - #clock-cells = <1>; - #reset-cells = <1>; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/starfive,jh7110-syscrg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7110 System Clock and Reset Generator + +maintainers: + - Emil Renner Berthing + +properties: + compatible: + const: starfive,jh7110-syscrg + + reg: + maxItems: 1 + + clocks: + oneOf: + - items: + - description: Main Oscillator (24 MHz) + - description: GMAC1 RMII reference or GMAC1 RGMII RX + - description: External I2S TX bit clock + - description: External I2S TX left/right channel clock + - description: External I2S RX bit clock + - description: External I2S RX left/right channel clock + - description: External TDM clock + - description: External audio master clock + - description: PLL0 + - description: PLL1 + - description: PLL2 + + - items: + - description: Main Oscillator (24 MHz) + - description: GMAC1 RMII reference + - description: GMAC1 RGMII RX + - description: External I2S TX bit clock + - description: External I2S TX left/right channel clock + - description: External I2S RX bit clock + - description: External I2S RX left/right channel clock + - description: External TDM clock + - description: External audio master clock + - description: PLL0 + - description: PLL1 + - description: PLL2 + + clock-names: + oneOf: + - items: + - const: osc + - enum: + - gmac1_rmii_refin + - gmac1_rgmii_rxin + - const: i2stx_bclk_ext + - const: i2stx_lrck_ext + - const: i2srx_bclk_ext + - const: i2srx_lrck_ext + - const: tdm_ext + - const: mclk_ext + - const: pll0_out + - const: pll1_out + - const: pll2_out + + - items: + - const: osc + - const: gmac1_rmii_refin + - const: gmac1_rgmii_rxin + - const: i2stx_bclk_ext + - const: i2stx_lrck_ext + - const: i2srx_bclk_ext + - const: i2srx_lrck_ext + - const: tdm_ext + - const: mclk_ext + - const: pll0_out + - const: pll1_out + - const: pll2_out + + '#clock-cells': + const: 1 + description: + See for valid indices. + + '#reset-cells': + const: 1 + description: + See for valid indices. + +required: + - compatible + - reg + - clocks + - clock-names + - '#clock-cells' + - '#reset-cells' + +additionalProperties: false + +examples: + - | + clock-controller@13020000 { + compatible = "starfive,jh7110-syscrg"; + reg = <0x13020000 0x10000>; + clocks = <&osc>, <&gmac1_rmii_refin>, + <&gmac1_rgmii_rxin>, + <&i2stx_bclk_ext>, <&i2stx_lrck_ext>, + <&i2srx_bclk_ext>, <&i2srx_lrck_ext>, + <&tdm_ext>, <&mclk_ext>, + <&pllclk 0>, <&pllclk 1>, <&pllclk 2>; + clock-names = "osc", "gmac1_rmii_refin", + "gmac1_rgmii_rxin", + "i2stx_bclk_ext", "i2stx_lrck_ext", + "i2srx_bclk_ext", "i2srx_lrck_ext", + "tdm_ext", "mclk_ext", + "pll0_out", "pll1_out", "pll2_out"; + #clock-cells = <1>; + #reset-cells = <1>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/ti/divider.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/ti/divider.txt index 75ca97450..4d7c76f0b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/ti/divider.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/ti/divider.txt @@ -1,115 +1,115 @@ -Binding for TI divider clock - -This binding uses the common clock binding[1]. It assumes a -register-mapped adjustable clock rate divider that does not gate and has -only one input clock or parent. By default the value programmed into -the register is one less than the actual divisor value. E.g: - -register value actual divisor value -0 1 -1 2 -2 3 - -This assumption may be modified by the following optional properties: - -ti,index-starts-at-one - valid divisor values start at 1, not the default -of 0. E.g: -register value actual divisor value -1 1 -2 2 -3 3 - -ti,index-power-of-two - valid divisor values are powers of two. E.g: -register value actual divisor value -0 1 -1 2 -2 4 - -Additionally an array of valid dividers may be supplied like so: - - ti,dividers = <4>, <8>, <0>, <16>; - -Which will map the resulting values to a divisor table by their index: -register value actual divisor value -0 4 -1 8 -2 -3 16 - -Any zero value in this array means the corresponding bit-value is invalid -and must not be used. - -The binding must also provide the register to control the divider and -unless the divider array is provided, min and max dividers. Optionally -the number of bits to shift that mask, if necessary. If the shift value -is missing it is the same as supplying a zero shift. - -This binding can also optionally provide support to the hardware autoidle -feature, see [2]. - -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt -[2] Documentation/devicetree/bindings/clock/ti/autoidle.txt - -Required properties: -- compatible : shall be "ti,divider-clock" or "ti,composite-divider-clock". -- #clock-cells : from common clock binding; shall be set to 0. -- clocks : link to phandle of parent clock -- reg : offset for register controlling adjustable divider - -Optional properties: -- clock-output-names : from common clock binding. -- ti,dividers : array of integers defining divisors -- ti,bit-shift : number of bits to shift the divider value, defaults to 0 -- ti,min-div : min divisor for dividing the input clock rate, only - needed if the first divisor is offset from the default value (1) -- ti,max-div : max divisor for dividing the input clock rate, only needed - if ti,dividers is not defined. -- ti,index-starts-at-one : valid divisor programming starts at 1, not zero, - only valid if ti,dividers is not defined. -- ti,index-power-of-two : valid divisor programming must be a power of two, - only valid if ti,dividers is not defined. -- ti,autoidle-shift : bit shift of the autoidle enable bit for the clock, - see [2] -- ti,invert-autoidle-bit : autoidle is enabled by setting the bit to 0, - see [2] -- ti,set-rate-parent : clk_set_rate is propagated to parent -- ti,latch-bit : latch the divider value to HW, only needed if the register - access requires this. As an example dra76x DPLL_GMAC H14 divider implements - such behavior. - -Examples: -dpll_usb_m2_ck: dpll_usb_m2_ck@4a008190 { - #clock-cells = <0>; - compatible = "ti,divider-clock"; - clocks = <&dpll_usb_ck>; - ti,max-div = <127>; - reg = <0x190>; - ti,index-starts-at-one; -}; - -aess_fclk: aess_fclk@4a004528 { - #clock-cells = <0>; - compatible = "ti,divider-clock"; - clocks = <&abe_clk>; - ti,bit-shift = <24>; - reg = <0x528>; - ti,max-div = <2>; -}; - -dpll_core_m3x2_div_ck: dpll_core_m3x2_div_ck { - #clock-cells = <0>; - compatible = "ti,composite-divider-clock"; - clocks = <&dpll_core_x2_ck>; - ti,max-div = <31>; - reg = <0x0134>; - ti,index-starts-at-one; -}; - -ssi_ssr_div_fck_3430es2: ssi_ssr_div_fck_3430es2 { - #clock-cells = <0>; - compatible = "ti,composite-divider-clock"; - clocks = <&corex2_fck>; - ti,bit-shift = <8>; - reg = <0x0a40>; - ti,dividers = <0>, <1>, <2>, <3>, <4>, <0>, <6>, <0>, <8>; -}; +Binding for TI divider clock + +This binding uses the common clock binding[1]. It assumes a +register-mapped adjustable clock rate divider that does not gate and has +only one input clock or parent. By default the value programmed into +the register is one less than the actual divisor value. E.g: + +register value actual divisor value +0 1 +1 2 +2 3 + +This assumption may be modified by the following optional properties: + +ti,index-starts-at-one - valid divisor values start at 1, not the default +of 0. E.g: +register value actual divisor value +1 1 +2 2 +3 3 + +ti,index-power-of-two - valid divisor values are powers of two. E.g: +register value actual divisor value +0 1 +1 2 +2 4 + +Additionally an array of valid dividers may be supplied like so: + + ti,dividers = <4>, <8>, <0>, <16>; + +Which will map the resulting values to a divisor table by their index: +register value actual divisor value +0 4 +1 8 +2 +3 16 + +Any zero value in this array means the corresponding bit-value is invalid +and must not be used. + +The binding must also provide the register to control the divider and +unless the divider array is provided, min and max dividers. Optionally +the number of bits to shift that mask, if necessary. If the shift value +is missing it is the same as supplying a zero shift. + +This binding can also optionally provide support to the hardware autoidle +feature, see [2]. + +[1] Documentation/devicetree/bindings/clock/clock-bindings.txt +[2] Documentation/devicetree/bindings/clock/ti/autoidle.txt + +Required properties: +- compatible : shall be "ti,divider-clock" or "ti,composite-divider-clock". +- #clock-cells : from common clock binding; shall be set to 0. +- clocks : link to phandle of parent clock +- reg : offset for register controlling adjustable divider + +Optional properties: +- clock-output-names : from common clock binding. +- ti,dividers : array of integers defining divisors +- ti,bit-shift : number of bits to shift the divider value, defaults to 0 +- ti,min-div : min divisor for dividing the input clock rate, only + needed if the first divisor is offset from the default value (1) +- ti,max-div : max divisor for dividing the input clock rate, only needed + if ti,dividers is not defined. +- ti,index-starts-at-one : valid divisor programming starts at 1, not zero, + only valid if ti,dividers is not defined. +- ti,index-power-of-two : valid divisor programming must be a power of two, + only valid if ti,dividers is not defined. +- ti,autoidle-shift : bit shift of the autoidle enable bit for the clock, + see [2] +- ti,invert-autoidle-bit : autoidle is enabled by setting the bit to 0, + see [2] +- ti,set-rate-parent : clk_set_rate is propagated to parent +- ti,latch-bit : latch the divider value to HW, only needed if the register + access requires this. As an example dra76x DPLL_GMAC H14 divider implements + such behavior. + +Examples: +dpll_usb_m2_ck: dpll_usb_m2_ck@4a008190 { + #clock-cells = <0>; + compatible = "ti,divider-clock"; + clocks = <&dpll_usb_ck>; + ti,max-div = <127>; + reg = <0x190>; + ti,index-starts-at-one; +}; + +aess_fclk: aess_fclk@4a004528 { + #clock-cells = <0>; + compatible = "ti,divider-clock"; + clocks = <&abe_clk>; + ti,bit-shift = <24>; + reg = <0x528>; + ti,max-div = <2>; +}; + +dpll_core_m3x2_div_ck: dpll_core_m3x2_div_ck { + #clock-cells = <0>; + compatible = "ti,composite-divider-clock"; + clocks = <&dpll_core_x2_ck>; + ti,max-div = <31>; + reg = <0x0134>; + ti,index-starts-at-one; +}; + +ssi_ssr_div_fck_3430es2: ssi_ssr_div_fck_3430es2 { + #clock-cells = <0>; + compatible = "ti,composite-divider-clock"; + clocks = <&corex2_fck>; + ti,bit-shift = <8>; + reg = <0x0a40>; + ti,dividers = <0>, <1>, <2>, <3>, <4>, <0>, <6>, <0>, <8>; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/ti/dpll.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/ti/dpll.txt index 7236be9eb..14a1b72c2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/ti/dpll.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/ti/dpll.txt @@ -1,103 +1,103 @@ -Binding for Texas Instruments DPLL clock. - -This binding uses the common clock binding[1]. It assumes a -register-mapped DPLL with usually two selectable input clocks -(reference clock and bypass clock), with digital phase locked -loop logic for multiplying the input clock to a desired output -clock. This clock also typically supports different operation -modes (locked, low power stop etc.) This binding has several -sub-types, which effectively result in slightly different setup -for the actual DPLL clock. - -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt - -Required properties: -- compatible : shall be one of: - "ti,omap3-dpll-clock", - "ti,omap3-dpll-core-clock", - "ti,omap3-dpll-per-clock", - "ti,omap3-dpll-per-j-type-clock", - "ti,omap4-dpll-clock", - "ti,omap4-dpll-x2-clock", - "ti,omap4-dpll-core-clock", - "ti,omap4-dpll-m4xen-clock", - "ti,omap4-dpll-j-type-clock", - "ti,omap5-mpu-dpll-clock", - "ti,am3-dpll-no-gate-clock", - "ti,am3-dpll-j-type-clock", - "ti,am3-dpll-no-gate-j-type-clock", - "ti,am3-dpll-clock", - "ti,am3-dpll-core-clock", - "ti,am3-dpll-x2-clock", - "ti,omap2-dpll-core-clock", - -- #clock-cells : from common clock binding; shall be set to 0. -- clocks : link phandles of parent clocks, first entry lists reference clock - and second entry bypass clock -- reg : offsets for the register set for controlling the DPLL. - Registers are listed in following order: - "control" - contains the control register base address - "idlest" - contains the idle status register base address - "mult-div1" - contains the multiplier / divider register base address - "autoidle" - contains the autoidle register base address (optional) - "ssc-deltam" - DPLL supports spread spectrum clocking (SSC), contains - the frequency spreading register base address (optional) - "ssc-modfreq" - DPLL supports spread spectrum clocking (SSC), contains - the modulation frequency register base address - (optional) - ti,am3-* dpll types do not have autoidle register - ti,omap2-* dpll type does not support idlest / autoidle registers - -Optional properties: -- DPLL mode setting - defining any one or more of the following overrides - default setting. - - ti,low-power-stop : DPLL supports low power stop mode, gating output - - ti,low-power-bypass : DPLL output matches rate of parent bypass clock - - ti,lock : DPLL locks in programmed rate - - ti,min-div : the minimum divisor to start from to round the DPLL - target rate - - ti,ssc-deltam : DPLL supports spread spectrum clocking, frequency - spreading in permille (10th of a percent) - - ti,ssc-modfreq-hz : DPLL supports spread spectrum clocking, spread - spectrum modulation frequency - - ti,ssc-downspread : DPLL supports spread spectrum clocking, boolean - to enable the downspread feature - -Examples: - dpll_core_ck: dpll_core_ck@44e00490 { - #clock-cells = <0>; - compatible = "ti,omap4-dpll-core-clock"; - clocks = <&sys_clkin_ck>, <&sys_clkin_ck>; - reg = <0x490>, <0x45c>, <0x488>, <0x468>; - }; - - dpll2_ck: dpll2_ck@48004004 { - #clock-cells = <0>; - compatible = "ti,omap3-dpll-clock"; - clocks = <&sys_ck>, <&dpll2_fck>; - ti,low-power-stop; - ti,low-power-bypass; - ti,lock; - reg = <0x4>, <0x24>, <0x34>, <0x40>; - }; - - dpll_core_ck: dpll_core_ck@44e00490 { - #clock-cells = <0>; - compatible = "ti,am3-dpll-core-clock"; - clocks = <&sys_clkin_ck>, <&sys_clkin_ck>; - reg = <0x90>, <0x5c>, <0x68>; - }; - - dpll_ck: dpll_ck { - #clock-cells = <0>; - compatible = "ti,omap2-dpll-core-clock"; - clocks = <&sys_ck>, <&sys_ck>; - reg = <0x0500>, <0x0540>; - }; - - dpll_disp_ck: dpll_disp_ck { - #clock-cells = <0>; - compatible = "ti,am3-dpll-no-gate-clock"; - clocks = <&sys_clkin_ck>, <&sys_clkin_ck>; - reg = <0x0498>, <0x0448>, <0x0454>, <0x044c>, <0x0450>; - }; +Binding for Texas Instruments DPLL clock. + +This binding uses the common clock binding[1]. It assumes a +register-mapped DPLL with usually two selectable input clocks +(reference clock and bypass clock), with digital phase locked +loop logic for multiplying the input clock to a desired output +clock. This clock also typically supports different operation +modes (locked, low power stop etc.) This binding has several +sub-types, which effectively result in slightly different setup +for the actual DPLL clock. + +[1] Documentation/devicetree/bindings/clock/clock-bindings.txt + +Required properties: +- compatible : shall be one of: + "ti,omap3-dpll-clock", + "ti,omap3-dpll-core-clock", + "ti,omap3-dpll-per-clock", + "ti,omap3-dpll-per-j-type-clock", + "ti,omap4-dpll-clock", + "ti,omap4-dpll-x2-clock", + "ti,omap4-dpll-core-clock", + "ti,omap4-dpll-m4xen-clock", + "ti,omap4-dpll-j-type-clock", + "ti,omap5-mpu-dpll-clock", + "ti,am3-dpll-no-gate-clock", + "ti,am3-dpll-j-type-clock", + "ti,am3-dpll-no-gate-j-type-clock", + "ti,am3-dpll-clock", + "ti,am3-dpll-core-clock", + "ti,am3-dpll-x2-clock", + "ti,omap2-dpll-core-clock", + +- #clock-cells : from common clock binding; shall be set to 0. +- clocks : link phandles of parent clocks, first entry lists reference clock + and second entry bypass clock +- reg : offsets for the register set for controlling the DPLL. + Registers are listed in following order: + "control" - contains the control register base address + "idlest" - contains the idle status register base address + "mult-div1" - contains the multiplier / divider register base address + "autoidle" - contains the autoidle register base address (optional) + "ssc-deltam" - DPLL supports spread spectrum clocking (SSC), contains + the frequency spreading register base address (optional) + "ssc-modfreq" - DPLL supports spread spectrum clocking (SSC), contains + the modulation frequency register base address + (optional) + ti,am3-* dpll types do not have autoidle register + ti,omap2-* dpll type does not support idlest / autoidle registers + +Optional properties: +- DPLL mode setting - defining any one or more of the following overrides + default setting. + - ti,low-power-stop : DPLL supports low power stop mode, gating output + - ti,low-power-bypass : DPLL output matches rate of parent bypass clock + - ti,lock : DPLL locks in programmed rate + - ti,min-div : the minimum divisor to start from to round the DPLL + target rate + - ti,ssc-deltam : DPLL supports spread spectrum clocking, frequency + spreading in permille (10th of a percent) + - ti,ssc-modfreq-hz : DPLL supports spread spectrum clocking, spread + spectrum modulation frequency + - ti,ssc-downspread : DPLL supports spread spectrum clocking, boolean + to enable the downspread feature + +Examples: + dpll_core_ck: dpll_core_ck@44e00490 { + #clock-cells = <0>; + compatible = "ti,omap4-dpll-core-clock"; + clocks = <&sys_clkin_ck>, <&sys_clkin_ck>; + reg = <0x490>, <0x45c>, <0x488>, <0x468>; + }; + + dpll2_ck: dpll2_ck@48004004 { + #clock-cells = <0>; + compatible = "ti,omap3-dpll-clock"; + clocks = <&sys_ck>, <&dpll2_fck>; + ti,low-power-stop; + ti,low-power-bypass; + ti,lock; + reg = <0x4>, <0x24>, <0x34>, <0x40>; + }; + + dpll_core_ck: dpll_core_ck@44e00490 { + #clock-cells = <0>; + compatible = "ti,am3-dpll-core-clock"; + clocks = <&sys_clkin_ck>, <&sys_clkin_ck>; + reg = <0x90>, <0x5c>, <0x68>; + }; + + dpll_ck: dpll_ck { + #clock-cells = <0>; + compatible = "ti,omap2-dpll-core-clock"; + clocks = <&sys_ck>, <&sys_ck>; + reg = <0x0500>, <0x0540>; + }; + + dpll_disp_ck: dpll_disp_ck { + #clock-cells = <0>; + compatible = "ti,am3-dpll-no-gate-clock"; + clocks = <&sys_clkin_ck>, <&sys_clkin_ck>; + reg = <0x0498>, <0x0448>, <0x0454>, <0x044c>, <0x0450>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/ti/gate.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/ti/gate.txt index d4096c050..a8e0335b0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/ti/gate.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/ti/gate.txt @@ -1,105 +1,105 @@ -Binding for Texas Instruments gate clock. - -This binding uses the common clock binding[1]. This clock is -quite much similar to the basic gate-clock [2], however, -it supports a number of additional features. If no register -is provided for this clock, the code assumes that a clockdomain -will be controlled instead and the corresponding hw-ops for -that is used. - -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt -[2] Documentation/devicetree/bindings/clock/gpio-gate-clock.yaml -[3] Documentation/devicetree/bindings/clock/ti/clockdomain.txt - -Required properties: -- compatible : shall be one of: - "ti,gate-clock" - basic gate clock - "ti,wait-gate-clock" - gate clock which waits until clock is active before - returning from clk_enable() - "ti,dss-gate-clock" - gate clock with DSS specific hardware handling - "ti,am35xx-gate-clock" - gate clock with AM35xx specific hardware handling - "ti,clkdm-gate-clock" - clockdomain gate clock, which derives its functional - clock directly from a clockdomain, see [3] how - to map clockdomains properly - "ti,hsdiv-gate-clock" - gate clock with OMAP36xx specific hardware handling, - required for a hardware errata - "ti,composite-gate-clock" - composite gate clock, to be part of composite - clock - "ti,composite-no-wait-gate-clock" - composite gate clock that does not wait - for clock to be active before returning - from clk_enable() -- #clock-cells : from common clock binding; shall be set to 0 -- clocks : link to phandle of parent clock -- reg : offset for register controlling adjustable gate, not needed for - ti,clkdm-gate-clock type - -Optional properties: -- clock-output-names : from common clock binding. -- ti,bit-shift : bit shift for programming the clock gate, invalid for - ti,clkdm-gate-clock type -- ti,set-bit-to-disable : inverts default gate programming. Setting the bit - gates the clock and clearing the bit ungates the clock. - -Examples: - mmchs2_fck: mmchs2_fck@48004a00 { - #clock-cells = <0>; - compatible = "ti,gate-clock"; - clocks = <&core_96m_fck>; - reg = <0x0a00>; - ti,bit-shift = <25>; - }; - - uart4_fck_am35xx: uart4_fck_am35xx { - #clock-cells = <0>; - compatible = "ti,wait-gate-clock"; - clocks = <&core_48m_fck>; - reg = <0x0a00>; - ti,bit-shift = <23>; - }; - - dss1_alwon_fck_3430es2: dss1_alwon_fck_3430es2@48004e00 { - #clock-cells = <0>; - compatible = "ti,dss-gate-clock"; - clocks = <&dpll4_m4x2_ck>; - reg = <0x0e00>; - ti,bit-shift = <0>; - }; - - emac_ick: emac_ick@4800259c { - #clock-cells = <0>; - compatible = "ti,am35xx-gate-clock"; - clocks = <&ipss_ick>; - reg = <0x059c>; - ti,bit-shift = <1>; - }; - - emu_src_ck: emu_src_ck { - #clock-cells = <0>; - compatible = "ti,clkdm-gate-clock"; - clocks = <&emu_src_mux_ck>; - }; - - dpll4_m2x2_ck: dpll4_m2x2_ck@48004d00 { - #clock-cells = <0>; - compatible = "ti,hsdiv-gate-clock"; - clocks = <&dpll4_m2x2_mul_ck>; - ti,bit-shift = <0x1b>; - reg = <0x0d00>; - ti,set-bit-to-disable; - }; - - vlynq_gate_fck: vlynq_gate_fck { - #clock-cells = <0>; - compatible = "ti,composite-gate-clock"; - clocks = <&core_ck>; - ti,bit-shift = <3>; - reg = <0x0200>; - }; - - sys_clkout2_src_gate: sys_clkout2_src_gate { - #clock-cells = <0>; - compatible = "ti,composite-no-wait-gate-clock"; - clocks = <&core_ck>; - ti,bit-shift = <15>; - reg = <0x0070>; - }; +Binding for Texas Instruments gate clock. + +This binding uses the common clock binding[1]. This clock is +quite much similar to the basic gate-clock [2], however, +it supports a number of additional features. If no register +is provided for this clock, the code assumes that a clockdomain +will be controlled instead and the corresponding hw-ops for +that is used. + +[1] Documentation/devicetree/bindings/clock/clock-bindings.txt +[2] Documentation/devicetree/bindings/clock/gpio-gate-clock.yaml +[3] Documentation/devicetree/bindings/clock/ti/clockdomain.txt + +Required properties: +- compatible : shall be one of: + "ti,gate-clock" - basic gate clock + "ti,wait-gate-clock" - gate clock which waits until clock is active before + returning from clk_enable() + "ti,dss-gate-clock" - gate clock with DSS specific hardware handling + "ti,am35xx-gate-clock" - gate clock with AM35xx specific hardware handling + "ti,clkdm-gate-clock" - clockdomain gate clock, which derives its functional + clock directly from a clockdomain, see [3] how + to map clockdomains properly + "ti,hsdiv-gate-clock" - gate clock with OMAP36xx specific hardware handling, + required for a hardware errata + "ti,composite-gate-clock" - composite gate clock, to be part of composite + clock + "ti,composite-no-wait-gate-clock" - composite gate clock that does not wait + for clock to be active before returning + from clk_enable() +- #clock-cells : from common clock binding; shall be set to 0 +- clocks : link to phandle of parent clock +- reg : offset for register controlling adjustable gate, not needed for + ti,clkdm-gate-clock type + +Optional properties: +- clock-output-names : from common clock binding. +- ti,bit-shift : bit shift for programming the clock gate, invalid for + ti,clkdm-gate-clock type +- ti,set-bit-to-disable : inverts default gate programming. Setting the bit + gates the clock and clearing the bit ungates the clock. + +Examples: + mmchs2_fck: mmchs2_fck@48004a00 { + #clock-cells = <0>; + compatible = "ti,gate-clock"; + clocks = <&core_96m_fck>; + reg = <0x0a00>; + ti,bit-shift = <25>; + }; + + uart4_fck_am35xx: uart4_fck_am35xx { + #clock-cells = <0>; + compatible = "ti,wait-gate-clock"; + clocks = <&core_48m_fck>; + reg = <0x0a00>; + ti,bit-shift = <23>; + }; + + dss1_alwon_fck_3430es2: dss1_alwon_fck_3430es2@48004e00 { + #clock-cells = <0>; + compatible = "ti,dss-gate-clock"; + clocks = <&dpll4_m4x2_ck>; + reg = <0x0e00>; + ti,bit-shift = <0>; + }; + + emac_ick: emac_ick@4800259c { + #clock-cells = <0>; + compatible = "ti,am35xx-gate-clock"; + clocks = <&ipss_ick>; + reg = <0x059c>; + ti,bit-shift = <1>; + }; + + emu_src_ck: emu_src_ck { + #clock-cells = <0>; + compatible = "ti,clkdm-gate-clock"; + clocks = <&emu_src_mux_ck>; + }; + + dpll4_m2x2_ck: dpll4_m2x2_ck@48004d00 { + #clock-cells = <0>; + compatible = "ti,hsdiv-gate-clock"; + clocks = <&dpll4_m2x2_mul_ck>; + ti,bit-shift = <0x1b>; + reg = <0x0d00>; + ti,set-bit-to-disable; + }; + + vlynq_gate_fck: vlynq_gate_fck { + #clock-cells = <0>; + compatible = "ti,composite-gate-clock"; + clocks = <&core_ck>; + ti,bit-shift = <3>; + reg = <0x0200>; + }; + + sys_clkout2_src_gate: sys_clkout2_src_gate { + #clock-cells = <0>; + compatible = "ti,composite-no-wait-gate-clock"; + clocks = <&core_ck>; + ti,bit-shift = <15>; + reg = <0x0070>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/xgene.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/xgene.txt index d52bd9bc6..8233e7717 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/xgene.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/xgene.txt @@ -1,131 +1,131 @@ -Device Tree Clock bindings for APM X-Gene - -This binding uses the common clock binding[1]. - -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt - -Required properties: -- compatible : shall be one of the following: - "apm,xgene-socpll-clock" - for a X-Gene SoC PLL clock - "apm,xgene-pcppll-clock" - for a X-Gene PCP PLL clock - "apm,xgene-pmd-clock" - for a X-Gene PMD clock - "apm,xgene-device-clock" - for a X-Gene device clock - "apm,xgene-socpll-v2-clock" - for a X-Gene SoC PLL v2 clock - "apm,xgene-pcppll-v2-clock" - for a X-Gene PCP PLL v2 clock - -Required properties for SoC or PCP PLL clocks: -- reg : shall be the physical PLL register address for the pll clock. -- clocks : shall be the input parent clock phandle for the clock. This should - be the reference clock. -- #clock-cells : shall be set to 1. -- clock-output-names : shall be the name of the PLL referenced by derive - clock. -Optional properties for PLL clocks: -- clock-names : shall be the name of the PLL. If missing, use the device name. - -Required properties for PMD clocks: -- reg : shall be the physical register address for the pmd clock. -- clocks : shall be the input parent clock phandle for the clock. -- #clock-cells : shall be set to 1. -- clock-output-names : shall be the name of the clock referenced by derive - clock. -Optional properties for PLL clocks: -- clock-names : shall be the name of the clock. If missing, use the device name. - -Required properties for device clocks: -- reg : shall be a list of address and length pairs describing the CSR - reset and/or the divider. Either may be omitted, but at least - one must be present. - - reg-names : shall be a string list describing the reg resource. This - may include "csr-reg" and/or "div-reg". If this property - is not present, the reg property is assumed to describe - only "csr-reg". -- clocks : shall be the input parent clock phandle for the clock. -- #clock-cells : shall be set to 1. -- clock-output-names : shall be the name of the device referenced. -Optional properties for device clocks: -- clock-names : shall be the name of the device clock. If missing, use the - device name. -- csr-offset : Offset to the CSR reset register from the reset address base. - Default is 0. -- csr-mask : CSR reset mask bit. Default is 0xF. -- enable-offset : Offset to the enable register from the reset address base. - Default is 0x8. -- enable-mask : CSR enable mask bit. Default is 0xF. -- divider-offset : Offset to the divider CSR register from the divider base. - Default is 0x0. -- divider-width : Width of the divider register. Default is 0. -- divider-shift : Bit shift of the divider register. Default is 0. - -For example: - - pcppll: pcppll@17000100 { - compatible = "apm,xgene-pcppll-clock"; - #clock-cells = <1>; - clocks = <&refclk 0>; - clock-names = "pcppll"; - reg = <0x0 0x17000100 0x0 0x1000>; - clock-output-names = "pcppll"; - type = <0>; - }; - - pmd0clk: pmd0clk@7e200200 { - compatible = "apm,xgene-pmd-clock"; - #clock-cells = <1>; - clocks = <&pmdpll 0>; - reg = <0x0 0x7e200200 0x0 0x10>; - clock-output-names = "pmd0clk"; - }; - - socpll: socpll@17000120 { - compatible = "apm,xgene-socpll-clock"; - #clock-cells = <1>; - clocks = <&refclk 0>; - clock-names = "socpll"; - reg = <0x0 0x17000120 0x0 0x1000>; - clock-output-names = "socpll"; - type = <1>; - }; - - qmlclk: qmlclk { - compatible = "apm,xgene-device-clock"; - #clock-cells = <1>; - clocks = <&socplldiv2 0>; - clock-names = "qmlclk"; - reg = <0x0 0x1703C000 0x0 0x1000>; - reg-name = "csr-reg"; - clock-output-names = "qmlclk"; - }; - - ethclk: ethclk { - compatible = "apm,xgene-device-clock"; - #clock-cells = <1>; - clocks = <&socplldiv2 0>; - clock-names = "ethclk"; - reg = <0x0 0x17000000 0x0 0x1000>; - reg-names = "div-reg"; - divider-offset = <0x238>; - divider-width = <0x9>; - divider-shift = <0x0>; - clock-output-names = "ethclk"; - }; - - apbclk: apbclk { - compatible = "apm,xgene-device-clock"; - #clock-cells = <1>; - clocks = <&ahbclk 0>; - clock-names = "apbclk"; - reg = <0x0 0x1F2AC000 0x0 0x1000 - 0x0 0x1F2AC000 0x0 0x1000>; - reg-names = "csr-reg", "div-reg"; - csr-offset = <0x0>; - csr-mask = <0x200>; - enable-offset = <0x8>; - enable-mask = <0x200>; - divider-offset = <0x10>; - divider-width = <0x2>; - divider-shift = <0x0>; - flags = <0x8>; - clock-output-names = "apbclk"; - }; - +Device Tree Clock bindings for APM X-Gene + +This binding uses the common clock binding[1]. + +[1] Documentation/devicetree/bindings/clock/clock-bindings.txt + +Required properties: +- compatible : shall be one of the following: + "apm,xgene-socpll-clock" - for a X-Gene SoC PLL clock + "apm,xgene-pcppll-clock" - for a X-Gene PCP PLL clock + "apm,xgene-pmd-clock" - for a X-Gene PMD clock + "apm,xgene-device-clock" - for a X-Gene device clock + "apm,xgene-socpll-v2-clock" - for a X-Gene SoC PLL v2 clock + "apm,xgene-pcppll-v2-clock" - for a X-Gene PCP PLL v2 clock + +Required properties for SoC or PCP PLL clocks: +- reg : shall be the physical PLL register address for the pll clock. +- clocks : shall be the input parent clock phandle for the clock. This should + be the reference clock. +- #clock-cells : shall be set to 1. +- clock-output-names : shall be the name of the PLL referenced by derive + clock. +Optional properties for PLL clocks: +- clock-names : shall be the name of the PLL. If missing, use the device name. + +Required properties for PMD clocks: +- reg : shall be the physical register address for the pmd clock. +- clocks : shall be the input parent clock phandle for the clock. +- #clock-cells : shall be set to 1. +- clock-output-names : shall be the name of the clock referenced by derive + clock. +Optional properties for PLL clocks: +- clock-names : shall be the name of the clock. If missing, use the device name. + +Required properties for device clocks: +- reg : shall be a list of address and length pairs describing the CSR + reset and/or the divider. Either may be omitted, but at least + one must be present. + - reg-names : shall be a string list describing the reg resource. This + may include "csr-reg" and/or "div-reg". If this property + is not present, the reg property is assumed to describe + only "csr-reg". +- clocks : shall be the input parent clock phandle for the clock. +- #clock-cells : shall be set to 1. +- clock-output-names : shall be the name of the device referenced. +Optional properties for device clocks: +- clock-names : shall be the name of the device clock. If missing, use the + device name. +- csr-offset : Offset to the CSR reset register from the reset address base. + Default is 0. +- csr-mask : CSR reset mask bit. Default is 0xF. +- enable-offset : Offset to the enable register from the reset address base. + Default is 0x8. +- enable-mask : CSR enable mask bit. Default is 0xF. +- divider-offset : Offset to the divider CSR register from the divider base. + Default is 0x0. +- divider-width : Width of the divider register. Default is 0. +- divider-shift : Bit shift of the divider register. Default is 0. + +For example: + + pcppll: pcppll@17000100 { + compatible = "apm,xgene-pcppll-clock"; + #clock-cells = <1>; + clocks = <&refclk 0>; + clock-names = "pcppll"; + reg = <0x0 0x17000100 0x0 0x1000>; + clock-output-names = "pcppll"; + type = <0>; + }; + + pmd0clk: pmd0clk@7e200200 { + compatible = "apm,xgene-pmd-clock"; + #clock-cells = <1>; + clocks = <&pmdpll 0>; + reg = <0x0 0x7e200200 0x0 0x10>; + clock-output-names = "pmd0clk"; + }; + + socpll: socpll@17000120 { + compatible = "apm,xgene-socpll-clock"; + #clock-cells = <1>; + clocks = <&refclk 0>; + clock-names = "socpll"; + reg = <0x0 0x17000120 0x0 0x1000>; + clock-output-names = "socpll"; + type = <1>; + }; + + qmlclk: qmlclk { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + clock-names = "qmlclk"; + reg = <0x0 0x1703C000 0x0 0x1000>; + reg-name = "csr-reg"; + clock-output-names = "qmlclk"; + }; + + ethclk: ethclk { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + clock-names = "ethclk"; + reg = <0x0 0x17000000 0x0 0x1000>; + reg-names = "div-reg"; + divider-offset = <0x238>; + divider-width = <0x9>; + divider-shift = <0x0>; + clock-output-names = "ethclk"; + }; + + apbclk: apbclk { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&ahbclk 0>; + clock-names = "apbclk"; + reg = <0x0 0x1F2AC000 0x0 0x1000 + 0x0 0x1F2AC000 0x0 0x1000>; + reg-names = "csr-reg", "div-reg"; + csr-offset = <0x0>; + csr-mask = <0x200>; + enable-offset = <0x8>; + enable-mask = <0x200>; + divider-offset = <0x10>; + divider-width = <0x2>; + divider-shift = <0x0>; + flags = <0x8>; + clock-output-names = "apbclk"; + }; + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml index c96f86d5b..bef109d16 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml @@ -1,146 +1,146 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/clock/xlnx,versal-clk.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Xilinx Versal clock controller - -maintainers: - - Michal Simek - -description: | - The clock controller is a hardware block of Xilinx versal clock tree. It - reads required input clock frequencies from the devicetree and acts as clock - provider for all clock consumers of PS clocks. - -properties: - compatible: - oneOf: - - enum: - - xlnx,versal-clk - - xlnx,zynqmp-clk - - items: - - enum: - - xlnx,versal-net-clk - - const: xlnx,versal-clk - - "#clock-cells": - const: 1 - - clocks: - description: List of clock specifiers which are external input - clocks to the given clock controller. - minItems: 2 - maxItems: 8 - - clock-names: - minItems: 2 - maxItems: 8 - -required: - - compatible - - "#clock-cells" - - clocks - - clock-names - -additionalProperties: false - -allOf: - - if: - properties: - compatible: - contains: - enum: - - xlnx,versal-clk - - then: - properties: - clocks: - items: - - description: reference clock - - description: alternate reference clock for programmable logic - - clock-names: - items: - - const: ref - - const: pl_alt_ref - - - if: - properties: - compatible: - contains: - enum: - - xlnx,versal-net-clk - - then: - properties: - clocks: - items: - - description: reference clock - - description: alternate reference clock for programmable logic - - description: alternate reference clock - - clock-names: - items: - - const: ref - - const: pl_alt_ref - - const: alt_ref - - - if: - properties: - compatible: - contains: - enum: - - xlnx,zynqmp-clk - - then: - properties: - clocks: - minItems: 5 - items: - - description: PS reference clock - - description: reference clock for video system - - description: alternative PS reference clock - - description: auxiliary reference clock - - description: transceiver reference clock - - description: (E)MIO clock source (Optional clock) - - description: GEM emio clock (Optional clock) - - description: Watchdog external clock (Optional clock) - - clock-names: - minItems: 5 - items: - - const: pss_ref_clk - - const: video_clk - - const: pss_alt_ref_clk - - const: aux_ref_clk - - const: gt_crx_ref_clk - - pattern: "^mio_clk[00-77]+.*$" - - pattern: "gem[0-3]+_emio_clk.*$" - - pattern: "swdt[0-1]+_ext_clk.*$" - -examples: - - | - firmware { - zynqmp_firmware: zynqmp-firmware { - compatible = "xlnx,zynqmp-firmware"; - method = "smc"; - versal_clk: clock-controller { - #clock-cells = <1>; - compatible = "xlnx,versal-clk"; - clocks = <&ref>, <&pl_alt_ref>; - clock-names = "ref", "pl_alt_ref"; - }; - }; - }; - - clock-controller { - #clock-cells = <1>; - compatible = "xlnx,zynqmp-clk"; - clocks = <&pss_ref_clk>, <&video_clk>, <&pss_alt_ref_clk>, - <&aux_ref_clk>, <>_crx_ref_clk>; - clock-names = "pss_ref_clk", "video_clk", "pss_alt_ref_clk", - "aux_ref_clk", "gt_crx_ref_clk"; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/xlnx,versal-clk.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx Versal clock controller + +maintainers: + - Michal Simek + +description: | + The clock controller is a hardware block of Xilinx versal clock tree. It + reads required input clock frequencies from the devicetree and acts as clock + provider for all clock consumers of PS clocks. + +properties: + compatible: + oneOf: + - enum: + - xlnx,versal-clk + - xlnx,zynqmp-clk + - items: + - enum: + - xlnx,versal-net-clk + - const: xlnx,versal-clk + + "#clock-cells": + const: 1 + + clocks: + description: List of clock specifiers which are external input + clocks to the given clock controller. + minItems: 2 + maxItems: 8 + + clock-names: + minItems: 2 + maxItems: 8 + +required: + - compatible + - "#clock-cells" + - clocks + - clock-names + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + contains: + enum: + - xlnx,versal-clk + + then: + properties: + clocks: + items: + - description: reference clock + - description: alternate reference clock for programmable logic + + clock-names: + items: + - const: ref + - const: pl_alt_ref + + - if: + properties: + compatible: + contains: + enum: + - xlnx,versal-net-clk + + then: + properties: + clocks: + items: + - description: reference clock + - description: alternate reference clock for programmable logic + - description: alternate reference clock + + clock-names: + items: + - const: ref + - const: pl_alt_ref + - const: alt_ref + + - if: + properties: + compatible: + contains: + enum: + - xlnx,zynqmp-clk + + then: + properties: + clocks: + minItems: 5 + items: + - description: PS reference clock + - description: reference clock for video system + - description: alternative PS reference clock + - description: auxiliary reference clock + - description: transceiver reference clock + - description: (E)MIO clock source (Optional clock) + - description: GEM emio clock (Optional clock) + - description: Watchdog external clock (Optional clock) + + clock-names: + minItems: 5 + items: + - const: pss_ref_clk + - const: video_clk + - const: pss_alt_ref_clk + - const: aux_ref_clk + - const: gt_crx_ref_clk + - pattern: "^mio_clk[00-77]+.*$" + - pattern: "gem[0-3]+_emio_clk.*$" + - pattern: "swdt[0-1]+_ext_clk.*$" + +examples: + - | + firmware { + zynqmp_firmware: zynqmp-firmware { + compatible = "xlnx,zynqmp-firmware"; + method = "smc"; + versal_clk: clock-controller { + #clock-cells = <1>; + compatible = "xlnx,versal-clk"; + clocks = <&ref>, <&pl_alt_ref>; + clock-names = "ref", "pl_alt_ref"; + }; + }; + }; + + clock-controller { + #clock-cells = <1>; + compatible = "xlnx,zynqmp-clk"; + clocks = <&pss_ref_clk>, <&video_clk>, <&pss_alt_ref_clk>, + <&aux_ref_clk>, <>_crx_ref_clk>; + clock-names = "pss_ref_clk", "video_clk", "pss_alt_ref_clk", + "aux_ref_clk", "gt_crx_ref_clk"; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0-mon.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0-mon.yaml index a84d4e027..e879bc0be 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0-mon.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0-mon.yaml @@ -1,162 +1,162 @@ -# SPDX-License-Identifier: GPL-2.0 -# Copyright (C) 2008-2011 Freescale Semiconductor Inc. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/crypto/fsl,sec-v4.0-mon.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale Secure Non-Volatile Storage (SNVS) - -maintainers: - - '"Horia Geantă" ' - - Pankaj Gupta - - Gaurav Jain - -description: - Node defines address range and the associated interrupt for the SNVS function. - This function monitors security state information & reports security - violations. This also included rtc, system power off and ON/OFF key. - -properties: - compatible: - oneOf: - - items: - - const: fsl,sec-v4.0-mon - - const: syscon - - const: simple-mfd - - items: - - const: fsl,sec-v5.0-mon - - const: fsl,sec-v4.0-mon - - items: - - enum: - - fsl,sec-v5.3-mon - - fsl,sec-v5.4-mon - - const: fsl,sec-v5.0-mon - - const: fsl,sec-v4.0-mon - - reg: - maxItems: 1 - - interrupts: - maxItems: 2 - - snvs-rtc-lp: - type: object - additionalProperties: false - description: - Secure Non-Volatile Storage (SNVS) Low Power (LP) RTC Node - - properties: - compatible: - const: fsl,sec-v4.0-mon-rtc-lp - - clocks: - maxItems: 1 - - clock-names: - const: snvs-rtc - - interrupts: - # VFxxx has only one. What is the 2nd one? - minItems: 1 - maxItems: 2 - - regmap: - description: Parent node containing registers - $ref: /schemas/types.yaml#/definitions/phandle - - offset: - description: LP register offset - $ref: /schemas/types.yaml#/definitions/uint32 - default: 0x34 - - required: - - compatible - - interrupts - - regmap - - snvs-powerkey: - type: object - additionalProperties: false - description: - The snvs-pwrkey is designed to enable POWER key function which controlled - by SNVS ONOFF, the driver can report the status of POWER key and wakeup - system if pressed after system suspend. - - properties: - compatible: - const: fsl,sec-v4.0-pwrkey - - clocks: - maxItems: 1 - - clock-names: - const: snvs-pwrkey - - interrupts: - maxItems: 1 - - regmap: - description: Parent node containing registers - $ref: /schemas/types.yaml#/definitions/phandle - - wakeup-source: true - - linux,keycode: - $ref: /schemas/types.yaml#/definitions/uint32 - default: 116 - deprecated: true - - linux,keycodes: - maxItems: 1 - default: 116 - - required: - - compatible - - interrupts - - regmap - - snvs-lpgpr: - $ref: /schemas/nvmem/snvs-lpgpr.yaml# - - snvs-poweroff: - description: - The SNVS could drive signal to PMIC to turn off system power by setting - SNVS_LP LPCR register. - $ref: /schemas/power/reset/syscon-poweroff.yaml# - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - #include - #include - - sec_mon: sec-mon@314000 { - compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd"; - reg = <0x314000 0x1000>; - - snvs-rtc-lp { - compatible = "fsl,sec-v4.0-mon-rtc-lp"; - regmap = <&sec_mon>; - offset = <0x34>; - clocks = <&clks IMX7D_SNVS_CLK>; - clock-names = "snvs-rtc"; - interrupts = , - ; - }; - - snvs-powerkey { - compatible = "fsl,sec-v4.0-pwrkey"; - regmap = <&sec_mon>; - clocks = <&clks IMX7D_SNVS_CLK>; - clock-names = "snvs-pwrkey"; - interrupts = ; - linux,keycode = <116>; /* KEY_POWER */ - wakeup-source; - }; - }; +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2008-2011 Freescale Semiconductor Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/fsl,sec-v4.0-mon.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale Secure Non-Volatile Storage (SNVS) + +maintainers: + - '"Horia Geantă" ' + - Pankaj Gupta + - Gaurav Jain + +description: + Node defines address range and the associated interrupt for the SNVS function. + This function monitors security state information & reports security + violations. This also included rtc, system power off and ON/OFF key. + +properties: + compatible: + oneOf: + - items: + - const: fsl,sec-v4.0-mon + - const: syscon + - const: simple-mfd + - items: + - const: fsl,sec-v5.0-mon + - const: fsl,sec-v4.0-mon + - items: + - enum: + - fsl,sec-v5.3-mon + - fsl,sec-v5.4-mon + - const: fsl,sec-v5.0-mon + - const: fsl,sec-v4.0-mon + + reg: + maxItems: 1 + + interrupts: + maxItems: 2 + + snvs-rtc-lp: + type: object + additionalProperties: false + description: + Secure Non-Volatile Storage (SNVS) Low Power (LP) RTC Node + + properties: + compatible: + const: fsl,sec-v4.0-mon-rtc-lp + + clocks: + maxItems: 1 + + clock-names: + const: snvs-rtc + + interrupts: + # VFxxx has only one. What is the 2nd one? + minItems: 1 + maxItems: 2 + + regmap: + description: Parent node containing registers + $ref: /schemas/types.yaml#/definitions/phandle + + offset: + description: LP register offset + $ref: /schemas/types.yaml#/definitions/uint32 + default: 0x34 + + required: + - compatible + - interrupts + - regmap + + snvs-powerkey: + type: object + additionalProperties: false + description: + The snvs-pwrkey is designed to enable POWER key function which controlled + by SNVS ONOFF, the driver can report the status of POWER key and wakeup + system if pressed after system suspend. + + properties: + compatible: + const: fsl,sec-v4.0-pwrkey + + clocks: + maxItems: 1 + + clock-names: + const: snvs-pwrkey + + interrupts: + maxItems: 1 + + regmap: + description: Parent node containing registers + $ref: /schemas/types.yaml#/definitions/phandle + + wakeup-source: true + + linux,keycode: + $ref: /schemas/types.yaml#/definitions/uint32 + default: 116 + deprecated: true + + linux,keycodes: + maxItems: 1 + default: 116 + + required: + - compatible + - interrupts + - regmap + + snvs-lpgpr: + $ref: /schemas/nvmem/snvs-lpgpr.yaml# + + snvs-poweroff: + description: + The SNVS could drive signal to PMIC to turn off system power by setting + SNVS_LP LPCR register. + $ref: /schemas/power/reset/syscon-poweroff.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + #include + + sec_mon: sec-mon@314000 { + compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd"; + reg = <0x314000 0x1000>; + + snvs-rtc-lp { + compatible = "fsl,sec-v4.0-mon-rtc-lp"; + regmap = <&sec_mon>; + offset = <0x34>; + clocks = <&clks IMX7D_SNVS_CLK>; + clock-names = "snvs-rtc"; + interrupts = , + ; + }; + + snvs-powerkey { + compatible = "fsl,sec-v4.0-pwrkey"; + regmap = <&sec_mon>; + clocks = <&clks IMX7D_SNVS_CLK>; + clock-names = "snvs-pwrkey"; + interrupts = ; + linux,keycode = <116>; /* KEY_POWER */ + wakeup-source; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/crypto/fsl-sec6.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/crypto/fsl-sec6.txt index 4b884e3ac..73b0eb950 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/crypto/fsl-sec6.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/crypto/fsl-sec6.txt @@ -1,157 +1,157 @@ -SEC 6 is as Freescale's Cryptographic Accelerator and Assurance Module (CAAM). -Currently Freescale powerpc chip C29X is embedded with SEC 6. -SEC 6 device tree binding include: - -SEC 6 Node - -Job Ring Node - -Full Example - -===================================================================== -SEC 6 Node - -Description - - Node defines the base address of the SEC 6 block. - This block specifies the address range of all global - configuration registers for the SEC 6 block. - For example, In C293, we could see three SEC 6 node. - -PROPERTIES - - - compatible - Usage: required - Value type: - Definition: Must include "fsl,sec-v6.0". - - - fsl,sec-era - Usage: optional - Value type: - Definition: A standard property. Define the 'ERA' of the SEC - device. - - - #address-cells - Usage: required - Value type: - Definition: A standard property. Defines the number of cells - for representing physical addresses in child nodes. - - - #size-cells - Usage: required - Value type: - Definition: A standard property. Defines the number of cells - for representing the size of physical addresses in - child nodes. - - - reg - Usage: required - Value type: - Definition: A standard property. Specifies the physical - address and length of the SEC 6 configuration registers. - - - ranges - Usage: required - Value type: - Definition: A standard property. Specifies the physical address - range of the SEC 6.0 register space (-SNVS not included). A - triplet that includes the child address, parent address, & - length. - - Note: All other standard properties (see the Devicetree Specification) - are allowed but are optional. - -EXAMPLE - crypto@a0000 { - compatible = "fsl,sec-v6.0"; - fsl,sec-era = <6>; - #address-cells = <1>; - #size-cells = <1>; - reg = <0xa0000 0x20000>; - ranges = <0 0xa0000 0x20000>; - }; - -===================================================================== -Job Ring (JR) Node - - Child of the crypto node defines data processing interface to SEC 6 - across the peripheral bus for purposes of processing - cryptographic descriptors. The specified address - range can be made visible to one (or more) cores. - The interrupt defined for this node is controlled within - the address range of this node. - - - compatible - Usage: required - Value type: - Definition: Must include "fsl,sec-v6.0-job-ring". - - - reg - Usage: required - Value type: - Definition: Specifies a two JR parameters: an offset from - the parent physical address and the length the JR registers. - - - interrupts - Usage: required - Value type: - Definition: Specifies the interrupts generated by this - device. The value of the interrupts property - consists of one interrupt specifier. The format - of the specifier is defined by the binding document - describing the node's interrupt parent. - -EXAMPLE - jr@1000 { - compatible = "fsl,sec-v6.0-job-ring"; - reg = <0x1000 0x1000>; - interrupts = <49 2 0 0>; - }; - -=================================================================== -Full Example - -Since some chips may contain more than one SEC, the dtsi contains -only the node contents, not the node itself. A chip using the SEC -should include the dtsi inside each SEC node. Example: - -In qoriq-sec6.0.dtsi: - - compatible = "fsl,sec-v6.0"; - fsl,sec-era = <6>; - #address-cells = <1>; - #size-cells = <1>; - - jr@1000 { - compatible = "fsl,sec-v6.0-job-ring", - "fsl,sec-v5.2-job-ring", - "fsl,sec-v5.0-job-ring", - "fsl,sec-v4.4-job-ring", - "fsl,sec-v4.0-job-ring"; - reg = <0x1000 0x1000>; - }; - - jr@2000 { - compatible = "fsl,sec-v6.0-job-ring", - "fsl,sec-v5.2-job-ring", - "fsl,sec-v5.0-job-ring", - "fsl,sec-v4.4-job-ring", - "fsl,sec-v4.0-job-ring"; - reg = <0x2000 0x1000>; - }; - -In the C293 device tree, we add the include of public property: - - crypto@a0000 { - /include/ "qoriq-sec6.0.dtsi" - } - - crypto@a0000 { - reg = <0xa0000 0x20000>; - ranges = <0 0xa0000 0x20000>; - - jr@1000 { - interrupts = <49 2 0 0>; - }; - - jr@2000 { - interrupts = <50 2 0 0>; - }; - }; +SEC 6 is as Freescale's Cryptographic Accelerator and Assurance Module (CAAM). +Currently Freescale powerpc chip C29X is embedded with SEC 6. +SEC 6 device tree binding include: + -SEC 6 Node + -Job Ring Node + -Full Example + +===================================================================== +SEC 6 Node + +Description + + Node defines the base address of the SEC 6 block. + This block specifies the address range of all global + configuration registers for the SEC 6 block. + For example, In C293, we could see three SEC 6 node. + +PROPERTIES + + - compatible + Usage: required + Value type: + Definition: Must include "fsl,sec-v6.0". + + - fsl,sec-era + Usage: optional + Value type: + Definition: A standard property. Define the 'ERA' of the SEC + device. + + - #address-cells + Usage: required + Value type: + Definition: A standard property. Defines the number of cells + for representing physical addresses in child nodes. + + - #size-cells + Usage: required + Value type: + Definition: A standard property. Defines the number of cells + for representing the size of physical addresses in + child nodes. + + - reg + Usage: required + Value type: + Definition: A standard property. Specifies the physical + address and length of the SEC 6 configuration registers. + + - ranges + Usage: required + Value type: + Definition: A standard property. Specifies the physical address + range of the SEC 6.0 register space (-SNVS not included). A + triplet that includes the child address, parent address, & + length. + + Note: All other standard properties (see the Devicetree Specification) + are allowed but are optional. + +EXAMPLE + crypto@a0000 { + compatible = "fsl,sec-v6.0"; + fsl,sec-era = <6>; + #address-cells = <1>; + #size-cells = <1>; + reg = <0xa0000 0x20000>; + ranges = <0 0xa0000 0x20000>; + }; + +===================================================================== +Job Ring (JR) Node + + Child of the crypto node defines data processing interface to SEC 6 + across the peripheral bus for purposes of processing + cryptographic descriptors. The specified address + range can be made visible to one (or more) cores. + The interrupt defined for this node is controlled within + the address range of this node. + + - compatible + Usage: required + Value type: + Definition: Must include "fsl,sec-v6.0-job-ring". + + - reg + Usage: required + Value type: + Definition: Specifies a two JR parameters: an offset from + the parent physical address and the length the JR registers. + + - interrupts + Usage: required + Value type: + Definition: Specifies the interrupts generated by this + device. The value of the interrupts property + consists of one interrupt specifier. The format + of the specifier is defined by the binding document + describing the node's interrupt parent. + +EXAMPLE + jr@1000 { + compatible = "fsl,sec-v6.0-job-ring"; + reg = <0x1000 0x1000>; + interrupts = <49 2 0 0>; + }; + +=================================================================== +Full Example + +Since some chips may contain more than one SEC, the dtsi contains +only the node contents, not the node itself. A chip using the SEC +should include the dtsi inside each SEC node. Example: + +In qoriq-sec6.0.dtsi: + + compatible = "fsl,sec-v6.0"; + fsl,sec-era = <6>; + #address-cells = <1>; + #size-cells = <1>; + + jr@1000 { + compatible = "fsl,sec-v6.0-job-ring", + "fsl,sec-v5.2-job-ring", + "fsl,sec-v5.0-job-ring", + "fsl,sec-v4.4-job-ring", + "fsl,sec-v4.0-job-ring"; + reg = <0x1000 0x1000>; + }; + + jr@2000 { + compatible = "fsl,sec-v6.0-job-ring", + "fsl,sec-v5.2-job-ring", + "fsl,sec-v5.0-job-ring", + "fsl,sec-v4.4-job-ring", + "fsl,sec-v4.0-job-ring"; + reg = <0x2000 0x1000>; + }; + +In the C293 device tree, we add the include of public property: + + crypto@a0000 { + /include/ "qoriq-sec6.0.dtsi" + } + + crypto@a0000 { + reg = <0xa0000 0x20000>; + ranges = <0 0xa0000 0x20000>; + + jr@1000 { + interrupts = <49 2 0 0>; + }; + + jr@2000 { + interrupts = <50 2 0 0>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/crypto/qcom-qce.yaml index 76a6053df..e285e382d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/crypto/qcom-qce.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/crypto/qcom-qce.yaml @@ -1,171 +1,171 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/crypto/qcom-qce.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm crypto engine driver - -maintainers: - - Bhupesh Sharma - -description: - This document defines the binding for the QCE crypto - controller found on Qualcomm parts. - -properties: - compatible: - oneOf: - - const: qcom,crypto-v5.1 - deprecated: true - description: Kept only for ABI backward compatibility - - - const: qcom,crypto-v5.4 - deprecated: true - description: Kept only for ABI backward compatibility - - - items: - - enum: - - qcom,ipq4019-qce - - qcom,sm8150-qce - - const: qcom,qce - - - items: - - enum: - - qcom,ipq6018-qce - - qcom,ipq8074-qce - - qcom,ipq9574-qce - - qcom,msm8996-qce - - qcom,qcm2290-qce - - qcom,sdm845-qce - - qcom,sm6115-qce - - const: qcom,ipq4019-qce - - const: qcom,qce - - - items: - - enum: - - qcom,sc7280-qce - - qcom,sm6350-qce - - qcom,sm8250-qce - - qcom,sm8350-qce - - qcom,sm8450-qce - - qcom,sm8550-qce - - qcom,sm8650-qce - - const: qcom,sm8150-qce - - const: qcom,qce - - reg: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 3 - - clock-names: - minItems: 1 - maxItems: 3 - - iommus: - minItems: 1 - maxItems: 8 - description: - phandle to apps_smmu node with sid mask. - - interconnects: - maxItems: 1 - description: - Interconnect path between qce crypto and main memory. - - interconnect-names: - const: memory - - dmas: - items: - - description: DMA specifiers for rx dma channel. - - description: DMA specifiers for tx dma channel. - - dma-names: - items: - - const: rx - - const: tx - -allOf: - - if: - properties: - compatible: - contains: - enum: - - qcom,crypto-v5.1 - - qcom,crypto-v5.4 - - qcom,ipq6018-qce - - qcom,ipq8074-qce - - qcom,ipq9574-qce - - qcom,msm8996-qce - - qcom,sdm845-qce - then: - properties: - clocks: - maxItems: 3 - clock-names: - items: - - const: iface - - const: bus - - const: core - required: - - clocks - - clock-names - - - if: - properties: - compatible: - contains: - enum: - - qcom,qcm2290-qce - - qcom,sm6115-qce - then: - properties: - clocks: - maxItems: 1 - clock-names: - items: - - const: core - required: - - clocks - - clock-names - - - if: - properties: - compatible: - contains: - enum: - - qcom,sm8150-qce - then: - properties: - clocks: false - clock-names: false - -required: - - compatible - - reg - - dmas - - dma-names - -additionalProperties: false - -examples: - - | - #include - crypto-engine@fd45a000 { - compatible = "qcom,ipq6018-qce", "qcom,ipq4019-qce", "qcom,qce"; - reg = <0xfd45a000 0x6000>; - clocks = <&gcc GCC_CE2_AHB_CLK>, - <&gcc GCC_CE2_AXI_CLK>, - <&gcc GCC_CE2_CLK>; - clock-names = "iface", "bus", "core"; - dmas = <&cryptobam 2>, <&cryptobam 3>; - dma-names = "rx", "tx"; - iommus = <&apps_smmu 0x584 0x0011>, - <&apps_smmu 0x586 0x0011>, - <&apps_smmu 0x594 0x0011>, - <&apps_smmu 0x596 0x0011>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/qcom-qce.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm crypto engine driver + +maintainers: + - Bhupesh Sharma + +description: + This document defines the binding for the QCE crypto + controller found on Qualcomm parts. + +properties: + compatible: + oneOf: + - const: qcom,crypto-v5.1 + deprecated: true + description: Kept only for ABI backward compatibility + + - const: qcom,crypto-v5.4 + deprecated: true + description: Kept only for ABI backward compatibility + + - items: + - enum: + - qcom,ipq4019-qce + - qcom,sm8150-qce + - const: qcom,qce + + - items: + - enum: + - qcom,ipq6018-qce + - qcom,ipq8074-qce + - qcom,ipq9574-qce + - qcom,msm8996-qce + - qcom,qcm2290-qce + - qcom,sdm845-qce + - qcom,sm6115-qce + - const: qcom,ipq4019-qce + - const: qcom,qce + + - items: + - enum: + - qcom,sc7280-qce + - qcom,sm6350-qce + - qcom,sm8250-qce + - qcom,sm8350-qce + - qcom,sm8450-qce + - qcom,sm8550-qce + - qcom,sm8650-qce + - const: qcom,sm8150-qce + - const: qcom,qce + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 3 + + clock-names: + minItems: 1 + maxItems: 3 + + iommus: + minItems: 1 + maxItems: 8 + description: + phandle to apps_smmu node with sid mask. + + interconnects: + maxItems: 1 + description: + Interconnect path between qce crypto and main memory. + + interconnect-names: + const: memory + + dmas: + items: + - description: DMA specifiers for rx dma channel. + - description: DMA specifiers for tx dma channel. + + dma-names: + items: + - const: rx + - const: tx + +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,crypto-v5.1 + - qcom,crypto-v5.4 + - qcom,ipq6018-qce + - qcom,ipq8074-qce + - qcom,ipq9574-qce + - qcom,msm8996-qce + - qcom,sdm845-qce + then: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: iface + - const: bus + - const: core + required: + - clocks + - clock-names + + - if: + properties: + compatible: + contains: + enum: + - qcom,qcm2290-qce + - qcom,sm6115-qce + then: + properties: + clocks: + maxItems: 1 + clock-names: + items: + - const: core + required: + - clocks + - clock-names + + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8150-qce + then: + properties: + clocks: false + clock-names: false + +required: + - compatible + - reg + - dmas + - dma-names + +additionalProperties: false + +examples: + - | + #include + crypto-engine@fd45a000 { + compatible = "qcom,ipq6018-qce", "qcom,ipq4019-qce", "qcom,qce"; + reg = <0xfd45a000 0x6000>; + clocks = <&gcc GCC_CE2_AHB_CLK>, + <&gcc GCC_CE2_AXI_CLK>, + <&gcc GCC_CE2_CLK>; + clock-names = "iface", "bus", "core"; + dmas = <&cryptobam 2>, <&cryptobam 3>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x584 0x0011>, + <&apps_smmu 0x586 0x0011>, + <&apps_smmu 0x594 0x0011>, + <&apps_smmu 0x596 0x0011>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/allwinner,sun4i-a10-display-engine.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/allwinner,sun4i-a10-display-engine.yaml index 6e890adeb..e6088f379 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/allwinner,sun4i-a10-display-engine.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/allwinner,sun4i-a10-display-engine.yaml @@ -1,117 +1,117 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/allwinner,sun4i-a10-display-engine.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Allwinner A10 Display Engine Pipeline - -maintainers: - - Chen-Yu Tsai - - Maxime Ripard - -description: | - The display engine pipeline (and its entry point, since it can be - either directly the backend or the frontend) is represented as an - extra node. - - The Allwinner A10 Display pipeline is composed of several components - that are going to be documented below: - - For all connections between components up to the TCONs in the - display pipeline, when there are multiple components of the same - type at the same depth, the local endpoint ID must be the same as - the remote component's index. For example, if the remote endpoint is - Frontend 1, then the local endpoint ID must be 1. - - Frontend 0 [0] ------- [0] Backend 0 [0] ------- [0] TCON 0 - [1] -- -- [1] [1] -- -- [1] - \ / \ / - X X - / \ / \ - [0] -- -- [0] [0] -- -- [0] - Frontend 1 [1] ------- [1] Backend 1 [1] ------- [1] TCON 1 - - For a two pipeline system such as the one depicted above, the lines - represent the connections between the components, while the numbers - within the square brackets corresponds to the ID of the local endpoint. - - The same rule also applies to DE 2.0 mixer-TCON connections: - - Mixer 0 [0] ----------- [0] TCON 0 - [1] ---- ---- [1] - \ / - X - / \ - [0] ---- ---- [0] - Mixer 1 [1] ----------- [1] TCON 1 - -properties: - compatible: - enum: - - allwinner,sun4i-a10-display-engine - - allwinner,sun5i-a10s-display-engine - - allwinner,sun5i-a13-display-engine - - allwinner,sun6i-a31-display-engine - - allwinner,sun6i-a31s-display-engine - - allwinner,sun7i-a20-display-engine - - allwinner,sun8i-a23-display-engine - - allwinner,sun8i-a33-display-engine - - allwinner,sun8i-a83t-display-engine - - allwinner,sun8i-h3-display-engine - - allwinner,sun8i-r40-display-engine - - allwinner,sun8i-v3s-display-engine - - allwinner,sun9i-a80-display-engine - - allwinner,sun20i-d1-display-engine - - allwinner,sun50i-a64-display-engine - - allwinner,sun50i-h6-display-engine - - allwinner,pipelines: - $ref: /schemas/types.yaml#/definitions/phandle-array - minItems: 1 - maxItems: 2 - items: - maxItems: 1 - description: | - Available display engine frontends (DE 1.0) or mixers (DE - 2.0/3.0) available. - -required: - - compatible - - allwinner,pipelines - -additionalProperties: false - -if: - properties: - compatible: - contains: - enum: - - allwinner,sun4i-a10-display-engine - - allwinner,sun6i-a31-display-engine - - allwinner,sun6i-a31s-display-engine - - allwinner,sun7i-a20-display-engine - - allwinner,sun8i-a83t-display-engine - - allwinner,sun8i-r40-display-engine - - allwinner,sun9i-a80-display-engine - - allwinner,sun20i-d1-display-engine - - allwinner,sun50i-a64-display-engine - -then: - properties: - allwinner,pipelines: - minItems: 2 - -else: - properties: - allwinner,pipelines: - maxItems: 1 - -examples: - - | - de: display-engine { - compatible = "allwinner,sun4i-a10-display-engine"; - allwinner,pipelines = <&fe0>, <&fe1>; - }; - -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/allwinner,sun4i-a10-display-engine.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner A10 Display Engine Pipeline + +maintainers: + - Chen-Yu Tsai + - Maxime Ripard + +description: | + The display engine pipeline (and its entry point, since it can be + either directly the backend or the frontend) is represented as an + extra node. + + The Allwinner A10 Display pipeline is composed of several components + that are going to be documented below: + + For all connections between components up to the TCONs in the + display pipeline, when there are multiple components of the same + type at the same depth, the local endpoint ID must be the same as + the remote component's index. For example, if the remote endpoint is + Frontend 1, then the local endpoint ID must be 1. + + Frontend 0 [0] ------- [0] Backend 0 [0] ------- [0] TCON 0 + [1] -- -- [1] [1] -- -- [1] + \ / \ / + X X + / \ / \ + [0] -- -- [0] [0] -- -- [0] + Frontend 1 [1] ------- [1] Backend 1 [1] ------- [1] TCON 1 + + For a two pipeline system such as the one depicted above, the lines + represent the connections between the components, while the numbers + within the square brackets corresponds to the ID of the local endpoint. + + The same rule also applies to DE 2.0 mixer-TCON connections: + + Mixer 0 [0] ----------- [0] TCON 0 + [1] ---- ---- [1] + \ / + X + / \ + [0] ---- ---- [0] + Mixer 1 [1] ----------- [1] TCON 1 + +properties: + compatible: + enum: + - allwinner,sun4i-a10-display-engine + - allwinner,sun5i-a10s-display-engine + - allwinner,sun5i-a13-display-engine + - allwinner,sun6i-a31-display-engine + - allwinner,sun6i-a31s-display-engine + - allwinner,sun7i-a20-display-engine + - allwinner,sun8i-a23-display-engine + - allwinner,sun8i-a33-display-engine + - allwinner,sun8i-a83t-display-engine + - allwinner,sun8i-h3-display-engine + - allwinner,sun8i-r40-display-engine + - allwinner,sun8i-v3s-display-engine + - allwinner,sun9i-a80-display-engine + - allwinner,sun20i-d1-display-engine + - allwinner,sun50i-a64-display-engine + - allwinner,sun50i-h6-display-engine + + allwinner,pipelines: + $ref: /schemas/types.yaml#/definitions/phandle-array + minItems: 1 + maxItems: 2 + items: + maxItems: 1 + description: | + Available display engine frontends (DE 1.0) or mixers (DE + 2.0/3.0) available. + +required: + - compatible + - allwinner,pipelines + +additionalProperties: false + +if: + properties: + compatible: + contains: + enum: + - allwinner,sun4i-a10-display-engine + - allwinner,sun6i-a31-display-engine + - allwinner,sun6i-a31s-display-engine + - allwinner,sun7i-a20-display-engine + - allwinner,sun8i-a83t-display-engine + - allwinner,sun8i-r40-display-engine + - allwinner,sun9i-a80-display-engine + - allwinner,sun20i-d1-display-engine + - allwinner,sun50i-a64-display-engine + +then: + properties: + allwinner,pipelines: + minItems: 2 + +else: + properties: + allwinner,pipelines: + maxItems: 1 + +examples: + - | + de: display-engine { + compatible = "allwinner,sun4i-a10-display-engine"; + allwinner,pipelines = <&fe0>, <&fe1>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/allwinner,sun4i-a10-hdmi.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/allwinner,sun4i-a10-hdmi.yaml index 318bca084..55703caac 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/allwinner,sun4i-a10-hdmi.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/allwinner,sun4i-a10-hdmi.yaml @@ -1,170 +1,170 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/allwinner,sun4i-a10-hdmi.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Allwinner A10 HDMI Controller - -description: | - The HDMI Encoder supports the HDMI video and audio outputs, and does - CEC. It is one end of the pipeline. - -maintainers: - - Chen-Yu Tsai - - Maxime Ripard - -properties: - compatible: - oneOf: - - const: allwinner,sun4i-a10-hdmi - - const: allwinner,sun5i-a10s-hdmi - - const: allwinner,sun6i-a31-hdmi - - items: - - const: allwinner,sun7i-a20-hdmi - - const: allwinner,sun5i-a10s-hdmi - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - oneOf: - - items: - - description: The HDMI interface clock - - description: The HDMI module clock - - description: The first video PLL - - description: The second video PLL - - - items: - - description: The HDMI interface clock - - description: The HDMI module clock - - description: The HDMI DDC clock - - description: The first video PLL - - description: The second video PLL - - clock-names: - oneOf: - - items: - - const: ahb - - const: mod - - const: pll-0 - - const: pll-1 - - - items: - - const: ahb - - const: mod - - const: ddc - - const: pll-0 - - const: pll-1 - - resets: - maxItems: 1 - - dmas: - items: - - description: DDC Transmission DMA Channel - - description: DDC Reception DMA Channel - - description: Audio Transmission DMA Channel - - dma-names: - items: - - const: ddc-tx - - const: ddc-rx - - const: audio-tx - - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port@0: - $ref: /schemas/graph.yaml#/properties/port - description: | - Input endpoints of the controller. - - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: | - Output endpoints of the controller. Usually an HDMI - connector. - - required: - - port@0 - - port@1 - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - - dmas - - dma-names - -if: - properties: - compatible: - contains: - const: allwinner,sun6i-a31-hdmi - -then: - properties: - clocks: - minItems: 5 - - clock-names: - minItems: 5 - - required: - - resets - -additionalProperties: false - -examples: - - | - #include - #include - #include - - hdmi: hdmi@1c16000 { - compatible = "allwinner,sun4i-a10-hdmi"; - reg = <0x01c16000 0x1000>; - interrupts = <58>; - clocks = <&ccu CLK_AHB_HDMI0>, <&ccu CLK_HDMI>, - <&ccu CLK_PLL_VIDEO0_2X>, - <&ccu CLK_PLL_VIDEO1_2X>; - clock-names = "ahb", "mod", "pll-0", "pll-1"; - dmas = <&dma SUN4I_DMA_NORMAL 16>, - <&dma SUN4I_DMA_NORMAL 16>, - <&dma SUN4I_DMA_DEDICATED 24>; - dma-names = "ddc-tx", "ddc-rx", "audio-tx"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - hdmi_in: port@0 { - #address-cells = <1>; - #size-cells = <0>; - reg = <0>; - - hdmi_in_tcon0: endpoint@0 { - reg = <0>; - remote-endpoint = <&tcon0_out_hdmi>; - }; - - hdmi_in_tcon1: endpoint@1 { - reg = <1>; - remote-endpoint = <&tcon1_out_hdmi>; - }; - }; - - hdmi_out: port@1 { - reg = <1>; - }; - }; - }; - -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/allwinner,sun4i-a10-hdmi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner A10 HDMI Controller + +description: | + The HDMI Encoder supports the HDMI video and audio outputs, and does + CEC. It is one end of the pipeline. + +maintainers: + - Chen-Yu Tsai + - Maxime Ripard + +properties: + compatible: + oneOf: + - const: allwinner,sun4i-a10-hdmi + - const: allwinner,sun5i-a10s-hdmi + - const: allwinner,sun6i-a31-hdmi + - items: + - const: allwinner,sun7i-a20-hdmi + - const: allwinner,sun5i-a10s-hdmi + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + oneOf: + - items: + - description: The HDMI interface clock + - description: The HDMI module clock + - description: The first video PLL + - description: The second video PLL + + - items: + - description: The HDMI interface clock + - description: The HDMI module clock + - description: The HDMI DDC clock + - description: The first video PLL + - description: The second video PLL + + clock-names: + oneOf: + - items: + - const: ahb + - const: mod + - const: pll-0 + - const: pll-1 + + - items: + - const: ahb + - const: mod + - const: ddc + - const: pll-0 + - const: pll-1 + + resets: + maxItems: 1 + + dmas: + items: + - description: DDC Transmission DMA Channel + - description: DDC Reception DMA Channel + - description: Audio Transmission DMA Channel + + dma-names: + items: + - const: ddc-tx + - const: ddc-rx + - const: audio-tx + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: | + Input endpoints of the controller. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: | + Output endpoints of the controller. Usually an HDMI + connector. + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - dmas + - dma-names + +if: + properties: + compatible: + contains: + const: allwinner,sun6i-a31-hdmi + +then: + properties: + clocks: + minItems: 5 + + clock-names: + minItems: 5 + + required: + - resets + +additionalProperties: false + +examples: + - | + #include + #include + #include + + hdmi: hdmi@1c16000 { + compatible = "allwinner,sun4i-a10-hdmi"; + reg = <0x01c16000 0x1000>; + interrupts = <58>; + clocks = <&ccu CLK_AHB_HDMI0>, <&ccu CLK_HDMI>, + <&ccu CLK_PLL_VIDEO0_2X>, + <&ccu CLK_PLL_VIDEO1_2X>; + clock-names = "ahb", "mod", "pll-0", "pll-1"; + dmas = <&dma SUN4I_DMA_NORMAL 16>, + <&dma SUN4I_DMA_NORMAL 16>, + <&dma SUN4I_DMA_DEDICATED 24>; + dma-names = "ddc-tx", "ddc-rx", "audio-tx"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + hdmi_in: port@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + hdmi_in_tcon0: endpoint@0 { + reg = <0>; + remote-endpoint = <&tcon0_out_hdmi>; + }; + + hdmi_in_tcon1: endpoint@1 { + reg = <1>; + remote-endpoint = <&tcon1_out_hdmi>; + }; + }; + + hdmi_out: port@1 { + reg = <1>; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/amlogic,meson-dw-hdmi.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/amlogic,meson-dw-hdmi.yaml index df216c6ee..84d68b8cf 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/amlogic,meson-dw-hdmi.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/amlogic,meson-dw-hdmi.yaml @@ -1,157 +1,157 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -# Copyright 2019 BayLibre, SAS -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/amlogic,meson-dw-hdmi.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Amlogic specific extensions to the Synopsys Designware HDMI Controller - -maintainers: - - Neil Armstrong - -allOf: - - $ref: /schemas/sound/dai-common.yaml# - -description: | - The Amlogic Meson Synopsys Designware Integration is composed of - - A Synopsys DesignWare HDMI Controller IP - - A TOP control block controlling the Clocks and PHY - - A custom HDMI PHY in order to convert video to TMDS signal - ___________________________________ - | HDMI TOP |<= HPD - |___________________________________| - | | | - | Synopsys HDMI | HDMI PHY |=> TMDS - | Controller |________________| - |___________________________________|<=> DDC - - The HDMI TOP block only supports HPD sensing. - The Synopsys HDMI Controller interrupt is routed through the - TOP Block interrupt. - Communication to the TOP Block and the Synopsys HDMI Controller is done - via a pair of dedicated addr+read/write registers. - The HDMI PHY is configured by registers in the HHI register block. - - Pixel data arrives in "4:4:4" format from the VENC block and the VPU HDMI mux - selects either the ENCI encoder for the 576i or 480i formats or the ENCP - encoder for all the other formats including interlaced HD formats. - - The VENC uses a DVI encoder on top of the ENCI or ENCP encoders to generate - DVI timings for the HDMI controller. - - Amlogic Meson GXBB, GXL and GXM SoCs families embeds the Synopsys DesignWare - HDMI TX IP version 2.01a with HDCP and I2C & S/PDIF - audio source interfaces. - -properties: - compatible: - oneOf: - - items: - - enum: - - amlogic,meson-gxbb-dw-hdmi # GXBB (S905) - - amlogic,meson-gxl-dw-hdmi # GXL (S905X, S905D) - - amlogic,meson-gxm-dw-hdmi # GXM (S912) - - const: amlogic,meson-gx-dw-hdmi - - enum: - - amlogic,meson-g12a-dw-hdmi # G12A (S905X2, S905Y2, S905D2) - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - minItems: 3 - - clock-names: - items: - - const: isfr - - const: iahb - - const: venci - - power-domains: - maxItems: 1 - description: phandle to the associated power domain - - resets: - minItems: 3 - - reset-names: - items: - - const: hdmitx_apb - - const: hdmitx - - const: hdmitx_phy - - hdmi-supply: - description: phandle to an external 5V regulator to power the HDMI logic - - port@0: - $ref: /schemas/graph.yaml#/properties/port - description: - A port node pointing to the VENC Input port node. - - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: - A port node pointing to the TMDS Output port node. - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - - "#sound-dai-cells": - const: 0 - - sound-name-prefix: true - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - - resets - - reset-names - - port@0 - - port@1 - - "#address-cells" - - "#size-cells" - -additionalProperties: false - -examples: - - | - hdmi_tx: hdmi-tx@c883a000 { - compatible = "amlogic,meson-gxbb-dw-hdmi", "amlogic,meson-gx-dw-hdmi"; - reg = <0xc883a000 0x1c>; - interrupts = <57>; - resets = <&reset_apb>, <&reset_hdmitx>, <&reset_hdmitx_phy>; - reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy"; - clocks = <&clk_isfr>, <&clk_iahb>, <&clk_venci>; - clock-names = "isfr", "iahb", "venci"; - power-domains = <&pd_vpu>; - #address-cells = <1>; - #size-cells = <0>; - - /* VPU VENC Input */ - hdmi_tx_venc_port: port@0 { - reg = <0>; - - hdmi_tx_in: endpoint { - remote-endpoint = <&hdmi_tx_out>; - }; - }; - - /* TMDS Output */ - hdmi_tx_tmds_port: port@1 { - reg = <1>; - - hdmi_tx_tmds_out: endpoint { - remote-endpoint = <&hdmi_connector_in>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2019 BayLibre, SAS +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/amlogic,meson-dw-hdmi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic specific extensions to the Synopsys Designware HDMI Controller + +maintainers: + - Neil Armstrong + +allOf: + - $ref: /schemas/sound/dai-common.yaml# + +description: | + The Amlogic Meson Synopsys Designware Integration is composed of + - A Synopsys DesignWare HDMI Controller IP + - A TOP control block controlling the Clocks and PHY + - A custom HDMI PHY in order to convert video to TMDS signal + ___________________________________ + | HDMI TOP |<= HPD + |___________________________________| + | | | + | Synopsys HDMI | HDMI PHY |=> TMDS + | Controller |________________| + |___________________________________|<=> DDC + + The HDMI TOP block only supports HPD sensing. + The Synopsys HDMI Controller interrupt is routed through the + TOP Block interrupt. + Communication to the TOP Block and the Synopsys HDMI Controller is done + via a pair of dedicated addr+read/write registers. + The HDMI PHY is configured by registers in the HHI register block. + + Pixel data arrives in "4:4:4" format from the VENC block and the VPU HDMI mux + selects either the ENCI encoder for the 576i or 480i formats or the ENCP + encoder for all the other formats including interlaced HD formats. + + The VENC uses a DVI encoder on top of the ENCI or ENCP encoders to generate + DVI timings for the HDMI controller. + + Amlogic Meson GXBB, GXL and GXM SoCs families embeds the Synopsys DesignWare + HDMI TX IP version 2.01a with HDCP and I2C & S/PDIF + audio source interfaces. + +properties: + compatible: + oneOf: + - items: + - enum: + - amlogic,meson-gxbb-dw-hdmi # GXBB (S905) + - amlogic,meson-gxl-dw-hdmi # GXL (S905X, S905D) + - amlogic,meson-gxm-dw-hdmi # GXM (S912) + - const: amlogic,meson-gx-dw-hdmi + - enum: + - amlogic,meson-g12a-dw-hdmi # G12A (S905X2, S905Y2, S905D2) + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 3 + + clock-names: + items: + - const: isfr + - const: iahb + - const: venci + + power-domains: + maxItems: 1 + description: phandle to the associated power domain + + resets: + minItems: 3 + + reset-names: + items: + - const: hdmitx_apb + - const: hdmitx + - const: hdmitx_phy + + hdmi-supply: + description: phandle to an external 5V regulator to power the HDMI logic + + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: + A port node pointing to the VENC Input port node. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: + A port node pointing to the TMDS Output port node. + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + "#sound-dai-cells": + const: 0 + + sound-name-prefix: true + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + - reset-names + - port@0 + - port@1 + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + hdmi_tx: hdmi-tx@c883a000 { + compatible = "amlogic,meson-gxbb-dw-hdmi", "amlogic,meson-gx-dw-hdmi"; + reg = <0xc883a000 0x1c>; + interrupts = <57>; + resets = <&reset_apb>, <&reset_hdmitx>, <&reset_hdmitx_phy>; + reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy"; + clocks = <&clk_isfr>, <&clk_iahb>, <&clk_venci>; + clock-names = "isfr", "iahb", "venci"; + power-domains = <&pd_vpu>; + #address-cells = <1>; + #size-cells = <0>; + + /* VPU VENC Input */ + hdmi_tx_venc_port: port@0 { + reg = <0>; + + hdmi_tx_in: endpoint { + remote-endpoint = <&hdmi_tx_out>; + }; + }; + + /* TMDS Output */ + hdmi_tx_tmds_port: port@1 { + reg = <1>; + + hdmi_tx_tmds_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/arm,malidp.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/arm,malidp.yaml index 5e0d5c866..91812573f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/arm,malidp.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/arm,malidp.yaml @@ -1,119 +1,119 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/arm,malidp.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Arm Mali Display Processor (Mali-DP) - -maintainers: - - Liviu Dudau - - Andre Przywara - -description: - The following bindings apply to a family of Display Processors sold as - licensable IP by ARM Ltd. The bindings describe the Mali DP500, DP550 and - DP650 processors that offer multiple composition layers, support for - rotation and scaling output. - -properties: - compatible: - enum: - - arm,mali-dp500 - - arm,mali-dp550 - - arm,mali-dp650 - - reg: - maxItems: 1 - - interrupts: - items: - - description: - The interrupt used by the Display Engine (DE). Can be shared with - the interrupt for the Scaling Engine (SE), but it will have to be - listed individually. - - description: - The interrupt used by the Scaling Engine (SE). Can be shared with - the interrupt for the Display Engine (DE), but it will have to be - listed individually. - - interrupt-names: - items: - - const: DE - - const: SE - - clock-names: - items: - - const: pxlclk - - const: mclk - - const: aclk - - const: pclk - - clocks: - items: - - description: the pixel clock feeding the output PLL of the processor - - description: the main processor clock - - description: the AXI interface clock - - description: the APB interface clock - - memory-region: - maxItems: 1 - description: - Phandle to a node describing memory to be used for the framebuffer. - If not present, the framebuffer may be located anywhere in memory. - - arm,malidp-output-port-lines: - $ref: /schemas/types.yaml#/definitions/uint8-array - description: - Number of output lines/bits for each colour channel. - items: - - description: number of output lines for the red channel (R) - - description: number of output lines for the green channel (G) - - description: number of output lines for the blue channel (B) - - arm,malidp-arqos-value: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Quality-of-Service value for the display engine FIFOs, to write - into the RQOS register of the DP500. - See the ARM Mali-DP500 TRM for details on the encoding. - If omitted, the RQOS register will not be changed. - - port: - $ref: /schemas/graph.yaml#/properties/port - unevaluatedProperties: false - description: - Output endpoint of the controller, connecting the LCD panel signals. - -additionalProperties: false - -required: - - compatible - - reg - - interrupts - - interrupt-names - - clocks - - clock-names - - port - - arm,malidp-output-port-lines - -examples: - - | - dp0: malidp@6f200000 { - compatible = "arm,mali-dp650"; - reg = <0x6f200000 0x20000>; - memory-region = <&display_reserved>; - interrupts = <168>, <168>; - interrupt-names = "DE", "SE"; - clocks = <&oscclk2>, <&fpgaosc0>, <&fpgaosc1>, <&fpgaosc1>; - clock-names = "pxlclk", "mclk", "aclk", "pclk"; - arm,malidp-output-port-lines = /bits/ 8 <8 8 8>; - arm,malidp-arqos-value = <0xd000d000>; - - port { - dp0_output: endpoint { - remote-endpoint = <&tda998x_2_input>; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/arm,malidp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Arm Mali Display Processor (Mali-DP) + +maintainers: + - Liviu Dudau + - Andre Przywara + +description: + The following bindings apply to a family of Display Processors sold as + licensable IP by ARM Ltd. The bindings describe the Mali DP500, DP550 and + DP650 processors that offer multiple composition layers, support for + rotation and scaling output. + +properties: + compatible: + enum: + - arm,mali-dp500 + - arm,mali-dp550 + - arm,mali-dp650 + + reg: + maxItems: 1 + + interrupts: + items: + - description: + The interrupt used by the Display Engine (DE). Can be shared with + the interrupt for the Scaling Engine (SE), but it will have to be + listed individually. + - description: + The interrupt used by the Scaling Engine (SE). Can be shared with + the interrupt for the Display Engine (DE), but it will have to be + listed individually. + + interrupt-names: + items: + - const: DE + - const: SE + + clock-names: + items: + - const: pxlclk + - const: mclk + - const: aclk + - const: pclk + + clocks: + items: + - description: the pixel clock feeding the output PLL of the processor + - description: the main processor clock + - description: the AXI interface clock + - description: the APB interface clock + + memory-region: + maxItems: 1 + description: + Phandle to a node describing memory to be used for the framebuffer. + If not present, the framebuffer may be located anywhere in memory. + + arm,malidp-output-port-lines: + $ref: /schemas/types.yaml#/definitions/uint8-array + description: + Number of output lines/bits for each colour channel. + items: + - description: number of output lines for the red channel (R) + - description: number of output lines for the green channel (G) + - description: number of output lines for the blue channel (B) + + arm,malidp-arqos-value: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Quality-of-Service value for the display engine FIFOs, to write + into the RQOS register of the DP500. + See the ARM Mali-DP500 TRM for details on the encoding. + If omitted, the RQOS register will not be changed. + + port: + $ref: /schemas/graph.yaml#/properties/port + unevaluatedProperties: false + description: + Output endpoint of the controller, connecting the LCD panel signals. + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - clock-names + - port + - arm,malidp-output-port-lines + +examples: + - | + dp0: malidp@6f200000 { + compatible = "arm,mali-dp650"; + reg = <0x6f200000 0x20000>; + memory-region = <&display_reserved>; + interrupts = <168>, <168>; + interrupt-names = "DE", "SE"; + clocks = <&oscclk2>, <&fpgaosc0>, <&fpgaosc1>, <&fpgaosc1>; + clock-names = "pxlclk", "mclk", "aclk", "pclk"; + arm,malidp-output-port-lines = /bits/ 8 <8 8 8>; + arm,malidp-arqos-value = <0xd000d000>; + + port { + dp0_output: endpoint { + remote-endpoint = <&tda998x_2_input>; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml index e0dfae0dc..5b35adf34 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml @@ -1,141 +1,141 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/brcm,bcm2711-hdmi.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Broadcom BCM2711 HDMI Controller - -maintainers: - - Eric Anholt - -properties: - compatible: - enum: - - brcm,bcm2711-hdmi0 - - brcm,bcm2711-hdmi1 - - reg: - items: - - description: HDMI controller register range - - description: DVP register range - - description: HDMI PHY register range - - description: Rate Manager register range - - description: Packet RAM register range - - description: Metadata RAM register range - - description: CSC register range - - description: CEC register range - - description: HD register range - - reg-names: - items: - - const: hdmi - - const: dvp - - const: phy - - const: rm - - const: packet - - const: metadata - - const: csc - - const: cec - - const: hd - - clocks: - items: - - description: The HDMI state machine clock - - description: The Pixel BVB clock - - description: The HDMI Audio parent clock - - description: The HDMI CEC parent clock - - clock-names: - items: - - const: hdmi - - const: bvb - - const: audio - - const: cec - - interrupts: - items: - - description: CEC TX interrupt - - description: CEC RX interrupt - - description: CEC stuck at low interrupt - - description: Wake-up interrupt - - description: Hotplug connected interrupt - - description: Hotplug removed interrupt - - interrupt-names: - items: - - const: cec-tx - - const: cec-rx - - const: cec-low - - const: wakeup - - const: hpd-connected - - const: hpd-removed - - ddc: - $ref: /schemas/types.yaml#/definitions/phandle - description: > - Phandle of the I2C controller used for DDC EDID probing - - hpd-gpios: - maxItems: 1 - description: > - The GPIO pin for the HDMI hotplug detect (if it doesn't appear - as an interrupt/status bit in the HDMI controller itself) - - dmas: - maxItems: 1 - description: > - Should contain one entry pointing to the DMA channel used to - transfer audio data. - - dma-names: - const: audio-rx - - resets: - maxItems: 1 - - wifi-2.4ghz-coexistence: - type: boolean - description: > - Should the pixel frequencies in the WiFi frequencies range be - avoided? - -required: - - compatible - - reg - - reg-names - - clocks - - resets - - ddc - -additionalProperties: false - -examples: - - | - hdmi0: hdmi@7ef00700 { - compatible = "brcm,bcm2711-hdmi0"; - reg = <0x7ef00700 0x300>, - <0x7ef00300 0x200>, - <0x7ef00f00 0x80>, - <0x7ef00f80 0x80>, - <0x7ef01b00 0x200>, - <0x7ef01f00 0x400>, - <0x7ef00200 0x80>, - <0x7ef04300 0x100>, - <0x7ef20000 0x100>; - reg-names = "hdmi", - "dvp", - "phy", - "rm", - "packet", - "metadata", - "csc", - "cec", - "hd"; - clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 1>, <&clk_27MHz>; - clock-names = "hdmi", "bvb", "audio", "cec"; - resets = <&dvp 0>; - ddc = <&ddc0>; - }; - -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/brcm,bcm2711-hdmi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM2711 HDMI Controller + +maintainers: + - Eric Anholt + +properties: + compatible: + enum: + - brcm,bcm2711-hdmi0 + - brcm,bcm2711-hdmi1 + + reg: + items: + - description: HDMI controller register range + - description: DVP register range + - description: HDMI PHY register range + - description: Rate Manager register range + - description: Packet RAM register range + - description: Metadata RAM register range + - description: CSC register range + - description: CEC register range + - description: HD register range + + reg-names: + items: + - const: hdmi + - const: dvp + - const: phy + - const: rm + - const: packet + - const: metadata + - const: csc + - const: cec + - const: hd + + clocks: + items: + - description: The HDMI state machine clock + - description: The Pixel BVB clock + - description: The HDMI Audio parent clock + - description: The HDMI CEC parent clock + + clock-names: + items: + - const: hdmi + - const: bvb + - const: audio + - const: cec + + interrupts: + items: + - description: CEC TX interrupt + - description: CEC RX interrupt + - description: CEC stuck at low interrupt + - description: Wake-up interrupt + - description: Hotplug connected interrupt + - description: Hotplug removed interrupt + + interrupt-names: + items: + - const: cec-tx + - const: cec-rx + - const: cec-low + - const: wakeup + - const: hpd-connected + - const: hpd-removed + + ddc: + $ref: /schemas/types.yaml#/definitions/phandle + description: > + Phandle of the I2C controller used for DDC EDID probing + + hpd-gpios: + maxItems: 1 + description: > + The GPIO pin for the HDMI hotplug detect (if it doesn't appear + as an interrupt/status bit in the HDMI controller itself) + + dmas: + maxItems: 1 + description: > + Should contain one entry pointing to the DMA channel used to + transfer audio data. + + dma-names: + const: audio-rx + + resets: + maxItems: 1 + + wifi-2.4ghz-coexistence: + type: boolean + description: > + Should the pixel frequencies in the WiFi frequencies range be + avoided? + +required: + - compatible + - reg + - reg-names + - clocks + - resets + - ddc + +additionalProperties: false + +examples: + - | + hdmi0: hdmi@7ef00700 { + compatible = "brcm,bcm2711-hdmi0"; + reg = <0x7ef00700 0x300>, + <0x7ef00300 0x200>, + <0x7ef00f00 0x80>, + <0x7ef00f80 0x80>, + <0x7ef01b00 0x200>, + <0x7ef01f00 0x400>, + <0x7ef00200 0x80>, + <0x7ef04300 0x100>, + <0x7ef20000 0x100>; + reg-names = "hdmi", + "dvp", + "phy", + "rm", + "packet", + "metadata", + "csc", + "cec", + "hd"; + clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 1>, <&clk_27MHz>; + clock-names = "hdmi", "bvb", "audio", "cec"; + resets = <&dvp 0>; + ddc = <&ddc0>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml index a4b722e52..23060324d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml @@ -1,180 +1,180 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/bridge/cdns,dsi.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Cadence DSI bridge - -maintainers: - - Boris Brezillon - -description: | - CDNS DSI is a bridge device which converts DPI to DSI - -properties: - compatible: - enum: - - cdns,dsi - - ti,j721e-dsi - - reg: - minItems: 1 - items: - - description: - Register block for controller's registers. - - description: - Register block for wrapper settings registers in case of TI J7 SoCs. - - clocks: - items: - - description: PSM clock, used by the IP - - description: sys clock, used by the IP - - clock-names: - items: - - const: dsi_p_clk - - const: dsi_sys_clk - - phys: - maxItems: 1 - - phy-names: - const: dphy - - interrupts: - maxItems: 1 - - resets: - maxItems: 1 - - reset-names: - const: dsi_p_rst - - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port@0: - $ref: /schemas/graph.yaml#/properties/port - description: - Output port representing the DSI output. It can have - at most 4 endpoints. The endpoint number is directly encoding - the DSI virtual channel used by this device. - - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: - Input port representing the DPI input. - - required: - - port@1 - -allOf: - - $ref: ../dsi-controller.yaml# - - - if: - properties: - compatible: - contains: - const: ti,j721e-dsi - then: - properties: - reg: - minItems: 2 - maxItems: 2 - power-domains: - maxItems: 1 - else: - properties: - reg: - maxItems: 1 - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - - phys - - phy-names - - ports - -unevaluatedProperties: false - -examples: - - | - bus { - #address-cells = <2>; - #size-cells = <2>; - - dsi@fd0c0000 { - compatible = "cdns,dsi"; - reg = <0x0 0xfd0c0000 0x0 0x1000>; - clocks = <&pclk>, <&sysclk>; - clock-names = "dsi_p_clk", "dsi_sys_clk"; - interrupts = <1>; - phys = <&dphy0>; - phy-names = "dphy"; - - #address-cells = <1>; - #size-cells = <0>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@1 { - reg = <1>; - endpoint { - remote-endpoint = <&xxx_dpi_output>; - }; - }; - }; - - panel@0 { - compatible = "panasonic,vvx10f034n00"; - reg = <0>; - power-supply = <&vcc_lcd_reg>; - }; - }; - }; - - - | - bus { - #address-cells = <2>; - #size-cells = <2>; - - dsi@fd0c0000 { - compatible = "cdns,dsi"; - reg = <0x0 0xfd0c0000 0x0 0x1000>; - clocks = <&pclk>, <&sysclk>; - clock-names = "dsi_p_clk", "dsi_sys_clk"; - interrupts = <1>; - phys = <&dphy1>; - phy-names = "dphy"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - #address-cells = <1>; - #size-cells = <0>; - - endpoint@0 { - reg = <0>; - remote-endpoint = <&dsi_panel_input>; - }; - }; - - port@1 { - reg = <1>; - endpoint { - remote-endpoint = <&xxx_dpi_output>; - }; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/cdns,dsi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cadence DSI bridge + +maintainers: + - Boris Brezillon + +description: | + CDNS DSI is a bridge device which converts DPI to DSI + +properties: + compatible: + enum: + - cdns,dsi + - ti,j721e-dsi + + reg: + minItems: 1 + items: + - description: + Register block for controller's registers. + - description: + Register block for wrapper settings registers in case of TI J7 SoCs. + + clocks: + items: + - description: PSM clock, used by the IP + - description: sys clock, used by the IP + + clock-names: + items: + - const: dsi_p_clk + - const: dsi_sys_clk + + phys: + maxItems: 1 + + phy-names: + const: dphy + + interrupts: + maxItems: 1 + + resets: + maxItems: 1 + + reset-names: + const: dsi_p_rst + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: + Output port representing the DSI output. It can have + at most 4 endpoints. The endpoint number is directly encoding + the DSI virtual channel used by this device. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: + Input port representing the DPI input. + + required: + - port@1 + +allOf: + - $ref: ../dsi-controller.yaml# + + - if: + properties: + compatible: + contains: + const: ti,j721e-dsi + then: + properties: + reg: + minItems: 2 + maxItems: 2 + power-domains: + maxItems: 1 + else: + properties: + reg: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - phys + - phy-names + - ports + +unevaluatedProperties: false + +examples: + - | + bus { + #address-cells = <2>; + #size-cells = <2>; + + dsi@fd0c0000 { + compatible = "cdns,dsi"; + reg = <0x0 0xfd0c0000 0x0 0x1000>; + clocks = <&pclk>, <&sysclk>; + clock-names = "dsi_p_clk", "dsi_sys_clk"; + interrupts = <1>; + phys = <&dphy0>; + phy-names = "dphy"; + + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@1 { + reg = <1>; + endpoint { + remote-endpoint = <&xxx_dpi_output>; + }; + }; + }; + + panel@0 { + compatible = "panasonic,vvx10f034n00"; + reg = <0>; + power-supply = <&vcc_lcd_reg>; + }; + }; + }; + + - | + bus { + #address-cells = <2>; + #size-cells = <2>; + + dsi@fd0c0000 { + compatible = "cdns,dsi"; + reg = <0x0 0xfd0c0000 0x0 0x1000>; + clocks = <&pclk>, <&sysclk>; + clock-names = "dsi_p_clk", "dsi_sys_clk"; + interrupts = <1>; + phys = <&dphy1>; + phy-names = "dphy"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + endpoint@0 { + reg = <0>; + remote-endpoint = <&dsi_panel_input>; + }; + }; + + port@1 { + reg = <1>; + endpoint { + remote-endpoint = <&xxx_dpi_output>; + }; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/cdns,mhdp8546.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/cdns,mhdp8546.yaml index f0aa69f85..c2b369456 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/cdns,mhdp8546.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/cdns,mhdp8546.yaml @@ -1,164 +1,164 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/bridge/cdns,mhdp8546.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Cadence MHDP8546 bridge - -maintainers: - - Swapnil Jakhade - - Yuti Amonkar - -properties: - compatible: - enum: - - cdns,mhdp8546 - - ti,j721e-mhdp8546 - - reg: - minItems: 1 - items: - - description: - Register block of mhdptx apb registers up to PHY mapped area (AUX_CONFIG_P). - The AUX and PMA registers are not part of this range, they are instead - included in the associated PHY. - - description: - Register block for DSS_EDP0_INTG_CFG_VP registers in case of TI J7 SoCs. - - description: - Register block of mhdptx sapb registers. - - reg-names: - minItems: 1 - items: - - const: mhdptx - - const: j721e-intg - - const: mhdptx-sapb - - clocks: - maxItems: 1 - description: - DP bridge clock, used by the IP to know how to translate a number of - clock cycles into a time (which is used to comply with DP standard timings - and delays). - - phys: - maxItems: 1 - description: - phandle to the DisplayPort PHY. - - phy-names: - items: - - const: dpphy - - power-domains: - maxItems: 1 - - interrupts: - maxItems: 1 - - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port@0: - $ref: /schemas/graph.yaml#/properties/port - description: - First input port representing the DP bridge input. - - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: - Second input port representing the DP bridge input. - - port@2: - $ref: /schemas/graph.yaml#/properties/port - description: - Third input port representing the DP bridge input. - - port@3: - $ref: /schemas/graph.yaml#/properties/port - description: - Fourth input port representing the DP bridge input. - - port@4: - $ref: /schemas/graph.yaml#/properties/port - description: - Output port representing the DP bridge output. - - required: - - port@0 - - port@4 - -allOf: - - if: - properties: - compatible: - contains: - const: ti,j721e-mhdp8546 - then: - properties: - reg: - minItems: 2 - maxItems: 3 - reg-names: - minItems: 2 - maxItems: 3 - else: - properties: - reg: - minItems: 1 - maxItems: 2 - reg-names: - minItems: 1 - maxItems: 2 - -required: - - compatible - - clocks - - reg - - reg-names - - phys - - phy-names - - interrupts - - ports - -additionalProperties: false - -examples: - - | - #include - bus { - #address-cells = <2>; - #size-cells = <2>; - - mhdp: dp-bridge@f0fb000000 { - compatible = "cdns,mhdp8546"; - reg = <0xf0 0xfb000000 0x0 0x1000000>; - reg-names = "mhdptx"; - clocks = <&mhdp_clock>; - phys = <&dp_phy>; - phy-names = "dpphy"; - interrupts = ; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - dp_bridge_input: endpoint { - remote-endpoint = <&xxx_dpi_output>; - }; - }; - - port@4 { - reg = <4>; - dp_bridge_output: endpoint { - remote-endpoint = <&xxx_dp_connector_input>; - }; - }; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/cdns,mhdp8546.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cadence MHDP8546 bridge + +maintainers: + - Swapnil Jakhade + - Yuti Amonkar + +properties: + compatible: + enum: + - cdns,mhdp8546 + - ti,j721e-mhdp8546 + + reg: + minItems: 1 + items: + - description: + Register block of mhdptx apb registers up to PHY mapped area (AUX_CONFIG_P). + The AUX and PMA registers are not part of this range, they are instead + included in the associated PHY. + - description: + Register block for DSS_EDP0_INTG_CFG_VP registers in case of TI J7 SoCs. + - description: + Register block of mhdptx sapb registers. + + reg-names: + minItems: 1 + items: + - const: mhdptx + - const: j721e-intg + - const: mhdptx-sapb + + clocks: + maxItems: 1 + description: + DP bridge clock, used by the IP to know how to translate a number of + clock cycles into a time (which is used to comply with DP standard timings + and delays). + + phys: + maxItems: 1 + description: + phandle to the DisplayPort PHY. + + phy-names: + items: + - const: dpphy + + power-domains: + maxItems: 1 + + interrupts: + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: + First input port representing the DP bridge input. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: + Second input port representing the DP bridge input. + + port@2: + $ref: /schemas/graph.yaml#/properties/port + description: + Third input port representing the DP bridge input. + + port@3: + $ref: /schemas/graph.yaml#/properties/port + description: + Fourth input port representing the DP bridge input. + + port@4: + $ref: /schemas/graph.yaml#/properties/port + description: + Output port representing the DP bridge output. + + required: + - port@0 + - port@4 + +allOf: + - if: + properties: + compatible: + contains: + const: ti,j721e-mhdp8546 + then: + properties: + reg: + minItems: 2 + maxItems: 3 + reg-names: + minItems: 2 + maxItems: 3 + else: + properties: + reg: + minItems: 1 + maxItems: 2 + reg-names: + minItems: 1 + maxItems: 2 + +required: + - compatible + - clocks + - reg + - reg-names + - phys + - phy-names + - interrupts + - ports + +additionalProperties: false + +examples: + - | + #include + bus { + #address-cells = <2>; + #size-cells = <2>; + + mhdp: dp-bridge@f0fb000000 { + compatible = "cdns,mhdp8546"; + reg = <0xf0 0xfb000000 0x0 0x1000000>; + reg-names = "mhdptx"; + clocks = <&mhdp_clock>; + phys = <&dp_phy>; + phy-names = "dpphy"; + interrupts = ; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dp_bridge_input: endpoint { + remote-endpoint = <&xxx_dpi_output>; + }; + }; + + port@4 { + reg = <4>; + dp_bridge_output: endpoint { + remote-endpoint = <&xxx_dp_connector_input>; + }; + }; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-combiner.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-combiner.yaml index 18b5226b2..50bae2122 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-combiner.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-combiner.yaml @@ -1,144 +1,144 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/bridge/fsl,imx8qxp-pixel-combiner.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale i.MX8qm/qxp Pixel Combiner - -maintainers: - - Liu Ying - -description: | - The Freescale i.MX8qm/qxp Pixel Combiner takes two output streams from a - single display controller and manipulates the two streams to support a number - of modes(bypass, pixel combine, YUV444 to YUV422, split_RGB) configured as - either one screen, two screens, or virtual screens. The pixel combiner is - also responsible for generating some of the control signals for the pixel link - output channel. - -properties: - compatible: - enum: - - fsl,imx8qm-pixel-combiner - - fsl,imx8qxp-pixel-combiner - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - clock-names: - const: apb - - power-domains: - maxItems: 1 - -patternProperties: - "^channel@[0-1]$": - type: object - description: Represents a display stream of pixel combiner. - - properties: - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - - reg: - description: The display stream index. - enum: [ 0, 1 ] - - port@0: - $ref: /schemas/graph.yaml#/properties/port - description: Input endpoint of the display stream. - - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: Output endpoint of the display stream. - - required: - - "#address-cells" - - "#size-cells" - - reg - - port@0 - - port@1 - - additionalProperties: false - -required: - - compatible - - "#address-cells" - - "#size-cells" - - reg - - clocks - - clock-names - - power-domains - -additionalProperties: false - -examples: - - | - #include - #include - pixel-combiner@56020000 { - compatible = "fsl,imx8qxp-pixel-combiner"; - #address-cells = <1>; - #size-cells = <0>; - reg = <0x56020000 0x10000>; - clocks = <&dc0_pixel_combiner_lpcg IMX_LPCG_CLK_4>; - clock-names = "apb"; - power-domains = <&pd IMX_SC_R_DC_0>; - - channel@0 { - #address-cells = <1>; - #size-cells = <0>; - reg = <0>; - - port@0 { - reg = <0>; - - dc0_pixel_combiner_ch0_dc0_dpu_disp0: endpoint { - remote-endpoint = <&dc0_dpu_disp0_dc0_pixel_combiner_ch0>; - }; - }; - - port@1 { - reg = <1>; - - dc0_pixel_combiner_ch0_dc0_pixel_link0: endpoint { - remote-endpoint = <&dc0_pixel_link0_dc0_pixel_combiner_ch0>; - }; - }; - }; - - channel@1 { - #address-cells = <1>; - #size-cells = <0>; - reg = <1>; - - port@0 { - reg = <0>; - - dc0_pixel_combiner_ch1_dc0_dpu_disp1: endpoint { - remote-endpoint = <&dc0_dpu_disp1_dc0_pixel_combiner_ch1>; - }; - }; - - port@1 { - reg = <1>; - - dc0_pixel_combiner_ch1_dc0_pixel_link1: endpoint { - remote-endpoint = <&dc0_pixel_link1_dc0_pixel_combiner_ch1>; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/fsl,imx8qxp-pixel-combiner.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX8qm/qxp Pixel Combiner + +maintainers: + - Liu Ying + +description: | + The Freescale i.MX8qm/qxp Pixel Combiner takes two output streams from a + single display controller and manipulates the two streams to support a number + of modes(bypass, pixel combine, YUV444 to YUV422, split_RGB) configured as + either one screen, two screens, or virtual screens. The pixel combiner is + also responsible for generating some of the control signals for the pixel link + output channel. + +properties: + compatible: + enum: + - fsl,imx8qm-pixel-combiner + - fsl,imx8qxp-pixel-combiner + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: apb + + power-domains: + maxItems: 1 + +patternProperties: + "^channel@[0-1]$": + type: object + description: Represents a display stream of pixel combiner. + + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + reg: + description: The display stream index. + enum: [ 0, 1 ] + + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Input endpoint of the display stream. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Output endpoint of the display stream. + + required: + - "#address-cells" + - "#size-cells" + - reg + - port@0 + - port@1 + + additionalProperties: false + +required: + - compatible + - "#address-cells" + - "#size-cells" + - reg + - clocks + - clock-names + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + pixel-combiner@56020000 { + compatible = "fsl,imx8qxp-pixel-combiner"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x56020000 0x10000>; + clocks = <&dc0_pixel_combiner_lpcg IMX_LPCG_CLK_4>; + clock-names = "apb"; + power-domains = <&pd IMX_SC_R_DC_0>; + + channel@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + port@0 { + reg = <0>; + + dc0_pixel_combiner_ch0_dc0_dpu_disp0: endpoint { + remote-endpoint = <&dc0_dpu_disp0_dc0_pixel_combiner_ch0>; + }; + }; + + port@1 { + reg = <1>; + + dc0_pixel_combiner_ch0_dc0_pixel_link0: endpoint { + remote-endpoint = <&dc0_pixel_link0_dc0_pixel_combiner_ch0>; + }; + }; + }; + + channel@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + port@0 { + reg = <0>; + + dc0_pixel_combiner_ch1_dc0_dpu_disp1: endpoint { + remote-endpoint = <&dc0_dpu_disp1_dc0_pixel_combiner_ch1>; + }; + }; + + port@1 { + reg = <1>; + + dc0_pixel_combiner_ch1_dc0_pixel_link1: endpoint { + remote-endpoint = <&dc0_pixel_link1_dc0_pixel_combiner_ch1>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml index 60fe69c38..38ecc7926 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml @@ -1,144 +1,144 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/bridge/fsl,imx8qxp-pixel-link.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale i.MX8qm/qxp Display Pixel Link - -maintainers: - - Liu Ying - -description: | - The Freescale i.MX8qm/qxp Display Pixel Link(DPL) forms a standard - asynchronous linkage between pixel sources(display controller or - camera module) and pixel consumers(imaging or displays). - It consists of two distinct functions, a pixel transfer function and a - control interface. Multiple pixel channels can exist per one control channel. - This binding documentation is only for pixel links whose pixel sources are - display controllers. - - The i.MX8qm/qxp Display Pixel Link is accessed via System Controller Unit(SCU) - firmware. - -properties: - compatible: - enum: - - fsl,imx8qm-dc-pixel-link - - fsl,imx8qxp-dc-pixel-link - - fsl,dc-id: - $ref: /schemas/types.yaml#/definitions/uint8 - description: | - u8 value representing the display controller index that the pixel link - connects to. - - fsl,dc-stream-id: - $ref: /schemas/types.yaml#/definitions/uint8 - description: | - u8 value representing the display controller stream index that the pixel - link connects to. - enum: [0, 1] - - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port@0: - $ref: /schemas/graph.yaml#/properties/port - description: The pixel link input port node from upstream video source. - - patternProperties: - "^port@[1-4]$": - $ref: /schemas/graph.yaml#/properties/port - description: The pixel link output port node to downstream bridge. - - required: - - port@0 - - port@1 - - port@2 - - port@3 - - port@4 - -allOf: - - if: - properties: - compatible: - contains: - const: fsl,imx8qxp-dc-pixel-link - then: - properties: - fsl,dc-id: - const: 0 - - - if: - properties: - compatible: - contains: - const: fsl,imx8qm-dc-pixel-link - then: - properties: - fsl,dc-id: - enum: [0, 1] - -required: - - compatible - - fsl,dc-id - - fsl,dc-stream-id - - ports - -additionalProperties: false - -examples: - - | - dc0-pixel-link0 { - compatible = "fsl,imx8qxp-dc-pixel-link"; - fsl,dc-id = /bits/ 8 <0>; - fsl,dc-stream-id = /bits/ 8 <0>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - /* from dc0 pixel combiner channel0 */ - port@0 { - reg = <0>; - - dc0_pixel_link0_dc0_pixel_combiner_ch0: endpoint { - remote-endpoint = <&dc0_pixel_combiner_ch0_dc0_pixel_link0>; - }; - }; - - /* to PXL2DPIs in MIPI/LVDS combo subsystems */ - port@1 { - #address-cells = <1>; - #size-cells = <0>; - reg = <1>; - - dc0_pixel_link0_mipi_lvds_0_pxl2dpi: endpoint@0 { - reg = <0>; - remote-endpoint = <&mipi_lvds_0_pxl2dpi_dc0_pixel_link0>; - }; - - dc0_pixel_link0_mipi_lvds_1_pxl2dpi: endpoint@1 { - reg = <1>; - remote-endpoint = <&mipi_lvds_1_pxl2dpi_dc0_pixel_link0>; - }; - }; - - /* unused */ - port@2 { - reg = <2>; - }; - - /* unused */ - port@3 { - reg = <3>; - }; - - /* to imaging subsystem */ - port@4 { - reg = <4>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/fsl,imx8qxp-pixel-link.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX8qm/qxp Display Pixel Link + +maintainers: + - Liu Ying + +description: | + The Freescale i.MX8qm/qxp Display Pixel Link(DPL) forms a standard + asynchronous linkage between pixel sources(display controller or + camera module) and pixel consumers(imaging or displays). + It consists of two distinct functions, a pixel transfer function and a + control interface. Multiple pixel channels can exist per one control channel. + This binding documentation is only for pixel links whose pixel sources are + display controllers. + + The i.MX8qm/qxp Display Pixel Link is accessed via System Controller Unit(SCU) + firmware. + +properties: + compatible: + enum: + - fsl,imx8qm-dc-pixel-link + - fsl,imx8qxp-dc-pixel-link + + fsl,dc-id: + $ref: /schemas/types.yaml#/definitions/uint8 + description: | + u8 value representing the display controller index that the pixel link + connects to. + + fsl,dc-stream-id: + $ref: /schemas/types.yaml#/definitions/uint8 + description: | + u8 value representing the display controller stream index that the pixel + link connects to. + enum: [0, 1] + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: The pixel link input port node from upstream video source. + + patternProperties: + "^port@[1-4]$": + $ref: /schemas/graph.yaml#/properties/port + description: The pixel link output port node to downstream bridge. + + required: + - port@0 + - port@1 + - port@2 + - port@3 + - port@4 + +allOf: + - if: + properties: + compatible: + contains: + const: fsl,imx8qxp-dc-pixel-link + then: + properties: + fsl,dc-id: + const: 0 + + - if: + properties: + compatible: + contains: + const: fsl,imx8qm-dc-pixel-link + then: + properties: + fsl,dc-id: + enum: [0, 1] + +required: + - compatible + - fsl,dc-id + - fsl,dc-stream-id + - ports + +additionalProperties: false + +examples: + - | + dc0-pixel-link0 { + compatible = "fsl,imx8qxp-dc-pixel-link"; + fsl,dc-id = /bits/ 8 <0>; + fsl,dc-stream-id = /bits/ 8 <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + /* from dc0 pixel combiner channel0 */ + port@0 { + reg = <0>; + + dc0_pixel_link0_dc0_pixel_combiner_ch0: endpoint { + remote-endpoint = <&dc0_pixel_combiner_ch0_dc0_pixel_link0>; + }; + }; + + /* to PXL2DPIs in MIPI/LVDS combo subsystems */ + port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + dc0_pixel_link0_mipi_lvds_0_pxl2dpi: endpoint@0 { + reg = <0>; + remote-endpoint = <&mipi_lvds_0_pxl2dpi_dc0_pixel_link0>; + }; + + dc0_pixel_link0_mipi_lvds_1_pxl2dpi: endpoint@1 { + reg = <1>; + remote-endpoint = <&mipi_lvds_1_pxl2dpi_dc0_pixel_link0>; + }; + }; + + /* unused */ + port@2 { + reg = <2>; + }; + + /* unused */ + port@3 { + reg = <3>; + }; + + /* to imaging subsystem */ + port@4 { + reg = <4>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml index 7d031231c..c4469f463 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml @@ -1,156 +1,156 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/bridge/ite,it6505.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ITE it6505 - -maintainers: - - Allen Chen - -allOf: - - $ref: /schemas/sound/dai-common.yaml# - -description: | - The IT6505 is a high-performance DisplayPort 1.1a transmitter, - fully compliant with DisplayPort 1.1a, HDCP 1.3 specifications. - The IT6505 supports color depth of up to 36 bits (12 bits/color) - and ensures robust transmission of high-quality uncompressed video - content, along with uncompressed and compressed digital audio content. - - Aside from the various video output formats supported, the IT6505 - also encodes and transmits up to 8 channels of I2S digital audio, - with sampling rate up to 192kHz and sample size up to 24 bits. - In addition, an S/PDIF input port takes in compressed audio of up to - 192kHz frame rate. - - Each IT6505 chip comes preprogrammed with an unique HDCP key, - in compliance with the HDCP 1.3 standard so as to provide secure - transmission of high-definition content. Users of the IT6505 need not - purchase any HDCP keys or ROMs. - -properties: - compatible: - const: ite,it6505 - - reg: - maxItems: 1 - - ovdd-supply: - description: I/O voltage - - pwr18-supply: - description: core voltage - - interrupts: - maxItems: 1 - description: interrupt specifier of INT pin - - reset-gpios: - maxItems: 1 - description: gpio specifier of RESET pin - - extcon: - maxItems: 1 - description: extcon specifier for the Power Delivery - - "#sound-dai-cells": - const: 0 - - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port@0: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: A port node pointing to DPI host port node - - properties: - endpoint: - $ref: /schemas/graph.yaml#/$defs/endpoint-base - unevaluatedProperties: false - - properties: - link-frequencies: - minItems: 1 - maxItems: 1 - description: Allowed max link frequencies in Hz - - port@1: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: Video port for DP output - - properties: - endpoint: - $ref: /schemas/graph.yaml#/$defs/endpoint-base - unevaluatedProperties: false - - properties: - data-lanes: - minItems: 1 - uniqueItems: true - items: - - enum: [ 0, 1 ] - - const: 1 - - const: 2 - - const: 3 - - required: - - port@0 - - port@1 - -required: - - compatible - - ovdd-supply - - pwr18-supply - - interrupts - - reset-gpios - - extcon - - ports - -unevaluatedProperties: false - -examples: - - | - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - dp-bridge@5c { - compatible = "ite,it6505"; - interrupts = <152 IRQ_TYPE_EDGE_FALLING 152 0>; - reg = <0x5c>; - pinctrl-names = "default"; - pinctrl-0 = <&it6505_pins>; - ovdd-supply = <&mt6358_vsim1_reg>; - pwr18-supply = <&it6505_pp18_reg>; - reset-gpios = <&pio 179 1>; - extcon = <&usbc_extcon>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - it6505_in: endpoint { - remote-endpoint = <&dpi_out>; - link-frequencies = /bits/ 64 <150000000>; - }; - }; - - port@1 { - reg = <1>; - it6505_out: endpoint { - remote-endpoint = <&dp_in>; - data-lanes = <0 1>; - }; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/ite,it6505.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ITE it6505 + +maintainers: + - Allen Chen + +allOf: + - $ref: /schemas/sound/dai-common.yaml# + +description: | + The IT6505 is a high-performance DisplayPort 1.1a transmitter, + fully compliant with DisplayPort 1.1a, HDCP 1.3 specifications. + The IT6505 supports color depth of up to 36 bits (12 bits/color) + and ensures robust transmission of high-quality uncompressed video + content, along with uncompressed and compressed digital audio content. + + Aside from the various video output formats supported, the IT6505 + also encodes and transmits up to 8 channels of I2S digital audio, + with sampling rate up to 192kHz and sample size up to 24 bits. + In addition, an S/PDIF input port takes in compressed audio of up to + 192kHz frame rate. + + Each IT6505 chip comes preprogrammed with an unique HDCP key, + in compliance with the HDCP 1.3 standard so as to provide secure + transmission of high-definition content. Users of the IT6505 need not + purchase any HDCP keys or ROMs. + +properties: + compatible: + const: ite,it6505 + + reg: + maxItems: 1 + + ovdd-supply: + description: I/O voltage + + pwr18-supply: + description: core voltage + + interrupts: + maxItems: 1 + description: interrupt specifier of INT pin + + reset-gpios: + maxItems: 1 + description: gpio specifier of RESET pin + + extcon: + maxItems: 1 + description: extcon specifier for the Power Delivery + + "#sound-dai-cells": + const: 0 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: A port node pointing to DPI host port node + + properties: + endpoint: + $ref: /schemas/graph.yaml#/$defs/endpoint-base + unevaluatedProperties: false + + properties: + link-frequencies: + minItems: 1 + maxItems: 1 + description: Allowed max link frequencies in Hz + + port@1: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: Video port for DP output + + properties: + endpoint: + $ref: /schemas/graph.yaml#/$defs/endpoint-base + unevaluatedProperties: false + + properties: + data-lanes: + minItems: 1 + uniqueItems: true + items: + - enum: [ 0, 1 ] + - const: 1 + - const: 2 + - const: 3 + + required: + - port@0 + - port@1 + +required: + - compatible + - ovdd-supply + - pwr18-supply + - interrupts + - reset-gpios + - extcon + - ports + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + dp-bridge@5c { + compatible = "ite,it6505"; + interrupts = <152 IRQ_TYPE_EDGE_FALLING 152 0>; + reg = <0x5c>; + pinctrl-names = "default"; + pinctrl-0 = <&it6505_pins>; + ovdd-supply = <&mt6358_vsim1_reg>; + pwr18-supply = <&it6505_pp18_reg>; + reset-gpios = <&pio 179 1>; + extcon = <&usbc_extcon>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + it6505_in: endpoint { + remote-endpoint = <&dpi_out>; + link-frequencies = /bits/ 64 <150000000>; + }; + }; + + port@1 { + reg = <1>; + it6505_out: endpoint { + remote-endpoint = <&dp_in>; + data-lanes = <0 1>; + }; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/sil,sii9022.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/sil,sii9022.yaml index 129bd508e..5a69547ad 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/sil,sii9022.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/sil,sii9022.yaml @@ -1,131 +1,131 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/bridge/sil,sii9022.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Silicon Image sii902x HDMI bridge - -maintainers: - - Boris Brezillon - -properties: - compatible: - oneOf: - - items: - - enum: - - sil,sii9022-cpi # CEC Programming Interface - - sil,sii9022-tpi # Transmitter Programming Interface - - const: sil,sii9022 - - const: sil,sii9022 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - description: Interrupt line used to inform the host about hotplug events. - - reset-gpios: - maxItems: 1 - - iovcc-supply: - description: I/O Supply Voltage (1.8V or 3.3V) - - cvcc12-supply: - description: Digital Core Supply Voltage (1.2V) - - '#sound-dai-cells': - enum: [ 0, 1 ] - description: | - <0> if only I2S or S/PDIF pin is wired, - <1> if both are wired. - HDMI audio is configured only if this property is found. - If HDMI audio is configured, the sii902x device becomes an I2S and/or - S/PDIF audio codec component (e.g. a digital audio sink), that can be - used in configuring full audio devices with simple-card or - audio-graph-card bindings. See their binding documents on how to describe - the way the - sii902x device is connected to the rest of the audio system: - Documentation/devicetree/bindings/sound/simple-card.yaml - Documentation/devicetree/bindings/sound/audio-graph-card.yaml - Note: In case of the audio-graph-card binding the used port index should - be 3. - - sil,i2s-data-lanes: - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 4 - uniqueItems: true - items: - enum: [ 0, 1, 2, 3 ] - description: - Each integer indicates which I2S pin is connected to which audio FIFO. - The first integer selects the I2S audio pin for the first audio FIFO#0 - (HDMI channels 1&2), the second for FIFO#1 (HDMI channels 3&4), and so - on. There are 4 FIFOs and 4 I2S pins (SD0 - SD3). Any I2S pin can be - connected to any FIFO, but there can be no gaps. E.g. an I2S pin must be - mapped to FIFO#0 and FIFO#1 before mapping a channel to FIFO#2. The - default value is <0>, describing SD0 pin being routed to HDMI audio - FIFO#0. - - clocks: - maxItems: 1 - description: MCLK input. MCLK can be used to produce HDMI audio CTS values. - - clock-names: - const: mclk - - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port@0: - $ref: /schemas/graph.yaml#/properties/port - description: Parallel RGB input port - - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: HDMI output port - - port@3: - $ref: /schemas/graph.yaml#/properties/port - description: Sound input port - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - hdmi-bridge@39 { - compatible = "sil,sii9022"; - reg = <0x39>; - reset-gpios = <&pioA 1 0>; - iovcc-supply = <&v3v3_hdmi>; - cvcc12-supply = <&v1v2_hdmi>; - - #sound-dai-cells = <0>; - sil,i2s-data-lanes = < 0 1 2 >; - clocks = <&mclk>; - clock-names = "mclk"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - bridge_in: endpoint { - remote-endpoint = <&dc_out>; - }; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/sil,sii9022.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Silicon Image sii902x HDMI bridge + +maintainers: + - Boris Brezillon + +properties: + compatible: + oneOf: + - items: + - enum: + - sil,sii9022-cpi # CEC Programming Interface + - sil,sii9022-tpi # Transmitter Programming Interface + - const: sil,sii9022 + - const: sil,sii9022 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + description: Interrupt line used to inform the host about hotplug events. + + reset-gpios: + maxItems: 1 + + iovcc-supply: + description: I/O Supply Voltage (1.8V or 3.3V) + + cvcc12-supply: + description: Digital Core Supply Voltage (1.2V) + + '#sound-dai-cells': + enum: [ 0, 1 ] + description: | + <0> if only I2S or S/PDIF pin is wired, + <1> if both are wired. + HDMI audio is configured only if this property is found. + If HDMI audio is configured, the sii902x device becomes an I2S and/or + S/PDIF audio codec component (e.g. a digital audio sink), that can be + used in configuring full audio devices with simple-card or + audio-graph-card bindings. See their binding documents on how to describe + the way the + sii902x device is connected to the rest of the audio system: + Documentation/devicetree/bindings/sound/simple-card.yaml + Documentation/devicetree/bindings/sound/audio-graph-card.yaml + Note: In case of the audio-graph-card binding the used port index should + be 3. + + sil,i2s-data-lanes: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 4 + uniqueItems: true + items: + enum: [ 0, 1, 2, 3 ] + description: + Each integer indicates which I2S pin is connected to which audio FIFO. + The first integer selects the I2S audio pin for the first audio FIFO#0 + (HDMI channels 1&2), the second for FIFO#1 (HDMI channels 3&4), and so + on. There are 4 FIFOs and 4 I2S pins (SD0 - SD3). Any I2S pin can be + connected to any FIFO, but there can be no gaps. E.g. an I2S pin must be + mapped to FIFO#0 and FIFO#1 before mapping a channel to FIFO#2. The + default value is <0>, describing SD0 pin being routed to HDMI audio + FIFO#0. + + clocks: + maxItems: 1 + description: MCLK input. MCLK can be used to produce HDMI audio CTS values. + + clock-names: + const: mclk + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Parallel RGB input port + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: HDMI output port + + port@3: + $ref: /schemas/graph.yaml#/properties/port + description: Sound input port + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + hdmi-bridge@39 { + compatible = "sil,sii9022"; + reg = <0x39>; + reset-gpios = <&pioA 1 0>; + iovcc-supply = <&v3v3_hdmi>; + cvcc12-supply = <&v1v2_hdmi>; + + #sound-dai-cells = <0>; + sil,i2s-data-lanes = < 0 1 2 >; + clocks = <&mclk>; + clock-names = "mclk"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + bridge_in: endpoint { + remote-endpoint = <&dc_out>; + }; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml index 7c37319af..48a97bb3e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml @@ -1,162 +1,162 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: SN65DSI83 and SN65DSI84 DSI to LVDS bridge chip - -maintainers: - - Marek Vasut - -description: | - Texas Instruments SN65DSI83 1x Single-link MIPI DSI - to 1x Single-link LVDS - https://www.ti.com/lit/gpn/sn65dsi83 - Texas Instruments SN65DSI84 1x Single-link MIPI DSI - to 1x Dual-link or 2x Single-link LVDS - https://www.ti.com/lit/gpn/sn65dsi84 - -properties: - compatible: - enum: - - ti,sn65dsi83 - - ti,sn65dsi84 - - reg: - enum: - - 0x2c - - 0x2d - - enable-gpios: - maxItems: 1 - description: GPIO specifier for bridge_en pin (active high). - - vcc-supply: - description: A 1.8V power supply (see regulator/regulator.yaml). - - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port@0: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: Video port for MIPI DSI Channel-A input - - properties: - endpoint: - $ref: /schemas/media/video-interfaces.yaml# - unevaluatedProperties: false - - properties: - data-lanes: - description: array of physical DSI data lane indexes. - minItems: 1 - items: - - const: 1 - - const: 2 - - const: 3 - - const: 4 - - port@1: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: Video port for MIPI DSI Channel-B input - - properties: - endpoint: - $ref: /schemas/media/video-interfaces.yaml# - unevaluatedProperties: false - - properties: - data-lanes: - description: array of physical DSI data lane indexes. - minItems: 1 - items: - - const: 1 - - const: 2 - - const: 3 - - const: 4 - - port@2: - $ref: /schemas/graph.yaml#/properties/port - description: Video port for LVDS Channel-A output (panel or bridge). - - port@3: - $ref: /schemas/graph.yaml#/properties/port - description: Video port for LVDS Channel-B output (panel or bridge). - - required: - - port@0 - - port@2 - -required: - - compatible - - reg - - ports - -allOf: - - if: - properties: - compatible: - contains: - const: ti,sn65dsi83 - then: - properties: - ports: - properties: - port@1: false - port@3: false - - - if: - properties: - compatible: - contains: - const: ti,sn65dsi84 - then: - properties: - ports: - properties: - port@1: false - -additionalProperties: false - -examples: - - | - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - bridge@2d { - compatible = "ti,sn65dsi83"; - reg = <0x2d>; - - enable-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>; - vcc-supply = <®_sn65dsi83_1v8>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - - endpoint { - remote-endpoint = <&dsi0_out>; - data-lanes = <1 2 3 4>; - }; - }; - - port@2 { - reg = <2>; - - endpoint { - remote-endpoint = <&panel_in_lvds>; - }; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SN65DSI83 and SN65DSI84 DSI to LVDS bridge chip + +maintainers: + - Marek Vasut + +description: | + Texas Instruments SN65DSI83 1x Single-link MIPI DSI + to 1x Single-link LVDS + https://www.ti.com/lit/gpn/sn65dsi83 + Texas Instruments SN65DSI84 1x Single-link MIPI DSI + to 1x Dual-link or 2x Single-link LVDS + https://www.ti.com/lit/gpn/sn65dsi84 + +properties: + compatible: + enum: + - ti,sn65dsi83 + - ti,sn65dsi84 + + reg: + enum: + - 0x2c + - 0x2d + + enable-gpios: + maxItems: 1 + description: GPIO specifier for bridge_en pin (active high). + + vcc-supply: + description: A 1.8V power supply (see regulator/regulator.yaml). + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: Video port for MIPI DSI Channel-A input + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + description: array of physical DSI data lane indexes. + minItems: 1 + items: + - const: 1 + - const: 2 + - const: 3 + - const: 4 + + port@1: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: Video port for MIPI DSI Channel-B input + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + description: array of physical DSI data lane indexes. + minItems: 1 + items: + - const: 1 + - const: 2 + - const: 3 + - const: 4 + + port@2: + $ref: /schemas/graph.yaml#/properties/port + description: Video port for LVDS Channel-A output (panel or bridge). + + port@3: + $ref: /schemas/graph.yaml#/properties/port + description: Video port for LVDS Channel-B output (panel or bridge). + + required: + - port@0 + - port@2 + +required: + - compatible + - reg + - ports + +allOf: + - if: + properties: + compatible: + contains: + const: ti,sn65dsi83 + then: + properties: + ports: + properties: + port@1: false + port@3: false + + - if: + properties: + compatible: + contains: + const: ti,sn65dsi84 + then: + properties: + ports: + properties: + port@1: false + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + bridge@2d { + compatible = "ti,sn65dsi83"; + reg = <0x2d>; + + enable-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>; + vcc-supply = <®_sn65dsi83_1v8>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + endpoint { + remote-endpoint = <&dsi0_out>; + data-lanes = <1 2 3 4>; + }; + }; + + port@2 { + reg = <2>; + + endpoint { + remote-endpoint = <&panel_in_lvds>; + }; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/fsl,lcdif.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/fsl,lcdif.yaml index 255a2bbe7..8e3a98aee 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/fsl,lcdif.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/fsl,lcdif.yaml @@ -1,201 +1,201 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/fsl,lcdif.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale/NXP i.MX LCD Interface (LCDIF) - -maintainers: - - Marek Vasut - - Stefan Agner - -description: | - (e)LCDIF display controller found in the Freescale/NXP i.MX SoCs. - -properties: - compatible: - oneOf: - - enum: - - fsl,imx23-lcdif - - fsl,imx28-lcdif - - fsl,imx6sx-lcdif - - fsl,imx8mp-lcdif - - fsl,imx93-lcdif - - items: - - enum: - - fsl,imx6sl-lcdif - - fsl,imx6sll-lcdif - - fsl,imx6ul-lcdif - - fsl,imx7d-lcdif - - fsl,imx8mm-lcdif - - fsl,imx8mn-lcdif - - fsl,imx8mq-lcdif - - const: fsl,imx6sx-lcdif - - reg: - maxItems: 1 - - clocks: - items: - - description: Pixel clock - - description: Bus clock - - description: Display AXI clock - minItems: 1 - - clock-names: - items: - - const: pix - - const: axi - - const: disp_axi - minItems: 1 - - dmas: - items: - - description: DMA specifier for the RX DMA channel. - - dma-names: - items: - - const: rx - - interrupts: - items: - - description: LCDIF DMA interrupt - - description: LCDIF Error interrupt - minItems: 1 - - power-domains: - maxItems: 1 - - port: - $ref: /schemas/graph.yaml#/properties/port - description: The LCDIF output port - -required: - - compatible - - reg - - clocks - - interrupts - - port - -additionalProperties: false - -allOf: - - if: - properties: - compatible: - contains: - const: fsl,imx6sx-lcdif - then: - properties: - clocks: - minItems: 2 - maxItems: 3 - clock-names: - minItems: 2 - maxItems: 3 - required: - - clock-names - - if: - properties: - compatible: - contains: - enum: - - fsl,imx8mp-lcdif - - fsl,imx93-lcdif - then: - properties: - clocks: - minItems: 3 - maxItems: 3 - clock-names: - minItems: 3 - maxItems: 3 - required: - - clock-names - - if: - not: - properties: - compatible: - contains: - enum: - - fsl,imx6sx-lcdif - - fsl,imx8mp-lcdif - - fsl,imx93-lcdif - then: - properties: - clocks: - maxItems: 1 - clock-names: - maxItems: 1 - - if: - properties: - compatible: - const: fsl,imx6sx-lcdif - then: - required: - - power-domains - - if: - properties: - compatible: - contains: - enum: - - fsl,imx6sl-lcdif - - fsl,imx8mm-lcdif - - fsl,imx8mn-lcdif - - fsl,imx8mp-lcdif - - fsl,imx93-lcdif - then: - required: - - power-domains - - if: - properties: - compatible: - contains: - enum: - - fsl,imx23-lcdif - then: - properties: - interrupts: - minItems: 2 - maxItems: 2 - else: - properties: - interrupts: - maxItems: 1 - - - if: - not: - properties: - compatible: - contains: - enum: - - fsl,imx28-lcdif - then: - properties: - dmas: false - dma-names: false - -examples: - - | - #include - #include - - display-controller@2220000 { - compatible = "fsl,imx6sx-lcdif"; - reg = <0x02220000 0x4000>; - interrupts = ; - clocks = <&clks IMX6SX_CLK_LCDIF1_PIX>, - <&clks IMX6SX_CLK_LCDIF_APB>, - <&clks IMX6SX_CLK_DISPLAY_AXI>; - clock-names = "pix", "axi", "disp_axi"; - power-domains = <&pd_disp>; - - port { - endpoint { - remote-endpoint = <&panel_in>; - }; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/fsl,lcdif.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale/NXP i.MX LCD Interface (LCDIF) + +maintainers: + - Marek Vasut + - Stefan Agner + +description: | + (e)LCDIF display controller found in the Freescale/NXP i.MX SoCs. + +properties: + compatible: + oneOf: + - enum: + - fsl,imx23-lcdif + - fsl,imx28-lcdif + - fsl,imx6sx-lcdif + - fsl,imx8mp-lcdif + - fsl,imx93-lcdif + - items: + - enum: + - fsl,imx6sl-lcdif + - fsl,imx6sll-lcdif + - fsl,imx6ul-lcdif + - fsl,imx7d-lcdif + - fsl,imx8mm-lcdif + - fsl,imx8mn-lcdif + - fsl,imx8mq-lcdif + - const: fsl,imx6sx-lcdif + + reg: + maxItems: 1 + + clocks: + items: + - description: Pixel clock + - description: Bus clock + - description: Display AXI clock + minItems: 1 + + clock-names: + items: + - const: pix + - const: axi + - const: disp_axi + minItems: 1 + + dmas: + items: + - description: DMA specifier for the RX DMA channel. + + dma-names: + items: + - const: rx + + interrupts: + items: + - description: LCDIF DMA interrupt + - description: LCDIF Error interrupt + minItems: 1 + + power-domains: + maxItems: 1 + + port: + $ref: /schemas/graph.yaml#/properties/port + description: The LCDIF output port + +required: + - compatible + - reg + - clocks + - interrupts + - port + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + contains: + const: fsl,imx6sx-lcdif + then: + properties: + clocks: + minItems: 2 + maxItems: 3 + clock-names: + minItems: 2 + maxItems: 3 + required: + - clock-names + - if: + properties: + compatible: + contains: + enum: + - fsl,imx8mp-lcdif + - fsl,imx93-lcdif + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + minItems: 3 + maxItems: 3 + required: + - clock-names + - if: + not: + properties: + compatible: + contains: + enum: + - fsl,imx6sx-lcdif + - fsl,imx8mp-lcdif + - fsl,imx93-lcdif + then: + properties: + clocks: + maxItems: 1 + clock-names: + maxItems: 1 + - if: + properties: + compatible: + const: fsl,imx6sx-lcdif + then: + required: + - power-domains + - if: + properties: + compatible: + contains: + enum: + - fsl,imx6sl-lcdif + - fsl,imx8mm-lcdif + - fsl,imx8mn-lcdif + - fsl,imx8mp-lcdif + - fsl,imx93-lcdif + then: + required: + - power-domains + - if: + properties: + compatible: + contains: + enum: + - fsl,imx23-lcdif + then: + properties: + interrupts: + minItems: 2 + maxItems: 2 + else: + properties: + interrupts: + maxItems: 1 + + - if: + not: + properties: + compatible: + contains: + enum: + - fsl,imx28-lcdif + then: + properties: + dmas: false + dma-names: false + +examples: + - | + #include + #include + + display-controller@2220000 { + compatible = "fsl,imx6sx-lcdif"; + reg = <0x02220000 0x4000>; + interrupts = ; + clocks = <&clks IMX6SX_CLK_LCDIF1_PIX>, + <&clks IMX6SX_CLK_LCDIF_APB>, + <&clks IMX6SX_CLK_DISPLAY_AXI>; + clock-names = "pix", "axi", "disp_axi"; + power-domains = <&pd_disp>; + + port { + endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/imx/fsl-imx-drm.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/imx/fsl-imx-drm.txt index 88be15666..3c35338a2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/imx/fsl-imx-drm.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/imx/fsl-imx-drm.txt @@ -1,162 +1,162 @@ -Freescale i.MX DRM master device -================================ - -The freescale i.MX DRM master device is a virtual device needed to list all -IPU or other display interface nodes that comprise the graphics subsystem. - -Required properties: -- compatible: Should be "fsl,imx-display-subsystem" -- ports: Should contain a list of phandles pointing to display interface ports - of IPU devices - -example: - -display-subsystem { - compatible = "fsl,imx-display-subsystem"; - ports = <&ipu_di0>; -}; - - -Freescale i.MX IPUv3 -==================== - -Required properties: -- compatible: Should be "fsl,-ipu" where is one of - - imx51 - - imx53 - - imx6q - - imx6qp -- reg: should be register base and length as documented in the - datasheet -- interrupts: Should contain sync interrupt and error interrupt, - in this order. -- resets: phandle pointing to the system reset controller and - reset line index, see reset/fsl,imx-src.txt for details -Additional required properties for fsl,imx6qp-ipu: -- fsl,prg: phandle to prg node associated with this IPU instance -Optional properties: -- port@[0-3]: Port nodes with endpoint definitions as defined in - Documentation/devicetree/bindings/media/video-interfaces.txt. - Ports 0 and 1 should correspond to CSI0 and CSI1, - ports 2 and 3 should correspond to DI0 and DI1, respectively. - -example: - -ipu: ipu@18000000 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "fsl,imx53-ipu"; - reg = <0x18000000 0x080000000>; - interrupts = <11 10>; - resets = <&src 2>; - - ipu_di0: port@2 { - reg = <2>; - - ipu_di0_disp0: endpoint { - remote-endpoint = <&display_in>; - }; - }; -}; - -Freescale i.MX PRE (Prefetch Resolve Engine) -============================================ - -Required properties: -- compatible: should be "fsl,imx6qp-pre" -- reg: should be register base and length as documented in the - datasheet -- clocks : phandle to the PRE axi clock input, as described - in Documentation/devicetree/bindings/clock/clock-bindings.txt and - Documentation/devicetree/bindings/clock/imx6q-clock.yaml. -- clock-names: should be "axi" -- interrupts: should contain the PRE interrupt -- fsl,iram: phandle pointing to the mmio-sram device node, that should be - used for the PRE SRAM double buffer. - -example: - -pre@21c8000 { - compatible = "fsl,imx6qp-pre"; - reg = <0x021c8000 0x1000>; - interrupts = ; - clocks = <&clks IMX6QDL_CLK_PRE0>; - clock-names = "axi"; - fsl,iram = <&ocram2>; -}; - -Freescale i.MX PRG (Prefetch Resolve Gasket) -============================================ - -Required properties: -- compatible: should be "fsl,imx6qp-prg" -- reg: should be register base and length as documented in the - datasheet -- clocks : phandles to the PRG ipg and axi clock inputs, as described - in Documentation/devicetree/bindings/clock/clock-bindings.txt and - Documentation/devicetree/bindings/clock/imx6q-clock.yaml. -- clock-names: should be "ipg" and "axi" -- fsl,pres: phandles to the PRE units attached to this PRG, with the fixed - PRE as the first entry and the muxable PREs following. - -example: - -prg@21cc000 { - compatible = "fsl,imx6qp-prg"; - reg = <0x021cc000 0x1000>; - clocks = <&clks IMX6QDL_CLK_PRG0_APB>, - <&clks IMX6QDL_CLK_PRG0_AXI>; - clock-names = "ipg", "axi"; - fsl,pres = <&pre1>, <&pre2>, <&pre3>; -}; - -Parallel display support -======================== - -Required properties: -- compatible: Should be "fsl,imx-parallel-display" -Optional properties: -- interface-pix-fmt: How this display is connected to the - display interface. Currently supported types: "rgb24", "rgb565", "bgr666" - and "lvds666". -- edid: verbatim EDID data block describing attached display. -- ddc: phandle describing the i2c bus handling the display data - channel -- port@[0-1]: Port nodes with endpoint definitions as defined in - Documentation/devicetree/bindings/media/video-interfaces.txt. - Port 0 is the input port connected to the IPU display interface, - port 1 is the output port connected to a panel. - -example: - -disp0 { - compatible = "fsl,imx-parallel-display"; - edid = [edid-data]; - interface-pix-fmt = "rgb24"; - - port@0 { - reg = <0>; - - display_in: endpoint { - remote-endpoint = <&ipu_di0_disp0>; - }; - }; - - port@1 { - reg = <1>; - - display_out: endpoint { - remote-endpoint = <&panel_in>; - }; - }; -}; - -panel { - ... - - port { - panel_in: endpoint { - remote-endpoint = <&display_out>; - }; - }; -}; +Freescale i.MX DRM master device +================================ + +The freescale i.MX DRM master device is a virtual device needed to list all +IPU or other display interface nodes that comprise the graphics subsystem. + +Required properties: +- compatible: Should be "fsl,imx-display-subsystem" +- ports: Should contain a list of phandles pointing to display interface ports + of IPU devices + +example: + +display-subsystem { + compatible = "fsl,imx-display-subsystem"; + ports = <&ipu_di0>; +}; + + +Freescale i.MX IPUv3 +==================== + +Required properties: +- compatible: Should be "fsl,-ipu" where is one of + - imx51 + - imx53 + - imx6q + - imx6qp +- reg: should be register base and length as documented in the + datasheet +- interrupts: Should contain sync interrupt and error interrupt, + in this order. +- resets: phandle pointing to the system reset controller and + reset line index, see reset/fsl,imx-src.txt for details +Additional required properties for fsl,imx6qp-ipu: +- fsl,prg: phandle to prg node associated with this IPU instance +Optional properties: +- port@[0-3]: Port nodes with endpoint definitions as defined in + Documentation/devicetree/bindings/media/video-interfaces.txt. + Ports 0 and 1 should correspond to CSI0 and CSI1, + ports 2 and 3 should correspond to DI0 and DI1, respectively. + +example: + +ipu: ipu@18000000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,imx53-ipu"; + reg = <0x18000000 0x080000000>; + interrupts = <11 10>; + resets = <&src 2>; + + ipu_di0: port@2 { + reg = <2>; + + ipu_di0_disp0: endpoint { + remote-endpoint = <&display_in>; + }; + }; +}; + +Freescale i.MX PRE (Prefetch Resolve Engine) +============================================ + +Required properties: +- compatible: should be "fsl,imx6qp-pre" +- reg: should be register base and length as documented in the + datasheet +- clocks : phandle to the PRE axi clock input, as described + in Documentation/devicetree/bindings/clock/clock-bindings.txt and + Documentation/devicetree/bindings/clock/imx6q-clock.yaml. +- clock-names: should be "axi" +- interrupts: should contain the PRE interrupt +- fsl,iram: phandle pointing to the mmio-sram device node, that should be + used for the PRE SRAM double buffer. + +example: + +pre@21c8000 { + compatible = "fsl,imx6qp-pre"; + reg = <0x021c8000 0x1000>; + interrupts = ; + clocks = <&clks IMX6QDL_CLK_PRE0>; + clock-names = "axi"; + fsl,iram = <&ocram2>; +}; + +Freescale i.MX PRG (Prefetch Resolve Gasket) +============================================ + +Required properties: +- compatible: should be "fsl,imx6qp-prg" +- reg: should be register base and length as documented in the + datasheet +- clocks : phandles to the PRG ipg and axi clock inputs, as described + in Documentation/devicetree/bindings/clock/clock-bindings.txt and + Documentation/devicetree/bindings/clock/imx6q-clock.yaml. +- clock-names: should be "ipg" and "axi" +- fsl,pres: phandles to the PRE units attached to this PRG, with the fixed + PRE as the first entry and the muxable PREs following. + +example: + +prg@21cc000 { + compatible = "fsl,imx6qp-prg"; + reg = <0x021cc000 0x1000>; + clocks = <&clks IMX6QDL_CLK_PRG0_APB>, + <&clks IMX6QDL_CLK_PRG0_AXI>; + clock-names = "ipg", "axi"; + fsl,pres = <&pre1>, <&pre2>, <&pre3>; +}; + +Parallel display support +======================== + +Required properties: +- compatible: Should be "fsl,imx-parallel-display" +Optional properties: +- interface-pix-fmt: How this display is connected to the + display interface. Currently supported types: "rgb24", "rgb565", "bgr666" + and "lvds666". +- edid: verbatim EDID data block describing attached display. +- ddc: phandle describing the i2c bus handling the display data + channel +- port@[0-1]: Port nodes with endpoint definitions as defined in + Documentation/devicetree/bindings/media/video-interfaces.txt. + Port 0 is the input port connected to the IPU display interface, + port 1 is the output port connected to a panel. + +example: + +disp0 { + compatible = "fsl,imx-parallel-display"; + edid = [edid-data]; + interface-pix-fmt = "rgb24"; + + port@0 { + reg = <0>; + + display_in: endpoint { + remote-endpoint = <&ipu_di0_disp0>; + }; + }; + + port@1 { + reg = <1>; + + display_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; +}; + +panel { + ... + + port { + panel_in: endpoint { + remote-endpoint = <&display_out>; + }; + }; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/imx/nxp,imx8mq-dcss.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/imx/nxp,imx8mq-dcss.yaml index 252025b91..4ae6328cd 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/imx/nxp,imx8mq-dcss.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/imx/nxp,imx8mq-dcss.yaml @@ -1,107 +1,107 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -# Copyright 2019 NXP -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/imx/nxp,imx8mq-dcss.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: iMX8MQ Display Controller Subsystem (DCSS) - -maintainers: - - Laurentiu Palcu - -description: - - The DCSS (display controller sub system) is used to source up to three - display buffers, compose them, and drive a display using HDMI 2.0a(with HDCP - 2.2) or MIPI-DSI. The DCSS is intended to support up to 4kp60 displays. HDR10 - image processing capabilities are included to provide a solution capable of - driving next generation high dynamic range displays. - -properties: - compatible: - const: nxp,imx8mq-dcss - - reg: - items: - - description: DCSS base address and size, up to IRQ steer start - - description: DCSS BLKCTL base address and size - - interrupts: - items: - - description: Context loader completion and error interrupt - - description: DTG interrupt used to signal context loader trigger time - - description: DTG interrupt for Vblank - - interrupt-names: - items: - - const: ctxld - - const: ctxld_kick - - const: vblank - - clocks: - items: - - description: Display APB clock for all peripheral PIO access interfaces - - description: Display AXI clock needed by DPR, Scaler, RTRAM_CTRL - - description: RTRAM clock - - description: Pixel clock, can be driven either by HDMI phy clock or MIPI - - description: DTRC clock, needed by video decompressor - - clock-names: - items: - - const: apb - - const: axi - - const: rtrm - - const: pix - - const: dtrc - - assigned-clocks: - items: - - description: Phandle and clock specifier of IMX8MQ_CLK_DISP_AXI_ROOT - - description: Phandle and clock specifier of IMX8MQ_CLK_DISP_RTRM - - description: Phandle and clock specifier of either IMX8MQ_VIDEO2_PLL1_REF_SEL or - IMX8MQ_VIDEO_PLL1_REF_SEL - - assigned-clock-parents: - items: - - description: Phandle and clock specifier of IMX8MQ_SYS1_PLL_800M - - description: Phandle and clock specifier of IMX8MQ_SYS1_PLL_800M - - description: Phandle and clock specifier of IMX8MQ_CLK_27M - - assigned-clock-rates: - items: - - description: Must be 800 MHz - - description: Must be 400 MHz - - port: - $ref: /schemas/graph.yaml#/properties/port - description: - A port node pointing to the input port of a HDMI/DP or MIPI display bridge. - -additionalProperties: false - -examples: - - | - #include - dcss: display-controller@32e00000 { - compatible = "nxp,imx8mq-dcss"; - reg = <0x32e00000 0x2d000>, <0x32e2f000 0x1000>; - interrupts = <6>, <8>, <9>; - interrupt-names = "ctxld", "ctxld_kick", "vblank"; - interrupt-parent = <&irqsteer>; - clocks = <&clk IMX8MQ_CLK_DISP_APB_ROOT>, <&clk IMX8MQ_CLK_DISP_AXI_ROOT>, - <&clk IMX8MQ_CLK_DISP_RTRM_ROOT>, <&clk IMX8MQ_VIDEO2_PLL_OUT>, - <&clk IMX8MQ_CLK_DISP_DTRC>; - clock-names = "apb", "axi", "rtrm", "pix", "dtrc"; - assigned-clocks = <&clk IMX8MQ_CLK_DISP_AXI>, <&clk IMX8MQ_CLK_DISP_RTRM>, - <&clk IMX8MQ_VIDEO2_PLL1_REF_SEL>; - assigned-clock-parents = <&clk IMX8MQ_SYS1_PLL_800M>, <&clk IMX8MQ_SYS1_PLL_800M>, - <&clk IMX8MQ_CLK_27M>; - assigned-clock-rates = <800000000>, - <400000000>; - port { - dcss_out: endpoint { - remote-endpoint = <&hdmi_in>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2019 NXP +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/imx/nxp,imx8mq-dcss.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: iMX8MQ Display Controller Subsystem (DCSS) + +maintainers: + - Laurentiu Palcu + +description: + + The DCSS (display controller sub system) is used to source up to three + display buffers, compose them, and drive a display using HDMI 2.0a(with HDCP + 2.2) or MIPI-DSI. The DCSS is intended to support up to 4kp60 displays. HDR10 + image processing capabilities are included to provide a solution capable of + driving next generation high dynamic range displays. + +properties: + compatible: + const: nxp,imx8mq-dcss + + reg: + items: + - description: DCSS base address and size, up to IRQ steer start + - description: DCSS BLKCTL base address and size + + interrupts: + items: + - description: Context loader completion and error interrupt + - description: DTG interrupt used to signal context loader trigger time + - description: DTG interrupt for Vblank + + interrupt-names: + items: + - const: ctxld + - const: ctxld_kick + - const: vblank + + clocks: + items: + - description: Display APB clock for all peripheral PIO access interfaces + - description: Display AXI clock needed by DPR, Scaler, RTRAM_CTRL + - description: RTRAM clock + - description: Pixel clock, can be driven either by HDMI phy clock or MIPI + - description: DTRC clock, needed by video decompressor + + clock-names: + items: + - const: apb + - const: axi + - const: rtrm + - const: pix + - const: dtrc + + assigned-clocks: + items: + - description: Phandle and clock specifier of IMX8MQ_CLK_DISP_AXI_ROOT + - description: Phandle and clock specifier of IMX8MQ_CLK_DISP_RTRM + - description: Phandle and clock specifier of either IMX8MQ_VIDEO2_PLL1_REF_SEL or + IMX8MQ_VIDEO_PLL1_REF_SEL + + assigned-clock-parents: + items: + - description: Phandle and clock specifier of IMX8MQ_SYS1_PLL_800M + - description: Phandle and clock specifier of IMX8MQ_SYS1_PLL_800M + - description: Phandle and clock specifier of IMX8MQ_CLK_27M + + assigned-clock-rates: + items: + - description: Must be 800 MHz + - description: Must be 400 MHz + + port: + $ref: /schemas/graph.yaml#/properties/port + description: + A port node pointing to the input port of a HDMI/DP or MIPI display bridge. + +additionalProperties: false + +examples: + - | + #include + dcss: display-controller@32e00000 { + compatible = "nxp,imx8mq-dcss"; + reg = <0x32e00000 0x2d000>, <0x32e2f000 0x1000>; + interrupts = <6>, <8>, <9>; + interrupt-names = "ctxld", "ctxld_kick", "vblank"; + interrupt-parent = <&irqsteer>; + clocks = <&clk IMX8MQ_CLK_DISP_APB_ROOT>, <&clk IMX8MQ_CLK_DISP_AXI_ROOT>, + <&clk IMX8MQ_CLK_DISP_RTRM_ROOT>, <&clk IMX8MQ_VIDEO2_PLL_OUT>, + <&clk IMX8MQ_CLK_DISP_DTRC>; + clock-names = "apb", "axi", "rtrm", "pix", "dtrc"; + assigned-clocks = <&clk IMX8MQ_CLK_DISP_AXI>, <&clk IMX8MQ_CLK_DISP_RTRM>, + <&clk IMX8MQ_VIDEO2_PLL1_REF_SEL>; + assigned-clock-parents = <&clk IMX8MQ_SYS1_PLL_800M>, <&clk IMX8MQ_SYS1_PLL_800M>, + <&clk IMX8MQ_CLK_27M>; + assigned-clock-rates = <800000000>, + <400000000>; + port { + dcss_out: endpoint { + remote-endpoint = <&hdmi_in>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/lvds-data-mapping.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/lvds-data-mapping.yaml index 6297fc1c6..d68982fe2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/lvds-data-mapping.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/lvds-data-mapping.yaml @@ -1,84 +1,84 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/lvds-data-mapping.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: LVDS Data Mapping - -maintainers: - - Laurent Pinchart - - Thierry Reding - -description: | - LVDS is a physical layer specification defined in ANSI/TIA/EIA-644-A. Multiple - incompatible data link layers have been used over time to transmit image data - to LVDS devices. This bindings supports devices compatible with the following - specifications. - - [JEIDA] "Digital Interface Standards for Monitor", JEIDA-59-1999, February - 1999 (Version 1.0), Japan Electronic Industry Development Association (JEIDA) - [LDI] "Open LVDS Display Interface", May 1999 (Version 0.95), National - Semiconductor - [VESA] "VESA Notebook Panel Standard", October 2007 (Version 1.0), Video - Electronics Standards Association (VESA) - - Device compatible with those specifications have been marketed under the - FPD-Link and FlatLink brands. - -properties: - data-mapping: - enum: - - jeida-18 - - jeida-24 - - vesa-24 - description: | - The color signals mapping order. - - LVDS data mappings are defined as follows. - - - "jeida-18" - 18-bit data mapping compatible with the [JEIDA], [LDI] and - [VESA] specifications. Data are transferred as follows on 3 LVDS lanes. - - Slot 0 1 2 3 4 5 6 - ________________ _________________ - Clock \_______________________/ - ______ ______ ______ ______ ______ ______ ______ - DATA0 ><__G0__><__R5__><__R4__><__R3__><__R2__><__R1__><__R0__>< - DATA1 ><__B1__><__B0__><__G5__><__G4__><__G3__><__G2__><__G1__>< - DATA2 ><_CTL2_><_CTL1_><_CTL0_><__B5__><__B4__><__B3__><__B2__>< - - - "jeida-24" - 24-bit data mapping compatible with the [DSIM] and [LDI] - specifications. Data are transferred as follows on 4 LVDS lanes. - - Slot 0 1 2 3 4 5 6 - ________________ _________________ - Clock \_______________________/ - ______ ______ ______ ______ ______ ______ ______ - DATA0 ><__G2__><__R7__><__R6__><__R5__><__R4__><__R3__><__R2__>< - DATA1 ><__B3__><__B2__><__G7__><__G6__><__G5__><__G4__><__G3__>< - DATA2 ><_CTL2_><_CTL1_><_CTL0_><__B7__><__B6__><__B5__><__B4__>< - DATA3 ><_CTL3_><__B1__><__B0__><__G1__><__G0__><__R1__><__R0__>< - - - "vesa-24" - 24-bit data mapping compatible with the [VESA] specification. - Data are transferred as follows on 4 LVDS lanes. - - Slot 0 1 2 3 4 5 6 - ________________ _________________ - Clock \_______________________/ - ______ ______ ______ ______ ______ ______ ______ - DATA0 ><__G0__><__R5__><__R4__><__R3__><__R2__><__R1__><__R0__>< - DATA1 ><__B1__><__B0__><__G5__><__G4__><__G3__><__G2__><__G1__>< - DATA2 ><_CTL2_><_CTL1_><_CTL0_><__B5__><__B4__><__B3__><__B2__>< - DATA3 ><_CTL3_><__B7__><__B6__><__G7__><__G6__><__R7__><__R6__>< - - Control signals are mapped as follows. - - CTL0: HSync - CTL1: VSync - CTL2: Data Enable - CTL3: 0 - -additionalProperties: true - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/lvds-data-mapping.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LVDS Data Mapping + +maintainers: + - Laurent Pinchart + - Thierry Reding + +description: | + LVDS is a physical layer specification defined in ANSI/TIA/EIA-644-A. Multiple + incompatible data link layers have been used over time to transmit image data + to LVDS devices. This bindings supports devices compatible with the following + specifications. + + [JEIDA] "Digital Interface Standards for Monitor", JEIDA-59-1999, February + 1999 (Version 1.0), Japan Electronic Industry Development Association (JEIDA) + [LDI] "Open LVDS Display Interface", May 1999 (Version 0.95), National + Semiconductor + [VESA] "VESA Notebook Panel Standard", October 2007 (Version 1.0), Video + Electronics Standards Association (VESA) + + Device compatible with those specifications have been marketed under the + FPD-Link and FlatLink brands. + +properties: + data-mapping: + enum: + - jeida-18 + - jeida-24 + - vesa-24 + description: | + The color signals mapping order. + + LVDS data mappings are defined as follows. + + - "jeida-18" - 18-bit data mapping compatible with the [JEIDA], [LDI] and + [VESA] specifications. Data are transferred as follows on 3 LVDS lanes. + + Slot 0 1 2 3 4 5 6 + ________________ _________________ + Clock \_______________________/ + ______ ______ ______ ______ ______ ______ ______ + DATA0 ><__G0__><__R5__><__R4__><__R3__><__R2__><__R1__><__R0__>< + DATA1 ><__B1__><__B0__><__G5__><__G4__><__G3__><__G2__><__G1__>< + DATA2 ><_CTL2_><_CTL1_><_CTL0_><__B5__><__B4__><__B3__><__B2__>< + + - "jeida-24" - 24-bit data mapping compatible with the [DSIM] and [LDI] + specifications. Data are transferred as follows on 4 LVDS lanes. + + Slot 0 1 2 3 4 5 6 + ________________ _________________ + Clock \_______________________/ + ______ ______ ______ ______ ______ ______ ______ + DATA0 ><__G2__><__R7__><__R6__><__R5__><__R4__><__R3__><__R2__>< + DATA1 ><__B3__><__B2__><__G7__><__G6__><__G5__><__G4__><__G3__>< + DATA2 ><_CTL2_><_CTL1_><_CTL0_><__B7__><__B6__><__B5__><__B4__>< + DATA3 ><_CTL3_><__B1__><__B0__><__G1__><__G0__><__R1__><__R0__>< + + - "vesa-24" - 24-bit data mapping compatible with the [VESA] specification. + Data are transferred as follows on 4 LVDS lanes. + + Slot 0 1 2 3 4 5 6 + ________________ _________________ + Clock \_______________________/ + ______ ______ ______ ______ ______ ______ ______ + DATA0 ><__G0__><__R5__><__R4__><__R3__><__R2__><__R1__><__R0__>< + DATA1 ><__B1__><__B0__><__G5__><__G4__><__G3__><__G2__><__G1__>< + DATA2 ><_CTL2_><_CTL1_><_CTL0_><__B5__><__B4__><__B3__><__B2__>< + DATA3 ><_CTL3_><__B7__><__B6__><__G7__><__G6__><__R7__><__R6__>< + + Control signals are mapped as follows. + + CTL0: HSync + CTL1: VSync + CTL2: Data Enable + CTL3: 0 + +additionalProperties: true + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml index cf621f9b4..d55611c7c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml @@ -1,109 +1,109 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/mediatek/mediatek,ovl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Mediatek display overlay - -maintainers: - - Chun-Kuang Hu - - Philipp Zabel - -description: | - Mediatek display overlay, namely OVL, can do alpha blending from - the memory. - OVL device node must be siblings to the central MMSYS_CONFIG node. - For a description of the MMSYS_CONFIG binding, see - Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml - for details. - -properties: - compatible: - oneOf: - - enum: - - mediatek,mt2701-disp-ovl - - mediatek,mt8173-disp-ovl - - mediatek,mt8183-disp-ovl - - mediatek,mt8192-disp-ovl - - mediatek,mt8195-mdp3-ovl - - items: - - enum: - - mediatek,mt7623-disp-ovl - - mediatek,mt2712-disp-ovl - - const: mediatek,mt2701-disp-ovl - - items: - - enum: - - mediatek,mt6795-disp-ovl - - const: mediatek,mt8173-disp-ovl - - items: - - enum: - - mediatek,mt8188-disp-ovl - - mediatek,mt8195-disp-ovl - - const: mediatek,mt8183-disp-ovl - - items: - - enum: - - mediatek,mt8186-disp-ovl - - mediatek,mt8365-disp-ovl - - const: mediatek,mt8192-disp-ovl - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - power-domains: - description: A phandle and PM domain specifier as defined by bindings of - the power controller specified by phandle. See - Documentation/devicetree/bindings/power/power-domain.yaml for details. - - clocks: - items: - - description: OVL Clock - - iommus: - description: - This property should point to the respective IOMMU block with master port as argument, - see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. - - mediatek,gce-client-reg: - description: The register of client driver can be configured by gce with - 4 arguments defined in this property, such as phandle of gce, subsys id, - register offset and size. Each GCE subsys id is mapping to a client - defined in the header include/dt-bindings/gce/-gce.h. - $ref: /schemas/types.yaml#/definitions/phandle-array - maxItems: 1 - -required: - - compatible - - reg - - interrupts - - power-domains - - clocks - - iommus - -additionalProperties: false - -examples: - - | - #include - #include - #include - #include - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - - ovl0: ovl@1400c000 { - compatible = "mediatek,mt8173-disp-ovl"; - reg = <0 0x1400c000 0 0x1000>; - interrupts = ; - power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; - clocks = <&mmsys CLK_MM_DISP_OVL0>; - iommus = <&iommu M4U_PORT_DISP_OVL0>; - mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0xc000 0x1000>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/mediatek/mediatek,ovl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek display overlay + +maintainers: + - Chun-Kuang Hu + - Philipp Zabel + +description: | + Mediatek display overlay, namely OVL, can do alpha blending from + the memory. + OVL device node must be siblings to the central MMSYS_CONFIG node. + For a description of the MMSYS_CONFIG binding, see + Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml + for details. + +properties: + compatible: + oneOf: + - enum: + - mediatek,mt2701-disp-ovl + - mediatek,mt8173-disp-ovl + - mediatek,mt8183-disp-ovl + - mediatek,mt8192-disp-ovl + - mediatek,mt8195-mdp3-ovl + - items: + - enum: + - mediatek,mt7623-disp-ovl + - mediatek,mt2712-disp-ovl + - const: mediatek,mt2701-disp-ovl + - items: + - enum: + - mediatek,mt6795-disp-ovl + - const: mediatek,mt8173-disp-ovl + - items: + - enum: + - mediatek,mt8188-disp-ovl + - mediatek,mt8195-disp-ovl + - const: mediatek,mt8183-disp-ovl + - items: + - enum: + - mediatek,mt8186-disp-ovl + - mediatek,mt8365-disp-ovl + - const: mediatek,mt8192-disp-ovl + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-domains: + description: A phandle and PM domain specifier as defined by bindings of + the power controller specified by phandle. See + Documentation/devicetree/bindings/power/power-domain.yaml for details. + + clocks: + items: + - description: OVL Clock + + iommus: + description: + This property should point to the respective IOMMU block with master port as argument, + see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. + + mediatek,gce-client-reg: + description: The register of client driver can be configured by gce with + 4 arguments defined in this property, such as phandle of gce, subsys id, + register offset and size. Each GCE subsys id is mapping to a client + defined in the header include/dt-bindings/gce/-gce.h. + $ref: /schemas/types.yaml#/definitions/phandle-array + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - power-domains + - clocks + - iommus + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + ovl0: ovl@1400c000 { + compatible = "mediatek,mt8173-disp-ovl"; + reg = <0 0x1400c000 0 0x1000>; + interrupts = ; + power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; + clocks = <&mmsys CLK_MM_DISP_OVL0>; + iommus = <&iommu M4U_PORT_DISP_OVL0>; + mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0xc000 0x1000>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml index 4f1aae507..4cadb245d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml @@ -1,122 +1,122 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/mediatek/mediatek,rdma.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Mediatek Read Direct Memory Access - -maintainers: - - Chun-Kuang Hu - - Philipp Zabel - -description: | - Mediatek Read Direct Memory Access(RDMA) component used to read the - data into DMA. It provides real time data to the back-end panel - driver, such as DSI, DPI and DP_INTF. - It contains one line buffer to store the sufficient pixel data. - RDMA device node must be siblings to the central MMSYS_CONFIG node. - For a description of the MMSYS_CONFIG binding, see - Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml - for details. - -properties: - compatible: - oneOf: - - enum: - - mediatek,mt2701-disp-rdma - - mediatek,mt8173-disp-rdma - - mediatek,mt8183-disp-rdma - - mediatek,mt8195-disp-rdma - - items: - - enum: - - mediatek,mt8188-disp-rdma - - const: mediatek,mt8195-disp-rdma - - items: - - enum: - - mediatek,mt7623-disp-rdma - - mediatek,mt2712-disp-rdma - - const: mediatek,mt2701-disp-rdma - - items: - - enum: - - mediatek,mt6795-disp-rdma - - const: mediatek,mt8173-disp-rdma - - items: - - enum: - - mediatek,mt8186-disp-rdma - - mediatek,mt8192-disp-rdma - - mediatek,mt8365-disp-rdma - - const: mediatek,mt8183-disp-rdma - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - power-domains: - description: A phandle and PM domain specifier as defined by bindings of - the power controller specified by phandle. See - Documentation/devicetree/bindings/power/power-domain.yaml for details. - - clocks: - items: - - description: RDMA Clock - - iommus: - description: - This property should point to the respective IOMMU block with master port as argument, - see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. - - mediatek,rdma-fifo-size: - description: - rdma fifo size may be different even in same SOC, add this property to the - corresponding rdma. - The value below is the Max value which defined in hardware data sheet - mediatek,rdma-fifo-size of mt8173-rdma0 is 8K - mediatek,rdma-fifo-size of mt8183-rdma0 is 5K - mediatek,rdma-fifo-size of mt8183-rdma1 is 2K - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [8192, 5120, 2048] - - mediatek,gce-client-reg: - description: The register of client driver can be configured by gce with - 4 arguments defined in this property, such as phandle of gce, subsys id, - register offset and size. Each GCE subsys id is mapping to a client - defined in the header include/dt-bindings/gce/-gce.h. - $ref: /schemas/types.yaml#/definitions/phandle-array - maxItems: 1 - -required: - - compatible - - reg - - interrupts - - power-domains - - clocks - - iommus - -additionalProperties: false - -examples: - - | - #include - #include - #include - #include - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - - rdma0: rdma@1400e000 { - compatible = "mediatek,mt8173-disp-rdma"; - reg = <0 0x1400e000 0 0x1000>; - interrupts = ; - power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; - clocks = <&mmsys CLK_MM_DISP_RDMA0>; - iommus = <&iommu M4U_PORT_DISP_RDMA0>; - mediatek,rdma-fifo-size = <8192>; - mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0xe000 0x1000>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/mediatek/mediatek,rdma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek Read Direct Memory Access + +maintainers: + - Chun-Kuang Hu + - Philipp Zabel + +description: | + Mediatek Read Direct Memory Access(RDMA) component used to read the + data into DMA. It provides real time data to the back-end panel + driver, such as DSI, DPI and DP_INTF. + It contains one line buffer to store the sufficient pixel data. + RDMA device node must be siblings to the central MMSYS_CONFIG node. + For a description of the MMSYS_CONFIG binding, see + Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml + for details. + +properties: + compatible: + oneOf: + - enum: + - mediatek,mt2701-disp-rdma + - mediatek,mt8173-disp-rdma + - mediatek,mt8183-disp-rdma + - mediatek,mt8195-disp-rdma + - items: + - enum: + - mediatek,mt8188-disp-rdma + - const: mediatek,mt8195-disp-rdma + - items: + - enum: + - mediatek,mt7623-disp-rdma + - mediatek,mt2712-disp-rdma + - const: mediatek,mt2701-disp-rdma + - items: + - enum: + - mediatek,mt6795-disp-rdma + - const: mediatek,mt8173-disp-rdma + - items: + - enum: + - mediatek,mt8186-disp-rdma + - mediatek,mt8192-disp-rdma + - mediatek,mt8365-disp-rdma + - const: mediatek,mt8183-disp-rdma + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-domains: + description: A phandle and PM domain specifier as defined by bindings of + the power controller specified by phandle. See + Documentation/devicetree/bindings/power/power-domain.yaml for details. + + clocks: + items: + - description: RDMA Clock + + iommus: + description: + This property should point to the respective IOMMU block with master port as argument, + see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. + + mediatek,rdma-fifo-size: + description: + rdma fifo size may be different even in same SOC, add this property to the + corresponding rdma. + The value below is the Max value which defined in hardware data sheet + mediatek,rdma-fifo-size of mt8173-rdma0 is 8K + mediatek,rdma-fifo-size of mt8183-rdma0 is 5K + mediatek,rdma-fifo-size of mt8183-rdma1 is 2K + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [8192, 5120, 2048] + + mediatek,gce-client-reg: + description: The register of client driver can be configured by gce with + 4 arguments defined in this property, such as phandle of gce, subsys id, + register offset and size. Each GCE subsys id is mapping to a client + defined in the header include/dt-bindings/gce/-gce.h. + $ref: /schemas/types.yaml#/definitions/phandle-array + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - power-domains + - clocks + - iommus + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + rdma0: rdma@1400e000 { + compatible = "mediatek,mt8173-disp-rdma"; + reg = <0 0x1400e000 0 0x1000>; + interrupts = ; + power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; + clocks = <&mmsys CLK_MM_DISP_RDMA0>; + iommus = <&iommu M4U_PORT_DISP_RDMA0>; + mediatek,rdma-fifo-size = <8192>; + mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0xe000 0x1000>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml index f309ba4bd..2735c78b0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml @@ -1,157 +1,157 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/msm/qcom,mdp5.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Adreno/Snapdragon Mobile Display controller (MDP5) - -description: - MDP5 display controller found in SoCs like MSM8974, APQ8084, MSM8916, MSM8994 - and MSM8996. - -maintainers: - - Dmitry Baryshkov - - Rob Clark - -properties: - compatible: - oneOf: - - const: qcom,mdp5 - deprecated: true - - items: - - enum: - - qcom,apq8084-mdp5 - - qcom,msm8226-mdp5 - - qcom,msm8916-mdp5 - - qcom,msm8917-mdp5 - - qcom,msm8937-mdp5 - - qcom,msm8953-mdp5 - - qcom,msm8974-mdp5 - - qcom,msm8976-mdp5 - - qcom,msm8994-mdp5 - - qcom,msm8996-mdp5 - - qcom,sdm630-mdp5 - - qcom,sdm660-mdp5 - - const: qcom,mdp5 - - $nodename: - pattern: '^display-controller@[0-9a-f]+$' - - reg: - maxItems: 1 - - reg-names: - items: - - const: mdp_phys - - interrupts: - maxItems: 1 - - clocks: - minItems: 4 - maxItems: 7 - - clock-names: - oneOf: - - minItems: 4 - items: - - const: iface - - const: bus - - const: core - - const: vsync - - const: tbu - - const: tbu_rt - # MSM8996 has additional iommu clock - - items: - - const: iface - - const: bus - - const: core - - const: iommu - - const: vsync - - interconnects: - minItems: 1 - items: - - description: Interconnect path from mdp0 (or a single mdp) port to the data bus - - description: Interconnect path from mdp1 port to the data bus - - description: Interconnect path from rotator port to the data bus - - interconnect-names: - minItems: 1 - items: - - const: mdp0-mem - - const: mdp1-mem - - const: rotator-mem - - iommus: - items: - - description: apps SMMU with the Stream-ID mask for Hard-Fail port0 - - power-domains: - maxItems: 1 - - operating-points-v2: true - opp-table: - type: object - - ports: - $ref: /schemas/graph.yaml#/properties/ports - description: > - Contains the list of output ports from DPU device. These ports - connect to interfaces that are external to the DPU hardware, - such as DSI, DP etc. MDP5 devices support up to 4 ports: - one or two DSI ports, HDMI and eDP. - - patternProperties: - "^port@[0-3]+$": - $ref: /schemas/graph.yaml#/properties/port - - # at least one port is required - required: - - port@0 - -required: - - compatible - - reg - - reg-names - - clocks - - clock-names - - ports - -additionalProperties: false - -examples: - - | - #include - #include - display-controller@1a01000 { - compatible = "qcom,mdp5"; - reg = <0x1a01000 0x90000>; - reg-names = "mdp_phys"; - - interrupt-parent = <&mdss>; - interrupts = <0>; - - clocks = <&gcc GCC_MDSS_AHB_CLK>, - <&gcc GCC_MDSS_AXI_CLK>, - <&gcc GCC_MDSS_MDP_CLK>, - <&gcc GCC_MDSS_VSYNC_CLK>; - clock-names = "iface", - "bus", - "core", - "vsync"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - endpoint { - remote-endpoint = <&dsi0_in>; - }; - }; - }; - }; -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/msm/qcom,mdp5.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Adreno/Snapdragon Mobile Display controller (MDP5) + +description: + MDP5 display controller found in SoCs like MSM8974, APQ8084, MSM8916, MSM8994 + and MSM8996. + +maintainers: + - Dmitry Baryshkov + - Rob Clark + +properties: + compatible: + oneOf: + - const: qcom,mdp5 + deprecated: true + - items: + - enum: + - qcom,apq8084-mdp5 + - qcom,msm8226-mdp5 + - qcom,msm8916-mdp5 + - qcom,msm8917-mdp5 + - qcom,msm8937-mdp5 + - qcom,msm8953-mdp5 + - qcom,msm8974-mdp5 + - qcom,msm8976-mdp5 + - qcom,msm8994-mdp5 + - qcom,msm8996-mdp5 + - qcom,sdm630-mdp5 + - qcom,sdm660-mdp5 + - const: qcom,mdp5 + + $nodename: + pattern: '^display-controller@[0-9a-f]+$' + + reg: + maxItems: 1 + + reg-names: + items: + - const: mdp_phys + + interrupts: + maxItems: 1 + + clocks: + minItems: 4 + maxItems: 7 + + clock-names: + oneOf: + - minItems: 4 + items: + - const: iface + - const: bus + - const: core + - const: vsync + - const: tbu + - const: tbu_rt + # MSM8996 has additional iommu clock + - items: + - const: iface + - const: bus + - const: core + - const: iommu + - const: vsync + + interconnects: + minItems: 1 + items: + - description: Interconnect path from mdp0 (or a single mdp) port to the data bus + - description: Interconnect path from mdp1 port to the data bus + - description: Interconnect path from rotator port to the data bus + + interconnect-names: + minItems: 1 + items: + - const: mdp0-mem + - const: mdp1-mem + - const: rotator-mem + + iommus: + items: + - description: apps SMMU with the Stream-ID mask for Hard-Fail port0 + + power-domains: + maxItems: 1 + + operating-points-v2: true + opp-table: + type: object + + ports: + $ref: /schemas/graph.yaml#/properties/ports + description: > + Contains the list of output ports from DPU device. These ports + connect to interfaces that are external to the DPU hardware, + such as DSI, DP etc. MDP5 devices support up to 4 ports: + one or two DSI ports, HDMI and eDP. + + patternProperties: + "^port@[0-3]+$": + $ref: /schemas/graph.yaml#/properties/port + + # at least one port is required + required: + - port@0 + +required: + - compatible + - reg + - reg-names + - clocks + - clock-names + - ports + +additionalProperties: false + +examples: + - | + #include + #include + display-controller@1a01000 { + compatible = "qcom,mdp5"; + reg = <0x1a01000 0x90000>; + reg-names = "mdp_phys"; + + interrupt-parent = <&mdss>; + interrupts = <0>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_MDP_CLK>, + <&gcc GCC_MDSS_VSYNC_CLK>; + clock-names = "iface", + "bus", + "core", + "vsync"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + endpoint { + remote-endpoint = <&dsi0_in>; + }; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,sc8280xp-mdss.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,sc8280xp-mdss.yaml index 18ba9d4ff..af79406e1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,sc8280xp-mdss.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,sc8280xp-mdss.yaml @@ -1,155 +1,155 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/msm/qcom,sc8280xp-mdss.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SC8280XP Mobile Display Subsystem - -maintainers: - - Bjorn Andersson - -description: - Device tree bindings for MSM Mobile Display Subsystem (MDSS) that encapsulates - sub-blocks like DPU display controller, DSI and DP interfaces etc. - -$ref: /schemas/display/msm/mdss-common.yaml# - -properties: - compatible: - const: qcom,sc8280xp-mdss - - clocks: - items: - - description: Display AHB clock from gcc - - description: Display AHB clock from dispcc - - description: Display core clock - - clock-names: - items: - - const: iface - - const: ahb - - const: core - -patternProperties: - "^display-controller@[0-9a-f]+$": - type: object - additionalProperties: true - - properties: - compatible: - const: qcom,sc8280xp-dpu - - "^displayport-controller@[0-9a-f]+$": - type: object - additionalProperties: true - - properties: - compatible: - enum: - - qcom,sc8280xp-dp - - qcom,sc8280xp-edp - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - #include - #include - - display-subsystem@ae00000 { - compatible = "qcom,sc8280xp-mdss"; - reg = <0x0ae00000 0x1000>; - reg-names = "mdss"; - - power-domains = <&dispcc0 MDSS_GDSC>; - - clocks = <&gcc GCC_DISP_AHB_CLK>, - <&dispcc0 DISP_CC_MDSS_AHB_CLK>, - <&dispcc0 DISP_CC_MDSS_MDP_CLK>; - clock-names = "iface", - "ahb", - "core"; - - resets = <&dispcc0 DISP_CC_MDSS_CORE_BCR>; - - interrupts = ; - interrupt-controller; - #interrupt-cells = <1>; - - interconnects = <&mmss_noc MASTER_MDP0 0 &mc_virt SLAVE_EBI1 0>, - <&mmss_noc MASTER_MDP1 0 &mc_virt SLAVE_EBI1 0>; - interconnect-names = "mdp0-mem", "mdp1-mem"; - - iommus = <&apps_smmu 0x1000 0x402>; - - #address-cells = <1>; - #size-cells = <1>; - ranges; - - display-controller@ae01000 { - compatible = "qcom,sc8280xp-dpu"; - reg = <0x0ae01000 0x8f000>, - <0x0aeb0000 0x2008>; - reg-names = "mdp", "vbif"; - - clocks = <&gcc GCC_DISP_HF_AXI_CLK>, - <&gcc GCC_DISP_SF_AXI_CLK>, - <&dispcc0 DISP_CC_MDSS_AHB_CLK>, - <&dispcc0 DISP_CC_MDSS_MDP_LUT_CLK>, - <&dispcc0 DISP_CC_MDSS_MDP_CLK>, - <&dispcc0 DISP_CC_MDSS_VSYNC_CLK>; - clock-names = "bus", - "nrt_bus", - "iface", - "lut", - "core", - "vsync"; - - assigned-clocks = <&dispcc0 DISP_CC_MDSS_VSYNC_CLK>; - assigned-clock-rates = <19200000>; - - operating-points-v2 = <&mdss0_mdp_opp_table>; - power-domains = <&rpmhpd SC8280XP_MMCX>; - - interrupt-parent = <&mdss0>; - interrupts = <0>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - endpoint { - remote-endpoint = <&mdss0_dp0_in>; - }; - }; - - port@4 { - reg = <4>; - endpoint { - remote-endpoint = <&mdss0_dp1_in>; - }; - }; - - port@5 { - reg = <5>; - endpoint { - remote-endpoint = <&mdss0_dp3_in>; - }; - }; - - port@6 { - reg = <6>; - endpoint { - remote-endpoint = <&mdss0_dp2_in>; - }; - }; - }; - }; - }; -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/msm/qcom,sc8280xp-mdss.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SC8280XP Mobile Display Subsystem + +maintainers: + - Bjorn Andersson + +description: + Device tree bindings for MSM Mobile Display Subsystem (MDSS) that encapsulates + sub-blocks like DPU display controller, DSI and DP interfaces etc. + +$ref: /schemas/display/msm/mdss-common.yaml# + +properties: + compatible: + const: qcom,sc8280xp-mdss + + clocks: + items: + - description: Display AHB clock from gcc + - description: Display AHB clock from dispcc + - description: Display core clock + + clock-names: + items: + - const: iface + - const: ahb + - const: core + +patternProperties: + "^display-controller@[0-9a-f]+$": + type: object + additionalProperties: true + + properties: + compatible: + const: qcom,sc8280xp-dpu + + "^displayport-controller@[0-9a-f]+$": + type: object + additionalProperties: true + + properties: + compatible: + enum: + - qcom,sc8280xp-dp + - qcom,sc8280xp-edp + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + #include + + display-subsystem@ae00000 { + compatible = "qcom,sc8280xp-mdss"; + reg = <0x0ae00000 0x1000>; + reg-names = "mdss"; + + power-domains = <&dispcc0 MDSS_GDSC>; + + clocks = <&gcc GCC_DISP_AHB_CLK>, + <&dispcc0 DISP_CC_MDSS_AHB_CLK>, + <&dispcc0 DISP_CC_MDSS_MDP_CLK>; + clock-names = "iface", + "ahb", + "core"; + + resets = <&dispcc0 DISP_CC_MDSS_CORE_BCR>; + + interrupts = ; + interrupt-controller; + #interrupt-cells = <1>; + + interconnects = <&mmss_noc MASTER_MDP0 0 &mc_virt SLAVE_EBI1 0>, + <&mmss_noc MASTER_MDP1 0 &mc_virt SLAVE_EBI1 0>; + interconnect-names = "mdp0-mem", "mdp1-mem"; + + iommus = <&apps_smmu 0x1000 0x402>; + + #address-cells = <1>; + #size-cells = <1>; + ranges; + + display-controller@ae01000 { + compatible = "qcom,sc8280xp-dpu"; + reg = <0x0ae01000 0x8f000>, + <0x0aeb0000 0x2008>; + reg-names = "mdp", "vbif"; + + clocks = <&gcc GCC_DISP_HF_AXI_CLK>, + <&gcc GCC_DISP_SF_AXI_CLK>, + <&dispcc0 DISP_CC_MDSS_AHB_CLK>, + <&dispcc0 DISP_CC_MDSS_MDP_LUT_CLK>, + <&dispcc0 DISP_CC_MDSS_MDP_CLK>, + <&dispcc0 DISP_CC_MDSS_VSYNC_CLK>; + clock-names = "bus", + "nrt_bus", + "iface", + "lut", + "core", + "vsync"; + + assigned-clocks = <&dispcc0 DISP_CC_MDSS_VSYNC_CLK>; + assigned-clock-rates = <19200000>; + + operating-points-v2 = <&mdss0_mdp_opp_table>; + power-domains = <&rpmhpd SC8280XP_MMCX>; + + interrupt-parent = <&mdss0>; + interrupts = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + endpoint { + remote-endpoint = <&mdss0_dp0_in>; + }; + }; + + port@4 { + reg = <4>; + endpoint { + remote-endpoint = <&mdss0_dp1_in>; + }; + }; + + port@5 { + reg = <5>; + endpoint { + remote-endpoint = <&mdss0_dp3_in>; + }; + }; + + port@6 { + reg = <6>; + endpoint { + remote-endpoint = <&mdss0_dp2_in>; + }; + }; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,sm7150-dpu.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,sm7150-dpu.yaml index 330ec69fb..c79b2d442 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,sm7150-dpu.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,sm7150-dpu.yaml @@ -1,143 +1,143 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/msm/qcom,sm7150-dpu.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SM7150 Display Processing Unit (DPU) - -maintainers: - - Danila Tikhonov - -$ref: /schemas/display/msm/dpu-common.yaml# - -properties: - compatible: - const: qcom,sm7150-dpu - - reg: - items: - - description: Address offset and size for mdp register set - - description: Address offset and size for vbif register set - - reg-names: - items: - - const: mdp - - const: vbif - - clocks: - items: - - description: Display hf axi clock - - description: Display ahb clock - - description: Display rotator clock - - description: Display lut clock - - description: Display core clock - - description: Display vsync clock - - clock-names: - items: - - const: bus - - const: iface - - const: rot - - const: lut - - const: core - - const: vsync - -required: - - compatible - - reg - - reg-names - - clocks - - clock-names - -unevaluatedProperties: false - -examples: - - | - #include - #include - - display-controller@ae01000 { - compatible = "qcom,sm7150-dpu"; - reg = <0x0ae01000 0x8f000>, - <0x0aeb0000 0x2008>; - reg-names = "mdp", "vbif"; - - clocks = <&gcc_disp_hf_axi_clk>, - <&dispcc_mdss_ahb_clk>, - <&dispcc_mdss_rot_clk>, - <&dispcc_mdss_mdp_lut_clk>, - <&dispcc_mdss_mdp_clk>, - <&dispcc_mdss_vsync_clk>; - clock-names = "bus", - "iface", - "rot", - "lut", - "core", - "vsync"; - - assigned-clocks = <&dispcc_mdss_vsync_clk>; - assigned-clock-rates = <19200000>; - - operating-points-v2 = <&mdp_opp_table>; - power-domains = <&rpmhpd RPMHPD_CX>; - - interrupt-parent = <&mdss>; - interrupts = <0>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - dpu_intf1_out: endpoint { - remote-endpoint = <&mdss_dsi0_in>; - }; - }; - - port@1 { - reg = <1>; - dpu_intf2_out: endpoint { - remote-endpoint = <&mdss_dsi1_in>; - }; - }; - - port@2 { - reg = <2>; - dpu_intf0_out: endpoint { - remote-endpoint = <&dp_in>; - }; - }; - }; - - mdp_opp_table: opp-table { - compatible = "operating-points-v2"; - - opp-19200000 { - opp-hz = /bits/ 64 <19200000>; - required-opps = <&rpmhpd_opp_min_svs>; - }; - - opp-200000000 { - opp-hz = /bits/ 64 <200000000>; - required-opps = <&rpmhpd_opp_low_svs>; - }; - - opp-300000000 { - opp-hz = /bits/ 64 <300000000>; - required-opps = <&rpmhpd_opp_svs>; - }; - - opp-344000000 { - opp-hz = /bits/ 64 <344000000>; - required-opps = <&rpmhpd_opp_svs_l1>; - }; - - opp-430000000 { - opp-hz = /bits/ 64 <430000000>; - required-opps = <&rpmhpd_opp_nom>; - }; - }; - }; -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/msm/qcom,sm7150-dpu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM7150 Display Processing Unit (DPU) + +maintainers: + - Danila Tikhonov + +$ref: /schemas/display/msm/dpu-common.yaml# + +properties: + compatible: + const: qcom,sm7150-dpu + + reg: + items: + - description: Address offset and size for mdp register set + - description: Address offset and size for vbif register set + + reg-names: + items: + - const: mdp + - const: vbif + + clocks: + items: + - description: Display hf axi clock + - description: Display ahb clock + - description: Display rotator clock + - description: Display lut clock + - description: Display core clock + - description: Display vsync clock + + clock-names: + items: + - const: bus + - const: iface + - const: rot + - const: lut + - const: core + - const: vsync + +required: + - compatible + - reg + - reg-names + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + #include + + display-controller@ae01000 { + compatible = "qcom,sm7150-dpu"; + reg = <0x0ae01000 0x8f000>, + <0x0aeb0000 0x2008>; + reg-names = "mdp", "vbif"; + + clocks = <&gcc_disp_hf_axi_clk>, + <&dispcc_mdss_ahb_clk>, + <&dispcc_mdss_rot_clk>, + <&dispcc_mdss_mdp_lut_clk>, + <&dispcc_mdss_mdp_clk>, + <&dispcc_mdss_vsync_clk>; + clock-names = "bus", + "iface", + "rot", + "lut", + "core", + "vsync"; + + assigned-clocks = <&dispcc_mdss_vsync_clk>; + assigned-clock-rates = <19200000>; + + operating-points-v2 = <&mdp_opp_table>; + power-domains = <&rpmhpd RPMHPD_CX>; + + interrupt-parent = <&mdss>; + interrupts = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dpu_intf1_out: endpoint { + remote-endpoint = <&mdss_dsi0_in>; + }; + }; + + port@1 { + reg = <1>; + dpu_intf2_out: endpoint { + remote-endpoint = <&mdss_dsi1_in>; + }; + }; + + port@2 { + reg = <2>; + dpu_intf0_out: endpoint { + remote-endpoint = <&dp_in>; + }; + }; + }; + + mdp_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-19200000 { + opp-hz = /bits/ 64 <19200000>; + required-opps = <&rpmhpd_opp_min_svs>; + }; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + required-opps = <&rpmhpd_opp_low_svs>; + }; + + opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + required-opps = <&rpmhpd_opp_svs>; + }; + + opp-344000000 { + opp-hz = /bits/ 64 <344000000>; + required-opps = <&rpmhpd_opp_svs_l1>; + }; + + opp-430000000 { + opp-hz = /bits/ 64 <430000000>; + required-opps = <&rpmhpd_opp_nom>; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,sm8450-dpu.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,sm8450-dpu.yaml index 0083d39e2..2a5d3daed 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,sm8450-dpu.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,sm8450-dpu.yaml @@ -1,139 +1,139 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/msm/qcom,sm8450-dpu.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SM8450 Display DPU - -maintainers: - - Dmitry Baryshkov - -$ref: /schemas/display/msm/dpu-common.yaml# - -properties: - compatible: - const: qcom,sm8450-dpu - - reg: - items: - - description: Address offset and size for mdp register set - - description: Address offset and size for vbif register set - - reg-names: - items: - - const: mdp - - const: vbif - - clocks: - items: - - description: Display hf axi - - description: Display sf axi - - description: Display ahb - - description: Display lut - - description: Display core - - description: Display vsync - - clock-names: - items: - - const: bus - - const: nrt_bus - - const: iface - - const: lut - - const: core - - const: vsync - -required: - - compatible - - reg - - reg-names - - clocks - - clock-names - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - #include - #include - - display-controller@ae01000 { - compatible = "qcom,sm8450-dpu"; - reg = <0x0ae01000 0x8f000>, - <0x0aeb0000 0x2008>; - reg-names = "mdp", "vbif"; - - clocks = <&gcc GCC_DISP_HF_AXI_CLK>, - <&gcc GCC_DISP_SF_AXI_CLK>, - <&dispcc DISP_CC_MDSS_AHB_CLK>, - <&dispcc DISP_CC_MDSS_MDP_LUT_CLK>, - <&dispcc DISP_CC_MDSS_MDP_CLK>, - <&dispcc DISP_CC_MDSS_VSYNC_CLK>; - clock-names = "bus", - "nrt_bus", - "iface", - "lut", - "core", - "vsync"; - - assigned-clocks = <&dispcc DISP_CC_MDSS_VSYNC_CLK>; - assigned-clock-rates = <19200000>; - - operating-points-v2 = <&mdp_opp_table>; - power-domains = <&rpmhpd RPMHPD_MMCX>; - - interrupt-parent = <&mdss>; - interrupts = <0>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - dpu_intf1_out: endpoint { - remote-endpoint = <&dsi0_in>; - }; - }; - - port@1 { - reg = <1>; - dpu_intf2_out: endpoint { - remote-endpoint = <&dsi1_in>; - }; - }; - }; - - mdp_opp_table: opp-table { - compatible = "operating-points-v2"; - - opp-172000000{ - opp-hz = /bits/ 64 <172000000>; - required-opps = <&rpmhpd_opp_low_svs_d1>; - }; - - opp-200000000 { - opp-hz = /bits/ 64 <200000000>; - required-opps = <&rpmhpd_opp_low_svs>; - }; - - opp-325000000 { - opp-hz = /bits/ 64 <325000000>; - required-opps = <&rpmhpd_opp_svs>; - }; - - opp-375000000 { - opp-hz = /bits/ 64 <375000000>; - required-opps = <&rpmhpd_opp_svs_l1>; - }; - - opp-500000000 { - opp-hz = /bits/ 64 <500000000>; - required-opps = <&rpmhpd_opp_nom>; - }; - }; - }; -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/msm/qcom,sm8450-dpu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM8450 Display DPU + +maintainers: + - Dmitry Baryshkov + +$ref: /schemas/display/msm/dpu-common.yaml# + +properties: + compatible: + const: qcom,sm8450-dpu + + reg: + items: + - description: Address offset and size for mdp register set + - description: Address offset and size for vbif register set + + reg-names: + items: + - const: mdp + - const: vbif + + clocks: + items: + - description: Display hf axi + - description: Display sf axi + - description: Display ahb + - description: Display lut + - description: Display core + - description: Display vsync + + clock-names: + items: + - const: bus + - const: nrt_bus + - const: iface + - const: lut + - const: core + - const: vsync + +required: + - compatible + - reg + - reg-names + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + #include + + display-controller@ae01000 { + compatible = "qcom,sm8450-dpu"; + reg = <0x0ae01000 0x8f000>, + <0x0aeb0000 0x2008>; + reg-names = "mdp", "vbif"; + + clocks = <&gcc GCC_DISP_HF_AXI_CLK>, + <&gcc GCC_DISP_SF_AXI_CLK>, + <&dispcc DISP_CC_MDSS_AHB_CLK>, + <&dispcc DISP_CC_MDSS_MDP_LUT_CLK>, + <&dispcc DISP_CC_MDSS_MDP_CLK>, + <&dispcc DISP_CC_MDSS_VSYNC_CLK>; + clock-names = "bus", + "nrt_bus", + "iface", + "lut", + "core", + "vsync"; + + assigned-clocks = <&dispcc DISP_CC_MDSS_VSYNC_CLK>; + assigned-clock-rates = <19200000>; + + operating-points-v2 = <&mdp_opp_table>; + power-domains = <&rpmhpd RPMHPD_MMCX>; + + interrupt-parent = <&mdss>; + interrupts = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dpu_intf1_out: endpoint { + remote-endpoint = <&dsi0_in>; + }; + }; + + port@1 { + reg = <1>; + dpu_intf2_out: endpoint { + remote-endpoint = <&dsi1_in>; + }; + }; + }; + + mdp_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-172000000{ + opp-hz = /bits/ 64 <172000000>; + required-opps = <&rpmhpd_opp_low_svs_d1>; + }; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + required-opps = <&rpmhpd_opp_low_svs>; + }; + + opp-325000000 { + opp-hz = /bits/ 64 <325000000>; + required-opps = <&rpmhpd_opp_svs>; + }; + + opp-375000000 { + opp-hz = /bits/ 64 <375000000>; + required-opps = <&rpmhpd_opp_svs_l1>; + }; + + opp-500000000 { + opp-hz = /bits/ 64 <500000000>; + required-opps = <&rpmhpd_opp_nom>; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,sm8550-dpu.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,sm8550-dpu.yaml index 612dbe739..16a541fca 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,sm8550-dpu.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/msm/qcom,sm8550-dpu.yaml @@ -1,133 +1,133 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/msm/qcom,sm8550-dpu.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SM8550 Display DPU - -maintainers: - - Neil Armstrong - -$ref: /schemas/display/msm/dpu-common.yaml# - -properties: - compatible: - const: qcom,sm8550-dpu - - reg: - items: - - description: Address offset and size for mdp register set - - description: Address offset and size for vbif register set - - reg-names: - items: - - const: mdp - - const: vbif - - clocks: - items: - - description: Display AHB - - description: Display hf axi - - description: Display MDSS ahb - - description: Display lut - - description: Display core - - description: Display vsync - - clock-names: - items: - - const: bus - - const: nrt_bus - - const: iface - - const: lut - - const: core - - const: vsync - -required: - - compatible - - reg - - reg-names - - clocks - - clock-names - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - #include - - display-controller@ae01000 { - compatible = "qcom,sm8550-dpu"; - reg = <0x0ae01000 0x8f000>, - <0x0aeb0000 0x2008>; - reg-names = "mdp", "vbif"; - - clocks = <&gcc GCC_DISP_AHB_CLK>, - <&gcc GCC_DISP_HF_AXI_CLK>, - <&dispcc DISP_CC_MDSS_AHB_CLK>, - <&dispcc DISP_CC_MDSS_MDP_LUT_CLK>, - <&dispcc DISP_CC_MDSS_MDP_CLK>, - <&dispcc DISP_CC_MDSS_VSYNC_CLK>; - clock-names = "bus", - "nrt_bus", - "iface", - "lut", - "core", - "vsync"; - - assigned-clocks = <&dispcc DISP_CC_MDSS_VSYNC_CLK>; - assigned-clock-rates = <19200000>; - - operating-points-v2 = <&mdp_opp_table>; - power-domains = <&rpmhpd RPMHPD_MMCX>; - - interrupt-parent = <&mdss>; - interrupts = <0>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - dpu_intf1_out: endpoint { - remote-endpoint = <&dsi0_in>; - }; - }; - - port@1 { - reg = <1>; - dpu_intf2_out: endpoint { - remote-endpoint = <&dsi1_in>; - }; - }; - }; - - mdp_opp_table: opp-table { - compatible = "operating-points-v2"; - - opp-200000000 { - opp-hz = /bits/ 64 <200000000>; - required-opps = <&rpmhpd_opp_low_svs>; - }; - - opp-325000000 { - opp-hz = /bits/ 64 <325000000>; - required-opps = <&rpmhpd_opp_svs>; - }; - - opp-375000000 { - opp-hz = /bits/ 64 <375000000>; - required-opps = <&rpmhpd_opp_svs_l1>; - }; - - opp-514000000 { - opp-hz = /bits/ 64 <514000000>; - required-opps = <&rpmhpd_opp_nom>; - }; - }; - }; -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/msm/qcom,sm8550-dpu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM8550 Display DPU + +maintainers: + - Neil Armstrong + +$ref: /schemas/display/msm/dpu-common.yaml# + +properties: + compatible: + const: qcom,sm8550-dpu + + reg: + items: + - description: Address offset and size for mdp register set + - description: Address offset and size for vbif register set + + reg-names: + items: + - const: mdp + - const: vbif + + clocks: + items: + - description: Display AHB + - description: Display hf axi + - description: Display MDSS ahb + - description: Display lut + - description: Display core + - description: Display vsync + + clock-names: + items: + - const: bus + - const: nrt_bus + - const: iface + - const: lut + - const: core + - const: vsync + +required: + - compatible + - reg + - reg-names + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + + display-controller@ae01000 { + compatible = "qcom,sm8550-dpu"; + reg = <0x0ae01000 0x8f000>, + <0x0aeb0000 0x2008>; + reg-names = "mdp", "vbif"; + + clocks = <&gcc GCC_DISP_AHB_CLK>, + <&gcc GCC_DISP_HF_AXI_CLK>, + <&dispcc DISP_CC_MDSS_AHB_CLK>, + <&dispcc DISP_CC_MDSS_MDP_LUT_CLK>, + <&dispcc DISP_CC_MDSS_MDP_CLK>, + <&dispcc DISP_CC_MDSS_VSYNC_CLK>; + clock-names = "bus", + "nrt_bus", + "iface", + "lut", + "core", + "vsync"; + + assigned-clocks = <&dispcc DISP_CC_MDSS_VSYNC_CLK>; + assigned-clock-rates = <19200000>; + + operating-points-v2 = <&mdp_opp_table>; + power-domains = <&rpmhpd RPMHPD_MMCX>; + + interrupt-parent = <&mdss>; + interrupts = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dpu_intf1_out: endpoint { + remote-endpoint = <&dsi0_in>; + }; + }; + + port@1 { + reg = <1>; + dpu_intf2_out: endpoint { + remote-endpoint = <&dsi1_in>; + }; + }; + }; + + mdp_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + required-opps = <&rpmhpd_opp_low_svs>; + }; + + opp-325000000 { + opp-hz = /bits/ 64 <325000000>; + required-opps = <&rpmhpd_opp_svs>; + }; + + opp-375000000 { + opp-hz = /bits/ 64 <375000000>; + required-opps = <&rpmhpd_opp_svs_l1>; + }; + + opp-514000000 { + opp-hz = /bits/ 64 <514000000>; + required-opps = <&rpmhpd_opp_nom>; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/panel/panel-edp-legacy.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/panel/panel-edp-legacy.yaml index 910de31e0..b308047c1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/panel/panel-edp-legacy.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/panel/panel-edp-legacy.yaml @@ -1,117 +1,117 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/panel/panel-edp-legacy.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Legacy eDP panels from before the "edp-panel" compatible - -maintainers: - - Douglas Anderson - -description: | - This binding file is a collection of eDP panels from before the generic - "edp-panel" compatible was introduced. It is kept around to support old - dts files. The only reason one might add a new panel here instead of using - the generic "edp-panel" is if it needed to be used on an eDP controller - that doesn't support the generic "edp-panel" compatible, but it should be - a strong preference to add the generic "edp-panel" compatible instead. - -allOf: - - $ref: panel-common.yaml# - -properties: - compatible: - enum: - # compatible must be listed in alphabetical order, ordered by compatible. - # The description in the comment is mandatory for each compatible. - - # AU Optronics Corporation 10.1" WSVGA TFT LCD panel - - auo,b101ean01 - # AUO B116XAK01 eDP TFT LCD panel - - auo,b116xa01 - # AU Optronics Corporation 13.3" FHD (1920x1080) color TFT-LCD panel - - auo,b133htn01 - # AU Optronics Corporation 13.3" WXGA (1366x768) TFT LCD panel - - auo,b133xtn01 - # BOE OPTOELECTRONICS TECHNOLOGY 10.1" WXGA TFT LCD panel - - boe,nv101wxmn51 - # BOE NV133FHM-N61 13.3" FHD (1920x1080) TFT LCD Panel - - boe,nv110wtm-n61 - # BOE NV110WTM-N61 11.0" 2160x1440 TFT LCD Panel - - boe,nv133fhm-n61 - # BOE NV133FHM-N62 13.3" FHD (1920x1080) TFT LCD Panel - - boe,nv133fhm-n62 - # BOE NV140FHM-N49 14.0" FHD a-Si FT panel - - boe,nv140fhmn49 - # Innolux Corporation 11.6" WXGA (1366x768) TFT LCD panel - - innolux,n116bca-ea1 - # Innolux Corporation 11.6" WXGA (1366x768) TFT LCD panel - - innolux,n116bge - # InnoLux 13.3" FHD (1920x1080) eDP TFT LCD panel - - innolux,n125hce-gn1 - # Innolux P120ZDG-BF1 12.02 inch eDP 2K display panel - - innolux,p120zdg-bf1 - # King & Display KD116N21-30NV-A010 eDP TFT LCD panel - - kingdisplay,kd116n21-30nv-a010 - # LG LP079QX1-SP0V 7.9" (1536x2048 pixels) TFT LCD panel - - lg,lp079qx1-sp0v - # LG 9.7" (2048x1536 pixels) TFT LCD panel - - lg,lp097qx1-spa1 - # LG 12.0" (1920x1280 pixels) TFT LCD panel - - lg,lp120up1 - # LG 12.9" (2560x1700 pixels) TFT LCD panel - - lg,lp129qe - # NewEast Optoelectronics CO., LTD WJFH116008A eDP TFT LCD panel - - neweast,wjfh116008a - # Samsung 12.2" (2560x1600 pixels) TFT LCD panel - - samsung,lsn122dl01-c01 - # Samsung Electronics 14" WXGA (1366x768) TFT LCD panel - - samsung,ltn140at29-301 - # Sharp LD-D5116Z01B 12.3" WUXGA+ eDP panel - - sharp,ld-d5116z01b - # Sharp 12.3" (2400x1600 pixels) TFT LCD panel - - sharp,lq123p1jx31 - - backlight: true - ddc-i2c-bus: true - enable-gpios: true - panel-timing: true - port: true - power-supply: true - no-hpd: true - hpd-gpios: true - -additionalProperties: false - -required: - - compatible - - power-supply - -examples: - - | - panel: panel { - compatible = "innolux,n116bge"; - power-supply = <&panel_regulator>; - backlight = <&backlight>; - - panel-timing { - clock-frequency = <74250000>; - hactive = <1366>; - hfront-porch = <136>; - hback-porch = <60>; - hsync-len = <30>; - hsync-active = <0>; - vactive = <768>; - vfront-porch = <8>; - vback-porch = <12>; - vsync-len = <12>; - vsync-active = <0>; - }; - - port { - panel_in_edp: endpoint { - remote-endpoint = <&edp_out_panel>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/panel-edp-legacy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Legacy eDP panels from before the "edp-panel" compatible + +maintainers: + - Douglas Anderson + +description: | + This binding file is a collection of eDP panels from before the generic + "edp-panel" compatible was introduced. It is kept around to support old + dts files. The only reason one might add a new panel here instead of using + the generic "edp-panel" is if it needed to be used on an eDP controller + that doesn't support the generic "edp-panel" compatible, but it should be + a strong preference to add the generic "edp-panel" compatible instead. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + enum: + # compatible must be listed in alphabetical order, ordered by compatible. + # The description in the comment is mandatory for each compatible. + + # AU Optronics Corporation 10.1" WSVGA TFT LCD panel + - auo,b101ean01 + # AUO B116XAK01 eDP TFT LCD panel + - auo,b116xa01 + # AU Optronics Corporation 13.3" FHD (1920x1080) color TFT-LCD panel + - auo,b133htn01 + # AU Optronics Corporation 13.3" WXGA (1366x768) TFT LCD panel + - auo,b133xtn01 + # BOE OPTOELECTRONICS TECHNOLOGY 10.1" WXGA TFT LCD panel + - boe,nv101wxmn51 + # BOE NV133FHM-N61 13.3" FHD (1920x1080) TFT LCD Panel + - boe,nv110wtm-n61 + # BOE NV110WTM-N61 11.0" 2160x1440 TFT LCD Panel + - boe,nv133fhm-n61 + # BOE NV133FHM-N62 13.3" FHD (1920x1080) TFT LCD Panel + - boe,nv133fhm-n62 + # BOE NV140FHM-N49 14.0" FHD a-Si FT panel + - boe,nv140fhmn49 + # Innolux Corporation 11.6" WXGA (1366x768) TFT LCD panel + - innolux,n116bca-ea1 + # Innolux Corporation 11.6" WXGA (1366x768) TFT LCD panel + - innolux,n116bge + # InnoLux 13.3" FHD (1920x1080) eDP TFT LCD panel + - innolux,n125hce-gn1 + # Innolux P120ZDG-BF1 12.02 inch eDP 2K display panel + - innolux,p120zdg-bf1 + # King & Display KD116N21-30NV-A010 eDP TFT LCD panel + - kingdisplay,kd116n21-30nv-a010 + # LG LP079QX1-SP0V 7.9" (1536x2048 pixels) TFT LCD panel + - lg,lp079qx1-sp0v + # LG 9.7" (2048x1536 pixels) TFT LCD panel + - lg,lp097qx1-spa1 + # LG 12.0" (1920x1280 pixels) TFT LCD panel + - lg,lp120up1 + # LG 12.9" (2560x1700 pixels) TFT LCD panel + - lg,lp129qe + # NewEast Optoelectronics CO., LTD WJFH116008A eDP TFT LCD panel + - neweast,wjfh116008a + # Samsung 12.2" (2560x1600 pixels) TFT LCD panel + - samsung,lsn122dl01-c01 + # Samsung Electronics 14" WXGA (1366x768) TFT LCD panel + - samsung,ltn140at29-301 + # Sharp LD-D5116Z01B 12.3" WUXGA+ eDP panel + - sharp,ld-d5116z01b + # Sharp 12.3" (2400x1600 pixels) TFT LCD panel + - sharp,lq123p1jx31 + + backlight: true + ddc-i2c-bus: true + enable-gpios: true + panel-timing: true + port: true + power-supply: true + no-hpd: true + hpd-gpios: true + +additionalProperties: false + +required: + - compatible + - power-supply + +examples: + - | + panel: panel { + compatible = "innolux,n116bge"; + power-supply = <&panel_regulator>; + backlight = <&backlight>; + + panel-timing { + clock-frequency = <74250000>; + hactive = <1366>; + hfront-porch = <136>; + hback-porch = <60>; + hsync-len = <30>; + hsync-active = <0>; + vactive = <768>; + vfront-porch = <8>; + vback-porch = <12>; + vsync-len = <12>; + vsync-active = <0>; + }; + + port { + panel_in_edp: endpoint { + remote-endpoint = <&edp_out_panel>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/panel/panel-simple-lvds-dual-ports.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/panel/panel-simple-lvds-dual-ports.yaml index d2e525366..10ed4b572 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/panel/panel-simple-lvds-dual-ports.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/panel/panel-simple-lvds-dual-ports.yaml @@ -1,122 +1,122 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/panel/panel-simple-lvds-dual-ports.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Simple LVDS panels with one power supply and dual LVDS ports - -maintainers: - - Liu Ying - - Thierry Reding - - Sam Ravnborg - -description: | - This binding file is a collection of the LVDS panels that - has dual LVDS ports and requires only a single power-supply. - The first port receives odd pixels, and the second port receives even pixels. - There are optionally a backlight and an enable GPIO. - The panel may use an OF graph binding for the association to the display, - or it may be a direct child node of the display. - - If the panel is more advanced a dedicated binding file is required. - -allOf: - - $ref: panel-common.yaml# - -properties: - - compatible: - enum: - # compatible must be listed in alphabetical order, ordered by compatible. - # The description in the comment is mandatory for each compatible. - - # AU Optronics Corporation 13.3" FHD (1920x1080) TFT LCD panel - - auo,g133han01 - # AU Optronics Corporation 15.6" FHD (1920x1080) TFT LCD panel - - auo,g156han04 - # AU Optronics Corporation 18.5" FHD (1920x1080) TFT LCD panel - - auo,g185han01 - # AU Optronics Corporation 19.0" (1280x1024) TFT LCD panel - - auo,g190ean01 - # Kaohsiung Opto-Electronics Inc. 10.1" WUXGA (1920 x 1200) LVDS TFT LCD panel - - koe,tx26d202vm0bwa - # Lincoln Technology Solutions, LCD185-101CT 10.1" TFT 1920x1200 - - lincolntech,lcd185-101ct - # Microtips Technology MF-101HIEBCAF0 10.1" WUXGA (1920x1200) TFT LCD panel - - microtips,mf-101hiebcaf0 - # Microtips Technology MF-103HIEB0GA0 10.25" 1920x720 TFT LCD panel - - microtips,mf-103hieb0ga0 - # NLT Technologies, Ltd. 15.6" FHD (1920x1080) LVDS TFT LCD panel - - nlt,nl192108ac18-02d - - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port@0: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: The first sink port. - - properties: - dual-lvds-odd-pixels: - type: boolean - description: The first sink port for odd pixels. - - required: - - dual-lvds-odd-pixels - - port@1: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: The second sink port. - - properties: - dual-lvds-even-pixels: - type: boolean - description: The second sink port for even pixels. - - required: - - dual-lvds-even-pixels - - required: - - port@0 - - port@1 - -unevaluatedProperties: false - -required: - - compatible - - ports - - power-supply - -examples: - - | - panel: panel-lvds { - compatible = "koe,tx26d202vm0bwa"; - power-supply = <&vdd_lcd_reg>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - dual-lvds-odd-pixels; - reg = <0>; - - panel_lvds0_in: endpoint { - remote-endpoint = <&lvds0_out>; - }; - }; - - port@1 { - dual-lvds-even-pixels; - reg = <1>; - - panel_lvds1_in: endpoint { - remote-endpoint = <&lvds1_out>; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/panel-simple-lvds-dual-ports.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Simple LVDS panels with one power supply and dual LVDS ports + +maintainers: + - Liu Ying + - Thierry Reding + - Sam Ravnborg + +description: | + This binding file is a collection of the LVDS panels that + has dual LVDS ports and requires only a single power-supply. + The first port receives odd pixels, and the second port receives even pixels. + There are optionally a backlight and an enable GPIO. + The panel may use an OF graph binding for the association to the display, + or it may be a direct child node of the display. + + If the panel is more advanced a dedicated binding file is required. + +allOf: + - $ref: panel-common.yaml# + +properties: + + compatible: + enum: + # compatible must be listed in alphabetical order, ordered by compatible. + # The description in the comment is mandatory for each compatible. + + # AU Optronics Corporation 13.3" FHD (1920x1080) TFT LCD panel + - auo,g133han01 + # AU Optronics Corporation 15.6" FHD (1920x1080) TFT LCD panel + - auo,g156han04 + # AU Optronics Corporation 18.5" FHD (1920x1080) TFT LCD panel + - auo,g185han01 + # AU Optronics Corporation 19.0" (1280x1024) TFT LCD panel + - auo,g190ean01 + # Kaohsiung Opto-Electronics Inc. 10.1" WUXGA (1920 x 1200) LVDS TFT LCD panel + - koe,tx26d202vm0bwa + # Lincoln Technology Solutions, LCD185-101CT 10.1" TFT 1920x1200 + - lincolntech,lcd185-101ct + # Microtips Technology MF-101HIEBCAF0 10.1" WUXGA (1920x1200) TFT LCD panel + - microtips,mf-101hiebcaf0 + # Microtips Technology MF-103HIEB0GA0 10.25" 1920x720 TFT LCD panel + - microtips,mf-103hieb0ga0 + # NLT Technologies, Ltd. 15.6" FHD (1920x1080) LVDS TFT LCD panel + - nlt,nl192108ac18-02d + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: The first sink port. + + properties: + dual-lvds-odd-pixels: + type: boolean + description: The first sink port for odd pixels. + + required: + - dual-lvds-odd-pixels + + port@1: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: The second sink port. + + properties: + dual-lvds-even-pixels: + type: boolean + description: The second sink port for even pixels. + + required: + - dual-lvds-even-pixels + + required: + - port@0 + - port@1 + +unevaluatedProperties: false + +required: + - compatible + - ports + - power-supply + +examples: + - | + panel: panel-lvds { + compatible = "koe,tx26d202vm0bwa"; + power-supply = <&vdd_lcd_reg>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + dual-lvds-odd-pixels; + reg = <0>; + + panel_lvds0_in: endpoint { + remote-endpoint = <&lvds0_out>; + }; + }; + + port@1 { + dual-lvds-even-pixels; + reg = <1>; + + panel_lvds1_in: endpoint { + remote-endpoint = <&lvds1_out>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml index 3b8b9df8b..b07f3eca6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml @@ -1,143 +1,143 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/panel/sitronix,st7701.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Sitronix ST7701 based LCD panels - -maintainers: - - Jagan Teki - -description: | - ST7701 designed for small and medium sizes of TFT LCD display, is - capable of supporting up to 480RGBX864 in resolution. It provides - several system interfaces like MIPI/RGB/SPI. - - Techstar TS8550B is 480x854, 2-lane MIPI DSI LCD panel which has - inbuilt ST7701 chip. - - Densitron DMT028VGHMCMI-1A is 480x640, 2-lane MIPI DSI LCD panel - which has built-in ST7701 chip. - -properties: - compatible: - items: - - enum: - - anbernic,rg-arc-panel - - anbernic,rg28xx-panel - - densitron,dmt028vghmcmi-1a - - elida,kd50t048a - - techstar,ts8550b - - const: sitronix,st7701 - - reg: - description: DSI / SPI channel used by that screen - maxItems: 1 - - VCC-supply: - description: analog regulator for MIPI circuit - - IOVCC-supply: - description: I/O system regulator - - dc-gpios: - maxItems: 1 - description: - Controller data/command selection (D/CX) in 4-line SPI mode. - If not set, the controller is in 3-line SPI mode. - Disallowed for DSI. - - port: true - reset-gpios: true - rotation: true - - backlight: true - -required: - - compatible - - reg - - VCC-supply - - IOVCC-supply - - port - - reset-gpios - -allOf: - - $ref: panel-common.yaml# - - if: - properties: - compatible: - contains: - # SPI connected panels - enum: - - anbernic,rg28xx-panel - then: - $ref: /schemas/spi/spi-peripheral-props.yaml# - - - if: - properties: - compatible: - not: - contains: - # DSI or SPI without D/CX pin - enum: - - anbernic,rg-arc-panel - - anbernic,rg28xx-panel - - densitron,dmt028vghmcmi-1a - - elida,kd50t048a - - techstar,ts8550b - then: - required: - - dc-gpios - else: - properties: - dc-gpios: false - -unevaluatedProperties: false - -examples: - - | - #include - - dsi { - #address-cells = <1>; - #size-cells = <0>; - - panel@0 { - compatible = "techstar,ts8550b", "sitronix,st7701"; - reg = <0>; - VCC-supply = <®_dldo2>; - IOVCC-supply = <®_dldo2>; - reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ - backlight = <&backlight>; - - port { - mipi_in_panel: endpoint { - remote-endpoint = <&mipi_out_panel>; - }; - }; - }; - }; - - | - #include - - spi { - #address-cells = <1>; - #size-cells = <0>; - - panel@0 { - compatible = "anbernic,rg28xx-panel", "sitronix,st7701"; - reg = <0>; - spi-max-frequency = <3125000>; - VCC-supply = <®_lcd>; - IOVCC-supply = <®_lcd>; - reset-gpios = <&pio 8 14 GPIO_ACTIVE_HIGH>; /* LCD-RST: PI14 */ - backlight = <&backlight>; - - port { - panel_in_rgb: endpoint { - remote-endpoint = <&tcon_lcd0_out_lcd>; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/sitronix,st7701.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sitronix ST7701 based LCD panels + +maintainers: + - Jagan Teki + +description: | + ST7701 designed for small and medium sizes of TFT LCD display, is + capable of supporting up to 480RGBX864 in resolution. It provides + several system interfaces like MIPI/RGB/SPI. + + Techstar TS8550B is 480x854, 2-lane MIPI DSI LCD panel which has + inbuilt ST7701 chip. + + Densitron DMT028VGHMCMI-1A is 480x640, 2-lane MIPI DSI LCD panel + which has built-in ST7701 chip. + +properties: + compatible: + items: + - enum: + - anbernic,rg-arc-panel + - anbernic,rg28xx-panel + - densitron,dmt028vghmcmi-1a + - elida,kd50t048a + - techstar,ts8550b + - const: sitronix,st7701 + + reg: + description: DSI / SPI channel used by that screen + maxItems: 1 + + VCC-supply: + description: analog regulator for MIPI circuit + + IOVCC-supply: + description: I/O system regulator + + dc-gpios: + maxItems: 1 + description: + Controller data/command selection (D/CX) in 4-line SPI mode. + If not set, the controller is in 3-line SPI mode. + Disallowed for DSI. + + port: true + reset-gpios: true + rotation: true + + backlight: true + +required: + - compatible + - reg + - VCC-supply + - IOVCC-supply + - port + - reset-gpios + +allOf: + - $ref: panel-common.yaml# + - if: + properties: + compatible: + contains: + # SPI connected panels + enum: + - anbernic,rg28xx-panel + then: + $ref: /schemas/spi/spi-peripheral-props.yaml# + + - if: + properties: + compatible: + not: + contains: + # DSI or SPI without D/CX pin + enum: + - anbernic,rg-arc-panel + - anbernic,rg28xx-panel + - densitron,dmt028vghmcmi-1a + - elida,kd50t048a + - techstar,ts8550b + then: + required: + - dc-gpios + else: + properties: + dc-gpios: false + +unevaluatedProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "techstar,ts8550b", "sitronix,st7701"; + reg = <0>; + VCC-supply = <®_dldo2>; + IOVCC-supply = <®_dldo2>; + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ + backlight = <&backlight>; + + port { + mipi_in_panel: endpoint { + remote-endpoint = <&mipi_out_panel>; + }; + }; + }; + }; + - | + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "anbernic,rg28xx-panel", "sitronix,st7701"; + reg = <0>; + spi-max-frequency = <3125000>; + VCC-supply = <®_lcd>; + IOVCC-supply = <®_lcd>; + reset-gpios = <&pio 8 14 GPIO_ACTIVE_HIGH>; /* LCD-RST: PI14 */ + backlight = <&backlight>; + + port { + panel_in_rgb: endpoint { + remote-endpoint = <&tcon_lcd0_out_lcd>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/renesas,rzg2l-du.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/renesas,rzg2l-du.yaml index bd6cba01d..95e3d5e74 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/renesas,rzg2l-du.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/renesas,rzg2l-du.yaml @@ -1,152 +1,152 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/renesas,rzg2l-du.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas RZ/G2L Display Unit (DU) - -maintainers: - - Biju Das - - Laurent Pinchart - -description: | - These DT bindings describe the Display Unit embedded in the Renesas RZ/G2L - and RZ/V2L SoCs. - -properties: - compatible: - oneOf: - - enum: - - renesas,r9a07g043u-du # RZ/G2UL - - renesas,r9a07g044-du # RZ/G2{L,LC} - - items: - - enum: - - renesas,r9a07g054-du # RZ/V2L - - const: renesas,r9a07g044-du # RZ/G2L fallback - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - items: - - description: Main clock - - description: Register access clock - - description: Video clock - - clock-names: - items: - - const: aclk - - const: pclk - - const: vclk - - resets: - maxItems: 1 - - power-domains: - maxItems: 1 - - ports: - $ref: /schemas/graph.yaml#/properties/ports - description: | - The connections to the DU output video ports are modeled using the OF - graph bindings. The number of ports and their assignment are - model-dependent. Each port shall have a single endpoint. - - patternProperties: - "^port@[0-1]$": - $ref: /schemas/graph.yaml#/properties/port - unevaluatedProperties: false - - unevaluatedProperties: false - - renesas,vsps: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - items: - - description: phandle to VSP instance that serves the DU channel - - description: Channel index identifying the LIF instance in that VSP - description: - A list of phandle and channel index tuples to the VSPs that handle the - memory interfaces for the DU channels. - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - - resets - - power-domains - - ports - - renesas,vsps - -additionalProperties: false - -allOf: - - if: - properties: - compatible: - contains: - const: renesas,r9a07g043u-du - then: - properties: - ports: - properties: - port@0: - description: DPI - - required: - - port@0 - else: - properties: - ports: - properties: - port@0: - description: DSI - port@1: - description: DPI - - required: - - port@0 - - port@1 - -examples: - # RZ/G2L DU - - | - #include - #include - - display@10890000 { - compatible = "renesas,r9a07g044-du"; - reg = <0x10890000 0x10000>; - interrupts = ; - clocks = <&cpg CPG_MOD R9A07G044_LCDC_CLK_A>, - <&cpg CPG_MOD R9A07G044_LCDC_CLK_P>, - <&cpg CPG_MOD R9A07G044_LCDC_CLK_D>; - clock-names = "aclk", "pclk", "vclk"; - resets = <&cpg R9A07G044_LCDC_RESET_N>; - power-domains = <&cpg>; - - renesas,vsps = <&vspd0 0>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - endpoint { - remote-endpoint = <&dsi0_in>; - }; - }; - port@1 { - reg = <1>; - }; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/renesas,rzg2l-du.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/G2L Display Unit (DU) + +maintainers: + - Biju Das + - Laurent Pinchart + +description: | + These DT bindings describe the Display Unit embedded in the Renesas RZ/G2L + and RZ/V2L SoCs. + +properties: + compatible: + oneOf: + - enum: + - renesas,r9a07g043u-du # RZ/G2UL + - renesas,r9a07g044-du # RZ/G2{L,LC} + - items: + - enum: + - renesas,r9a07g054-du # RZ/V2L + - const: renesas,r9a07g044-du # RZ/G2L fallback + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Main clock + - description: Register access clock + - description: Video clock + + clock-names: + items: + - const: aclk + - const: pclk + - const: vclk + + resets: + maxItems: 1 + + power-domains: + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + description: | + The connections to the DU output video ports are modeled using the OF + graph bindings. The number of ports and their assignment are + model-dependent. Each port shall have a single endpoint. + + patternProperties: + "^port@[0-1]$": + $ref: /schemas/graph.yaml#/properties/port + unevaluatedProperties: false + + unevaluatedProperties: false + + renesas,vsps: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + items: + - description: phandle to VSP instance that serves the DU channel + - description: Channel index identifying the LIF instance in that VSP + description: + A list of phandle and channel index tuples to the VSPs that handle the + memory interfaces for the DU channels. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + - power-domains + - ports + - renesas,vsps + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + contains: + const: renesas,r9a07g043u-du + then: + properties: + ports: + properties: + port@0: + description: DPI + + required: + - port@0 + else: + properties: + ports: + properties: + port@0: + description: DSI + port@1: + description: DPI + + required: + - port@0 + - port@1 + +examples: + # RZ/G2L DU + - | + #include + #include + + display@10890000 { + compatible = "renesas,r9a07g044-du"; + reg = <0x10890000 0x10000>; + interrupts = ; + clocks = <&cpg CPG_MOD R9A07G044_LCDC_CLK_A>, + <&cpg CPG_MOD R9A07G044_LCDC_CLK_P>, + <&cpg CPG_MOD R9A07G044_LCDC_CLK_D>; + clock-names = "aclk", "pclk", "vclk"; + resets = <&cpg R9A07G044_LCDC_RESET_N>; + power-domains = <&cpg>; + + renesas,vsps = <&vspd0 0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + endpoint { + remote-endpoint = <&dsi0_in>; + }; + }; + port@1 { + reg = <1>; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-hdmi.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-hdmi.yaml index 13ff46685..9d096856a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-hdmi.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-hdmi.yaml @@ -1,184 +1,184 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-hdmi.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Rockchip DWC HDMI TX Encoder - -maintainers: - - Mark Yao - -description: | - The HDMI transmitter is a Synopsys DesignWare HDMI 1.4 TX controller IP - with a companion PHY IP. - -allOf: - - $ref: ../bridge/synopsys,dw-hdmi.yaml# - - $ref: /schemas/sound/dai-common.yaml# - -properties: - compatible: - enum: - - rockchip,rk3228-dw-hdmi - - rockchip,rk3288-dw-hdmi - - rockchip,rk3328-dw-hdmi - - rockchip,rk3399-dw-hdmi - - rockchip,rk3568-dw-hdmi - - reg-io-width: - const: 4 - - avdd-0v9-supply: - description: - A 0.9V supply that powers up the SoC internal circuitry. The actual pin name - varies between the different SoCs and is usually HDMI_TX_AVDD_0V9 or sometimes - HDMI_AVDD_1V0. - - avdd-1v8-supply: - description: - A 1.8V supply that powers up the SoC internal circuitry. The pin name on the - SoC usually is HDMI_TX_AVDD_1V8. - - clocks: - minItems: 2 - items: - - {} - - {} - # The next three clocks are all optional, but shall be specified in this - # order when present. - - description: The HDMI CEC controller main clock - - description: Power for GRF IO - - description: External clock for some HDMI PHY (old clock name, deprecated) - - description: External clock for some HDMI PHY (new name) - - clock-names: - minItems: 2 - items: - - {} - - {} - - enum: - - cec - - grf - - vpll - - ref - - enum: - - grf - - vpll - - ref - - enum: - - vpll - - ref - - phys: - maxItems: 1 - description: The HDMI PHY - - phy-names: - const: hdmi - - pinctrl-names: - description: - The unwedge pinctrl entry shall drive the DDC SDA line low. This is - intended to work around a hardware errata that can cause the DDC I2C - bus to be wedged. - minItems: 1 - items: - - const: default - - const: unwedge - - power-domains: - maxItems: 1 - - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port@0: - $ref: /schemas/graph.yaml#/properties/port - description: Input of the DWC HDMI TX - properties: - endpoint: - description: Connection to the VOP - endpoint@0: - description: Connection to the VOPB - endpoint@1: - description: Connection to the VOPL - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: Output of the DWC HDMI TX - - required: - - port@0 - - port@1 - - rockchip,grf: - $ref: /schemas/types.yaml#/definitions/phandle - description: - phandle to the GRF to mux vopl/vopb. - - "#sound-dai-cells": - const: 0 - -required: - - compatible - - reg - - reg-io-width - - clocks - - clock-names - - interrupts - - ports - - rockchip,grf - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - #include - - hdmi: hdmi@ff980000 { - compatible = "rockchip,rk3288-dw-hdmi"; - reg = <0xff980000 0x20000>; - reg-io-width = <4>; - interrupts = ; - clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_HDCP>; - clock-names = "iahb", "isfr"; - ddc-i2c-bus = <&i2c5>; - power-domains = <&power RK3288_PD_VIO>; - rockchip,grf = <&grf>; - #sound-dai-cells = <0>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - #address-cells = <1>; - #size-cells = <0>; - - hdmi_in_vopb: endpoint@0 { - reg = <0>; - remote-endpoint = <&vopb_out_hdmi>; - }; - - hdmi_in_vopl: endpoint@1 { - reg = <1>; - remote-endpoint = <&vopl_out_hdmi>; - }; - }; - - port@1 { - reg = <1>; - - hdmi_out_con: endpoint { - remote-endpoint = <&hdmi_con_in>; - }; - }; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-hdmi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip DWC HDMI TX Encoder + +maintainers: + - Mark Yao + +description: | + The HDMI transmitter is a Synopsys DesignWare HDMI 1.4 TX controller IP + with a companion PHY IP. + +allOf: + - $ref: ../bridge/synopsys,dw-hdmi.yaml# + - $ref: /schemas/sound/dai-common.yaml# + +properties: + compatible: + enum: + - rockchip,rk3228-dw-hdmi + - rockchip,rk3288-dw-hdmi + - rockchip,rk3328-dw-hdmi + - rockchip,rk3399-dw-hdmi + - rockchip,rk3568-dw-hdmi + + reg-io-width: + const: 4 + + avdd-0v9-supply: + description: + A 0.9V supply that powers up the SoC internal circuitry. The actual pin name + varies between the different SoCs and is usually HDMI_TX_AVDD_0V9 or sometimes + HDMI_AVDD_1V0. + + avdd-1v8-supply: + description: + A 1.8V supply that powers up the SoC internal circuitry. The pin name on the + SoC usually is HDMI_TX_AVDD_1V8. + + clocks: + minItems: 2 + items: + - {} + - {} + # The next three clocks are all optional, but shall be specified in this + # order when present. + - description: The HDMI CEC controller main clock + - description: Power for GRF IO + - description: External clock for some HDMI PHY (old clock name, deprecated) + - description: External clock for some HDMI PHY (new name) + + clock-names: + minItems: 2 + items: + - {} + - {} + - enum: + - cec + - grf + - vpll + - ref + - enum: + - grf + - vpll + - ref + - enum: + - vpll + - ref + + phys: + maxItems: 1 + description: The HDMI PHY + + phy-names: + const: hdmi + + pinctrl-names: + description: + The unwedge pinctrl entry shall drive the DDC SDA line low. This is + intended to work around a hardware errata that can cause the DDC I2C + bus to be wedged. + minItems: 1 + items: + - const: default + - const: unwedge + + power-domains: + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Input of the DWC HDMI TX + properties: + endpoint: + description: Connection to the VOP + endpoint@0: + description: Connection to the VOPB + endpoint@1: + description: Connection to the VOPL + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Output of the DWC HDMI TX + + required: + - port@0 + - port@1 + + rockchip,grf: + $ref: /schemas/types.yaml#/definitions/phandle + description: + phandle to the GRF to mux vopl/vopb. + + "#sound-dai-cells": + const: 0 + +required: + - compatible + - reg + - reg-io-width + - clocks + - clock-names + - interrupts + - ports + - rockchip,grf + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + + hdmi: hdmi@ff980000 { + compatible = "rockchip,rk3288-dw-hdmi"; + reg = <0xff980000 0x20000>; + reg-io-width = <4>; + interrupts = ; + clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_HDCP>; + clock-names = "iahb", "isfr"; + ddc-i2c-bus = <&i2c5>; + power-domains = <&power RK3288_PD_VIO>; + rockchip,grf = <&grf>; + #sound-dai-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + hdmi_in_vopb: endpoint@0 { + reg = <0>; + remote-endpoint = <&vopb_out_hdmi>; + }; + + hdmi_in_vopl: endpoint@1 { + reg = <1>; + remote-endpoint = <&vopl_out_hdmi>; + }; + }; + + port@1 { + reg = <1>; + + hdmi_out_con: endpoint { + remote-endpoint = <&hdmi_con_in>; + }; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml index f2041f946..ccd71c532 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml @@ -1,170 +1,170 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Rockchip specific extensions to the Synopsys Designware MIPI DSI - -maintainers: - - Sandy Huang - - Heiko Stuebner - -properties: - compatible: - items: - - enum: - - rockchip,px30-mipi-dsi - - rockchip,rk3128-mipi-dsi - - rockchip,rk3288-mipi-dsi - - rockchip,rk3399-mipi-dsi - - rockchip,rk3568-mipi-dsi - - rockchip,rv1126-mipi-dsi - - const: snps,dw-mipi-dsi - - interrupts: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 4 - - clock-names: - oneOf: - - minItems: 2 - items: - - const: ref - - const: pclk - - const: phy_cfg - - const: grf - - const: pclk - - rockchip,grf: - $ref: /schemas/types.yaml#/definitions/phandle - description: - This SoC uses GRF regs to switch between vopl/vopb. - - phys: - maxItems: 1 - - phy-names: - const: dphy - - "#phy-cells": - const: 0 - description: - Defined when in use as ISP phy. - - power-domains: - maxItems: 1 - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - -required: - - compatible - - clocks - - clock-names - - rockchip,grf - -allOf: - - $ref: /schemas/display/bridge/snps,dw-mipi-dsi.yaml# - - if: - properties: - compatible: - contains: - enum: - - rockchip,px30-mipi-dsi - - rockchip,rk3128-mipi-dsi - - rockchip,rk3568-mipi-dsi - - rockchip,rv1126-mipi-dsi - - then: - properties: - clocks: - maxItems: 1 - - clock-names: - maxItems: 1 - - required: - - phys - - phy-names - - - if: - properties: - compatible: - contains: - const: rockchip,rk3288-mipi-dsi - - then: - properties: - clocks: - maxItems: 2 - - clock-names: - maxItems: 2 - - - if: - properties: - compatible: - contains: - const: rockchip,rk3399-mipi-dsi - - then: - properties: - clocks: - minItems: 4 - - clock-names: - minItems: 4 - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - - mipi_dsi: dsi@ff960000 { - compatible = "rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi"; - reg = <0xff960000 0x4000>; - interrupts = ; - clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_MIPI_DSI0>; - clock-names = "ref", "pclk"; - resets = <&cru SRST_MIPIDSI0>; - reset-names = "apb"; - rockchip,grf = <&grf>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - mipi_in: port@0 { - reg = <0>; - #address-cells = <1>; - #size-cells = <0>; - - mipi_in_vopb: endpoint@0 { - reg = <0>; - remote-endpoint = <&vopb_out_mipi>; - }; - mipi_in_vopl: endpoint@1 { - reg = <1>; - remote-endpoint = <&vopl_out_mipi>; - }; - }; - - mipi_out: port@1 { - reg = <1>; - - mipi_out_panel: endpoint { - remote-endpoint = <&panel_in_mipi>; - }; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip specific extensions to the Synopsys Designware MIPI DSI + +maintainers: + - Sandy Huang + - Heiko Stuebner + +properties: + compatible: + items: + - enum: + - rockchip,px30-mipi-dsi + - rockchip,rk3128-mipi-dsi + - rockchip,rk3288-mipi-dsi + - rockchip,rk3399-mipi-dsi + - rockchip,rk3568-mipi-dsi + - rockchip,rv1126-mipi-dsi + - const: snps,dw-mipi-dsi + + interrupts: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 4 + + clock-names: + oneOf: + - minItems: 2 + items: + - const: ref + - const: pclk + - const: phy_cfg + - const: grf + - const: pclk + + rockchip,grf: + $ref: /schemas/types.yaml#/definitions/phandle + description: + This SoC uses GRF regs to switch between vopl/vopb. + + phys: + maxItems: 1 + + phy-names: + const: dphy + + "#phy-cells": + const: 0 + description: + Defined when in use as ISP phy. + + power-domains: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +required: + - compatible + - clocks + - clock-names + - rockchip,grf + +allOf: + - $ref: /schemas/display/bridge/snps,dw-mipi-dsi.yaml# + - if: + properties: + compatible: + contains: + enum: + - rockchip,px30-mipi-dsi + - rockchip,rk3128-mipi-dsi + - rockchip,rk3568-mipi-dsi + - rockchip,rv1126-mipi-dsi + + then: + properties: + clocks: + maxItems: 1 + + clock-names: + maxItems: 1 + + required: + - phys + - phy-names + + - if: + properties: + compatible: + contains: + const: rockchip,rk3288-mipi-dsi + + then: + properties: + clocks: + maxItems: 2 + + clock-names: + maxItems: 2 + + - if: + properties: + compatible: + contains: + const: rockchip,rk3399-mipi-dsi + + then: + properties: + clocks: + minItems: 4 + + clock-names: + minItems: 4 + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + mipi_dsi: dsi@ff960000 { + compatible = "rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi"; + reg = <0xff960000 0x4000>; + interrupts = ; + clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_MIPI_DSI0>; + clock-names = "ref", "pclk"; + resets = <&cru SRST_MIPIDSI0>; + reset-names = "apb"; + rockchip,grf = <&grf>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + mipi_in: port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + mipi_in_vopb: endpoint@0 { + reg = <0>; + remote-endpoint = <&vopb_out_mipi>; + }; + mipi_in_vopl: endpoint@1 { + reg = <1>; + remote-endpoint = <&vopl_out_mipi>; + }; + }; + + mipi_out: port@1 { + reg = <1>; + + mipi_out_panel: endpoint { + remote-endpoint = <&panel_in_mipi>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/rockchip/rockchip,lvds.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/rockchip/rockchip,lvds.yaml index 211137722..03b002a05 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/rockchip/rockchip,lvds.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/rockchip/rockchip,lvds.yaml @@ -1,170 +1,170 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/rockchip/rockchip,lvds.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Rockchip low-voltage differential signal (LVDS) transmitter - -maintainers: - - Sandy Huang - - Heiko Stuebner - -properties: - compatible: - enum: - - rockchip,px30-lvds - - rockchip,rk3288-lvds - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - clock-names: - const: pclk_lvds - - avdd1v0-supply: - description: 1.0V analog power. - - avdd1v8-supply: - description: 1.8V analog power. - - avdd3v3-supply: - description: 3.3V analog power. - - rockchip,grf: - $ref: /schemas/types.yaml#/definitions/phandle - description: Phandle to the general register files syscon. - - rockchip,output: - $ref: /schemas/types.yaml#/definitions/string - enum: [rgb, lvds, duallvds] - description: This describes the output interface. - - phys: - maxItems: 1 - - phy-names: - const: dphy - - pinctrl-names: - const: lcdc - - pinctrl-0: true - - power-domains: - maxItems: 1 - - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port@0: - $ref: /schemas/graph.yaml#/properties/port - description: - Video port 0 for the VOP input. - The remote endpoint maybe vopb or vopl. - - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: - Video port 1 for either a panel or subsequent encoder. - - required: - - port@0 - - port@1 - -required: - - compatible - - rockchip,grf - - rockchip,output - - ports - -allOf: - - if: - properties: - compatible: - contains: - const: rockchip,px30-lvds - - then: - properties: - reg: false - clocks: false - clock-names: false - avdd1v0-supply: false - avdd1v8-supply: false - avdd3v3-supply: false - - required: - - phys - - phy-names - - - if: - properties: - compatible: - contains: - const: rockchip,rk3288-lvds - - then: - properties: - phys: false - phy-names: false - - required: - - reg - - clocks - - clock-names - - avdd1v0-supply - - avdd1v8-supply - - avdd3v3-supply - -additionalProperties: false - -examples: - - | - #include - - lvds: lvds@ff96c000 { - compatible = "rockchip,rk3288-lvds"; - reg = <0xff96c000 0x4000>; - clocks = <&cru PCLK_LVDS_PHY>; - clock-names = "pclk_lvds"; - avdd1v0-supply = <&vdd10_lcd>; - avdd1v8-supply = <&vcc18_lcd>; - avdd3v3-supply = <&vcca_33>; - pinctrl-names = "lcdc"; - pinctrl-0 = <&lcdc_ctl>; - rockchip,grf = <&grf>; - rockchip,output = "rgb"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - lvds_in: port@0 { - reg = <0>; - #address-cells = <1>; - #size-cells = <0>; - - lvds_in_vopb: endpoint@0 { - reg = <0>; - remote-endpoint = <&vopb_out_lvds>; - }; - lvds_in_vopl: endpoint@1 { - reg = <1>; - remote-endpoint = <&vopl_out_lvds>; - }; - }; - - lvds_out: port@1 { - reg = <1>; - - lvds_out_panel: endpoint { - remote-endpoint = <&panel_in_lvds>; - }; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/rockchip/rockchip,lvds.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip low-voltage differential signal (LVDS) transmitter + +maintainers: + - Sandy Huang + - Heiko Stuebner + +properties: + compatible: + enum: + - rockchip,px30-lvds + - rockchip,rk3288-lvds + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: pclk_lvds + + avdd1v0-supply: + description: 1.0V analog power. + + avdd1v8-supply: + description: 1.8V analog power. + + avdd3v3-supply: + description: 3.3V analog power. + + rockchip,grf: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle to the general register files syscon. + + rockchip,output: + $ref: /schemas/types.yaml#/definitions/string + enum: [rgb, lvds, duallvds] + description: This describes the output interface. + + phys: + maxItems: 1 + + phy-names: + const: dphy + + pinctrl-names: + const: lcdc + + pinctrl-0: true + + power-domains: + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: + Video port 0 for the VOP input. + The remote endpoint maybe vopb or vopl. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: + Video port 1 for either a panel or subsequent encoder. + + required: + - port@0 + - port@1 + +required: + - compatible + - rockchip,grf + - rockchip,output + - ports + +allOf: + - if: + properties: + compatible: + contains: + const: rockchip,px30-lvds + + then: + properties: + reg: false + clocks: false + clock-names: false + avdd1v0-supply: false + avdd1v8-supply: false + avdd3v3-supply: false + + required: + - phys + - phy-names + + - if: + properties: + compatible: + contains: + const: rockchip,rk3288-lvds + + then: + properties: + phys: false + phy-names: false + + required: + - reg + - clocks + - clock-names + - avdd1v0-supply + - avdd1v8-supply + - avdd3v3-supply + +additionalProperties: false + +examples: + - | + #include + + lvds: lvds@ff96c000 { + compatible = "rockchip,rk3288-lvds"; + reg = <0xff96c000 0x4000>; + clocks = <&cru PCLK_LVDS_PHY>; + clock-names = "pclk_lvds"; + avdd1v0-supply = <&vdd10_lcd>; + avdd1v8-supply = <&vcc18_lcd>; + avdd3v3-supply = <&vcca_33>; + pinctrl-names = "lcdc"; + pinctrl-0 = <&lcdc_ctl>; + rockchip,grf = <&grf>; + rockchip,output = "rgb"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + lvds_in: port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + lvds_in_vopb: endpoint@0 { + reg = <0>; + remote-endpoint = <&vopb_out_lvds>; + }; + lvds_in_vopl: endpoint@1 { + reg = <1>; + remote-endpoint = <&vopl_out_lvds>; + }; + }; + + lvds_out: port@1 { + reg = <1>; + + lvds_out_panel: endpoint { + remote-endpoint = <&panel_in_lvds>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/samsung/samsung,exynos5-dp.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/samsung/samsung,exynos5-dp.yaml index 51c1d8aab..dda9097a7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/samsung/samsung,exynos5-dp.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/samsung/samsung,exynos5-dp.yaml @@ -1,163 +1,163 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/samsung/samsung,exynos5-dp.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung Exynos5250/Exynos5420 SoC Display Port - -maintainers: - - Inki Dae - - Seung-Woo Kim - - Kyungmin Park - - Krzysztof Kozlowski - -properties: - compatible: - const: samsung,exynos5-dp - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - clock-names: - items: - - const: dp - - display-timings: - $ref: /schemas/display/panel/display-timings.yaml# - - interrupts: - maxItems: 1 - - hpd-gpios: - description: - Hotplug detect GPIO. - Indicates which GPIO should be used for hotplug detection - - phys: - maxItems: 1 - - phy-names: - items: - - const: dp - - power-domains: - maxItems: 1 - - interlaced: - type: boolean - deprecated: true - description: - Interlace scan mode. Progressive if defined, interlaced if not defined. - - vsync-active-high: - type: boolean - deprecated: true - description: - VSYNC polarity configuration. High if defined, low if not defined - - hsync-active-high: - type: boolean - deprecated: true - description: - HSYNC polarity configuration. High if defined, low if not defined - - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port: - $ref: /schemas/graph.yaml#/properties/port - description: - Port node with one endpoint connected to a dp-connector node. - - required: - - port - - samsung,hpd-gpios: - maxItems: 1 - deprecated: true - - samsung,ycbcr-coeff: - $ref: /schemas/types.yaml#/definitions/uint32 - deprecated: true - description: - Deprecated prop that can parsed from drm_display_mode. - - samsung,dynamic-range: - $ref: /schemas/types.yaml#/definitions/uint32 - deprecated: true - description: - Deprecated prop that can parsed from drm_display_mode. - - samsung,color-space: - $ref: /schemas/types.yaml#/definitions/uint32 - deprecated: true - description: - Deprecated prop that can parsed from drm_display_info. - - samsung,color-depth: - $ref: /schemas/types.yaml#/definitions/uint32 - deprecated: true - description: - Deprecated prop that can parsed from drm_display_info. - - samsung,link-rate: - $ref: /schemas/types.yaml#/definitions/uint32 - deprecated: true - description: - Deprecated prop that can reading from monitor by dpcd method. - - samsung,lane-count: - $ref: /schemas/types.yaml#/definitions/uint32 - deprecated: true - description: - Deprecated prop that can reading from monitor by dpcd method. - -required: - - compatible - - reg - - clocks - - clock-names - - interrupts - - phys - - phy-names - -additionalProperties: false - -examples: - - | - #include - #include - #include - - dp-controller@145b0000 { - compatible = "samsung,exynos5-dp"; - reg = <0x145b0000 0x1000>; - clocks = <&clock CLK_DP>; - clock-names = "dp"; - interrupts = <10 3>; - interrupt-parent = <&combiner>; - phys = <&dp_phy>; - phy-names = "dp"; - pinctrl-0 = <&dp_hpd>; - pinctrl-names = "default"; - power-domains = <&pd_disp1>; - - samsung,color-space = <0>; - samsung,color-depth = <1>; - samsung,link-rate = <0x0a>; - samsung,lane-count = <2>; - hpd-gpios = <&gpx0 7 GPIO_ACTIVE_HIGH>; - - ports { - port { - dp_out: endpoint { - remote-endpoint = <&bridge_in>; - }; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/samsung/samsung,exynos5-dp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Exynos5250/Exynos5420 SoC Display Port + +maintainers: + - Inki Dae + - Seung-Woo Kim + - Kyungmin Park + - Krzysztof Kozlowski + +properties: + compatible: + const: samsung,exynos5-dp + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: dp + + display-timings: + $ref: /schemas/display/panel/display-timings.yaml# + + interrupts: + maxItems: 1 + + hpd-gpios: + description: + Hotplug detect GPIO. + Indicates which GPIO should be used for hotplug detection + + phys: + maxItems: 1 + + phy-names: + items: + - const: dp + + power-domains: + maxItems: 1 + + interlaced: + type: boolean + deprecated: true + description: + Interlace scan mode. Progressive if defined, interlaced if not defined. + + vsync-active-high: + type: boolean + deprecated: true + description: + VSYNC polarity configuration. High if defined, low if not defined + + hsync-active-high: + type: boolean + deprecated: true + description: + HSYNC polarity configuration. High if defined, low if not defined + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port: + $ref: /schemas/graph.yaml#/properties/port + description: + Port node with one endpoint connected to a dp-connector node. + + required: + - port + + samsung,hpd-gpios: + maxItems: 1 + deprecated: true + + samsung,ycbcr-coeff: + $ref: /schemas/types.yaml#/definitions/uint32 + deprecated: true + description: + Deprecated prop that can parsed from drm_display_mode. + + samsung,dynamic-range: + $ref: /schemas/types.yaml#/definitions/uint32 + deprecated: true + description: + Deprecated prop that can parsed from drm_display_mode. + + samsung,color-space: + $ref: /schemas/types.yaml#/definitions/uint32 + deprecated: true + description: + Deprecated prop that can parsed from drm_display_info. + + samsung,color-depth: + $ref: /schemas/types.yaml#/definitions/uint32 + deprecated: true + description: + Deprecated prop that can parsed from drm_display_info. + + samsung,link-rate: + $ref: /schemas/types.yaml#/definitions/uint32 + deprecated: true + description: + Deprecated prop that can reading from monitor by dpcd method. + + samsung,lane-count: + $ref: /schemas/types.yaml#/definitions/uint32 + deprecated: true + description: + Deprecated prop that can reading from monitor by dpcd method. + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - phys + - phy-names + +additionalProperties: false + +examples: + - | + #include + #include + #include + + dp-controller@145b0000 { + compatible = "samsung,exynos5-dp"; + reg = <0x145b0000 0x1000>; + clocks = <&clock CLK_DP>; + clock-names = "dp"; + interrupts = <10 3>; + interrupt-parent = <&combiner>; + phys = <&dp_phy>; + phy-names = "dp"; + pinctrl-0 = <&dp_hpd>; + pinctrl-names = "default"; + power-domains = <&pd_disp1>; + + samsung,color-space = <0>; + samsung,color-depth = <1>; + samsung,link-rate = <0x0a>; + samsung,lane-count = <2>; + hpd-gpios = <&gpx0 7 GPIO_ACTIVE_HIGH>; + + ports { + port { + dp_out: endpoint { + remote-endpoint = <&bridge_in>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/samsung/samsung,exynos5433-decon.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/samsung/samsung,exynos5433-decon.yaml index dde6ba801..6380eeebb 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/samsung/samsung,exynos5433-decon.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/samsung/samsung,exynos5433-decon.yaml @@ -1,145 +1,145 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/samsung/samsung,exynos5433-decon.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung Exynos5433 SoC Display and Enhancement Controller (DECON) - -maintainers: - - Inki Dae - - Seung-Woo Kim - - Kyungmin Park - - Krzysztof Kozlowski - -description: | - DECON (Display and Enhancement Controller) is the Display Controller for the - Exynos5433 series of SoCs which transfers the image data from a video memory - buffer to an external LCD interface. - -properties: - compatible: - enum: - - samsung,exynos5433-decon - - samsung,exynos5433-decon-tv - - clocks: - maxItems: 11 - - clock-names: - items: - - const: pclk - - const: aclk_decon - - const: aclk_smmu_decon0x - - const: aclk_xiu_decon0x - - const: pclk_smmu_decon0x - - const: aclk_smmu_decon1x - - const: aclk_xiu_decon1x - - const: pclk_smmu_decon1x - - const: sclk_decon_vclk - - const: sclk_decon_eclk - - const: dsd - - interrupts: - minItems: 3 - maxItems: 4 - description: | - Interrupts depend on mode of work: - - video mode: vsync - - command mode: lcd_sys - - command mode with software trigger: lcd_sys, te - - interrupt-names: - minItems: 3 - items: - - const: fifo - - const: vsync - - const: lcd_sys - - const: te - - iommus: - maxItems: 2 - - iommu-names: - items: - - const: m0 - - const: m1 - - ports: - $ref: /schemas/graph.yaml#/properties/ports - description: - Contains a port which is connected to mic node. - - power-domains: - maxItems: 1 - - reg: - maxItems: 1 - - samsung,disp-sysreg: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Phandle to DISP system controller interface. - -required: - - compatible - - clocks - - clock-names - - interrupts - - interrupt-names - - ports - - reg - -additionalProperties: false - -examples: - - | - #include - #include - - display-controller@13800000 { - compatible = "samsung,exynos5433-decon"; - reg = <0x13800000 0x2104>; - clocks = <&cmu_disp CLK_PCLK_DECON>, - <&cmu_disp CLK_ACLK_DECON>, - <&cmu_disp CLK_ACLK_SMMU_DECON0X>, - <&cmu_disp CLK_ACLK_XIU_DECON0X>, - <&cmu_disp CLK_PCLK_SMMU_DECON0X>, - <&cmu_disp CLK_ACLK_SMMU_DECON1X>, - <&cmu_disp CLK_ACLK_XIU_DECON1X>, - <&cmu_disp CLK_PCLK_SMMU_DECON1X>, - <&cmu_disp CLK_SCLK_DECON_VCLK>, - <&cmu_disp CLK_SCLK_DECON_ECLK>, - <&cmu_disp CLK_SCLK_DSD>; - clock-names = "pclk", - "aclk_decon", - "aclk_smmu_decon0x", - "aclk_xiu_decon0x", - "pclk_smmu_decon0x", - "aclk_smmu_decon1x", - "aclk_xiu_decon1x", - "pclk_smmu_decon1x", - "sclk_decon_vclk", - "sclk_decon_eclk", - "dsd"; - power-domains = <&pd_disp>; - interrupt-names = "fifo", "vsync", "lcd_sys"; - interrupts = , - , - ; - samsung,disp-sysreg = <&syscon_disp>; - iommus = <&sysmmu_decon0x>, <&sysmmu_decon1x>; - iommu-names = "m0", "m1"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - decon_to_mic: endpoint { - remote-endpoint = <&mic_to_decon>; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/samsung/samsung,exynos5433-decon.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Exynos5433 SoC Display and Enhancement Controller (DECON) + +maintainers: + - Inki Dae + - Seung-Woo Kim + - Kyungmin Park + - Krzysztof Kozlowski + +description: | + DECON (Display and Enhancement Controller) is the Display Controller for the + Exynos5433 series of SoCs which transfers the image data from a video memory + buffer to an external LCD interface. + +properties: + compatible: + enum: + - samsung,exynos5433-decon + - samsung,exynos5433-decon-tv + + clocks: + maxItems: 11 + + clock-names: + items: + - const: pclk + - const: aclk_decon + - const: aclk_smmu_decon0x + - const: aclk_xiu_decon0x + - const: pclk_smmu_decon0x + - const: aclk_smmu_decon1x + - const: aclk_xiu_decon1x + - const: pclk_smmu_decon1x + - const: sclk_decon_vclk + - const: sclk_decon_eclk + - const: dsd + + interrupts: + minItems: 3 + maxItems: 4 + description: | + Interrupts depend on mode of work: + - video mode: vsync + - command mode: lcd_sys + - command mode with software trigger: lcd_sys, te + + interrupt-names: + minItems: 3 + items: + - const: fifo + - const: vsync + - const: lcd_sys + - const: te + + iommus: + maxItems: 2 + + iommu-names: + items: + - const: m0 + - const: m1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + description: + Contains a port which is connected to mic node. + + power-domains: + maxItems: 1 + + reg: + maxItems: 1 + + samsung,disp-sysreg: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to DISP system controller interface. + +required: + - compatible + - clocks + - clock-names + - interrupts + - interrupt-names + - ports + - reg + +additionalProperties: false + +examples: + - | + #include + #include + + display-controller@13800000 { + compatible = "samsung,exynos5433-decon"; + reg = <0x13800000 0x2104>; + clocks = <&cmu_disp CLK_PCLK_DECON>, + <&cmu_disp CLK_ACLK_DECON>, + <&cmu_disp CLK_ACLK_SMMU_DECON0X>, + <&cmu_disp CLK_ACLK_XIU_DECON0X>, + <&cmu_disp CLK_PCLK_SMMU_DECON0X>, + <&cmu_disp CLK_ACLK_SMMU_DECON1X>, + <&cmu_disp CLK_ACLK_XIU_DECON1X>, + <&cmu_disp CLK_PCLK_SMMU_DECON1X>, + <&cmu_disp CLK_SCLK_DECON_VCLK>, + <&cmu_disp CLK_SCLK_DECON_ECLK>, + <&cmu_disp CLK_SCLK_DSD>; + clock-names = "pclk", + "aclk_decon", + "aclk_smmu_decon0x", + "aclk_xiu_decon0x", + "pclk_smmu_decon0x", + "aclk_smmu_decon1x", + "aclk_xiu_decon1x", + "pclk_smmu_decon1x", + "sclk_decon_vclk", + "sclk_decon_eclk", + "dsd"; + power-domains = <&pd_disp>; + interrupt-names = "fifo", "vsync", "lcd_sys"; + interrupts = , + , + ; + samsung,disp-sysreg = <&syscon_disp>; + iommus = <&sysmmu_decon0x>, <&sysmmu_decon1x>; + iommu-names = "m0", "m1"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + decon_to_mic: endpoint { + remote-endpoint = <&mic_to_decon>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/ste,mcde.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/ste,mcde.yaml index afc697117..564ea845c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/ste,mcde.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/ste,mcde.yaml @@ -1,168 +1,168 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/ste,mcde.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ST-Ericsson Multi Channel Display Engine MCDE - -maintainers: - - Linus Walleij - -properties: - compatible: - const: ste,mcde - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - description: an array of the MCDE clocks - items: - - description: MCDECLK (main MCDE clock) - - description: LCDCLK (LCD clock) - - description: PLLDSI (HDMI clock) - - clock-names: - items: - - const: mcde - - const: lcd - - const: hdmi - - resets: - maxItems: 1 - - epod-supply: - description: a phandle to the EPOD regulator - - vana-supply: - description: a phandle to the analog voltage regulator - - port: - $ref: /schemas/graph.yaml#/properties/port - description: - A DPI port node - - "#address-cells": - const: 1 - - "#size-cells": - const: 1 - - ranges: true - -patternProperties: - "^dsi@[0-9a-f]+$": - description: subnodes for the three DSI host adapters - type: object - $ref: dsi-controller.yaml# - - properties: - compatible: - const: ste,mcde-dsi - - reg: - maxItems: 1 - - vana-supply: - description: a phandle to the analog voltage regulator - - clocks: - description: phandles to the high speed and low power (energy save) clocks - the high speed clock is not present on the third (dsi2) block, so it - should only have the "lp" clock - minItems: 1 - maxItems: 2 - - clock-names: - oneOf: - - items: - - const: hs - - const: lp - - items: - - const: lp - - required: - - compatible - - reg - - vana-supply - - clocks - - clock-names - - unevaluatedProperties: false - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - - epod-supply - - vana-supply - -additionalProperties: false - -examples: - - | - #include - #include - #include - #include - - mcde@a0350000 { - compatible = "ste,mcde"; - reg = <0xa0350000 0x1000>; - interrupts = ; - epod-supply = <&db8500_b2r2_mcde_reg>; - vana-supply = <&ab8500_ldo_ana_reg>; - clocks = <&prcmu_clk PRCMU_MCDECLK>, - <&prcmu_clk PRCMU_LCDCLK>, - <&prcmu_clk PRCMU_PLLDSI>; - clock-names = "mcde", "lcd", "hdmi"; - #address-cells = <1>; - #size-cells = <1>; - ranges; - - dsi0: dsi@a0351000 { - compatible = "ste,mcde-dsi"; - reg = <0xa0351000 0x1000>; - vana-supply = <&ab8500_ldo_ana_reg>; - clocks = <&prcmu_clk PRCMU_DSI0CLK>, <&prcmu_clk PRCMU_DSI0ESCCLK>; - clock-names = "hs", "lp"; - #address-cells = <1>; - #size-cells = <0>; - - panel@0 { - compatible = "samsung,s6d16d0"; - reg = <0>; - vdd1-supply = <&ab8500_ldo_aux1_reg>; - reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; - }; - }; - - dsi1: dsi@a0352000 { - compatible = "ste,mcde-dsi"; - reg = <0xa0352000 0x1000>; - vana-supply = <&ab8500_ldo_ana_reg>; - clocks = <&prcmu_clk PRCMU_DSI1CLK>, <&prcmu_clk PRCMU_DSI1ESCCLK>; - clock-names = "hs", "lp"; - #address-cells = <1>; - #size-cells = <0>; - }; - - dsi2: dsi@a0353000 { - compatible = "ste,mcde-dsi"; - reg = <0xa0353000 0x1000>; - vana-supply = <&ab8500_ldo_ana_reg>; - /* This DSI port only has the Low Power / Energy Save clock */ - clocks = <&prcmu_clk PRCMU_DSI2ESCCLK>; - clock-names = "lp"; - #address-cells = <1>; - #size-cells = <0>; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/ste,mcde.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ST-Ericsson Multi Channel Display Engine MCDE + +maintainers: + - Linus Walleij + +properties: + compatible: + const: ste,mcde + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + description: an array of the MCDE clocks + items: + - description: MCDECLK (main MCDE clock) + - description: LCDCLK (LCD clock) + - description: PLLDSI (HDMI clock) + + clock-names: + items: + - const: mcde + - const: lcd + - const: hdmi + + resets: + maxItems: 1 + + epod-supply: + description: a phandle to the EPOD regulator + + vana-supply: + description: a phandle to the analog voltage regulator + + port: + $ref: /schemas/graph.yaml#/properties/port + description: + A DPI port node + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + ranges: true + +patternProperties: + "^dsi@[0-9a-f]+$": + description: subnodes for the three DSI host adapters + type: object + $ref: dsi-controller.yaml# + + properties: + compatible: + const: ste,mcde-dsi + + reg: + maxItems: 1 + + vana-supply: + description: a phandle to the analog voltage regulator + + clocks: + description: phandles to the high speed and low power (energy save) clocks + the high speed clock is not present on the third (dsi2) block, so it + should only have the "lp" clock + minItems: 1 + maxItems: 2 + + clock-names: + oneOf: + - items: + - const: hs + - const: lp + - items: + - const: lp + + required: + - compatible + - reg + - vana-supply + - clocks + - clock-names + + unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - epod-supply + - vana-supply + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + + mcde@a0350000 { + compatible = "ste,mcde"; + reg = <0xa0350000 0x1000>; + interrupts = ; + epod-supply = <&db8500_b2r2_mcde_reg>; + vana-supply = <&ab8500_ldo_ana_reg>; + clocks = <&prcmu_clk PRCMU_MCDECLK>, + <&prcmu_clk PRCMU_LCDCLK>, + <&prcmu_clk PRCMU_PLLDSI>; + clock-names = "mcde", "lcd", "hdmi"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + dsi0: dsi@a0351000 { + compatible = "ste,mcde-dsi"; + reg = <0xa0351000 0x1000>; + vana-supply = <&ab8500_ldo_ana_reg>; + clocks = <&prcmu_clk PRCMU_DSI0CLK>, <&prcmu_clk PRCMU_DSI0ESCCLK>; + clock-names = "hs", "lp"; + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "samsung,s6d16d0"; + reg = <0>; + vdd1-supply = <&ab8500_ldo_aux1_reg>; + reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; + }; + }; + + dsi1: dsi@a0352000 { + compatible = "ste,mcde-dsi"; + reg = <0xa0352000 0x1000>; + vana-supply = <&ab8500_ldo_ana_reg>; + clocks = <&prcmu_clk PRCMU_DSI1CLK>, <&prcmu_clk PRCMU_DSI1ESCCLK>; + clock-names = "hs", "lp"; + #address-cells = <1>; + #size-cells = <0>; + }; + + dsi2: dsi@a0353000 { + compatible = "ste,mcde-dsi"; + reg = <0xa0353000 0x1000>; + vana-supply = <&ab8500_ldo_ana_reg>; + /* This DSI port only has the Low Power / Energy Save clock */ + clocks = <&prcmu_clk PRCMU_DSI2ESCCLK>; + clock-names = "lp"; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/tegra/nvidia,tegra124-dpaux.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/tegra/nvidia,tegra124-dpaux.yaml index d44293b17..5cdbc527a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/tegra/nvidia,tegra124-dpaux.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/tegra/nvidia,tegra124-dpaux.yaml @@ -1,151 +1,151 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/tegra/nvidia,tegra124-dpaux.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NVIDIA Tegra DisplayPort AUX Interface - -maintainers: - - Thierry Reding - - Jon Hunter - -description: | - The Tegra Display Port Auxiliary (DPAUX) pad controller manages two - pins which can be assigned to either the DPAUX channel or to an I2C - controller. - - When configured for DisplayPort AUX operation, the DPAUX controller - can also be used to communicate with a DisplayPort device using the - AUX channel. - -properties: - $nodename: - pattern: "^dpaux@[0-9a-f]+$" - - compatible: - oneOf: - - enum: - - nvidia,tegra124-dpaux - - nvidia,tegra210-dpaux - - nvidia,tegra186-dpaux - - nvidia,tegra194-dpaux - - - items: - - const: nvidia,tegra132-dpaux - - const: nvidia,tegra124-dpaux - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - items: - - description: clock input for the DPAUX hardware - - description: reference clock - - clock-names: - items: - - const: dpaux - - const: parent - - resets: - items: - - description: module reset - - reset-names: - items: - - const: dpaux - - power-domains: - maxItems: 1 - - i2c-bus: - description: Subnode where I2C slave devices are listed. This - subnode must be always present. If there are no I2C slave - devices, an empty node should be added. See ../../i2c/i2c.yaml - for more information. - type: object - - aux-bus: - $ref: /schemas/display/dp-aux-bus.yaml# - - vdd-supply: - description: phandle of a supply that powers the DisplayPort - link - -patternProperties: - "^pinmux-[a-z0-9]+$": - description: - Since only three configurations are possible, only three child - nodes are needed to describe the pin mux'ing options for the - DPAUX pads. Furthermore, given that the pad functions are only - applicable to a single set of pads, the child nodes only need - to describe the pad group the functions are being applied to - rather than the individual pads. - type: object - properties: - groups: - const: dpaux-io - - function: - enum: - - aux - - i2c - - off - - additionalProperties: false - - required: - - groups - - function - -additionalProperties: false - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - - resets - - reset-names - -examples: - - | - #include - #include - - dpaux: dpaux@545c0000 { - compatible = "nvidia,tegra210-dpaux"; - reg = <0x545c0000 0x00040000>; - interrupts = ; - clocks = <&tegra_car TEGRA210_CLK_DPAUX>, - <&tegra_car TEGRA210_CLK_PLL_DP>; - clock-names = "dpaux", "parent"; - resets = <&tegra_car 181>; - reset-names = "dpaux"; - power-domains = <&pd_sor>; - - state_dpaux_aux: pinmux-aux { - groups = "dpaux-io"; - function = "aux"; - }; - - state_dpaux_i2c: pinmux-i2c { - groups = "dpaux-io"; - function = "i2c"; - }; - - state_dpaux_off: pinmux-off { - groups = "dpaux-io"; - function = "off"; - }; - - i2c-bus { - #address-cells = <1>; - #size-cells = <0>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/tegra/nvidia,tegra124-dpaux.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra DisplayPort AUX Interface + +maintainers: + - Thierry Reding + - Jon Hunter + +description: | + The Tegra Display Port Auxiliary (DPAUX) pad controller manages two + pins which can be assigned to either the DPAUX channel or to an I2C + controller. + + When configured for DisplayPort AUX operation, the DPAUX controller + can also be used to communicate with a DisplayPort device using the + AUX channel. + +properties: + $nodename: + pattern: "^dpaux@[0-9a-f]+$" + + compatible: + oneOf: + - enum: + - nvidia,tegra124-dpaux + - nvidia,tegra210-dpaux + - nvidia,tegra186-dpaux + - nvidia,tegra194-dpaux + + - items: + - const: nvidia,tegra132-dpaux + - const: nvidia,tegra124-dpaux + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: clock input for the DPAUX hardware + - description: reference clock + + clock-names: + items: + - const: dpaux + - const: parent + + resets: + items: + - description: module reset + + reset-names: + items: + - const: dpaux + + power-domains: + maxItems: 1 + + i2c-bus: + description: Subnode where I2C slave devices are listed. This + subnode must be always present. If there are no I2C slave + devices, an empty node should be added. See ../../i2c/i2c.yaml + for more information. + type: object + + aux-bus: + $ref: /schemas/display/dp-aux-bus.yaml# + + vdd-supply: + description: phandle of a supply that powers the DisplayPort + link + +patternProperties: + "^pinmux-[a-z0-9]+$": + description: + Since only three configurations are possible, only three child + nodes are needed to describe the pin mux'ing options for the + DPAUX pads. Furthermore, given that the pad functions are only + applicable to a single set of pads, the child nodes only need + to describe the pad group the functions are being applied to + rather than the individual pads. + type: object + properties: + groups: + const: dpaux-io + + function: + enum: + - aux + - i2c + - off + + additionalProperties: false + + required: + - groups + - function + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + - reset-names + +examples: + - | + #include + #include + + dpaux: dpaux@545c0000 { + compatible = "nvidia,tegra210-dpaux"; + reg = <0x545c0000 0x00040000>; + interrupts = ; + clocks = <&tegra_car TEGRA210_CLK_DPAUX>, + <&tegra_car TEGRA210_CLK_PLL_DP>; + clock-names = "dpaux", "parent"; + resets = <&tegra_car 181>; + reset-names = "dpaux"; + power-domains = <&pd_sor>; + + state_dpaux_aux: pinmux-aux { + groups = "dpaux-io"; + function = "aux"; + }; + + state_dpaux_i2c: pinmux-i2c { + groups = "dpaux-io"; + function = "i2c"; + }; + + state_dpaux_off: pinmux-off { + groups = "dpaux-io"; + function = "off"; + }; + + i2c-bus { + #address-cells = <1>; + #size-cells = <0>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-dsi.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-dsi.yaml index 4287103bc..59e1dc081 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-dsi.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-dsi.yaml @@ -1,158 +1,158 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/tegra/nvidia,tegra20-dsi.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NVIDIA Tegra Display Serial Interface - -maintainers: - - Thierry Reding - - Jon Hunter - -properties: - compatible: - oneOf: - - enum: - - nvidia,tegra20-dsi - - nvidia,tegra30-dsi - - nvidia,tegra114-dsi - - nvidia,tegra124-dsi - - nvidia,tegra210-dsi - - nvidia,tegra186-dsi - - - items: - - const: nvidia,tegra132-dsi - - const: nvidia,tegra124-dsi - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - minItems: 2 - maxItems: 3 - - clock-names: - minItems: 2 - maxItems: 3 - - resets: - items: - - description: module reset - - reset-names: - items: - - const: dsi - - operating-points-v2: true - - power-domains: - maxItems: 1 - - avdd-dsi-csi-supply: - description: phandle of a supply that powers the DSI controller - - nvidia,mipi-calibrate: - description: Should contain a phandle and a specifier specifying - which pads are used by this DSI output and need to be - calibrated. See nvidia,tegra114-mipi.yaml for details. - $ref: /schemas/types.yaml#/definitions/phandle-array - - nvidia,ddc-i2c-bus: - description: phandle of an I2C controller used for DDC EDID - probing - $ref: /schemas/types.yaml#/definitions/phandle - - nvidia,hpd-gpio: - description: specifies a GPIO used for hotplug detection - maxItems: 1 - - nvidia,edid: - description: supplies a binary EDID blob - $ref: /schemas/types.yaml#/definitions/uint8-array - - nvidia,panel: - description: phandle of a display panel - $ref: /schemas/types.yaml#/definitions/phandle - - nvidia,ganged-mode: - description: contains a phandle to a second DSI controller to - gang up with in order to support up to 8 data lanes - $ref: /schemas/types.yaml#/definitions/phandle - -allOf: - - $ref: ../dsi-controller.yaml# - - if: - properties: - compatible: - contains: - enum: - - nvidia,tegra20-dsi - - nvidia,tegra30-dsi - then: - properties: - clocks: - items: - - description: DSI module clock - - description: input for the pixel clock - - clock-names: - items: - - const: dsi - - const: parent - else: - properties: - clocks: - items: - - description: DSI module clock - - description: low-power module clock - - description: input for the pixel clock - - clock-names: - items: - - const: dsi - - const: lp - - const: parent - - - if: - properties: - compatible: - contains: - const: nvidia,tegra186-dsi - then: - required: - - interrupts - -unevaluatedProperties: false - -required: - - compatible - - reg - - clocks - - clock-names - - resets - - reset-names - -examples: - - | - #include - #include - #include - #include - - dsi@15300000 { - compatible = "nvidia,tegra186-dsi"; - reg = <0x15300000 0x10000>; - interrupts = ; - clocks = <&bpmp TEGRA186_CLK_DSI>, - <&bpmp TEGRA186_CLK_DSIA_LP>, - <&bpmp TEGRA186_CLK_PLLD>; - clock-names = "dsi", "lp", "parent"; - resets = <&bpmp TEGRA186_RESET_DSI>; - reset-names = "dsi"; - - power-domains = <&bpmp TEGRA186_POWER_DOMAIN_DISP>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/tegra/nvidia,tegra20-dsi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra Display Serial Interface + +maintainers: + - Thierry Reding + - Jon Hunter + +properties: + compatible: + oneOf: + - enum: + - nvidia,tegra20-dsi + - nvidia,tegra30-dsi + - nvidia,tegra114-dsi + - nvidia,tegra124-dsi + - nvidia,tegra210-dsi + - nvidia,tegra186-dsi + + - items: + - const: nvidia,tegra132-dsi + - const: nvidia,tegra124-dsi + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 2 + maxItems: 3 + + clock-names: + minItems: 2 + maxItems: 3 + + resets: + items: + - description: module reset + + reset-names: + items: + - const: dsi + + operating-points-v2: true + + power-domains: + maxItems: 1 + + avdd-dsi-csi-supply: + description: phandle of a supply that powers the DSI controller + + nvidia,mipi-calibrate: + description: Should contain a phandle and a specifier specifying + which pads are used by this DSI output and need to be + calibrated. See nvidia,tegra114-mipi.yaml for details. + $ref: /schemas/types.yaml#/definitions/phandle-array + + nvidia,ddc-i2c-bus: + description: phandle of an I2C controller used for DDC EDID + probing + $ref: /schemas/types.yaml#/definitions/phandle + + nvidia,hpd-gpio: + description: specifies a GPIO used for hotplug detection + maxItems: 1 + + nvidia,edid: + description: supplies a binary EDID blob + $ref: /schemas/types.yaml#/definitions/uint8-array + + nvidia,panel: + description: phandle of a display panel + $ref: /schemas/types.yaml#/definitions/phandle + + nvidia,ganged-mode: + description: contains a phandle to a second DSI controller to + gang up with in order to support up to 8 data lanes + $ref: /schemas/types.yaml#/definitions/phandle + +allOf: + - $ref: ../dsi-controller.yaml# + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra20-dsi + - nvidia,tegra30-dsi + then: + properties: + clocks: + items: + - description: DSI module clock + - description: input for the pixel clock + + clock-names: + items: + - const: dsi + - const: parent + else: + properties: + clocks: + items: + - description: DSI module clock + - description: low-power module clock + - description: input for the pixel clock + + clock-names: + items: + - const: dsi + - const: lp + - const: parent + + - if: + properties: + compatible: + contains: + const: nvidia,tegra186-dsi + then: + required: + - interrupts + +unevaluatedProperties: false + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - reset-names + +examples: + - | + #include + #include + #include + #include + + dsi@15300000 { + compatible = "nvidia,tegra186-dsi"; + reg = <0x15300000 0x10000>; + interrupts = ; + clocks = <&bpmp TEGRA186_CLK_DSI>, + <&bpmp TEGRA186_CLK_DSIA_LP>, + <&bpmp TEGRA186_CLK_PLLD>; + clock-names = "dsi", "lp", "parent"; + resets = <&bpmp TEGRA186_RESET_DSI>; + reset-names = "dsi"; + + power-domains = <&bpmp TEGRA186_POWER_DOMAIN_DISP>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-gr3d.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-gr3d.yaml index 72085d53d..59a52e732 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-gr3d.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-gr3d.yaml @@ -1,213 +1,213 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/display/tegra/nvidia,tegra20-gr3d.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NVIDIA 3D graphics engine - -maintainers: - - Thierry Reding - - Jon Hunter - -properties: - $nodename: - pattern: "^gr3d@[0-9a-f]+$" - - compatible: - enum: - - nvidia,tegra20-gr3d - - nvidia,tegra30-gr3d - - nvidia,tegra114-gr3d - - reg: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 2 - - clock-names: - minItems: 1 - maxItems: 2 - - resets: - minItems: 2 - maxItems: 4 - - reset-names: - minItems: 2 - maxItems: 4 - - iommus: - minItems: 1 - maxItems: 2 - - interconnects: - minItems: 4 - maxItems: 10 - - interconnect-names: - minItems: 4 - maxItems: 10 - - operating-points-v2: true - - power-domains: - minItems: 1 - maxItems: 2 - - power-domain-names: - maxItems: 2 - -allOf: - - if: - properties: - compatible: - contains: - const: nvidia,tegra20-gr2d - then: - properties: - clocks: - items: - - description: module clock - - clock-names: - items: - - const: 3d - - resets: - items: - - description: module reset - - description: memory client hotflush reset - - reset-names: - items: - - const: 3d - - const: mc - - iommus: - maxItems: 1 - - interconnects: - minItems: 4 - maxItems: 4 - - interconnect-names: - minItems: 4 - maxItems: 4 - - power-domains: - items: - - description: phandle to the TD power domain - - - if: - properties: - compatible: - contains: - const: nvidia,tegra30-gr3d - then: - properties: - clocks: - items: - - description: primary module clock - - description: secondary module clock - - clock-names: - items: - - const: 3d - - const: 3d2 - - resets: - items: - - description: primary module reset - - description: secondary module reset - - description: primary memory client hotflush reset - - description: secondary memory client hotflush reset - - reset-names: - items: - - const: 3d - - const: 3d2 - - const: mc - - const: mc2 - - iommus: - minItems: 2 - maxItems: 2 - - interconnects: - minItems: 8 - maxItems: 8 - - interconnect-names: - minItems: 8 - maxItems: 8 - - power-domains: - items: - - description: phandle to the TD power domain - - description: phandle to the TD2 power domain - - power-domain-names: - items: - - const: 3d0 - - const: 3d1 - - dependencies: - power-domains: [ power-domain-names ] - - - if: - properties: - compatible: - contains: - const: nvidia,tegra114-gr2d - then: - properties: - clocks: - items: - - description: module clock - - clock-names: - items: - - const: 3d - - resets: - items: - - description: module reset - - description: memory client hotflush reset - - reset-names: - items: - - const: 3d - - const: mc - - iommus: - maxItems: 1 - - interconnects: - minItems: 10 - maxItems: 10 - - interconnect-names: - minItems: 10 - maxItems: 10 - - power-domains: - items: - - description: phandle to the TD power domain - -additionalProperties: false - -examples: - - | - #include - #include - - gr3d@54180000 { - compatible = "nvidia,tegra20-gr3d"; - reg = <0x54180000 0x00040000>; - clocks = <&tegra_car TEGRA20_CLK_GR3D>; - resets = <&tegra_car 24>, <&mc TEGRA20_MC_RESET_3D>; - reset-names = "3d", "mc"; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/tegra/nvidia,tegra20-gr3d.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA 3D graphics engine + +maintainers: + - Thierry Reding + - Jon Hunter + +properties: + $nodename: + pattern: "^gr3d@[0-9a-f]+$" + + compatible: + enum: + - nvidia,tegra20-gr3d + - nvidia,tegra30-gr3d + - nvidia,tegra114-gr3d + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + maxItems: 2 + + resets: + minItems: 2 + maxItems: 4 + + reset-names: + minItems: 2 + maxItems: 4 + + iommus: + minItems: 1 + maxItems: 2 + + interconnects: + minItems: 4 + maxItems: 10 + + interconnect-names: + minItems: 4 + maxItems: 10 + + operating-points-v2: true + + power-domains: + minItems: 1 + maxItems: 2 + + power-domain-names: + maxItems: 2 + +allOf: + - if: + properties: + compatible: + contains: + const: nvidia,tegra20-gr2d + then: + properties: + clocks: + items: + - description: module clock + + clock-names: + items: + - const: 3d + + resets: + items: + - description: module reset + - description: memory client hotflush reset + + reset-names: + items: + - const: 3d + - const: mc + + iommus: + maxItems: 1 + + interconnects: + minItems: 4 + maxItems: 4 + + interconnect-names: + minItems: 4 + maxItems: 4 + + power-domains: + items: + - description: phandle to the TD power domain + + - if: + properties: + compatible: + contains: + const: nvidia,tegra30-gr3d + then: + properties: + clocks: + items: + - description: primary module clock + - description: secondary module clock + + clock-names: + items: + - const: 3d + - const: 3d2 + + resets: + items: + - description: primary module reset + - description: secondary module reset + - description: primary memory client hotflush reset + - description: secondary memory client hotflush reset + + reset-names: + items: + - const: 3d + - const: 3d2 + - const: mc + - const: mc2 + + iommus: + minItems: 2 + maxItems: 2 + + interconnects: + minItems: 8 + maxItems: 8 + + interconnect-names: + minItems: 8 + maxItems: 8 + + power-domains: + items: + - description: phandle to the TD power domain + - description: phandle to the TD2 power domain + + power-domain-names: + items: + - const: 3d0 + - const: 3d1 + + dependencies: + power-domains: [ power-domain-names ] + + - if: + properties: + compatible: + contains: + const: nvidia,tegra114-gr2d + then: + properties: + clocks: + items: + - description: module clock + + clock-names: + items: + - const: 3d + + resets: + items: + - description: module reset + - description: memory client hotflush reset + + reset-names: + items: + - const: 3d + - const: mc + + iommus: + maxItems: 1 + + interconnects: + minItems: 10 + maxItems: 10 + + interconnect-names: + minItems: 10 + maxItems: 10 + + power-domains: + items: + - description: phandle to the TD power domain + +additionalProperties: false + +examples: + - | + #include + #include + + gr3d@54180000 { + compatible = "nvidia,tegra20-gr3d"; + reg = <0x54180000 0x00040000>; + clocks = <&tegra_car TEGRA20_CLK_GR3D>; + resets = <&tegra_car 24>, <&mc TEGRA20_MC_RESET_3D>; + reset-names = "3d", "mc"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/arm-pl08x.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/arm-pl08x.yaml index 37d28160e..ab25ae63d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/arm-pl08x.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/arm-pl08x.yaml @@ -1,140 +1,140 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/dma/arm-pl08x.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ARM PrimeCells PL080 and PL081 and derivatives DMA controller - -maintainers: - - Vinod Koul - -allOf: - - $ref: /schemas/arm/primecell.yaml# - - $ref: dma-controller.yaml# - -# We need a select here so we don't match all nodes with 'arm,primecell' -select: - properties: - compatible: - contains: - enum: - - arm,pl080 - - arm,pl081 - required: - - compatible - -properties: - compatible: - oneOf: - - items: - - enum: - - arm,pl080 - - arm,pl081 - - const: arm,primecell - - items: - - const: faraday,ftdma020 - - const: arm,pl080 - - const: arm,primecell - - reg: - maxItems: 1 - description: Address range of the PL08x registers - - interrupts: - minItems: 1 - description: The PL08x interrupt number - - clocks: - minItems: 1 - description: The clock running the IP core clock - - clock-names: - maxItems: 1 - - lli-bus-interface-ahb1: - type: boolean - description: if AHB master 1 is eligible for fetching LLIs - - lli-bus-interface-ahb2: - type: boolean - description: if AHB master 2 is eligible for fetching LLIs - - mem-bus-interface-ahb1: - type: boolean - description: if AHB master 1 is eligible for fetching memory contents - - mem-bus-interface-ahb2: - type: boolean - description: if AHB master 2 is eligible for fetching memory contents - - memcpy-burst-size: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: - - 1 - - 4 - - 8 - - 16 - - 32 - - 64 - - 128 - - 256 - description: the size of the bursts for memcpy - - memcpy-bus-width: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: - - 8 - - 16 - - 32 - - 64 - description: bus width used for memcpy in bits. FTDMAC020 also accept 64 bits - - resets: - maxItems: 1 - -required: - - reg - - interrupts - - clocks - - clock-names - - "#dma-cells" - -unevaluatedProperties: false - -examples: - - | - dmac0: dma-controller@10130000 { - compatible = "arm,pl080", "arm,primecell"; - reg = <0x10130000 0x1000>; - interrupt-parent = <&vica>; - interrupts = <15>; - clocks = <&hclkdma0>; - clock-names = "apb_pclk"; - lli-bus-interface-ahb1; - lli-bus-interface-ahb2; - mem-bus-interface-ahb2; - memcpy-burst-size = <256>; - memcpy-bus-width = <32>; - #dma-cells = <2>; - }; - - | - #include - #include - #include - dma-controller@67000000 { - compatible = "faraday,ftdma020", "arm,pl080", "arm,primecell"; - /* Faraday Technology FTDMAC020 variant */ - arm,primecell-periphid = <0x0003b080>; - reg = <0x67000000 0x1000>; - interrupts = <9 IRQ_TYPE_EDGE_RISING>; - resets = <&syscon GEMINI_RESET_DMAC>; - clocks = <&syscon GEMINI_CLK_AHB>; - clock-names = "apb_pclk"; - /* Bus interface AHB1 (AHB0) is totally tilted */ - lli-bus-interface-ahb2; - mem-bus-interface-ahb2; - memcpy-burst-size = <256>; - memcpy-bus-width = <32>; - #dma-cells = <2>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/arm-pl08x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARM PrimeCells PL080 and PL081 and derivatives DMA controller + +maintainers: + - Vinod Koul + +allOf: + - $ref: /schemas/arm/primecell.yaml# + - $ref: dma-controller.yaml# + +# We need a select here so we don't match all nodes with 'arm,primecell' +select: + properties: + compatible: + contains: + enum: + - arm,pl080 + - arm,pl081 + required: + - compatible + +properties: + compatible: + oneOf: + - items: + - enum: + - arm,pl080 + - arm,pl081 + - const: arm,primecell + - items: + - const: faraday,ftdma020 + - const: arm,pl080 + - const: arm,primecell + + reg: + maxItems: 1 + description: Address range of the PL08x registers + + interrupts: + minItems: 1 + description: The PL08x interrupt number + + clocks: + minItems: 1 + description: The clock running the IP core clock + + clock-names: + maxItems: 1 + + lli-bus-interface-ahb1: + type: boolean + description: if AHB master 1 is eligible for fetching LLIs + + lli-bus-interface-ahb2: + type: boolean + description: if AHB master 2 is eligible for fetching LLIs + + mem-bus-interface-ahb1: + type: boolean + description: if AHB master 1 is eligible for fetching memory contents + + mem-bus-interface-ahb2: + type: boolean + description: if AHB master 2 is eligible for fetching memory contents + + memcpy-burst-size: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: + - 1 + - 4 + - 8 + - 16 + - 32 + - 64 + - 128 + - 256 + description: the size of the bursts for memcpy + + memcpy-bus-width: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: + - 8 + - 16 + - 32 + - 64 + description: bus width used for memcpy in bits. FTDMAC020 also accept 64 bits + + resets: + maxItems: 1 + +required: + - reg + - interrupts + - clocks + - clock-names + - "#dma-cells" + +unevaluatedProperties: false + +examples: + - | + dmac0: dma-controller@10130000 { + compatible = "arm,pl080", "arm,primecell"; + reg = <0x10130000 0x1000>; + interrupt-parent = <&vica>; + interrupts = <15>; + clocks = <&hclkdma0>; + clock-names = "apb_pclk"; + lli-bus-interface-ahb1; + lli-bus-interface-ahb2; + mem-bus-interface-ahb2; + memcpy-burst-size = <256>; + memcpy-bus-width = <32>; + #dma-cells = <2>; + }; + - | + #include + #include + #include + dma-controller@67000000 { + compatible = "faraday,ftdma020", "arm,pl080", "arm,primecell"; + /* Faraday Technology FTDMAC020 variant */ + arm,primecell-periphid = <0x0003b080>; + reg = <0x67000000 0x1000>; + interrupts = <9 IRQ_TYPE_EDGE_RISING>; + resets = <&syscon GEMINI_RESET_DMAC>; + clocks = <&syscon GEMINI_CLK_AHB>; + clock-names = "apb_pclk"; + /* Bus interface AHB1 (AHB0) is totally tilted */ + lli-bus-interface-ahb2; + mem-bus-interface-ahb2; + memcpy-burst-size = <256>; + memcpy-bus-width = <32>; + #dma-cells = <2>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/cirrus,ep9301-dma-m2p.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/cirrus,ep9301-dma-m2p.yaml index 6087144a6..d14c31553 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/cirrus,ep9301-dma-m2p.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/cirrus,ep9301-dma-m2p.yaml @@ -1,144 +1,144 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/dma/cirrus,ep9301-dma-m2p.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Cirrus Logic ep93xx SoC M2P DMA controller - -maintainers: - - Alexander Sverdlin - - Nikita Shubin - -allOf: - - $ref: dma-controller.yaml# - -properties: - compatible: - oneOf: - - const: cirrus,ep9301-dma-m2p - - items: - - enum: - - cirrus,ep9302-dma-m2p - - cirrus,ep9307-dma-m2p - - cirrus,ep9312-dma-m2p - - cirrus,ep9315-dma-m2p - - const: cirrus,ep9301-dma-m2p - - reg: - items: - - description: m2p0 channel registers - - description: m2p1 channel registers - - description: m2p2 channel registers - - description: m2p3 channel registers - - description: m2p4 channel registers - - description: m2p5 channel registers - - description: m2p6 channel registers - - description: m2p7 channel registers - - description: m2p8 channel registers - - description: m2p9 channel registers - - clocks: - items: - - description: m2p0 channel gate clock - - description: m2p1 channel gate clock - - description: m2p2 channel gate clock - - description: m2p3 channel gate clock - - description: m2p4 channel gate clock - - description: m2p5 channel gate clock - - description: m2p6 channel gate clock - - description: m2p7 channel gate clock - - description: m2p8 channel gate clock - - description: m2p9 channel gate clock - - clock-names: - items: - - const: m2p0 - - const: m2p1 - - const: m2p2 - - const: m2p3 - - const: m2p4 - - const: m2p5 - - const: m2p6 - - const: m2p7 - - const: m2p8 - - const: m2p9 - - interrupts: - items: - - description: m2p0 channel interrupt - - description: m2p1 channel interrupt - - description: m2p2 channel interrupt - - description: m2p3 channel interrupt - - description: m2p4 channel interrupt - - description: m2p5 channel interrupt - - description: m2p6 channel interrupt - - description: m2p7 channel interrupt - - description: m2p8 channel interrupt - - description: m2p9 channel interrupt - - '#dma-cells': - const: 2 - description: | - The first cell is the unique device channel number as indicated by this - table for ep93xx: - - 0: I2S channel 1 - 1: I2S channel 2 (unused) - 2: AC97 channel 1 (unused) - 3: AC97 channel 2 (unused) - 4: AC97 channel 3 (unused) - 5: I2S channel 3 (unused) - 6: UART1 (unused) - 7: UART2 (unused) - 8: UART3 (unused) - 9: IRDA (unused) - - The second cell is the DMA direction line number: - - 1: Memory to device - 2: Device to memory - -required: - - compatible - - reg - - clocks - - clock-names - - interrupts - -additionalProperties: false - -examples: - - | - #include - dma-controller@80000000 { - compatible = "cirrus,ep9301-dma-m2p"; - reg = <0x80000000 0x0040>, - <0x80000040 0x0040>, - <0x80000080 0x0040>, - <0x800000c0 0x0040>, - <0x80000240 0x0040>, - <0x80000200 0x0040>, - <0x800002c0 0x0040>, - <0x80000280 0x0040>, - <0x80000340 0x0040>, - <0x80000300 0x0040>; - clocks = <&syscon EP93XX_CLK_M2P0>, - <&syscon EP93XX_CLK_M2P1>, - <&syscon EP93XX_CLK_M2P2>, - <&syscon EP93XX_CLK_M2P3>, - <&syscon EP93XX_CLK_M2P4>, - <&syscon EP93XX_CLK_M2P5>, - <&syscon EP93XX_CLK_M2P6>, - <&syscon EP93XX_CLK_M2P7>, - <&syscon EP93XX_CLK_M2P8>, - <&syscon EP93XX_CLK_M2P9>; - clock-names = "m2p0", "m2p1", - "m2p2", "m2p3", - "m2p4", "m2p5", - "m2p6", "m2p7", - "m2p8", "m2p9"; - interrupt-parent = <&vic0>; - interrupts = <7>, <8>, <9>, <10>, <11>, <12>, <13>, <14>, <15>, <16>; - #dma-cells = <2>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/cirrus,ep9301-dma-m2p.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus Logic ep93xx SoC M2P DMA controller + +maintainers: + - Alexander Sverdlin + - Nikita Shubin + +allOf: + - $ref: dma-controller.yaml# + +properties: + compatible: + oneOf: + - const: cirrus,ep9301-dma-m2p + - items: + - enum: + - cirrus,ep9302-dma-m2p + - cirrus,ep9307-dma-m2p + - cirrus,ep9312-dma-m2p + - cirrus,ep9315-dma-m2p + - const: cirrus,ep9301-dma-m2p + + reg: + items: + - description: m2p0 channel registers + - description: m2p1 channel registers + - description: m2p2 channel registers + - description: m2p3 channel registers + - description: m2p4 channel registers + - description: m2p5 channel registers + - description: m2p6 channel registers + - description: m2p7 channel registers + - description: m2p8 channel registers + - description: m2p9 channel registers + + clocks: + items: + - description: m2p0 channel gate clock + - description: m2p1 channel gate clock + - description: m2p2 channel gate clock + - description: m2p3 channel gate clock + - description: m2p4 channel gate clock + - description: m2p5 channel gate clock + - description: m2p6 channel gate clock + - description: m2p7 channel gate clock + - description: m2p8 channel gate clock + - description: m2p9 channel gate clock + + clock-names: + items: + - const: m2p0 + - const: m2p1 + - const: m2p2 + - const: m2p3 + - const: m2p4 + - const: m2p5 + - const: m2p6 + - const: m2p7 + - const: m2p8 + - const: m2p9 + + interrupts: + items: + - description: m2p0 channel interrupt + - description: m2p1 channel interrupt + - description: m2p2 channel interrupt + - description: m2p3 channel interrupt + - description: m2p4 channel interrupt + - description: m2p5 channel interrupt + - description: m2p6 channel interrupt + - description: m2p7 channel interrupt + - description: m2p8 channel interrupt + - description: m2p9 channel interrupt + + '#dma-cells': + const: 2 + description: | + The first cell is the unique device channel number as indicated by this + table for ep93xx: + + 0: I2S channel 1 + 1: I2S channel 2 (unused) + 2: AC97 channel 1 (unused) + 3: AC97 channel 2 (unused) + 4: AC97 channel 3 (unused) + 5: I2S channel 3 (unused) + 6: UART1 (unused) + 7: UART2 (unused) + 8: UART3 (unused) + 9: IRDA (unused) + + The second cell is the DMA direction line number: + + 1: Memory to device + 2: Device to memory + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +additionalProperties: false + +examples: + - | + #include + dma-controller@80000000 { + compatible = "cirrus,ep9301-dma-m2p"; + reg = <0x80000000 0x0040>, + <0x80000040 0x0040>, + <0x80000080 0x0040>, + <0x800000c0 0x0040>, + <0x80000240 0x0040>, + <0x80000200 0x0040>, + <0x800002c0 0x0040>, + <0x80000280 0x0040>, + <0x80000340 0x0040>, + <0x80000300 0x0040>; + clocks = <&syscon EP93XX_CLK_M2P0>, + <&syscon EP93XX_CLK_M2P1>, + <&syscon EP93XX_CLK_M2P2>, + <&syscon EP93XX_CLK_M2P3>, + <&syscon EP93XX_CLK_M2P4>, + <&syscon EP93XX_CLK_M2P5>, + <&syscon EP93XX_CLK_M2P6>, + <&syscon EP93XX_CLK_M2P7>, + <&syscon EP93XX_CLK_M2P8>, + <&syscon EP93XX_CLK_M2P9>; + clock-names = "m2p0", "m2p1", + "m2p2", "m2p3", + "m2p4", "m2p5", + "m2p6", "m2p7", + "m2p8", "m2p9"; + interrupt-parent = <&vic0>; + interrupts = <7>, <8>, <9>, <10>, <11>, <12>, <13>, <14>, <15>, <16>; + #dma-cells = <2>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/fsl,imx-sdma.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/fsl,imx-sdma.yaml index d146f9e8b..738b25b88 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/fsl,imx-sdma.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/fsl,imx-sdma.yaml @@ -1,151 +1,151 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/dma/fsl,imx-sdma.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale Smart Direct Memory Access (SDMA) Controller for i.MX - -maintainers: - - Joy Zou - -allOf: - - $ref: dma-controller.yaml# - -properties: - compatible: - oneOf: - - items: - - enum: - - fsl,imx50-sdma - - fsl,imx51-sdma - - fsl,imx53-sdma - - fsl,imx6q-sdma - - fsl,imx7d-sdma - - const: fsl,imx35-sdma - - items: - - enum: - - fsl,imx6sx-sdma - - fsl,imx6sl-sdma - - const: fsl,imx6q-sdma - - items: - - const: fsl,imx6ul-sdma - - const: fsl,imx6q-sdma - - const: fsl,imx35-sdma - - items: - - const: fsl,imx6sll-sdma - - const: fsl,imx6ul-sdma - - items: - - const: fsl,imx8mq-sdma - - const: fsl,imx7d-sdma - - items: - - enum: - - fsl,imx8mp-sdma - - fsl,imx8mn-sdma - - fsl,imx8mm-sdma - - const: fsl,imx8mq-sdma - - items: - - enum: - - fsl,imx25-sdma - - fsl,imx31-sdma - - fsl,imx35-sdma - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - fsl,sdma-ram-script-name: - $ref: /schemas/types.yaml#/definitions/string - description: Should contain the full path of SDMA RAM scripts firmware. - - "#dma-cells": - const: 3 - description: | - The first cell: request/event ID - - The second cell: peripheral types ID - enum: - - MCU domain SSI: 0 - - Shared SSI: 1 - - MMC: 2 - - SDHC: 3 - - MCU domain UART: 4 - - Shared UART: 5 - - FIRI: 6 - - MCU domain CSPI: 7 - - Shared CSPI: 8 - - SIM: 9 - - ATA: 10 - - CCM: 11 - - External peripheral: 12 - - Memory Stick Host Controller: 13 - - Shared Memory Stick Host Controller: 14 - - DSP: 15 - - Memory: 16 - - FIFO type Memory: 17 - - SPDIF: 18 - - IPU Memory: 19 - - ASRC: 20 - - ESAI: 21 - - SSI Dual FIFO: 22 - description: needs firmware more than ver 2 - - Shared ASRC: 23 - - SAI: 24 - - Multi SAI: 25 - - HDMI Audio: 26 - - I2C: 27 - - The third cell: transfer priority ID - enum: - - High: 0 - - Medium: 1 - - Low: 2 - - gpr: - $ref: /schemas/types.yaml#/definitions/phandle - description: The phandle to the General Purpose Register (GPR) node - - fsl,sdma-event-remap: - $ref: /schemas/types.yaml#/definitions/uint32-matrix - maxItems: 2 - items: - items: - - description: GPR register offset - - description: GPR register shift - - description: GPR register value - description: | - Register bits of sdma event remap, the format is . - The order is , . - - clocks: - maxItems: 2 - - clock-names: - items: - - const: ipg - - const: ahb - - iram: - $ref: /schemas/types.yaml#/definitions/phandle - description: The phandle to the On-chip RAM (OCRAM) node. - -required: - - compatible - - reg - - interrupts - - fsl,sdma-ram-script-name - -additionalProperties: false - -examples: - - | - sdma: dma-controller@83fb0000 { - compatible = "fsl,imx51-sdma", "fsl,imx35-sdma"; - reg = <0x83fb0000 0x4000>; - interrupts = <6>; - #dma-cells = <3>; - fsl,sdma-ram-script-name = "sdma-imx51.bin"; - }; - -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/fsl,imx-sdma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale Smart Direct Memory Access (SDMA) Controller for i.MX + +maintainers: + - Joy Zou + +allOf: + - $ref: dma-controller.yaml# + +properties: + compatible: + oneOf: + - items: + - enum: + - fsl,imx50-sdma + - fsl,imx51-sdma + - fsl,imx53-sdma + - fsl,imx6q-sdma + - fsl,imx7d-sdma + - const: fsl,imx35-sdma + - items: + - enum: + - fsl,imx6sx-sdma + - fsl,imx6sl-sdma + - const: fsl,imx6q-sdma + - items: + - const: fsl,imx6ul-sdma + - const: fsl,imx6q-sdma + - const: fsl,imx35-sdma + - items: + - const: fsl,imx6sll-sdma + - const: fsl,imx6ul-sdma + - items: + - const: fsl,imx8mq-sdma + - const: fsl,imx7d-sdma + - items: + - enum: + - fsl,imx8mp-sdma + - fsl,imx8mn-sdma + - fsl,imx8mm-sdma + - const: fsl,imx8mq-sdma + - items: + - enum: + - fsl,imx25-sdma + - fsl,imx31-sdma + - fsl,imx35-sdma + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + fsl,sdma-ram-script-name: + $ref: /schemas/types.yaml#/definitions/string + description: Should contain the full path of SDMA RAM scripts firmware. + + "#dma-cells": + const: 3 + description: | + The first cell: request/event ID + + The second cell: peripheral types ID + enum: + - MCU domain SSI: 0 + - Shared SSI: 1 + - MMC: 2 + - SDHC: 3 + - MCU domain UART: 4 + - Shared UART: 5 + - FIRI: 6 + - MCU domain CSPI: 7 + - Shared CSPI: 8 + - SIM: 9 + - ATA: 10 + - CCM: 11 + - External peripheral: 12 + - Memory Stick Host Controller: 13 + - Shared Memory Stick Host Controller: 14 + - DSP: 15 + - Memory: 16 + - FIFO type Memory: 17 + - SPDIF: 18 + - IPU Memory: 19 + - ASRC: 20 + - ESAI: 21 + - SSI Dual FIFO: 22 + description: needs firmware more than ver 2 + - Shared ASRC: 23 + - SAI: 24 + - Multi SAI: 25 + - HDMI Audio: 26 + - I2C: 27 + + The third cell: transfer priority ID + enum: + - High: 0 + - Medium: 1 + - Low: 2 + + gpr: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle to the General Purpose Register (GPR) node + + fsl,sdma-event-remap: + $ref: /schemas/types.yaml#/definitions/uint32-matrix + maxItems: 2 + items: + items: + - description: GPR register offset + - description: GPR register shift + - description: GPR register value + description: | + Register bits of sdma event remap, the format is . + The order is , . + + clocks: + maxItems: 2 + + clock-names: + items: + - const: ipg + - const: ahb + + iram: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle to the On-chip RAM (OCRAM) node. + +required: + - compatible + - reg + - interrupts + - fsl,sdma-ram-script-name + +additionalProperties: false + +examples: + - | + sdma: dma-controller@83fb0000 { + compatible = "fsl,imx51-sdma", "fsl,imx35-sdma"; + reg = <0x83fb0000 0x4000>; + interrupts = <6>; + #dma-cells = <3>; + fsl,sdma-ram-script-name = "sdma-imx51.bin"; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/mediatek,uart-dma.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/mediatek,uart-dma.yaml index 025d25278..dab468a88 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/mediatek,uart-dma.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/mediatek,uart-dma.yaml @@ -1,124 +1,124 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/dma/mediatek,uart-dma.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MediaTek UART APDMA controller - -maintainers: - - Long Cheng - -description: | - The MediaTek UART APDMA controller provides DMA capabilities - for the UART peripheral bus. - -allOf: - - $ref: dma-controller.yaml# - -properties: - compatible: - oneOf: - - items: - - enum: - - mediatek,mt2712-uart-dma - - mediatek,mt6795-uart-dma - - mediatek,mt8365-uart-dma - - mediatek,mt8516-uart-dma - - const: mediatek,mt6577-uart-dma - - enum: - - mediatek,mt6577-uart-dma - - reg: - minItems: 1 - maxItems: 16 - - interrupts: - description: | - TX, RX interrupt lines for each UART APDMA channel - minItems: 1 - maxItems: 16 - - clocks: - description: Must contain one entry for the APDMA main clock - maxItems: 1 - - clock-names: - const: apdma - - "#dma-cells": - const: 1 - description: | - The first cell specifies the UART APDMA channel number - - dma-requests: - description: | - Number of virtual channels of the UART APDMA controller - maximum: 16 - - mediatek,dma-33bits: - type: boolean - description: Enable 33-bits UART APDMA support - -required: - - compatible - - reg - - interrupts - -additionalProperties: false - -if: - not: - required: - - dma-requests -then: - properties: - interrupts: - maxItems: 8 - reg: - maxItems: 8 - -examples: - - | - #include - #include - soc { - #address-cells = <2>; - #size-cells = <2>; - - apdma: dma-controller@11000400 { - compatible = "mediatek,mt2712-uart-dma", - "mediatek,mt6577-uart-dma"; - reg = <0 0x11000400 0 0x80>, - <0 0x11000480 0 0x80>, - <0 0x11000500 0 0x80>, - <0 0x11000580 0 0x80>, - <0 0x11000600 0 0x80>, - <0 0x11000680 0 0x80>, - <0 0x11000700 0 0x80>, - <0 0x11000780 0 0x80>, - <0 0x11000800 0 0x80>, - <0 0x11000880 0 0x80>, - <0 0x11000900 0 0x80>, - <0 0x11000980 0 0x80>; - interrupts = , - , - , - , - , - , - , - , - , - , - , - ; - dma-requests = <12>; - clocks = <&pericfg CLK_PERI_AP_DMA>; - clock-names = "apdma"; - mediatek,dma-33bits; - #dma-cells = <1>; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/mediatek,uart-dma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek UART APDMA controller + +maintainers: + - Long Cheng + +description: | + The MediaTek UART APDMA controller provides DMA capabilities + for the UART peripheral bus. + +allOf: + - $ref: dma-controller.yaml# + +properties: + compatible: + oneOf: + - items: + - enum: + - mediatek,mt2712-uart-dma + - mediatek,mt6795-uart-dma + - mediatek,mt8365-uart-dma + - mediatek,mt8516-uart-dma + - const: mediatek,mt6577-uart-dma + - enum: + - mediatek,mt6577-uart-dma + + reg: + minItems: 1 + maxItems: 16 + + interrupts: + description: | + TX, RX interrupt lines for each UART APDMA channel + minItems: 1 + maxItems: 16 + + clocks: + description: Must contain one entry for the APDMA main clock + maxItems: 1 + + clock-names: + const: apdma + + "#dma-cells": + const: 1 + description: | + The first cell specifies the UART APDMA channel number + + dma-requests: + description: | + Number of virtual channels of the UART APDMA controller + maximum: 16 + + mediatek,dma-33bits: + type: boolean + description: Enable 33-bits UART APDMA support + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +if: + not: + required: + - dma-requests +then: + properties: + interrupts: + maxItems: 8 + reg: + maxItems: 8 + +examples: + - | + #include + #include + soc { + #address-cells = <2>; + #size-cells = <2>; + + apdma: dma-controller@11000400 { + compatible = "mediatek,mt2712-uart-dma", + "mediatek,mt6577-uart-dma"; + reg = <0 0x11000400 0 0x80>, + <0 0x11000480 0 0x80>, + <0 0x11000500 0 0x80>, + <0 0x11000580 0 0x80>, + <0 0x11000600 0 0x80>, + <0 0x11000680 0 0x80>, + <0 0x11000700 0 0x80>, + <0 0x11000780 0 0x80>, + <0 0x11000800 0 0x80>, + <0 0x11000880 0 0x80>, + <0 0x11000900 0 0x80>, + <0 0x11000980 0 0x80>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + ; + dma-requests = <12>; + clocks = <&pericfg CLK_PERI_AP_DMA>; + clock-names = "apdma"; + mediatek,dma-33bits; + #dma-cells = <1>; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/nvidia,tegra186-gpc-dma.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/nvidia,tegra186-gpc-dma.yaml index c7378baa1..a790e5687 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/nvidia,tegra186-gpc-dma.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/nvidia,tegra186-gpc-dma.yaml @@ -1,117 +1,117 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/dma/nvidia,tegra186-gpc-dma.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NVIDIA Tegra GPC DMA Controller - -description: | - The Tegra General Purpose Central (GPC) DMA controller is used for faster - data transfers between memory to memory, memory to device and device to - memory. - -maintainers: - - Jon Hunter - - Rajesh Gumasta - -allOf: - - $ref: dma-controller.yaml# - -properties: - compatible: - oneOf: - - const: nvidia,tegra186-gpcdma - - items: - - enum: - - nvidia,tegra234-gpcdma - - nvidia,tegra194-gpcdma - - const: nvidia,tegra186-gpcdma - - "#dma-cells": - const: 1 - - reg: - maxItems: 1 - - interrupts: - description: - Should contain all of the per-channel DMA interrupts in - ascending order with respect to the DMA channel index. - minItems: 1 - maxItems: 32 - - resets: - maxItems: 1 - - reset-names: - const: gpcdma - - iommus: - maxItems: 1 - - dma-coherent: true - - dma-channel-mask: - maxItems: 1 - -required: - - compatible - - reg - - interrupts - - resets - - reset-names - - "#dma-cells" - - iommus - - dma-channel-mask - -additionalProperties: false - -examples: - - | - #include - #include - #include - - dma-controller@2600000 { - compatible = "nvidia,tegra186-gpcdma"; - reg = <0x2600000 0x210000>; - resets = <&bpmp TEGRA186_RESET_GPCDMA>; - reset-names = "gpcdma"; - interrupts = , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - ; - #dma-cells = <1>; - iommus = <&smmu TEGRA186_SID_GPCDMA_0>; - dma-coherent; - dma-channel-mask = <0xfffffffe>; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/nvidia,tegra186-gpc-dma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra GPC DMA Controller + +description: | + The Tegra General Purpose Central (GPC) DMA controller is used for faster + data transfers between memory to memory, memory to device and device to + memory. + +maintainers: + - Jon Hunter + - Rajesh Gumasta + +allOf: + - $ref: dma-controller.yaml# + +properties: + compatible: + oneOf: + - const: nvidia,tegra186-gpcdma + - items: + - enum: + - nvidia,tegra234-gpcdma + - nvidia,tegra194-gpcdma + - const: nvidia,tegra186-gpcdma + + "#dma-cells": + const: 1 + + reg: + maxItems: 1 + + interrupts: + description: + Should contain all of the per-channel DMA interrupts in + ascending order with respect to the DMA channel index. + minItems: 1 + maxItems: 32 + + resets: + maxItems: 1 + + reset-names: + const: gpcdma + + iommus: + maxItems: 1 + + dma-coherent: true + + dma-channel-mask: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - resets + - reset-names + - "#dma-cells" + - iommus + - dma-channel-mask + +additionalProperties: false + +examples: + - | + #include + #include + #include + + dma-controller@2600000 { + compatible = "nvidia,tegra186-gpcdma"; + reg = <0x2600000 0x210000>; + resets = <&bpmp TEGRA186_RESET_GPCDMA>; + reset-names = "gpcdma"; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + #dma-cells = <1>; + iommus = <&smmu TEGRA186_SID_GPCDMA_0>; + dma-coherent; + dma-channel-mask = <0xfffffffe>; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/renesas,rz-dmac.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/renesas,rz-dmac.yaml index 356540d38..ca24cf487 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/renesas,rz-dmac.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/renesas,rz-dmac.yaml @@ -1,147 +1,147 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/dma/renesas,rz-dmac.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas RZ/{G2L,G2UL,V2L} DMA Controller - -maintainers: - - Biju Das - -allOf: - - $ref: dma-controller.yaml# - -properties: - compatible: - items: - - enum: - - renesas,r9a07g043-dmac # RZ/G2UL and RZ/Five - - renesas,r9a07g044-dmac # RZ/G2{L,LC} - - renesas,r9a07g054-dmac # RZ/V2L - - renesas,r9a08g045-dmac # RZ/G3S - - const: renesas,rz-dmac - - reg: - items: - - description: Control and channel register block - - description: DMA extended resource selector block - - interrupts: - maxItems: 17 - - interrupt-names: - items: - - const: error - - const: ch0 - - const: ch1 - - const: ch2 - - const: ch3 - - const: ch4 - - const: ch5 - - const: ch6 - - const: ch7 - - const: ch8 - - const: ch9 - - const: ch10 - - const: ch11 - - const: ch12 - - const: ch13 - - const: ch14 - - const: ch15 - - clocks: - items: - - description: DMA main clock - - description: DMA register access clock - - clock-names: - items: - - const: main - - const: register - - '#dma-cells': - const: 1 - description: - The cell specifies the encoded MID/RID values of the DMAC port - connected to the DMA client and the slave channel configuration - parameters. - bits[0:9] - Specifies MID/RID value - bit[10] - Specifies DMA request high enable (HIEN) - bit[11] - Specifies DMA request detection type (LVL) - bits[12:14] - Specifies DMAACK output mode (AM) - bit[15] - Specifies Transfer Mode (TM) - - dma-channels: - const: 16 - - power-domains: - maxItems: 1 - - resets: - items: - - description: Reset for DMA ARESETN reset terminal - - description: Reset for DMA RST_ASYNC reset terminal - - reset-names: - items: - - const: arst - - const: rst_async - -required: - - compatible - - reg - - interrupts - - interrupt-names - - clocks - - clock-names - - '#dma-cells' - - dma-channels - - power-domains - - resets - - reset-names - -additionalProperties: false - -examples: - - | - #include - #include - - dmac: dma-controller@11820000 { - compatible = "renesas,r9a07g044-dmac", - "renesas,rz-dmac"; - reg = <0x11820000 0x10000>, - <0x11830000 0x10000>; - interrupts = , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - ; - interrupt-names = "error", - "ch0", "ch1", "ch2", "ch3", - "ch4", "ch5", "ch6", "ch7", - "ch8", "ch9", "ch10", "ch11", - "ch12", "ch13", "ch14", "ch15"; - clocks = <&cpg CPG_MOD R9A07G044_DMAC_ACLK>, - <&cpg CPG_MOD R9A07G044_DMAC_PCLK>; - clock-names = "main", "register"; - power-domains = <&cpg>; - resets = <&cpg R9A07G044_DMAC_ARESETN>, - <&cpg R9A07G044_DMAC_RST_ASYNC>; - reset-names = "arst", "rst_async"; - #dma-cells = <1>; - dma-channels = <16>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/renesas,rz-dmac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/{G2L,G2UL,V2L} DMA Controller + +maintainers: + - Biju Das + +allOf: + - $ref: dma-controller.yaml# + +properties: + compatible: + items: + - enum: + - renesas,r9a07g043-dmac # RZ/G2UL and RZ/Five + - renesas,r9a07g044-dmac # RZ/G2{L,LC} + - renesas,r9a07g054-dmac # RZ/V2L + - renesas,r9a08g045-dmac # RZ/G3S + - const: renesas,rz-dmac + + reg: + items: + - description: Control and channel register block + - description: DMA extended resource selector block + + interrupts: + maxItems: 17 + + interrupt-names: + items: + - const: error + - const: ch0 + - const: ch1 + - const: ch2 + - const: ch3 + - const: ch4 + - const: ch5 + - const: ch6 + - const: ch7 + - const: ch8 + - const: ch9 + - const: ch10 + - const: ch11 + - const: ch12 + - const: ch13 + - const: ch14 + - const: ch15 + + clocks: + items: + - description: DMA main clock + - description: DMA register access clock + + clock-names: + items: + - const: main + - const: register + + '#dma-cells': + const: 1 + description: + The cell specifies the encoded MID/RID values of the DMAC port + connected to the DMA client and the slave channel configuration + parameters. + bits[0:9] - Specifies MID/RID value + bit[10] - Specifies DMA request high enable (HIEN) + bit[11] - Specifies DMA request detection type (LVL) + bits[12:14] - Specifies DMAACK output mode (AM) + bit[15] - Specifies Transfer Mode (TM) + + dma-channels: + const: 16 + + power-domains: + maxItems: 1 + + resets: + items: + - description: Reset for DMA ARESETN reset terminal + - description: Reset for DMA RST_ASYNC reset terminal + + reset-names: + items: + - const: arst + - const: rst_async + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - clock-names + - '#dma-cells' + - dma-channels + - power-domains + - resets + - reset-names + +additionalProperties: false + +examples: + - | + #include + #include + + dmac: dma-controller@11820000 { + compatible = "renesas,r9a07g044-dmac", + "renesas,rz-dmac"; + reg = <0x11820000 0x10000>, + <0x11830000 0x10000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12", "ch13", "ch14", "ch15"; + clocks = <&cpg CPG_MOD R9A07G044_DMAC_ACLK>, + <&cpg CPG_MOD R9A07G044_DMAC_PCLK>; + clock-names = "main", "register"; + power-domains = <&cpg>; + resets = <&cpg R9A07G044_DMAC_ARESETN>, + <&cpg R9A07G044_DMAC_RST_ASYNC>; + reset-names = "arst", "rst_async"; + #dma-cells = <1>; + dma-channels = <16>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml index 048c87781..525f5f393 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml @@ -1,155 +1,155 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/dma/snps,dw-axi-dmac.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Synopsys DesignWare AXI DMA Controller - -maintainers: - - Eugeniy Paltsev - -description: - Synopsys DesignWare AXI DMA Controller DT Binding - -allOf: - - $ref: dma-controller.yaml# - -properties: - compatible: - enum: - - snps,axi-dma-1.01a - - intel,kmb-axi-dma - - starfive,jh7110-axi-dma - - starfive,jh8100-axi-dma - - reg: - minItems: 1 - items: - - description: Address range of the DMAC registers - - description: Address range of the DMAC APB registers - - reg-names: - items: - - const: axidma_ctrl_regs - - const: axidma_apb_regs - - interrupts: - description: - If the IP-core synthesis parameter DMAX_INTR_IO_TYPE is set to 1, this - will be per-channel interrupts. Otherwise, this is a single combined IRQ - for all channels. - minItems: 1 - maxItems: 8 - - clocks: - items: - - description: Bus Clock - - description: Module Clock - - clock-names: - items: - - const: core-clk - - const: cfgr-clk - - '#dma-cells': - const: 1 - - dma-channels: - minimum: 1 - maximum: 8 - - resets: - minItems: 1 - maxItems: 2 - - snps,dma-masters: - description: | - Number of AXI masters supported by the hardware. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [1, 2] - - snps,data-width: - description: | - AXI data width supported by hardware. - (0 - 8bits, 1 - 16bits, 2 - 32bits, ..., 6 - 512bits) - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1, 2, 3, 4, 5, 6] - - snps,priority: - description: | - Channel priority specifier associated with the DMA channels. - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 8 - - snps,block-size: - description: | - Channel block size specifier associated with the DMA channels. - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 8 - - snps,axi-max-burst-len: - description: | - Restrict master AXI burst length by value specified in this property. - If this property is missing the maximum AXI burst length supported by - DMAC is used. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 1 - maximum: 256 - -required: - - compatible - - reg - - clocks - - clock-names - - interrupts - - '#dma-cells' - - dma-channels - - snps,dma-masters - - snps,data-width - - snps,priority - - snps,block-size - -if: - properties: - compatible: - contains: - enum: - - starfive,jh7110-axi-dma -then: - properties: - resets: - minItems: 2 - items: - - description: AXI reset line - - description: AHB reset line - - description: module reset -else: - properties: - resets: - maxItems: 1 - -additionalProperties: false - -examples: - - | - #include - #include - /* example with snps,dw-axi-dmac */ - dma-controller@80000 { - compatible = "snps,axi-dma-1.01a"; - reg = <0x80000 0x400>; - clocks = <&core_clk>, <&cfgr_clk>; - clock-names = "core-clk", "cfgr-clk"; - interrupt-parent = <&intc>; - interrupts = <27>; - #dma-cells = <1>; - dma-channels = <4>; - snps,dma-masters = <2>; - snps,data-width = <3>; - snps,block-size = <4096 4096 4096 4096>; - snps,priority = <0 1 2 3>; - snps,axi-max-burst-len = <16>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/snps,dw-axi-dmac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synopsys DesignWare AXI DMA Controller + +maintainers: + - Eugeniy Paltsev + +description: + Synopsys DesignWare AXI DMA Controller DT Binding + +allOf: + - $ref: dma-controller.yaml# + +properties: + compatible: + enum: + - snps,axi-dma-1.01a + - intel,kmb-axi-dma + - starfive,jh7110-axi-dma + - starfive,jh8100-axi-dma + + reg: + minItems: 1 + items: + - description: Address range of the DMAC registers + - description: Address range of the DMAC APB registers + + reg-names: + items: + - const: axidma_ctrl_regs + - const: axidma_apb_regs + + interrupts: + description: + If the IP-core synthesis parameter DMAX_INTR_IO_TYPE is set to 1, this + will be per-channel interrupts. Otherwise, this is a single combined IRQ + for all channels. + minItems: 1 + maxItems: 8 + + clocks: + items: + - description: Bus Clock + - description: Module Clock + + clock-names: + items: + - const: core-clk + - const: cfgr-clk + + '#dma-cells': + const: 1 + + dma-channels: + minimum: 1 + maximum: 8 + + resets: + minItems: 1 + maxItems: 2 + + snps,dma-masters: + description: | + Number of AXI masters supported by the hardware. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2] + + snps,data-width: + description: | + AXI data width supported by hardware. + (0 - 8bits, 1 - 16bits, 2 - 32bits, ..., 6 - 512bits) + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 3, 4, 5, 6] + + snps,priority: + description: | + Channel priority specifier associated with the DMA channels. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 8 + + snps,block-size: + description: | + Channel block size specifier associated with the DMA channels. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 8 + + snps,axi-max-burst-len: + description: | + Restrict master AXI burst length by value specified in this property. + If this property is missing the maximum AXI burst length supported by + DMAC is used. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + maximum: 256 + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - '#dma-cells' + - dma-channels + - snps,dma-masters + - snps,data-width + - snps,priority + - snps,block-size + +if: + properties: + compatible: + contains: + enum: + - starfive,jh7110-axi-dma +then: + properties: + resets: + minItems: 2 + items: + - description: AXI reset line + - description: AHB reset line + - description: module reset +else: + properties: + resets: + maxItems: 1 + +additionalProperties: false + +examples: + - | + #include + #include + /* example with snps,dw-axi-dmac */ + dma-controller@80000 { + compatible = "snps,axi-dma-1.01a"; + reg = <0x80000 0x400>; + clocks = <&core_clk>, <&cfgr_clk>; + clock-names = "core-clk", "cfgr-clk"; + interrupt-parent = <&intc>; + interrupts = <27>; + #dma-cells = <1>; + dma-channels = <4>; + snps,dma-masters = <2>; + snps,data-width = <3>; + snps,block-size = <4096 4096 4096 4096>; + snps,priority = <0 1 2 3>; + snps,axi-max-burst-len = <16>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/stm32/st,stm32-dma.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/stm32/st,stm32-dma.yaml index 153261d12..11a289f1d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/stm32/st,stm32-dma.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/stm32/st,stm32-dma.yaml @@ -1,120 +1,120 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/dma/stm32/st,stm32-dma.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: STMicroelectronics STM32 DMA Controller - -description: | - The STM32 DMA is a general-purpose direct memory access controller capable of - supporting 8 independent DMA channels. Each channel can have up to 8 requests. - DMA clients connected to the STM32 DMA controller must use the format - described in the dma.txt file, using a four-cell specifier for each - channel: a phandle to the DMA controller plus the following four integer cells: - 1. The channel id - 2. The request line number - 3. A 32bit mask specifying the DMA channel configuration which are device - dependent: - -bit 9: Peripheral Increment Address - 0x0: no address increment between transfers - 0x1: increment address between transfers - -bit 10: Memory Increment Address - 0x0: no address increment between transfers - 0x1: increment address between transfers - -bit 15: Peripheral Increment Offset Size - 0x0: offset size is linked to the peripheral bus width - 0x1: offset size is fixed to 4 (32-bit alignment) - -bit 16-17: Priority level - 0x0: low - 0x1: medium - 0x2: high - 0x3: very high - 4. A 32bit bitfield value specifying DMA features which are device dependent: - -bit 0-1: DMA FIFO threshold selection - 0x0: 1/4 full FIFO - 0x1: 1/2 full FIFO - 0x2: 3/4 full FIFO - 0x3: full FIFO - -bit 2: DMA direct mode - 0x0: FIFO mode with threshold selectable with bit 0-1 - 0x1: Direct mode: each DMA request immediately initiates a transfer - from/to the memory, FIFO is bypassed. - -bit 4: alternative DMA request/acknowledge protocol - 0x0: Use standard DMA ACK management, where ACK signal is maintained - up to the removal of request and transfer completion - 0x1: Use alternative DMA ACK management, where ACK de-assertion does - not wait for the de-assertion of the REQuest, ACK is only managed - by transfer completion. This must only be used on channels - managing transfers for STM32 USART/UART. - - -maintainers: - - Amelie Delaunay - -allOf: - - $ref: /schemas/dma/dma-controller.yaml# - -properties: - "#dma-cells": - const: 4 - - compatible: - const: st,stm32-dma - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - interrupts: - maxItems: 8 - description: Should contain all of the per-channel DMA - interrupts in ascending order with respect to the - DMA channel index. - - resets: - maxItems: 1 - - st,mem2mem: - $ref: /schemas/types.yaml#/definitions/flag - description: if defined, it indicates that the controller - supports memory-to-memory transfer - - access-controllers: - minItems: 1 - maxItems: 2 - -required: - - compatible - - reg - - clocks - - interrupts - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - dma-controller@40026400 { - compatible = "st,stm32-dma"; - reg = <0x40026400 0x400>; - interrupts = <56>, - <57>, - <58>, - <59>, - <60>, - <68>, - <69>, - <70>; - clocks = <&clk_hclk>; - #dma-cells = <4>; - st,mem2mem; - resets = <&rcc 150>; - dma-requests = <8>; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/stm32/st,stm32-dma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STM32 DMA Controller + +description: | + The STM32 DMA is a general-purpose direct memory access controller capable of + supporting 8 independent DMA channels. Each channel can have up to 8 requests. + DMA clients connected to the STM32 DMA controller must use the format + described in the dma.txt file, using a four-cell specifier for each + channel: a phandle to the DMA controller plus the following four integer cells: + 1. The channel id + 2. The request line number + 3. A 32bit mask specifying the DMA channel configuration which are device + dependent: + -bit 9: Peripheral Increment Address + 0x0: no address increment between transfers + 0x1: increment address between transfers + -bit 10: Memory Increment Address + 0x0: no address increment between transfers + 0x1: increment address between transfers + -bit 15: Peripheral Increment Offset Size + 0x0: offset size is linked to the peripheral bus width + 0x1: offset size is fixed to 4 (32-bit alignment) + -bit 16-17: Priority level + 0x0: low + 0x1: medium + 0x2: high + 0x3: very high + 4. A 32bit bitfield value specifying DMA features which are device dependent: + -bit 0-1: DMA FIFO threshold selection + 0x0: 1/4 full FIFO + 0x1: 1/2 full FIFO + 0x2: 3/4 full FIFO + 0x3: full FIFO + -bit 2: DMA direct mode + 0x0: FIFO mode with threshold selectable with bit 0-1 + 0x1: Direct mode: each DMA request immediately initiates a transfer + from/to the memory, FIFO is bypassed. + -bit 4: alternative DMA request/acknowledge protocol + 0x0: Use standard DMA ACK management, where ACK signal is maintained + up to the removal of request and transfer completion + 0x1: Use alternative DMA ACK management, where ACK de-assertion does + not wait for the de-assertion of the REQuest, ACK is only managed + by transfer completion. This must only be used on channels + managing transfers for STM32 USART/UART. + + +maintainers: + - Amelie Delaunay + +allOf: + - $ref: /schemas/dma/dma-controller.yaml# + +properties: + "#dma-cells": + const: 4 + + compatible: + const: st,stm32-dma + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 8 + description: Should contain all of the per-channel DMA + interrupts in ascending order with respect to the + DMA channel index. + + resets: + maxItems: 1 + + st,mem2mem: + $ref: /schemas/types.yaml#/definitions/flag + description: if defined, it indicates that the controller + supports memory-to-memory transfer + + access-controllers: + minItems: 1 + maxItems: 2 + +required: + - compatible + - reg + - clocks + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + dma-controller@40026400 { + compatible = "st,stm32-dma"; + reg = <0x40026400 0x400>; + interrupts = <56>, + <57>, + <58>, + <59>, + <60>, + <68>, + <69>, + <70>; + clocks = <&clk_hclk>; + #dma-cells = <4>; + st,mem2mem; + resets = <&rcc 150>; + dma-requests = <8>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/stm32/st,stm32-mdma.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/stm32/st,stm32-mdma.yaml index 497f74d56..45fe91db1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/stm32/st,stm32-mdma.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/dma/stm32/st,stm32-mdma.yaml @@ -1,106 +1,106 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/dma/stm32/st,stm32-mdma.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: STMicroelectronics STM32 MDMA Controller - -description: | - The STM32 MDMA is a general-purpose direct memory access controller capable of - supporting 64 independent DMA channels with 256 HW requests. - DMA clients connected to the STM32 MDMA controller must use the format - described in the dma.txt file, using a five-cell specifier for each channel: - a phandle to the MDMA controller plus the following five integer cells: - 1. The request line number - 2. The priority level - 0x0: Low - 0x1: Medium - 0x2: High - 0x3: Very high - 3. A 32bit mask specifying the DMA channel configuration - -bit 0-1: Source increment mode - 0x0: Source address pointer is fixed - 0x2: Source address pointer is incremented after each data transfer - 0x3: Source address pointer is decremented after each data transfer - -bit 2-3: Destination increment mode - 0x0: Destination address pointer is fixed - 0x2: Destination address pointer is incremented after each data transfer - 0x3: Destination address pointer is decremented after each data transfer - -bit 8-9: Source increment offset size - 0x0: byte (8bit) - 0x1: half-word (16bit) - 0x2: word (32bit) - 0x3: double-word (64bit) - -bit 10-11: Destination increment offset size - 0x0: byte (8bit) - 0x1: half-word (16bit) - 0x2: word (32bit) - 0x3: double-word (64bit) - -bit 25-18: The number of bytes to be transferred in a single transfer - (min = 1 byte, max = 128 bytes) - -bit 29:28: Trigger Mode - 0x00: Each MDMA request triggers a buffer transfer (max 128 bytes) - 0x1: Each MDMA request triggers a block transfer (max 64K bytes) - 0x2: Each MDMA request triggers a repeated block transfer - 0x3: Each MDMA request triggers a linked list transfer - 4. A 32bit value specifying the register to be used to acknowledge the request - if no HW ack signal is used by the MDMA client - 5. A 32bit mask specifying the value to be written to acknowledge the request - if no HW ack signal is used by the MDMA client - -maintainers: - - Amelie Delaunay - -allOf: - - $ref: /schemas/dma/dma-controller.yaml# - -properties: - "#dma-cells": - const: 5 - - compatible: - const: st,stm32h7-mdma - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - interrupts: - maxItems: 1 - - resets: - maxItems: 1 - - st,ahb-addr-masks: - $ref: /schemas/types.yaml#/definitions/uint32-array - description: Array of u32 mask to list memory devices addressed via AHB bus. - -required: - - compatible - - reg - - clocks - - interrupts - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - dma-controller@52000000 { - compatible = "st,stm32h7-mdma"; - reg = <0x52000000 0x1000>; - interrupts = <122>; - clocks = <&timer_clk>; - resets = <&rcc 992>; - #dma-cells = <5>; - dma-channels = <16>; - dma-requests = <32>; - st,ahb-addr-masks = <0x20000000>, <0x00000000>; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/stm32/st,stm32-mdma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STM32 MDMA Controller + +description: | + The STM32 MDMA is a general-purpose direct memory access controller capable of + supporting 64 independent DMA channels with 256 HW requests. + DMA clients connected to the STM32 MDMA controller must use the format + described in the dma.txt file, using a five-cell specifier for each channel: + a phandle to the MDMA controller plus the following five integer cells: + 1. The request line number + 2. The priority level + 0x0: Low + 0x1: Medium + 0x2: High + 0x3: Very high + 3. A 32bit mask specifying the DMA channel configuration + -bit 0-1: Source increment mode + 0x0: Source address pointer is fixed + 0x2: Source address pointer is incremented after each data transfer + 0x3: Source address pointer is decremented after each data transfer + -bit 2-3: Destination increment mode + 0x0: Destination address pointer is fixed + 0x2: Destination address pointer is incremented after each data transfer + 0x3: Destination address pointer is decremented after each data transfer + -bit 8-9: Source increment offset size + 0x0: byte (8bit) + 0x1: half-word (16bit) + 0x2: word (32bit) + 0x3: double-word (64bit) + -bit 10-11: Destination increment offset size + 0x0: byte (8bit) + 0x1: half-word (16bit) + 0x2: word (32bit) + 0x3: double-word (64bit) + -bit 25-18: The number of bytes to be transferred in a single transfer + (min = 1 byte, max = 128 bytes) + -bit 29:28: Trigger Mode + 0x00: Each MDMA request triggers a buffer transfer (max 128 bytes) + 0x1: Each MDMA request triggers a block transfer (max 64K bytes) + 0x2: Each MDMA request triggers a repeated block transfer + 0x3: Each MDMA request triggers a linked list transfer + 4. A 32bit value specifying the register to be used to acknowledge the request + if no HW ack signal is used by the MDMA client + 5. A 32bit mask specifying the value to be written to acknowledge the request + if no HW ack signal is used by the MDMA client + +maintainers: + - Amelie Delaunay + +allOf: + - $ref: /schemas/dma/dma-controller.yaml# + +properties: + "#dma-cells": + const: 5 + + compatible: + const: st,stm32h7-mdma + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + + resets: + maxItems: 1 + + st,ahb-addr-masks: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: Array of u32 mask to list memory devices addressed via AHB bus. + +required: + - compatible + - reg + - clocks + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + dma-controller@52000000 { + compatible = "st,stm32h7-mdma"; + reg = <0x52000000 0x1000>; + interrupts = <122>; + clocks = <&timer_clk>; + resets = <&rcc 992>; + #dma-cells = <5>; + dma-channels = <16>; + dma-requests = <32>; + st,ahb-addr-masks = <0x20000000>, <0x00000000>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/edac/apm-xgene-edac.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/edac/apm-xgene-edac.txt index f0f3585fc..1006b0489 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/edac/apm-xgene-edac.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/edac/apm-xgene-edac.txt @@ -1,112 +1,112 @@ -* APM X-Gene SoC EDAC node - -EDAC node is defined to describe on-chip error detection and correction. -The follow error types are supported: - - memory controller - Memory controller - PMD (L1/L2) - Processor module unit (PMD) L1/L2 cache - L3 - L3 cache controller - SoC - SoC IP's such as Ethernet, SATA, and etc - -The following section describes the EDAC DT node binding. - -Required properties: -- compatible : Shall be "apm,xgene-edac". -- regmap-csw : Regmap of the CPU switch fabric (CSW) resource. -- regmap-mcba : Regmap of the MCB-A (memory bridge) resource. -- regmap-mcbb : Regmap of the MCB-B (memory bridge) resource. -- regmap-efuse : Regmap of the PMD efuse resource. -- regmap-rb : Regmap of the register bus resource. This property - is optional only for compatibility. If the RB - error conditions are not cleared, it will - continuously generate interrupt. -- reg : First resource shall be the CPU bus (PCP) resource. -- interrupts : Interrupt-specifier for MCU, PMD, L3, or SoC error - IRQ(s). - -Required properties for memory controller subnode: -- compatible : Shall be "apm,xgene-edac-mc". -- reg : First resource shall be the memory controller unit - (MCU) resource. -- memory-controller : Instance number of the memory controller. - -Required properties for PMD subnode: -- compatible : Shall be "apm,xgene-edac-pmd" or - "apm,xgene-edac-pmd-v2". -- reg : First resource shall be the PMD resource. -- pmd-controller : Instance number of the PMD controller. - -Required properties for L3 subnode: -- compatible : Shall be "apm,xgene-edac-l3" or - "apm,xgene-edac-l3-v2". -- reg : First resource shall be the L3 EDAC resource. - -Required properties for SoC subnode: -- compatible : Shall be "apm,xgene-edac-soc-v1" for revision 1 or - "apm,xgene-edac-l3-soc" for general value reporting - only. -- reg : First resource shall be the SoC EDAC resource. - -Example: - csw: csw@7e200000 { - compatible = "apm,xgene-csw", "syscon"; - reg = <0x0 0x7e200000 0x0 0x1000>; - }; - - mcba: mcba@7e700000 { - compatible = "apm,xgene-mcb", "syscon"; - reg = <0x0 0x7e700000 0x0 0x1000>; - }; - - mcbb: mcbb@7e720000 { - compatible = "apm,xgene-mcb", "syscon"; - reg = <0x0 0x7e720000 0x0 0x1000>; - }; - - efuse: efuse@1054a000 { - compatible = "apm,xgene-efuse", "syscon"; - reg = <0x0 0x1054a000 0x0 0x20>; - }; - - rb: rb@7e000000 { - compatible = "apm,xgene-rb", "syscon"; - reg = <0x0 0x7e000000 0x0 0x10>; - }; - - edac@78800000 { - compatible = "apm,xgene-edac"; - #address-cells = <2>; - #size-cells = <2>; - ranges; - regmap-csw = <&csw>; - regmap-mcba = <&mcba>; - regmap-mcbb = <&mcbb>; - regmap-efuse = <&efuse>; - regmap-rb = <&rb>; - reg = <0x0 0x78800000 0x0 0x100>; - interrupts = <0x0 0x20 0x4>, - <0x0 0x21 0x4>, - <0x0 0x27 0x4>; - - edacmc@7e800000 { - compatible = "apm,xgene-edac-mc"; - reg = <0x0 0x7e800000 0x0 0x1000>; - memory-controller = <0>; - }; - - edacpmd@7c000000 { - compatible = "apm,xgene-edac-pmd"; - reg = <0x0 0x7c000000 0x0 0x200000>; - pmd-controller = <0>; - }; - - edacl3@7e600000 { - compatible = "apm,xgene-edac-l3"; - reg = <0x0 0x7e600000 0x0 0x1000>; - }; - - edacsoc@7e930000 { - compatible = "apm,xgene-edac-soc-v1"; - reg = <0x0 0x7e930000 0x0 0x1000>; - }; - }; +* APM X-Gene SoC EDAC node + +EDAC node is defined to describe on-chip error detection and correction. +The follow error types are supported: + + memory controller - Memory controller + PMD (L1/L2) - Processor module unit (PMD) L1/L2 cache + L3 - L3 cache controller + SoC - SoC IP's such as Ethernet, SATA, and etc + +The following section describes the EDAC DT node binding. + +Required properties: +- compatible : Shall be "apm,xgene-edac". +- regmap-csw : Regmap of the CPU switch fabric (CSW) resource. +- regmap-mcba : Regmap of the MCB-A (memory bridge) resource. +- regmap-mcbb : Regmap of the MCB-B (memory bridge) resource. +- regmap-efuse : Regmap of the PMD efuse resource. +- regmap-rb : Regmap of the register bus resource. This property + is optional only for compatibility. If the RB + error conditions are not cleared, it will + continuously generate interrupt. +- reg : First resource shall be the CPU bus (PCP) resource. +- interrupts : Interrupt-specifier for MCU, PMD, L3, or SoC error + IRQ(s). + +Required properties for memory controller subnode: +- compatible : Shall be "apm,xgene-edac-mc". +- reg : First resource shall be the memory controller unit + (MCU) resource. +- memory-controller : Instance number of the memory controller. + +Required properties for PMD subnode: +- compatible : Shall be "apm,xgene-edac-pmd" or + "apm,xgene-edac-pmd-v2". +- reg : First resource shall be the PMD resource. +- pmd-controller : Instance number of the PMD controller. + +Required properties for L3 subnode: +- compatible : Shall be "apm,xgene-edac-l3" or + "apm,xgene-edac-l3-v2". +- reg : First resource shall be the L3 EDAC resource. + +Required properties for SoC subnode: +- compatible : Shall be "apm,xgene-edac-soc-v1" for revision 1 or + "apm,xgene-edac-l3-soc" for general value reporting + only. +- reg : First resource shall be the SoC EDAC resource. + +Example: + csw: csw@7e200000 { + compatible = "apm,xgene-csw", "syscon"; + reg = <0x0 0x7e200000 0x0 0x1000>; + }; + + mcba: mcba@7e700000 { + compatible = "apm,xgene-mcb", "syscon"; + reg = <0x0 0x7e700000 0x0 0x1000>; + }; + + mcbb: mcbb@7e720000 { + compatible = "apm,xgene-mcb", "syscon"; + reg = <0x0 0x7e720000 0x0 0x1000>; + }; + + efuse: efuse@1054a000 { + compatible = "apm,xgene-efuse", "syscon"; + reg = <0x0 0x1054a000 0x0 0x20>; + }; + + rb: rb@7e000000 { + compatible = "apm,xgene-rb", "syscon"; + reg = <0x0 0x7e000000 0x0 0x10>; + }; + + edac@78800000 { + compatible = "apm,xgene-edac"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + regmap-csw = <&csw>; + regmap-mcba = <&mcba>; + regmap-mcbb = <&mcbb>; + regmap-efuse = <&efuse>; + regmap-rb = <&rb>; + reg = <0x0 0x78800000 0x0 0x100>; + interrupts = <0x0 0x20 0x4>, + <0x0 0x21 0x4>, + <0x0 0x27 0x4>; + + edacmc@7e800000 { + compatible = "apm,xgene-edac-mc"; + reg = <0x0 0x7e800000 0x0 0x1000>; + memory-controller = <0>; + }; + + edacpmd@7c000000 { + compatible = "apm,xgene-edac-pmd"; + reg = <0x0 0x7c000000 0x0 0x200000>; + pmd-controller = <0>; + }; + + edacl3@7e600000 { + compatible = "apm,xgene-edac-l3"; + reg = <0x0 0x7e600000 0x0 0x1000>; + }; + + edacsoc@7e930000 { + compatible = "apm,xgene-edac-soc-v1"; + reg = <0x0 0x7e930000 0x0 0x1000>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/eeprom/at25.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/eeprom/at25.yaml index 0d272d490..c31e5e719 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/eeprom/at25.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/eeprom/at25.yaml @@ -1,149 +1,149 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/eeprom/at25.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: SPI EEPROMs or FRAMs compatible with Atmel's AT25 - -maintainers: - - Christian Eggers - -properties: - $nodename: - anyOf: - - pattern: "^eeprom@[0-9a-f]{1,2}$" - - pattern: "^fram@[0-9a-f]{1,2}$" - - # There are multiple known vendors who manufacture EEPROM chips compatible - # with Atmel's AT25. The compatible string requires two items where the - # 'vendor' and 'model' parts of the first are the actual chip and the second - # item is fixed to "atmel,at25". Some existing bindings only have the - # "atmel,at25" part and should be fixed by somebody who knows vendor and - # product. - compatible: - oneOf: - - items: - - enum: - - anvo,anv32e61w - - atmel,at25256B - - fujitsu,mb85rs1mt - - fujitsu,mb85rs256 - - fujitsu,mb85rs64 - - microchip,at25160bn - - microchip,25lc040 - - st,m95m02 - - st,m95256 - - st,m95640 - - cypress,fm25 - - - const: atmel,at25 - - # Please don't use this alternative for new bindings. - - items: - - const: atmel,at25 - - reg: - maxItems: 1 - - pagesize: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [1, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072] - description: - Size of the eeprom page. FRAMs don't have pages. - - size: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Total eeprom size in bytes. - - address-width: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [ 8, 9, 16, 24 ] - description: - Number of address bits. - For 9 bits, the MSB of the address is sent as bit 3 of the instruction - byte, before the address byte. - - spi-cpha: true - - spi-cpol: true - - read-only: - description: - Disable writes to the eeprom. - type: boolean - - wp-gpios: - maxItems: 1 - description: - GPIO to which the write-protect pin of the chip is connected. - - # Deprecated: at25,byte-len, at25,addr-mode, at25,page-size - at25,byte-len: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Total eeprom size in bytes. Deprecated, use "size" property instead. - deprecated: true - - at25,addr-mode: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Addr-mode flags, as defined in include/linux/spi/eeprom.h. - Deprecated, use "address-width" property instead. - deprecated: true - - at25,page-size: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Size of the eeprom page. Deprecated, use "pagesize" property instead. - deprecated: true - -required: - - compatible - - reg - - spi-max-frequency - -allOf: - - $ref: /schemas/spi/spi-peripheral-props.yaml# - - $ref: /schemas/nvmem/nvmem.yaml - - if: - properties: - compatible: - not: - contains: - const: cypress,fm25 - then: - required: - - pagesize - - size - - address-width - -unevaluatedProperties: false - -examples: - - | - #include - spi { - #address-cells = <1>; - #size-cells = <0>; - - eeprom@0 { - compatible = "st,m95256", "atmel,at25"; - reg = <0>; - spi-max-frequency = <5000000>; - spi-cpha; - spi-cpol; - wp-gpios = <&gpio1 3 0>; - - pagesize = <64>; - size = <32768>; - address-width = <16>; - }; - - fram@1 { - compatible = "cypress,fm25", "atmel,at25"; - reg = <1>; - spi-max-frequency = <40000000>; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/eeprom/at25.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SPI EEPROMs or FRAMs compatible with Atmel's AT25 + +maintainers: + - Christian Eggers + +properties: + $nodename: + anyOf: + - pattern: "^eeprom@[0-9a-f]{1,2}$" + - pattern: "^fram@[0-9a-f]{1,2}$" + + # There are multiple known vendors who manufacture EEPROM chips compatible + # with Atmel's AT25. The compatible string requires two items where the + # 'vendor' and 'model' parts of the first are the actual chip and the second + # item is fixed to "atmel,at25". Some existing bindings only have the + # "atmel,at25" part and should be fixed by somebody who knows vendor and + # product. + compatible: + oneOf: + - items: + - enum: + - anvo,anv32e61w + - atmel,at25256B + - fujitsu,mb85rs1mt + - fujitsu,mb85rs256 + - fujitsu,mb85rs64 + - microchip,at25160bn + - microchip,25lc040 + - st,m95m02 + - st,m95256 + - st,m95640 + - cypress,fm25 + + - const: atmel,at25 + + # Please don't use this alternative for new bindings. + - items: + - const: atmel,at25 + + reg: + maxItems: 1 + + pagesize: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072] + description: + Size of the eeprom page. FRAMs don't have pages. + + size: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Total eeprom size in bytes. + + address-width: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 8, 9, 16, 24 ] + description: + Number of address bits. + For 9 bits, the MSB of the address is sent as bit 3 of the instruction + byte, before the address byte. + + spi-cpha: true + + spi-cpol: true + + read-only: + description: + Disable writes to the eeprom. + type: boolean + + wp-gpios: + maxItems: 1 + description: + GPIO to which the write-protect pin of the chip is connected. + + # Deprecated: at25,byte-len, at25,addr-mode, at25,page-size + at25,byte-len: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Total eeprom size in bytes. Deprecated, use "size" property instead. + deprecated: true + + at25,addr-mode: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Addr-mode flags, as defined in include/linux/spi/eeprom.h. + Deprecated, use "address-width" property instead. + deprecated: true + + at25,page-size: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Size of the eeprom page. Deprecated, use "pagesize" property instead. + deprecated: true + +required: + - compatible + - reg + - spi-max-frequency + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + - $ref: /schemas/nvmem/nvmem.yaml + - if: + properties: + compatible: + not: + contains: + const: cypress,fm25 + then: + required: + - pagesize + - size + - address-width + +unevaluatedProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + eeprom@0 { + compatible = "st,m95256", "atmel,at25"; + reg = <0>; + spi-max-frequency = <5000000>; + spi-cpha; + spi-cpol; + wp-gpios = <&gpio1 3 0>; + + pagesize = <64>; + size = <32768>; + address-width = <16>; + }; + + fram@1 { + compatible = "cypress,fm25", "atmel,at25"; + reg = <1>; + spi-max-frequency = <40000000>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/extcon/wlf,arizona.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/extcon/wlf,arizona.yaml index 88926c2ca..351b202d0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/extcon/wlf,arizona.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/extcon/wlf,arizona.yaml @@ -1,126 +1,126 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/extcon/wlf,arizona.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs - -maintainers: - - patches@opensource.cirrus.com - -description: | - These devices are audio SoCs with extensive digital capabilities and a - range of analogue I/O. - - This document lists Extcon specific bindings, see the primary binding - document ../mfd/arizona.yaml - -properties: - wlf,hpdet-channel: - description: - Headphone detection channel. ARIZONA_ACCDET_MODE_HPL/1 sets the - headphone detect mode to HPDETL, ARIZONA_ACCDET_MODE_HPR/2 sets it - to HPDETR. If this node is not included or if the value is unknown, - then headphone detection mode is set to HPDETL. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 1 - maximum: 2 - - wlf,use-jd2: - description: - Use the additional JD input along with JD1 for dual pin jack detection. - type: boolean - - wlf,use-jd2-nopull: - description: - Internal pull on JD2 is disabled when used for jack detection. - type: boolean - - wlf,jd-invert: - description: - Invert the polarity of the jack detection switch. - type: boolean - - wlf,micd-software-compare: - description: - Use a software comparison to determine mic presence. - type: boolean - - wlf,micd-detect-debounce: - description: - Additional software microphone detection debounce specified in - milliseconds. - $ref: /schemas/types.yaml#/definitions/uint32 - - wlf,micd-pol-gpio: - description: - GPIO specifier for the GPIO controlling the headset polarity if one - exists. - maxItems: 1 - - wlf,micd-bias-start-time: - description: - Time allowed for MICBIAS to startup prior to performing microphone - detection, specified as per the ARIZONA_MICD_TIME_XXX defines. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 12 - - wlf,micd-rate: - description: - Delay between successive microphone detection measurements, specified - as per the ARIZONA_MICD_TIME_XXX defines. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 12 - - wlf,micd-dbtime: - description: - Microphone detection hardware debounces specified as the number of - measurements to take. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [2, 4] - - wlf,micd-timeout-ms: - description: - Timeout for microphone detection, specified in milliseconds. - - wlf,micd-force-micbias: - description: - Force MICBIAS continuously on during microphone detection. - type: boolean - - wlf,micd-configs: - description: - Headset polarity configurations (generally used for detection of - CTIA / OMTP headsets), the field can be of variable length but - should always be a multiple of 3 cells long, each three cell group - represents one polarity configuration. - $ref: /schemas/types.yaml#/definitions/uint32-matrix - items: - items: - - description: - The first cell defines the accessory detection pin, zero - will use MICDET1 and 0x2000 will use MICDET2. - enum: [ 0, 0x2000 ] - - description: - The second cell represents the MICBIAS to be used. Zero - will use MICVDD, 1-3 will use MICBIASx. - minimum: 0 - maximum: 3 - - description: - The third cell represents the value of the micd-pol-gpio - pin. - minimum: 0 - maximum: 1 - - wlf,gpsw: - description: - Settings for the general purpose switch, set as one of the - ARIZONA_GPSW_XXX defines. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 3 - -additionalProperties: true +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/extcon/wlf,arizona.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs + +maintainers: + - patches@opensource.cirrus.com + +description: | + These devices are audio SoCs with extensive digital capabilities and a + range of analogue I/O. + + This document lists Extcon specific bindings, see the primary binding + document ../mfd/arizona.yaml + +properties: + wlf,hpdet-channel: + description: + Headphone detection channel. ARIZONA_ACCDET_MODE_HPL/1 sets the + headphone detect mode to HPDETL, ARIZONA_ACCDET_MODE_HPR/2 sets it + to HPDETR. If this node is not included or if the value is unknown, + then headphone detection mode is set to HPDETL. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + maximum: 2 + + wlf,use-jd2: + description: + Use the additional JD input along with JD1 for dual pin jack detection. + type: boolean + + wlf,use-jd2-nopull: + description: + Internal pull on JD2 is disabled when used for jack detection. + type: boolean + + wlf,jd-invert: + description: + Invert the polarity of the jack detection switch. + type: boolean + + wlf,micd-software-compare: + description: + Use a software comparison to determine mic presence. + type: boolean + + wlf,micd-detect-debounce: + description: + Additional software microphone detection debounce specified in + milliseconds. + $ref: /schemas/types.yaml#/definitions/uint32 + + wlf,micd-pol-gpio: + description: + GPIO specifier for the GPIO controlling the headset polarity if one + exists. + maxItems: 1 + + wlf,micd-bias-start-time: + description: + Time allowed for MICBIAS to startup prior to performing microphone + detection, specified as per the ARIZONA_MICD_TIME_XXX defines. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 12 + + wlf,micd-rate: + description: + Delay between successive microphone detection measurements, specified + as per the ARIZONA_MICD_TIME_XXX defines. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 12 + + wlf,micd-dbtime: + description: + Microphone detection hardware debounces specified as the number of + measurements to take. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [2, 4] + + wlf,micd-timeout-ms: + description: + Timeout for microphone detection, specified in milliseconds. + + wlf,micd-force-micbias: + description: + Force MICBIAS continuously on during microphone detection. + type: boolean + + wlf,micd-configs: + description: + Headset polarity configurations (generally used for detection of + CTIA / OMTP headsets), the field can be of variable length but + should always be a multiple of 3 cells long, each three cell group + represents one polarity configuration. + $ref: /schemas/types.yaml#/definitions/uint32-matrix + items: + items: + - description: + The first cell defines the accessory detection pin, zero + will use MICDET1 and 0x2000 will use MICDET2. + enum: [ 0, 0x2000 ] + - description: + The second cell represents the MICBIAS to be used. Zero + will use MICVDD, 1-3 will use MICBIASx. + minimum: 0 + maximum: 3 + - description: + The third cell represents the value of the micd-pol-gpio + pin. + minimum: 0 + maximum: 1 + + wlf,gpsw: + description: + Settings for the general purpose switch, set as one of the + ARIZONA_GPSW_XXX defines. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 3 + +additionalProperties: true diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/gpio-ep9301.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/gpio-ep9301.yaml index 1ac83bb64..3a1079d6e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/gpio-ep9301.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/gpio-ep9301.yaml @@ -1,157 +1,157 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/gpio/gpio-ep9301.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: EP93xx GPIO controller - -maintainers: - - Linus Walleij - - Bartosz Golaszewski - - Nikita Shubin - -properties: - compatible: - oneOf: - - const: cirrus,ep9301-gpio - - items: - - enum: - - cirrus,ep9302-gpio - - cirrus,ep9307-gpio - - cirrus,ep9312-gpio - - cirrus,ep9315-gpio - - const: cirrus,ep9301-gpio - - reg: - minItems: 2 - items: - - description: data register - - description: direction register - - description: interrupt registers base - - reg-names: - minItems: 2 - items: - - const: data - - const: dir - - const: intr - - gpio-controller: true - - gpio-ranges: true - - "#gpio-cells": - const: 2 - - interrupt-controller: true - - "#interrupt-cells": - const: 2 - - interrupts: - oneOf: - - maxItems: 1 - - description: port F has dedicated irq line for each gpio line - maxItems: 8 - -required: - - compatible - - reg - - gpio-controller - - "#gpio-cells" - -additionalProperties: false - -examples: - - | - gpio@80840000 { - compatible = "cirrus,ep9301-gpio"; - reg = <0x80840000 0x04>, - <0x80840010 0x04>, - <0x80840090 0x1c>; - reg-names = "data", "dir", "intr"; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - interrupt-parent = <&vic1>; - interrupts = <27>; - }; - - gpio@80840004 { - compatible = "cirrus,ep9301-gpio"; - reg = <0x80840004 0x04>, - <0x80840014 0x04>, - <0x808400ac 0x1c>; - reg-names = "data", "dir", "intr"; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - interrupt-parent = <&vic1>; - interrupts = <27>; - }; - - gpio@80840008 { - compatible = "cirrus,ep9301-gpio"; - reg = <0x80840008 0x04>, - <0x80840018 0x04>; - reg-names = "data", "dir"; - gpio-controller; - #gpio-cells = <2>; - }; - - gpio@8084000c { - compatible = "cirrus,ep9301-gpio"; - reg = <0x8084000c 0x04>, - <0x8084001c 0x04>; - reg-names = "data", "dir"; - gpio-controller; - #gpio-cells = <2>; - }; - - gpio@80840020 { - compatible = "cirrus,ep9301-gpio"; - reg = <0x80840020 0x04>, - <0x80840024 0x04>; - reg-names = "data", "dir"; - gpio-controller; - #gpio-cells = <2>; - }; - - gpio@80840030 { - compatible = "cirrus,ep9301-gpio"; - reg = <0x80840030 0x04>, - <0x80840034 0x04>, - <0x8084004c 0x1c>; - reg-names = "data", "dir", "intr"; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - interrupts-extended = <&vic0 19>, <&vic0 20>, - <&vic0 21>, <&vic0 22>, - <&vic1 15>, <&vic1 16>, - <&vic1 17>, <&vic1 18>; - }; - - gpio@80840038 { - compatible = "cirrus,ep9301-gpio"; - reg = <0x80840038 0x04>, - <0x8084003c 0x04>; - reg-names = "data", "dir"; - gpio-controller; - #gpio-cells = <2>; - }; - - gpio@80840040 { - compatible = "cirrus,ep9301-gpio"; - reg = <0x80840040 0x04>, - <0x80840044 0x04>; - reg-names = "data", "dir"; - gpio-controller; - #gpio-cells = <2>; - }; - -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/gpio-ep9301.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: EP93xx GPIO controller + +maintainers: + - Linus Walleij + - Bartosz Golaszewski + - Nikita Shubin + +properties: + compatible: + oneOf: + - const: cirrus,ep9301-gpio + - items: + - enum: + - cirrus,ep9302-gpio + - cirrus,ep9307-gpio + - cirrus,ep9312-gpio + - cirrus,ep9315-gpio + - const: cirrus,ep9301-gpio + + reg: + minItems: 2 + items: + - description: data register + - description: direction register + - description: interrupt registers base + + reg-names: + minItems: 2 + items: + - const: data + - const: dir + - const: intr + + gpio-controller: true + + gpio-ranges: true + + "#gpio-cells": + const: 2 + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + + interrupts: + oneOf: + - maxItems: 1 + - description: port F has dedicated irq line for each gpio line + maxItems: 8 + +required: + - compatible + - reg + - gpio-controller + - "#gpio-cells" + +additionalProperties: false + +examples: + - | + gpio@80840000 { + compatible = "cirrus,ep9301-gpio"; + reg = <0x80840000 0x04>, + <0x80840010 0x04>, + <0x80840090 0x1c>; + reg-names = "data", "dir", "intr"; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&vic1>; + interrupts = <27>; + }; + + gpio@80840004 { + compatible = "cirrus,ep9301-gpio"; + reg = <0x80840004 0x04>, + <0x80840014 0x04>, + <0x808400ac 0x1c>; + reg-names = "data", "dir", "intr"; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&vic1>; + interrupts = <27>; + }; + + gpio@80840008 { + compatible = "cirrus,ep9301-gpio"; + reg = <0x80840008 0x04>, + <0x80840018 0x04>; + reg-names = "data", "dir"; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@8084000c { + compatible = "cirrus,ep9301-gpio"; + reg = <0x8084000c 0x04>, + <0x8084001c 0x04>; + reg-names = "data", "dir"; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@80840020 { + compatible = "cirrus,ep9301-gpio"; + reg = <0x80840020 0x04>, + <0x80840024 0x04>; + reg-names = "data", "dir"; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@80840030 { + compatible = "cirrus,ep9301-gpio"; + reg = <0x80840030 0x04>, + <0x80840034 0x04>, + <0x8084004c 0x1c>; + reg-names = "data", "dir", "intr"; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts-extended = <&vic0 19>, <&vic0 20>, + <&vic0 21>, <&vic0 22>, + <&vic1 15>, <&vic1 16>, + <&vic1 17>, <&vic1 18>; + }; + + gpio@80840038 { + compatible = "cirrus,ep9301-gpio"; + reg = <0x80840038 0x04>, + <0x8084003c 0x04>; + reg-names = "data", "dir"; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@80840040 { + compatible = "cirrus,ep9301-gpio"; + reg = <0x80840040 0x04>, + <0x80840044 0x04>; + reg-names = "data", "dir"; + gpio-controller; + #gpio-cells = <2>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml index 7c6f1f018..b394e0582 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml @@ -1,117 +1,117 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/gpio/gpio-mmio.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Generic MMIO GPIO - -maintainers: - - Linus Walleij - - Bartosz Golaszewski - -description: - Some simple GPIO controllers may consist of a single data register or a pair - of set/clear-bit registers. Such controllers are common for glue logic in - FPGAs or ASICs. Commonly, these controllers are accessed over memory-mapped - NAND-style parallel busses. - -properties: - compatible: - enum: - - brcm,bcm6345-gpio - - ni,169445-nand-gpio - - wd,mbl-gpio # Western Digital MyBook Live memory-mapped GPIO controller - - big-endian: true - - '#gpio-cells': - const: 2 - - gpio-controller: true - - little-endian: true - - reg: - minItems: 1 - description: - A list of registers in the controller. The width of each register is - determined by its size. All registers must have the same width. The number - of GPIOs is set by the width, with bit 0 corresponding to GPIO 0. - items: - - description: - Register to READ the value of the GPIO lines. If GPIO line is high, - the bit will be set. If the GPIO line is low, the bit will be cleared. - This register may also be used to drive GPIOs if the SET register is - omitted. - - description: - Register to SET the value of the GPIO lines. Setting a bit in this - register will drive the GPIO line high. - - description: - Register to CLEAR the value of the GPIO lines. Setting a bit in this - register will drive the GPIO line low. If this register is omitted, - the SET register will be used to clear the GPIO lines as well, by - actively writing the line with 0. - - description: - Register to set the line as OUTPUT. Setting a bit in this register - will turn that line into an output line. Conversely, clearing a bit - will turn that line into an input. - - description: - Register to set this line as INPUT. Setting a bit in this register - will turn that line into an input line. Conversely, clearing a bit - will turn that line into an output. - - reg-names: - minItems: 1 - maxItems: 5 - items: - enum: - - dat - - set - - clr - - dirout - - dirin - - native-endian: true - - no-output: - $ref: /schemas/types.yaml#/definitions/flag - description: - If this property is present, the controller cannot drive the GPIO lines. - -required: - - compatible - - reg - - reg-names - - '#gpio-cells' - - gpio-controller - -additionalProperties: false - -examples: - - | - gpio@1f300010 { - compatible = "ni,169445-nand-gpio"; - reg = <0x1f300010 0x4>; - reg-names = "dat"; - gpio-controller; - #gpio-cells = <2>; - }; - - gpio@e0100000 { - compatible = "wd,mbl-gpio"; - reg-names = "dat"; - reg = <0xe0100000 0x1>; - #gpio-cells = <2>; - gpio-controller; - no-output; - }; - - gpio@fffe0406 { - compatible = "brcm,bcm6345-gpio"; - reg-names = "dirout", "dat"; - reg = <0xfffe0406 2>, <0xfffe040a 2>; - native-endian; - gpio-controller; - #gpio-cells = <2>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/gpio-mmio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic MMIO GPIO + +maintainers: + - Linus Walleij + - Bartosz Golaszewski + +description: + Some simple GPIO controllers may consist of a single data register or a pair + of set/clear-bit registers. Such controllers are common for glue logic in + FPGAs or ASICs. Commonly, these controllers are accessed over memory-mapped + NAND-style parallel busses. + +properties: + compatible: + enum: + - brcm,bcm6345-gpio + - ni,169445-nand-gpio + - wd,mbl-gpio # Western Digital MyBook Live memory-mapped GPIO controller + + big-endian: true + + '#gpio-cells': + const: 2 + + gpio-controller: true + + little-endian: true + + reg: + minItems: 1 + description: + A list of registers in the controller. The width of each register is + determined by its size. All registers must have the same width. The number + of GPIOs is set by the width, with bit 0 corresponding to GPIO 0. + items: + - description: + Register to READ the value of the GPIO lines. If GPIO line is high, + the bit will be set. If the GPIO line is low, the bit will be cleared. + This register may also be used to drive GPIOs if the SET register is + omitted. + - description: + Register to SET the value of the GPIO lines. Setting a bit in this + register will drive the GPIO line high. + - description: + Register to CLEAR the value of the GPIO lines. Setting a bit in this + register will drive the GPIO line low. If this register is omitted, + the SET register will be used to clear the GPIO lines as well, by + actively writing the line with 0. + - description: + Register to set the line as OUTPUT. Setting a bit in this register + will turn that line into an output line. Conversely, clearing a bit + will turn that line into an input. + - description: + Register to set this line as INPUT. Setting a bit in this register + will turn that line into an input line. Conversely, clearing a bit + will turn that line into an output. + + reg-names: + minItems: 1 + maxItems: 5 + items: + enum: + - dat + - set + - clr + - dirout + - dirin + + native-endian: true + + no-output: + $ref: /schemas/types.yaml#/definitions/flag + description: + If this property is present, the controller cannot drive the GPIO lines. + +required: + - compatible + - reg + - reg-names + - '#gpio-cells' + - gpio-controller + +additionalProperties: false + +examples: + - | + gpio@1f300010 { + compatible = "ni,169445-nand-gpio"; + reg = <0x1f300010 0x4>; + reg-names = "dat"; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@e0100000 { + compatible = "wd,mbl-gpio"; + reg-names = "dat"; + reg = <0xe0100000 0x1>; + #gpio-cells = <2>; + gpio-controller; + no-output; + }; + + gpio@fffe0406 { + compatible = "brcm,bcm6345-gpio"; + reg-names = "dirout", "dat"; + reg = <0xfffe0406 2>, <0xfffe040a 2>; + native-endian; + gpio-controller; + #gpio-cells = <2>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/loongson,ls-gpio.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/loongson,ls-gpio.yaml index d9e1599ec..cf3b1b270 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/loongson,ls-gpio.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/loongson,ls-gpio.yaml @@ -1,139 +1,139 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/gpio/loongson,ls-gpio.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Loongson GPIO controller. - -maintainers: - - Yinbo Zhu - -properties: - compatible: - oneOf: - - enum: - - loongson,ls2k-gpio - - loongson,ls2k0500-gpio0 - - loongson,ls2k0500-gpio1 - - loongson,ls2k2000-gpio0 - - loongson,ls2k2000-gpio1 - - loongson,ls2k2000-gpio2 - - loongson,ls3a5000-gpio - - loongson,ls7a-gpio - - items: - - const: loongson,ls2k1000-gpio - - const: loongson,ls2k-gpio - - items: - - const: loongson,ls7a1000-gpio - - const: loongson,ls7a-gpio - - reg: - maxItems: 1 - - ngpios: - minimum: 1 - maximum: 64 - - "#gpio-cells": - const: 2 - - gpio-controller: true - - gpio-ranges: true - - interrupts: - minItems: 1 - maxItems: 64 - -required: - - compatible - - reg - - ngpios - - "#gpio-cells" - - gpio-controller - - gpio-ranges - - interrupts - -additionalProperties: false - -examples: - - | - #include - - gpio0: gpio@1fe00500 { - compatible = "loongson,ls2k1000-gpio", "loongson,ls2k-gpio"; - reg = <0x1fe00500 0x38>; - ngpios = <64>; - #gpio-cells = <2>; - gpio-controller; - gpio-ranges = <&pctrl 0 0 15>, - <&pctrl 16 16 15>, - <&pctrl 32 32 10>, - <&pctrl 44 44 20>; - interrupt-parent = <&liointc1>; - interrupts = <28 IRQ_TYPE_LEVEL_LOW>, - <29 IRQ_TYPE_LEVEL_LOW>, - <30 IRQ_TYPE_LEVEL_LOW>, - <30 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <26 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <>, - <>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>, - <27 IRQ_TYPE_LEVEL_LOW>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/loongson,ls-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Loongson GPIO controller. + +maintainers: + - Yinbo Zhu + +properties: + compatible: + oneOf: + - enum: + - loongson,ls2k-gpio + - loongson,ls2k0500-gpio0 + - loongson,ls2k0500-gpio1 + - loongson,ls2k2000-gpio0 + - loongson,ls2k2000-gpio1 + - loongson,ls2k2000-gpio2 + - loongson,ls3a5000-gpio + - loongson,ls7a-gpio + - items: + - const: loongson,ls2k1000-gpio + - const: loongson,ls2k-gpio + - items: + - const: loongson,ls7a1000-gpio + - const: loongson,ls7a-gpio + + reg: + maxItems: 1 + + ngpios: + minimum: 1 + maximum: 64 + + "#gpio-cells": + const: 2 + + gpio-controller: true + + gpio-ranges: true + + interrupts: + minItems: 1 + maxItems: 64 + +required: + - compatible + - reg + - ngpios + - "#gpio-cells" + - gpio-controller + - gpio-ranges + - interrupts + +additionalProperties: false + +examples: + - | + #include + + gpio0: gpio@1fe00500 { + compatible = "loongson,ls2k1000-gpio", "loongson,ls2k-gpio"; + reg = <0x1fe00500 0x38>; + ngpios = <64>; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pctrl 0 0 15>, + <&pctrl 16 16 15>, + <&pctrl 32 32 10>, + <&pctrl 44 44 20>; + interrupt-parent = <&liointc1>; + interrupts = <28 IRQ_TYPE_LEVEL_LOW>, + <29 IRQ_TYPE_LEVEL_LOW>, + <30 IRQ_TYPE_LEVEL_LOW>, + <30 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <26 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <>, + <>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>, + <27 IRQ_TYPE_LEVEL_LOW>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/mrvl-gpio.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/mrvl-gpio.yaml index 3a4211708..65155bb70 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/mrvl-gpio.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/mrvl-gpio.yaml @@ -1,172 +1,172 @@ -# SPDX-License-Identifier: GPL-2.0-only -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/gpio/mrvl-gpio.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Marvell PXA GPIO controller - -maintainers: - - Linus Walleij - - Bartosz Golaszewski - - Rob Herring - -allOf: - - if: - properties: - compatible: - contains: - enum: - - intel,pxa25x-gpio - - intel,pxa26x-gpio - - intel,pxa27x-gpio - - intel,pxa3xx-gpio - then: - properties: - interrupts: - minItems: 3 - maxItems: 3 - interrupt-names: - items: - - const: gpio0 - - const: gpio1 - - const: gpio_mux - - if: - properties: - compatible: - contains: - enum: - - marvell,mmp-gpio - - marvell,mmp2-gpio - then: - properties: - interrupts: - maxItems: 1 - interrupt-names: - items: - - const: gpio_mux - -properties: - $nodename: - pattern: '^gpio@[0-9a-f]+$' - - compatible: - enum: - - intel,pxa25x-gpio - - intel,pxa26x-gpio - - intel,pxa27x-gpio - - intel,pxa3xx-gpio - - marvell,mmp-gpio - - marvell,mmp2-gpio - - marvell,pxa93x-gpio - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - resets: - maxItems: 1 - - ranges: true - - '#address-cells': - const: 1 - - '#size-cells': - const: 1 - - gpio-controller: true - - '#gpio-cells': - const: 2 - - gpio-ranges: true - - interrupts: true - - interrupt-names: true - - interrupt-controller: true - - '#interrupt-cells': - const: 2 - -patternProperties: - '^gpio@[0-9a-f]*$': - type: object - properties: - reg: - maxItems: 1 - - required: - - reg - - additionalProperties: false - -required: - - compatible - - '#address-cells' - - '#size-cells' - - reg - - gpio-controller - - '#gpio-cells' - - interrupts - - interrupt-names - - interrupt-controller - - '#interrupt-cells' - -additionalProperties: false - -examples: - - | - #include - gpio@40e00000 { - compatible = "intel,pxa3xx-gpio"; - #address-cells = <1>; - #size-cells = <1>; - reg = <0x40e00000 0x10000>; - gpio-controller; - #gpio-cells = <2>; - interrupts = <8>, <9>, <10>; - interrupt-names = "gpio0", "gpio1", "gpio_mux"; - clocks = <&clks CLK_GPIO>; - interrupt-controller; - #interrupt-cells = <2>; - }; - - | - #include - gpio@d4019000 { - compatible = "marvell,mmp-gpio"; - #address-cells = <1>; - #size-cells = <1>; - reg = <0xd4019000 0x1000>; - gpio-controller; - #gpio-cells = <2>; - interrupts = <49>; - interrupt-names = "gpio_mux"; - clocks = <&soc_clocks PXA910_CLK_GPIO>; - resets = <&soc_clocks PXA910_CLK_GPIO>; - interrupt-controller; - #interrupt-cells = <2>; - ranges; - - gpio@d4019000 { - reg = <0xd4019000 0x4>; - }; - - gpio@d4019004 { - reg = <0xd4019004 0x4>; - }; - - gpio@d4019008 { - reg = <0xd4019008 0x4>; - }; - - gpio@d4019100 { - reg = <0xd4019100 0x4>; - }; - }; - -... +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/mrvl-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell PXA GPIO controller + +maintainers: + - Linus Walleij + - Bartosz Golaszewski + - Rob Herring + +allOf: + - if: + properties: + compatible: + contains: + enum: + - intel,pxa25x-gpio + - intel,pxa26x-gpio + - intel,pxa27x-gpio + - intel,pxa3xx-gpio + then: + properties: + interrupts: + minItems: 3 + maxItems: 3 + interrupt-names: + items: + - const: gpio0 + - const: gpio1 + - const: gpio_mux + - if: + properties: + compatible: + contains: + enum: + - marvell,mmp-gpio + - marvell,mmp2-gpio + then: + properties: + interrupts: + maxItems: 1 + interrupt-names: + items: + - const: gpio_mux + +properties: + $nodename: + pattern: '^gpio@[0-9a-f]+$' + + compatible: + enum: + - intel,pxa25x-gpio + - intel,pxa26x-gpio + - intel,pxa27x-gpio + - intel,pxa3xx-gpio + - marvell,mmp-gpio + - marvell,mmp2-gpio + - marvell,pxa93x-gpio + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + ranges: true + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + + gpio-controller: true + + '#gpio-cells': + const: 2 + + gpio-ranges: true + + interrupts: true + + interrupt-names: true + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + +patternProperties: + '^gpio@[0-9a-f]*$': + type: object + properties: + reg: + maxItems: 1 + + required: + - reg + + additionalProperties: false + +required: + - compatible + - '#address-cells' + - '#size-cells' + - reg + - gpio-controller + - '#gpio-cells' + - interrupts + - interrupt-names + - interrupt-controller + - '#interrupt-cells' + +additionalProperties: false + +examples: + - | + #include + gpio@40e00000 { + compatible = "intel,pxa3xx-gpio"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x40e00000 0x10000>; + gpio-controller; + #gpio-cells = <2>; + interrupts = <8>, <9>, <10>; + interrupt-names = "gpio0", "gpio1", "gpio_mux"; + clocks = <&clks CLK_GPIO>; + interrupt-controller; + #interrupt-cells = <2>; + }; + - | + #include + gpio@d4019000 { + compatible = "marvell,mmp-gpio"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0xd4019000 0x1000>; + gpio-controller; + #gpio-cells = <2>; + interrupts = <49>; + interrupt-names = "gpio_mux"; + clocks = <&soc_clocks PXA910_CLK_GPIO>; + resets = <&soc_clocks PXA910_CLK_GPIO>; + interrupt-controller; + #interrupt-cells = <2>; + ranges; + + gpio@d4019000 { + reg = <0xd4019000 0x4>; + }; + + gpio@d4019004 { + reg = <0xd4019004 0x4>; + }; + + gpio@d4019008 { + reg = <0xd4019008 0x4>; + }; + + gpio@d4019100 { + reg = <0xd4019100 0x4>; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml index 753c56256..cc7a950a6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml @@ -1,153 +1,153 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/gpio/renesas,rcar-gpio.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas R-Car General-Purpose Input/Output Ports (GPIO) - -maintainers: - - Geert Uytterhoeven - -properties: - compatible: - oneOf: - - items: - - enum: - - renesas,gpio-r8a7778 # R-Car M1 - - renesas,gpio-r8a7779 # R-Car H1 - - const: renesas,rcar-gen1-gpio # R-Car Gen1 - - - items: - - enum: - - renesas,gpio-r8a7742 # RZ/G1H - - renesas,gpio-r8a7743 # RZ/G1M - - renesas,gpio-r8a7744 # RZ/G1N - - renesas,gpio-r8a7745 # RZ/G1E - - renesas,gpio-r8a77470 # RZ/G1C - - renesas,gpio-r8a7790 # R-Car H2 - - renesas,gpio-r8a7791 # R-Car M2-W - - renesas,gpio-r8a7792 # R-Car V2H - - renesas,gpio-r8a7793 # R-Car M2-N - - renesas,gpio-r8a7794 # R-Car E2 - - const: renesas,rcar-gen2-gpio # R-Car Gen2 or RZ/G1 - - - items: - - enum: - - renesas,gpio-r8a774a1 # RZ/G2M - - renesas,gpio-r8a774b1 # RZ/G2N - - renesas,gpio-r8a774c0 # RZ/G2E - - renesas,gpio-r8a774e1 # RZ/G2H - - renesas,gpio-r8a7795 # R-Car H3 - - renesas,gpio-r8a7796 # R-Car M3-W - - renesas,gpio-r8a77961 # R-Car M3-W+ - - renesas,gpio-r8a77965 # R-Car M3-N - - renesas,gpio-r8a77970 # R-Car V3M - - renesas,gpio-r8a77980 # R-Car V3H - - renesas,gpio-r8a77990 # R-Car E3 - - renesas,gpio-r8a77995 # R-Car D3 - - const: renesas,rcar-gen3-gpio # R-Car Gen3 or RZ/G2 - - - items: - - enum: - - renesas,gpio-r8a779a0 # R-Car V3U - - renesas,gpio-r8a779f0 # R-Car S4-8 - - renesas,gpio-r8a779g0 # R-Car V4H - - renesas,gpio-r8a779h0 # R-Car V4M - - const: renesas,rcar-gen4-gpio # R-Car Gen4 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - maxItems: 1 - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - gpio-controller: true - - '#gpio-cells': - const: 2 - - interrupt-controller: true - - '#interrupt-cells': - const: 2 - - gpio-ranges: - maxItems: 1 - - gpio-reserved-ranges: - minItems: 1 - maxItems: 8 - -patternProperties: - "^.*$": - if: - type: object - then: - properties: - gpio-hog: true - gpios: true - input: true - output-high: true - output-low: true - line-name: true - - required: - - gpio-hog - - gpios - - additionalProperties: false - -required: - - compatible - - reg - - interrupts - - gpio-controller - - '#gpio-cells' - - gpio-ranges - - interrupt-controller - - '#interrupt-cells' - -if: - not: - properties: - compatible: - contains: - enum: - - renesas,rcar-gen1-gpio -then: - required: - - clocks - - power-domains - - resets - -additionalProperties: false - -examples: - - | - #include - #include - #include - gpio3: gpio@e6053000 { - compatible = "renesas,gpio-r8a77470", "renesas,rcar-gen2-gpio"; - reg = <0xe6053000 0x50>; - interrupts = ; - clocks = <&cpg CPG_MOD 909>; - power-domains = <&sysc R8A77470_PD_ALWAYS_ON>; - resets = <&cpg 909>; - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&pfc 0 96 30>; - gpio-reserved-ranges = <17 10>; - interrupt-controller; - #interrupt-cells = <2>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/renesas,rcar-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas R-Car General-Purpose Input/Output Ports (GPIO) + +maintainers: + - Geert Uytterhoeven + +properties: + compatible: + oneOf: + - items: + - enum: + - renesas,gpio-r8a7778 # R-Car M1 + - renesas,gpio-r8a7779 # R-Car H1 + - const: renesas,rcar-gen1-gpio # R-Car Gen1 + + - items: + - enum: + - renesas,gpio-r8a7742 # RZ/G1H + - renesas,gpio-r8a7743 # RZ/G1M + - renesas,gpio-r8a7744 # RZ/G1N + - renesas,gpio-r8a7745 # RZ/G1E + - renesas,gpio-r8a77470 # RZ/G1C + - renesas,gpio-r8a7790 # R-Car H2 + - renesas,gpio-r8a7791 # R-Car M2-W + - renesas,gpio-r8a7792 # R-Car V2H + - renesas,gpio-r8a7793 # R-Car M2-N + - renesas,gpio-r8a7794 # R-Car E2 + - const: renesas,rcar-gen2-gpio # R-Car Gen2 or RZ/G1 + + - items: + - enum: + - renesas,gpio-r8a774a1 # RZ/G2M + - renesas,gpio-r8a774b1 # RZ/G2N + - renesas,gpio-r8a774c0 # RZ/G2E + - renesas,gpio-r8a774e1 # RZ/G2H + - renesas,gpio-r8a7795 # R-Car H3 + - renesas,gpio-r8a7796 # R-Car M3-W + - renesas,gpio-r8a77961 # R-Car M3-W+ + - renesas,gpio-r8a77965 # R-Car M3-N + - renesas,gpio-r8a77970 # R-Car V3M + - renesas,gpio-r8a77980 # R-Car V3H + - renesas,gpio-r8a77990 # R-Car E3 + - renesas,gpio-r8a77995 # R-Car D3 + - const: renesas,rcar-gen3-gpio # R-Car Gen3 or RZ/G2 + + - items: + - enum: + - renesas,gpio-r8a779a0 # R-Car V3U + - renesas,gpio-r8a779f0 # R-Car S4-8 + - renesas,gpio-r8a779g0 # R-Car V4H + - renesas,gpio-r8a779h0 # R-Car V4M + - const: renesas,rcar-gen4-gpio # R-Car Gen4 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + gpio-controller: true + + '#gpio-cells': + const: 2 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + + gpio-ranges: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 8 + +patternProperties: + "^.*$": + if: + type: object + then: + properties: + gpio-hog: true + gpios: true + input: true + output-high: true + output-low: true + line-name: true + + required: + - gpio-hog + - gpios + + additionalProperties: false + +required: + - compatible + - reg + - interrupts + - gpio-controller + - '#gpio-cells' + - gpio-ranges + - interrupt-controller + - '#interrupt-cells' + +if: + not: + properties: + compatible: + contains: + enum: + - renesas,rcar-gen1-gpio +then: + required: + - clocks + - power-domains + - resets + +additionalProperties: false + +examples: + - | + #include + #include + #include + gpio3: gpio@e6053000 { + compatible = "renesas,gpio-r8a77470", "renesas,rcar-gen2-gpio"; + reg = <0xe6053000 0x50>; + interrupts = ; + clocks = <&cpg CPG_MOD 909>; + power-domains = <&sysc R8A77470_PD_ALWAYS_ON>; + resets = <&cpg 909>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pfc 0 96 30>; + gpio-reserved-ranges = <17 10>; + interrupt-controller; + #interrupt-cells = <2>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/sprd,gpio-eic.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/sprd,gpio-eic.yaml index d5a0424b9..99fcf9707 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/sprd,gpio-eic.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/sprd,gpio-eic.yaml @@ -1,124 +1,124 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright 2022 Unisoc Inc. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/gpio/sprd,gpio-eic.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Unisoc EIC controller - -maintainers: - - Orson Zhai - - Baolin Wang - - Chunyan Zhang - -description: | - The EIC is the abbreviation of external interrupt controller, which can - be used only in input mode. The Spreadtrum platform has 2 EIC controllers, - one is in digital chip, and another one is in PMIC. The digital chip EIC - controller contains 4 sub-modules, i.e. EIC-debounce, EIC-latch, EIC-async and - EIC-sync. But the PMIC EIC controller contains only one EIC-debounce sub- - module. - - The EIC-debounce sub-module provides up to 8 source input signal - connections. A debounce mechanism is used to capture the input signals' - stable status (millisecond resolution) and a single-trigger mechanism - is introduced into this sub-module to enhance the input event detection - reliability. In addition, this sub-module's clock can be shut off - automatically to reduce power dissipation. Moreover the debounce range - is from 1ms to 4s with a step size of 1ms. The input signal will be - ignored if it is asserted for less than 1 ms. - - The EIC-latch sub-module is used to latch some special power down signals - and generate interrupts, since the EIC-latch does not depend on the APB - clock to capture signals. - - The EIC-async sub-module uses a 32kHz clock to capture the short signals - (microsecond resolution) to generate interrupts by level or edge trigger. - - The EIC-sync is similar with GPIO's input function, which is a synchronized - signal input register. It can generate interrupts by level or edge trigger - when detecting input signals. - -properties: - compatible: - oneOf: - - enum: - - sprd,sc9860-eic-debounce - - sprd,sc9860-eic-latch - - sprd,sc9860-eic-async - - sprd,sc9860-eic-sync - - sprd,sc2731-eic - - items: - - enum: - - sprd,ums512-eic-debounce - - const: sprd,sc9860-eic-debounce - - items: - - enum: - - sprd,ums512-eic-latch - - const: sprd,sc9860-eic-latch - - items: - - enum: - - sprd,ums512-eic-async - - const: sprd,sc9860-eic-async - - items: - - enum: - - sprd,ums512-eic-sync - - const: sprd,sc9860-eic-sync - - items: - - enum: - - sprd,sc2730-eic - - const: sprd,sc2731-eic - - reg: - minItems: 1 - maxItems: 3 - description: - EIC controller can support maximum 3 banks which has its own - address base. - - gpio-controller: true - - "#gpio-cells": - const: 2 - - interrupt-controller: true - - "#interrupt-cells": - const: 2 - - interrupts: - maxItems: 1 - description: - The interrupt shared by all GPIO lines for this controller. - -required: - - compatible - - reg - - gpio-controller - - "#gpio-cells" - - interrupt-controller - - "#interrupt-cells" - - interrupts - -additionalProperties: false - -examples: - - | - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - - eic_debounce: gpio@40210000 { - compatible = "sprd,sc9860-eic-debounce"; - reg = <0 0x40210000 0 0x80>; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - interrupts = ; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright 2022 Unisoc Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/sprd,gpio-eic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Unisoc EIC controller + +maintainers: + - Orson Zhai + - Baolin Wang + - Chunyan Zhang + +description: | + The EIC is the abbreviation of external interrupt controller, which can + be used only in input mode. The Spreadtrum platform has 2 EIC controllers, + one is in digital chip, and another one is in PMIC. The digital chip EIC + controller contains 4 sub-modules, i.e. EIC-debounce, EIC-latch, EIC-async and + EIC-sync. But the PMIC EIC controller contains only one EIC-debounce sub- + module. + + The EIC-debounce sub-module provides up to 8 source input signal + connections. A debounce mechanism is used to capture the input signals' + stable status (millisecond resolution) and a single-trigger mechanism + is introduced into this sub-module to enhance the input event detection + reliability. In addition, this sub-module's clock can be shut off + automatically to reduce power dissipation. Moreover the debounce range + is from 1ms to 4s with a step size of 1ms. The input signal will be + ignored if it is asserted for less than 1 ms. + + The EIC-latch sub-module is used to latch some special power down signals + and generate interrupts, since the EIC-latch does not depend on the APB + clock to capture signals. + + The EIC-async sub-module uses a 32kHz clock to capture the short signals + (microsecond resolution) to generate interrupts by level or edge trigger. + + The EIC-sync is similar with GPIO's input function, which is a synchronized + signal input register. It can generate interrupts by level or edge trigger + when detecting input signals. + +properties: + compatible: + oneOf: + - enum: + - sprd,sc9860-eic-debounce + - sprd,sc9860-eic-latch + - sprd,sc9860-eic-async + - sprd,sc9860-eic-sync + - sprd,sc2731-eic + - items: + - enum: + - sprd,ums512-eic-debounce + - const: sprd,sc9860-eic-debounce + - items: + - enum: + - sprd,ums512-eic-latch + - const: sprd,sc9860-eic-latch + - items: + - enum: + - sprd,ums512-eic-async + - const: sprd,sc9860-eic-async + - items: + - enum: + - sprd,ums512-eic-sync + - const: sprd,sc9860-eic-sync + - items: + - enum: + - sprd,sc2730-eic + - const: sprd,sc2731-eic + + reg: + minItems: 1 + maxItems: 3 + description: + EIC controller can support maximum 3 banks which has its own + address base. + + gpio-controller: true + + "#gpio-cells": + const: 2 + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + + interrupts: + maxItems: 1 + description: + The interrupt shared by all GPIO lines for this controller. + +required: + - compatible + - reg + - gpio-controller + - "#gpio-cells" + - interrupt-controller + - "#interrupt-cells" + - interrupts + +additionalProperties: false + +examples: + - | + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + eic_debounce: gpio@40210000 { + compatible = "sprd,sc9860-eic-debounce"; + reg = <0 0x40210000 0 0x80>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = ; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/xlnx,gpio-xilinx.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/xlnx,gpio-xilinx.yaml index 12421645d..d3d8a2e14 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/xlnx,gpio-xilinx.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpio/xlnx,gpio-xilinx.yaml @@ -1,154 +1,154 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/gpio/xlnx,gpio-xilinx.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Xilinx AXI GPIO controller - -maintainers: - - Neeli Srinivas - -description: - The AXI GPIO design provides a general purpose input/output interface - to an AXI4-Lite interface. The AXI GPIO can be configured as either - a single or a dual-channel device. The width of each channel is - independently configurable. The channels can be configured to - generate an interrupt when a transition on any of their inputs occurs. - -properties: - compatible: - enum: - - xlnx,xps-gpio-1.00.a - - reg: - maxItems: 1 - - "#gpio-cells": - const: 2 - - interrupts: - maxItems: 1 - - gpio-controller: true - - gpio-line-names: - description: strings describing the names of each gpio line - minItems: 1 - maxItems: 64 - - interrupt-controller: true - - "#interrupt-cells": - const: 2 - - clocks: - maxItems: 1 - - interrupt-names: true - - xlnx,all-inputs: - $ref: /schemas/types.yaml#/definitions/uint32 - description: This option sets this GPIO channel1 bits in input mode. - - xlnx,all-inputs-2: - $ref: /schemas/types.yaml#/definitions/uint32 - description: This option sets this GPIO channel2 bits in input mode. - - xlnx,all-outputs: - $ref: /schemas/types.yaml#/definitions/uint32 - description: This option sets this GPIO channel1 bits in output mode. - - xlnx,all-outputs-2: - $ref: /schemas/types.yaml#/definitions/uint32 - description: This option sets this GPIO channel2 bits in output mode. - - xlnx,dout-default: - $ref: /schemas/types.yaml#/definitions/uint32 - description: Sets the default value of all the enabled bits of - channel1. - default: 0 - - xlnx,dout-default-2: - $ref: /schemas/types.yaml#/definitions/uint32 - description: Sets the default value of all the enabled bits of - channel2. - default: 0 - - xlnx,gpio-width: - $ref: /schemas/types.yaml#/definitions/uint32 - description: The value defines the bit width of the GPIO channel1. - minimum: 1 - maximum: 32 - default: 32 - - xlnx,gpio2-width: - $ref: /schemas/types.yaml#/definitions/uint32 - description: The value defines the bit width of the GPIO channel2. - minimum: 1 - maximum: 32 - default: 32 - - xlnx,interrupt-present: - $ref: /schemas/types.yaml#/definitions/uint32 - description: This parameter enables interrupt control logic - and interrupt registers in GPIO module. - minimum: 0 - maximum: 1 - default: 0 - - xlnx,is-dual: - $ref: /schemas/types.yaml#/definitions/uint32 - description: This parameter enables a second GPIO channel (GPIO2). - minimum: 0 - maximum: 1 - default: 0 - - xlnx,tri-default: - $ref: /schemas/types.yaml#/definitions/uint32 - description: This value configures the input or output mode - of each bit of GPIO channel1. - - xlnx,tri-default-2: - $ref: /schemas/types.yaml#/definitions/uint32 - description: This value configures the input or output mode - of each bit of GPIO channel2. - -required: - - reg - - compatible - - gpio-controller - - "#gpio-cells" - -unevaluatedProperties: false - -examples: - - | - #include - - gpio@a0020000 { - compatible = "xlnx,xps-gpio-1.00.a"; - reg = <0xa0020000 0x10000>; - #gpio-cells = <2>; - #interrupt-cells = <0x2>; - clocks = <&zynqmp_clk 71>; - gpio-controller; - interrupt-controller; - interrupt-names = "ip2intc_irpt"; - interrupt-parent = <&gic>; - interrupts = <0 89 4>; - xlnx,all-inputs = <0x0>; - xlnx,all-inputs-2 = <0x0>; - xlnx,all-outputs = <0x0>; - xlnx,all-outputs-2 = <0x0>; - xlnx,dout-default = <0x0>; - xlnx,dout-default-2 = <0x0>; - xlnx,gpio-width = <0x20>; - xlnx,gpio2-width = <0x20>; - xlnx,interrupt-present = <0x1>; - xlnx,is-dual = <0x1>; - xlnx,tri-default = <0xFFFFFFFF>; - xlnx,tri-default-2 = <0xFFFFFFFF>; - }; - -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/xlnx,gpio-xilinx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx AXI GPIO controller + +maintainers: + - Neeli Srinivas + +description: + The AXI GPIO design provides a general purpose input/output interface + to an AXI4-Lite interface. The AXI GPIO can be configured as either + a single or a dual-channel device. The width of each channel is + independently configurable. The channels can be configured to + generate an interrupt when a transition on any of their inputs occurs. + +properties: + compatible: + enum: + - xlnx,xps-gpio-1.00.a + + reg: + maxItems: 1 + + "#gpio-cells": + const: 2 + + interrupts: + maxItems: 1 + + gpio-controller: true + + gpio-line-names: + description: strings describing the names of each gpio line + minItems: 1 + maxItems: 64 + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + + clocks: + maxItems: 1 + + interrupt-names: true + + xlnx,all-inputs: + $ref: /schemas/types.yaml#/definitions/uint32 + description: This option sets this GPIO channel1 bits in input mode. + + xlnx,all-inputs-2: + $ref: /schemas/types.yaml#/definitions/uint32 + description: This option sets this GPIO channel2 bits in input mode. + + xlnx,all-outputs: + $ref: /schemas/types.yaml#/definitions/uint32 + description: This option sets this GPIO channel1 bits in output mode. + + xlnx,all-outputs-2: + $ref: /schemas/types.yaml#/definitions/uint32 + description: This option sets this GPIO channel2 bits in output mode. + + xlnx,dout-default: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Sets the default value of all the enabled bits of + channel1. + default: 0 + + xlnx,dout-default-2: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Sets the default value of all the enabled bits of + channel2. + default: 0 + + xlnx,gpio-width: + $ref: /schemas/types.yaml#/definitions/uint32 + description: The value defines the bit width of the GPIO channel1. + minimum: 1 + maximum: 32 + default: 32 + + xlnx,gpio2-width: + $ref: /schemas/types.yaml#/definitions/uint32 + description: The value defines the bit width of the GPIO channel2. + minimum: 1 + maximum: 32 + default: 32 + + xlnx,interrupt-present: + $ref: /schemas/types.yaml#/definitions/uint32 + description: This parameter enables interrupt control logic + and interrupt registers in GPIO module. + minimum: 0 + maximum: 1 + default: 0 + + xlnx,is-dual: + $ref: /schemas/types.yaml#/definitions/uint32 + description: This parameter enables a second GPIO channel (GPIO2). + minimum: 0 + maximum: 1 + default: 0 + + xlnx,tri-default: + $ref: /schemas/types.yaml#/definitions/uint32 + description: This value configures the input or output mode + of each bit of GPIO channel1. + + xlnx,tri-default-2: + $ref: /schemas/types.yaml#/definitions/uint32 + description: This value configures the input or output mode + of each bit of GPIO channel2. + +required: + - reg + - compatible + - gpio-controller + - "#gpio-cells" + +unevaluatedProperties: false + +examples: + - | + #include + + gpio@a0020000 { + compatible = "xlnx,xps-gpio-1.00.a"; + reg = <0xa0020000 0x10000>; + #gpio-cells = <2>; + #interrupt-cells = <0x2>; + clocks = <&zynqmp_clk 71>; + gpio-controller; + interrupt-controller; + interrupt-names = "ip2intc_irpt"; + interrupt-parent = <&gic>; + interrupts = <0 89 4>; + xlnx,all-inputs = <0x0>; + xlnx,all-inputs-2 = <0x0>; + xlnx,all-outputs = <0x0>; + xlnx,all-outputs-2 = <0x0>; + xlnx,dout-default = <0x0>; + xlnx,dout-default-2 = <0x0>; + xlnx,gpio-width = <0x20>; + xlnx,gpio2-width = <0x20>; + xlnx,interrupt-present = <0x1>; + xlnx,is-dual = <0x1>; + xlnx,tri-default = <0xFFFFFFFF>; + xlnx,tri-default-2 = <0xFFFFFFFF>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml index 2139f3ce0..a5b4e0021 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml @@ -1,147 +1,147 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/gpu/arm,mali-valhall-csf.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ARM Mali Valhall GPU - -maintainers: - - Liviu Dudau - - Boris Brezillon - -properties: - $nodename: - pattern: '^gpu@[a-f0-9]+$' - - compatible: - oneOf: - - items: - - enum: - - rockchip,rk3588-mali - - const: arm,mali-valhall-csf # Mali Valhall GPU model/revision is fully discoverable - - reg: - maxItems: 1 - - interrupts: - items: - - description: Job interrupt - - description: MMU interrupt - - description: GPU interrupt - - interrupt-names: - items: - - const: job - - const: mmu - - const: gpu - - clocks: - minItems: 1 - maxItems: 3 - - clock-names: - minItems: 1 - items: - - const: core - - const: coregroup - - const: stacks - - mali-supply: true - - operating-points-v2: true - opp-table: - type: object - - power-domains: - minItems: 1 - maxItems: 5 - - power-domain-names: - minItems: 1 - maxItems: 5 - - sram-supply: true - - "#cooling-cells": - const: 2 - - dynamic-power-coefficient: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - A u32 value that represents the running time dynamic - power coefficient in units of uW/MHz/V^2. The - coefficient can either be calculated from power - measurements or derived by analysis. - - The dynamic power consumption of the GPU is - proportional to the square of the Voltage (V) and - the clock frequency (f). The coefficient is used to - calculate the dynamic power as below - - - Pdyn = dynamic-power-coefficient * V^2 * f - - where voltage is in V, frequency is in MHz. - - dma-coherent: true - -required: - - compatible - - reg - - interrupts - - interrupt-names - - clocks - - mali-supply - -additionalProperties: false - -allOf: - - if: - properties: - compatible: - contains: - const: rockchip,rk3588-mali - then: - properties: - clocks: - minItems: 3 - power-domains: - maxItems: 1 - power-domain-names: false - -examples: - - | - #include - #include - #include - #include - - gpu: gpu@fb000000 { - compatible = "rockchip,rk3588-mali", "arm,mali-valhall-csf"; - reg = <0xfb000000 0x200000>; - interrupts = , - , - ; - interrupt-names = "job", "mmu", "gpu"; - clock-names = "core", "coregroup", "stacks"; - clocks = <&cru CLK_GPU>, <&cru CLK_GPU_COREGROUP>, - <&cru CLK_GPU_STACKS>; - power-domains = <&power RK3588_PD_GPU>; - operating-points-v2 = <&gpu_opp_table>; - mali-supply = <&vdd_gpu_s0>; - sram-supply = <&vdd_gpu_mem_s0>; - - gpu_opp_table: opp-table { - compatible = "operating-points-v2"; - opp-300000000 { - opp-hz = /bits/ 64 <300000000>; - opp-microvolt = <675000 675000 850000>; - }; - opp-400000000 { - opp-hz = /bits/ 64 <400000000>; - opp-microvolt = <675000 675000 850000>; - }; - }; - }; - -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpu/arm,mali-valhall-csf.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARM Mali Valhall GPU + +maintainers: + - Liviu Dudau + - Boris Brezillon + +properties: + $nodename: + pattern: '^gpu@[a-f0-9]+$' + + compatible: + oneOf: + - items: + - enum: + - rockchip,rk3588-mali + - const: arm,mali-valhall-csf # Mali Valhall GPU model/revision is fully discoverable + + reg: + maxItems: 1 + + interrupts: + items: + - description: Job interrupt + - description: MMU interrupt + - description: GPU interrupt + + interrupt-names: + items: + - const: job + - const: mmu + - const: gpu + + clocks: + minItems: 1 + maxItems: 3 + + clock-names: + minItems: 1 + items: + - const: core + - const: coregroup + - const: stacks + + mali-supply: true + + operating-points-v2: true + opp-table: + type: object + + power-domains: + minItems: 1 + maxItems: 5 + + power-domain-names: + minItems: 1 + maxItems: 5 + + sram-supply: true + + "#cooling-cells": + const: 2 + + dynamic-power-coefficient: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + A u32 value that represents the running time dynamic + power coefficient in units of uW/MHz/V^2. The + coefficient can either be calculated from power + measurements or derived by analysis. + + The dynamic power consumption of the GPU is + proportional to the square of the Voltage (V) and + the clock frequency (f). The coefficient is used to + calculate the dynamic power as below - + + Pdyn = dynamic-power-coefficient * V^2 * f + + where voltage is in V, frequency is in MHz. + + dma-coherent: true + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - mali-supply + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + contains: + const: rockchip,rk3588-mali + then: + properties: + clocks: + minItems: 3 + power-domains: + maxItems: 1 + power-domain-names: false + +examples: + - | + #include + #include + #include + #include + + gpu: gpu@fb000000 { + compatible = "rockchip,rk3588-mali", "arm,mali-valhall-csf"; + reg = <0xfb000000 0x200000>; + interrupts = , + , + ; + interrupt-names = "job", "mmu", "gpu"; + clock-names = "core", "coregroup", "stacks"; + clocks = <&cru CLK_GPU>, <&cru CLK_GPU_COREGROUP>, + <&cru CLK_GPU_STACKS>; + power-domains = <&power RK3588_PD_GPU>; + operating-points-v2 = <&gpu_opp_table>; + mali-supply = <&vdd_gpu_s0>; + sram-supply = <&vdd_gpu_mem_s0>; + + gpu_opp_table: opp-table { + compatible = "operating-points-v2"; + opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + opp-microvolt = <675000 675000 850000>; + }; + opp-400000000 { + opp-hz = /bits/ 64 <400000000>; + opp-microvolt = <675000 675000 850000>; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpu/host1x/nvidia,tegra234-nvdec.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpu/host1x/nvidia,tegra234-nvdec.yaml index 6dc4e3650..0b7561c8b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpu/host1x/nvidia,tegra234-nvdec.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpu/host1x/nvidia,tegra234-nvdec.yaml @@ -1,156 +1,156 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/gpu/host1x/nvidia,tegra234-nvdec.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NVIDIA Tegra234 NVDEC - -description: | - NVDEC is the hardware video decoder present on NVIDIA Tegra210 - and newer chips. It is located on the Host1x bus and typically - programmed through Host1x channels. - -maintainers: - - Thierry Reding - - Mikko Perttunen - -properties: - $nodename: - pattern: "^nvdec@[0-9a-f]*$" - - compatible: - enum: - - nvidia,tegra234-nvdec - - reg: - maxItems: 1 - - clocks: - maxItems: 3 - - clock-names: - items: - - const: nvdec - - const: fuse - - const: tsec_pka - - resets: - maxItems: 1 - - reset-names: - items: - - const: nvdec - - power-domains: - maxItems: 1 - - iommus: - maxItems: 1 - - dma-coherent: true - - interconnects: - items: - - description: DMA read memory client - - description: DMA write memory client - - interconnect-names: - items: - - const: dma-mem - - const: write - - nvidia,memory-controller: - $ref: /schemas/types.yaml#/definitions/phandle - description: - phandle to the memory controller for determining information for the NVDEC - firmware secure carveout. This carveout is configured by the bootloader and - not accessible to CPU. - - nvidia,bl-manifest-offset: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Offset to bootloader manifest from beginning of firmware that was configured by - the bootloader. - - nvidia,bl-code-offset: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Offset to bootloader code section from beginning of firmware that was configured by - the bootloader. - - nvidia,bl-data-offset: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Offset to bootloader data section from beginning of firmware that was configured by - the bootloader. - - nvidia,os-manifest-offset: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Offset to operating system manifest from beginning of firmware that was configured by - the bootloader. - - nvidia,os-code-offset: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Offset to operating system code section from beginning of firmware that was configured by - the bootloader. - - nvidia,os-data-offset: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Offset to operating system data section from beginning of firmware that was configured - by the bootloader. - -required: - - compatible - - reg - - clocks - - clock-names - - resets - - reset-names - - power-domains - - nvidia,memory-controller - - nvidia,bl-manifest-offset - - nvidia,bl-code-offset - - nvidia,bl-data-offset - - nvidia,os-manifest-offset - - nvidia,os-code-offset - - nvidia,os-data-offset - -additionalProperties: false - -examples: - - | - #include - #include - #include - #include - - nvdec@15480000 { - compatible = "nvidia,tegra234-nvdec"; - reg = <0x15480000 0x00040000>; - clocks = <&bpmp TEGRA234_CLK_NVDEC>, - <&bpmp TEGRA234_CLK_FUSE>, - <&bpmp TEGRA234_CLK_TSEC_PKA>; - clock-names = "nvdec", "fuse", "tsec_pka"; - resets = <&bpmp TEGRA234_RESET_NVDEC>; - reset-names = "nvdec"; - power-domains = <&bpmp TEGRA234_POWER_DOMAIN_NVDEC>; - interconnects = <&mc TEGRA234_MEMORY_CLIENT_NVDECSRD &emc>, - <&mc TEGRA234_MEMORY_CLIENT_NVDECSWR &emc>; - interconnect-names = "dma-mem", "write"; - iommus = <&smmu_niso1 TEGRA234_SID_NVDEC>; - dma-coherent; - - nvidia,memory-controller = <&mc>; - - /* Placeholder values, to be replaced with values from overlay */ - nvidia,bl-manifest-offset = <0>; - nvidia,bl-data-offset = <0>; - nvidia,bl-code-offset = <0>; - nvidia,os-manifest-offset = <0>; - nvidia,os-data-offset = <0>; - nvidia,os-code-offset = <0>; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpu/host1x/nvidia,tegra234-nvdec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra234 NVDEC + +description: | + NVDEC is the hardware video decoder present on NVIDIA Tegra210 + and newer chips. It is located on the Host1x bus and typically + programmed through Host1x channels. + +maintainers: + - Thierry Reding + - Mikko Perttunen + +properties: + $nodename: + pattern: "^nvdec@[0-9a-f]*$" + + compatible: + enum: + - nvidia,tegra234-nvdec + + reg: + maxItems: 1 + + clocks: + maxItems: 3 + + clock-names: + items: + - const: nvdec + - const: fuse + - const: tsec_pka + + resets: + maxItems: 1 + + reset-names: + items: + - const: nvdec + + power-domains: + maxItems: 1 + + iommus: + maxItems: 1 + + dma-coherent: true + + interconnects: + items: + - description: DMA read memory client + - description: DMA write memory client + + interconnect-names: + items: + - const: dma-mem + - const: write + + nvidia,memory-controller: + $ref: /schemas/types.yaml#/definitions/phandle + description: + phandle to the memory controller for determining information for the NVDEC + firmware secure carveout. This carveout is configured by the bootloader and + not accessible to CPU. + + nvidia,bl-manifest-offset: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Offset to bootloader manifest from beginning of firmware that was configured by + the bootloader. + + nvidia,bl-code-offset: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Offset to bootloader code section from beginning of firmware that was configured by + the bootloader. + + nvidia,bl-data-offset: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Offset to bootloader data section from beginning of firmware that was configured by + the bootloader. + + nvidia,os-manifest-offset: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Offset to operating system manifest from beginning of firmware that was configured by + the bootloader. + + nvidia,os-code-offset: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Offset to operating system code section from beginning of firmware that was configured by + the bootloader. + + nvidia,os-data-offset: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Offset to operating system data section from beginning of firmware that was configured + by the bootloader. + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - reset-names + - power-domains + - nvidia,memory-controller + - nvidia,bl-manifest-offset + - nvidia,bl-code-offset + - nvidia,bl-data-offset + - nvidia,os-manifest-offset + - nvidia,os-code-offset + - nvidia,os-data-offset + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + + nvdec@15480000 { + compatible = "nvidia,tegra234-nvdec"; + reg = <0x15480000 0x00040000>; + clocks = <&bpmp TEGRA234_CLK_NVDEC>, + <&bpmp TEGRA234_CLK_FUSE>, + <&bpmp TEGRA234_CLK_TSEC_PKA>; + clock-names = "nvdec", "fuse", "tsec_pka"; + resets = <&bpmp TEGRA234_RESET_NVDEC>; + reset-names = "nvdec"; + power-domains = <&bpmp TEGRA234_POWER_DOMAIN_NVDEC>; + interconnects = <&mc TEGRA234_MEMORY_CLIENT_NVDECSRD &emc>, + <&mc TEGRA234_MEMORY_CLIENT_NVDECSWR &emc>; + interconnect-names = "dma-mem", "write"; + iommus = <&smmu_niso1 TEGRA234_SID_NVDEC>; + dma-coherent; + + nvidia,memory-controller = <&mc>; + + /* Placeholder values, to be replaced with values from overlay */ + nvidia,bl-manifest-offset = <0>; + nvidia,bl-data-offset = <0>; + nvidia,bl-code-offset = <0>; + nvidia,os-manifest-offset = <0>; + nvidia,os-data-offset = <0>; + nvidia,os-code-offset = <0>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt index 2e19088a0..cc6ce5221 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt @@ -1,115 +1,115 @@ -NVIDIA Tegra Graphics Processing Units - -Required properties: -- compatible: "nvidia," - Currently recognized values: - - nvidia,gk20a - - nvidia,gm20b - - nvidia,gp10b - - nvidia,gv11b -- reg: Physical base address and length of the controller's registers. - Must contain two entries: - - first entry for bar0 - - second entry for bar1 -- interrupts: Must contain an entry for each entry in interrupt-names. - See ../interrupt-controller/interrupts.txt for details. -- interrupt-names: Must include the following entries: - - stall - - nonstall -- vdd-supply: regulator for supply voltage. Only required for GPUs not using - power domains. -- clocks: Must contain an entry for each entry in clock-names. - See ../clocks/clock-bindings.txt for details. -- clock-names: Must include the following entries: - - gpu - - pwr -If the compatible string is "nvidia,gm20b", then the following clock -is also required: - - ref -If the compatible string is "nvidia,gv11b", then the following clock is also -required: - - fuse -- resets: Must contain an entry for each entry in reset-names. - See ../reset/reset.txt for details. -- reset-names: Must include the following entries: - - gpu -- power-domains: GPUs that make use of power domains can define this property - instead of vdd-supply. Currently "nvidia,gp10b" makes use of this. - -Optional properties: -- iommus: A reference to the IOMMU. See ../iommu/iommu.txt for details. - -Example for GK20A: - - gpu@57000000 { - compatible = "nvidia,gk20a"; - reg = <0x0 0x57000000 0x0 0x01000000>, - <0x0 0x58000000 0x0 0x01000000>; - interrupts = , - ; - interrupt-names = "stall", "nonstall"; - vdd-supply = <&vdd_gpu>; - clocks = <&tegra_car TEGRA124_CLK_GPU>, - <&tegra_car TEGRA124_CLK_PLL_P_OUT5>; - clock-names = "gpu", "pwr"; - resets = <&tegra_car 184>; - reset-names = "gpu"; - iommus = <&mc TEGRA_SWGROUP_GPU>; - }; - -Example for GM20B: - - gpu@57000000 { - compatible = "nvidia,gm20b"; - reg = <0x0 0x57000000 0x0 0x01000000>, - <0x0 0x58000000 0x0 0x01000000>; - interrupts = , - ; - interrupt-names = "stall", "nonstall"; - clocks = <&tegra_car TEGRA210_CLK_GPU>, - <&tegra_car TEGRA210_CLK_PLL_P_OUT5>, - <&tegra_car TEGRA210_CLK_PLL_G_REF>; - clock-names = "gpu", "pwr", "ref"; - resets = <&tegra_car 184>; - reset-names = "gpu"; - iommus = <&mc TEGRA_SWGROUP_GPU>; - }; - -Example for GP10B: - - gpu@17000000 { - compatible = "nvidia,gp10b"; - reg = <0x0 0x17000000 0x0 0x1000000>, - <0x0 0x18000000 0x0 0x1000000>; - interrupts = ; - interrupt-names = "stall", "nonstall"; - clocks = <&bpmp TEGRA186_CLK_GPCCLK>, - <&bpmp TEGRA186_CLK_GPU>; - clock-names = "gpu", "pwr"; - resets = <&bpmp TEGRA186_RESET_GPU>; - reset-names = "gpu"; - power-domains = <&bpmp TEGRA186_POWER_DOMAIN_GPU>; - iommus = <&smmu TEGRA186_SID_GPU>; - }; - -Example for GV11B: - - gpu@17000000 { - compatible = "nvidia,gv11b"; - reg = <0x17000000 0x1000000>, - <0x18000000 0x1000000>; - interrupts = , - ; - interrupt-names = "stall", "nonstall"; - clocks = <&bpmp TEGRA194_CLK_GPCCLK>, - <&bpmp TEGRA194_CLK_GPU_PWR>, - <&bpmp TEGRA194_CLK_FUSE>; - clock-names = "gpu", "pwr", "fuse"; - resets = <&bpmp TEGRA194_RESET_GPU>; - reset-names = "gpu"; - dma-coherent; - - power-domains = <&bpmp TEGRA194_POWER_DOMAIN_GPU>; - iommus = <&smmu TEGRA194_SID_GPU>; - }; +NVIDIA Tegra Graphics Processing Units + +Required properties: +- compatible: "nvidia," + Currently recognized values: + - nvidia,gk20a + - nvidia,gm20b + - nvidia,gp10b + - nvidia,gv11b +- reg: Physical base address and length of the controller's registers. + Must contain two entries: + - first entry for bar0 + - second entry for bar1 +- interrupts: Must contain an entry for each entry in interrupt-names. + See ../interrupt-controller/interrupts.txt for details. +- interrupt-names: Must include the following entries: + - stall + - nonstall +- vdd-supply: regulator for supply voltage. Only required for GPUs not using + power domains. +- clocks: Must contain an entry for each entry in clock-names. + See ../clocks/clock-bindings.txt for details. +- clock-names: Must include the following entries: + - gpu + - pwr +If the compatible string is "nvidia,gm20b", then the following clock +is also required: + - ref +If the compatible string is "nvidia,gv11b", then the following clock is also +required: + - fuse +- resets: Must contain an entry for each entry in reset-names. + See ../reset/reset.txt for details. +- reset-names: Must include the following entries: + - gpu +- power-domains: GPUs that make use of power domains can define this property + instead of vdd-supply. Currently "nvidia,gp10b" makes use of this. + +Optional properties: +- iommus: A reference to the IOMMU. See ../iommu/iommu.txt for details. + +Example for GK20A: + + gpu@57000000 { + compatible = "nvidia,gk20a"; + reg = <0x0 0x57000000 0x0 0x01000000>, + <0x0 0x58000000 0x0 0x01000000>; + interrupts = , + ; + interrupt-names = "stall", "nonstall"; + vdd-supply = <&vdd_gpu>; + clocks = <&tegra_car TEGRA124_CLK_GPU>, + <&tegra_car TEGRA124_CLK_PLL_P_OUT5>; + clock-names = "gpu", "pwr"; + resets = <&tegra_car 184>; + reset-names = "gpu"; + iommus = <&mc TEGRA_SWGROUP_GPU>; + }; + +Example for GM20B: + + gpu@57000000 { + compatible = "nvidia,gm20b"; + reg = <0x0 0x57000000 0x0 0x01000000>, + <0x0 0x58000000 0x0 0x01000000>; + interrupts = , + ; + interrupt-names = "stall", "nonstall"; + clocks = <&tegra_car TEGRA210_CLK_GPU>, + <&tegra_car TEGRA210_CLK_PLL_P_OUT5>, + <&tegra_car TEGRA210_CLK_PLL_G_REF>; + clock-names = "gpu", "pwr", "ref"; + resets = <&tegra_car 184>; + reset-names = "gpu"; + iommus = <&mc TEGRA_SWGROUP_GPU>; + }; + +Example for GP10B: + + gpu@17000000 { + compatible = "nvidia,gp10b"; + reg = <0x0 0x17000000 0x0 0x1000000>, + <0x0 0x18000000 0x0 0x1000000>; + interrupts = ; + interrupt-names = "stall", "nonstall"; + clocks = <&bpmp TEGRA186_CLK_GPCCLK>, + <&bpmp TEGRA186_CLK_GPU>; + clock-names = "gpu", "pwr"; + resets = <&bpmp TEGRA186_RESET_GPU>; + reset-names = "gpu"; + power-domains = <&bpmp TEGRA186_POWER_DOMAIN_GPU>; + iommus = <&smmu TEGRA186_SID_GPU>; + }; + +Example for GV11B: + + gpu@17000000 { + compatible = "nvidia,gv11b"; + reg = <0x17000000 0x1000000>, + <0x18000000 0x1000000>; + interrupts = , + ; + interrupt-names = "stall", "nonstall"; + clocks = <&bpmp TEGRA194_CLK_GPCCLK>, + <&bpmp TEGRA194_CLK_GPU_PWR>, + <&bpmp TEGRA194_CLK_FUSE>; + clock-names = "gpu", "pwr", "fuse"; + resets = <&bpmp TEGRA194_RESET_GPU>; + reset-names = "gpu"; + dma-coherent; + + power-domains = <&bpmp TEGRA194_POWER_DOMAIN_GPU>; + iommus = <&smmu TEGRA194_SID_GPU>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/hwmon/adt7475.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/hwmon/adt7475.yaml index 72b78c02c..79e8d62fa 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/hwmon/adt7475.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/hwmon/adt7475.yaml @@ -1,138 +1,138 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/hwmon/adt7475.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ADT7475 hwmon sensor - -maintainers: - - Jean Delvare - -description: | - The ADT7473, ADT7475, ADT7476, and ADT7490 are thermal monitors and multiple - PWN fan controllers. - - They support monitoring and controlling up to four fans (the ADT7490 can only - control up to three). They support reading a single on chip temperature - sensor and two off chip temperature sensors (the ADT7490 additionally - supports measuring up to three current external temperature sensors with - series resistance cancellation (SRC)). - - Datasheets: - https://www.onsemi.com/pub/Collateral/ADT7473-D.PDF - https://www.onsemi.com/pub/Collateral/ADT7475-D.PDF - https://www.onsemi.com/pub/Collateral/ADT7476-D.PDF - https://www.onsemi.com/pub/Collateral/ADT7490-D.PDF - - Description taken from onsemiconductors specification sheets, with minor - rephrasing. - -properties: - compatible: - enum: - - adi,adt7473 - - adi,adt7475 - - adi,adt7476 - - adi,adt7490 - - reg: - maxItems: 1 - - adi,pwm-active-state: - description: | - Integer array, represents the active state of the pwm outputs If set to 0 - the pwm uses a logic low output for 100% duty cycle. If set to 1 the pwm - uses a logic high output for 100% duty cycle. - $ref: /schemas/types.yaml#/definitions/uint32-array - deprecated: true - minItems: 3 - maxItems: 3 - items: - enum: [0, 1] - default: 1 - - "#pwm-cells": - const: 4 - description: | - Number of cells in a PWM specifier. - - 0: The PWM channel - - 1: The PWM period in nanoseconds - - 90909091 (11 Hz) - - 71428571 (14 Hz) - - 45454545 (22 Hz) - - 34482759 (29 Hz) - - 28571429 (35 Hz) - - 22727273 (44 Hz) - - 17241379 (58 Hz) - - 11363636 (88 Hz) - - 44444 (22 kHz) - - 2: PWM flags 0 or PWM_POLARITY_INVERTED - - 3: The default PWM duty cycle in nanoseconds - -patternProperties: - "^adi,bypass-attenuator-in[0-4]$": - description: | - Configures bypassing the individual voltage input attenuator. If - set to 1 the attenuator is bypassed if set to 0 the attenuator is - not bypassed. If the property is absent then the attenuator - retains its configuration from the bios/bootloader. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1] - - "^adi,pin(5|10)-function$": - description: | - Configures the function for pin 5 on the adi,adt7473 and adi,adt7475. Or - pin 10 on the adi,adt7476 and adi,adt7490. - $ref: /schemas/types.yaml#/definitions/string - enum: - - pwm2 - - smbalert# - - "^adi,pin(9|14)-function$": - description: | - Configures the function for pin 9 on the adi,adt7473 and adi,adt7475. Or - pin 14 on the adi,adt7476 and adi,adt7490 - $ref: /schemas/types.yaml#/definitions/string - enum: - - tach4 - - therm# - - smbalert# - - gpio - - "^fan-[0-9]+$": - $ref: fan-common.yaml# - unevaluatedProperties: false - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - pwm: hwmon@2e { - compatible = "adi,adt7476"; - reg = <0x2e>; - adi,bypass-attenuator-in0 = <1>; - adi,bypass-attenuator-in1 = <0>; - adi,pin10-function = "smbalert#"; - adi,pin14-function = "tach4"; - #pwm-cells = <4>; - - /* PWMs at 22.5 kHz frequency, 50% duty*/ - fan-0 { - pwms = <&pwm 0 44444 0 22222>; - }; - - fan-1 { - pwms = <&pwm 2 44444 0 22222>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/adt7475.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ADT7475 hwmon sensor + +maintainers: + - Jean Delvare + +description: | + The ADT7473, ADT7475, ADT7476, and ADT7490 are thermal monitors and multiple + PWN fan controllers. + + They support monitoring and controlling up to four fans (the ADT7490 can only + control up to three). They support reading a single on chip temperature + sensor and two off chip temperature sensors (the ADT7490 additionally + supports measuring up to three current external temperature sensors with + series resistance cancellation (SRC)). + + Datasheets: + https://www.onsemi.com/pub/Collateral/ADT7473-D.PDF + https://www.onsemi.com/pub/Collateral/ADT7475-D.PDF + https://www.onsemi.com/pub/Collateral/ADT7476-D.PDF + https://www.onsemi.com/pub/Collateral/ADT7490-D.PDF + + Description taken from onsemiconductors specification sheets, with minor + rephrasing. + +properties: + compatible: + enum: + - adi,adt7473 + - adi,adt7475 + - adi,adt7476 + - adi,adt7490 + + reg: + maxItems: 1 + + adi,pwm-active-state: + description: | + Integer array, represents the active state of the pwm outputs If set to 0 + the pwm uses a logic low output for 100% duty cycle. If set to 1 the pwm + uses a logic high output for 100% duty cycle. + $ref: /schemas/types.yaml#/definitions/uint32-array + deprecated: true + minItems: 3 + maxItems: 3 + items: + enum: [0, 1] + default: 1 + + "#pwm-cells": + const: 4 + description: | + Number of cells in a PWM specifier. + - 0: The PWM channel + - 1: The PWM period in nanoseconds + - 90909091 (11 Hz) + - 71428571 (14 Hz) + - 45454545 (22 Hz) + - 34482759 (29 Hz) + - 28571429 (35 Hz) + - 22727273 (44 Hz) + - 17241379 (58 Hz) + - 11363636 (88 Hz) + - 44444 (22 kHz) + - 2: PWM flags 0 or PWM_POLARITY_INVERTED + - 3: The default PWM duty cycle in nanoseconds + +patternProperties: + "^adi,bypass-attenuator-in[0-4]$": + description: | + Configures bypassing the individual voltage input attenuator. If + set to 1 the attenuator is bypassed if set to 0 the attenuator is + not bypassed. If the property is absent then the attenuator + retains its configuration from the bios/bootloader. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + + "^adi,pin(5|10)-function$": + description: | + Configures the function for pin 5 on the adi,adt7473 and adi,adt7475. Or + pin 10 on the adi,adt7476 and adi,adt7490. + $ref: /schemas/types.yaml#/definitions/string + enum: + - pwm2 + - smbalert# + + "^adi,pin(9|14)-function$": + description: | + Configures the function for pin 9 on the adi,adt7473 and adi,adt7475. Or + pin 14 on the adi,adt7476 and adi,adt7490 + $ref: /schemas/types.yaml#/definitions/string + enum: + - tach4 + - therm# + - smbalert# + - gpio + + "^fan-[0-9]+$": + $ref: fan-common.yaml# + unevaluatedProperties: false + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pwm: hwmon@2e { + compatible = "adi,adt7476"; + reg = <0x2e>; + adi,bypass-attenuator-in0 = <1>; + adi,bypass-attenuator-in1 = <0>; + adi,pin10-function = "smbalert#"; + adi,pin14-function = "tach4"; + #pwm-cells = <4>; + + /* PWMs at 22.5 kHz frequency, 50% duty*/ + fan-0 { + pwms = <&pwm 0 44444 0 22222>; + }; + + fan-1 { + pwms = <&pwm 2 44444 0 22222>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/hwmon/baikal,bt1-pvt.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/hwmon/baikal,bt1-pvt.yaml index 6da49ec20..5d3ce641f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/hwmon/baikal,bt1-pvt.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/hwmon/baikal,bt1-pvt.yaml @@ -1,105 +1,105 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (C) 2020 BAIKAL ELECTRONICS, JSC -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/hwmon/baikal,bt1-pvt.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Baikal-T1 PVT Sensor - -maintainers: - - Serge Semin - -description: | - Baikal-T1 SoC provides an embedded process, voltage and temperature - sensor to monitor an internal SoC environment (chip temperature, supply - voltage and process monitor) and on time detect critical situations, - which may cause the system instability and even damages. The IP-block - is based on the Analog Bits PVT sensor, but is equipped with a dedicated - control wrapper, which provides a MMIO registers-based access to the - sensor core functionality (APB3-bus based) and exposes an additional - functions like thresholds/data ready interrupts, its status and masks, - measurements timeout. Its internal structure is depicted on the next - diagram: - - Analog Bits core Bakal-T1 PVT control block - +--------------------+ +------------------------+ - | Temperature sensor |-+ +------| Sensors control | - |--------------------| |<---En---| |------------------------| - | Voltage sensor |-|<--Mode--| +--->| Sampled data | - |--------------------| |<--Trim--+ | |------------------------| - | Low-Vt sensor |-| | +--| Thresholds comparator | - |--------------------| |---Data----| | |------------------------| - | High-Vt sensor |-| | +->| Interrupts status | - |--------------------| |--Valid--+-+ | |------------------------| - | Standard-Vt sensor |-+ +---+--| Interrupts mask | - +--------------------+ |------------------------| - ^ | Interrupts timeout | - | +------------------------+ - | ^ ^ - Rclk-----+----------------------------------------+ | - APB3-------------------------------------------------+ - - This bindings describes the external Baikal-T1 PVT control interfaces - like MMIO registers space, interrupt request number and clocks source. - These are then used by the corresponding hwmon device driver to - implement the sysfs files-based access to the sensors functionality. - -properties: - compatible: - const: baikal,bt1-pvt - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - items: - - description: PVT reference clock - - description: APB3 interface clock - - clock-names: - items: - - const: ref - - const: pclk - - "#thermal-sensor-cells": - description: Baikal-T1 can be referenced as the CPU thermal-sensor - const: 0 - - baikal,pvt-temp-offset-millicelsius: - description: | - Temperature sensor trimming factor. It can be used to manually adjust the - temperature measurements within 7.130 degrees Celsius. - default: 0 - minimum: 0 - maximum: 7130 - -additionalProperties: false - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - -examples: - - | - #include - - pvt@1f200000 { - compatible = "baikal,bt1-pvt"; - reg = <0x1f200000 0x1000>; - #thermal-sensor-cells = <0>; - - interrupts = ; - - baikal,pvt-temp-offset-millicelsius = <1000>; - - clocks = <&ccu_sys>, <&ccu_sys>; - clock-names = "ref", "pclk"; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2020 BAIKAL ELECTRONICS, JSC +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/baikal,bt1-pvt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Baikal-T1 PVT Sensor + +maintainers: + - Serge Semin + +description: | + Baikal-T1 SoC provides an embedded process, voltage and temperature + sensor to monitor an internal SoC environment (chip temperature, supply + voltage and process monitor) and on time detect critical situations, + which may cause the system instability and even damages. The IP-block + is based on the Analog Bits PVT sensor, but is equipped with a dedicated + control wrapper, which provides a MMIO registers-based access to the + sensor core functionality (APB3-bus based) and exposes an additional + functions like thresholds/data ready interrupts, its status and masks, + measurements timeout. Its internal structure is depicted on the next + diagram: + + Analog Bits core Bakal-T1 PVT control block + +--------------------+ +------------------------+ + | Temperature sensor |-+ +------| Sensors control | + |--------------------| |<---En---| |------------------------| + | Voltage sensor |-|<--Mode--| +--->| Sampled data | + |--------------------| |<--Trim--+ | |------------------------| + | Low-Vt sensor |-| | +--| Thresholds comparator | + |--------------------| |---Data----| | |------------------------| + | High-Vt sensor |-| | +->| Interrupts status | + |--------------------| |--Valid--+-+ | |------------------------| + | Standard-Vt sensor |-+ +---+--| Interrupts mask | + +--------------------+ |------------------------| + ^ | Interrupts timeout | + | +------------------------+ + | ^ ^ + Rclk-----+----------------------------------------+ | + APB3-------------------------------------------------+ + + This bindings describes the external Baikal-T1 PVT control interfaces + like MMIO registers space, interrupt request number and clocks source. + These are then used by the corresponding hwmon device driver to + implement the sysfs files-based access to the sensors functionality. + +properties: + compatible: + const: baikal,bt1-pvt + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: PVT reference clock + - description: APB3 interface clock + + clock-names: + items: + - const: ref + - const: pclk + + "#thermal-sensor-cells": + description: Baikal-T1 can be referenced as the CPU thermal-sensor + const: 0 + + baikal,pvt-temp-offset-millicelsius: + description: | + Temperature sensor trimming factor. It can be used to manually adjust the + temperature measurements within 7.130 degrees Celsius. + default: 0 + minimum: 0 + maximum: 7130 + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +examples: + - | + #include + + pvt@1f200000 { + compatible = "baikal,bt1-pvt"; + reg = <0x1f200000 0x1000>; + #thermal-sensor-cells = <0>; + + interrupts = ; + + baikal,pvt-temp-offset-millicelsius = <1000>; + + clocks = <&ccu_sys>, <&ccu_sys>; + clock-names = "ref", "pclk"; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml index 2184a5231..cd8dcd797 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml @@ -1,145 +1,145 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- - -$id: http://devicetree.org/schemas/hwmon/nuvoton,nct7802.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Nuvoton NCT7802Y Hardware Monitoring IC - -maintainers: - - Guenter Roeck - -description: | - The NCT7802Y is a hardware monitor IC which supports one on-die and up to - 5 remote temperature sensors with SMBus interface. - - Datasheets: - https://www.nuvoton.com/export/resource-files/Nuvoton_NCT7802Y_Datasheet_V12.pdf - -additionalProperties: false - -properties: - compatible: - enum: - - nuvoton,nct7802 - - reg: - maxItems: 1 - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - -patternProperties: - "^channel@[0-3]$": - type: object - - additionalProperties: false - - properties: - reg: - items: - - enum: - - 0 # Local Temperature Sensor ("LTD") - - 1 # Remote Temperature Sensor or Voltage Sensor 1 ("RTD1") - - 2 # Remote Temperature Sensor or Voltage Sensor 2 ("RTD2") - - 3 # Remote Temperature Sensor or Voltage Sensor 3 ("RTD3") - - sensor-type: - items: - - enum: - - temperature - - voltage - - temperature-mode: - items: - - enum: - - thermistor - - thermal-diode - - required: - - reg - - allOf: - # For channels RTD1, RTD2 and RTD3, require sensor-type to be set. - # Otherwise (for all other channels), do not allow temperature-mode to be - # set. - - if: - properties: - reg: - items: - - enum: - - 1 - - 2 - - 3 - then: - required: - - sensor-type - else: - not: - required: - - sensor-type - - # For channels RTD1 and RTD2 and if sensor-type is "temperature", require - # temperature-mode to be set. Otherwise (for all other channels or - # sensor-type settings), do not allow temperature-mode to be set - - if: - properties: - reg: - items: - - enum: - - 1 - - 2 - sensor-type: - items: - - enum: - - temperature - then: - required: - - temperature-mode - else: - not: - required: - - temperature-mode - -required: - - compatible - - reg - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - nct7802@28 { - compatible = "nuvoton,nct7802"; - reg = <0x28>; - - #address-cells = <1>; - #size-cells = <0>; - - channel@0 { /* LTD */ - reg = <0>; - }; - - channel@1 { /* RTD1 */ - reg = <1>; - sensor-type = "voltage"; - }; - - channel@2 { /* RTD2 */ - reg = <2>; - sensor-type = "temperature"; - temperature-mode = "thermal-diode"; - }; - - channel@3 { /* RTD3 */ - reg = <3>; - sensor-type = "temperature"; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- + +$id: http://devicetree.org/schemas/hwmon/nuvoton,nct7802.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton NCT7802Y Hardware Monitoring IC + +maintainers: + - Guenter Roeck + +description: | + The NCT7802Y is a hardware monitor IC which supports one on-die and up to + 5 remote temperature sensors with SMBus interface. + + Datasheets: + https://www.nuvoton.com/export/resource-files/Nuvoton_NCT7802Y_Datasheet_V12.pdf + +additionalProperties: false + +properties: + compatible: + enum: + - nuvoton,nct7802 + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^channel@[0-3]$": + type: object + + additionalProperties: false + + properties: + reg: + items: + - enum: + - 0 # Local Temperature Sensor ("LTD") + - 1 # Remote Temperature Sensor or Voltage Sensor 1 ("RTD1") + - 2 # Remote Temperature Sensor or Voltage Sensor 2 ("RTD2") + - 3 # Remote Temperature Sensor or Voltage Sensor 3 ("RTD3") + + sensor-type: + items: + - enum: + - temperature + - voltage + + temperature-mode: + items: + - enum: + - thermistor + - thermal-diode + + required: + - reg + + allOf: + # For channels RTD1, RTD2 and RTD3, require sensor-type to be set. + # Otherwise (for all other channels), do not allow temperature-mode to be + # set. + - if: + properties: + reg: + items: + - enum: + - 1 + - 2 + - 3 + then: + required: + - sensor-type + else: + not: + required: + - sensor-type + + # For channels RTD1 and RTD2 and if sensor-type is "temperature", require + # temperature-mode to be set. Otherwise (for all other channels or + # sensor-type settings), do not allow temperature-mode to be set + - if: + properties: + reg: + items: + - enum: + - 1 + - 2 + sensor-type: + items: + - enum: + - temperature + then: + required: + - temperature-mode + else: + not: + required: + - temperature-mode + +required: + - compatible + - reg + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + nct7802@28 { + compatible = "nuvoton,nct7802"; + reg = <0x28>; + + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { /* LTD */ + reg = <0>; + }; + + channel@1 { /* RTD1 */ + reg = <1>; + sensor-type = "voltage"; + }; + + channel@2 { /* RTD2 */ + reg = <2>; + sensor-type = "temperature"; + temperature-mode = "thermal-diode"; + }; + + channel@3 { /* RTD3 */ + reg = <3>; + sensor-type = "temperature"; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/hwmon/ti,ina3221.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/hwmon/ti,ina3221.yaml index a2de582d6..5f10f1207 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/hwmon/ti,ina3221.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/hwmon/ti,ina3221.yaml @@ -1,121 +1,121 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/hwmon/ti,ina3221.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Texas Instruments INA3221 Current and Voltage Monitor - -maintainers: - - Jean Delvare - - Guenter Roeck - -properties: - compatible: - const: ti,ina3221 - - reg: - maxItems: 1 - - ti,single-shot: - description: | - This chip has two power modes: single-shot (chip takes one measurement - and then shuts itself down) and continuous (chip takes continuous - measurements). The continuous mode is more reliable and suitable for - hardware monitor type device, but the single-shot mode is more power- - friendly and useful for battery-powered device which cares power - consumptions while still needs some measurements occasionally. - - If this property is present, the single-shot mode will be used, instead - of the default continuous one for monitoring. - $ref: /schemas/types.yaml#/definitions/flag - - "#address-cells": - description: Required only if a child node is present. - const: 1 - - "#size-cells": - description: Required only if a child node is present. - const: 0 - -patternProperties: - "^input@[0-2]$": - description: The node contains optional child nodes for three channels. - Each child node describes the information of input source. Input channels - default to enabled in the chip. Unless channels are explicitly disabled - in device-tree, input channels will be enabled. - type: object - additionalProperties: false - properties: - reg: - description: Must be 0, 1 and 2, corresponding to the IN1, IN2 or IN3 - ports of the INA3221, respectively. - enum: [ 0, 1, 2 ] - - label: - description: name of the input source - - shunt-resistor-micro-ohms: - description: shunt resistor value in micro-Ohm - - ti,summation-disable: - description: | - The INA3221 has a critical alert pin that can be controlled by the - summation control function. This function adds the single - shunt-voltage conversions for the desired channels in order to - compare the combined sum to the programmed limit. The Shunt-Voltage - Sum Limit register contains the programmed value that is compared - to the value in the Shunt-Voltage Sum register in order to - determine if the total summed limit is exceeded. If the - shunt-voltage sum limit value is exceeded, the critical alert pin - is asserted. - - For the summation limit to have a meaningful value, it is necessary - to use the same shunt-resistor value on all enabled channels. If - this is not the case or if a channel should not be used for - triggering the critical alert pin, then this property can be used - exclude specific channels from the summation control function. - type: boolean - - required: - - reg - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - power-sensor@40 { - compatible = "ti,ina3221"; - reg = <0x40>; - #address-cells = <1>; - #size-cells = <0>; - - input@0 { - reg = <0x0>; - /* - * Input channels are enabled by default in the device and so - * to disable, must be explicitly disabled in device-tree. - */ - status = "disabled"; - }; - - input@1 { - reg = <0x1>; - shunt-resistor-micro-ohms = <5000>; - }; - - input@2 { - reg = <0x2>; - label = "VDD_5V"; - shunt-resistor-micro-ohms = <5000>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/ti,ina3221.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments INA3221 Current and Voltage Monitor + +maintainers: + - Jean Delvare + - Guenter Roeck + +properties: + compatible: + const: ti,ina3221 + + reg: + maxItems: 1 + + ti,single-shot: + description: | + This chip has two power modes: single-shot (chip takes one measurement + and then shuts itself down) and continuous (chip takes continuous + measurements). The continuous mode is more reliable and suitable for + hardware monitor type device, but the single-shot mode is more power- + friendly and useful for battery-powered device which cares power + consumptions while still needs some measurements occasionally. + + If this property is present, the single-shot mode will be used, instead + of the default continuous one for monitoring. + $ref: /schemas/types.yaml#/definitions/flag + + "#address-cells": + description: Required only if a child node is present. + const: 1 + + "#size-cells": + description: Required only if a child node is present. + const: 0 + +patternProperties: + "^input@[0-2]$": + description: The node contains optional child nodes for three channels. + Each child node describes the information of input source. Input channels + default to enabled in the chip. Unless channels are explicitly disabled + in device-tree, input channels will be enabled. + type: object + additionalProperties: false + properties: + reg: + description: Must be 0, 1 and 2, corresponding to the IN1, IN2 or IN3 + ports of the INA3221, respectively. + enum: [ 0, 1, 2 ] + + label: + description: name of the input source + + shunt-resistor-micro-ohms: + description: shunt resistor value in micro-Ohm + + ti,summation-disable: + description: | + The INA3221 has a critical alert pin that can be controlled by the + summation control function. This function adds the single + shunt-voltage conversions for the desired channels in order to + compare the combined sum to the programmed limit. The Shunt-Voltage + Sum Limit register contains the programmed value that is compared + to the value in the Shunt-Voltage Sum register in order to + determine if the total summed limit is exceeded. If the + shunt-voltage sum limit value is exceeded, the critical alert pin + is asserted. + + For the summation limit to have a meaningful value, it is necessary + to use the same shunt-resistor value on all enabled channels. If + this is not the case or if a channel should not be used for + triggering the critical alert pin, then this property can be used + exclude specific channels from the summation control function. + type: boolean + + required: + - reg + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + power-sensor@40 { + compatible = "ti,ina3221"; + reg = <0x40>; + #address-cells = <1>; + #size-cells = <0>; + + input@0 { + reg = <0x0>; + /* + * Input channels are enabled by default in the device and so + * to disable, must be explicitly disabled in device-tree. + */ + status = "disabled"; + }; + + input@1 { + reg = <0x1>; + shunt-resistor-micro-ohms = <5000>; + }; + + input@2 { + reg = <0x2>; + label = "VDD_5V"; + shunt-resistor-micro-ohms = <5000>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml index c35f02d86..e61cdb5b1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/atmel,at91sam-i2c.yaml @@ -1,142 +1,142 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/i2c/atmel,at91sam-i2c.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: I2C for Atmel/Microchip platforms - -maintainers: - - Alexandre Belloni - -properties: - compatible: - oneOf: - - items: - - enum: - - atmel,at91rm9200-i2c - - atmel,at91sam9261-i2c - - atmel,at91sam9260-i2c - - atmel,at91sam9g20-i2c - - atmel,at91sam9g10-i2c - - atmel,at91sam9x5-i2c - - atmel,sama5d4-i2c - - atmel,sama5d2-i2c - - microchip,sam9x60-i2c - - items: - - enum: - - microchip,sama7d65-i2c - - microchip,sama7g5-i2c - - microchip,sam9x7-i2c - - const: microchip,sam9x60-i2c - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - maxItems: 1 - - clock-frequency: - default: 100000 - - dmas: - items: - - description: TX DMA Channel Specifier - - description: RX DMA Channel Specifier - - dma-names: - items: - - const: tx - - const: rx - - atmel,fifo-size: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Maximum number of data the RX and TX FIFOs can store for - FIFO capable I2C controllers. - - scl-gpios: true - - sda-gpios: true - -required: - - compatible - - reg - - interrupts - - clocks - -allOf: - - $ref: /schemas/i2c/i2c-controller.yaml# - - if: - properties: - compatible: - contains: - enum: - - atmel,sama5d4-i2c - - atmel,sama5d2-i2c - - microchip,sam9x60-i2c - - microchip,sama7d65-i2c - - microchip,sama7g5-i2c - then: - properties: - i2c-sda-hold-time-ns: - description: - TWD hold time - maxItems: 1 - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - - i2c0: i2c@fff84000 { - compatible = "atmel,at91sam9g20-i2c"; - reg = <0xfff84000 0x100>; - interrupts = <12 IRQ_TYPE_LEVEL_HIGH 6>; - #address-cells = <1>; - #size-cells = <0>; - clocks = <&twi0_clk>; - clock-frequency = <400000>; - - eeprom@50 { - compatible = "atmel,24c512"; - reg = <0x50>; - pagesize = <128>; - }; - }; - - i2c1: i2c@f8034600 { - compatible = "atmel,sama5d2-i2c"; - reg = <0xf8034600 0x100>; - interrupts = <19 IRQ_TYPE_LEVEL_HIGH 7>; - dmas = <&dma0 - (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)) - AT91_XDMAC_DT_PERID(11)>, - <&dma0 - (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)) - AT91_XDMAC_DT_PERID(12)>; - dma-names = "tx", "rx"; - #address-cells = <1>; - #size-cells = <0>; - clocks = <&flx0>; - atmel,fifo-size = <16>; - i2c-sda-hold-time-ns = <336>; - pinctrl-names = "default", "gpio"; - pinctrl-0 = <&pinctrl_i2c0>; - pinctrl-1 = <&pinctrl_i2c0_gpio>; - sda-gpios = <&pioA 30 GPIO_ACTIVE_HIGH>; - scl-gpios = <&pioA 31 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; - - eeprom@54 { - compatible = "atmel,24c02"; - reg = <0x54>; - pagesize = <16>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/atmel,at91sam-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: I2C for Atmel/Microchip platforms + +maintainers: + - Alexandre Belloni + +properties: + compatible: + oneOf: + - items: + - enum: + - atmel,at91rm9200-i2c + - atmel,at91sam9261-i2c + - atmel,at91sam9260-i2c + - atmel,at91sam9g20-i2c + - atmel,at91sam9g10-i2c + - atmel,at91sam9x5-i2c + - atmel,sama5d4-i2c + - atmel,sama5d2-i2c + - microchip,sam9x60-i2c + - items: + - enum: + - microchip,sama7d65-i2c + - microchip,sama7g5-i2c + - microchip,sam9x7-i2c + - const: microchip,sam9x60-i2c + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-frequency: + default: 100000 + + dmas: + items: + - description: TX DMA Channel Specifier + - description: RX DMA Channel Specifier + + dma-names: + items: + - const: tx + - const: rx + + atmel,fifo-size: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Maximum number of data the RX and TX FIFOs can store for + FIFO capable I2C controllers. + + scl-gpios: true + + sda-gpios: true + +required: + - compatible + - reg + - interrupts + - clocks + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + - if: + properties: + compatible: + contains: + enum: + - atmel,sama5d4-i2c + - atmel,sama5d2-i2c + - microchip,sam9x60-i2c + - microchip,sama7d65-i2c + - microchip,sama7g5-i2c + then: + properties: + i2c-sda-hold-time-ns: + description: + TWD hold time + maxItems: 1 + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + i2c0: i2c@fff84000 { + compatible = "atmel,at91sam9g20-i2c"; + reg = <0xfff84000 0x100>; + interrupts = <12 IRQ_TYPE_LEVEL_HIGH 6>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&twi0_clk>; + clock-frequency = <400000>; + + eeprom@50 { + compatible = "atmel,24c512"; + reg = <0x50>; + pagesize = <128>; + }; + }; + + i2c1: i2c@f8034600 { + compatible = "atmel,sama5d2-i2c"; + reg = <0xf8034600 0x100>; + interrupts = <19 IRQ_TYPE_LEVEL_HIGH 7>; + dmas = <&dma0 + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)) + AT91_XDMAC_DT_PERID(11)>, + <&dma0 + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)) + AT91_XDMAC_DT_PERID(12)>; + dma-names = "tx", "rx"; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&flx0>; + atmel,fifo-size = <16>; + i2c-sda-hold-time-ns = <336>; + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&pinctrl_i2c0>; + pinctrl-1 = <&pinctrl_i2c0_gpio>; + sda-gpios = <&pioA 30 GPIO_ACTIVE_HIGH>; + scl-gpios = <&pioA 31 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + + eeprom@54 { + compatible = "atmel,24c02"; + reg = <0x54>; + pagesize = <16>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-arb-gpio-challenge.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-arb-gpio-challenge.yaml index 00d31ac60..b618b5a34 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-arb-gpio-challenge.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-arb-gpio-challenge.yaml @@ -1,135 +1,135 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/i2c/i2c-arb-gpio-challenge.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: GPIO-based I2C Arbitration Using a Challenge & Response Mechanism - -maintainers: - - Doug Anderson - - Peter Rosin - -description: | - This uses GPIO lines and a challenge & response mechanism to arbitrate who is - the master of an I2C bus in a multimaster situation. - - In many cases using GPIOs to arbitrate is not needed and a design can use the - standard I2C multi-master rules. Using GPIOs is generally useful in the case - where there is a device on the bus that has errata and/or bugs that makes - standard multimaster mode not feasible. - - Note that this scheme works well enough but has some downsides: - * It is nonstandard (not using standard I2C multimaster) - * Having two masters on a bus in general makes it relatively hard to debug - problems (hard to tell if i2c issues were caused by one master, another, - or some device on the bus). - - Algorithm: - All masters on the bus have a 'bus claim' line which is an output that the - others can see. These are all active low with pull-ups enabled. We'll - describe these lines as: - * OUR_CLAIM: output from us signaling to other hosts that we want the bus - * THEIR_CLAIMS: output from others signaling that they want the bus - - The basic algorithm is to assert your line when you want the bus, then make - sure that the other side doesn't want it also. A detailed explanation is - best done with an example. - - Let's say we want to claim the bus. We: - 1. Assert OUR_CLAIM. - 2. Waits a little bit for the other sides to notice (slew time, say 10 - microseconds). - 3. Check THEIR_CLAIMS. If none are asserted then the we have the bus and we - are done. - 4. Otherwise, wait for a few milliseconds and see if THEIR_CLAIMS are released. - 5. If not, back off, release the claim and wait for a few more milliseconds. - 6. Go back to 1 (until retry time has expired). - -properties: - compatible: - const: i2c-arb-gpio-challenge - - i2c-parent: - $ref: /schemas/types.yaml#/definitions/phandle - description: - The I2C bus that this multiplexer's master-side port is connected to. - - our-claim-gpios: - maxItems: 1 - description: - The GPIO that we use to claim the bus. - - slew-delay-us: - default: 10 - description: - Time to wait for a GPIO to go high. - - their-claim-gpios: - minItems: 1 - maxItems: 8 - description: - The GPIOs that the other sides use to claim the bus. Note that some - implementations may only support a single other master. - - wait-free-us: - default: 50000 - description: - We'll give up after this many microseconds. - - wait-retry-us: - default: 3000 - description: - We'll attempt another claim after this many microseconds. - - i2c-arb: - type: object - $ref: /schemas/i2c/i2c-controller.yaml - unevaluatedProperties: false - description: - I2C arbitration bus node. - -required: - - compatible - - i2c-arb - - our-claim-gpios - - their-claim-gpios - -additionalProperties: false - -examples: - - | - #include - #include - - i2c-arbitrator { - compatible = "i2c-arb-gpio-challenge"; - i2c-parent = <&i2c_4>; - - our-claim-gpios = <&gpf0 3 GPIO_ACTIVE_LOW>; - their-claim-gpios = <&gpe0 4 GPIO_ACTIVE_LOW>; - slew-delay-us = <10>; - wait-retry-us = <3000>; - wait-free-us = <50000>; - - i2c-arb { - #address-cells = <1>; - #size-cells = <0>; - - sbs-battery@b { - compatible = "sbs,sbs-battery"; - reg = <0xb>; - sbs,poll-retry-count = <1>; - }; - - embedded-controller@1e { - compatible = "google,cros-ec-i2c"; - reg = <0x1e>; - interrupts = <6 IRQ_TYPE_LEVEL_HIGH>; - interrupt-parent = <&gpx1>; - pinctrl-names = "default"; - pinctrl-0 = <&ec_irq>; - wakeup-source; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/i2c-arb-gpio-challenge.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: GPIO-based I2C Arbitration Using a Challenge & Response Mechanism + +maintainers: + - Doug Anderson + - Peter Rosin + +description: | + This uses GPIO lines and a challenge & response mechanism to arbitrate who is + the master of an I2C bus in a multimaster situation. + + In many cases using GPIOs to arbitrate is not needed and a design can use the + standard I2C multi-master rules. Using GPIOs is generally useful in the case + where there is a device on the bus that has errata and/or bugs that makes + standard multimaster mode not feasible. + + Note that this scheme works well enough but has some downsides: + * It is nonstandard (not using standard I2C multimaster) + * Having two masters on a bus in general makes it relatively hard to debug + problems (hard to tell if i2c issues were caused by one master, another, + or some device on the bus). + + Algorithm: + All masters on the bus have a 'bus claim' line which is an output that the + others can see. These are all active low with pull-ups enabled. We'll + describe these lines as: + * OUR_CLAIM: output from us signaling to other hosts that we want the bus + * THEIR_CLAIMS: output from others signaling that they want the bus + + The basic algorithm is to assert your line when you want the bus, then make + sure that the other side doesn't want it also. A detailed explanation is + best done with an example. + + Let's say we want to claim the bus. We: + 1. Assert OUR_CLAIM. + 2. Waits a little bit for the other sides to notice (slew time, say 10 + microseconds). + 3. Check THEIR_CLAIMS. If none are asserted then the we have the bus and we + are done. + 4. Otherwise, wait for a few milliseconds and see if THEIR_CLAIMS are released. + 5. If not, back off, release the claim and wait for a few more milliseconds. + 6. Go back to 1 (until retry time has expired). + +properties: + compatible: + const: i2c-arb-gpio-challenge + + i2c-parent: + $ref: /schemas/types.yaml#/definitions/phandle + description: + The I2C bus that this multiplexer's master-side port is connected to. + + our-claim-gpios: + maxItems: 1 + description: + The GPIO that we use to claim the bus. + + slew-delay-us: + default: 10 + description: + Time to wait for a GPIO to go high. + + their-claim-gpios: + minItems: 1 + maxItems: 8 + description: + The GPIOs that the other sides use to claim the bus. Note that some + implementations may only support a single other master. + + wait-free-us: + default: 50000 + description: + We'll give up after this many microseconds. + + wait-retry-us: + default: 3000 + description: + We'll attempt another claim after this many microseconds. + + i2c-arb: + type: object + $ref: /schemas/i2c/i2c-controller.yaml + unevaluatedProperties: false + description: + I2C arbitration bus node. + +required: + - compatible + - i2c-arb + - our-claim-gpios + - their-claim-gpios + +additionalProperties: false + +examples: + - | + #include + #include + + i2c-arbitrator { + compatible = "i2c-arb-gpio-challenge"; + i2c-parent = <&i2c_4>; + + our-claim-gpios = <&gpf0 3 GPIO_ACTIVE_LOW>; + their-claim-gpios = <&gpe0 4 GPIO_ACTIVE_LOW>; + slew-delay-us = <10>; + wait-retry-us = <3000>; + wait-free-us = <50000>; + + i2c-arb { + #address-cells = <1>; + #size-cells = <0>; + + sbs-battery@b { + compatible = "sbs,sbs-battery"; + reg = <0xb>; + sbs,poll-retry-count = <1>; + }; + + embedded-controller@1e { + compatible = "google,cros-ec-i2c"; + reg = <0x1e>; + interrupts = <6 IRQ_TYPE_LEVEL_HIGH>; + interrupt-parent = <&gpx1>; + pinctrl-names = "default"; + pinctrl-0 = <&ec_irq>; + wakeup-source; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-exynos5.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-exynos5.yaml index 22cdbe32c..cc8bba553 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-exynos5.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-exynos5.yaml @@ -1,143 +1,143 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/i2c/i2c-exynos5.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung's High Speed I2C controller - -maintainers: - - Krzysztof Kozlowski - -description: | - The Samsung's High Speed I2C controller is used to interface with I2C devices - at various speeds ranging from 100kHz to 3.4MHz. - - In case the HSI2C controller is encapsulated within USI block (it's the case - e.g. for Exynos850 and Exynos Auto V9 SoCs), it might be also necessary to - define USI node in device tree file, choosing "i2c" configuration. Please see - Documentation/devicetree/bindings/soc/samsung/exynos-usi.yaml for details. - -properties: - compatible: - oneOf: - - enum: - - samsung,exynos5250-hsi2c # Exynos5250 and Exynos5420 - - samsung,exynos5260-hsi2c # Exynos5260 - - samsung,exynos7-hsi2c # Exynos7 - - samsung,exynosautov9-hsi2c - - items: - - enum: - - samsung,exynos5433-hsi2c - - tesla,fsd-hsi2c - - const: samsung,exynos7-hsi2c - - items: - - enum: - - google,gs101-hsi2c - - samsung,exynos850-hsi2c - - const: samsung,exynosautov9-hsi2c - - const: samsung,exynos5-hsi2c # Exynos5250 and Exynos5420 - deprecated: true - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clock-frequency: - default: 100000 - description: - Desired operating frequency in Hz of the bus. - - If not specified, the bus operates in fast-speed mode at 100kHz. - - If specified, the bus operates in high-speed mode only if the - clock-frequency is >= 1MHz. - - clocks: - minItems: 1 - items: - - description: I2C operating clock - - description: Bus clock (APB) - - clock-names: - minItems: 1 - items: - - const: hsi2c - - const: hsi2c_pclk - -required: - - compatible - - reg - - interrupts - - clocks - -allOf: - - $ref: /schemas/i2c/i2c-controller.yaml# - - if: - properties: - compatible: - contains: - enum: - - samsung,exynosautov9-hsi2c - - then: - properties: - clocks: - minItems: 2 - - clock-names: - minItems: 2 - - required: - - clock-names - - else: - properties: - clocks: - maxItems: 1 - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - - hsi2c_8: i2c@12e00000 { - compatible = "samsung,exynos5250-hsi2c"; - reg = <0x12e00000 0x1000>; - interrupts = ; - #address-cells = <1>; - #size-cells = <0>; - clock-frequency = <100000>; - clocks = <&clock CLK_USI4>; - clock-names = "hsi2c"; - - pmic@66 { - /* compatible = "samsung,s2mps11-pmic"; */ - reg = <0x66>; - }; - }; - - - | - #include - #include - - hsi2c_2: i2c@138c0000 { - compatible = "samsung,exynosautov9-hsi2c"; - reg = <0x138c0000 0xc0>; - interrupts = ; - #address-cells = <1>; - #size-cells = <0>; - clocks = <&cmu_peri CLK_GOUT_HSI2C2_IPCLK>, - <&cmu_peri CLK_GOUT_HSI2C2_PCLK>; - clock-names = "hsi2c", "hsi2c_pclk"; - - pmic@66 { - /* compatible = "samsung,s2mps11-pmic"; */ - reg = <0x66>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/i2c-exynos5.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung's High Speed I2C controller + +maintainers: + - Krzysztof Kozlowski + +description: | + The Samsung's High Speed I2C controller is used to interface with I2C devices + at various speeds ranging from 100kHz to 3.4MHz. + + In case the HSI2C controller is encapsulated within USI block (it's the case + e.g. for Exynos850 and Exynos Auto V9 SoCs), it might be also necessary to + define USI node in device tree file, choosing "i2c" configuration. Please see + Documentation/devicetree/bindings/soc/samsung/exynos-usi.yaml for details. + +properties: + compatible: + oneOf: + - enum: + - samsung,exynos5250-hsi2c # Exynos5250 and Exynos5420 + - samsung,exynos5260-hsi2c # Exynos5260 + - samsung,exynos7-hsi2c # Exynos7 + - samsung,exynosautov9-hsi2c + - items: + - enum: + - samsung,exynos5433-hsi2c + - tesla,fsd-hsi2c + - const: samsung,exynos7-hsi2c + - items: + - enum: + - google,gs101-hsi2c + - samsung,exynos850-hsi2c + - const: samsung,exynosautov9-hsi2c + - const: samsung,exynos5-hsi2c # Exynos5250 and Exynos5420 + deprecated: true + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clock-frequency: + default: 100000 + description: + Desired operating frequency in Hz of the bus. + + If not specified, the bus operates in fast-speed mode at 100kHz. + + If specified, the bus operates in high-speed mode only if the + clock-frequency is >= 1MHz. + + clocks: + minItems: 1 + items: + - description: I2C operating clock + - description: Bus clock (APB) + + clock-names: + minItems: 1 + items: + - const: hsi2c + - const: hsi2c_pclk + +required: + - compatible + - reg + - interrupts + - clocks + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + - if: + properties: + compatible: + contains: + enum: + - samsung,exynosautov9-hsi2c + + then: + properties: + clocks: + minItems: 2 + + clock-names: + minItems: 2 + + required: + - clock-names + + else: + properties: + clocks: + maxItems: 1 + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + hsi2c_8: i2c@12e00000 { + compatible = "samsung,exynos5250-hsi2c"; + reg = <0x12e00000 0x1000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <100000>; + clocks = <&clock CLK_USI4>; + clock-names = "hsi2c"; + + pmic@66 { + /* compatible = "samsung,s2mps11-pmic"; */ + reg = <0x66>; + }; + }; + + - | + #include + #include + + hsi2c_2: i2c@138c0000 { + compatible = "samsung,exynosautov9-hsi2c"; + reg = <0x138c0000 0xc0>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&cmu_peri CLK_GOUT_HSI2C2_IPCLK>, + <&cmu_peri CLK_GOUT_HSI2C2_PCLK>; + clock-names = "hsi2c", "hsi2c_pclk"; + + pmic@66 { + /* compatible = "samsung,s2mps11-pmic"; */ + reg = <0x66>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-mux-gpmux.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-mux-gpmux.yaml index ac9853251..b6af924de 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-mux-gpmux.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-mux-gpmux.yaml @@ -1,123 +1,123 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/i2c/i2c-mux-gpmux.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: General Purpose I2C Bus Mux - -maintainers: - - Peter Rosin - -description: |+ - This binding describes an I2C bus multiplexer that uses a mux controller - from the mux subsystem to route the I2C signals. - - .-----. .-----. - | dev | | dev | - .------------. '-----' '-----' - | SoC | | | - | | .--------+--------' - | .------. | .------+ child bus A, on MUX value set to 0 - | | I2C |-|--| Mux | - | '------' | '--+---+ child bus B, on MUX value set to 1 - | .------. | | '----------+--------+--------. - | | MUX- | | | | | | - | | Ctrl |-|-----+ .-----. .-----. .-----. - | '------' | | dev | | dev | | dev | - '------------' '-----' '-----' '-----' - - -allOf: - - $ref: /schemas/i2c/i2c-mux.yaml# - -properties: - compatible: - const: i2c-mux - - i2c-parent: - $ref: /schemas/types.yaml#/definitions/phandle - description: - The phandle of the I2C bus that this multiplexer's master-side port is - connected to. - - mux-controls: - maxItems: 1 - description: - The mux-controller states are the I2C sub-bus numbers. - - mux-locked: - type: boolean - description: | - Explicitly allow unrelated I2C transactions on the parent I2C adapter at - these times: - - during setup of the multiplexer - - between setup of the multiplexer and the child bus I2C transaction - - between the child bus I2C transaction and releasing of the multiplexer - - during releasing of the multiplexer - - However, I2C transactions to devices behind all I2C multiplexers connected - to the same parent adapter that this multiplexer is connected to are blocked - for the full duration of the complete multiplexed I2C transaction (i.e. - including the times covered by the above list). - If mux-locked is not present, the multiplexer is assumed to be parent-locked. - This means that no unrelated I2C transactions are allowed on the parent I2C - adapter for the complete multiplexed I2C transaction. - The properties of mux-locked and parent-locked multiplexers are discussed - in more detail in Documentation/i2c/i2c-topology.rst. - -required: - - compatible - - i2c-parent - - mux-controls - -unevaluatedProperties: false - -examples: - - | - #include - mux: mux-controller { - compatible = "gpio-mux"; - #mux-control-cells = <0>; - - mux-gpios = <&pioA 0 GPIO_ACTIVE_HIGH>, - <&pioA 1 GPIO_ACTIVE_HIGH>; - }; - - i2c-mux { - compatible = "i2c-mux"; - mux-locked; - i2c-parent = <&i2c1>; - - mux-controls = <&mux>; - - #address-cells = <1>; - #size-cells = <0>; - - i2c@1 { - reg = <1>; - #address-cells = <1>; - #size-cells = <0>; - - gpio@20 { - compatible = "nxp,pca9555"; - gpio-controller; - #gpio-cells = <2>; - reg = <0x20>; - }; - }; - - i2c@3 { - reg = <3>; - #address-cells = <1>; - #size-cells = <0>; - - gpio@20 { - compatible = "nxp,pca9555"; - gpio-controller; - #gpio-cells = <2>; - reg = <0x20>; - }; - }; - }; -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/i2c-mux-gpmux.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: General Purpose I2C Bus Mux + +maintainers: + - Peter Rosin + +description: |+ + This binding describes an I2C bus multiplexer that uses a mux controller + from the mux subsystem to route the I2C signals. + + .-----. .-----. + | dev | | dev | + .------------. '-----' '-----' + | SoC | | | + | | .--------+--------' + | .------. | .------+ child bus A, on MUX value set to 0 + | | I2C |-|--| Mux | + | '------' | '--+---+ child bus B, on MUX value set to 1 + | .------. | | '----------+--------+--------. + | | MUX- | | | | | | + | | Ctrl |-|-----+ .-----. .-----. .-----. + | '------' | | dev | | dev | | dev | + '------------' '-----' '-----' '-----' + + +allOf: + - $ref: /schemas/i2c/i2c-mux.yaml# + +properties: + compatible: + const: i2c-mux + + i2c-parent: + $ref: /schemas/types.yaml#/definitions/phandle + description: + The phandle of the I2C bus that this multiplexer's master-side port is + connected to. + + mux-controls: + maxItems: 1 + description: + The mux-controller states are the I2C sub-bus numbers. + + mux-locked: + type: boolean + description: | + Explicitly allow unrelated I2C transactions on the parent I2C adapter at + these times: + - during setup of the multiplexer + - between setup of the multiplexer and the child bus I2C transaction + - between the child bus I2C transaction and releasing of the multiplexer + - during releasing of the multiplexer + + However, I2C transactions to devices behind all I2C multiplexers connected + to the same parent adapter that this multiplexer is connected to are blocked + for the full duration of the complete multiplexed I2C transaction (i.e. + including the times covered by the above list). + If mux-locked is not present, the multiplexer is assumed to be parent-locked. + This means that no unrelated I2C transactions are allowed on the parent I2C + adapter for the complete multiplexed I2C transaction. + The properties of mux-locked and parent-locked multiplexers are discussed + in more detail in Documentation/i2c/i2c-topology.rst. + +required: + - compatible + - i2c-parent + - mux-controls + +unevaluatedProperties: false + +examples: + - | + #include + mux: mux-controller { + compatible = "gpio-mux"; + #mux-control-cells = <0>; + + mux-gpios = <&pioA 0 GPIO_ACTIVE_HIGH>, + <&pioA 1 GPIO_ACTIVE_HIGH>; + }; + + i2c-mux { + compatible = "i2c-mux"; + mux-locked; + i2c-parent = <&i2c1>; + + mux-controls = <&mux>; + + #address-cells = <1>; + #size-cells = <0>; + + i2c@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + gpio@20 { + compatible = "nxp,pca9555"; + gpio-controller; + #gpio-cells = <2>; + reg = <0x20>; + }; + }; + + i2c@3 { + reg = <3>; + #address-cells = <1>; + #size-cells = <0>; + + gpio@20 { + compatible = "nxp,pca9555"; + gpio-controller; + #gpio-cells = <2>; + reg = <0x20>; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml index 90d0daceb..9aa058520 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml @@ -1,174 +1,174 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/i2c/i2c-mux-pca954x.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NXP PCA954x I2C and compatible bus switches - -maintainers: - - Laurent Pinchart - -description: - The NXP PCA954x and compatible devices are I2C bus - multiplexer/switches that share the same functionality - and register layout. - The devices usually have 4 or 8 child buses, which are - attached to the parent bus by using the SMBus "Send Byte" - command. - -properties: - compatible: - oneOf: - - enum: - - maxim,max7356 - - maxim,max7357 - - maxim,max7358 - - maxim,max7367 - - maxim,max7368 - - maxim,max7369 - - nxp,pca9540 - - nxp,pca9542 - - nxp,pca9543 - - nxp,pca9544 - - nxp,pca9545 - - nxp,pca9546 - - nxp,pca9547 - - nxp,pca9548 - - nxp,pca9846 - - nxp,pca9847 - - nxp,pca9848 - - nxp,pca9849 - - items: - - const: nxp,pca9646 - - const: nxp,pca9546 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - "#interrupt-cells": - const: 2 - - interrupt-controller: true - - reset-gpios: - maxItems: 1 - - i2c-mux-idle-disconnect: - type: boolean - description: Forces mux to disconnect all children in idle state. This is - necessary for example, if there are several multiplexers on the bus and - the devices behind them use same I2C addresses. - - idle-state: - description: if present, overrides i2c-mux-idle-disconnect - $ref: /schemas/mux/mux-controller.yaml#/properties/idle-state - - vdd-supply: - description: A voltage regulator supplying power to the chip. On PCA9846 - the regulator supplies power to VDD2 (core logic) and optionally to VDD1. - - maxim,isolate-stuck-channel: - type: boolean - description: Allows to use non faulty channels while a stuck channel is - isolated from the upstream bus. If not set all channels are isolated from - the upstream bus until the fault is cleared. - - maxim,send-flush-out-sequence: - type: boolean - description: Send a flush-out sequence to stuck auxiliary buses - automatically after a stuck channel is being detected. - - maxim,preconnection-wiggle-test-enable: - type: boolean - description: Send a STOP condition to the auxiliary buses when the switch - register activates a channel to detect a stuck high fault. On fault the - channel is isolated from the upstream bus. - -required: - - compatible - - reg - -allOf: - - $ref: /schemas/i2c/i2c-mux.yaml# - - if: - not: - properties: - compatible: - contains: - enum: - - maxim,max7367 - - maxim,max7369 - - nxp,pca9542 - - nxp,pca9543 - - nxp,pca9544 - - nxp,pca9545 - then: - properties: - interrupts: false - "#interrupt-cells": false - interrupt-controller: false - - - if: - not: - properties: - compatible: - contains: - enum: - - maxim,max7357 - then: - properties: - maxim,isolate-stuck-channel: false - maxim,send-flush-out-sequence: false - maxim,preconnection-wiggle-test-enable: false - -unevaluatedProperties: false - -examples: - - | - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - i2c-mux@74 { - compatible = "nxp,pca9545"; - #address-cells = <1>; - #size-cells = <0>; - reg = <0x74>; - - vdd-supply = <&p3v3>; - - interrupt-parent = <&ipic>; - interrupts = <17 IRQ_TYPE_LEVEL_LOW>; - interrupt-controller; - #interrupt-cells = <2>; - - i2c@2 { - #address-cells = <1>; - #size-cells = <0>; - reg = <2>; - - eeprom@54 { - compatible = "atmel,24c08"; - reg = <0x54>; - }; - }; - - i2c@4 { - #address-cells = <1>; - #size-cells = <0>; - reg = <4>; - - rtc@51 { - compatible = "nxp,pcf8563"; - reg = <0x51>; - }; - }; - }; - }; -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/i2c-mux-pca954x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP PCA954x I2C and compatible bus switches + +maintainers: + - Laurent Pinchart + +description: + The NXP PCA954x and compatible devices are I2C bus + multiplexer/switches that share the same functionality + and register layout. + The devices usually have 4 or 8 child buses, which are + attached to the parent bus by using the SMBus "Send Byte" + command. + +properties: + compatible: + oneOf: + - enum: + - maxim,max7356 + - maxim,max7357 + - maxim,max7358 + - maxim,max7367 + - maxim,max7368 + - maxim,max7369 + - nxp,pca9540 + - nxp,pca9542 + - nxp,pca9543 + - nxp,pca9544 + - nxp,pca9545 + - nxp,pca9546 + - nxp,pca9547 + - nxp,pca9548 + - nxp,pca9846 + - nxp,pca9847 + - nxp,pca9848 + - nxp,pca9849 + - items: + - const: nxp,pca9646 + - const: nxp,pca9546 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + "#interrupt-cells": + const: 2 + + interrupt-controller: true + + reset-gpios: + maxItems: 1 + + i2c-mux-idle-disconnect: + type: boolean + description: Forces mux to disconnect all children in idle state. This is + necessary for example, if there are several multiplexers on the bus and + the devices behind them use same I2C addresses. + + idle-state: + description: if present, overrides i2c-mux-idle-disconnect + $ref: /schemas/mux/mux-controller.yaml#/properties/idle-state + + vdd-supply: + description: A voltage regulator supplying power to the chip. On PCA9846 + the regulator supplies power to VDD2 (core logic) and optionally to VDD1. + + maxim,isolate-stuck-channel: + type: boolean + description: Allows to use non faulty channels while a stuck channel is + isolated from the upstream bus. If not set all channels are isolated from + the upstream bus until the fault is cleared. + + maxim,send-flush-out-sequence: + type: boolean + description: Send a flush-out sequence to stuck auxiliary buses + automatically after a stuck channel is being detected. + + maxim,preconnection-wiggle-test-enable: + type: boolean + description: Send a STOP condition to the auxiliary buses when the switch + register activates a channel to detect a stuck high fault. On fault the + channel is isolated from the upstream bus. + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/i2c/i2c-mux.yaml# + - if: + not: + properties: + compatible: + contains: + enum: + - maxim,max7367 + - maxim,max7369 + - nxp,pca9542 + - nxp,pca9543 + - nxp,pca9544 + - nxp,pca9545 + then: + properties: + interrupts: false + "#interrupt-cells": false + interrupt-controller: false + + - if: + not: + properties: + compatible: + contains: + enum: + - maxim,max7357 + then: + properties: + maxim,isolate-stuck-channel: false + maxim,send-flush-out-sequence: false + maxim,preconnection-wiggle-test-enable: false + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + i2c-mux@74 { + compatible = "nxp,pca9545"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x74>; + + vdd-supply = <&p3v3>; + + interrupt-parent = <&ipic>; + interrupts = <17 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + #interrupt-cells = <2>; + + i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + + eeprom@54 { + compatible = "atmel,24c08"; + reg = <0x54>; + }; + }; + + i2c@4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + + rtc@51 { + compatible = "nxp,pcf8563"; + reg = <0x51>; + }; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-rk3x.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-rk3x.yaml index 1e83b5496..a9dae5b52 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-rk3x.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/i2c-rk3x.yaml @@ -1,143 +1,143 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/i2c/i2c-rk3x.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Rockchip RK3xxx I2C controller - -description: - This driver interfaces with the native I2C controller present in Rockchip - RK3xxx SoCs. - -allOf: - - $ref: /schemas/i2c/i2c-controller.yaml# - -maintainers: - - Heiko Stuebner - -# Everything else is described in the common file -properties: - compatible: - oneOf: - - const: rockchip,rv1108-i2c - - const: rockchip,rk3066-i2c - - const: rockchip,rk3188-i2c - - const: rockchip,rk3228-i2c - - const: rockchip,rk3288-i2c - - const: rockchip,rk3399-i2c - - items: - - enum: - - rockchip,rk3036-i2c - - rockchip,rk3128-i2c - - rockchip,rk3368-i2c - - const: rockchip,rk3288-i2c - - items: - - enum: - - rockchip,px30-i2c - - rockchip,rk3308-i2c - - rockchip,rk3328-i2c - - rockchip,rk3568-i2c - - rockchip,rk3576-i2c - - rockchip,rk3588-i2c - - rockchip,rv1126-i2c - - const: rockchip,rk3399-i2c - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - minItems: 1 - items: - - description: - For older hardware (rk3066, rk3188, rk3228, rk3288) - there is one clock that is used both to derive the functional clock - for the device and as the bus clock. - For newer hardware (rk3399) this clock is used to derive - the functional clock - - description: - For newer hardware (rk3399) this is the bus clock - - clock-names: - minItems: 1 - items: - - const: i2c - - const: pclk - - rockchip,grf: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Required on RK3066, RK3188 the phandle of the syscon node for - the general register file (GRF) - On those SoCs an alias with the correct I2C bus ID - (bit offset in the GRF) is also required. - - clock-frequency: - default: 100000 - description: - SCL frequency to use (in Hz). If omitted, 100kHz is used. - - i2c-scl-rising-time-ns: - default: 1000 - description: - Number of nanoseconds the SCL signal takes to rise - (t(r) in I2C specification). If not specified this is assumed to be - the maximum the specification allows(1000 ns for Standard-mode, - 300 ns for Fast-mode) which might cause slightly slower communication. - - i2c-scl-falling-time-ns: - default: 300 - description: - Number of nanoseconds the SCL signal takes to fall - (t(f) in the I2C specification). If not specified this is assumed to - be the maximum the specification allows (300 ns) which might cause - slightly slower communication. - - i2c-sda-falling-time-ns: - default: 300 - description: - Number of nanoseconds the SDA signal takes to fall - (t(f) in the I2C specification). If not specified we will use the SCL - value since they are the same in nearly all cases. - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - -if: - properties: - compatible: - contains: - enum: - - rockchip,rk3066-i2c - - rockchip,rk3188-i2c - -then: - required: - - rockchip,grf - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - i2c0: i2c@2002d000 { - compatible = "rockchip,rk3188-i2c"; - reg = <0x2002d000 0x1000>; - interrupts = ; - clocks = <&cru PCLK_I2C0>; - clock-names = "i2c"; - rockchip,grf = <&grf>; - i2c-scl-falling-time-ns = <100>; - i2c-scl-rising-time-ns = <800>; - #address-cells = <1>; - #size-cells = <0>; - }; +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/i2c-rk3x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip RK3xxx I2C controller + +description: + This driver interfaces with the native I2C controller present in Rockchip + RK3xxx SoCs. + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + +maintainers: + - Heiko Stuebner + +# Everything else is described in the common file +properties: + compatible: + oneOf: + - const: rockchip,rv1108-i2c + - const: rockchip,rk3066-i2c + - const: rockchip,rk3188-i2c + - const: rockchip,rk3228-i2c + - const: rockchip,rk3288-i2c + - const: rockchip,rk3399-i2c + - items: + - enum: + - rockchip,rk3036-i2c + - rockchip,rk3128-i2c + - rockchip,rk3368-i2c + - const: rockchip,rk3288-i2c + - items: + - enum: + - rockchip,px30-i2c + - rockchip,rk3308-i2c + - rockchip,rk3328-i2c + - rockchip,rk3568-i2c + - rockchip,rk3576-i2c + - rockchip,rk3588-i2c + - rockchip,rv1126-i2c + - const: rockchip,rk3399-i2c + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 1 + items: + - description: + For older hardware (rk3066, rk3188, rk3228, rk3288) + there is one clock that is used both to derive the functional clock + for the device and as the bus clock. + For newer hardware (rk3399) this clock is used to derive + the functional clock + - description: + For newer hardware (rk3399) this is the bus clock + + clock-names: + minItems: 1 + items: + - const: i2c + - const: pclk + + rockchip,grf: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Required on RK3066, RK3188 the phandle of the syscon node for + the general register file (GRF) + On those SoCs an alias with the correct I2C bus ID + (bit offset in the GRF) is also required. + + clock-frequency: + default: 100000 + description: + SCL frequency to use (in Hz). If omitted, 100kHz is used. + + i2c-scl-rising-time-ns: + default: 1000 + description: + Number of nanoseconds the SCL signal takes to rise + (t(r) in I2C specification). If not specified this is assumed to be + the maximum the specification allows(1000 ns for Standard-mode, + 300 ns for Fast-mode) which might cause slightly slower communication. + + i2c-scl-falling-time-ns: + default: 300 + description: + Number of nanoseconds the SCL signal takes to fall + (t(f) in the I2C specification). If not specified this is assumed to + be the maximum the specification allows (300 ns) which might cause + slightly slower communication. + + i2c-sda-falling-time-ns: + default: 300 + description: + Number of nanoseconds the SDA signal takes to fall + (t(f) in the I2C specification). If not specified we will use the SCL + value since they are the same in nearly all cases. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +if: + properties: + compatible: + contains: + enum: + - rockchip,rk3066-i2c + - rockchip,rk3188-i2c + +then: + required: + - rockchip,grf + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + i2c0: i2c@2002d000 { + compatible = "rockchip,rk3188-i2c"; + reg = <0x2002d000 0x1000>; + interrupts = ; + clocks = <&cru PCLK_I2C0>; + clock-names = "i2c"; + rockchip,grf = <&grf>; + i2c-scl-falling-time-ns = <100>; + i2c-scl-rising-time-ns = <800>; + #address-cells = <1>; + #size-cells = <0>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/renesas,rmobile-iic.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/renesas,rmobile-iic.yaml index ea30406bc..ec5222a12 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/renesas,rmobile-iic.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/renesas,rmobile-iic.yaml @@ -1,149 +1,149 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/i2c/renesas,rmobile-iic.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas R-Mobile I2C Bus Interface (IIC) - -maintainers: - - Wolfram Sang - -properties: - compatible: - oneOf: - - items: - - enum: - - renesas,iic-r8a73a4 # R-Mobile APE6 - - renesas,iic-r8a7740 # R-Mobile A1 - - renesas,iic-sh73a0 # SH-Mobile AG5 - - const: renesas,rmobile-iic # Generic - - - items: - - enum: - - renesas,iic-r8a7742 # RZ/G1H - - renesas,iic-r8a7743 # RZ/G1M - - renesas,iic-r8a7744 # RZ/G1N - - renesas,iic-r8a7745 # RZ/G1E - - renesas,iic-r8a7790 # R-Car H2 - - renesas,iic-r8a7791 # R-Car M2-W - - renesas,iic-r8a7792 # R-Car V2H - - renesas,iic-r8a7793 # R-Car M2-N - - renesas,iic-r8a7794 # R-Car E2 - - const: renesas,rcar-gen2-iic # R-Car Gen2 and RZ/G1 - - const: renesas,rmobile-iic # Generic - - - items: - - enum: - - renesas,iic-r8a774a1 # RZ/G2M - - renesas,iic-r8a774b1 # RZ/G2N - - renesas,iic-r8a774c0 # RZ/G2E - - renesas,iic-r8a774e1 # RZ/G2H - - renesas,iic-r8a7795 # R-Car H3 - - renesas,iic-r8a7796 # R-Car M3-W - - renesas,iic-r8a77961 # R-Car M3-W+ - - renesas,iic-r8a77965 # R-Car M3-N - - renesas,iic-r8a77990 # R-Car E3 - - const: renesas,rcar-gen3-iic # R-Car Gen3 and RZ/G2 - - const: renesas,rmobile-iic # Generic - - reg: - maxItems: 1 - - interrupts: true - - clock-frequency: - description: - Desired I2C bus clock frequency in Hz. The absence of this property - indicates the default frequency 100 kHz. - - clocks: - maxItems: 1 - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - dmas: - minItems: 2 - maxItems: 4 - description: - Must contain a list of pairs of references to DMA specifiers, one for - transmission, and one for reception. - - dma-names: - minItems: 2 - maxItems: 4 - items: - enum: - - tx - - rx - -required: - - compatible - - reg - - interrupts - - clocks - - power-domains - - '#address-cells' - - '#size-cells' - -allOf: - - $ref: /schemas/i2c/i2c-controller.yaml# - - - if: - properties: - compatible: - contains: - enum: - - renesas,iic-r8a7740 - - renesas,iic-sh73a0 - then: - properties: - interrupts: - items: - - description: Arbitration Lost Interrupt (ALI) - - description: Non-acknowledge Detection Interrupt (TACKI) - - description: Wait Interrupt (WAITI) - - description: Data Transmit Enable interrupt (DTEI) - else: - properties: - interrupts: - items: - - description: Single combined interrupt - - - if: - properties: - compatible: - contains: - enum: - - renesas,rcar-gen2-iic - - renesas,rcar-gen3-iic - then: - required: - - resets - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - - iic0: i2c@e6500000 { - compatible = "renesas,iic-r8a7790", "renesas,rcar-gen2-iic", - "renesas,rmobile-iic"; - reg = <0xe6500000 0x425>; - interrupts = ; - clocks = <&cpg CPG_MOD 318>; - clock-frequency = <400000>; - dmas = <&dmac0 0x61>, <&dmac0 0x62>, <&dmac1 0x61>, <&dmac1 0x62>; - dma-names = "tx", "rx", "tx", "rx"; - power-domains = <&sysc R8A7790_PD_ALWAYS_ON>; - resets = <&cpg 318>; - #address-cells = <1>; - #size-cells = <0>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/renesas,rmobile-iic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas R-Mobile I2C Bus Interface (IIC) + +maintainers: + - Wolfram Sang + +properties: + compatible: + oneOf: + - items: + - enum: + - renesas,iic-r8a73a4 # R-Mobile APE6 + - renesas,iic-r8a7740 # R-Mobile A1 + - renesas,iic-sh73a0 # SH-Mobile AG5 + - const: renesas,rmobile-iic # Generic + + - items: + - enum: + - renesas,iic-r8a7742 # RZ/G1H + - renesas,iic-r8a7743 # RZ/G1M + - renesas,iic-r8a7744 # RZ/G1N + - renesas,iic-r8a7745 # RZ/G1E + - renesas,iic-r8a7790 # R-Car H2 + - renesas,iic-r8a7791 # R-Car M2-W + - renesas,iic-r8a7792 # R-Car V2H + - renesas,iic-r8a7793 # R-Car M2-N + - renesas,iic-r8a7794 # R-Car E2 + - const: renesas,rcar-gen2-iic # R-Car Gen2 and RZ/G1 + - const: renesas,rmobile-iic # Generic + + - items: + - enum: + - renesas,iic-r8a774a1 # RZ/G2M + - renesas,iic-r8a774b1 # RZ/G2N + - renesas,iic-r8a774c0 # RZ/G2E + - renesas,iic-r8a774e1 # RZ/G2H + - renesas,iic-r8a7795 # R-Car H3 + - renesas,iic-r8a7796 # R-Car M3-W + - renesas,iic-r8a77961 # R-Car M3-W+ + - renesas,iic-r8a77965 # R-Car M3-N + - renesas,iic-r8a77990 # R-Car E3 + - const: renesas,rcar-gen3-iic # R-Car Gen3 and RZ/G2 + - const: renesas,rmobile-iic # Generic + + reg: + maxItems: 1 + + interrupts: true + + clock-frequency: + description: + Desired I2C bus clock frequency in Hz. The absence of this property + indicates the default frequency 100 kHz. + + clocks: + maxItems: 1 + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + dmas: + minItems: 2 + maxItems: 4 + description: + Must contain a list of pairs of references to DMA specifiers, one for + transmission, and one for reception. + + dma-names: + minItems: 2 + maxItems: 4 + items: + enum: + - tx + - rx + +required: + - compatible + - reg + - interrupts + - clocks + - power-domains + - '#address-cells' + - '#size-cells' + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + + - if: + properties: + compatible: + contains: + enum: + - renesas,iic-r8a7740 + - renesas,iic-sh73a0 + then: + properties: + interrupts: + items: + - description: Arbitration Lost Interrupt (ALI) + - description: Non-acknowledge Detection Interrupt (TACKI) + - description: Wait Interrupt (WAITI) + - description: Data Transmit Enable interrupt (DTEI) + else: + properties: + interrupts: + items: + - description: Single combined interrupt + + - if: + properties: + compatible: + contains: + enum: + - renesas,rcar-gen2-iic + - renesas,rcar-gen3-iic + then: + required: + - resets + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + iic0: i2c@e6500000 { + compatible = "renesas,iic-r8a7790", "renesas,rcar-gen2-iic", + "renesas,rmobile-iic"; + reg = <0xe6500000 0x425>; + interrupts = ; + clocks = <&cpg CPG_MOD 318>; + clock-frequency = <400000>; + dmas = <&dmac0 0x61>, <&dmac0 0x62>, <&dmac1 0x61>, <&dmac1 0x62>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc R8A7790_PD_ALWAYS_ON>; + resets = <&cpg 318>; + #address-cells = <1>; + #size-cells = <0>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/samsung,s3c2410-i2c.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/samsung,s3c2410-i2c.yaml index df934636a..bbc568485 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/samsung,s3c2410-i2c.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/samsung,s3c2410-i2c.yaml @@ -1,164 +1,164 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/i2c/samsung,s3c2410-i2c.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung S3C/S5P/Exynos SoC I2C Controller - -maintainers: - - Krzysztof Kozlowski - -properties: - compatible: - oneOf: - - enum: - - samsung,s3c2410-i2c - - samsung,s3c2440-i2c - # For s3c2440-like I2C used inside HDMIPHY block found on several SoCs: - - samsung,s3c2440-hdmiphy-i2c - # For s3c2440-like I2C used as a host to SATA PHY controller on an - # internal bus: - - samsung,exynos5-sata-phy-i2c - - items: - - enum: - - samsung,exynos7885-i2c - - samsung,exynos850-i2c - - const: samsung,s3c2440-i2c - - clocks: - maxItems: 1 - - clock-names: - items: - - const: i2c - - gpios: - description: | - The order of the GPIOs should be the following:: . The GPIO - specifier depends on the gpio controller. Required in all cases except - for "samsung,s3c2440-hdmiphy-i2c" whose input/output lines are - permanently wired to the respective client. - This property is deprecated. Use "pinctrl-0" and "pinctrl-names" instead. - deprecated: true - - interrupts: - maxItems: 1 - - reg: - maxItems: 1 - - samsung,i2c-max-bus-freq: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Desired frequency in Hz of the bus. - default: 100000 - - samsung,i2c-sda-delay: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Delay (in ns) applied to data line (SDA) edges. - default: 0 - - samsung,i2c-slave-addr: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Slave address in multi-master environment. - default: 0 - - samsung,sysreg-phandle: - $ref: /schemas/types.yaml#/definitions/phandle - description: Pandle to syscon used to control the system registers. - -required: - - compatible - - reg - -allOf: - - $ref: /schemas/i2c/i2c-controller.yaml# - - if: - properties: - compatible: - contains: - enum: - - samsung,s3c2440-hdmiphy-i2c - - samsung,exynos5-sata-phy-i2c - then: - properties: - gpios: false - - - if: - properties: - compatible: - contains: - enum: - - samsung,s3c2410-i2c - - samsung,s3c2440-i2c - - samsung,s3c2440-hdmiphy-i2c - then: - required: - - interrupts - -unevaluatedProperties: false - -examples: - - | - #include - #include - - i2c@12c60000 { - compatible = "samsung,s3c2440-i2c"; - reg = <0x12C60000 0x100>; - interrupts = ; - #address-cells = <1>; - #size-cells = <0>; - clocks = <&clock CLK_I2C0>; - clock-names = "i2c"; - pinctrl-names = "default"; - pinctrl-0 = <&i2c0_bus>; - - samsung,sysreg-phandle = <&sysreg_system_controller>; - samsung,i2c-sda-delay = <100>; - samsung,i2c-max-bus-freq = <20000>; - samsung,i2c-slave-addr = <0x66>; - - eeprom@50 { - compatible = "samsung,s524ad0xd1", "atmel,24c128"; - reg = <0x50>; - }; - }; - - i2c@12ce0000 { - compatible = "samsung,s3c2440-hdmiphy-i2c"; - reg = <0x12CE0000 0x1000>; - interrupts = ; - #address-cells = <1>; - #size-cells = <0>; - clocks = <&clock CLK_I2C_HDMI>; - clock-names = "i2c"; - - samsung,i2c-sda-delay = <100>; - samsung,i2c-max-bus-freq = <66000>; - - phy-i2c@38 { - compatible = "samsung,exynos4212-hdmiphy"; - reg = <0x38>; - }; - }; - - i2c@121d0000 { - compatible = "samsung,exynos5-sata-phy-i2c"; - reg = <0x121D0000 0x100>; - #address-cells = <1>; - #size-cells = <0>; - clocks = <&clock CLK_SATA_PHYI2C>; - clock-names = "i2c"; - - samsung,i2c-sda-delay = <100>; - samsung,i2c-max-bus-freq = <40000>; - - phy-i2c@38 { - compatible = "samsung,exynos-sataphy-i2c"; - reg = <0x38>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/samsung,s3c2410-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S3C/S5P/Exynos SoC I2C Controller + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + oneOf: + - enum: + - samsung,s3c2410-i2c + - samsung,s3c2440-i2c + # For s3c2440-like I2C used inside HDMIPHY block found on several SoCs: + - samsung,s3c2440-hdmiphy-i2c + # For s3c2440-like I2C used as a host to SATA PHY controller on an + # internal bus: + - samsung,exynos5-sata-phy-i2c + - items: + - enum: + - samsung,exynos7885-i2c + - samsung,exynos850-i2c + - const: samsung,s3c2440-i2c + + clocks: + maxItems: 1 + + clock-names: + items: + - const: i2c + + gpios: + description: | + The order of the GPIOs should be the following:: . The GPIO + specifier depends on the gpio controller. Required in all cases except + for "samsung,s3c2440-hdmiphy-i2c" whose input/output lines are + permanently wired to the respective client. + This property is deprecated. Use "pinctrl-0" and "pinctrl-names" instead. + deprecated: true + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + + samsung,i2c-max-bus-freq: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Desired frequency in Hz of the bus. + default: 100000 + + samsung,i2c-sda-delay: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Delay (in ns) applied to data line (SDA) edges. + default: 0 + + samsung,i2c-slave-addr: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Slave address in multi-master environment. + default: 0 + + samsung,sysreg-phandle: + $ref: /schemas/types.yaml#/definitions/phandle + description: Pandle to syscon used to control the system registers. + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + - if: + properties: + compatible: + contains: + enum: + - samsung,s3c2440-hdmiphy-i2c + - samsung,exynos5-sata-phy-i2c + then: + properties: + gpios: false + + - if: + properties: + compatible: + contains: + enum: + - samsung,s3c2410-i2c + - samsung,s3c2440-i2c + - samsung,s3c2440-hdmiphy-i2c + then: + required: + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + #include + + i2c@12c60000 { + compatible = "samsung,s3c2440-i2c"; + reg = <0x12C60000 0x100>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clock CLK_I2C0>; + clock-names = "i2c"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_bus>; + + samsung,sysreg-phandle = <&sysreg_system_controller>; + samsung,i2c-sda-delay = <100>; + samsung,i2c-max-bus-freq = <20000>; + samsung,i2c-slave-addr = <0x66>; + + eeprom@50 { + compatible = "samsung,s524ad0xd1", "atmel,24c128"; + reg = <0x50>; + }; + }; + + i2c@12ce0000 { + compatible = "samsung,s3c2440-hdmiphy-i2c"; + reg = <0x12CE0000 0x1000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clock CLK_I2C_HDMI>; + clock-names = "i2c"; + + samsung,i2c-sda-delay = <100>; + samsung,i2c-max-bus-freq = <66000>; + + phy-i2c@38 { + compatible = "samsung,exynos4212-hdmiphy"; + reg = <0x38>; + }; + }; + + i2c@121d0000 { + compatible = "samsung,exynos5-sata-phy-i2c"; + reg = <0x121D0000 0x100>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clock CLK_SATA_PHYI2C>; + clock-names = "i2c"; + + samsung,i2c-sda-delay = <100>; + samsung,i2c-max-bus-freq = <40000>; + + phy-i2c@38 { + compatible = "samsung,exynos-sataphy-i2c"; + reg = <0x38>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml index 4882cf44d..60035a787 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml @@ -1,149 +1,149 @@ -# SPDX-License-Identifier: GPL-2.0-only -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/i2c/snps,designware-i2c.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Synopsys DesignWare APB I2C Controller - -maintainers: - - Jarkko Nikula - -allOf: - - $ref: /schemas/i2c/i2c-controller.yaml# - - if: - properties: - compatible: - not: - contains: - const: mscc,ocelot-i2c - then: - properties: - reg: - maxItems: 1 - -properties: - compatible: - oneOf: - - description: Generic Synopsys DesignWare I2C controller - const: snps,designware-i2c - - description: Microsemi Ocelot SoCs I2C controller - items: - - const: mscc,ocelot-i2c - - const: snps,designware-i2c - - description: Baikal-T1 SoC System I2C controller - const: baikal,bt1-sys-i2c - - description: T-HEAD TH1520 SoCs I2C controller - items: - - const: thead,th1520-i2c - - const: snps,designware-i2c - - reg: - minItems: 1 - items: - - description: DW APB I2C controller memory mapped registers - - description: | - ICPU_CFG:TWI_DELAY registers to setup the SDA hold time. - This registers are specific to the Ocelot I2C-controller. - - interrupts: - maxItems: 1 - - clocks: - minItems: 1 - items: - - description: I2C controller reference clock source - - description: APB interface clock source - - clock-names: - minItems: 1 - items: - - const: ref - - const: pclk - - resets: - maxItems: 1 - - clock-frequency: - description: Desired I2C bus clock frequency in Hz - enum: [100000, 400000, 1000000, 3400000] - default: 400000 - - i2c-sda-hold-time-ns: - description: | - The property should contain the SDA hold time in nanoseconds. This option - is only supported in hardware blocks version 1.11a or newer or on - Microsemi SoCs. - - i2c-scl-falling-time-ns: - description: | - The property should contain the SCL falling time in nanoseconds. - This value is used to compute the tLOW period. - default: 300 - - i2c-sda-falling-time-ns: - description: | - The property should contain the SDA falling time in nanoseconds. - This value is used to compute the tHIGH period. - default: 300 - - dmas: - items: - - description: TX DMA Channel - - description: RX DMA Channel - - dma-names: - items: - - const: tx - - const: rx - -unevaluatedProperties: false - -required: - - compatible - - reg - - interrupts - -examples: - - | - i2c@f0000 { - compatible = "snps,designware-i2c"; - reg = <0xf0000 0x1000>; - interrupts = <11>; - clock-frequency = <400000>; - }; - - | - i2c@1120000 { - compatible = "snps,designware-i2c"; - reg = <0x1120000 0x1000>; - interrupts = <12 1>; - clock-frequency = <400000>; - i2c-sda-hold-time-ns = <300>; - i2c-sda-falling-time-ns = <300>; - i2c-scl-falling-time-ns = <300>; - }; - - | - i2c@2000 { - compatible = "snps,designware-i2c"; - reg = <0x2000 0x100>; - #address-cells = <1>; - #size-cells = <0>; - clock-frequency = <400000>; - clocks = <&i2cclk>; - interrupts = <0>; - - eeprom@64 { - compatible = "atmel,24c02"; - reg = <0x64>; - }; - }; - - | - i2c@100400 { - compatible = "mscc,ocelot-i2c", "snps,designware-i2c"; - reg = <0x100400 0x100>, <0x198 0x8>; - pinctrl-0 = <&i2c_pins>; - pinctrl-names = "default"; - interrupts = <8>; - clocks = <&ahb_clk>; - }; -... +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/snps,designware-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synopsys DesignWare APB I2C Controller + +maintainers: + - Jarkko Nikula + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + - if: + properties: + compatible: + not: + contains: + const: mscc,ocelot-i2c + then: + properties: + reg: + maxItems: 1 + +properties: + compatible: + oneOf: + - description: Generic Synopsys DesignWare I2C controller + const: snps,designware-i2c + - description: Microsemi Ocelot SoCs I2C controller + items: + - const: mscc,ocelot-i2c + - const: snps,designware-i2c + - description: Baikal-T1 SoC System I2C controller + const: baikal,bt1-sys-i2c + - description: T-HEAD TH1520 SoCs I2C controller + items: + - const: thead,th1520-i2c + - const: snps,designware-i2c + + reg: + minItems: 1 + items: + - description: DW APB I2C controller memory mapped registers + - description: | + ICPU_CFG:TWI_DELAY registers to setup the SDA hold time. + This registers are specific to the Ocelot I2C-controller. + + interrupts: + maxItems: 1 + + clocks: + minItems: 1 + items: + - description: I2C controller reference clock source + - description: APB interface clock source + + clock-names: + minItems: 1 + items: + - const: ref + - const: pclk + + resets: + maxItems: 1 + + clock-frequency: + description: Desired I2C bus clock frequency in Hz + enum: [100000, 400000, 1000000, 3400000] + default: 400000 + + i2c-sda-hold-time-ns: + description: | + The property should contain the SDA hold time in nanoseconds. This option + is only supported in hardware blocks version 1.11a or newer or on + Microsemi SoCs. + + i2c-scl-falling-time-ns: + description: | + The property should contain the SCL falling time in nanoseconds. + This value is used to compute the tLOW period. + default: 300 + + i2c-sda-falling-time-ns: + description: | + The property should contain the SDA falling time in nanoseconds. + This value is used to compute the tHIGH period. + default: 300 + + dmas: + items: + - description: TX DMA Channel + - description: RX DMA Channel + + dma-names: + items: + - const: tx + - const: rx + +unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + +examples: + - | + i2c@f0000 { + compatible = "snps,designware-i2c"; + reg = <0xf0000 0x1000>; + interrupts = <11>; + clock-frequency = <400000>; + }; + - | + i2c@1120000 { + compatible = "snps,designware-i2c"; + reg = <0x1120000 0x1000>; + interrupts = <12 1>; + clock-frequency = <400000>; + i2c-sda-hold-time-ns = <300>; + i2c-sda-falling-time-ns = <300>; + i2c-scl-falling-time-ns = <300>; + }; + - | + i2c@2000 { + compatible = "snps,designware-i2c"; + reg = <0x2000 0x100>; + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + clocks = <&i2cclk>; + interrupts = <0>; + + eeprom@64 { + compatible = "atmel,24c02"; + reg = <0x64>; + }; + }; + - | + i2c@100400 { + compatible = "mscc,ocelot-i2c", "snps,designware-i2c"; + reg = <0x100400 0x100>, <0x198 0x8>; + pinctrl-0 = <&i2c_pins>; + pinctrl-names = "default"; + interrupts = <8>; + clocks = <&ahb_clk>; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/st,nomadik-i2c.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/st,nomadik-i2c.yaml index 68fc0b112..44c54b162 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/st,nomadik-i2c.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/i2c/st,nomadik-i2c.yaml @@ -1,152 +1,152 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/i2c/st,nomadik-i2c.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ST Microelectronics Nomadik I2C - -description: The Nomadik I2C host controller began its life in the ST - Microelectronics STn8800 SoC, and was then inherited into STn8810 and - STn8815. It was part of the prototype STn8500 which then became ST-Ericsson - DB8500 after the merge of these two companies wireless divisions. - -maintainers: - - Linus Walleij - -# Need a custom select here or 'arm,primecell' will match on lots of nodes -select: - properties: - compatible: - contains: - enum: - - st,nomadik-i2c - - mobileye,eyeq5-i2c - required: - - compatible - -properties: - compatible: - oneOf: - - items: - - const: st,nomadik-i2c - - const: arm,primecell - - items: - - const: stericsson,db8500-i2c - - const: st,nomadik-i2c - - const: arm,primecell - - items: - - const: mobileye,eyeq5-i2c - - const: arm,primecell - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - maxItems: 2 - - clock-names: - oneOf: - # Clock name in STn8815 - - items: - - const: mclk - - const: apb_pclk - # Clock name in DB8500 or EyeQ5 - - items: - - const: i2cclk - - const: apb_pclk - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - clock-frequency: - minimum: 1 - maximum: 400000 - - mobileye,olb: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - - items: - - description: Phandle to OLB system controller node. - - description: Platform-wide controller ID (integer starting from zero). - description: - The phandle pointing to OLB system controller node, with the I2C - controller index. - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - -unevaluatedProperties: false - -allOf: - - $ref: /schemas/i2c/i2c-controller.yaml# - - if: - properties: - compatible: - contains: - const: mobileye,eyeq5-i2c - then: - required: - - mobileye,olb - else: - properties: - mobileye,olb: false - -examples: - - | - #include - #include - #include - #include - i2c@80004000 { - compatible = "stericsson,db8500-i2c", "st,nomadik-i2c", "arm,primecell"; - reg = <0x80004000 0x1000>; - interrupts = ; - - #address-cells = <1>; - #size-cells = <0>; - - clock-frequency = <400000>; - clocks = <&prcc_kclk 3 3>, <&prcc_pclk 3 3>; - clock-names = "i2cclk", "apb_pclk"; - power-domains = <&pm_domains DOMAIN_VAPE>; - resets = <&prcc_reset DB8500_PRCC_3 DB8500_PRCC_3_RESET_I2C0>; - }; - - i2c@101f8000 { - compatible = "st,nomadik-i2c", "arm,primecell"; - reg = <0x101f8000 0x1000>; - interrupt-parent = <&vica>; - interrupts = <20>; - clock-frequency = <100000>; - #address-cells = <1>; - #size-cells = <0>; - clocks = <&i2c0clk>, <&pclki2c0>; - clock-names = "mclk", "apb_pclk"; - }; - - | - #include - i2c@300000 { - compatible = "mobileye,eyeq5-i2c", "arm,primecell"; - reg = <0x300000 0x1000>; - interrupt-parent = <&gic>; - interrupts = ; - clock-frequency = <400000>; - #address-cells = <1>; - #size-cells = <0>; - clocks = <&i2c_ser_clk>, <&i2c_clk>; - clock-names = "i2cclk", "apb_pclk"; - mobileye,olb = <&olb 0>; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/st,nomadik-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ST Microelectronics Nomadik I2C + +description: The Nomadik I2C host controller began its life in the ST + Microelectronics STn8800 SoC, and was then inherited into STn8810 and + STn8815. It was part of the prototype STn8500 which then became ST-Ericsson + DB8500 after the merge of these two companies wireless divisions. + +maintainers: + - Linus Walleij + +# Need a custom select here or 'arm,primecell' will match on lots of nodes +select: + properties: + compatible: + contains: + enum: + - st,nomadik-i2c + - mobileye,eyeq5-i2c + required: + - compatible + +properties: + compatible: + oneOf: + - items: + - const: st,nomadik-i2c + - const: arm,primecell + - items: + - const: stericsson,db8500-i2c + - const: st,nomadik-i2c + - const: arm,primecell + - items: + - const: mobileye,eyeq5-i2c + - const: arm,primecell + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + oneOf: + # Clock name in STn8815 + - items: + - const: mclk + - const: apb_pclk + # Clock name in DB8500 or EyeQ5 + - items: + - const: i2cclk + - const: apb_pclk + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + clock-frequency: + minimum: 1 + maximum: 400000 + + mobileye,olb: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: Phandle to OLB system controller node. + - description: Platform-wide controller ID (integer starting from zero). + description: + The phandle pointing to OLB system controller node, with the I2C + controller index. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +unevaluatedProperties: false + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + - if: + properties: + compatible: + contains: + const: mobileye,eyeq5-i2c + then: + required: + - mobileye,olb + else: + properties: + mobileye,olb: false + +examples: + - | + #include + #include + #include + #include + i2c@80004000 { + compatible = "stericsson,db8500-i2c", "st,nomadik-i2c", "arm,primecell"; + reg = <0x80004000 0x1000>; + interrupts = ; + + #address-cells = <1>; + #size-cells = <0>; + + clock-frequency = <400000>; + clocks = <&prcc_kclk 3 3>, <&prcc_pclk 3 3>; + clock-names = "i2cclk", "apb_pclk"; + power-domains = <&pm_domains DOMAIN_VAPE>; + resets = <&prcc_reset DB8500_PRCC_3 DB8500_PRCC_3_RESET_I2C0>; + }; + + i2c@101f8000 { + compatible = "st,nomadik-i2c", "arm,primecell"; + reg = <0x101f8000 0x1000>; + interrupt-parent = <&vica>; + interrupts = <20>; + clock-frequency = <100000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&i2c0clk>, <&pclki2c0>; + clock-names = "mclk", "apb_pclk"; + }; + - | + #include + i2c@300000 { + compatible = "mobileye,eyeq5-i2c", "arm,primecell"; + reg = <0x300000 0x1000>; + interrupt-parent = <&gic>; + interrupts = ; + clock-frequency = <400000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&i2c_ser_clk>, <&i2c_clk>; + clock-names = "i2cclk", "apb_pclk"; + mobileye,olb = <&olb 0>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/accel/lis302.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/accel/lis302.txt index f7588586b..457539647 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/accel/lis302.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/accel/lis302.txt @@ -1,119 +1,119 @@ -LIS302 accelerometer devicetree bindings - -This device is matched via its bus drivers, and has a number of properties -that apply in on the generic device (independent from the bus). - - -Required properties for the SPI bindings: - - compatible: should be set to "st,lis3lv02d-spi" - - reg: the chipselect index - - spi-max-frequency: maximal bus speed, should be set to 1000000 unless - constrained by external circuitry - - interrupts: the interrupt generated by the device - -Required properties for the I2C bindings: - - compatible: should be set to "st,lis3lv02d" - - reg: i2c slave address - - Vdd-supply: The input supply for Vdd - - Vdd_IO-supply: The input supply for Vdd_IO - - -Optional properties for all bus drivers: - - - st,click-single-{x,y,z}: if present, tells the device to issue an - interrupt on single click events on the - x/y/z axis. - - st,click-double-{x,y,z}: if present, tells the device to issue an - interrupt on double click events on the - x/y/z axis. - - st,click-thresh-{x,y,z}: set the x/y/z axis threshold - - st,click-click-time-limit: click time limit, from 0 to 127.5msec - with step of 0.5 msec - - st,click-latency: click latency, from 0 to 255 msec with - step of 1 msec. - - st,click-window: click window, from 0 to 255 msec with - step of 1 msec. - - st,irq{1,2}-disable: disable IRQ 1/2 - - st,irq{1,2}-ff-wu-1: raise IRQ 1/2 on FF_WU_1 condition - - st,irq{1,2}-ff-wu-2: raise IRQ 1/2 on FF_WU_2 condition - - st,irq{1,2}-data-ready: raise IRQ 1/2 on data ready condition - - st,irq{1,2}-click: raise IRQ 1/2 on click condition - - st,irq-open-drain: consider IRQ lines open-drain - - st,irq-active-low: make IRQ lines active low - - st,wu-duration-1: duration register for Free-Fall/Wake-Up - interrupt 1 - - st,wu-duration-2: duration register for Free-Fall/Wake-Up - interrupt 2 - - st,wakeup-{x,y,z}-{lo,hi}: set wakeup condition on x/y/z axis for - upper/lower limit - - st,wakeup-threshold: set wakeup threshold - - st,wakeup2-{x,y,z}-{lo,hi}: set wakeup condition on x/y/z axis for - upper/lower limit for second wakeup - engine. - - st,wakeup2-threshold: set wakeup threshold for second wakeup - engine. - - st,highpass-cutoff-hz=: 1, 2, 4 or 8 for 1Hz, 2Hz, 4Hz or 8Hz of - highpass cut-off frequency - - st,hipass{1,2}-disable: disable highpass 1/2. - - st,default-rate=: set the default rate - - st,axis-{x,y,z}=: set the axis to map to the three coordinates. - Negative values can be used for inverted axis. - - st,{min,max}-limit-{x,y,z} set the min/max limits for x/y/z axis - (used by self-test) - - -Example for a SPI device node: - - accelerometer@0 { - compatible = "st,lis302dl-spi"; - reg = <0>; - spi-max-frequency = <1000000>; - interrupt-parent = <&gpio>; - interrupts = <104 0>; - - st,click-single-x; - st,click-single-y; - st,click-single-z; - st,click-thresh-x = <10>; - st,click-thresh-y = <10>; - st,click-thresh-z = <10>; - st,irq1-click; - st,irq2-click; - st,wakeup-x-lo; - st,wakeup-x-hi; - st,wakeup-y-lo; - st,wakeup-y-hi; - st,wakeup-z-lo; - st,wakeup-z-hi; - }; - -Example for a I2C device node: - - lis331dlh: accelerometer@18 { - compatible = "st,lis331dlh", "st,lis3lv02d"; - reg = <0x18>; - Vdd-supply = <&lis3_reg>; - Vdd_IO-supply = <&lis3_reg>; - - st,click-single-x; - st,click-single-y; - st,click-single-z; - st,click-thresh-x = <10>; - st,click-thresh-y = <10>; - st,click-thresh-z = <10>; - st,irq1-click; - st,irq2-click; - st,wakeup-x-lo; - st,wakeup-x-hi; - st,wakeup-y-lo; - st,wakeup-y-hi; - st,wakeup-z-lo; - st,wakeup-z-hi; - st,min-limit-x = <120>; - st,min-limit-y = <120>; - st,min-limit-z = <140>; - st,max-limit-x = <550>; - st,max-limit-y = <550>; - st,max-limit-z = <750>; - }; - +LIS302 accelerometer devicetree bindings + +This device is matched via its bus drivers, and has a number of properties +that apply in on the generic device (independent from the bus). + + +Required properties for the SPI bindings: + - compatible: should be set to "st,lis3lv02d-spi" + - reg: the chipselect index + - spi-max-frequency: maximal bus speed, should be set to 1000000 unless + constrained by external circuitry + - interrupts: the interrupt generated by the device + +Required properties for the I2C bindings: + - compatible: should be set to "st,lis3lv02d" + - reg: i2c slave address + - Vdd-supply: The input supply for Vdd + - Vdd_IO-supply: The input supply for Vdd_IO + + +Optional properties for all bus drivers: + + - st,click-single-{x,y,z}: if present, tells the device to issue an + interrupt on single click events on the + x/y/z axis. + - st,click-double-{x,y,z}: if present, tells the device to issue an + interrupt on double click events on the + x/y/z axis. + - st,click-thresh-{x,y,z}: set the x/y/z axis threshold + - st,click-click-time-limit: click time limit, from 0 to 127.5msec + with step of 0.5 msec + - st,click-latency: click latency, from 0 to 255 msec with + step of 1 msec. + - st,click-window: click window, from 0 to 255 msec with + step of 1 msec. + - st,irq{1,2}-disable: disable IRQ 1/2 + - st,irq{1,2}-ff-wu-1: raise IRQ 1/2 on FF_WU_1 condition + - st,irq{1,2}-ff-wu-2: raise IRQ 1/2 on FF_WU_2 condition + - st,irq{1,2}-data-ready: raise IRQ 1/2 on data ready condition + - st,irq{1,2}-click: raise IRQ 1/2 on click condition + - st,irq-open-drain: consider IRQ lines open-drain + - st,irq-active-low: make IRQ lines active low + - st,wu-duration-1: duration register for Free-Fall/Wake-Up + interrupt 1 + - st,wu-duration-2: duration register for Free-Fall/Wake-Up + interrupt 2 + - st,wakeup-{x,y,z}-{lo,hi}: set wakeup condition on x/y/z axis for + upper/lower limit + - st,wakeup-threshold: set wakeup threshold + - st,wakeup2-{x,y,z}-{lo,hi}: set wakeup condition on x/y/z axis for + upper/lower limit for second wakeup + engine. + - st,wakeup2-threshold: set wakeup threshold for second wakeup + engine. + - st,highpass-cutoff-hz=: 1, 2, 4 or 8 for 1Hz, 2Hz, 4Hz or 8Hz of + highpass cut-off frequency + - st,hipass{1,2}-disable: disable highpass 1/2. + - st,default-rate=: set the default rate + - st,axis-{x,y,z}=: set the axis to map to the three coordinates. + Negative values can be used for inverted axis. + - st,{min,max}-limit-{x,y,z} set the min/max limits for x/y/z axis + (used by self-test) + + +Example for a SPI device node: + + accelerometer@0 { + compatible = "st,lis302dl-spi"; + reg = <0>; + spi-max-frequency = <1000000>; + interrupt-parent = <&gpio>; + interrupts = <104 0>; + + st,click-single-x; + st,click-single-y; + st,click-single-z; + st,click-thresh-x = <10>; + st,click-thresh-y = <10>; + st,click-thresh-z = <10>; + st,irq1-click; + st,irq2-click; + st,wakeup-x-lo; + st,wakeup-x-hi; + st,wakeup-y-lo; + st,wakeup-y-hi; + st,wakeup-z-lo; + st,wakeup-z-hi; + }; + +Example for a I2C device node: + + lis331dlh: accelerometer@18 { + compatible = "st,lis331dlh", "st,lis3lv02d"; + reg = <0x18>; + Vdd-supply = <&lis3_reg>; + Vdd_IO-supply = <&lis3_reg>; + + st,click-single-x; + st,click-single-y; + st,click-single-z; + st,click-thresh-x = <10>; + st,click-thresh-y = <10>; + st,click-thresh-z = <10>; + st,irq1-click; + st,irq2-click; + st,wakeup-x-lo; + st,wakeup-x-hi; + st,wakeup-y-lo; + st,wakeup-y-hi; + st,wakeup-z-lo; + st,wakeup-z-hi; + st,min-limit-x = <120>; + st,min-limit-y = <120>; + st,min-limit-z = <140>; + st,max-limit-x = <550>; + st,max-limit-y = <550>; + st,max-limit-z = <750>; + }; + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml index 3858f3deb..35ed04350 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml @@ -1,157 +1,157 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -# Copyright 2019 Analog Devices Inc. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/adc/adi,ad7124.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Analog Devices AD7124 ADC device driver - -maintainers: - - Stefan Popa - -description: | - Bindings for the Analog Devices AD7124 ADC device. Datasheet can be - found here: - https://www.analog.com/media/en/technical-documentation/data-sheets/AD7124-8.pdf - -properties: - compatible: - enum: - - adi,ad7124-4 - - adi,ad7124-8 - - reg: - description: SPI chip select number for the device - maxItems: 1 - - clocks: - maxItems: 1 - description: phandle to the master clock (mclk) - - clock-names: - items: - - const: mclk - - interrupts: - description: IRQ line for the ADC - maxItems: 1 - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - - refin1-supply: - description: refin1 supply can be used as reference for conversion. - - refin2-supply: - description: refin2 supply can be used as reference for conversion. - - avdd-supply: - description: avdd supply can be used as reference for conversion. - -required: - - compatible - - reg - - clocks - - clock-names - - interrupts - -patternProperties: - "^channel@([0-9]|1[0-5])$": - $ref: adc.yaml - type: object - description: | - Represents the external channels which are connected to the ADC. - - properties: - reg: - description: | - The channel number. It can have up to 8 channels on ad7124-4 - and 16 channels on ad7124-8, numbered from 0 to 15. - items: - minimum: 0 - maximum: 15 - - adi,reference-select: - description: | - Select the reference source to use when converting on - the specific channel. Valid values are: - 0: REFIN1(+)/REFIN1(−). - 1: REFIN2(+)/REFIN2(−). - 3: AVDD - If this field is left empty, internal reference is selected. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1, 3] - - diff-channels: true - - bipolar: true - - adi,buffered-positive: - description: Enable buffered mode for positive input. - type: boolean - - adi,buffered-negative: - description: Enable buffered mode for negative input. - type: boolean - - required: - - reg - - diff-channels - - additionalProperties: false - -allOf: - - $ref: /schemas/spi/spi-peripheral-props.yaml# - -unevaluatedProperties: false - -examples: - - | - spi { - #address-cells = <1>; - #size-cells = <0>; - - adc@0 { - compatible = "adi,ad7124-4"; - reg = <0>; - spi-max-frequency = <5000000>; - interrupts = <25 2>; - interrupt-parent = <&gpio>; - refin1-supply = <&adc_vref>; - clocks = <&ad7124_mclk>; - clock-names = "mclk"; - - #address-cells = <1>; - #size-cells = <0>; - - channel@0 { - reg = <0>; - diff-channels = <0 1>; - adi,reference-select = <0>; - adi,buffered-positive; - }; - - channel@1 { - reg = <1>; - bipolar; - diff-channels = <2 3>; - adi,reference-select = <0>; - adi,buffered-positive; - adi,buffered-negative; - }; - - channel@2 { - reg = <2>; - diff-channels = <4 5>; - }; - - channel@3 { - reg = <3>; - diff-channels = <6 7>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2019 Analog Devices Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad7124.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD7124 ADC device driver + +maintainers: + - Stefan Popa + +description: | + Bindings for the Analog Devices AD7124 ADC device. Datasheet can be + found here: + https://www.analog.com/media/en/technical-documentation/data-sheets/AD7124-8.pdf + +properties: + compatible: + enum: + - adi,ad7124-4 + - adi,ad7124-8 + + reg: + description: SPI chip select number for the device + maxItems: 1 + + clocks: + maxItems: 1 + description: phandle to the master clock (mclk) + + clock-names: + items: + - const: mclk + + interrupts: + description: IRQ line for the ADC + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + refin1-supply: + description: refin1 supply can be used as reference for conversion. + + refin2-supply: + description: refin2 supply can be used as reference for conversion. + + avdd-supply: + description: avdd supply can be used as reference for conversion. + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +patternProperties: + "^channel@([0-9]|1[0-5])$": + $ref: adc.yaml + type: object + description: | + Represents the external channels which are connected to the ADC. + + properties: + reg: + description: | + The channel number. It can have up to 8 channels on ad7124-4 + and 16 channels on ad7124-8, numbered from 0 to 15. + items: + minimum: 0 + maximum: 15 + + adi,reference-select: + description: | + Select the reference source to use when converting on + the specific channel. Valid values are: + 0: REFIN1(+)/REFIN1(−). + 1: REFIN2(+)/REFIN2(−). + 3: AVDD + If this field is left empty, internal reference is selected. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 3] + + diff-channels: true + + bipolar: true + + adi,buffered-positive: + description: Enable buffered mode for positive input. + type: boolean + + adi,buffered-negative: + description: Enable buffered mode for negative input. + type: boolean + + required: + - reg + - diff-channels + + additionalProperties: false + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "adi,ad7124-4"; + reg = <0>; + spi-max-frequency = <5000000>; + interrupts = <25 2>; + interrupt-parent = <&gpio>; + refin1-supply = <&adc_vref>; + clocks = <&ad7124_mclk>; + clock-names = "mclk"; + + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { + reg = <0>; + diff-channels = <0 1>; + adi,reference-select = <0>; + adi,buffered-positive; + }; + + channel@1 { + reg = <1>; + bipolar; + diff-channels = <2 3>; + adi,reference-select = <0>; + adi,buffered-positive; + adi,buffered-negative; + }; + + channel@2 { + reg = <2>; + diff-channels = <4 5>; + }; + + channel@3 { + reg = <3>; + diff-channels = <6 7>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml index 828387031..0065d6508 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml @@ -1,182 +1,182 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/adc/adi,ad7380.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Analog Devices Simultaneous Sampling Analog to Digital Converters - -maintainers: - - Michael Hennerich - - Nuno Sá - -description: | - * https://www.analog.com/en/products/ad7380.html - * https://www.analog.com/en/products/ad7381.html - * https://www.analog.com/en/products/ad7383.html - * https://www.analog.com/en/products/ad7384.html - * https://www.analog.com/en/products/ad7386.html - * https://www.analog.com/en/products/ad7387.html - * https://www.analog.com/en/products/ad7388.html - * https://www.analog.com/en/products/ad7380-4.html - * https://www.analog.com/en/products/ad7381-4.html - * https://www.analog.com/en/products/ad7383-4.html - * https://www.analog.com/en/products/ad7384-4.html - * https://www.analog.com/en/products/ad7386-4.html - * https://www.analog.com/en/products/ad7387-4.html - * https://www.analog.com/en/products/ad7388-4.html - - -$ref: /schemas/spi/spi-peripheral-props.yaml# - -properties: - compatible: - enum: - - adi,ad7380 - - adi,ad7381 - - adi,ad7383 - - adi,ad7384 - - adi,ad7386 - - adi,ad7387 - - adi,ad7388 - - adi,ad7380-4 - - adi,ad7381-4 - - adi,ad7383-4 - - adi,ad7384-4 - - adi,ad7386-4 - - adi,ad7387-4 - - adi,ad7388-4 - - reg: - maxItems: 1 - - spi-max-frequency: - maximum: 80000000 - spi-cpol: true - spi-cpha: true - - vcc-supply: - description: A 3V to 3.6V supply that powers the chip. - - vlogic-supply: - description: - A 1.65V to 3.6V supply for the logic pins. - - refio-supply: - description: - A 2.5V to 3.3V supply for the external reference voltage. When omitted, - the internal 2.5V reference is used. - - refin-supply: - description: - A 2.5V to 3.3V supply for external reference voltage, for ad7380-4 only. - - aina-supply: - description: - The common mode voltage supply for the AINA- pin on pseudo-differential - chips. - - ainb-supply: - description: - The common mode voltage supply for the AINB- pin on pseudo-differential - chips. - - ainc-supply: - description: - The common mode voltage supply for the AINC- pin on pseudo-differential - chips. - - aind-supply: - description: - The common mode voltage supply for the AIND- pin on pseudo-differential - chips. - - interrupts: - description: - When the device is using 1-wire mode, this property is used to optionally - specify the ALERT interrupt. - maxItems: 1 - -required: - - compatible - - reg - - vcc-supply - - vlogic-supply - -unevaluatedProperties: false - -allOf: - # pseudo-differential chips require common mode voltage supplies, - # true differential chips don't use them - - if: - properties: - compatible: - enum: - - adi,ad7383 - - adi,ad7384 - - adi,ad7383-4 - - adi,ad7384-4 - then: - required: - - aina-supply - - ainb-supply - else: - properties: - aina-supply: false - ainb-supply: false - - if: - properties: - compatible: - enum: - - adi,ad7383-4 - - adi,ad7384-4 - then: - required: - - ainc-supply - - aind-supply - else: - properties: - ainc-supply: false - aind-supply: false - - # ad7380-4 uses refin-supply as external reference. - # All other chips from ad738x family use refio as optional external reference. - # When refio-supply is omitted, internal reference is used. - - if: - properties: - compatible: - enum: - - adi,ad7380-4 - then: - properties: - refio-supply: false - required: - - refin-supply - else: - properties: - refin-supply: false - -examples: - - | - #include - - spi { - #address-cells = <1>; - #size-cells = <0>; - - adc@0 { - compatible = "adi,ad7380"; - reg = <0>; - - spi-cpol; - spi-cpha; - spi-max-frequency = <80000000>; - - interrupts = <27 IRQ_TYPE_EDGE_FALLING>; - interrupt-parent = <&gpio0>; - - vcc-supply = <&supply_3_3V>; - vlogic-supply = <&supply_3_3V>; - refio-supply = <&supply_2_5V>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad7380.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices Simultaneous Sampling Analog to Digital Converters + +maintainers: + - Michael Hennerich + - Nuno Sá + +description: | + * https://www.analog.com/en/products/ad7380.html + * https://www.analog.com/en/products/ad7381.html + * https://www.analog.com/en/products/ad7383.html + * https://www.analog.com/en/products/ad7384.html + * https://www.analog.com/en/products/ad7386.html + * https://www.analog.com/en/products/ad7387.html + * https://www.analog.com/en/products/ad7388.html + * https://www.analog.com/en/products/ad7380-4.html + * https://www.analog.com/en/products/ad7381-4.html + * https://www.analog.com/en/products/ad7383-4.html + * https://www.analog.com/en/products/ad7384-4.html + * https://www.analog.com/en/products/ad7386-4.html + * https://www.analog.com/en/products/ad7387-4.html + * https://www.analog.com/en/products/ad7388-4.html + + +$ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + enum: + - adi,ad7380 + - adi,ad7381 + - adi,ad7383 + - adi,ad7384 + - adi,ad7386 + - adi,ad7387 + - adi,ad7388 + - adi,ad7380-4 + - adi,ad7381-4 + - adi,ad7383-4 + - adi,ad7384-4 + - adi,ad7386-4 + - adi,ad7387-4 + - adi,ad7388-4 + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 80000000 + spi-cpol: true + spi-cpha: true + + vcc-supply: + description: A 3V to 3.6V supply that powers the chip. + + vlogic-supply: + description: + A 1.65V to 3.6V supply for the logic pins. + + refio-supply: + description: + A 2.5V to 3.3V supply for the external reference voltage. When omitted, + the internal 2.5V reference is used. + + refin-supply: + description: + A 2.5V to 3.3V supply for external reference voltage, for ad7380-4 only. + + aina-supply: + description: + The common mode voltage supply for the AINA- pin on pseudo-differential + chips. + + ainb-supply: + description: + The common mode voltage supply for the AINB- pin on pseudo-differential + chips. + + ainc-supply: + description: + The common mode voltage supply for the AINC- pin on pseudo-differential + chips. + + aind-supply: + description: + The common mode voltage supply for the AIND- pin on pseudo-differential + chips. + + interrupts: + description: + When the device is using 1-wire mode, this property is used to optionally + specify the ALERT interrupt. + maxItems: 1 + +required: + - compatible + - reg + - vcc-supply + - vlogic-supply + +unevaluatedProperties: false + +allOf: + # pseudo-differential chips require common mode voltage supplies, + # true differential chips don't use them + - if: + properties: + compatible: + enum: + - adi,ad7383 + - adi,ad7384 + - adi,ad7383-4 + - adi,ad7384-4 + then: + required: + - aina-supply + - ainb-supply + else: + properties: + aina-supply: false + ainb-supply: false + - if: + properties: + compatible: + enum: + - adi,ad7383-4 + - adi,ad7384-4 + then: + required: + - ainc-supply + - aind-supply + else: + properties: + ainc-supply: false + aind-supply: false + + # ad7380-4 uses refin-supply as external reference. + # All other chips from ad738x family use refio as optional external reference. + # When refio-supply is omitted, internal reference is used. + - if: + properties: + compatible: + enum: + - adi,ad7380-4 + then: + properties: + refio-supply: false + required: + - refin-supply + else: + properties: + refin-supply: false + +examples: + - | + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "adi,ad7380"; + reg = <0>; + + spi-cpol; + spi-cpha; + spi-max-frequency = <80000000>; + + interrupts = <27 IRQ_TYPE_EDGE_FALLING>; + interrupt-parent = <&gpio0>; + + vcc-supply = <&supply_3_3V>; + vlogic-supply = <&supply_3_3V>; + refio-supply = <&supply_2_5V>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/adi,ad7476.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/adi,ad7476.yaml index cbf8e2b13..44c671eed 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/adi,ad7476.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/adi,ad7476.yaml @@ -1,175 +1,175 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -# Copyright 2019 Analog Devices Inc. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/adc/adi,ad7476.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: AD7476 and similar simple SPI ADCs from multiple manufacturers. - -maintainers: - - Michael Hennerich - -description: | - A lot of simple SPI ADCs have very straight forward interfaces. - They typically don't provide a MOSI pin, simply reading out data - on MISO when the clock toggles. - -properties: - compatible: - enum: - - adi,ad7091 - - adi,ad7091r - - adi,ad7273 - - adi,ad7274 - - adi,ad7276 - - adi,ad7277 - - adi,ad7278 - - adi,ad7466 - - adi,ad7467 - - adi,ad7468 - - adi,ad7475 - - adi,ad7476 - - adi,ad7476a - - adi,ad7477 - - adi,ad7477a - - adi,ad7478 - - adi,ad7478a - - adi,ad7495 - - adi,ad7910 - - adi,ad7920 - - adi,ad7940 - - ti,adc081s - - ti,adc101s - - ti,adc121s - - ti,ads7866 - - ti,ads7867 - - ti,ads7868 - - lltc,ltc2314-14 - - reg: - maxItems: 1 - - vcc-supply: - description: - Main powersupply voltage for the chips, sometimes referred to as VDD on - datasheets. If there is no separate vref-supply, then this is needed - to establish channel scaling. - - vdrive-supply: - description: - Some devices have separate supply for their digital control side. - - vref-supply: - description: - Some devices have a specific reference voltage supplied on a different pin - to the other supplies. Needed to be able to establish channel scaling - unless there is also an internal reference available (e.g. ad7091r) - - adi,conversion-start-gpios: - description: A GPIO used to trigger the start of a conversion - maxItems: 1 - -required: - - compatible - - reg - -allOf: - - $ref: /schemas/spi/spi-peripheral-props.yaml# - - # Devices where reference is vcc - - if: - properties: - compatible: - contains: - enum: - - adi,ad7091 - - adi,ad7276 - - adi,ad7277 - - adi,ad7278 - - adi,ad7466 - - adi,ad7467 - - adi,ad7468 - - adi,ad7940 - - ti,adc081s - - ti,adc101s - - ti,adc121s - - ti,ads7866 - - ti,ads7868 - then: - required: - - vcc-supply - # Devices with a vref - - if: - properties: - compatible: - contains: - enum: - - adi,ad7091r - - adi,ad7273 - - adi,ad7274 - - adi,ad7475 - - lltc,ltc2314-14 - then: - properties: - vref-supply: true - else: - properties: - vref-supply: false - # Devices with a vref where it is not optional - - if: - properties: - compatible: - contains: - enum: - - adi,ad7273 - - adi,ad7274 - - adi,ad7475 - - lltc,ltc2314-14 - then: - required: - - vref-supply - - if: - properties: - compatible: - contains: - enum: - - adi,ad7475 - - adi,ad7495 - then: - properties: - vdrive-supply: true - else: - properties: - vdrive-supply: false - - if: - properties: - compatible: - contains: - enum: - - adi,ad7091 - - adi,ad7091r - then: - properties: - adi,conversion-start-gpios: true - else: - properties: - adi,conversion-start-gpios: false - -unevaluatedProperties: false - -examples: - - | - spi { - #address-cells = <1>; - #size-cells = <0>; - - adc@0 { - compatible = "adi,ad7091r"; - reg = <0>; - spi-max-frequency = <5000000>; - vcc-supply = <&adc_vcc>; - vref-supply = <&adc_vref>; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2019 Analog Devices Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad7476.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AD7476 and similar simple SPI ADCs from multiple manufacturers. + +maintainers: + - Michael Hennerich + +description: | + A lot of simple SPI ADCs have very straight forward interfaces. + They typically don't provide a MOSI pin, simply reading out data + on MISO when the clock toggles. + +properties: + compatible: + enum: + - adi,ad7091 + - adi,ad7091r + - adi,ad7273 + - adi,ad7274 + - adi,ad7276 + - adi,ad7277 + - adi,ad7278 + - adi,ad7466 + - adi,ad7467 + - adi,ad7468 + - adi,ad7475 + - adi,ad7476 + - adi,ad7476a + - adi,ad7477 + - adi,ad7477a + - adi,ad7478 + - adi,ad7478a + - adi,ad7495 + - adi,ad7910 + - adi,ad7920 + - adi,ad7940 + - ti,adc081s + - ti,adc101s + - ti,adc121s + - ti,ads7866 + - ti,ads7867 + - ti,ads7868 + - lltc,ltc2314-14 + + reg: + maxItems: 1 + + vcc-supply: + description: + Main powersupply voltage for the chips, sometimes referred to as VDD on + datasheets. If there is no separate vref-supply, then this is needed + to establish channel scaling. + + vdrive-supply: + description: + Some devices have separate supply for their digital control side. + + vref-supply: + description: + Some devices have a specific reference voltage supplied on a different pin + to the other supplies. Needed to be able to establish channel scaling + unless there is also an internal reference available (e.g. ad7091r) + + adi,conversion-start-gpios: + description: A GPIO used to trigger the start of a conversion + maxItems: 1 + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + + # Devices where reference is vcc + - if: + properties: + compatible: + contains: + enum: + - adi,ad7091 + - adi,ad7276 + - adi,ad7277 + - adi,ad7278 + - adi,ad7466 + - adi,ad7467 + - adi,ad7468 + - adi,ad7940 + - ti,adc081s + - ti,adc101s + - ti,adc121s + - ti,ads7866 + - ti,ads7868 + then: + required: + - vcc-supply + # Devices with a vref + - if: + properties: + compatible: + contains: + enum: + - adi,ad7091r + - adi,ad7273 + - adi,ad7274 + - adi,ad7475 + - lltc,ltc2314-14 + then: + properties: + vref-supply: true + else: + properties: + vref-supply: false + # Devices with a vref where it is not optional + - if: + properties: + compatible: + contains: + enum: + - adi,ad7273 + - adi,ad7274 + - adi,ad7475 + - lltc,ltc2314-14 + then: + required: + - vref-supply + - if: + properties: + compatible: + contains: + enum: + - adi,ad7475 + - adi,ad7495 + then: + properties: + vdrive-supply: true + else: + properties: + vdrive-supply: false + - if: + properties: + compatible: + contains: + enum: + - adi,ad7091 + - adi,ad7091r + then: + properties: + adi,conversion-start-gpios: true + else: + properties: + adi,conversion-start-gpios: false + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "adi,ad7091r"; + reg = <0>; + spi-max-frequency = <5000000>; + vcc-supply = <&adc_vcc>; + vref-supply = <&adc_vref>; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/adi,max11410.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/adi,max11410.yaml index feaa0a1ff..53f9feff1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/adi,max11410.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/adi,max11410.yaml @@ -1,177 +1,177 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -# Copyright 2022 Analog Devices Inc. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/adc/adi,max11410.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Analog Devices MAX11410 ADC device driver - -maintainers: - - Ibrahim Tilki - -description: | - Bindings for the Analog Devices MAX11410 ADC device. Datasheet can be - found here: - https://datasheets.maximintegrated.com/en/ds/MAX11410.pdf - -properties: - compatible: - enum: - - adi,max11410 - - reg: - maxItems: 1 - - interrupts: - minItems: 1 - maxItems: 2 - - interrupt-names: - description: Name of the gpio pin of max11410 used for IRQ - minItems: 1 - items: - - enum: [gpio0, gpio1] - - const: gpio1 - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - - avdd-supply: - description: Optional avdd supply. Used as reference when no explicit reference supplied. - - vref0p-supply: - description: vref0p supply can be used as reference for conversion. - - vref1p-supply: - description: vref1p supply can be used as reference for conversion. - - vref2p-supply: - description: vref2p supply can be used as reference for conversion. - - vref0n-supply: - description: vref0n supply can be used as reference for conversion. - - vref1n-supply: - description: vref1n supply can be used as reference for conversion. - - vref2n-supply: - description: vref2n supply can be used as reference for conversion. - - spi-max-frequency: - maximum: 8000000 - -patternProperties: - "^channel(@[0-9])?$": - $ref: adc.yaml - type: object - description: Represents the external channels which are connected to the ADC. - - properties: - reg: - description: The channel number in single-ended mode. - minimum: 0 - maximum: 9 - - adi,reference: - description: | - Select the reference source to use when converting on - the specific channel. Valid values are: - 0: VREF0P/VREF0N - 1: VREF1P/VREF1N - 2: VREF2P/VREF2N - 3: AVDD/AGND - 4: VREF0P/AGND - 5: VREF1P/AGND - 6: VREF2P/AGND - If this field is left empty, AVDD/AGND is selected. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1, 2, 3, 4, 5, 6] - default: 3 - - adi,input-mode: - description: | - Select signal path of input channels. Valid values are: - 0: Buffered, low-power, unity-gain path (default) - 1: Bypass path - 2: PGA path - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1, 2] - default: 0 - - diff-channels: true - - bipolar: true - - settling-time-us: true - - adi,buffered-vrefp: - description: Enable buffered mode for positive reference. - type: boolean - - adi,buffered-vrefn: - description: Enable buffered mode for negative reference. - type: boolean - - required: - - reg - - additionalProperties: false - -required: - - compatible - - reg - -allOf: - - $ref: /schemas/spi/spi-peripheral-props.yaml# - -unevaluatedProperties: false - -examples: - - | - #include - spi { - #address-cells = <1>; - #size-cells = <0>; - - adc@0 { - reg = <0>; - compatible = "adi,max11410"; - spi-max-frequency = <8000000>; - - interrupt-parent = <&gpio>; - interrupts = <25 IRQ_TYPE_EDGE_FALLING>; - interrupt-names = "gpio1"; - - avdd-supply = <&adc_avdd>; - - vref1p-supply = <&adc_vref1p>; - vref1n-supply = <&adc_vref1n>; - - #address-cells = <1>; - #size-cells = <0>; - - channel@0 { - reg = <0>; - }; - - channel@1 { - reg = <1>; - diff-channels = <2 3>; - adi,reference = <1>; - bipolar; - settling-time-us = <100000>; - }; - - channel@2 { - reg = <2>; - diff-channels = <7 9>; - adi,reference = <5>; - adi,input-mode = <2>; - settling-time-us = <50000>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2022 Analog Devices Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,max11410.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices MAX11410 ADC device driver + +maintainers: + - Ibrahim Tilki + +description: | + Bindings for the Analog Devices MAX11410 ADC device. Datasheet can be + found here: + https://datasheets.maximintegrated.com/en/ds/MAX11410.pdf + +properties: + compatible: + enum: + - adi,max11410 + + reg: + maxItems: 1 + + interrupts: + minItems: 1 + maxItems: 2 + + interrupt-names: + description: Name of the gpio pin of max11410 used for IRQ + minItems: 1 + items: + - enum: [gpio0, gpio1] + - const: gpio1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + avdd-supply: + description: Optional avdd supply. Used as reference when no explicit reference supplied. + + vref0p-supply: + description: vref0p supply can be used as reference for conversion. + + vref1p-supply: + description: vref1p supply can be used as reference for conversion. + + vref2p-supply: + description: vref2p supply can be used as reference for conversion. + + vref0n-supply: + description: vref0n supply can be used as reference for conversion. + + vref1n-supply: + description: vref1n supply can be used as reference for conversion. + + vref2n-supply: + description: vref2n supply can be used as reference for conversion. + + spi-max-frequency: + maximum: 8000000 + +patternProperties: + "^channel(@[0-9])?$": + $ref: adc.yaml + type: object + description: Represents the external channels which are connected to the ADC. + + properties: + reg: + description: The channel number in single-ended mode. + minimum: 0 + maximum: 9 + + adi,reference: + description: | + Select the reference source to use when converting on + the specific channel. Valid values are: + 0: VREF0P/VREF0N + 1: VREF1P/VREF1N + 2: VREF2P/VREF2N + 3: AVDD/AGND + 4: VREF0P/AGND + 5: VREF1P/AGND + 6: VREF2P/AGND + If this field is left empty, AVDD/AGND is selected. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 3, 4, 5, 6] + default: 3 + + adi,input-mode: + description: | + Select signal path of input channels. Valid values are: + 0: Buffered, low-power, unity-gain path (default) + 1: Bypass path + 2: PGA path + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2] + default: 0 + + diff-channels: true + + bipolar: true + + settling-time-us: true + + adi,buffered-vrefp: + description: Enable buffered mode for positive reference. + type: boolean + + adi,buffered-vrefn: + description: Enable buffered mode for negative reference. + type: boolean + + required: + - reg + + additionalProperties: false + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + reg = <0>; + compatible = "adi,max11410"; + spi-max-frequency = <8000000>; + + interrupt-parent = <&gpio>; + interrupts = <25 IRQ_TYPE_EDGE_FALLING>; + interrupt-names = "gpio1"; + + avdd-supply = <&adc_avdd>; + + vref1p-supply = <&adc_vref1p>; + vref1n-supply = <&adc_vref1n>; + + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { + reg = <0>; + }; + + channel@1 { + reg = <1>; + diff-channels = <2 3>; + adi,reference = <1>; + bipolar; + settling-time-us = <100000>; + }; + + channel@2 { + reg = <2>; + diff-channels = <7 9>; + adi,reference = <5>; + adi,input-mode = <2>; + settling-time-us = <50000>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.yaml index 717c3aaba..f748f3a60 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.yaml @@ -1,151 +1,151 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/adc/amlogic,meson-saradc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Amlogic Meson SAR (Successive Approximation Register) A/D converter - -maintainers: - - Martin Blumenstingl - -description: - Binding covers a range of ADCs found on Amlogic Meson SoCs. - -properties: - compatible: - oneOf: - - const: amlogic,meson-saradc - - items: - - enum: - - amlogic,meson8-saradc - - amlogic,meson8b-saradc - - amlogic,meson8m2-saradc - - amlogic,meson-gxbb-saradc - - amlogic,meson-gxl-saradc - - amlogic,meson-gxm-saradc - - amlogic,meson-axg-saradc - - amlogic,meson-g12a-saradc - - const: amlogic,meson-saradc - - reg: - maxItems: 1 - - interrupts: - description: Interrupt indicates end of sampling. - maxItems: 1 - - clocks: - minItems: 2 - maxItems: 4 - - clock-names: - minItems: 2 - items: - - const: clkin - - const: core - - const: adc_clk - - const: adc_sel - - vref-supply: true - - "#io-channel-cells": - const: 1 - - amlogic,hhi-sysctrl: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Syscon which contains the 5th bit of the TSC (temperature sensor - coefficient) on Meson8b and Meson8m2 (which used to calibrate the - temperature sensor) - - nvmem-cells: - description: phandle to the temperature_calib eFuse cells - maxItems: 1 - - nvmem-cell-names: - const: temperature_calib - - power-domains: - maxItems: 1 - -allOf: - - if: - properties: - compatible: - contains: - enum: - - amlogic,meson8-saradc - - amlogic,meson8b-saradc - - amlogic,meson8m2-saradc - then: - properties: - clocks: - maxItems: 2 - clock-names: - maxItems: 2 - else: - properties: - nvmem-cells: false - mvmem-cel-names: false - clocks: - minItems: 4 - clock-names: - minItems: 4 - - - if: - properties: - compatible: - contains: - enum: - - amlogic,meson8b-saradc - - amlogic,meson8m2-saradc - then: - properties: - amlogic,hhi-sysctrl: true - else: - properties: - amlogic,hhi-sysctrl: false - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - - "#io-channel-cells" - -additionalProperties: false - -examples: - - | - #include - #include - #include - soc { - #address-cells = <2>; - #size-cells = <2>; - adc@8680 { - compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc"; - #io-channel-cells = <1>; - reg = <0x0 0x8680 0x0 0x34>; - interrupts = ; - clocks = <&xtal>, - <&clkc CLKID_SAR_ADC>, - <&clkc CLKID_SAR_ADC_CLK>, - <&clkc CLKID_SAR_ADC_SEL>; - clock-names = "clkin", "core", "adc_clk", "adc_sel"; - }; - adc@9680 { - compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc"; - #io-channel-cells = <1>; - reg = <0x0 0x9680 0x0 0x34>; - interrupts = ; - clocks = <&xtal>, <&clkc CLKID_SAR_ADC>; - clock-names = "clkin", "core"; - nvmem-cells = <&tsens_caldata>; - nvmem-cell-names = "temperature_calib"; - amlogic,hhi-sysctrl = <&hhi>; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/amlogic,meson-saradc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic Meson SAR (Successive Approximation Register) A/D converter + +maintainers: + - Martin Blumenstingl + +description: + Binding covers a range of ADCs found on Amlogic Meson SoCs. + +properties: + compatible: + oneOf: + - const: amlogic,meson-saradc + - items: + - enum: + - amlogic,meson8-saradc + - amlogic,meson8b-saradc + - amlogic,meson8m2-saradc + - amlogic,meson-gxbb-saradc + - amlogic,meson-gxl-saradc + - amlogic,meson-gxm-saradc + - amlogic,meson-axg-saradc + - amlogic,meson-g12a-saradc + - const: amlogic,meson-saradc + + reg: + maxItems: 1 + + interrupts: + description: Interrupt indicates end of sampling. + maxItems: 1 + + clocks: + minItems: 2 + maxItems: 4 + + clock-names: + minItems: 2 + items: + - const: clkin + - const: core + - const: adc_clk + - const: adc_sel + + vref-supply: true + + "#io-channel-cells": + const: 1 + + amlogic,hhi-sysctrl: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Syscon which contains the 5th bit of the TSC (temperature sensor + coefficient) on Meson8b and Meson8m2 (which used to calibrate the + temperature sensor) + + nvmem-cells: + description: phandle to the temperature_calib eFuse cells + maxItems: 1 + + nvmem-cell-names: + const: temperature_calib + + power-domains: + maxItems: 1 + +allOf: + - if: + properties: + compatible: + contains: + enum: + - amlogic,meson8-saradc + - amlogic,meson8b-saradc + - amlogic,meson8m2-saradc + then: + properties: + clocks: + maxItems: 2 + clock-names: + maxItems: 2 + else: + properties: + nvmem-cells: false + mvmem-cel-names: false + clocks: + minItems: 4 + clock-names: + minItems: 4 + + - if: + properties: + compatible: + contains: + enum: + - amlogic,meson8b-saradc + - amlogic,meson8m2-saradc + then: + properties: + amlogic,hhi-sysctrl: true + else: + properties: + amlogic,hhi-sysctrl: false + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - "#io-channel-cells" + +additionalProperties: false + +examples: + - | + #include + #include + #include + soc { + #address-cells = <2>; + #size-cells = <2>; + adc@8680 { + compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc"; + #io-channel-cells = <1>; + reg = <0x0 0x8680 0x0 0x34>; + interrupts = ; + clocks = <&xtal>, + <&clkc CLKID_SAR_ADC>, + <&clkc CLKID_SAR_ADC_CLK>, + <&clkc CLKID_SAR_ADC_SEL>; + clock-names = "clkin", "core", "adc_clk", "adc_sel"; + }; + adc@9680 { + compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc"; + #io-channel-cells = <1>; + reg = <0x0 0x9680 0x0 0x34>; + interrupts = ; + clocks = <&xtal>, <&clkc CLKID_SAR_ADC>; + clock-names = "clkin", "core"; + nvmem-cells = <&tsens_caldata>; + nvmem-cell-names = "temperature_calib"; + amlogic,hhi-sysctrl = <&hhi>; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/maxim,max34408.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/maxim,max34408.yaml index d0ca6f1df..4cba856e8 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/maxim,max34408.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/maxim,max34408.yaml @@ -1,139 +1,139 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/adc/maxim,max34408.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Maxim MAX34408/MAX34409 current monitors with overcurrent control - -maintainers: - - Ivan Mikhaylov - -description: | - The MAX34408/MAX34409 are two- and four-channel current monitors that are - configured and monitored with a standard I2C/SMBus serial interface. Each - unidirectional current sensor offers precision high-side operation with a - low full-scale sense voltage. The devices automatically sequence through - two or four channels and collect the current-sense samples and average them - to reduce the effect of impulse noise. The raw ADC samples are compared to - user-programmable digital thresholds to indicate overcurrent conditions. - Overcurrent conditions trigger a hardware output to provide an immediate - indication to shut down any necessary external circuitry. - - Specifications about the devices can be found at: - https://www.analog.com/media/en/technical-documentation/data-sheets/MAX34408-MAX34409.pdf - -properties: - compatible: - enum: - - maxim,max34408 - - maxim,max34409 - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - powerdown-gpios: - description: - Shutdown Output. Open-drain output. This output transitions to high impedance - when any of the digital comparator thresholds are exceeded as long as the ENA - pin is high. - maxItems: 1 - - powerdown-status-gpios: - description: - SHTDN Enable Input. CMOS digital input. Connect to GND to clear the latch and - unconditionally deassert (force low) the SHTDN output and reset the shutdown - delay. Connect to VDD to enable normal latch operation of the SHTDN output. - maxItems: 1 - - vdd-supply: true - -patternProperties: - "^channel@[0-3]$": - $ref: adc.yaml - type: object - description: - Represents the internal channels of the ADC. - - properties: - reg: - items: - - minimum: 0 - maximum: 3 - - maxim,rsense-val-micro-ohms: - description: - Adjust the Rsense value to monitor higher or lower current levels for - input. - enum: [250, 500, 1000, 5000, 10000, 50000, 100000, 200000, 500000] - default: 1000 - - required: - - reg - - maxim,rsense-val-micro-ohms - - unevaluatedProperties: false - -required: - - compatible - - reg - -allOf: - - if: - properties: - compatible: - contains: - const: maxim,max34408 - then: - patternProperties: - "^channel@[2-3]$": false - "^channel@[0-1]$": - properties: - reg: - maximum: 1 - else: - patternProperties: - "^channel@[0-3]$": - properties: - reg: - maximum: 3 - -additionalProperties: false - -examples: - - | - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - adc@1e { - compatible = "maxim,max34409"; - reg = <0x1e>; - powerdown-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; - powerdown-status-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; - - #address-cells = <1>; - #size-cells = <0>; - - channel@0 { - reg = <0x0>; - maxim,rsense-val-micro-ohms = <5000>; - }; - - channel@1 { - reg = <0x1>; - maxim,rsense-val-micro-ohms = <10000>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/maxim,max34408.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX34408/MAX34409 current monitors with overcurrent control + +maintainers: + - Ivan Mikhaylov + +description: | + The MAX34408/MAX34409 are two- and four-channel current monitors that are + configured and monitored with a standard I2C/SMBus serial interface. Each + unidirectional current sensor offers precision high-side operation with a + low full-scale sense voltage. The devices automatically sequence through + two or four channels and collect the current-sense samples and average them + to reduce the effect of impulse noise. The raw ADC samples are compared to + user-programmable digital thresholds to indicate overcurrent conditions. + Overcurrent conditions trigger a hardware output to provide an immediate + indication to shut down any necessary external circuitry. + + Specifications about the devices can be found at: + https://www.analog.com/media/en/technical-documentation/data-sheets/MAX34408-MAX34409.pdf + +properties: + compatible: + enum: + - maxim,max34408 + - maxim,max34409 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + powerdown-gpios: + description: + Shutdown Output. Open-drain output. This output transitions to high impedance + when any of the digital comparator thresholds are exceeded as long as the ENA + pin is high. + maxItems: 1 + + powerdown-status-gpios: + description: + SHTDN Enable Input. CMOS digital input. Connect to GND to clear the latch and + unconditionally deassert (force low) the SHTDN output and reset the shutdown + delay. Connect to VDD to enable normal latch operation of the SHTDN output. + maxItems: 1 + + vdd-supply: true + +patternProperties: + "^channel@[0-3]$": + $ref: adc.yaml + type: object + description: + Represents the internal channels of the ADC. + + properties: + reg: + items: + - minimum: 0 + maximum: 3 + + maxim,rsense-val-micro-ohms: + description: + Adjust the Rsense value to monitor higher or lower current levels for + input. + enum: [250, 500, 1000, 5000, 10000, 50000, 100000, 200000, 500000] + default: 1000 + + required: + - reg + - maxim,rsense-val-micro-ohms + + unevaluatedProperties: false + +required: + - compatible + - reg + +allOf: + - if: + properties: + compatible: + contains: + const: maxim,max34408 + then: + patternProperties: + "^channel@[2-3]$": false + "^channel@[0-1]$": + properties: + reg: + maximum: 1 + else: + patternProperties: + "^channel@[0-3]$": + properties: + reg: + maximum: 3 + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + adc@1e { + compatible = "maxim,max34409"; + reg = <0x1e>; + powerdown-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; + powerdown-status-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; + + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { + reg = <0x0>; + maxim,rsense-val-micro-ohms = <5000>; + }; + + channel@1 { + reg = <0x1>; + maxim,rsense-val-micro-ohms = <10000>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/renesas,rcar-gyroadc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/renesas,rcar-gyroadc.yaml index 797b208ab..36dff3250 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/renesas,rcar-gyroadc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/renesas,rcar-gyroadc.yaml @@ -1,141 +1,141 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/adc/renesas,rcar-gyroadc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas R-Car GyroADC - -maintainers: - - Marek Vasut - -description: | - The GyroADC block is a reduced SPI block with up to 8 chipselect lines, - which supports the SPI protocol of a selected few SPI ADCs. The SPI ADCs - are sampled by the GyroADC block in a round-robin fashion and the result - presented in the GyroADC registers. - The ADC bindings should match with that of the devices connected to a - full featured SPI bus. - -properties: - compatible: - items: - - enum: - - renesas,r8a7791-gyroadc - - renesas,r8a7792-gyroadc - - const: renesas,rcar-gyroadc - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - clock-names: - const: fck - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - -additionalProperties: false - -required: - - compatible - - reg - - clocks - - clock-names - - power-domains - - resets - - "#address-cells" - - "#size-cells" - -patternProperties: - "@[0-7]$": - type: object - properties: - compatible: - description: | - fujitsu,mb88101a - - Fujitsu MB88101A compatible mode, - 12bit sampling, up to 4 channels can be sampled in round-robin - fashion. One Fujitsu chip supplies four GyroADC channels with - data as it contains four ADCs on the chip and thus for 4-channel - operation, single MB88101A is required. The Cx chipselect lines - of the MB88101A connect directly to two CHS lines of the GyroADC, - no demuxer is required. The data out line of each MB88101A - connects to a shared input pin of the GyroADC. - ti,adcs7476 or ti,adc121 or adi,ad7476 - - TI ADCS7476 / TI ADC121 / ADI AD7476 compatible mode, 15bit - sampling, up to 8 channels can be sampled in round-robin - fashion. One TI/ADI chip supplies single ADC channel with data, - thus for 8-channel operation, 8 chips are required. - A 3:8 chipselect demuxer is required to connect the nCS line - of the TI/ADI chips to the GyroADC, while MISO line of each - TI/ADI ADC connects to a shared input pin of the GyroADC. - maxim,max1162 or maxim,max11100 - - Maxim MAX1162 / Maxim MAX11100 compatible mode, 16bit sampling, - up to 8 channels can be sampled in round-robin fashion. One - Maxim chip supplies single ADC channel with data, thus for - 8-channel operation, 8 chips are required. - A 3:8 chipselect demuxer is required to connect the nCS line - of the MAX chips to the GyroADC, while MISO line of each Maxim - ADC connects to a shared input pin of the GyroADC. - enum: - - adi,ad7476 - - fujitsu,mb88101a - - maxim,max1162 - - maxim,max11100 - - ti,adcs7476 - - ti,adc121 - - reg: - minimum: 0 - maximum: 7 - - vref-supply: true - - additionalProperties: false - - required: - - compatible - - reg - - vref-supply - -examples: - - | - #include - #include - - adc@e6e54000 { - compatible = "renesas,r8a7791-gyroadc", "renesas,rcar-gyroadc"; - reg = <0xe6e54000 64>; - clocks = <&cpg CPG_MOD 901>; - clock-names = "fck"; - power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; - resets = <&cpg 901>; - - #address-cells = <1>; - #size-cells = <0>; - - adc@0 { - reg = <0>; - compatible = "maxim,max1162"; - vref-supply = <&vref_max1162>; - }; - - adc@1 { - reg = <1>; - compatible = "maxim,max1162"; - vref-supply = <&vref_max1162>; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/renesas,rcar-gyroadc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas R-Car GyroADC + +maintainers: + - Marek Vasut + +description: | + The GyroADC block is a reduced SPI block with up to 8 chipselect lines, + which supports the SPI protocol of a selected few SPI ADCs. The SPI ADCs + are sampled by the GyroADC block in a round-robin fashion and the result + presented in the GyroADC registers. + The ADC bindings should match with that of the devices connected to a + full featured SPI bus. + +properties: + compatible: + items: + - enum: + - renesas,r8a7791-gyroadc + - renesas,r8a7792-gyroadc + - const: renesas,rcar-gyroadc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: fck + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +additionalProperties: false + +required: + - compatible + - reg + - clocks + - clock-names + - power-domains + - resets + - "#address-cells" + - "#size-cells" + +patternProperties: + "@[0-7]$": + type: object + properties: + compatible: + description: | + fujitsu,mb88101a + - Fujitsu MB88101A compatible mode, + 12bit sampling, up to 4 channels can be sampled in round-robin + fashion. One Fujitsu chip supplies four GyroADC channels with + data as it contains four ADCs on the chip and thus for 4-channel + operation, single MB88101A is required. The Cx chipselect lines + of the MB88101A connect directly to two CHS lines of the GyroADC, + no demuxer is required. The data out line of each MB88101A + connects to a shared input pin of the GyroADC. + ti,adcs7476 or ti,adc121 or adi,ad7476 + - TI ADCS7476 / TI ADC121 / ADI AD7476 compatible mode, 15bit + sampling, up to 8 channels can be sampled in round-robin + fashion. One TI/ADI chip supplies single ADC channel with data, + thus for 8-channel operation, 8 chips are required. + A 3:8 chipselect demuxer is required to connect the nCS line + of the TI/ADI chips to the GyroADC, while MISO line of each + TI/ADI ADC connects to a shared input pin of the GyroADC. + maxim,max1162 or maxim,max11100 + - Maxim MAX1162 / Maxim MAX11100 compatible mode, 16bit sampling, + up to 8 channels can be sampled in round-robin fashion. One + Maxim chip supplies single ADC channel with data, thus for + 8-channel operation, 8 chips are required. + A 3:8 chipselect demuxer is required to connect the nCS line + of the MAX chips to the GyroADC, while MISO line of each Maxim + ADC connects to a shared input pin of the GyroADC. + enum: + - adi,ad7476 + - fujitsu,mb88101a + - maxim,max1162 + - maxim,max11100 + - ti,adcs7476 + - ti,adc121 + + reg: + minimum: 0 + maximum: 7 + + vref-supply: true + + additionalProperties: false + + required: + - compatible + - reg + - vref-supply + +examples: + - | + #include + #include + + adc@e6e54000 { + compatible = "renesas,r8a7791-gyroadc", "renesas,rcar-gyroadc"; + reg = <0xe6e54000 64>; + clocks = <&cpg CPG_MOD 901>; + clock-names = "fck"; + power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; + resets = <&cpg 901>; + + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + reg = <0>; + compatible = "maxim,max1162"; + vref-supply = <&vref_max1162>; + }; + + adc@1 { + reg = <1>; + compatible = "maxim,max1162"; + vref-supply = <&vref_max1162>; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml index 4a1c2b9de..4e40f6bed 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml @@ -1,168 +1,168 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/adc/samsung,exynos-adc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung Exynos Analog to Digital Converter (ADC) - -maintainers: - - Krzysztof Kozlowski - -properties: - compatible: - oneOf: - - enum: - - samsung,exynos-adc-v1 # Exynos5250 - - samsung,exynos-adc-v2 - - samsung,exynos3250-adc - - samsung,exynos4212-adc # Exynos4212 and Exynos4412 - - samsung,exynos7-adc - - samsung,s3c2410-adc - - samsung,s3c2416-adc - - samsung,s3c2440-adc - - samsung,s3c2443-adc - - samsung,s3c6410-adc - - samsung,s5pv210-adc - - items: - - enum: - - samsung,exynos5433-adc - - const: samsung,exynos7-adc - - reg: - maxItems: 1 - - clocks: - description: - Phandle to ADC bus clock. For Exynos3250 additional clock is needed. - minItems: 1 - maxItems: 2 - - clock-names: - description: - Must contain clock names (adc, sclk) matching phandles in clocks - property. - minItems: 1 - maxItems: 2 - - interrupts: - description: - ADC interrupt followed by optional touchscreen interrupt. - minItems: 1 - maxItems: 2 - - "#io-channel-cells": - const: 1 - - vdd-supply: true - - samsung,syscon-phandle: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Phandle to the PMU system controller node (to access the ADC_PHY - register on Exynos3250/4x12/5250/5420/5800). - - has-touchscreen: - description: - If present, indicates that a touchscreen is connected and usable. - type: boolean - -required: - - compatible - - reg - - clocks - - clock-names - - interrupts - - "#io-channel-cells" - - vdd-supply - -additionalProperties: - type: object - -allOf: - - if: - properties: - compatible: - contains: - enum: - - samsung,exynos-adc-v1 - - samsung,exynos-adc-v2 - - samsung,exynos3250-adc - - samsung,exynos4212-adc - then: - required: - - samsung,syscon-phandle - - - if: - properties: - compatible: - contains: - enum: - - samsung,exynos3250-adc - then: - properties: - clocks: - minItems: 2 - maxItems: 2 - clock-names: - items: - - const: adc - - const: sclk - else: - properties: - clocks: - minItems: 1 - maxItems: 1 - clock-names: - items: - - const: adc - - - if: - required: - - has-touchscreen - then: - properties: - interrupts: - minItems: 2 - maxItems: 2 - -examples: - - | - adc: adc@12d10000 { - compatible = "samsung,exynos-adc-v1"; - reg = <0x12d10000 0x100>; - interrupts = <0 106 0>; - #io-channel-cells = <1>; - - clocks = <&clock 303>; - clock-names = "adc"; - - vdd-supply = <&buck5_reg>; - samsung,syscon-phandle = <&pmu_system_controller>; - - /* NTC thermistor is a hwmon device */ - thermistor { - compatible = "murata,ncp15wb473"; - pullup-uv = <1800000>; - pullup-ohm = <47000>; - pulldown-ohm = <0>; - io-channels = <&adc 4>; - }; - }; - - - | - #include - - adc@126c0000 { - compatible = "samsung,exynos3250-adc"; - reg = <0x126c0000 0x100>; - interrupts = <0 137 0>; - #io-channel-cells = <1>; - - clocks = <&cmu CLK_TSADC>, - <&cmu CLK_SCLK_TSADC>; - clock-names = "adc", "sclk"; - - vdd-supply = <&buck5_reg>; - samsung,syscon-phandle = <&pmu_system_controller>; - }; +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/samsung,exynos-adc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Exynos Analog to Digital Converter (ADC) + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + oneOf: + - enum: + - samsung,exynos-adc-v1 # Exynos5250 + - samsung,exynos-adc-v2 + - samsung,exynos3250-adc + - samsung,exynos4212-adc # Exynos4212 and Exynos4412 + - samsung,exynos7-adc + - samsung,s3c2410-adc + - samsung,s3c2416-adc + - samsung,s3c2440-adc + - samsung,s3c2443-adc + - samsung,s3c6410-adc + - samsung,s5pv210-adc + - items: + - enum: + - samsung,exynos5433-adc + - const: samsung,exynos7-adc + + reg: + maxItems: 1 + + clocks: + description: + Phandle to ADC bus clock. For Exynos3250 additional clock is needed. + minItems: 1 + maxItems: 2 + + clock-names: + description: + Must contain clock names (adc, sclk) matching phandles in clocks + property. + minItems: 1 + maxItems: 2 + + interrupts: + description: + ADC interrupt followed by optional touchscreen interrupt. + minItems: 1 + maxItems: 2 + + "#io-channel-cells": + const: 1 + + vdd-supply: true + + samsung,syscon-phandle: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the PMU system controller node (to access the ADC_PHY + register on Exynos3250/4x12/5250/5420/5800). + + has-touchscreen: + description: + If present, indicates that a touchscreen is connected and usable. + type: boolean + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - "#io-channel-cells" + - vdd-supply + +additionalProperties: + type: object + +allOf: + - if: + properties: + compatible: + contains: + enum: + - samsung,exynos-adc-v1 + - samsung,exynos-adc-v2 + - samsung,exynos3250-adc + - samsung,exynos4212-adc + then: + required: + - samsung,syscon-phandle + + - if: + properties: + compatible: + contains: + enum: + - samsung,exynos3250-adc + then: + properties: + clocks: + minItems: 2 + maxItems: 2 + clock-names: + items: + - const: adc + - const: sclk + else: + properties: + clocks: + minItems: 1 + maxItems: 1 + clock-names: + items: + - const: adc + + - if: + required: + - has-touchscreen + then: + properties: + interrupts: + minItems: 2 + maxItems: 2 + +examples: + - | + adc: adc@12d10000 { + compatible = "samsung,exynos-adc-v1"; + reg = <0x12d10000 0x100>; + interrupts = <0 106 0>; + #io-channel-cells = <1>; + + clocks = <&clock 303>; + clock-names = "adc"; + + vdd-supply = <&buck5_reg>; + samsung,syscon-phandle = <&pmu_system_controller>; + + /* NTC thermistor is a hwmon device */ + thermistor { + compatible = "murata,ncp15wb473"; + pullup-uv = <1800000>; + pullup-ohm = <47000>; + pulldown-ohm = <0>; + io-channels = <&adc 4>; + }; + }; + + - | + #include + + adc@126c0000 { + compatible = "samsung,exynos3250-adc"; + reg = <0x126c0000 0x100>; + interrupts = <0 137 0>; + #io-channel-cells = <1>; + + clocks = <&cmu CLK_TSADC>, + <&cmu CLK_SCLK_TSADC>; + clock-names = "adc", "sclk"; + + vdd-supply = <&buck5_reg>; + samsung,syscon-phandle = <&pmu_system_controller>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/ti,ads1119.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/ti,ads1119.yaml index eb285bd2f..ba6850ab1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/ti,ads1119.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/ti,ads1119.yaml @@ -1,155 +1,155 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/adc/ti,ads1119.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Texas Instruments ADS1119 ADC - -maintainers: - - João Paulo Gonçalves - -description: - The TI ADS1119 is a precision 16-bit ADC over I2C that offers single-ended and - differential measurements using a multiplexed input. It features a programmable - gain, a programmable sample rate, an internal oscillator and voltage reference, - and a 50/60Hz rejection filter. - -properties: - compatible: - const: ti,ads1119 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - reset-gpios: - maxItems: 1 - - avdd-supply: true - dvdd-supply: true - - vref-supply: - description: - ADC external reference voltage (VREF). - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - - "#io-channel-cells": - const: 1 - -required: - - compatible - - reg - - "#address-cells" - - "#size-cells" - - avdd-supply - - dvdd-supply - -patternProperties: - "^channel@([0-6])$": - $ref: adc.yaml - type: object - properties: - reg: - minimum: 0 - maximum: 6 - - diff-channels: - description: - Differential input channels AIN0-AIN1, AIN2-AIN3 and AIN1-AIN2. - oneOf: - - items: - - const: 0 - - const: 1 - - items: - - const: 2 - - const: 3 - - items: - - const: 1 - - const: 2 - - single-channel: - description: - Single-ended input channels AIN0, AIN1, AIN2 and AIN3. - minimum: 0 - maximum: 3 - - oneOf: - - required: - - diff-channels - - required: - - single-channel - - required: - - reg - - unevaluatedProperties: false - -additionalProperties: false - -examples: - - | - - #include - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - adc@40 { - compatible = "ti,ads1119"; - reg = <0x40>; - interrupt-parent = <&gpio1>; - interrupts = <25 IRQ_TYPE_EDGE_FALLING>; - reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; - avdd-supply = <®_avdd_ads1119>; - dvdd-supply = <®_dvdd_ads1119>; - vref-supply = <®_vref_ads1119>; - #address-cells = <1>; - #size-cells = <0>; - #io-channel-cells = <1>; - - channel@0 { - reg = <0>; - single-channel = <0>; - }; - - channel@1 { - reg = <1>; - diff-channels = <0 1>; - }; - - channel@2 { - reg = <2>; - single-channel = <3>; - }; - - channel@3 { - reg = <3>; - single-channel = <1>; - }; - - channel@4 { - reg = <4>; - single-channel = <2>; - }; - - channel@5 { - reg = <5>; - diff-channels = <1 2>; - }; - - channel@6 { - reg = <6>; - diff-channels = <2 3>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,ads1119.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADS1119 ADC + +maintainers: + - João Paulo Gonçalves + +description: + The TI ADS1119 is a precision 16-bit ADC over I2C that offers single-ended and + differential measurements using a multiplexed input. It features a programmable + gain, a programmable sample rate, an internal oscillator and voltage reference, + and a 50/60Hz rejection filter. + +properties: + compatible: + const: ti,ads1119 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + avdd-supply: true + dvdd-supply: true + + vref-supply: + description: + ADC external reference voltage (VREF). + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - avdd-supply + - dvdd-supply + +patternProperties: + "^channel@([0-6])$": + $ref: adc.yaml + type: object + properties: + reg: + minimum: 0 + maximum: 6 + + diff-channels: + description: + Differential input channels AIN0-AIN1, AIN2-AIN3 and AIN1-AIN2. + oneOf: + - items: + - const: 0 + - const: 1 + - items: + - const: 2 + - const: 3 + - items: + - const: 1 + - const: 2 + + single-channel: + description: + Single-ended input channels AIN0, AIN1, AIN2 and AIN3. + minimum: 0 + maximum: 3 + + oneOf: + - required: + - diff-channels + - required: + - single-channel + + required: + - reg + + unevaluatedProperties: false + +additionalProperties: false + +examples: + - | + + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + adc@40 { + compatible = "ti,ads1119"; + reg = <0x40>; + interrupt-parent = <&gpio1>; + interrupts = <25 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + avdd-supply = <®_avdd_ads1119>; + dvdd-supply = <®_dvdd_ads1119>; + vref-supply = <®_vref_ads1119>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + + channel@0 { + reg = <0>; + single-channel = <0>; + }; + + channel@1 { + reg = <1>; + diff-channels = <0 1>; + }; + + channel@2 { + reg = <2>; + single-channel = <3>; + }; + + channel@3 { + reg = <3>; + single-channel = <1>; + }; + + channel@4 { + reg = <4>; + single-channel = <2>; + }; + + channel@5 { + reg = <5>; + diff-channels = <1 2>; + }; + + channel@6 { + reg = <6>; + diff-channels = <2 3>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/ti,ads131e08.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/ti,ads131e08.yaml index c2f67bf9e..890f125d4 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/ti,ads131e08.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/adc/ti,ads131e08.yaml @@ -1,182 +1,182 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/adc/ti,ads131e08.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Texas Instruments ADS131E0x 4-, 6- and 8-Channel ADCs - -maintainers: - - Jonathan Cameron - -description: | - The ADS131E0x are a family of multichannel, simultaneous sampling, - 24-bit, delta-sigma, analog-to-digital converters (ADCs) with a - built-in programmable gain amplifier (PGA), internal reference - and an onboard oscillator. - The communication with ADC chip is via the SPI bus (mode 1). - - https://www.ti.com/lit/ds/symlink/ads131e08.pdf - -properties: - compatible: - enum: - - ti,ads131e04 - - ti,ads131e06 - - ti,ads131e08 - - reg: - maxItems: 1 - - spi-cpha: true - - clocks: - description: | - Device tree identifier to the clock source (2.048 MHz). - Note: clock source is selected using CLKSEL pin. - maxItems: 1 - - clock-names: - items: - - const: adc-clk - - interrupts: - description: | - IRQ line for the ADC data ready. - maxItems: 1 - - vref-supply: - description: | - Optional external voltage reference. If not supplied, internal voltage - reference is used. - - ti,vref-internal: - description: | - Select the internal voltage reference value. - 0: 2.4V - 1: 4.0V - If this field is left empty, 2.4V is selected. - Note: internal voltage reference is used only if vref-supply is not supplied. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1] - default: 0 - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - -required: - - compatible - - reg - - spi-cpha - - clocks - - clock-names - - interrupts - -patternProperties: - "^channel@([0-7])$": - $ref: adc.yaml - type: object - description: | - Represents the external channels which are connected to the ADC. - - properties: - reg: - description: | - The channel number. - Up to 4 channels, numbered from 0 to 3 for ti,ads131e04. - Up to 6 channels, numbered from 0 to 5 for ti,ads131e06. - Up to 8 channels, numbered from 0 to 7 for ti,ads131e08. - items: - minimum: 0 - maximum: 7 - - ti,gain: - description: | - The PGA gain value for the channel. - If this field is left empty, PGA gain 1 is used. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [1, 2, 4, 8, 12] - default: 1 - - ti,mux: - description: | - Channel input selection(muliplexer). - 0: Normal input. - 1: Input shorted to (VREFP + VREFN) / 2 (for offset or noise measurements). - 3: MVDD (for supply measurement) - 4: Temperature sensor - If this field is left empty, normal input is selected. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1, 3, 4] - default: 0 - - required: - - reg - - additionalProperties: false - -allOf: - - $ref: /schemas/spi/spi-peripheral-props.yaml# - -unevaluatedProperties: false - -examples: - - | - #include - - spi { - #address-cells = <1>; - #size-cells = <0>; - - adc@0 { - compatible = "ti,ads131e08"; - reg = <0>; - spi-max-frequency = <1000000>; - spi-cpha; - clocks = <&clk2048k>; - clock-names = "adc-clk"; - interrupt-parent = <&gpio5>; - interrupts = <28 IRQ_TYPE_EDGE_FALLING>; - vref-supply = <&adc_vref>; - - #address-cells = <1>; - #size-cells = <0>; - - channel@0 { - reg = <0>; - }; - - channel@1 { - reg = <1>; - }; - - channel@2 { - reg = <2>; - ti,gain = <2>; - }; - - channel@3 { - reg = <3>; - }; - - channel@4 { - reg = <4>; - }; - - channel@5 { - reg = <5>; - }; - - channel@6 { - reg = <6>; - }; - - channel@7 { - reg = <7>; - ti,mux = <4>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,ads131e08.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADS131E0x 4-, 6- and 8-Channel ADCs + +maintainers: + - Jonathan Cameron + +description: | + The ADS131E0x are a family of multichannel, simultaneous sampling, + 24-bit, delta-sigma, analog-to-digital converters (ADCs) with a + built-in programmable gain amplifier (PGA), internal reference + and an onboard oscillator. + The communication with ADC chip is via the SPI bus (mode 1). + + https://www.ti.com/lit/ds/symlink/ads131e08.pdf + +properties: + compatible: + enum: + - ti,ads131e04 + - ti,ads131e06 + - ti,ads131e08 + + reg: + maxItems: 1 + + spi-cpha: true + + clocks: + description: | + Device tree identifier to the clock source (2.048 MHz). + Note: clock source is selected using CLKSEL pin. + maxItems: 1 + + clock-names: + items: + - const: adc-clk + + interrupts: + description: | + IRQ line for the ADC data ready. + maxItems: 1 + + vref-supply: + description: | + Optional external voltage reference. If not supplied, internal voltage + reference is used. + + ti,vref-internal: + description: | + Select the internal voltage reference value. + 0: 2.4V + 1: 4.0V + If this field is left empty, 2.4V is selected. + Note: internal voltage reference is used only if vref-supply is not supplied. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + default: 0 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +required: + - compatible + - reg + - spi-cpha + - clocks + - clock-names + - interrupts + +patternProperties: + "^channel@([0-7])$": + $ref: adc.yaml + type: object + description: | + Represents the external channels which are connected to the ADC. + + properties: + reg: + description: | + The channel number. + Up to 4 channels, numbered from 0 to 3 for ti,ads131e04. + Up to 6 channels, numbered from 0 to 5 for ti,ads131e06. + Up to 8 channels, numbered from 0 to 7 for ti,ads131e08. + items: + minimum: 0 + maximum: 7 + + ti,gain: + description: | + The PGA gain value for the channel. + If this field is left empty, PGA gain 1 is used. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2, 4, 8, 12] + default: 1 + + ti,mux: + description: | + Channel input selection(muliplexer). + 0: Normal input. + 1: Input shorted to (VREFP + VREFN) / 2 (for offset or noise measurements). + 3: MVDD (for supply measurement) + 4: Temperature sensor + If this field is left empty, normal input is selected. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 3, 4] + default: 0 + + required: + - reg + + additionalProperties: false + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,ads131e08"; + reg = <0>; + spi-max-frequency = <1000000>; + spi-cpha; + clocks = <&clk2048k>; + clock-names = "adc-clk"; + interrupt-parent = <&gpio5>; + interrupts = <28 IRQ_TYPE_EDGE_FALLING>; + vref-supply = <&adc_vref>; + + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { + reg = <0>; + }; + + channel@1 { + reg = <1>; + }; + + channel@2 { + reg = <2>; + ti,gain = <2>; + }; + + channel@3 { + reg = <3>; + }; + + channel@4 { + reg = <4>; + }; + + channel@5 { + reg = <5>; + }; + + channel@6 { + reg = <6>; + }; + + channel@7 { + reg = <7>; + ti,mux = <4>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml index 2490d0b54..590ea7936 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml @@ -1,172 +1,172 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/addac/adi,ad74413r.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Analog Devices AD74412R/AD74413R device - -maintainers: - - Cosmin Tanislav - -description: | - The AD74412R and AD74413R are quad-channel software configurable input/output - solutions for building and process control applications. They contain - functionality for analog output, analog input, digital input, resistance - temperature detector, and thermocouple measurements integrated - into a single chip solution with an SPI interface. - The devices feature a 16-bit ADC and four configurable 13-bit DACs to provide - four configurable input/output channels and a suite of diagnostic functions. - The AD74413R differentiates itself from the AD74412R by being HART-compatible. - https://www.analog.com/en/products/ad74412r.html - https://www.analog.com/en/products/ad74413r.html - -properties: - compatible: - enum: - - adi,ad74412r - - adi,ad74413r - - reg: - maxItems: 1 - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - - spi-max-frequency: - maximum: 1000000 - - spi-cpol: true - - interrupts: - maxItems: 1 - - refin-supply: true - - shunt-resistor-micro-ohms: - description: - Shunt (sense) resistor value in micro-Ohms. - default: 100000000 - - reset-gpios: - maxItems: 1 - -required: - - compatible - - reg - - spi-max-frequency - - spi-cpol - - refin-supply - -patternProperties: - "^channel@[0-3]$": - type: object - additionalProperties: false - description: Represents the external channels which are connected to the device. - - properties: - reg: - description: | - The channel number. It can have up to 4 channels numbered from 0 to 3. - minimum: 0 - maximum: 3 - - adi,ch-func: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Channel function. - HART functions are not supported on AD74412R. - 0 - CH_FUNC_HIGH_IMPEDANCE - 1 - CH_FUNC_VOLTAGE_OUTPUT - 2 - CH_FUNC_CURRENT_OUTPUT - 3 - CH_FUNC_VOLTAGE_INPUT - 4 - CH_FUNC_CURRENT_INPUT_EXT_POWER - 5 - CH_FUNC_CURRENT_INPUT_LOOP_POWER - 6 - CH_FUNC_RESISTANCE_INPUT - 7 - CH_FUNC_DIGITAL_INPUT_LOGIC - 8 - CH_FUNC_DIGITAL_INPUT_LOOP_POWER - 9 - CH_FUNC_CURRENT_INPUT_EXT_POWER_HART - 10 - CH_FUNC_CURRENT_INPUT_LOOP_POWER_HART - minimum: 0 - maximum: 10 - default: 0 - - adi,gpo-comparator: - type: boolean - description: | - Whether to configure GPO as a comparator or not. - When not configured as a comparator, the GPO will be treated as an - output-only GPIO. - - drive-strength-microamp: - description: | - For channels configured as digital input, this configures the sink - current. - minimum: 0 - maximum: 1800 - default: 0 - multipleOf: 120 - - required: - - reg - -allOf: - - $ref: /schemas/spi/spi-peripheral-props.yaml# - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - - spi { - #address-cells = <1>; - #size-cells = <0>; - - addac@0 { - compatible = "adi,ad74413r"; - reg = <0>; - spi-max-frequency = <1000000>; - spi-cpol; - - #address-cells = <1>; - #size-cells = <0>; - - interrupt-parent = <&gpio>; - interrupts = <26 IRQ_TYPE_EDGE_FALLING>; - - refin-supply = <&ad74413r_refin>; - reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; - - channel@0 { - reg = <0>; - - adi,ch-func = ; - }; - - channel@1 { - reg = <1>; - - adi,ch-func = ; - }; - - channel@2 { - reg = <2>; - - adi,ch-func = ; - adi,gpo-comparator; - }; - - channel@3 { - reg = <3>; - - adi,ch-func = ; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/addac/adi,ad74413r.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD74412R/AD74413R device + +maintainers: + - Cosmin Tanislav + +description: | + The AD74412R and AD74413R are quad-channel software configurable input/output + solutions for building and process control applications. They contain + functionality for analog output, analog input, digital input, resistance + temperature detector, and thermocouple measurements integrated + into a single chip solution with an SPI interface. + The devices feature a 16-bit ADC and four configurable 13-bit DACs to provide + four configurable input/output channels and a suite of diagnostic functions. + The AD74413R differentiates itself from the AD74412R by being HART-compatible. + https://www.analog.com/en/products/ad74412r.html + https://www.analog.com/en/products/ad74413r.html + +properties: + compatible: + enum: + - adi,ad74412r + - adi,ad74413r + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + spi-max-frequency: + maximum: 1000000 + + spi-cpol: true + + interrupts: + maxItems: 1 + + refin-supply: true + + shunt-resistor-micro-ohms: + description: + Shunt (sense) resistor value in micro-Ohms. + default: 100000000 + + reset-gpios: + maxItems: 1 + +required: + - compatible + - reg + - spi-max-frequency + - spi-cpol + - refin-supply + +patternProperties: + "^channel@[0-3]$": + type: object + additionalProperties: false + description: Represents the external channels which are connected to the device. + + properties: + reg: + description: | + The channel number. It can have up to 4 channels numbered from 0 to 3. + minimum: 0 + maximum: 3 + + adi,ch-func: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Channel function. + HART functions are not supported on AD74412R. + 0 - CH_FUNC_HIGH_IMPEDANCE + 1 - CH_FUNC_VOLTAGE_OUTPUT + 2 - CH_FUNC_CURRENT_OUTPUT + 3 - CH_FUNC_VOLTAGE_INPUT + 4 - CH_FUNC_CURRENT_INPUT_EXT_POWER + 5 - CH_FUNC_CURRENT_INPUT_LOOP_POWER + 6 - CH_FUNC_RESISTANCE_INPUT + 7 - CH_FUNC_DIGITAL_INPUT_LOGIC + 8 - CH_FUNC_DIGITAL_INPUT_LOOP_POWER + 9 - CH_FUNC_CURRENT_INPUT_EXT_POWER_HART + 10 - CH_FUNC_CURRENT_INPUT_LOOP_POWER_HART + minimum: 0 + maximum: 10 + default: 0 + + adi,gpo-comparator: + type: boolean + description: | + Whether to configure GPO as a comparator or not. + When not configured as a comparator, the GPO will be treated as an + output-only GPIO. + + drive-strength-microamp: + description: | + For channels configured as digital input, this configures the sink + current. + minimum: 0 + maximum: 1800 + default: 0 + multipleOf: 120 + + required: + - reg + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + addac@0 { + compatible = "adi,ad74413r"; + reg = <0>; + spi-max-frequency = <1000000>; + spi-cpol; + + #address-cells = <1>; + #size-cells = <0>; + + interrupt-parent = <&gpio>; + interrupts = <26 IRQ_TYPE_EDGE_FALLING>; + + refin-supply = <&ad74413r_refin>; + reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; + + channel@0 { + reg = <0>; + + adi,ch-func = ; + }; + + channel@1 { + reg = <1>; + + adi,ch-func = ; + }; + + channel@2 { + reg = <2>; + + adi,ch-func = ; + adi,gpo-comparator; + }; + + channel@3 { + reg = <3>; + + adi,ch-func = ; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/afe/temperature-transducer.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/afe/temperature-transducer.yaml index 59fbbf97f..cfbf5350d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/afe/temperature-transducer.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/afe/temperature-transducer.yaml @@ -1,114 +1,114 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/afe/temperature-transducer.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Temperature Transducer - -maintainers: - - Liam Beguin - -description: | - A temperature transducer is a device that converts a thermal quantity - into any other physical quantity. This binding applies to temperature to - voltage (like the LTC2997), and temperature to current (like the AD590) - linear transducers. - In both cases these are assumed to be connected to a voltage ADC. - - When an io-channel measures the output voltage of a temperature analog front - end such as a temperature transducer, the interesting measurement is almost - always the corresponding temperature, not the voltage output. This binding - describes such a circuit. - - The general transfer function here is (using SI units) - V(T) = Rsense * Isense(T) - T = (Isense(T) / alpha) + offset - T = 1 / (Rsense * alpha) * (V + offset * Rsense * alpha) - - When using a temperature to voltage transducer, Rsense is set to 1. - - The following circuits show a temperature to current and a temperature to - voltage transducer that can be used with this binding. - - VCC - ----- - | - +---+---+ - | AD590 | VCC - +---+---+ ----- - | | - V proportional to T +----+----+ - | D+ --+ | - +---- Vout | LTC2997 +--- Vout - | D- --+ | - +---+----+ +---------+ - | Rsense | | - +---+----+ ----- - | GND - ----- - GND - -properties: - compatible: - const: temperature-transducer - - io-channels: - maxItems: 1 - description: | - Channel node of a voltage io-channel. - - '#io-channel-cells': - const: 0 - - sense-offset-millicelsius: - description: | - Temperature offset. - This offset is commonly used to convert from Kelvins to degrees Celsius. - In that case, sense-offset-millicelsius would be set to <(-273150)>. - default: 0 - - sense-resistor-ohms: - description: | - The sense resistor. - By default sense-resistor-ohms cancels out the resistor making the - circuit behave like a temperature transducer. - default: 1 - - alpha-ppm-per-celsius: - description: | - Sometimes referred to as output gain, slope, or temperature coefficient. - - alpha is expressed in parts per million which can be micro-amps per - degrees Celsius or micro-volts per degrees Celsius. The is the main - characteristic of a temperature transducer and should be stated in the - datasheet. - -additionalProperties: false - -required: - - compatible - - io-channels - - alpha-ppm-per-celsius - -examples: - - | - ad950: temperature-sensor-0 { - compatible = "temperature-transducer"; - #io-channel-cells = <0>; - io-channels = <&temp_adc 3>; - - sense-offset-millicelsius = <(-273150)>; /* Kelvin to degrees Celsius */ - sense-resistor-ohms = <8060>; - alpha-ppm-per-celsius = <1>; /* 1 uA/K */ - }; - - | - znq_tmp: temperature-sensor-1 { - compatible = "temperature-transducer"; - #io-channel-cells = <0>; - io-channels = <&temp_adc 2>; - - sense-offset-millicelsius = <(-273150)>; /* Kelvin to degrees Celsius */ - alpha-ppm-per-celsius = <4000>; /* 4 mV/K */ - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/afe/temperature-transducer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Temperature Transducer + +maintainers: + - Liam Beguin + +description: | + A temperature transducer is a device that converts a thermal quantity + into any other physical quantity. This binding applies to temperature to + voltage (like the LTC2997), and temperature to current (like the AD590) + linear transducers. + In both cases these are assumed to be connected to a voltage ADC. + + When an io-channel measures the output voltage of a temperature analog front + end such as a temperature transducer, the interesting measurement is almost + always the corresponding temperature, not the voltage output. This binding + describes such a circuit. + + The general transfer function here is (using SI units) + V(T) = Rsense * Isense(T) + T = (Isense(T) / alpha) + offset + T = 1 / (Rsense * alpha) * (V + offset * Rsense * alpha) + + When using a temperature to voltage transducer, Rsense is set to 1. + + The following circuits show a temperature to current and a temperature to + voltage transducer that can be used with this binding. + + VCC + ----- + | + +---+---+ + | AD590 | VCC + +---+---+ ----- + | | + V proportional to T +----+----+ + | D+ --+ | + +---- Vout | LTC2997 +--- Vout + | D- --+ | + +---+----+ +---------+ + | Rsense | | + +---+----+ ----- + | GND + ----- + GND + +properties: + compatible: + const: temperature-transducer + + io-channels: + maxItems: 1 + description: | + Channel node of a voltage io-channel. + + '#io-channel-cells': + const: 0 + + sense-offset-millicelsius: + description: | + Temperature offset. + This offset is commonly used to convert from Kelvins to degrees Celsius. + In that case, sense-offset-millicelsius would be set to <(-273150)>. + default: 0 + + sense-resistor-ohms: + description: | + The sense resistor. + By default sense-resistor-ohms cancels out the resistor making the + circuit behave like a temperature transducer. + default: 1 + + alpha-ppm-per-celsius: + description: | + Sometimes referred to as output gain, slope, or temperature coefficient. + + alpha is expressed in parts per million which can be micro-amps per + degrees Celsius or micro-volts per degrees Celsius. The is the main + characteristic of a temperature transducer and should be stated in the + datasheet. + +additionalProperties: false + +required: + - compatible + - io-channels + - alpha-ppm-per-celsius + +examples: + - | + ad950: temperature-sensor-0 { + compatible = "temperature-transducer"; + #io-channel-cells = <0>; + io-channels = <&temp_adc 3>; + + sense-offset-millicelsius = <(-273150)>; /* Kelvin to degrees Celsius */ + sense-resistor-ohms = <8060>; + alpha-ppm-per-celsius = <1>; /* 1 uA/K */ + }; + - | + znq_tmp: temperature-sensor-1 { + compatible = "temperature-transducer"; + #io-channel-cells = <0>; + io-channels = <&temp_adc 2>; + + sense-offset-millicelsius = <(-273150)>; /* Kelvin to degrees Celsius */ + alpha-ppm-per-celsius = <4000>; /* 4 mV/K */ + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml index 27d233c84..512168533 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml @@ -1,140 +1,140 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/dac/adi,ad5758.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Analog Devices AD5758 DAC - -maintainers: - - Michael Hennerich - -properties: - compatible: - const: adi,ad5758 - - reg: - maxItems: 1 - - spi-cpha: true - - adi,dc-dc-mode: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [1, 2, 3] - description: | - Mode of operation of the dc-to-dc converter - Dynamic Power Control (DPC) - In this mode, the AD5758 circuitry senses the output voltage and - dynamically regulates the supply voltage, VDPC+, to meet compliance - requirements plus an optimized headroom voltage for the output buffer. - - Programmable Power Control (PPC) - In this mode, the VDPC+ voltage is user-programmable to a fixed level - that needs to accommodate the maximum output load required. - - The output of the DAC core is either converted to a current or - voltage output at the VIOUT pin. Only one mode can be enabled at - any one time. - - The following values are currently supported: - * 1: DPC current mode - * 2: DPC voltage mode - * 3: PPC current mode - - Depending on the selected output mode (voltage or current) one of the - two properties must be present: - - adi,range-microvolt: - description: | - Voltage output range specified as - oneOf: - - items: - - const: 0 - - enum: [5000000, 10000000] - - items: - - const: -5000000 - - const: 5000000 - - items: - - const: -10000000 - - const: 10000000 - - adi,range-microamp: - description: | - Current output range specified as - oneOf: - - items: - - const: 0 - - enum: [20000, 24000] - - items: - - const: 4 - - const: 24000 - - items: - - const: -20000 - - const: 20000 - - items: - - const: -24000 - - const: 24000 - - items: - - const: -1000 - - const: 22000 - - reset-gpios: - maxItems: 1 - - adi,dc-dc-ilim-microamp: - enum: [150000, 200000, 250000, 300000, 350000, 400000] - description: | - The dc-to-dc converter current limit. - - adi,slew-time-us: - description: | - The time it takes for the output to reach the full scale [uS] - minimum: 133 - maximum: 1023984375 - -required: - - compatible - - reg - - spi-cpha - - adi,dc-dc-mode - -allOf: - - $ref: /schemas/spi/spi-peripheral-props.yaml# - - if: - properties: - adi,dc-dc-mode: - enum: [1, 3] - then: - properties: - adi,range-microvolt: false - required: - - adi,range-microamp - else: - properties: - adi,range-microamp: false - required: - - adi,range-microvolt - -unevaluatedProperties: false - -examples: - - | - spi { - #address-cells = <1>; - #size-cells = <0>; - - dac@0 { - compatible = "adi,ad5758"; - reg = <0>; - spi-max-frequency = <1000000>; - spi-cpha; - - reset-gpios = <&gpio 22 0>; - - adi,dc-dc-mode = <2>; - adi,range-microvolt = <0 10000000>; - adi,dc-dc-ilim-microamp = <200000>; - adi,slew-time-us = <125000>; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad5758.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD5758 DAC + +maintainers: + - Michael Hennerich + +properties: + compatible: + const: adi,ad5758 + + reg: + maxItems: 1 + + spi-cpha: true + + adi,dc-dc-mode: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2, 3] + description: | + Mode of operation of the dc-to-dc converter + Dynamic Power Control (DPC) + In this mode, the AD5758 circuitry senses the output voltage and + dynamically regulates the supply voltage, VDPC+, to meet compliance + requirements plus an optimized headroom voltage for the output buffer. + + Programmable Power Control (PPC) + In this mode, the VDPC+ voltage is user-programmable to a fixed level + that needs to accommodate the maximum output load required. + + The output of the DAC core is either converted to a current or + voltage output at the VIOUT pin. Only one mode can be enabled at + any one time. + + The following values are currently supported: + * 1: DPC current mode + * 2: DPC voltage mode + * 3: PPC current mode + + Depending on the selected output mode (voltage or current) one of the + two properties must be present: + + adi,range-microvolt: + description: | + Voltage output range specified as + oneOf: + - items: + - const: 0 + - enum: [5000000, 10000000] + - items: + - const: -5000000 + - const: 5000000 + - items: + - const: -10000000 + - const: 10000000 + + adi,range-microamp: + description: | + Current output range specified as + oneOf: + - items: + - const: 0 + - enum: [20000, 24000] + - items: + - const: 4 + - const: 24000 + - items: + - const: -20000 + - const: 20000 + - items: + - const: -24000 + - const: 24000 + - items: + - const: -1000 + - const: 22000 + + reset-gpios: + maxItems: 1 + + adi,dc-dc-ilim-microamp: + enum: [150000, 200000, 250000, 300000, 350000, 400000] + description: | + The dc-to-dc converter current limit. + + adi,slew-time-us: + description: | + The time it takes for the output to reach the full scale [uS] + minimum: 133 + maximum: 1023984375 + +required: + - compatible + - reg + - spi-cpha + - adi,dc-dc-mode + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + - if: + properties: + adi,dc-dc-mode: + enum: [1, 3] + then: + properties: + adi,range-microvolt: false + required: + - adi,range-microamp + else: + properties: + adi,range-microamp: false + required: + - adi,range-microvolt + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@0 { + compatible = "adi,ad5758"; + reg = <0>; + spi-max-frequency = <1000000>; + spi-cpha; + + reset-gpios = <&gpio 22 0>; + + adi,dc-dc-mode = <2>; + adi,range-microvolt = <0 10000000>; + adi,dc-dc-ilim-microamp = <200000>; + adi,slew-time-us = <125000>; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/dac/adi,ltc2672.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/dac/adi,ltc2672.yaml index 6e21f781d..c8c434c10 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/dac/adi,ltc2672.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/dac/adi,ltc2672.yaml @@ -1,160 +1,160 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/dac/adi,ltc2672.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Analog Devices LTC2672 DAC - -maintainers: - - Michael Hennerich - - Kim Seer Paller - -description: | - Analog Devices LTC2672 5 channel, 12-/16-Bit, 300mA DAC - https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2672.pdf - -properties: - compatible: - enum: - - adi,ltc2672 - - reg: - maxItems: 1 - - spi-max-frequency: - maximum: 50000000 - - vcc-supply: - description: Analog Supply Voltage Input. - - v-neg-supply: - description: Negative Supply Voltage Input. - - vdd0-supply: - description: Positive Supply Voltage Input for DAC OUT0. - - vdd1-supply: - description: Positive Supply Voltage Input for DAC OUT1. - - vdd2-supply: - description: Positive Supply Voltage Input for DAC OUT2. - - vdd3-supply: - description: Positive Supply Voltage Input for DAC OUT3. - - vdd4-supply: - description: Positive Supply Voltage Input for DAC OUT4. - - iovcc-supply: - description: Digital Input/Output Supply Voltage. - - ref-supply: - description: - Reference Input/Output. The voltage at the REF pin sets the full-scale - range of all channels. If not provided the internal reference is used and - also provided on the VREF pin. - - reset-gpios: - description: - Active Low Asynchronous Clear Input. A logic low at this level triggered - input clears the device to the default reset code and output range, which - is zero-scale with the outputs off. The control registers are cleared to - zero. - maxItems: 1 - - adi,rfsadj-ohms: - description: - If FSADJ is tied to VCC, an internal RFSADJ (20 kΩ) is selected, which - results in nominal output ranges. When an external resistor of 19 kΩ to - 41 kΩ can be used instead by connecting the resistor between FSADJ and GND - it controls the scaling of the ranges, and the internal resistor is - automatically disconnected. - minimum: 19000 - maximum: 41000 - default: 20000 - - io-channels: - description: - ADC channel to monitor voltages and currents at the MUX pin. - maxItems: 1 - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - -patternProperties: - "^channel@[0-4]$": - $ref: dac.yaml - type: object - additionalProperties: false - - properties: - reg: - description: The channel number representing the DAC output channel. - maximum: 4 - - adi,toggle-mode: - description: - Set the channel as a toggle enabled channel. Toggle operation enables - fast switching of a DAC output between two different DAC codes without - any SPI transaction. - type: boolean - - output-range-microamp: - items: - - const: 0 - - enum: [3125000, 6250000, 12500000, 25000000, 50000000, 100000000, - 200000000, 300000000] - - required: - - reg - - output-range-microamp - -required: - - compatible - - reg - - spi-max-frequency - - vcc-supply - - iovcc-supply - - v-neg-supply - -allOf: - - $ref: /schemas/spi/spi-peripheral-props.yaml# - -additionalProperties: false - -examples: - - | - spi { - #address-cells = <1>; - #size-cells = <0>; - dac@0 { - compatible = "adi,ltc2672"; - reg = <0>; - spi-max-frequency = <10000000>; - - vcc-supply = <&vcc>; - iovcc-supply = <&vcc>; - ref-supply = <&vref>; - v-neg-supply = <&vneg>; - - io-channels = <&adc 0>; - - #address-cells = <1>; - #size-cells = <0>; - channel@0 { - reg = <0>; - adi,toggle-mode; - output-range-microamp = <0 3125000>; - }; - - channel@1 { - reg = <1>; - output-range-microamp = <0 6250000>; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ltc2672.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices LTC2672 DAC + +maintainers: + - Michael Hennerich + - Kim Seer Paller + +description: | + Analog Devices LTC2672 5 channel, 12-/16-Bit, 300mA DAC + https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2672.pdf + +properties: + compatible: + enum: + - adi,ltc2672 + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 50000000 + + vcc-supply: + description: Analog Supply Voltage Input. + + v-neg-supply: + description: Negative Supply Voltage Input. + + vdd0-supply: + description: Positive Supply Voltage Input for DAC OUT0. + + vdd1-supply: + description: Positive Supply Voltage Input for DAC OUT1. + + vdd2-supply: + description: Positive Supply Voltage Input for DAC OUT2. + + vdd3-supply: + description: Positive Supply Voltage Input for DAC OUT3. + + vdd4-supply: + description: Positive Supply Voltage Input for DAC OUT4. + + iovcc-supply: + description: Digital Input/Output Supply Voltage. + + ref-supply: + description: + Reference Input/Output. The voltage at the REF pin sets the full-scale + range of all channels. If not provided the internal reference is used and + also provided on the VREF pin. + + reset-gpios: + description: + Active Low Asynchronous Clear Input. A logic low at this level triggered + input clears the device to the default reset code and output range, which + is zero-scale with the outputs off. The control registers are cleared to + zero. + maxItems: 1 + + adi,rfsadj-ohms: + description: + If FSADJ is tied to VCC, an internal RFSADJ (20 kΩ) is selected, which + results in nominal output ranges. When an external resistor of 19 kΩ to + 41 kΩ can be used instead by connecting the resistor between FSADJ and GND + it controls the scaling of the ranges, and the internal resistor is + automatically disconnected. + minimum: 19000 + maximum: 41000 + default: 20000 + + io-channels: + description: + ADC channel to monitor voltages and currents at the MUX pin. + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +patternProperties: + "^channel@[0-4]$": + $ref: dac.yaml + type: object + additionalProperties: false + + properties: + reg: + description: The channel number representing the DAC output channel. + maximum: 4 + + adi,toggle-mode: + description: + Set the channel as a toggle enabled channel. Toggle operation enables + fast switching of a DAC output between two different DAC codes without + any SPI transaction. + type: boolean + + output-range-microamp: + items: + - const: 0 + - enum: [3125000, 6250000, 12500000, 25000000, 50000000, 100000000, + 200000000, 300000000] + + required: + - reg + - output-range-microamp + +required: + - compatible + - reg + - spi-max-frequency + - vcc-supply + - iovcc-supply + - v-neg-supply + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + dac@0 { + compatible = "adi,ltc2672"; + reg = <0>; + spi-max-frequency = <10000000>; + + vcc-supply = <&vcc>; + iovcc-supply = <&vcc>; + ref-supply = <&vref>; + v-neg-supply = <&vneg>; + + io-channels = <&adc 0>; + + #address-cells = <1>; + #size-cells = <0>; + channel@0 { + reg = <0>; + adi,toggle-mode; + output-range-microamp = <0 3125000>; + }; + + channel@1 { + reg = <1>; + output-range-microamp = <0 6250000>; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/dac/adi,ltc2688.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/dac/adi,ltc2688.yaml index 0a587871d..f22ef710e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/dac/adi,ltc2688.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/dac/adi,ltc2688.yaml @@ -1,147 +1,147 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/dac/adi,ltc2688.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Analog Devices LTC2688 DAC - -maintainers: - - Nuno Sá - -description: | - Analog Devices LTC2688 16 channel, 16 bit, +-15V DAC - https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2688.pdf - -properties: - compatible: - enum: - - adi,ltc2688 - - reg: - maxItems: 1 - - vcc-supply: - description: Analog Supply Voltage Input. - - iovcc-supply: - description: Digital Input/Output Supply Voltage. - - vref-supply: - description: - Reference Input/Output. The voltage at the REF pin sets the full-scale - range of all channels. If not provided the internal reference is used and - also provided on the VREF pin". - - clr-gpios: - description: - If specified, it will be asserted during driver probe. As the line is - active low, it should be marked GPIO_ACTIVE_LOW. - maxItems: 1 - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - -patternProperties: - "^channel@([0-9]|1[0-5])$": - type: object - additionalProperties: false - - properties: - reg: - description: The channel number representing the DAC output channel. - maximum: 15 - - adi,toggle-mode: - description: - Set the channel as a toggle enabled channel. Toggle operation enables - fast switching of a DAC output between two different DAC codes without - any SPI transaction. - type: boolean - - adi,output-range-microvolt: - description: Specify the channel output full scale range. - oneOf: - - items: - - const: 0 - - enum: [5000000, 10000000] - - items: - - const: -5000000 - - const: 5000000 - - items: - - const: -10000000 - - const: 10000000 - - items: - - const: -15000000 - - const: 15000000 - - adi,overrange: - description: Enable 5% overrange over the selected full scale range. - type: boolean - - clocks: - maxItems: 1 - - adi,toggle-dither-input: - description: - Selects the TGPx pin to be associated with this channel. This setting - only makes sense for toggle or dither enabled channels. If - @adi,toggle-mode is not set and this property is given, the channel is - assumed to be a dither capable channel. Note that multiple channels - can be mapped to the same pin. If this setting is given, the - respective @clock must also be provided. Mappings between this and - input pins - 0 - TGP1 - 1 - TGP2 - 2 - TGP3 - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1, 2] - - dependencies: - adi,toggle-dither-input: [ clocks ] - - required: - - reg - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - - spi { - #address-cells = <1>; - #size-cells = <0>; - ltc2688: ltc2688@0 { - compatible = "adi,ltc2688"; - reg = <0>; - - vcc-supply = <&vcc>; - iovcc-supply = <&vcc>; - vref-supply = <&vref>; - - #address-cells = <1>; - #size-cells = <0>; - channel@0 { - reg = <0>; - adi,toggle-mode; - adi,overrange; - }; - - channel@1 { - reg = <1>; - adi,output-range-microvolt = <0 10000000>; - - clocks = <&clock_tgp3>; - adi,toggle-dither-input = <2>; - }; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ltc2688.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices LTC2688 DAC + +maintainers: + - Nuno Sá + +description: | + Analog Devices LTC2688 16 channel, 16 bit, +-15V DAC + https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2688.pdf + +properties: + compatible: + enum: + - adi,ltc2688 + + reg: + maxItems: 1 + + vcc-supply: + description: Analog Supply Voltage Input. + + iovcc-supply: + description: Digital Input/Output Supply Voltage. + + vref-supply: + description: + Reference Input/Output. The voltage at the REF pin sets the full-scale + range of all channels. If not provided the internal reference is used and + also provided on the VREF pin". + + clr-gpios: + description: + If specified, it will be asserted during driver probe. As the line is + active low, it should be marked GPIO_ACTIVE_LOW. + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +patternProperties: + "^channel@([0-9]|1[0-5])$": + type: object + additionalProperties: false + + properties: + reg: + description: The channel number representing the DAC output channel. + maximum: 15 + + adi,toggle-mode: + description: + Set the channel as a toggle enabled channel. Toggle operation enables + fast switching of a DAC output between two different DAC codes without + any SPI transaction. + type: boolean + + adi,output-range-microvolt: + description: Specify the channel output full scale range. + oneOf: + - items: + - const: 0 + - enum: [5000000, 10000000] + - items: + - const: -5000000 + - const: 5000000 + - items: + - const: -10000000 + - const: 10000000 + - items: + - const: -15000000 + - const: 15000000 + + adi,overrange: + description: Enable 5% overrange over the selected full scale range. + type: boolean + + clocks: + maxItems: 1 + + adi,toggle-dither-input: + description: + Selects the TGPx pin to be associated with this channel. This setting + only makes sense for toggle or dither enabled channels. If + @adi,toggle-mode is not set and this property is given, the channel is + assumed to be a dither capable channel. Note that multiple channels + can be mapped to the same pin. If this setting is given, the + respective @clock must also be provided. Mappings between this and + input pins + 0 - TGP1 + 1 - TGP2 + 2 - TGP3 + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2] + + dependencies: + adi,toggle-dither-input: [ clocks ] + + required: + - reg + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + + spi { + #address-cells = <1>; + #size-cells = <0>; + ltc2688: ltc2688@0 { + compatible = "adi,ltc2688"; + reg = <0>; + + vcc-supply = <&vcc>; + iovcc-supply = <&vcc>; + vref-supply = <&vref>; + + #address-cells = <1>; + #size-cells = <0>; + channel@0 { + reg = <0>; + adi,toggle-mode; + adi,overrange; + }; + + channel@1 { + reg = <1>; + adi,output-range-microvolt = <0 10000000>; + + clocks = <&clock_tgp3>; + adi,toggle-dither-input = <2>; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/frequency/adi,admfm2000.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/frequency/adi,admfm2000.yaml index b30b46f40..2bcf4bbc1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/frequency/adi,admfm2000.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/frequency/adi,admfm2000.yaml @@ -1,127 +1,127 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright 2024 Analog Devices Inc. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/frequency/adi,admfm2000.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ADMFM2000 Dual Microwave Down Converter - -maintainers: - - Kim Seer Paller - -description: - Dual microwave down converter module with input RF and LO frequency ranges - from 0.5 to 32 GHz and an output IF frequency range from 0.1 to 8 GHz. - It consists of a LNA, mixer, IF filter, DSA, and IF amplifier for each down - conversion path. - -properties: - compatible: - enum: - - adi,admfm2000 - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - -patternProperties: - "^channel@[0-1]$": - type: object - description: Represents a channel of the device. - - additionalProperties: false - - properties: - reg: - description: - The channel number. - minimum: 0 - maximum: 1 - - adi,mixer-mode: - description: - Enable mixer mode for the channel. It downconverts RF between 5 GHz - and 32 GHz to IF between 0.5 GHz and 8 GHz. If not present, the channel - is in direct IF mode which bypasses the mixer and downconverts RF - between 2 GHz and 8 GHz to IF between 0.5 GHz and 8 GHz. - type: boolean - - switch-gpios: - description: | - GPIOs to select the RF path for the channel. The same state of CTRL-A - and CTRL-B GPIOs is not permitted. - CTRL-A CTRL-B CH1 Status CH2 Status - 1 0 Direct IF mode Mixer mode - 0 1 Mixer mode Direct IF mode - - items: - - description: CTRL-A GPIO - - description: CTRL-B GPIO - - attenuation-gpios: - description: | - Choice of attenuation: - DSA-V4 DSA-V3 DSA-V2 DSA-V1 DSA-V0 - 1 1 1 1 1 0 dB - 1 1 1 1 0 -1 dB - 1 1 1 0 1 -2 dB - 1 1 0 1 1 -4 dB - 1 0 1 1 1 -8 dB - 0 1 1 1 1 -16 dB - 0 0 0 0 0 -31 dB - - items: - - description: DSA-V0 GPIO - - description: DSA-V1 GPIO - - description: DSA-V2 GPIO - - description: DSA-V3 GPIO - - description: DSA-V4 GPIO - - required: - - reg - - switch-gpios - - attenuation-gpios - -required: - - compatible - -additionalProperties: false - -examples: - - | - #include - converter { - compatible = "adi,admfm2000"; - - #address-cells = <1>; - #size-cells = <0>; - - channel@0 { - reg = <0>; - switch-gpios = <&gpio 1 GPIO_ACTIVE_LOW>, - <&gpio 2 GPIO_ACTIVE_HIGH>; - - attenuation-gpios = <&gpio 17 GPIO_ACTIVE_LOW>, - <&gpio 22 GPIO_ACTIVE_LOW>, - <&gpio 23 GPIO_ACTIVE_LOW>, - <&gpio 24 GPIO_ACTIVE_LOW>, - <&gpio 25 GPIO_ACTIVE_LOW>; - }; - - channel@1 { - reg = <1>; - adi,mixer-mode; - switch-gpios = <&gpio 3 GPIO_ACTIVE_LOW>, - <&gpio 4 GPIO_ACTIVE_HIGH>; - - attenuation-gpios = <&gpio 0 GPIO_ACTIVE_LOW>, - <&gpio 5 GPIO_ACTIVE_LOW>, - <&gpio 6 GPIO_ACTIVE_LOW>, - <&gpio 16 GPIO_ACTIVE_LOW>, - <&gpio 26 GPIO_ACTIVE_LOW>; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright 2024 Analog Devices Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/frequency/adi,admfm2000.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ADMFM2000 Dual Microwave Down Converter + +maintainers: + - Kim Seer Paller + +description: + Dual microwave down converter module with input RF and LO frequency ranges + from 0.5 to 32 GHz and an output IF frequency range from 0.1 to 8 GHz. + It consists of a LNA, mixer, IF filter, DSA, and IF amplifier for each down + conversion path. + +properties: + compatible: + enum: + - adi,admfm2000 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +patternProperties: + "^channel@[0-1]$": + type: object + description: Represents a channel of the device. + + additionalProperties: false + + properties: + reg: + description: + The channel number. + minimum: 0 + maximum: 1 + + adi,mixer-mode: + description: + Enable mixer mode for the channel. It downconverts RF between 5 GHz + and 32 GHz to IF between 0.5 GHz and 8 GHz. If not present, the channel + is in direct IF mode which bypasses the mixer and downconverts RF + between 2 GHz and 8 GHz to IF between 0.5 GHz and 8 GHz. + type: boolean + + switch-gpios: + description: | + GPIOs to select the RF path for the channel. The same state of CTRL-A + and CTRL-B GPIOs is not permitted. + CTRL-A CTRL-B CH1 Status CH2 Status + 1 0 Direct IF mode Mixer mode + 0 1 Mixer mode Direct IF mode + + items: + - description: CTRL-A GPIO + - description: CTRL-B GPIO + + attenuation-gpios: + description: | + Choice of attenuation: + DSA-V4 DSA-V3 DSA-V2 DSA-V1 DSA-V0 + 1 1 1 1 1 0 dB + 1 1 1 1 0 -1 dB + 1 1 1 0 1 -2 dB + 1 1 0 1 1 -4 dB + 1 0 1 1 1 -8 dB + 0 1 1 1 1 -16 dB + 0 0 0 0 0 -31 dB + + items: + - description: DSA-V0 GPIO + - description: DSA-V1 GPIO + - description: DSA-V2 GPIO + - description: DSA-V3 GPIO + - description: DSA-V4 GPIO + + required: + - reg + - switch-gpios + - attenuation-gpios + +required: + - compatible + +additionalProperties: false + +examples: + - | + #include + converter { + compatible = "adi,admfm2000"; + + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { + reg = <0>; + switch-gpios = <&gpio 1 GPIO_ACTIVE_LOW>, + <&gpio 2 GPIO_ACTIVE_HIGH>; + + attenuation-gpios = <&gpio 17 GPIO_ACTIVE_LOW>, + <&gpio 22 GPIO_ACTIVE_LOW>, + <&gpio 23 GPIO_ACTIVE_LOW>, + <&gpio 24 GPIO_ACTIVE_LOW>, + <&gpio 25 GPIO_ACTIVE_LOW>; + }; + + channel@1 { + reg = <1>; + adi,mixer-mode; + switch-gpios = <&gpio 3 GPIO_ACTIVE_LOW>, + <&gpio 4 GPIO_ACTIVE_HIGH>; + + attenuation-gpios = <&gpio 0 GPIO_ACTIVE_LOW>, + <&gpio 5 GPIO_ACTIVE_LOW>, + <&gpio 6 GPIO_ACTIVE_LOW>, + <&gpio 16 GPIO_ACTIVE_LOW>, + <&gpio 26 GPIO_ACTIVE_LOW>; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/frequency/adi,admv1013.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/frequency/adi,admv1013.yaml index c374567f3..f2eb2287e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/frequency/adi,admv1013.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/frequency/adi,admv1013.yaml @@ -1,154 +1,154 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/frequency/adi,admv1013.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ADMV1013 Microwave Upconverter - -maintainers: - - Antoniu Miclaus - -description: | - Wideband, microwave upconverter optimized for point to point microwave - radio designs operating in the 24 GHz to 44 GHz frequency range. - - https://www.analog.com/en/products/admv1013.html - -properties: - compatible: - enum: - - adi,admv1013 - - reg: - maxItems: 1 - - spi-max-frequency: - maximum: 1000000 - - clocks: - description: - Definition of the external clock. - minItems: 1 - - clock-names: - items: - - const: lo_in - - vcm-supply: - description: - Analog voltage regulator. - - vcc-drv-supply: - description: - RF Driver voltage regulator. - - vcc2-drv-supply: - description: - RF predriver voltage regulator. - - vcc-vva-supply: - description: - VVA Control Circuit voltage regulator. - - vcc-amp1-supply: - description: - RF Amplifier 1 voltage regulator. - - vcc-amp2-supply: - description: - RF Amplifier 2 voltage regulator. - - vcc-env-supply: - description: - Envelope Detector voltage regulator. - - vcc-bg-supply: - description: - Mixer Chip Band Gap Circuit voltage regulator. - - vcc-bg2-supply: - description: - VGA Chip Band Gap Circuit voltage regulator. - - vcc-mixer-supply: - description: - Mixer voltage regulator. - - vcc-quad-supply: - description: - Quadruppler voltage regulator. - - adi,detector-enable: - description: - Enable the Envelope Detector available at output pins VENV_P and - VENV_N. Disable to reduce power consumption. - type: boolean - - adi,input-mode: - description: - Select the input mode. - iq - in-phase quadrature (I/Q) input - if - complex intermediate frequency (IF) input - enum: [iq, if] - - adi,quad-se-mode: - description: - Switch the LO path from differential to single-ended operation. - se-neg - Single-Ended Mode, Negative Side Disabled. - se-pos - Single-Ended Mode, Positive Side Disabled. - diff - Differential Mode. - enum: [se-neg, se-pos, diff] - - '#clock-cells': - const: 0 - -required: - - compatible - - reg - - clocks - - clock-names - - vcm-supply - - vcc-drv-supply - - vcc2-drv-supply - - vcc-vva-supply - - vcc-amp1-supply - - vcc-amp2-supply - - vcc-env-supply - - vcc-bg-supply - - vcc-bg2-supply - - vcc-mixer-supply - - vcc-quad-supply - -allOf: - - $ref: /schemas/spi/spi-peripheral-props.yaml# - -unevaluatedProperties: false - -examples: - - | - spi { - #address-cells = <1>; - #size-cells = <0>; - admv1013@0{ - compatible = "adi,admv1013"; - reg = <0>; - spi-max-frequency = <1000000>; - clocks = <&admv1013_lo>; - clock-names = "lo_in"; - vcm-supply = <&vcm>; - vcc-drv-supply = <&vcc_drv>; - vcc2-drv-supply = <&vcc2_drv>; - vcc-vva-supply = <&vcc_vva>; - vcc-amp1-supply = <&vcc_amp1>; - vcc-amp2-supply = <&vcc_amp2>; - vcc-env-supply = <&vcc_env>; - vcc-bg-supply = <&vcc_bg>; - vcc-bg2-supply = <&vcc_bg2>; - vcc-mixer-supply = <&vcc_mixer>; - vcc-quad-supply = <&vcc_quad>; - adi,quad-se-mode = "diff"; - adi,detector-enable; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/frequency/adi,admv1013.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ADMV1013 Microwave Upconverter + +maintainers: + - Antoniu Miclaus + +description: | + Wideband, microwave upconverter optimized for point to point microwave + radio designs operating in the 24 GHz to 44 GHz frequency range. + + https://www.analog.com/en/products/admv1013.html + +properties: + compatible: + enum: + - adi,admv1013 + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 1000000 + + clocks: + description: + Definition of the external clock. + minItems: 1 + + clock-names: + items: + - const: lo_in + + vcm-supply: + description: + Analog voltage regulator. + + vcc-drv-supply: + description: + RF Driver voltage regulator. + + vcc2-drv-supply: + description: + RF predriver voltage regulator. + + vcc-vva-supply: + description: + VVA Control Circuit voltage regulator. + + vcc-amp1-supply: + description: + RF Amplifier 1 voltage regulator. + + vcc-amp2-supply: + description: + RF Amplifier 2 voltage regulator. + + vcc-env-supply: + description: + Envelope Detector voltage regulator. + + vcc-bg-supply: + description: + Mixer Chip Band Gap Circuit voltage regulator. + + vcc-bg2-supply: + description: + VGA Chip Band Gap Circuit voltage regulator. + + vcc-mixer-supply: + description: + Mixer voltage regulator. + + vcc-quad-supply: + description: + Quadruppler voltage regulator. + + adi,detector-enable: + description: + Enable the Envelope Detector available at output pins VENV_P and + VENV_N. Disable to reduce power consumption. + type: boolean + + adi,input-mode: + description: + Select the input mode. + iq - in-phase quadrature (I/Q) input + if - complex intermediate frequency (IF) input + enum: [iq, if] + + adi,quad-se-mode: + description: + Switch the LO path from differential to single-ended operation. + se-neg - Single-Ended Mode, Negative Side Disabled. + se-pos - Single-Ended Mode, Positive Side Disabled. + diff - Differential Mode. + enum: [se-neg, se-pos, diff] + + '#clock-cells': + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - vcm-supply + - vcc-drv-supply + - vcc2-drv-supply + - vcc-vva-supply + - vcc-amp1-supply + - vcc-amp2-supply + - vcc-env-supply + - vcc-bg-supply + - vcc-bg2-supply + - vcc-mixer-supply + - vcc-quad-supply + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + admv1013@0{ + compatible = "adi,admv1013"; + reg = <0>; + spi-max-frequency = <1000000>; + clocks = <&admv1013_lo>; + clock-names = "lo_in"; + vcm-supply = <&vcm>; + vcc-drv-supply = <&vcc_drv>; + vcc2-drv-supply = <&vcc2_drv>; + vcc-vva-supply = <&vcc_vva>; + vcc-amp1-supply = <&vcc_amp1>; + vcc-amp2-supply = <&vcc_amp2>; + vcc-env-supply = <&vcc_env>; + vcc-bg-supply = <&vcc_bg>; + vcc-bg2-supply = <&vcc_bg2>; + vcc-mixer-supply = <&vcc_mixer>; + vcc-quad-supply = <&vcc_quad>; + adi,quad-se-mode = "diff"; + adi,detector-enable; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/frequency/adi,admv1014.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/frequency/adi,admv1014.yaml index e68e49de9..39cc63a11 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/frequency/adi,admv1014.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/frequency/adi,admv1014.yaml @@ -1,145 +1,145 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/frequency/adi,admv1014.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ADMV1014 Microwave Downconverter - -maintainers: - - Antoniu Miclaus - -description: | - Wideband, microwave downconverter optimized for point to point microwave - radio designs operating in the 24 GHz to 44 GHz frequency range. - - https://www.analog.com/en/products/admv1014.html - -properties: - compatible: - enum: - - adi,admv1014 - - reg: - maxItems: 1 - - spi-max-frequency: - maximum: 1000000 - - clocks: - maxItems: 1 - - clock-names: - items: - - const: lo_in - description: - External clock that provides the Local Oscillator input. - - vcm-supply: - description: - Common-mode voltage regulator. - - vcc-if-bb-supply: - description: - BB and IF supply voltage regulator. - - vcc-vga-supply: - description: - RF Amplifier supply voltage regulator. - - vcc-vva-supply: - description: - VVA Control Circuit supply voltage regulator. - - vcc-lna-3p3-supply: - description: - Low Noise Amplifier 3.3V supply voltage regulator. - - vcc-lna-1p5-supply: - description: - Low Noise Amplifier 1.5V supply voltage regulator. - - vcc-bg-supply: - description: - Band Gap Circuit supply voltage regulator. - - vcc-quad-supply: - description: - Quadruple supply voltage regulator. - - vcc-mixer-supply: - description: - Mixer supply voltage regulator. - - adi,input-mode: - description: - Select the input mode. - iq - in-phase quadrature (I/Q) input - if - complex intermediate frequency (IF) input - enum: [iq, if] - - adi,detector-enable: - description: - Digital Rx Detector Enable. The Square Law Detector output is - available at output pin VDET. - type: boolean - - adi,p1db-compensation-enable: - description: - Turn on bits to optimize P1dB. - type: boolean - - adi,quad-se-mode: - description: - Switch the LO path from differential to single-ended operation. - se-neg - Single-Ended Mode, Negative Side Disabled. - se-pos - Single-Ended Mode, Positive Side Disabled. - diff - Differential Mode. - enum: [se-neg, se-pos, diff] - -required: - - compatible - - reg - - clocks - - clock-names - - vcm-supply - - vcc-if-bb-supply - - vcc-vga-supply - - vcc-vva-supply - - vcc-lna-3p3-supply - - vcc-lna-1p5-supply - - vcc-bg-supply - - vcc-quad-supply - - vcc-mixer-supply - -allOf: - - $ref: /schemas/spi/spi-peripheral-props.yaml# - -unevaluatedProperties: false - -examples: - - | - spi { - #address-cells = <1>; - #size-cells = <0>; - converter@0 { - compatible = "adi,admv1014"; - reg = <0>; - spi-max-frequency = <1000000>; - clocks = <&admv1014_lo>; - clock-names = "lo_in"; - vcm-supply = <&vcm>; - vcc-if-bb-supply = <&vcc_if_bb>; - vcc-vga-supply = <&vcc_vga>; - vcc-vva-supply = <&vcc_vva>; - vcc-lna-3p3-supply = <&vcc_lna_3p3>; - vcc-lna-1p5-supply = <&vcc_lna_1p5>; - vcc-bg-supply = <&vcc_bg>; - vcc-quad-supply = <&vcc_quad>; - vcc-mixer-supply = <&vcc_mixer>; - adi,quad-se-mode = "diff"; - adi,detector-enable; - adi,p1db-compensation-enable; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/frequency/adi,admv1014.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ADMV1014 Microwave Downconverter + +maintainers: + - Antoniu Miclaus + +description: | + Wideband, microwave downconverter optimized for point to point microwave + radio designs operating in the 24 GHz to 44 GHz frequency range. + + https://www.analog.com/en/products/admv1014.html + +properties: + compatible: + enum: + - adi,admv1014 + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 1000000 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: lo_in + description: + External clock that provides the Local Oscillator input. + + vcm-supply: + description: + Common-mode voltage regulator. + + vcc-if-bb-supply: + description: + BB and IF supply voltage regulator. + + vcc-vga-supply: + description: + RF Amplifier supply voltage regulator. + + vcc-vva-supply: + description: + VVA Control Circuit supply voltage regulator. + + vcc-lna-3p3-supply: + description: + Low Noise Amplifier 3.3V supply voltage regulator. + + vcc-lna-1p5-supply: + description: + Low Noise Amplifier 1.5V supply voltage regulator. + + vcc-bg-supply: + description: + Band Gap Circuit supply voltage regulator. + + vcc-quad-supply: + description: + Quadruple supply voltage regulator. + + vcc-mixer-supply: + description: + Mixer supply voltage regulator. + + adi,input-mode: + description: + Select the input mode. + iq - in-phase quadrature (I/Q) input + if - complex intermediate frequency (IF) input + enum: [iq, if] + + adi,detector-enable: + description: + Digital Rx Detector Enable. The Square Law Detector output is + available at output pin VDET. + type: boolean + + adi,p1db-compensation-enable: + description: + Turn on bits to optimize P1dB. + type: boolean + + adi,quad-se-mode: + description: + Switch the LO path from differential to single-ended operation. + se-neg - Single-Ended Mode, Negative Side Disabled. + se-pos - Single-Ended Mode, Positive Side Disabled. + diff - Differential Mode. + enum: [se-neg, se-pos, diff] + +required: + - compatible + - reg + - clocks + - clock-names + - vcm-supply + - vcc-if-bb-supply + - vcc-vga-supply + - vcc-vva-supply + - vcc-lna-3p3-supply + - vcc-lna-1p5-supply + - vcc-bg-supply + - vcc-quad-supply + - vcc-mixer-supply + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + converter@0 { + compatible = "adi,admv1014"; + reg = <0>; + spi-max-frequency = <1000000>; + clocks = <&admv1014_lo>; + clock-names = "lo_in"; + vcm-supply = <&vcm>; + vcc-if-bb-supply = <&vcc_if_bb>; + vcc-vga-supply = <&vcc_vga>; + vcc-vva-supply = <&vcc_vva>; + vcc-lna-3p3-supply = <&vcc_lna_3p3>; + vcc-lna-1p5-supply = <&vcc_lna_1p5>; + vcc-bg-supply = <&vcc_bg>; + vcc-quad-supply = <&vcc_quad>; + vcc-mixer-supply = <&vcc_mixer>; + adi,quad-se-mode = "diff"; + adi,detector-enable; + adi,p1db-compensation-enable; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml index a54d99eb3..9d185f7bf 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml @@ -1,165 +1,165 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/imu/adi,adis16475.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Analog Devices ADIS16475 and similar IMUs - -maintainers: - - Nuno Sá - -description: | - Analog Devices ADIS16475 and similar IMUs - https://www.analog.com/media/en/technical-documentation/data-sheets/ADIS16475.pdf - -properties: - compatible: - enum: - - adi,adis16475-1 - - adi,adis16475-2 - - adi,adis16475-3 - - adi,adis16477-1 - - adi,adis16477-2 - - adi,adis16477-3 - - adi,adis16470 - - adi,adis16465-1 - - adi,adis16465-2 - - adi,adis16465-3 - - adi,adis16467-1 - - adi,adis16467-2 - - adi,adis16467-3 - - adi,adis16500 - - adi,adis16501 - - adi,adis16505-1 - - adi,adis16505-2 - - adi,adis16505-3 - - adi,adis16507-1 - - adi,adis16507-2 - - adi,adis16507-3 - - adi,adis16575-2 - - adi,adis16575-3 - - adi,adis16576-2 - - adi,adis16576-3 - - adi,adis16577-2 - - adi,adis16577-3 - - reg: - maxItems: 1 - - spi-cpha: true - - spi-cpol: true - - spi-max-frequency: - maximum: 2000000 - - spi-cs-inactive-delay-ns: - minimum: 16000 - default: 16000 - - interrupts: - maxItems: 1 - - clocks: - maxItems: 1 - - reset-gpios: - description: - Must be the device tree identifier of the RESET pin. If specified, - it will be asserted during driver probe. As the line is active low, - it should be marked GPIO_ACTIVE_LOW. - maxItems: 1 - - adi,sync-mode: - description: - Configures the device SYNC pin. The following modes are supported - 0 - output_sync - 1 - direct_sync - 2 - scaled_sync - 3 - pulse_sync - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 3 - -required: - - compatible - - reg - - interrupts - - spi-cpha - - spi-cpol - -allOf: - - $ref: /schemas/spi/spi-peripheral-props.yaml# - - if: - properties: - compatible: - contains: - enum: - - adi,adis16500 - - adi,adis16501 - - adi,adis16505-1 - - adi,adis16505-2 - - adi,adis16505-3 - - adi,adis16507-1 - - adi,adis16507-2 - - adi,adis16507-3 - - adi,adis16575-2 - - adi,adis16575-3 - - adi,adis16576-2 - - adi,adis16576-3 - - adi,adis16577-2 - - adi,adis16577-3 - - then: - properties: - adi,sync-mode: - minimum: 0 - maximum: 2 - - - if: - properties: - adi,sync-mode: - enum: [1, 2, 3] - - then: - dependencies: - adi,sync-mode: [ clocks ] - - - if: - properties: - compatible: - contains: - enum: - - adi,adis16575-2 - - adi,adis16575-3 - - adi,adis16576-2 - - adi,adis16576-3 - - adi,adis16577-2 - - adi,adis16577-3 - - then: - properties: - spi-max-frequency: - maximum: 15000000 - -unevaluatedProperties: false - -examples: - - | - #include - spi { - #address-cells = <1>; - #size-cells = <0>; - - adis16475: adis16475-3@0 { - compatible = "adi,adis16475-3"; - reg = <0>; - spi-cpha; - spi-cpol; - spi-max-frequency = <2000000>; - interrupts = <4 IRQ_TYPE_EDGE_RISING>; - interrupt-parent = <&gpio>; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/imu/adi,adis16475.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices ADIS16475 and similar IMUs + +maintainers: + - Nuno Sá + +description: | + Analog Devices ADIS16475 and similar IMUs + https://www.analog.com/media/en/technical-documentation/data-sheets/ADIS16475.pdf + +properties: + compatible: + enum: + - adi,adis16475-1 + - adi,adis16475-2 + - adi,adis16475-3 + - adi,adis16477-1 + - adi,adis16477-2 + - adi,adis16477-3 + - adi,adis16470 + - adi,adis16465-1 + - adi,adis16465-2 + - adi,adis16465-3 + - adi,adis16467-1 + - adi,adis16467-2 + - adi,adis16467-3 + - adi,adis16500 + - adi,adis16501 + - adi,adis16505-1 + - adi,adis16505-2 + - adi,adis16505-3 + - adi,adis16507-1 + - adi,adis16507-2 + - adi,adis16507-3 + - adi,adis16575-2 + - adi,adis16575-3 + - adi,adis16576-2 + - adi,adis16576-3 + - adi,adis16577-2 + - adi,adis16577-3 + + reg: + maxItems: 1 + + spi-cpha: true + + spi-cpol: true + + spi-max-frequency: + maximum: 2000000 + + spi-cs-inactive-delay-ns: + minimum: 16000 + default: 16000 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + reset-gpios: + description: + Must be the device tree identifier of the RESET pin. If specified, + it will be asserted during driver probe. As the line is active low, + it should be marked GPIO_ACTIVE_LOW. + maxItems: 1 + + adi,sync-mode: + description: + Configures the device SYNC pin. The following modes are supported + 0 - output_sync + 1 - direct_sync + 2 - scaled_sync + 3 - pulse_sync + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 3 + +required: + - compatible + - reg + - interrupts + - spi-cpha + - spi-cpol + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + - if: + properties: + compatible: + contains: + enum: + - adi,adis16500 + - adi,adis16501 + - adi,adis16505-1 + - adi,adis16505-2 + - adi,adis16505-3 + - adi,adis16507-1 + - adi,adis16507-2 + - adi,adis16507-3 + - adi,adis16575-2 + - adi,adis16575-3 + - adi,adis16576-2 + - adi,adis16576-3 + - adi,adis16577-2 + - adi,adis16577-3 + + then: + properties: + adi,sync-mode: + minimum: 0 + maximum: 2 + + - if: + properties: + adi,sync-mode: + enum: [1, 2, 3] + + then: + dependencies: + adi,sync-mode: [ clocks ] + + - if: + properties: + compatible: + contains: + enum: + - adi,adis16575-2 + - adi,adis16575-3 + - adi,adis16576-2 + - adi,adis16576-3 + - adi,adis16577-2 + - adi,adis16577-3 + + then: + properties: + spi-max-frequency: + maximum: 15000000 + +unevaluatedProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + adis16475: adis16475-3@0 { + compatible = "adi,adis16475-3"; + reg = <0>; + spi-cpha; + spi-cpol; + spi-max-frequency = <2000000>; + interrupts = <4 IRQ_TYPE_EDGE_RISING>; + interrupt-parent = <&gpio>; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/imu/adi,adis16480.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/imu/adi,adis16480.yaml index 1d5d2895a..e3eec3889 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/imu/adi,adis16480.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/imu/adi,adis16480.yaml @@ -1,137 +1,137 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/imu/adi,adis16480.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Analog Devices ADIS16480 and similar IMUs - -maintainers: - - Alexandru Tachici - -properties: - compatible: - enum: - - adi,adis16375 - - adi,adis16480 - - adi,adis16485 - - adi,adis16488 - - adi,adis16490 - - adi,adis16495-1 - - adi,adis16495-2 - - adi,adis16495-3 - - adi,adis16497-1 - - adi,adis16497-2 - - adi,adis16497-3 - - adi,adis16545-1 - - adi,adis16545-2 - - adi,adis16545-3 - - adi,adis16547-1 - - adi,adis16547-2 - - adi,adis16547-3 - - reg: - maxItems: 1 - - interrupts: - minItems: 1 - maxItems: 2 - description: | - Accepted interrupt types are: - * IRQ_TYPE_EDGE_RISING - * IRQ_TYPE_EDGE_FALLING - - interrupt-names: - minItems: 1 - maxItems: 2 - description: - Default if not supplied is DIO1. - items: - enum: - - DIO1 - - DIO2 - - DIO3 - - DIO4 - - spi-cpha: true - spi-cpol: true - - reset-gpios: - maxItems: 1 - description: Connected to RESET pin which is active low. - - clocks: - maxItems: 1 - description: If not provided, then the internal clock is used. - - clock-names: - description: | - sync: In sync mode, the internal clock is disabled and the frequency - of the external clock signal establishes therate of data - collection and processing. See Fig 14 and 15 in the datasheet. - The clock-frequency must be: - * 3000 to 4500 Hz for adis1649x devices. - * 700 to 2400 Hz for adis1648x devices. - pps: In Pulse Per Second (PPS) Mode, the rate of data collection and - production is equal to the product of the external clock - frequency and the scale factor in the SYNC_SCALE register, see - Table 154 in the datasheet. - The clock-frequency must be: - * 1 to 128 Hz for adis1649x devices. - * This mode is not supported by adis1648x devices. - enum: - - sync - - pps - - adi,ext-clk-pin: - $ref: /schemas/types.yaml#/definitions/string - description: | - The DIOx line to be used as an external clock input. - Each DIOx pin supports only one function at a time (data ready line - selection or external clock input). When a single pin has two - two assignments, the enable bit for the lower priority function - automatically resets to zero (disabling the lower priority function). - Data ready has highest priority. - If not provided then DIO2 is assigned as default external clock - input pin. - enum: - - DIO1 - - DIO2 - - DIO3 - - DIO4 - -required: - - compatible - - reg - - interrupts - - spi-cpha - - spi-cpol - - spi-max-frequency - -allOf: - - $ref: /schemas/spi/spi-peripheral-props.yaml# - -unevaluatedProperties: false - -examples: - - | - #include - spi { - #address-cells = <1>; - #size-cells = <0>; - - imu@0 { - compatible = "adi,adis16495-1"; - reg = <0>; - spi-max-frequency = <3200000>; - spi-cpol; - spi-cpha; - interrupts = <25 IRQ_TYPE_EDGE_FALLING>; - interrupt-parent = <&gpio>; - interrupt-names = "DIO2"; - clocks = <&adis16495_sync>; - clock-names = "sync"; - adi,ext-clk-pin = "DIO1"; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/imu/adi,adis16480.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices ADIS16480 and similar IMUs + +maintainers: + - Alexandru Tachici + +properties: + compatible: + enum: + - adi,adis16375 + - adi,adis16480 + - adi,adis16485 + - adi,adis16488 + - adi,adis16490 + - adi,adis16495-1 + - adi,adis16495-2 + - adi,adis16495-3 + - adi,adis16497-1 + - adi,adis16497-2 + - adi,adis16497-3 + - adi,adis16545-1 + - adi,adis16545-2 + - adi,adis16545-3 + - adi,adis16547-1 + - adi,adis16547-2 + - adi,adis16547-3 + + reg: + maxItems: 1 + + interrupts: + minItems: 1 + maxItems: 2 + description: | + Accepted interrupt types are: + * IRQ_TYPE_EDGE_RISING + * IRQ_TYPE_EDGE_FALLING + + interrupt-names: + minItems: 1 + maxItems: 2 + description: + Default if not supplied is DIO1. + items: + enum: + - DIO1 + - DIO2 + - DIO3 + - DIO4 + + spi-cpha: true + spi-cpol: true + + reset-gpios: + maxItems: 1 + description: Connected to RESET pin which is active low. + + clocks: + maxItems: 1 + description: If not provided, then the internal clock is used. + + clock-names: + description: | + sync: In sync mode, the internal clock is disabled and the frequency + of the external clock signal establishes therate of data + collection and processing. See Fig 14 and 15 in the datasheet. + The clock-frequency must be: + * 3000 to 4500 Hz for adis1649x devices. + * 700 to 2400 Hz for adis1648x devices. + pps: In Pulse Per Second (PPS) Mode, the rate of data collection and + production is equal to the product of the external clock + frequency and the scale factor in the SYNC_SCALE register, see + Table 154 in the datasheet. + The clock-frequency must be: + * 1 to 128 Hz for adis1649x devices. + * This mode is not supported by adis1648x devices. + enum: + - sync + - pps + + adi,ext-clk-pin: + $ref: /schemas/types.yaml#/definitions/string + description: | + The DIOx line to be used as an external clock input. + Each DIOx pin supports only one function at a time (data ready line + selection or external clock input). When a single pin has two + two assignments, the enable bit for the lower priority function + automatically resets to zero (disabling the lower priority function). + Data ready has highest priority. + If not provided then DIO2 is assigned as default external clock + input pin. + enum: + - DIO1 + - DIO2 + - DIO3 + - DIO4 + +required: + - compatible + - reg + - interrupts + - spi-cpha + - spi-cpol + - spi-max-frequency + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + imu@0 { + compatible = "adi,adis16495-1"; + reg = <0>; + spi-max-frequency = <3200000>; + spi-cpol; + spi-cpha; + interrupts = <25 IRQ_TYPE_EDGE_FALLING>; + interrupt-parent = <&gpio>; + interrupt-names = "DIO2"; + clocks = <&adis16495_sync>; + clock-names = "sync"; + adi,ext-clk-pin = "DIO1"; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml index 30afd4593..775555d14 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml @@ -1,131 +1,131 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/proximity/semtech,sx9310.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Semtech's SX9310 capacitive proximity sensor - -maintainers: - - Daniel Campello - -description: | - Semtech's SX9310/SX9311 capacitive proximity/button solution. - - Specifications about the devices can be found at: - https://www.semtech.com/products/smart-sensing/sar-sensors/sx9310 - -allOf: - - $ref: /schemas/iio/iio.yaml# - -properties: - compatible: - enum: - - semtech,sx9310 - - semtech,sx9311 - - reg: - maxItems: 1 - - interrupts: - description: - The sole interrupt generated by the device used to announce the - preceding reading request has finished and that data is - available or that a close/far proximity event has happened. - maxItems: 1 - - vdd-supply: - description: Main power supply - - svdd-supply: - description: Host interface power supply - - "#io-channel-cells": - const: 1 - - semtech,cs0-ground: - description: Indicates the CS0 sensor is connected to ground. - type: boolean - - semtech,combined-sensors: - $ref: /schemas/types.yaml#/definitions/uint32-array - description: | - List of which sensors are combined and represented by CS3. - Possible values are - - 3 - CS3 (internal) - 0 1 - CS0 + CS1 - 1 2 - CS1 + CS2 (default) - 0 1 2 3 - CS0 + CS1 + CS2 + CS3 - items: - enum: [ 0, 1, 2, 3 ] - minItems: 1 - maxItems: 4 - - semtech,resolution: - description: - Capacitance measure resolution. Refer to datasheet for more details. - enum: - - coarsest - - very-coarse - - coarse - - medium-coarse - - medium - - fine - - very-fine - - finest - - semtech,startup-sensor: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1, 2, 3] - default: 0 - description: - Sensor used for start-up proximity detection. The combined - sensor is represented by the value 3. This is used for initial - compensation. - - semtech,proxraw-strength: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 2, 4, 8] - default: 2 - description: - PROXRAW filter strength. A value of 0 represents off, and other values - represent 1-1/N. - - semtech,avg-pos-strength: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 16, 64, 128, 256, 512, 1024, 4294967295] - default: 16 - description: - Average positive filter strength. A value of 0 represents off and - UINT_MAX (4294967295) represents infinite. Other values - represent 1-1/N. - -required: - - compatible - - reg - - "#io-channel-cells" - -unevaluatedProperties: false - -examples: - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - proximity@28 { - compatible = "semtech,sx9310"; - reg = <0x28>; - interrupt-parent = <&pio>; - interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>; - vdd-supply = <&pp3300_a>; - svdd-supply = <&pp1800_prox>; - #io-channel-cells = <1>; - semtech,cs0-ground; - semtech,combined-sensors = <1 2 3>; - semtech,resolution = "fine"; - semtech,startup-sensor = <1>; - semtech,proxraw-strength = <2>; - semtech,avg-pos-strength = <64>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/proximity/semtech,sx9310.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Semtech's SX9310 capacitive proximity sensor + +maintainers: + - Daniel Campello + +description: | + Semtech's SX9310/SX9311 capacitive proximity/button solution. + + Specifications about the devices can be found at: + https://www.semtech.com/products/smart-sensing/sar-sensors/sx9310 + +allOf: + - $ref: /schemas/iio/iio.yaml# + +properties: + compatible: + enum: + - semtech,sx9310 + - semtech,sx9311 + + reg: + maxItems: 1 + + interrupts: + description: + The sole interrupt generated by the device used to announce the + preceding reading request has finished and that data is + available or that a close/far proximity event has happened. + maxItems: 1 + + vdd-supply: + description: Main power supply + + svdd-supply: + description: Host interface power supply + + "#io-channel-cells": + const: 1 + + semtech,cs0-ground: + description: Indicates the CS0 sensor is connected to ground. + type: boolean + + semtech,combined-sensors: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: | + List of which sensors are combined and represented by CS3. + Possible values are - + 3 - CS3 (internal) + 0 1 - CS0 + CS1 + 1 2 - CS1 + CS2 (default) + 0 1 2 3 - CS0 + CS1 + CS2 + CS3 + items: + enum: [ 0, 1, 2, 3 ] + minItems: 1 + maxItems: 4 + + semtech,resolution: + description: + Capacitance measure resolution. Refer to datasheet for more details. + enum: + - coarsest + - very-coarse + - coarse + - medium-coarse + - medium + - fine + - very-fine + - finest + + semtech,startup-sensor: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 3] + default: 0 + description: + Sensor used for start-up proximity detection. The combined + sensor is represented by the value 3. This is used for initial + compensation. + + semtech,proxraw-strength: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 2, 4, 8] + default: 2 + description: + PROXRAW filter strength. A value of 0 represents off, and other values + represent 1-1/N. + + semtech,avg-pos-strength: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 16, 64, 128, 256, 512, 1024, 4294967295] + default: 16 + description: + Average positive filter strength. A value of 0 represents off and + UINT_MAX (4294967295) represents infinite. Other values + represent 1-1/N. + +required: + - compatible + - reg + - "#io-channel-cells" + +unevaluatedProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + proximity@28 { + compatible = "semtech,sx9310"; + reg = <0x28>; + interrupt-parent = <&pio>; + interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>; + vdd-supply = <&pp3300_a>; + svdd-supply = <&pp1800_prox>; + #io-channel-cells = <1>; + semtech,cs0-ground; + semtech,combined-sensors = <1 2 3>; + semtech,resolution = "fine"; + semtech,startup-sensor = <1>; + semtech,proxraw-strength = <2>; + semtech,avg-pos-strength = <64>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/adc-joystick.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/adc-joystick.yaml index ffa7ec038..6c244d66f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/adc-joystick.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/adc-joystick.yaml @@ -1,127 +1,127 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -# Copyright 2019-2020 Artur Rojek -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/input/adc-joystick.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ADC attached joystick - -maintainers: - - Artur Rojek - -description: > - Bindings for joystick devices connected to ADC controllers supporting - the Industrial I/O subsystem. - -allOf: - - $ref: input.yaml# - -properties: - compatible: - const: adc-joystick - - io-channels: - minItems: 1 - maxItems: 1024 - description: > - List of phandle and IIO specifier pairs. - Each pair defines one ADC channel to which a joystick axis is connected. - See - https://github.com/devicetree-org/dt-schema/blob/master/schemas/iio/iio-consumer.yaml - for details. - - poll-interval: true - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - -required: - - compatible - - io-channels - - '#address-cells' - - '#size-cells' - -additionalProperties: false - -patternProperties: - "^axis@[0-9a-f]+$": - type: object - $ref: input.yaml# - description: > - Represents a joystick axis bound to the given ADC channel. - For each entry in the io-channels list, one axis subnode with a matching - reg property must be specified. - - properties: - reg: - minimum: 0 - maximum: 1023 - description: Index of an io-channels list entry bound to this axis. - - linux,code: - description: EV_ABS specific event code generated by the axis. - - abs-range: - $ref: /schemas/types.yaml#/definitions/uint32-array - items: - - description: minimum value - - description: maximum value - description: > - Minimum and maximum values produced by the axis. - For an ABS_X axis this will be the left-most and right-most - inclination of the joystick. If min > max, it is left to userspace to - treat the axis as inverted. - This property is interpreted as two signed 32 bit values. - - abs-fuzz: - $ref: /schemas/types.yaml#/definitions/uint32 - description: > - Amount of noise in the input value. - Omitting this property indicates the axis is precise. - - abs-flat: - $ref: /schemas/types.yaml#/definitions/uint32 - description: > - Axial "deadzone", or area around the center position, where the axis - is considered to be at rest. - Omitting this property indicates the axis always returns to exactly - the center position. - - required: - - reg - - linux,code - - abs-range - - additionalProperties: false - -examples: - - | - #include - #include - - joystick: adc-joystick { - compatible = "adc-joystick"; - io-channels = <&adc INGENIC_ADC_TOUCH_XP>, - <&adc INGENIC_ADC_TOUCH_YP>; - #address-cells = <1>; - #size-cells = <0>; - - axis@0 { - reg = <0>; - linux,code = ; - abs-range = <3300 0>; - abs-fuzz = <4>; - abs-flat = <200>; - }; - axis@1 { - reg = <1>; - linux,code = ; - abs-range = <0 3300>; - abs-fuzz = <4>; - abs-flat = <200>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2019-2020 Artur Rojek +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/adc-joystick.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ADC attached joystick + +maintainers: + - Artur Rojek + +description: > + Bindings for joystick devices connected to ADC controllers supporting + the Industrial I/O subsystem. + +allOf: + - $ref: input.yaml# + +properties: + compatible: + const: adc-joystick + + io-channels: + minItems: 1 + maxItems: 1024 + description: > + List of phandle and IIO specifier pairs. + Each pair defines one ADC channel to which a joystick axis is connected. + See + https://github.com/devicetree-org/dt-schema/blob/master/schemas/iio/iio-consumer.yaml + for details. + + poll-interval: true + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +required: + - compatible + - io-channels + - '#address-cells' + - '#size-cells' + +additionalProperties: false + +patternProperties: + "^axis@[0-9a-f]+$": + type: object + $ref: input.yaml# + description: > + Represents a joystick axis bound to the given ADC channel. + For each entry in the io-channels list, one axis subnode with a matching + reg property must be specified. + + properties: + reg: + minimum: 0 + maximum: 1023 + description: Index of an io-channels list entry bound to this axis. + + linux,code: + description: EV_ABS specific event code generated by the axis. + + abs-range: + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + - description: minimum value + - description: maximum value + description: > + Minimum and maximum values produced by the axis. + For an ABS_X axis this will be the left-most and right-most + inclination of the joystick. If min > max, it is left to userspace to + treat the axis as inverted. + This property is interpreted as two signed 32 bit values. + + abs-fuzz: + $ref: /schemas/types.yaml#/definitions/uint32 + description: > + Amount of noise in the input value. + Omitting this property indicates the axis is precise. + + abs-flat: + $ref: /schemas/types.yaml#/definitions/uint32 + description: > + Axial "deadzone", or area around the center position, where the axis + is considered to be at rest. + Omitting this property indicates the axis always returns to exactly + the center position. + + required: + - reg + - linux,code + - abs-range + + additionalProperties: false + +examples: + - | + #include + #include + + joystick: adc-joystick { + compatible = "adc-joystick"; + io-channels = <&adc INGENIC_ADC_TOUCH_XP>, + <&adc INGENIC_ADC_TOUCH_YP>; + #address-cells = <1>; + #size-cells = <0>; + + axis@0 { + reg = <0>; + linux,code = ; + abs-range = <3300 0>; + abs-fuzz = <4>; + abs-flat = <200>; + }; + axis@1 { + reg = <1>; + linux,code = ; + abs-range = <0 3300>; + abs-fuzz = <4>; + abs-flat = <200>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/adi,adp5588.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/adi,adp5588.yaml index f2e4cf968..336bc3525 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/adi,adp5588.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/adi,adp5588.yaml @@ -1,139 +1,139 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/input/adi,adp5588.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Analog Devices ADP5588 Keypad Controller - -maintainers: - - Nuno Sá - -description: | - Analog Devices Mobile I/O Expander and QWERTY Keypad Controller - https://www.analog.com/media/en/technical-documentation/data-sheets/ADP5588.pdf - -allOf: - - $ref: matrix-keymap.yaml# - - $ref: input.yaml# - -properties: - compatible: - enum: - - adi,adp5587 - - adi,adp5588 - - reg: - maxItems: 1 - - vcc-supply: - description: Supply Voltage Input - - reset-gpios: - description: - If specified, it will be asserted during driver probe. As the line is - active low, it should be marked GPIO_ACTIVE_LOW. - maxItems: 1 - - interrupts: - maxItems: 1 - - gpio-controller: - description: - This property applies if either keypad,num-rows lower than 8 or - keypad,num-columns lower than 10. - - '#gpio-cells': - const: 2 - - interrupt-controller: - description: - This property applies if either keypad,num-rows lower than 8 or - keypad,num-columns lower than 10. This property is optional if - keypad,num-rows or keypad,num-columns are not specified as the - device is then configured to be used purely for gpio during which - interrupts may or may not be utilized. - - '#interrupt-cells': - const: 2 - - adi,unlock-keys: - description: - Specifies a maximum of 2 keys that can be used to unlock the keypad. - If this property is set, the keyboard will be locked and only unlocked - after these keys are pressed. If only one key is set, a double click is - needed to unlock the keypad. The value of this property cannot be bigger - or equal than keypad,num-rows * keypad,num-columns. - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 2 - -dependencies: - keypad,num-rows: - - linux,keymap - - keypad,num-columns - keypad,num-columns: - - linux,keymap - - keypad,num-rows - linux,keymap: - - keypad,num-rows - - keypad,num-columns - - interrupts - interrupt-controller: - - interrupts - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - keys@34 { - compatible = "adi,adp5588"; - reg = <0x34>; - - vcc-supply = <&vcc>; - interrupts = <21 IRQ_TYPE_EDGE_FALLING>; - interrupt-parent = <&gpio>; - reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>; - - keypad,num-rows = <1>; - keypad,num-columns = <9>; - linux,keymap = < - MATRIX_KEY(0x00, 0x00, KEY_1) - MATRIX_KEY(0x00, 0x01, KEY_2) - MATRIX_KEY(0x00, 0x02, KEY_3) - MATRIX_KEY(0x00, 0x03, KEY_4) - MATRIX_KEY(0x00, 0x04, KEY_5) - MATRIX_KEY(0x00, 0x05, KEY_6) - MATRIX_KEY(0x00, 0x06, KEY_7) - MATRIX_KEY(0x00, 0x07, KEY_8) - MATRIX_KEY(0x00, 0x08, KEY_9) - >; - }; - }; - - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - gpio@34 { - compatible = "adi,adp5588"; - reg = <0x34>; - - #gpio-cells = <2>; - gpio-controller; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/adi,adp5588.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices ADP5588 Keypad Controller + +maintainers: + - Nuno Sá + +description: | + Analog Devices Mobile I/O Expander and QWERTY Keypad Controller + https://www.analog.com/media/en/technical-documentation/data-sheets/ADP5588.pdf + +allOf: + - $ref: matrix-keymap.yaml# + - $ref: input.yaml# + +properties: + compatible: + enum: + - adi,adp5587 + - adi,adp5588 + + reg: + maxItems: 1 + + vcc-supply: + description: Supply Voltage Input + + reset-gpios: + description: + If specified, it will be asserted during driver probe. As the line is + active low, it should be marked GPIO_ACTIVE_LOW. + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-controller: + description: + This property applies if either keypad,num-rows lower than 8 or + keypad,num-columns lower than 10. + + '#gpio-cells': + const: 2 + + interrupt-controller: + description: + This property applies if either keypad,num-rows lower than 8 or + keypad,num-columns lower than 10. This property is optional if + keypad,num-rows or keypad,num-columns are not specified as the + device is then configured to be used purely for gpio during which + interrupts may or may not be utilized. + + '#interrupt-cells': + const: 2 + + adi,unlock-keys: + description: + Specifies a maximum of 2 keys that can be used to unlock the keypad. + If this property is set, the keyboard will be locked and only unlocked + after these keys are pressed. If only one key is set, a double click is + needed to unlock the keypad. The value of this property cannot be bigger + or equal than keypad,num-rows * keypad,num-columns. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 2 + +dependencies: + keypad,num-rows: + - linux,keymap + - keypad,num-columns + keypad,num-columns: + - linux,keymap + - keypad,num-rows + linux,keymap: + - keypad,num-rows + - keypad,num-columns + - interrupts + interrupt-controller: + - interrupts + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + keys@34 { + compatible = "adi,adp5588"; + reg = <0x34>; + + vcc-supply = <&vcc>; + interrupts = <21 IRQ_TYPE_EDGE_FALLING>; + interrupt-parent = <&gpio>; + reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>; + + keypad,num-rows = <1>; + keypad,num-columns = <9>; + linux,keymap = < + MATRIX_KEY(0x00, 0x00, KEY_1) + MATRIX_KEY(0x00, 0x01, KEY_2) + MATRIX_KEY(0x00, 0x02, KEY_3) + MATRIX_KEY(0x00, 0x03, KEY_4) + MATRIX_KEY(0x00, 0x04, KEY_5) + MATRIX_KEY(0x00, 0x05, KEY_6) + MATRIX_KEY(0x00, 0x06, KEY_7) + MATRIX_KEY(0x00, 0x07, KEY_8) + MATRIX_KEY(0x00, 0x08, KEY_9) + >; + }; + }; + + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + gpio@34 { + compatible = "adi,adp5588"; + reg = <0x34>; + + #gpio-cells = <2>; + gpio-controller; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml index dfd1778ac..c40799355 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml @@ -1,120 +1,120 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/input/atmel,maxtouch.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Atmel maXTouch touchscreen/touchpad - -maintainers: - - Nick Dyer - - Linus Walleij - -description: | - Atmel maXTouch touchscreen or touchpads such as the mXT244 - and similar devices. - -allOf: - - $ref: input.yaml# - -properties: - compatible: - const: atmel,maxtouch - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - vdda-supply: - description: - Optional regulator for the AVDD analog voltage. - - vdd-supply: - description: - Optional regulator for the VDD digital voltage. - - reset-gpios: - maxItems: 1 - description: - Optional GPIO specifier for the touchscreen's reset pin - (active low). The line must be flagged with - GPIO_ACTIVE_LOW. - - wake-gpios: - maxItems: 1 - description: - Optional GPIO specifier for the touchscreen's wake pin - (active low). The line must be flagged with - GPIO_ACTIVE_LOW. - - linux,gpio-keymap: - $ref: /schemas/types.yaml#/definitions/uint32-array - description: | - When enabled, the SPT_GPIOPWN_T19 object sends messages - on GPIO bit changes. An array of up to 8 entries can be provided - indicating the Linux keycode mapped to each bit of the status byte, - starting at the LSB. Linux keycodes are defined in - . - - Note: the numbering of the GPIOs and the bit they start at varies - between maXTouch devices. You must either refer to the documentation, - or experiment to determine which bit corresponds to which input. Use - KEY_RESERVED for unused padding values. - - linux,keycodes: - minItems: 1 - maxItems: 8 - - atmel,wakeup-method: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - The WAKE line is an active-low input that is used to wake up the touch - controller from deep-sleep mode before communication with the controller - could be started. This optional feature used to minimize current - consumption when the controller is in deep sleep mode. This feature is - relevant only to some controller families, like mXT1386 controller for - example. - - The WAKE pin can be connected in one of the following ways: - 1) left permanently low - 2) connected to the I2C-compatible SCL pin - 3) connected to a GPIO pin on the host - enum: - - 0 # ATMEL_MXT_WAKEUP_NONE - - 1 # ATMEL_MXT_WAKEUP_I2C_SCL - - 2 # ATMEL_MXT_WAKEUP_GPIO - default: 0 - - wakeup-source: - type: boolean - -required: - - compatible - - reg - - interrupts - -additionalProperties: false - -examples: - - | - #include - #include - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - touchscreen@4a { - compatible = "atmel,maxtouch"; - reg = <0x4a>; - interrupt-parent = <&gpio>; - interrupts = <26 IRQ_TYPE_EDGE_FALLING>; - reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>; - vdda-supply = <&ab8500_ldo_aux2_reg>; - vdd-supply = <&ab8500_ldo_aux5_reg>; - atmel,wakeup-method = ; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/atmel,maxtouch.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel maXTouch touchscreen/touchpad + +maintainers: + - Nick Dyer + - Linus Walleij + +description: | + Atmel maXTouch touchscreen or touchpads such as the mXT244 + and similar devices. + +allOf: + - $ref: input.yaml# + +properties: + compatible: + const: atmel,maxtouch + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vdda-supply: + description: + Optional regulator for the AVDD analog voltage. + + vdd-supply: + description: + Optional regulator for the VDD digital voltage. + + reset-gpios: + maxItems: 1 + description: + Optional GPIO specifier for the touchscreen's reset pin + (active low). The line must be flagged with + GPIO_ACTIVE_LOW. + + wake-gpios: + maxItems: 1 + description: + Optional GPIO specifier for the touchscreen's wake pin + (active low). The line must be flagged with + GPIO_ACTIVE_LOW. + + linux,gpio-keymap: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: | + When enabled, the SPT_GPIOPWN_T19 object sends messages + on GPIO bit changes. An array of up to 8 entries can be provided + indicating the Linux keycode mapped to each bit of the status byte, + starting at the LSB. Linux keycodes are defined in + . + + Note: the numbering of the GPIOs and the bit they start at varies + between maXTouch devices. You must either refer to the documentation, + or experiment to determine which bit corresponds to which input. Use + KEY_RESERVED for unused padding values. + + linux,keycodes: + minItems: 1 + maxItems: 8 + + atmel,wakeup-method: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + The WAKE line is an active-low input that is used to wake up the touch + controller from deep-sleep mode before communication with the controller + could be started. This optional feature used to minimize current + consumption when the controller is in deep sleep mode. This feature is + relevant only to some controller families, like mXT1386 controller for + example. + + The WAKE pin can be connected in one of the following ways: + 1) left permanently low + 2) connected to the I2C-compatible SCL pin + 3) connected to a GPIO pin on the host + enum: + - 0 # ATMEL_MXT_WAKEUP_NONE + - 1 # ATMEL_MXT_WAKEUP_I2C_SCL + - 2 # ATMEL_MXT_WAKEUP_GPIO + default: 0 + + wakeup-source: + type: boolean + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + touchscreen@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&gpio>; + interrupts = <26 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>; + vdda-supply = <&ab8500_ldo_aux2_reg>; + vdd-supply = <&ab8500_ldo_aux5_reg>; + atmel,wakeup-method = ; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/brcm,bcm-keypad.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/brcm,bcm-keypad.txt index 895d18a94..262deab73 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/brcm,bcm-keypad.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/brcm,bcm-keypad.txt @@ -1,107 +1,107 @@ -* Broadcom Keypad Controller device tree bindings - -Broadcom Keypad controller is used to interface a SoC with a matrix-type -keypad device. The keypad controller supports multiple row and column lines. -A key can be placed at each intersection of a unique row and a unique column. -The keypad controller can sense a key-press and key-release and report the -event using a interrupt to the cpu. - -This binding is based on the matrix-keymap binding with the following -changes: - -keypad,num-rows and keypad,num-columns are required. - -Required SoC Specific Properties: -- compatible: should be "brcm,bcm-keypad" - -- reg: physical base address of the controller and length of memory mapped - region. - -- interrupts: The interrupt number to the cpu. - -Board Specific Properties: -- keypad,num-rows: Number of row lines connected to the keypad - controller. - -- keypad,num-columns: Number of column lines connected to the - keypad controller. - -- col-debounce-filter-period: The debounce period for the Column filter. - - KEYPAD_DEBOUNCE_1_ms = 0 - KEYPAD_DEBOUNCE_2_ms = 1 - KEYPAD_DEBOUNCE_4_ms = 2 - KEYPAD_DEBOUNCE_8_ms = 3 - KEYPAD_DEBOUNCE_16_ms = 4 - KEYPAD_DEBOUNCE_32_ms = 5 - KEYPAD_DEBOUNCE_64_ms = 6 - KEYPAD_DEBOUNCE_128_ms = 7 - -- status-debounce-filter-period: The debounce period for the Status filter. - - KEYPAD_DEBOUNCE_1_ms = 0 - KEYPAD_DEBOUNCE_2_ms = 1 - KEYPAD_DEBOUNCE_4_ms = 2 - KEYPAD_DEBOUNCE_8_ms = 3 - KEYPAD_DEBOUNCE_16_ms = 4 - KEYPAD_DEBOUNCE_32_ms = 5 - KEYPAD_DEBOUNCE_64_ms = 6 - KEYPAD_DEBOUNCE_128_ms = 7 - -- row-output-enabled: An optional property indicating whether the row or - column is being used as output. If specified the row is being used - as the output. Else defaults to column. - -- pull-up-enabled: An optional property indicating the Keypad scan mode. - If specified implies the keypad scan pull-up has been enabled. - -- autorepeat: Boolean, Enable auto repeat feature of Linux input - subsystem (optional). - -- linux,keymap: The keymap for keys as described in the binding document - devicetree/bindings/input/matrix-keymap.txt. - -Example: -#include "dt-bindings/input/input.h" - -/ { - keypad: keypad@180ac000 { - /* Required SoC specific properties */ - compatible = "brcm,bcm-keypad"; - - /* Required Board specific properties */ - keypad,num-rows = <5>; - keypad,num-columns = <5>; - - linux,keymap = ; - - /* Optional board specific properties */ - col-debounce-filter-period = <5>; - row-output-enabled; - pull-up-enabled; - - }; -}; +* Broadcom Keypad Controller device tree bindings + +Broadcom Keypad controller is used to interface a SoC with a matrix-type +keypad device. The keypad controller supports multiple row and column lines. +A key can be placed at each intersection of a unique row and a unique column. +The keypad controller can sense a key-press and key-release and report the +event using a interrupt to the cpu. + +This binding is based on the matrix-keymap binding with the following +changes: + +keypad,num-rows and keypad,num-columns are required. + +Required SoC Specific Properties: +- compatible: should be "brcm,bcm-keypad" + +- reg: physical base address of the controller and length of memory mapped + region. + +- interrupts: The interrupt number to the cpu. + +Board Specific Properties: +- keypad,num-rows: Number of row lines connected to the keypad + controller. + +- keypad,num-columns: Number of column lines connected to the + keypad controller. + +- col-debounce-filter-period: The debounce period for the Column filter. + + KEYPAD_DEBOUNCE_1_ms = 0 + KEYPAD_DEBOUNCE_2_ms = 1 + KEYPAD_DEBOUNCE_4_ms = 2 + KEYPAD_DEBOUNCE_8_ms = 3 + KEYPAD_DEBOUNCE_16_ms = 4 + KEYPAD_DEBOUNCE_32_ms = 5 + KEYPAD_DEBOUNCE_64_ms = 6 + KEYPAD_DEBOUNCE_128_ms = 7 + +- status-debounce-filter-period: The debounce period for the Status filter. + + KEYPAD_DEBOUNCE_1_ms = 0 + KEYPAD_DEBOUNCE_2_ms = 1 + KEYPAD_DEBOUNCE_4_ms = 2 + KEYPAD_DEBOUNCE_8_ms = 3 + KEYPAD_DEBOUNCE_16_ms = 4 + KEYPAD_DEBOUNCE_32_ms = 5 + KEYPAD_DEBOUNCE_64_ms = 6 + KEYPAD_DEBOUNCE_128_ms = 7 + +- row-output-enabled: An optional property indicating whether the row or + column is being used as output. If specified the row is being used + as the output. Else defaults to column. + +- pull-up-enabled: An optional property indicating the Keypad scan mode. + If specified implies the keypad scan pull-up has been enabled. + +- autorepeat: Boolean, Enable auto repeat feature of Linux input + subsystem (optional). + +- linux,keymap: The keymap for keys as described in the binding document + devicetree/bindings/input/matrix-keymap.txt. + +Example: +#include "dt-bindings/input/input.h" + +/ { + keypad: keypad@180ac000 { + /* Required SoC specific properties */ + compatible = "brcm,bcm-keypad"; + + /* Required Board specific properties */ + keypad,num-rows = <5>; + keypad,num-columns = <5>; + + linux,keymap = ; + + /* Optional board specific properties */ + col-debounce-filter-period = <5>; + row-output-enabled; + pull-up-enabled; + + }; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/dlg,da7280.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/dlg,da7280.txt index cf03e5098..96ee5d50e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/dlg,da7280.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/dlg,da7280.txt @@ -1,108 +1,108 @@ -Dialog Semiconductor DA7280 Haptics bindings - -Required properties: -- compatible: Should be "dlg,da7280". -- reg: Specifies the I2C slave address. - -- interrupt-parent : Specifies the phandle of the interrupt controller to - which the IRQs from DA7280 are delivered to. - -- dlg,actuator-type: Set Actuator type. it should be one of: - "LRA" - Linear Resonance Actuator type. - "ERM-bar" - Bar type Eccentric Rotating Mass. - "ERM-coin" - Coin type Eccentric Rotating Mass. - -- dlg,const-op-mode: Haptic operation mode for FF_CONSTANT. - Possible values: - 1 - Direct register override(DRO) mode triggered by i2c(default), - 2 - PWM data source mode controlled by PWM duty, -- dlg,periodic-op-mode: Haptic operation mode for FF_PERIODIC. - Possible values: - 1 - Register triggered waveform memory(RTWM) mode, the pattern - assigned to the PS_SEQ_ID played as much times as PS_SEQ_LOOP, - 2 - Edge triggered waveform memory(ETWM) mode, external GPI(N) - control are required to enable/disable and it needs to keep - device enabled by sending magnitude (X > 0), - the pattern is assigned to the GPI(N)_SEQUENCE_ID below. - The default value is 1 for both of the operation modes. - For more details, please see the datasheet. - -- dlg,nom-microvolt: Nominal actuator voltage rating. - Valid values: 0 - 6000000. -- dlg,abs-max-microvolt: Absolute actuator maximum voltage rating. - Valid values: 0 - 6000000. -- dlg,imax-microamp: Actuator max current rating. - Valid values: 0 - 252000. - Default: 130000. -- dlg,impd-micro-ohms: the impedance of the actuator in micro ohms. - Valid values: 0 - 1500000000. - -Optional properties: -- pwms : phandle to the physical PWM(Pulse Width Modulation) device. - PWM properties should be named "pwms". And number of cell is different - for each pwm device. - (See Documentation/devicetree/bindings/pwm/pwm.txt - for further information relating to pwm properties) - -- dlg,ps-seq-id: the PS_SEQ_ID(pattern ID in waveform memory inside chip) - to play back when RTWM-MODE is enabled. - Valid range: 0 - 15. -- dlg,ps-seq-loop: the PS_SEQ_LOOP, Number of times the pre-stored sequence - pointed to by PS_SEQ_ID or GPI(N)_SEQUENCE_ID is repeated. - Valid range: 0 - 15. -- dlg,gpiN-seq-id: the GPI(N)_SEQUENCE_ID, pattern to play - when gpi0 is triggered, 'N' must be 0 - 2. - Valid range: 0 - 15. -- dlg,gpiN-mode: the pattern mode which can select either - "Single-pattern" or "Multi-pattern", 'N' must be 0 - 2. -- dlg,gpiN-polarity: gpiN polarity which can be chosen among - "Rising-edge", "Falling-edge" and "Both-edge", - 'N' must be 0 - 2 - Haptic will work by this edge option in case of ETWM mode. - -- dlg,resonant-freq-hz: use in case of LRA. - the frequency range: 50 - 300. - Default: 205. - -- dlg,bemf-sens-enable: Enable for internal loop computations. -- dlg,freq-track-enable: Enable for resonant frequency tracking. -- dlg,acc-enable: Enable for active acceleration. -- dlg,rapid-stop-enable: Enable for rapid stop. -- dlg,amp-pid-enable: Enable for the amplitude PID. -- dlg,mem-array: Customized waveform memory(patterns) data downloaded to - the device during initialization. This is an array of 100 values(u8). - -For further information, see device datasheet. - -====== - -Example: - - haptics: da7280-haptics@4a { - compatible = "dlg,da7280"; - reg = <0x4a>; - interrupt-parent = <&gpio6>; - interrupts = <11 IRQ_TYPE_LEVEL_LOW>; - dlg,actuator-type = "LRA"; - dlg,dlg,const-op-mode = <1>; - dlg,dlg,periodic-op-mode = <1>; - dlg,nom-microvolt = <2000000>; - dlg,abs-max-microvolt = <2000000>; - dlg,imax-microamp = <170000>; - dlg,resonant-freq-hz = <180>; - dlg,impd-micro-ohms = <10500000>; - dlg,freq-track-enable; - dlg,rapid-stop-enable; - dlg,mem-array = < - 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 - 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 - 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 - 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 - 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 - 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 - 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 - 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 - 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 - 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 - >; - }; +Dialog Semiconductor DA7280 Haptics bindings + +Required properties: +- compatible: Should be "dlg,da7280". +- reg: Specifies the I2C slave address. + +- interrupt-parent : Specifies the phandle of the interrupt controller to + which the IRQs from DA7280 are delivered to. + +- dlg,actuator-type: Set Actuator type. it should be one of: + "LRA" - Linear Resonance Actuator type. + "ERM-bar" - Bar type Eccentric Rotating Mass. + "ERM-coin" - Coin type Eccentric Rotating Mass. + +- dlg,const-op-mode: Haptic operation mode for FF_CONSTANT. + Possible values: + 1 - Direct register override(DRO) mode triggered by i2c(default), + 2 - PWM data source mode controlled by PWM duty, +- dlg,periodic-op-mode: Haptic operation mode for FF_PERIODIC. + Possible values: + 1 - Register triggered waveform memory(RTWM) mode, the pattern + assigned to the PS_SEQ_ID played as much times as PS_SEQ_LOOP, + 2 - Edge triggered waveform memory(ETWM) mode, external GPI(N) + control are required to enable/disable and it needs to keep + device enabled by sending magnitude (X > 0), + the pattern is assigned to the GPI(N)_SEQUENCE_ID below. + The default value is 1 for both of the operation modes. + For more details, please see the datasheet. + +- dlg,nom-microvolt: Nominal actuator voltage rating. + Valid values: 0 - 6000000. +- dlg,abs-max-microvolt: Absolute actuator maximum voltage rating. + Valid values: 0 - 6000000. +- dlg,imax-microamp: Actuator max current rating. + Valid values: 0 - 252000. + Default: 130000. +- dlg,impd-micro-ohms: the impedance of the actuator in micro ohms. + Valid values: 0 - 1500000000. + +Optional properties: +- pwms : phandle to the physical PWM(Pulse Width Modulation) device. + PWM properties should be named "pwms". And number of cell is different + for each pwm device. + (See Documentation/devicetree/bindings/pwm/pwm.txt + for further information relating to pwm properties) + +- dlg,ps-seq-id: the PS_SEQ_ID(pattern ID in waveform memory inside chip) + to play back when RTWM-MODE is enabled. + Valid range: 0 - 15. +- dlg,ps-seq-loop: the PS_SEQ_LOOP, Number of times the pre-stored sequence + pointed to by PS_SEQ_ID or GPI(N)_SEQUENCE_ID is repeated. + Valid range: 0 - 15. +- dlg,gpiN-seq-id: the GPI(N)_SEQUENCE_ID, pattern to play + when gpi0 is triggered, 'N' must be 0 - 2. + Valid range: 0 - 15. +- dlg,gpiN-mode: the pattern mode which can select either + "Single-pattern" or "Multi-pattern", 'N' must be 0 - 2. +- dlg,gpiN-polarity: gpiN polarity which can be chosen among + "Rising-edge", "Falling-edge" and "Both-edge", + 'N' must be 0 - 2 + Haptic will work by this edge option in case of ETWM mode. + +- dlg,resonant-freq-hz: use in case of LRA. + the frequency range: 50 - 300. + Default: 205. + +- dlg,bemf-sens-enable: Enable for internal loop computations. +- dlg,freq-track-enable: Enable for resonant frequency tracking. +- dlg,acc-enable: Enable for active acceleration. +- dlg,rapid-stop-enable: Enable for rapid stop. +- dlg,amp-pid-enable: Enable for the amplitude PID. +- dlg,mem-array: Customized waveform memory(patterns) data downloaded to + the device during initialization. This is an array of 100 values(u8). + +For further information, see device datasheet. + +====== + +Example: + + haptics: da7280-haptics@4a { + compatible = "dlg,da7280"; + reg = <0x4a>; + interrupt-parent = <&gpio6>; + interrupts = <11 IRQ_TYPE_LEVEL_LOW>; + dlg,actuator-type = "LRA"; + dlg,dlg,const-op-mode = <1>; + dlg,dlg,periodic-op-mode = <1>; + dlg,nom-microvolt = <2000000>; + dlg,abs-max-microvolt = <2000000>; + dlg,imax-microamp = <170000>; + dlg,resonant-freq-hz = <180>; + dlg,impd-micro-ohms = <10500000>; + dlg,freq-track-enable; + dlg,rapid-stop-enable; + dlg,mem-array = < + 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 + 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 + 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 + 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 + 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 + 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 + 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 + 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 + 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 + 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 + >; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/adi,ad7879.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/adi,ad7879.yaml index 5990ff56c..caa5fa3cc 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/adi,ad7879.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/adi,ad7879.yaml @@ -1,150 +1,150 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/input/touchscreen/adi,ad7879.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Analog Devices AD7879(-1)/AD7889(-1) touchscreen interface (SPI/I2C) - -maintainers: - - Frank Li - -properties: - compatible: - description: | - for SPI slave, use "adi,ad7879" - for I2C slave, use "adi,ad7879-1" - enum: - - adi,ad7879 - - adi,ad7879-1 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - touchscreen-max-pressure: - $ref: /schemas/types.yaml#/definitions/uint32 - description: maximum reported pressure - - adi,resistance-plate-x: - $ref: /schemas/types.yaml#/definitions/uint32 - description: total resistance of X-plate (for pressure calculation) - - touchscreen-swapped-x-y: - $ref: /schemas/types.yaml#/definitions/flag - description: X and Y axis are swapped (boolean) - - adi,first-conversion-delay: - $ref: /schemas/types.yaml#/definitions/uint8 - default: 0 - minimum: 0 - maximum: 15 - description: | - 0-12: In 128us steps (starting with 128us) - 13 : 2.560ms - 14 : 3.584ms - 15 : 4.096ms - This property has to be a '/bits/ 8' value - - adi,acquisition-time: - $ref: /schemas/types.yaml#/definitions/uint8 - default: 0 - enum: [0, 1, 2, 3] - description: | - 0: 2us - 1: 4us - 2: 8us - 3: 16us - This property has to be a '/bits/ 8' value - - adi,median-filter-size: - $ref: /schemas/types.yaml#/definitions/uint8 - default: 0 - enum: [0, 1, 2, 3] - description: | - 0: disabled - 1: 4 measurements - 2: 8 measurements - 3: 16 measurements - This property has to be a '/bits/ 8' value - - adi,averaging: - $ref: /schemas/types.yaml#/definitions/uint8 - default: 0 - enum: [0, 1, 2, 3] - description: | - 0: 2 middle values (1 if median disabled) - 1: 4 middle values - 2: 8 middle values - 3: 16 values - This property has to be a '/bits/ 8' value - - adi,conversion-interval: - $ref: /schemas/types.yaml#/definitions/uint8 - default: 0 - description: | - 0 : convert one time only - 1-255: 515us + val * 35us (up to 9.440ms) - This property has to be a '/bits/ 8' value - - gpio-controller: true - - "#gpio-cells": - const: 1 - -required: - - compatible - - reg - -allOf: - - $ref: /schemas/spi/spi-peripheral-props.yaml - -unevaluatedProperties: false - -examples: - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - touchscreen0@2c { - compatible = "adi,ad7879-1"; - reg = <0x2c>; - interrupt-parent = <&gpio1>; - interrupts = <13 IRQ_TYPE_EDGE_FALLING>; - touchscreen-max-pressure = <4096>; - adi,resistance-plate-x = <120>; - adi,first-conversion-delay = /bits/ 8 <3>; - adi,acquisition-time = /bits/ 8 <1>; - adi,median-filter-size = /bits/ 8 <2>; - adi,averaging = /bits/ 8 <1>; - adi,conversion-interval = /bits/ 8 <255>; - }; - }; - - - | - #include - spi { - #address-cells = <1>; - #size-cells = <0>; - - touchscreen1@1 { - compatible = "adi,ad7879"; - reg = <1>; - spi-max-frequency = <5000000>; - gpio-controller; - #gpio-cells = <1>; - interrupt-parent = <&gpio1>; - interrupts = <13 IRQ_TYPE_EDGE_FALLING>; - touchscreen-max-pressure = <4096>; - adi,resistance-plate-x = <120>; - adi,first-conversion-delay = /bits/ 8 <3>; - adi,acquisition-time = /bits/ 8 <1>; - adi,median-filter-size = /bits/ 8 <2>; - adi,averaging = /bits/ 8 <1>; - adi,conversion-interval = /bits/ 8 <255>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/adi,ad7879.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD7879(-1)/AD7889(-1) touchscreen interface (SPI/I2C) + +maintainers: + - Frank Li + +properties: + compatible: + description: | + for SPI slave, use "adi,ad7879" + for I2C slave, use "adi,ad7879-1" + enum: + - adi,ad7879 + - adi,ad7879-1 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + touchscreen-max-pressure: + $ref: /schemas/types.yaml#/definitions/uint32 + description: maximum reported pressure + + adi,resistance-plate-x: + $ref: /schemas/types.yaml#/definitions/uint32 + description: total resistance of X-plate (for pressure calculation) + + touchscreen-swapped-x-y: + $ref: /schemas/types.yaml#/definitions/flag + description: X and Y axis are swapped (boolean) + + adi,first-conversion-delay: + $ref: /schemas/types.yaml#/definitions/uint8 + default: 0 + minimum: 0 + maximum: 15 + description: | + 0-12: In 128us steps (starting with 128us) + 13 : 2.560ms + 14 : 3.584ms + 15 : 4.096ms + This property has to be a '/bits/ 8' value + + adi,acquisition-time: + $ref: /schemas/types.yaml#/definitions/uint8 + default: 0 + enum: [0, 1, 2, 3] + description: | + 0: 2us + 1: 4us + 2: 8us + 3: 16us + This property has to be a '/bits/ 8' value + + adi,median-filter-size: + $ref: /schemas/types.yaml#/definitions/uint8 + default: 0 + enum: [0, 1, 2, 3] + description: | + 0: disabled + 1: 4 measurements + 2: 8 measurements + 3: 16 measurements + This property has to be a '/bits/ 8' value + + adi,averaging: + $ref: /schemas/types.yaml#/definitions/uint8 + default: 0 + enum: [0, 1, 2, 3] + description: | + 0: 2 middle values (1 if median disabled) + 1: 4 middle values + 2: 8 middle values + 3: 16 values + This property has to be a '/bits/ 8' value + + adi,conversion-interval: + $ref: /schemas/types.yaml#/definitions/uint8 + default: 0 + description: | + 0 : convert one time only + 1-255: 515us + val * 35us (up to 9.440ms) + This property has to be a '/bits/ 8' value + + gpio-controller: true + + "#gpio-cells": + const: 1 + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml + +unevaluatedProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen0@2c { + compatible = "adi,ad7879-1"; + reg = <0x2c>; + interrupt-parent = <&gpio1>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + touchscreen-max-pressure = <4096>; + adi,resistance-plate-x = <120>; + adi,first-conversion-delay = /bits/ 8 <3>; + adi,acquisition-time = /bits/ 8 <1>; + adi,median-filter-size = /bits/ 8 <2>; + adi,averaging = /bits/ 8 <1>; + adi,conversion-interval = /bits/ 8 <255>; + }; + }; + + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen1@1 { + compatible = "adi,ad7879"; + reg = <1>; + spi-max-frequency = <5000000>; + gpio-controller; + #gpio-cells = <1>; + interrupt-parent = <&gpio1>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + touchscreen-max-pressure = <4096>; + adi,resistance-plate-x = <120>; + adi,first-conversion-delay = /bits/ 8 <3>; + adi,acquisition-time = /bits/ 8 <1>; + adi,median-filter-size = /bits/ 8 <2>; + adi,averaging = /bits/ 8 <1>; + adi,conversion-interval = /bits/ 8 <255>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/brcm,iproc-touchscreen.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/brcm,iproc-touchscreen.txt index c40073e4c..f127a2117 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/brcm,iproc-touchscreen.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/brcm,iproc-touchscreen.txt @@ -1,87 +1,87 @@ -* Broadcom's IPROC Touchscreen Controller - -Required properties: -- compatible: must be "brcm,iproc-touchscreen" -- ts_syscon: handler of syscon node defining physical base - address of the controller and length of memory mapped region. - If this property is selected please make sure MFD_SYSCON config - is enabled in the defconfig file. -- clocks: The clock provided by the SOC to driver the tsc -- clock-names: name for the clock -- interrupts: The touchscreen controller's interrupt -- address-cells: Specify the number of u32 entries needed in child nodes. - Should set to 1. -- size-cells: Specify number of u32 entries needed to specify child nodes size - in reg property. Should set to 1. - -Optional properties: -- scanning_period: Time between scans. Each step is 1024 us. Valid 1-256. -- debounce_timeout: Each step is 512 us. Valid 0-255 -- settling_timeout: The settling duration (in ms) is the amount of time - the tsc waits to allow the voltage to settle after - turning on the drivers in detection mode. - Valid values: 0-11 - 0 = 0.008 ms - 1 = 0.01 ms - 2 = 0.02 ms - 3 = 0.04 ms - 4 = 0.08 ms - 5 = 0.16 ms - 6 = 0.32 ms - 7 = 0.64 ms - 8 = 1.28 ms - 9 = 2.56 ms - 10 = 5.12 ms - 11 = 10.24 ms -- touch_timeout: The continuous number of scan periods in which touch is - not detected before the controller returns to idle state. - Valid values 0-255. -- average_data: Number of data samples which are averaged before a final - data point is placed into the FIFO - Valid values 0-7 - 0 = 1 sample - 1 = 2 samples - 2 = 4 samples - 3 = 8 samples - 4 = 16 samples - 5 = 32 samples - 6 = 64 samples - 7 = 128 samples -- fifo_threshold: Interrupt is generated whenever the number of fifo - entries exceeds this value - Valid values 0-31 -- touchscreen-size-x: horizontal resolution of touchscreen (in pixels) -- touchscreen-size-y: vertical resolution of touchscreen (in pixels) -- touchscreen-fuzz-x: horizontal noise value of the absolute input - device (in pixels) -- touchscreen-fuzz-y: vertical noise value of the absolute input - device (in pixels) -- touchscreen-inverted-x: X axis is inverted (boolean) -- touchscreen-inverted-y: Y axis is inverted (boolean) - -Example: An example of touchscreen node - - ts_adc_syscon: ts_adc_syscon@180a6000 { - compatible = "brcm,iproc-ts-adc-syscon","syscon"; - reg = <0x180a6000 0xc30>; - }; - - touchscreen: touchscreen@180a6000 { - compatible = "brcm,iproc-touchscreen"; - #address-cells = <1>; - #size-cells = <1>; - ts_syscon = <&ts_adc_syscon>; - clocks = <&adc_clk>; - clock-names = "tsc_clk"; - interrupts = ; - - scanning_period = <5>; - debounce_timeout = <40>; - settling_timeout = <7>; - touch_timeout = <10>; - average_data = <5>; - fifo_threshold = <1>; - /* Touchscreen is rotated 180 degrees. */ - touchscreen-inverted-x; - touchscreen-inverted-y; - }; +* Broadcom's IPROC Touchscreen Controller + +Required properties: +- compatible: must be "brcm,iproc-touchscreen" +- ts_syscon: handler of syscon node defining physical base + address of the controller and length of memory mapped region. + If this property is selected please make sure MFD_SYSCON config + is enabled in the defconfig file. +- clocks: The clock provided by the SOC to driver the tsc +- clock-names: name for the clock +- interrupts: The touchscreen controller's interrupt +- address-cells: Specify the number of u32 entries needed in child nodes. + Should set to 1. +- size-cells: Specify number of u32 entries needed to specify child nodes size + in reg property. Should set to 1. + +Optional properties: +- scanning_period: Time between scans. Each step is 1024 us. Valid 1-256. +- debounce_timeout: Each step is 512 us. Valid 0-255 +- settling_timeout: The settling duration (in ms) is the amount of time + the tsc waits to allow the voltage to settle after + turning on the drivers in detection mode. + Valid values: 0-11 + 0 = 0.008 ms + 1 = 0.01 ms + 2 = 0.02 ms + 3 = 0.04 ms + 4 = 0.08 ms + 5 = 0.16 ms + 6 = 0.32 ms + 7 = 0.64 ms + 8 = 1.28 ms + 9 = 2.56 ms + 10 = 5.12 ms + 11 = 10.24 ms +- touch_timeout: The continuous number of scan periods in which touch is + not detected before the controller returns to idle state. + Valid values 0-255. +- average_data: Number of data samples which are averaged before a final + data point is placed into the FIFO + Valid values 0-7 + 0 = 1 sample + 1 = 2 samples + 2 = 4 samples + 3 = 8 samples + 4 = 16 samples + 5 = 32 samples + 6 = 64 samples + 7 = 128 samples +- fifo_threshold: Interrupt is generated whenever the number of fifo + entries exceeds this value + Valid values 0-31 +- touchscreen-size-x: horizontal resolution of touchscreen (in pixels) +- touchscreen-size-y: vertical resolution of touchscreen (in pixels) +- touchscreen-fuzz-x: horizontal noise value of the absolute input + device (in pixels) +- touchscreen-fuzz-y: vertical noise value of the absolute input + device (in pixels) +- touchscreen-inverted-x: X axis is inverted (boolean) +- touchscreen-inverted-y: Y axis is inverted (boolean) + +Example: An example of touchscreen node + + ts_adc_syscon: ts_adc_syscon@180a6000 { + compatible = "brcm,iproc-ts-adc-syscon","syscon"; + reg = <0x180a6000 0xc30>; + }; + + touchscreen: touchscreen@180a6000 { + compatible = "brcm,iproc-touchscreen"; + #address-cells = <1>; + #size-cells = <1>; + ts_syscon = <&ts_adc_syscon>; + clocks = <&adc_clk>; + clock-names = "tsc_clk"; + interrupts = ; + + scanning_period = <5>; + debounce_timeout = <40>; + settling_timeout = <7>; + touch_timeout = <10>; + average_data = <5>; + fifo_threshold = <1>; + /* Touchscreen is rotated 180 degrees. */ + touchscreen-inverted-x; + touchscreen-inverted-y; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/cypress,cy8ctma340.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/cypress,cy8ctma340.yaml index d24c44bac..4dfbb9367 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/cypress,cy8ctma340.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/cypress,cy8ctma340.yaml @@ -1,148 +1,148 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/input/touchscreen/cypress,cy8ctma340.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Cypress CY8CTMA340 series touchscreen controller - -description: The Cypress CY8CTMA340 series (also known as "CYTTSP" after - the marketing name Cypress TrueTouch Standard Product) touchscreens can - be connected to either I2C or SPI buses. - -maintainers: - - Javier Martinez Canillas - - Linus Walleij - -allOf: - - $ref: touchscreen.yaml# - -properties: - $nodename: - pattern: "^touchscreen(@.*)?$" - - compatible: - oneOf: - - const: cypress,cy8ctma340 - - const: cypress,cy8ctst341 - - const: cypress,cyttsp-spi - description: Legacy compatible for SPI connected CY8CTMA340 - deprecated: true - - const: cypress,cyttsp-i2c - description: Legacy compatible for I2C connected CY8CTMA340 - deprecated: true - - reg: - description: I2C address when used on the I2C bus, or the SPI chip - select index when used on the SPI bus - - clock-frequency: - description: I2C client clock frequency, defined for host when using - the device on the I2C bus - minimum: 0 - maximum: 400000 - - spi-max-frequency: - description: SPI clock frequency, defined for host, defined when using - the device on the SPI bus. The throughput is maximum 2 Mbps so the - typical value is 2000000, if higher rates are used the total throughput - needs to be restricted to 2 Mbps. - minimum: 0 - maximum: 6000000 - - interrupts: - description: Interrupt to host - maxItems: 1 - - vcpin-supply: - description: Analog power supply regulator on VCPIN pin - - vdd-supply: - description: Digital power supply regulator on VDD pin - - reset-gpios: - description: Reset line for the touchscreen, should be tagged - as GPIO_ACTIVE_LOW - - bootloader-key: - description: the 8-byte bootloader key that is required to switch - the chip from bootloader mode (default mode) to application mode - $ref: /schemas/types.yaml#/definitions/uint8-array - minItems: 8 - maxItems: 8 - - touchscreen-size-x: true - touchscreen-size-y: true - touchscreen-fuzz-x: true - touchscreen-fuzz-y: true - - active-distance: - description: the distance in pixels beyond which a touch must move - before movement is detected and reported by the device - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 15 - - active-interval-ms: - description: the minimum period in ms between consecutive - scanning/processing cycles when the chip is in active mode - minimum: 0 - maximum: 255 - - lowpower-interval-ms: - description: the minimum period in ms between consecutive - scanning/processing cycles when the chip is in low-power mode - minimum: 0 - maximum: 2550 - - touch-timeout-ms: - description: minimum time in ms spent in the active power state while no - touches are detected before entering low-power mode - minimum: 0 - maximum: 2550 - - use-handshake: - description: enable register-based handshake (boolean). This should only - be used if the chip is configured to use 'blocking communication with - timeout' (in this case the device generates an interrupt at the end of - every scanning/processing cycle) - $ref: /schemas/types.yaml#/definitions/flag - -additionalProperties: false - -required: - - compatible - - reg - - interrupts - - bootloader-key - - touchscreen-size-x - - touchscreen-size-y - -examples: - - | - #include - #include - spi { - #address-cells = <1>; - #size-cells = <0>; - num-cs = <1>; - cs-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; - - touchscreen@0 { - compatible = "cypress,cy8ctma340"; - reg = <0>; - interrupt-parent = <&gpio>; - interrupts = <20 IRQ_TYPE_EDGE_FALLING>; - reset-gpios = <&gpio 21 GPIO_ACTIVE_LOW>; - vdd-supply = <&ldo_aux1_reg>; - vcpin-supply = <&ldo_aux2_reg>; - bootloader-key = /bits/ 8 <0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07>; - touchscreen-size-x = <480>; - touchscreen-size-y = <800>; - active-interval-ms = <0>; - touch-timeout-ms = <255>; - lowpower-interval-ms = <10>; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/cypress,cy8ctma340.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cypress CY8CTMA340 series touchscreen controller + +description: The Cypress CY8CTMA340 series (also known as "CYTTSP" after + the marketing name Cypress TrueTouch Standard Product) touchscreens can + be connected to either I2C or SPI buses. + +maintainers: + - Javier Martinez Canillas + - Linus Walleij + +allOf: + - $ref: touchscreen.yaml# + +properties: + $nodename: + pattern: "^touchscreen(@.*)?$" + + compatible: + oneOf: + - const: cypress,cy8ctma340 + - const: cypress,cy8ctst341 + - const: cypress,cyttsp-spi + description: Legacy compatible for SPI connected CY8CTMA340 + deprecated: true + - const: cypress,cyttsp-i2c + description: Legacy compatible for I2C connected CY8CTMA340 + deprecated: true + + reg: + description: I2C address when used on the I2C bus, or the SPI chip + select index when used on the SPI bus + + clock-frequency: + description: I2C client clock frequency, defined for host when using + the device on the I2C bus + minimum: 0 + maximum: 400000 + + spi-max-frequency: + description: SPI clock frequency, defined for host, defined when using + the device on the SPI bus. The throughput is maximum 2 Mbps so the + typical value is 2000000, if higher rates are used the total throughput + needs to be restricted to 2 Mbps. + minimum: 0 + maximum: 6000000 + + interrupts: + description: Interrupt to host + maxItems: 1 + + vcpin-supply: + description: Analog power supply regulator on VCPIN pin + + vdd-supply: + description: Digital power supply regulator on VDD pin + + reset-gpios: + description: Reset line for the touchscreen, should be tagged + as GPIO_ACTIVE_LOW + + bootloader-key: + description: the 8-byte bootloader key that is required to switch + the chip from bootloader mode (default mode) to application mode + $ref: /schemas/types.yaml#/definitions/uint8-array + minItems: 8 + maxItems: 8 + + touchscreen-size-x: true + touchscreen-size-y: true + touchscreen-fuzz-x: true + touchscreen-fuzz-y: true + + active-distance: + description: the distance in pixels beyond which a touch must move + before movement is detected and reported by the device + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 15 + + active-interval-ms: + description: the minimum period in ms between consecutive + scanning/processing cycles when the chip is in active mode + minimum: 0 + maximum: 255 + + lowpower-interval-ms: + description: the minimum period in ms between consecutive + scanning/processing cycles when the chip is in low-power mode + minimum: 0 + maximum: 2550 + + touch-timeout-ms: + description: minimum time in ms spent in the active power state while no + touches are detected before entering low-power mode + minimum: 0 + maximum: 2550 + + use-handshake: + description: enable register-based handshake (boolean). This should only + be used if the chip is configured to use 'blocking communication with + timeout' (in this case the device generates an interrupt at the end of + every scanning/processing cycle) + $ref: /schemas/types.yaml#/definitions/flag + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - bootloader-key + - touchscreen-size-x + - touchscreen-size-y + +examples: + - | + #include + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + num-cs = <1>; + cs-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; + + touchscreen@0 { + compatible = "cypress,cy8ctma340"; + reg = <0>; + interrupt-parent = <&gpio>; + interrupts = <20 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio 21 GPIO_ACTIVE_LOW>; + vdd-supply = <&ldo_aux1_reg>; + vcpin-supply = <&ldo_aux2_reg>; + bootloader-key = /bits/ 8 <0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07>; + touchscreen-size-x = <480>; + touchscreen-size-y = <800>; + active-interval-ms = <0>; + touch-timeout-ms = <255>; + lowpower-interval-ms = <10>; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml index fab6225d0..70a922e21 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml @@ -1,139 +1,139 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/input/touchscreen/edt-ft5x06.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: FocalTech EDT-FT5x06 Polytouch - -description: | - There are 5 variants of the chip for various touch panel sizes - FT5206GE1 2.8" .. 3.8" - FT5306DE4 4.3" .. 7" - FT5406EE8 7" .. 8.9" - FT5506EEG 7" .. 8.9" - FT5726NEI 5.7” .. 11.6" - -maintainers: - - Dmitry Torokhov - -allOf: - - $ref: touchscreen.yaml# - - if: - properties: - compatible: - contains: - enum: - - evervision,ev-ft5726 - - then: - properties: - offset-x: true - offset-y: true - -properties: - compatible: - enum: - - edt,edt-ft5206 - - edt,edt-ft5306 - - edt,edt-ft5406 - - edt,edt-ft5506 - - evervision,ev-ft5726 - - focaltech,ft5426 - - focaltech,ft5452 - - focaltech,ft6236 - - focaltech,ft8201 - - focaltech,ft8719 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - reset-gpios: - maxItems: 1 - - wake-gpios: - maxItems: 1 - - wakeup-source: true - - vcc-supply: true - iovcc-supply: true - - gain: - description: Allows setting the sensitivity in the range from 0 to 31. - Note that lower values indicate higher sensitivity. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 31 - - offset: - description: Allows setting the edge compensation in the range from 0 to 31. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 31 - - offset-x: - description: Same as offset, but applies only to the horizontal position. - Range from 0 to 80, only supported by evervision,ev-ft5726 devices. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 80 - - offset-y: - description: Same as offset, but applies only to the vertical position. - Range from 0 to 80, only supported by evervision,ev-ft5726 devices. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 80 - - report-rate-hz: - description: | - Allows setting the scan rate in Hertz. - M06 supports range from 30 to 140 Hz. - M12 supports range from 1 to 255 Hz. - minimum: 1 - maximum: 255 - - threshold: - description: Allows setting the "click"-threshold in the range from 0 to 255. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 255 - - touchscreen-size-x: true - touchscreen-size-y: true - touchscreen-fuzz-x: true - touchscreen-fuzz-y: true - touchscreen-inverted-x: true - touchscreen-inverted-y: true - touchscreen-swapped-x-y: true - interrupt-controller: true - -additionalProperties: false - -required: - - compatible - - reg - - interrupts - -examples: - - | - #include - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - touchscreen@38 { - compatible = "edt,edt-ft5406"; - reg = <0x38>; - interrupt-parent = <&gpio2>; - interrupts = <5 IRQ_TYPE_EDGE_FALLING>; - reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; - wake-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>; - }; - }; - -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/edt-ft5x06.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: FocalTech EDT-FT5x06 Polytouch + +description: | + There are 5 variants of the chip for various touch panel sizes + FT5206GE1 2.8" .. 3.8" + FT5306DE4 4.3" .. 7" + FT5406EE8 7" .. 8.9" + FT5506EEG 7" .. 8.9" + FT5726NEI 5.7” .. 11.6" + +maintainers: + - Dmitry Torokhov + +allOf: + - $ref: touchscreen.yaml# + - if: + properties: + compatible: + contains: + enum: + - evervision,ev-ft5726 + + then: + properties: + offset-x: true + offset-y: true + +properties: + compatible: + enum: + - edt,edt-ft5206 + - edt,edt-ft5306 + - edt,edt-ft5406 + - edt,edt-ft5506 + - evervision,ev-ft5726 + - focaltech,ft5426 + - focaltech,ft5452 + - focaltech,ft6236 + - focaltech,ft8201 + - focaltech,ft8719 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + wake-gpios: + maxItems: 1 + + wakeup-source: true + + vcc-supply: true + iovcc-supply: true + + gain: + description: Allows setting the sensitivity in the range from 0 to 31. + Note that lower values indicate higher sensitivity. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 31 + + offset: + description: Allows setting the edge compensation in the range from 0 to 31. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 31 + + offset-x: + description: Same as offset, but applies only to the horizontal position. + Range from 0 to 80, only supported by evervision,ev-ft5726 devices. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 80 + + offset-y: + description: Same as offset, but applies only to the vertical position. + Range from 0 to 80, only supported by evervision,ev-ft5726 devices. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 80 + + report-rate-hz: + description: | + Allows setting the scan rate in Hertz. + M06 supports range from 30 to 140 Hz. + M12 supports range from 1 to 255 Hz. + minimum: 1 + maximum: 255 + + threshold: + description: Allows setting the "click"-threshold in the range from 0 to 255. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 255 + + touchscreen-size-x: true + touchscreen-size-y: true + touchscreen-fuzz-x: true + touchscreen-fuzz-y: true + touchscreen-inverted-x: true + touchscreen-inverted-y: true + touchscreen-swapped-x-y: true + interrupt-controller: true + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + touchscreen@38 { + compatible = "edt,edt-ft5406"; + reg = <0x38>; + interrupt-parent = <&gpio2>; + interrupts = <5 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; + wake-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/zinitix,bt400.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/zinitix,bt400.yaml index bf4bd60ea..3f663ce3e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/zinitix,bt400.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/input/touchscreen/zinitix,bt400.yaml @@ -1,125 +1,125 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/input/touchscreen/zinitix,bt400.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Zinitix BT4xx and BT5xx series touchscreen controller - -description: The Zinitix BT4xx and BT5xx series of touchscreen controllers - are Korea-produced touchscreens with embedded microcontrollers. The - BT4xx series was produced 2010-2013 and the BT5xx series 2013-2014. - -maintainers: - - Michael Srba - - Linus Walleij - -allOf: - - $ref: touchscreen.yaml# - - $ref: ../input.yaml# - -properties: - $nodename: - pattern: "^touchscreen(@.*)?$" - - compatible: - enum: - - zinitix,bt402 - - zinitix,bt403 - - zinitix,bt404 - - zinitix,bt412 - - zinitix,bt413 - - zinitix,bt431 - - zinitix,bt432 - - zinitix,bt531 - - zinitix,bt532 - - zinitix,bt538 - - zinitix,bt541 - - zinitix,bt548 - - zinitix,bt554 - - zinitix,at100 - - reg: - description: I2C address on the I2C bus - - clock-frequency: - description: I2C client clock frequency, defined for host when using - the device on the I2C bus - minimum: 0 - maximum: 400000 - - interrupts: - description: Interrupt to host - maxItems: 1 - - vcca-supply: - description: Analog power supply regulator on the VCCA pin - - vdd-supply: - description: Digital power supply regulator on the VDD pin. - In older device trees this can be the accidental name for the analog - supply on the VCCA pin, and in that case the deprecated vddo-supply is - used for the digital power supply. - - vddo-supply: - description: Deprecated name for the digital power supply, use vdd-supply - as this reflects the real name of the pin. If this supply is present, - the vdd-supply represents VCCA instead of VDD. Implementers should first - check for this property, and if it is present assume that the vdd-supply - represents the analog supply. - deprecated: true - - reset-gpios: - description: Reset line for the touchscreen, should be tagged - as GPIO_ACTIVE_LOW - - zinitix,mode: - description: Mode of reporting touch points. Some modes may not work - with a particular ts firmware for unknown reasons. Available modes are - 1 and 2. Mode 2 is the default and preferred. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [1, 2] - - linux,keycodes: - description: - This property specifies an array of keycodes assigned to the - touch-keys that can be present in some touchscreen configurations. - If the touch-keys are enabled, controller firmware will assign some - touch sense lines to those keys. - minItems: 1 - maxItems: 8 - - touchscreen-size-x: true - touchscreen-size-y: true - touchscreen-fuzz-x: true - touchscreen-fuzz-y: true - -additionalProperties: false - -required: - - compatible - - reg - - interrupts - - touchscreen-size-x - - touchscreen-size-y - -examples: - - | - #include - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - touchscreen@20 { - compatible = "zinitix,bt541"; - reg = <0x20>; - interrupt-parent = <&gpio>; - interrupts = <13 IRQ_TYPE_EDGE_FALLING>; - vcca-supply = <®_vcca_tsp>; - vdd-supply = <®_vdd_tsp>; - touchscreen-size-x = <540>; - touchscreen-size-y = <960>; - zinitix,mode = <2>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/zinitix,bt400.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Zinitix BT4xx and BT5xx series touchscreen controller + +description: The Zinitix BT4xx and BT5xx series of touchscreen controllers + are Korea-produced touchscreens with embedded microcontrollers. The + BT4xx series was produced 2010-2013 and the BT5xx series 2013-2014. + +maintainers: + - Michael Srba + - Linus Walleij + +allOf: + - $ref: touchscreen.yaml# + - $ref: ../input.yaml# + +properties: + $nodename: + pattern: "^touchscreen(@.*)?$" + + compatible: + enum: + - zinitix,bt402 + - zinitix,bt403 + - zinitix,bt404 + - zinitix,bt412 + - zinitix,bt413 + - zinitix,bt431 + - zinitix,bt432 + - zinitix,bt531 + - zinitix,bt532 + - zinitix,bt538 + - zinitix,bt541 + - zinitix,bt548 + - zinitix,bt554 + - zinitix,at100 + + reg: + description: I2C address on the I2C bus + + clock-frequency: + description: I2C client clock frequency, defined for host when using + the device on the I2C bus + minimum: 0 + maximum: 400000 + + interrupts: + description: Interrupt to host + maxItems: 1 + + vcca-supply: + description: Analog power supply regulator on the VCCA pin + + vdd-supply: + description: Digital power supply regulator on the VDD pin. + In older device trees this can be the accidental name for the analog + supply on the VCCA pin, and in that case the deprecated vddo-supply is + used for the digital power supply. + + vddo-supply: + description: Deprecated name for the digital power supply, use vdd-supply + as this reflects the real name of the pin. If this supply is present, + the vdd-supply represents VCCA instead of VDD. Implementers should first + check for this property, and if it is present assume that the vdd-supply + represents the analog supply. + deprecated: true + + reset-gpios: + description: Reset line for the touchscreen, should be tagged + as GPIO_ACTIVE_LOW + + zinitix,mode: + description: Mode of reporting touch points. Some modes may not work + with a particular ts firmware for unknown reasons. Available modes are + 1 and 2. Mode 2 is the default and preferred. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2] + + linux,keycodes: + description: + This property specifies an array of keycodes assigned to the + touch-keys that can be present in some touchscreen configurations. + If the touch-keys are enabled, controller firmware will assign some + touch sense lines to those keys. + minItems: 1 + maxItems: 8 + + touchscreen-size-x: true + touchscreen-size-y: true + touchscreen-fuzz-x: true + touchscreen-fuzz-y: true + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - touchscreen-size-x + - touchscreen-size-y + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@20 { + compatible = "zinitix,bt541"; + reg = <0x20>; + interrupt-parent = <&gpio>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + vcca-supply = <®_vcca_tsp>; + vdd-supply = <®_vdd_tsp>; + touchscreen-size-x = <540>; + touchscreen-size-y = <960>; + zinitix,mode = <2>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/mediatek,cci.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/mediatek,cci.yaml index ca729a9ca..58611ba2a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/mediatek,cci.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/mediatek,cci.yaml @@ -1,142 +1,142 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/interconnect/mediatek,cci.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MediaTek Cache Coherent Interconnect (CCI) frequency and voltage scaling - -maintainers: - - Jia-Wei Chang - - Johnson Wang - -description: | - MediaTek Cache Coherent Interconnect (CCI) is a hardware engine used by - MT8183 and MT8186 SoCs to scale the frequency and adjust the voltage in - hardware. It can also optimize the voltage to reduce the power consumption. - -properties: - compatible: - enum: - - mediatek,mt8183-cci - - mediatek,mt8186-cci - - clocks: - items: - - description: - The multiplexer for clock input of the bus. - - description: - A parent of "bus" clock which is used as an intermediate clock source - when the original clock source (PLL) is under transition and not - stable yet. - - clock-names: - items: - - const: cci - - const: intermediate - - operating-points-v2: true - opp-table: - type: object - - proc-supply: - description: - Phandle of the regulator for CCI that provides the supply voltage. - - sram-supply: - description: - Phandle of the regulator for sram of CCI that provides the supply - voltage. When it is present, the implementation needs to do - "voltage tracking" to step by step scale up/down Vproc and Vsram to fit - SoC specific needs. When absent, the voltage scaling flow is handled by - hardware, hence no software "voltage tracking" is needed. - -required: - - compatible - - clocks - - clock-names - - operating-points-v2 - - proc-supply - -additionalProperties: false - -examples: - - | - #include - cci: cci { - compatible = "mediatek,mt8183-cci"; - clocks = <&mcucfg CLK_MCU_BUS_SEL>, - <&topckgen CLK_TOP_ARMPLL_DIV_PLL1>; - clock-names = "cci", "intermediate"; - operating-points-v2 = <&cci_opp>; - proc-supply = <&mt6358_vproc12_reg>; - }; - - cci_opp: opp-table-cci { - compatible = "operating-points-v2"; - opp-shared; - opp2_00: opp-273000000 { - opp-hz = /bits/ 64 <273000000>; - opp-microvolt = <650000>; - }; - opp2_01: opp-338000000 { - opp-hz = /bits/ 64 <338000000>; - opp-microvolt = <687500>; - }; - opp2_02: opp-403000000 { - opp-hz = /bits/ 64 <403000000>; - opp-microvolt = <718750>; - }; - opp2_03: opp-463000000 { - opp-hz = /bits/ 64 <463000000>; - opp-microvolt = <756250>; - }; - opp2_04: opp-546000000 { - opp-hz = /bits/ 64 <546000000>; - opp-microvolt = <800000>; - }; - opp2_05: opp-624000000 { - opp-hz = /bits/ 64 <624000000>; - opp-microvolt = <818750>; - }; - opp2_06: opp-689000000 { - opp-hz = /bits/ 64 <689000000>; - opp-microvolt = <850000>; - }; - opp2_07: opp-767000000 { - opp-hz = /bits/ 64 <767000000>; - opp-microvolt = <868750>; - }; - opp2_08: opp-845000000 { - opp-hz = /bits/ 64 <845000000>; - opp-microvolt = <893750>; - }; - opp2_09: opp-871000000 { - opp-hz = /bits/ 64 <871000000>; - opp-microvolt = <906250>; - }; - opp2_10: opp-923000000 { - opp-hz = /bits/ 64 <923000000>; - opp-microvolt = <931250>; - }; - opp2_11: opp-962000000 { - opp-hz = /bits/ 64 <962000000>; - opp-microvolt = <943750>; - }; - opp2_12: opp-1027000000 { - opp-hz = /bits/ 64 <1027000000>; - opp-microvolt = <975000>; - }; - opp2_13: opp-1092000000 { - opp-hz = /bits/ 64 <1092000000>; - opp-microvolt = <1000000>; - }; - opp2_14: opp-1144000000 { - opp-hz = /bits/ 64 <1144000000>; - opp-microvolt = <1025000>; - }; - opp2_15: opp-1196000000 { - opp-hz = /bits/ 64 <1196000000>; - opp-microvolt = <1050000>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/mediatek,cci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Cache Coherent Interconnect (CCI) frequency and voltage scaling + +maintainers: + - Jia-Wei Chang + - Johnson Wang + +description: | + MediaTek Cache Coherent Interconnect (CCI) is a hardware engine used by + MT8183 and MT8186 SoCs to scale the frequency and adjust the voltage in + hardware. It can also optimize the voltage to reduce the power consumption. + +properties: + compatible: + enum: + - mediatek,mt8183-cci + - mediatek,mt8186-cci + + clocks: + items: + - description: + The multiplexer for clock input of the bus. + - description: + A parent of "bus" clock which is used as an intermediate clock source + when the original clock source (PLL) is under transition and not + stable yet. + + clock-names: + items: + - const: cci + - const: intermediate + + operating-points-v2: true + opp-table: + type: object + + proc-supply: + description: + Phandle of the regulator for CCI that provides the supply voltage. + + sram-supply: + description: + Phandle of the regulator for sram of CCI that provides the supply + voltage. When it is present, the implementation needs to do + "voltage tracking" to step by step scale up/down Vproc and Vsram to fit + SoC specific needs. When absent, the voltage scaling flow is handled by + hardware, hence no software "voltage tracking" is needed. + +required: + - compatible + - clocks + - clock-names + - operating-points-v2 + - proc-supply + +additionalProperties: false + +examples: + - | + #include + cci: cci { + compatible = "mediatek,mt8183-cci"; + clocks = <&mcucfg CLK_MCU_BUS_SEL>, + <&topckgen CLK_TOP_ARMPLL_DIV_PLL1>; + clock-names = "cci", "intermediate"; + operating-points-v2 = <&cci_opp>; + proc-supply = <&mt6358_vproc12_reg>; + }; + + cci_opp: opp-table-cci { + compatible = "operating-points-v2"; + opp-shared; + opp2_00: opp-273000000 { + opp-hz = /bits/ 64 <273000000>; + opp-microvolt = <650000>; + }; + opp2_01: opp-338000000 { + opp-hz = /bits/ 64 <338000000>; + opp-microvolt = <687500>; + }; + opp2_02: opp-403000000 { + opp-hz = /bits/ 64 <403000000>; + opp-microvolt = <718750>; + }; + opp2_03: opp-463000000 { + opp-hz = /bits/ 64 <463000000>; + opp-microvolt = <756250>; + }; + opp2_04: opp-546000000 { + opp-hz = /bits/ 64 <546000000>; + opp-microvolt = <800000>; + }; + opp2_05: opp-624000000 { + opp-hz = /bits/ 64 <624000000>; + opp-microvolt = <818750>; + }; + opp2_06: opp-689000000 { + opp-hz = /bits/ 64 <689000000>; + opp-microvolt = <850000>; + }; + opp2_07: opp-767000000 { + opp-hz = /bits/ 64 <767000000>; + opp-microvolt = <868750>; + }; + opp2_08: opp-845000000 { + opp-hz = /bits/ 64 <845000000>; + opp-microvolt = <893750>; + }; + opp2_09: opp-871000000 { + opp-hz = /bits/ 64 <871000000>; + opp-microvolt = <906250>; + }; + opp2_10: opp-923000000 { + opp-hz = /bits/ 64 <923000000>; + opp-microvolt = <931250>; + }; + opp2_11: opp-962000000 { + opp-hz = /bits/ 64 <962000000>; + opp-microvolt = <943750>; + }; + opp2_12: opp-1027000000 { + opp-hz = /bits/ 64 <1027000000>; + opp-microvolt = <975000>; + }; + opp2_13: opp-1092000000 { + opp-hz = /bits/ 64 <1092000000>; + opp-microvolt = <1000000>; + }; + opp2_14: opp-1144000000 { + opp-hz = /bits/ 64 <1144000000>; + opp-microvolt = <1025000>; + }; + opp2_15: opp-1196000000 { + opp-hz = /bits/ 64 <1196000000>; + opp-microvolt = <1050000>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml index d1d2a027e..189f5900e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml @@ -1,137 +1,137 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/interconnect/qcom,msm8998-bwmon.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Interconnect Bandwidth Monitor - -maintainers: - - Krzysztof Kozlowski - -description: | - Bandwidth Monitor measures current throughput on buses between various NoC - fabrics and provides information when it crosses configured thresholds. - - Certain SoCs might have more than one Bandwidth Monitors, for example on SDM845:: - - Measuring the bandwidth between CPUs and Last Level Cache Controller - - called just BWMON, - - Measuring the bandwidth between Last Level Cache Controller and memory - (DDR) - called LLCC BWMON. - -properties: - compatible: - oneOf: - - const: qcom,msm8998-bwmon # BWMON v4 - - items: - - enum: - - qcom,qcm2290-cpu-bwmon - - qcom,sa8775p-cpu-bwmon - - qcom,sc7180-cpu-bwmon - - qcom,sc7280-cpu-bwmon - - qcom,sc8280xp-cpu-bwmon - - qcom,sdm845-cpu-bwmon - - qcom,sm6115-cpu-bwmon - - qcom,sm6350-llcc-bwmon - - qcom,sm8250-cpu-bwmon - - qcom,sm8550-cpu-bwmon - - qcom,sm8650-cpu-bwmon - - qcom,x1e80100-cpu-bwmon - - const: qcom,sdm845-bwmon # BWMON v4, unified register space - - items: - - enum: - - qcom,sa8775p-llcc-bwmon - - qcom,sc7180-llcc-bwmon - - qcom,sc8280xp-llcc-bwmon - - qcom,sm6350-cpu-bwmon - - qcom,sm8250-llcc-bwmon - - qcom,sm8550-llcc-bwmon - - qcom,sm8650-llcc-bwmon - - qcom,x1e80100-llcc-bwmon - - const: qcom,sc7280-llcc-bwmon - - const: qcom,sc7280-llcc-bwmon # BWMON v5 - - const: qcom,sdm845-llcc-bwmon # BWMON v5 - - interconnects: - maxItems: 1 - - interrupts: - maxItems: 1 - - operating-points-v2: true - opp-table: - type: object - - reg: - # BWMON v5 uses one register address space, v1-v4 use one or two. - minItems: 1 - maxItems: 2 - - reg-names: - minItems: 1 - maxItems: 2 - -required: - - compatible - - interconnects - - interrupts - - operating-points-v2 - - reg - -additionalProperties: false - -allOf: - - if: - properties: - compatible: - const: qcom,msm8998-bwmon - then: - properties: - reg: - minItems: 2 - - reg-names: - items: - - const: monitor - - const: global - - else: - properties: - reg: - maxItems: 1 - - reg-names: - maxItems: 1 - -examples: - - | - #include - #include - - pmu@1436400 { - compatible = "qcom,sdm845-cpu-bwmon", "qcom,sdm845-bwmon"; - reg = <0x01436400 0x600>; - interrupts = ; - interconnects = <&gladiator_noc MASTER_APPSS_PROC 3 &mem_noc SLAVE_LLCC 3>; - - operating-points-v2 = <&cpu_bwmon_opp_table>; - - cpu_bwmon_opp_table: opp-table { - compatible = "operating-points-v2"; - opp-0 { - opp-peak-kBps = <4800000>; - }; - opp-1 { - opp-peak-kBps = <9216000>; - }; - opp-2 { - opp-peak-kBps = <15052800>; - }; - opp-3 { - opp-peak-kBps = <20889600>; - }; - opp-4 { - opp-peak-kBps = <25497600>; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,msm8998-bwmon.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Interconnect Bandwidth Monitor + +maintainers: + - Krzysztof Kozlowski + +description: | + Bandwidth Monitor measures current throughput on buses between various NoC + fabrics and provides information when it crosses configured thresholds. + + Certain SoCs might have more than one Bandwidth Monitors, for example on SDM845:: + - Measuring the bandwidth between CPUs and Last Level Cache Controller - + called just BWMON, + - Measuring the bandwidth between Last Level Cache Controller and memory + (DDR) - called LLCC BWMON. + +properties: + compatible: + oneOf: + - const: qcom,msm8998-bwmon # BWMON v4 + - items: + - enum: + - qcom,qcm2290-cpu-bwmon + - qcom,sa8775p-cpu-bwmon + - qcom,sc7180-cpu-bwmon + - qcom,sc7280-cpu-bwmon + - qcom,sc8280xp-cpu-bwmon + - qcom,sdm845-cpu-bwmon + - qcom,sm6115-cpu-bwmon + - qcom,sm6350-llcc-bwmon + - qcom,sm8250-cpu-bwmon + - qcom,sm8550-cpu-bwmon + - qcom,sm8650-cpu-bwmon + - qcom,x1e80100-cpu-bwmon + - const: qcom,sdm845-bwmon # BWMON v4, unified register space + - items: + - enum: + - qcom,sa8775p-llcc-bwmon + - qcom,sc7180-llcc-bwmon + - qcom,sc8280xp-llcc-bwmon + - qcom,sm6350-cpu-bwmon + - qcom,sm8250-llcc-bwmon + - qcom,sm8550-llcc-bwmon + - qcom,sm8650-llcc-bwmon + - qcom,x1e80100-llcc-bwmon + - const: qcom,sc7280-llcc-bwmon + - const: qcom,sc7280-llcc-bwmon # BWMON v5 + - const: qcom,sdm845-llcc-bwmon # BWMON v5 + + interconnects: + maxItems: 1 + + interrupts: + maxItems: 1 + + operating-points-v2: true + opp-table: + type: object + + reg: + # BWMON v5 uses one register address space, v1-v4 use one or two. + minItems: 1 + maxItems: 2 + + reg-names: + minItems: 1 + maxItems: 2 + +required: + - compatible + - interconnects + - interrupts + - operating-points-v2 + - reg + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + const: qcom,msm8998-bwmon + then: + properties: + reg: + minItems: 2 + + reg-names: + items: + - const: monitor + - const: global + + else: + properties: + reg: + maxItems: 1 + + reg-names: + maxItems: 1 + +examples: + - | + #include + #include + + pmu@1436400 { + compatible = "qcom,sdm845-cpu-bwmon", "qcom,sdm845-bwmon"; + reg = <0x01436400 0x600>; + interrupts = ; + interconnects = <&gladiator_noc MASTER_APPSS_PROC 3 &mem_noc SLAVE_LLCC 3>; + + operating-points-v2 = <&cpu_bwmon_opp_table>; + + cpu_bwmon_opp_table: opp-table { + compatible = "operating-points-v2"; + opp-0 { + opp-peak-kBps = <4800000>; + }; + opp-1 { + opp-peak-kBps = <9216000>; + }; + opp-2 { + opp-peak-kBps = <15052800>; + }; + opp-3 { + opp-peak-kBps = <20889600>; + }; + opp-4 { + opp-peak-kBps = <25497600>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml index 0b6e2c730..1b9164dc1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml @@ -1,145 +1,145 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/interconnect/qcom,rpmh.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm RPMh Network-On-Chip Interconnect - -maintainers: - - Georgi Djakov - - Odelu Kukatla - -description: | - RPMh interconnect providers support system bandwidth requirements through - RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is - able to communicate with the BCM through the Resource State Coordinator (RSC) - associated with each execution environment. Provider nodes must point to at - least one RPMh device child node pertaining to their RSC and each provider - can map to multiple RPMh resources. - -properties: - reg: - maxItems: 1 - - compatible: - enum: - - qcom,sc7180-aggre1-noc - - qcom,sc7180-aggre2-noc - - qcom,sc7180-camnoc-virt - - qcom,sc7180-compute-noc - - qcom,sc7180-config-noc - - qcom,sc7180-dc-noc - - qcom,sc7180-gem-noc - - qcom,sc7180-mc-virt - - qcom,sc7180-mmss-noc - - qcom,sc7180-npu-noc - - qcom,sc7180-qup-virt - - qcom,sc7180-system-noc - - qcom,sc8180x-aggre1-noc - - qcom,sc8180x-aggre2-noc - - qcom,sc8180x-camnoc-virt - - qcom,sc8180x-compute-noc - - qcom,sc8180x-config-noc - - qcom,sc8180x-dc-noc - - qcom,sc8180x-gem-noc - - qcom,sc8180x-mc-virt - - qcom,sc8180x-mmss-noc - - qcom,sc8180x-qup-virt - - qcom,sc8180x-system-noc - - qcom,sdm670-aggre1-noc - - qcom,sdm670-aggre2-noc - - qcom,sdm670-config-noc - - qcom,sdm670-dc-noc - - qcom,sdm670-gladiator-noc - - qcom,sdm670-mem-noc - - qcom,sdm670-mmss-noc - - qcom,sdm670-system-noc - - qcom,sdm845-aggre1-noc - - qcom,sdm845-aggre2-noc - - qcom,sdm845-config-noc - - qcom,sdm845-dc-noc - - qcom,sdm845-gladiator-noc - - qcom,sdm845-mem-noc - - qcom,sdm845-mmss-noc - - qcom,sdm845-system-noc - - qcom,sdx55-mc-virt - - qcom,sdx55-mem-noc - - qcom,sdx55-system-noc - - qcom,sdx65-mc-virt - - qcom,sdx65-mem-noc - - qcom,sdx65-system-noc - - qcom,sm8150-aggre1-noc - - qcom,sm8150-aggre2-noc - - qcom,sm8150-camnoc-virt - - qcom,sm8150-compute-noc - - qcom,sm8150-config-noc - - qcom,sm8150-dc-noc - - qcom,sm8150-gem-noc - - qcom,sm8150-mc-virt - - qcom,sm8150-mmss-noc - - qcom,sm8150-system-noc - - qcom,sm8250-aggre1-noc - - qcom,sm8250-aggre2-noc - - qcom,sm8250-compute-noc - - qcom,sm8250-config-noc - - qcom,sm8250-dc-noc - - qcom,sm8250-gem-noc - - qcom,sm8250-mc-virt - - qcom,sm8250-mmss-noc - - qcom,sm8250-npu-noc - - qcom,sm8250-qup-virt - - qcom,sm8250-system-noc - - qcom,sm8350-aggre1-noc - - qcom,sm8350-aggre2-noc - - qcom,sm8350-config-noc - - qcom,sm8350-dc-noc - - qcom,sm8350-gem-noc - - qcom,sm8350-lpass-ag-noc - - qcom,sm8350-mc-virt - - qcom,sm8350-mmss-noc - - qcom,sm8350-compute-noc - - qcom,sm8350-system-noc - - '#interconnect-cells': true - -required: - - compatible - -allOf: - - $ref: qcom,rpmh-common.yaml# - - if: - not: - properties: - compatible: - enum: - - qcom,sc8180x-camnoc-virt - - qcom,sc8180x-mc-virt - - qcom,sc8180x-qup-virt - - qcom,sdx65-mc-virt - - qcom,sm8250-qup-virt - then: - required: - - reg - - -unevaluatedProperties: false - -examples: - - | - #include - - mem_noc: interconnect@1380000 { - compatible = "qcom,sdm845-mem-noc"; - reg = <0x01380000 0x27200>; - #interconnect-cells = <1>; - qcom,bcm-voters = <&apps_bcm_voter>; - }; - - mmss_noc: interconnect@1740000 { - compatible = "qcom,sdm845-mmss-noc"; - reg = <0x01740000 0x1c1000>; - #interconnect-cells = <1>; - qcom,bcm-voter-names = "apps", "disp"; - qcom,bcm-voters = <&apps_bcm_voter>, <&disp_bcm_voter>; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,rpmh.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm RPMh Network-On-Chip Interconnect + +maintainers: + - Georgi Djakov + - Odelu Kukatla + +description: | + RPMh interconnect providers support system bandwidth requirements through + RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is + able to communicate with the BCM through the Resource State Coordinator (RSC) + associated with each execution environment. Provider nodes must point to at + least one RPMh device child node pertaining to their RSC and each provider + can map to multiple RPMh resources. + +properties: + reg: + maxItems: 1 + + compatible: + enum: + - qcom,sc7180-aggre1-noc + - qcom,sc7180-aggre2-noc + - qcom,sc7180-camnoc-virt + - qcom,sc7180-compute-noc + - qcom,sc7180-config-noc + - qcom,sc7180-dc-noc + - qcom,sc7180-gem-noc + - qcom,sc7180-mc-virt + - qcom,sc7180-mmss-noc + - qcom,sc7180-npu-noc + - qcom,sc7180-qup-virt + - qcom,sc7180-system-noc + - qcom,sc8180x-aggre1-noc + - qcom,sc8180x-aggre2-noc + - qcom,sc8180x-camnoc-virt + - qcom,sc8180x-compute-noc + - qcom,sc8180x-config-noc + - qcom,sc8180x-dc-noc + - qcom,sc8180x-gem-noc + - qcom,sc8180x-mc-virt + - qcom,sc8180x-mmss-noc + - qcom,sc8180x-qup-virt + - qcom,sc8180x-system-noc + - qcom,sdm670-aggre1-noc + - qcom,sdm670-aggre2-noc + - qcom,sdm670-config-noc + - qcom,sdm670-dc-noc + - qcom,sdm670-gladiator-noc + - qcom,sdm670-mem-noc + - qcom,sdm670-mmss-noc + - qcom,sdm670-system-noc + - qcom,sdm845-aggre1-noc + - qcom,sdm845-aggre2-noc + - qcom,sdm845-config-noc + - qcom,sdm845-dc-noc + - qcom,sdm845-gladiator-noc + - qcom,sdm845-mem-noc + - qcom,sdm845-mmss-noc + - qcom,sdm845-system-noc + - qcom,sdx55-mc-virt + - qcom,sdx55-mem-noc + - qcom,sdx55-system-noc + - qcom,sdx65-mc-virt + - qcom,sdx65-mem-noc + - qcom,sdx65-system-noc + - qcom,sm8150-aggre1-noc + - qcom,sm8150-aggre2-noc + - qcom,sm8150-camnoc-virt + - qcom,sm8150-compute-noc + - qcom,sm8150-config-noc + - qcom,sm8150-dc-noc + - qcom,sm8150-gem-noc + - qcom,sm8150-mc-virt + - qcom,sm8150-mmss-noc + - qcom,sm8150-system-noc + - qcom,sm8250-aggre1-noc + - qcom,sm8250-aggre2-noc + - qcom,sm8250-compute-noc + - qcom,sm8250-config-noc + - qcom,sm8250-dc-noc + - qcom,sm8250-gem-noc + - qcom,sm8250-mc-virt + - qcom,sm8250-mmss-noc + - qcom,sm8250-npu-noc + - qcom,sm8250-qup-virt + - qcom,sm8250-system-noc + - qcom,sm8350-aggre1-noc + - qcom,sm8350-aggre2-noc + - qcom,sm8350-config-noc + - qcom,sm8350-dc-noc + - qcom,sm8350-gem-noc + - qcom,sm8350-lpass-ag-noc + - qcom,sm8350-mc-virt + - qcom,sm8350-mmss-noc + - qcom,sm8350-compute-noc + - qcom,sm8350-system-noc + + '#interconnect-cells': true + +required: + - compatible + +allOf: + - $ref: qcom,rpmh-common.yaml# + - if: + not: + properties: + compatible: + enum: + - qcom,sc8180x-camnoc-virt + - qcom,sc8180x-mc-virt + - qcom,sc8180x-qup-virt + - qcom,sdx65-mc-virt + - qcom,sm8250-qup-virt + then: + required: + - reg + + +unevaluatedProperties: false + +examples: + - | + #include + + mem_noc: interconnect@1380000 { + compatible = "qcom,sdm845-mem-noc"; + reg = <0x01380000 0x27200>; + #interconnect-cells = <1>; + qcom,bcm-voters = <&apps_bcm_voter>; + }; + + mmss_noc: interconnect@1740000 { + compatible = "qcom,sdm845-mmss-noc"; + reg = <0x01740000 0x1c1000>; + #interconnect-cells = <1>; + qcom,bcm-voter-names = "apps", "disp"; + qcom,bcm-voters = <&apps_bcm_voter>, <&disp_bcm_voter>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/qcom,sm6115.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/qcom,sm6115.yaml index bc71c9658..14b1a0b08 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/qcom,sm6115.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/qcom,sm6115.yaml @@ -1,152 +1,152 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/interconnect/qcom,sm6115.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SM6115 Network-On-Chip interconnect - -maintainers: - - Konrad Dybcio - -description: - The Qualcomm SM6115 interconnect providers support adjusting the - bandwidth requirements between the various NoC fabrics. - -properties: - compatible: - enum: - - qcom,sm6115-bimc - - qcom,sm6115-cnoc - - qcom,sm6115-snoc - - reg: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 4 - - clock-names: - minItems: 1 - maxItems: 4 - -# Child node's properties -patternProperties: - '^interconnect-[a-z0-9]+$': - type: object - description: - The interconnect providers do not have a separate QoS register space, - but share parent's space. - - $ref: qcom,rpm-common.yaml# - - properties: - compatible: - enum: - - qcom,sm6115-clk-virt - - qcom,sm6115-mmrt-virt - - qcom,sm6115-mmnrt-virt - - required: - - compatible - - unevaluatedProperties: false - -required: - - compatible - - reg - -allOf: - - $ref: qcom,rpm-common.yaml# - - if: - properties: - compatible: - const: qcom,sm6115-cnoc - - then: - properties: - clocks: - items: - - description: USB-NoC AXI clock - - clock-names: - items: - - const: usb_axi - - - if: - properties: - compatible: - const: qcom,sm6115-snoc - - then: - properties: - clocks: - items: - - description: CPU-NoC AXI clock. - - description: UFS-NoC AXI clock. - - description: USB-NoC AXI clock. - - description: IPA clock. - - clock-names: - items: - - const: cpu_axi - - const: ufs_axi - - const: usb_axi - - const: ipa - - - if: - properties: - compatible: - enum: - - qcom,sm6115-bimc - - qcom,sm6115-clk-virt - - qcom,sm6115-mmrt-virt - - qcom,sm6115-mmnrt-virt - - then: - properties: - clocks: false - clock-names: false - -unevaluatedProperties: false - -examples: - - | - #include - #include - - snoc: interconnect@1880000 { - compatible = "qcom,sm6115-snoc"; - reg = <0x01880000 0x60200>; - clocks = <&gcc GCC_SYS_NOC_CPUSS_AHB_CLK>, - <&gcc GCC_SYS_NOC_UFS_PHY_AXI_CLK>, - <&gcc GCC_SYS_NOC_USB3_PRIM_AXI_CLK>, - <&rpmcc RPM_SMD_IPA_CLK>; - clock-names = "cpu_axi", - "ufs_axi", - "usb_axi", - "ipa"; - #interconnect-cells = <1>; - - qup_virt: interconnect-clk { - compatible = "qcom,sm6115-clk-virt"; - #interconnect-cells = <1>; - }; - - mmnrt_virt: interconnect-mmnrt { - compatible = "qcom,sm6115-mmnrt-virt"; - #interconnect-cells = <1>; - }; - - mmrt_virt: interconnect-mmrt { - compatible = "qcom,sm6115-mmrt-virt"; - #interconnect-cells = <1>; - }; - }; - - cnoc: interconnect@1900000 { - compatible = "qcom,sm6115-cnoc"; - reg = <0x01900000 0x8200>; - #interconnect-cells = <1>; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,sm6115.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM6115 Network-On-Chip interconnect + +maintainers: + - Konrad Dybcio + +description: + The Qualcomm SM6115 interconnect providers support adjusting the + bandwidth requirements between the various NoC fabrics. + +properties: + compatible: + enum: + - qcom,sm6115-bimc + - qcom,sm6115-cnoc + - qcom,sm6115-snoc + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 4 + + clock-names: + minItems: 1 + maxItems: 4 + +# Child node's properties +patternProperties: + '^interconnect-[a-z0-9]+$': + type: object + description: + The interconnect providers do not have a separate QoS register space, + but share parent's space. + + $ref: qcom,rpm-common.yaml# + + properties: + compatible: + enum: + - qcom,sm6115-clk-virt + - qcom,sm6115-mmrt-virt + - qcom,sm6115-mmnrt-virt + + required: + - compatible + + unevaluatedProperties: false + +required: + - compatible + - reg + +allOf: + - $ref: qcom,rpm-common.yaml# + - if: + properties: + compatible: + const: qcom,sm6115-cnoc + + then: + properties: + clocks: + items: + - description: USB-NoC AXI clock + + clock-names: + items: + - const: usb_axi + + - if: + properties: + compatible: + const: qcom,sm6115-snoc + + then: + properties: + clocks: + items: + - description: CPU-NoC AXI clock. + - description: UFS-NoC AXI clock. + - description: USB-NoC AXI clock. + - description: IPA clock. + + clock-names: + items: + - const: cpu_axi + - const: ufs_axi + - const: usb_axi + - const: ipa + + - if: + properties: + compatible: + enum: + - qcom,sm6115-bimc + - qcom,sm6115-clk-virt + - qcom,sm6115-mmrt-virt + - qcom,sm6115-mmnrt-virt + + then: + properties: + clocks: false + clock-names: false + +unevaluatedProperties: false + +examples: + - | + #include + #include + + snoc: interconnect@1880000 { + compatible = "qcom,sm6115-snoc"; + reg = <0x01880000 0x60200>; + clocks = <&gcc GCC_SYS_NOC_CPUSS_AHB_CLK>, + <&gcc GCC_SYS_NOC_UFS_PHY_AXI_CLK>, + <&gcc GCC_SYS_NOC_USB3_PRIM_AXI_CLK>, + <&rpmcc RPM_SMD_IPA_CLK>; + clock-names = "cpu_axi", + "ufs_axi", + "usb_axi", + "ipa"; + #interconnect-cells = <1>; + + qup_virt: interconnect-clk { + compatible = "qcom,sm6115-clk-virt"; + #interconnect-cells = <1>; + }; + + mmnrt_virt: interconnect-mmnrt { + compatible = "qcom,sm6115-mmnrt-virt"; + #interconnect-cells = <1>; + }; + + mmrt_virt: interconnect-mmrt { + compatible = "qcom,sm6115-mmrt-virt"; + #interconnect-cells = <1>; + }; + }; + + cnoc: interconnect@1900000 { + compatible = "qcom,sm6115-cnoc"; + reg = <0x01900000 0x8200>; + #interconnect-cells = <1>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/qcom,sm8550-rpmh.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/qcom,sm8550-rpmh.yaml index 681667956..716bd21f6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/qcom,sm8550-rpmh.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interconnect/qcom,sm8550-rpmh.yaml @@ -1,139 +1,139 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/interconnect/qcom,sm8550-rpmh.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm RPMh Network-On-Chip Interconnect on SM8550 - -maintainers: - - Abel Vesa - - Neil Armstrong - -description: | - RPMh interconnect providers support system bandwidth requirements through - RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is - able to communicate with the BCM through the Resource State Coordinator (RSC) - associated with each execution environment. Provider nodes must point to at - least one RPMh device child node pertaining to their RSC and each provider - can map to multiple RPMh resources. - - See also:: include/dt-bindings/interconnect/qcom,sm8550-rpmh.h - -properties: - compatible: - enum: - - qcom,sm8550-aggre1-noc - - qcom,sm8550-aggre2-noc - - qcom,sm8550-clk-virt - - qcom,sm8550-cnoc-main - - qcom,sm8550-config-noc - - qcom,sm8550-gem-noc - - qcom,sm8550-lpass-ag-noc - - qcom,sm8550-lpass-lpiaon-noc - - qcom,sm8550-lpass-lpicx-noc - - qcom,sm8550-mc-virt - - qcom,sm8550-mmss-noc - - qcom,sm8550-nsp-noc - - qcom,sm8550-pcie-anoc - - qcom,sm8550-system-noc - - reg: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 2 - -allOf: - - $ref: qcom,rpmh-common.yaml# - - if: - properties: - compatible: - contains: - enum: - - qcom,sm8550-clk-virt - - qcom,sm8550-mc-virt - then: - properties: - reg: false - else: - required: - - reg - - - if: - properties: - compatible: - contains: - enum: - - qcom,sm8550-pcie-anoc - then: - properties: - clocks: - items: - - description: aggre-NOC PCIe AXI clock - - description: cfg-NOC PCIe a-NOC AHB clock - - - if: - properties: - compatible: - contains: - enum: - - qcom,sm8550-aggre1-noc - then: - properties: - clocks: - items: - - description: aggre UFS PHY AXI clock - - description: aggre USB3 PRIM AXI clock - - - if: - properties: - compatible: - contains: - enum: - - qcom,sm8550-aggre2-noc - then: - properties: - clocks: - items: - - description: RPMH CC IPA clock - - - if: - properties: - compatible: - contains: - enum: - - qcom,sm8550-aggre1-noc - - qcom,sm8550-aggre2-noc - - qcom,sm8550-pcie-anoc - then: - required: - - clocks - else: - properties: - clocks: false - -required: - - compatible - -unevaluatedProperties: false - -examples: - - | - #include - - clk_virt: interconnect-0 { - compatible = "qcom,sm8550-clk-virt"; - #interconnect-cells = <2>; - qcom,bcm-voters = <&apps_bcm_voter>; - }; - - aggre1_noc: interconnect@16e0000 { - compatible = "qcom,sm8550-aggre1-noc"; - reg = <0x016e0000 0x14400>; - #interconnect-cells = <2>; - clocks = <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, - <&gcc GCC_AGGRE_USB3_PRIM_AXI_CLK>; - qcom,bcm-voters = <&apps_bcm_voter>; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,sm8550-rpmh.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm RPMh Network-On-Chip Interconnect on SM8550 + +maintainers: + - Abel Vesa + - Neil Armstrong + +description: | + RPMh interconnect providers support system bandwidth requirements through + RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is + able to communicate with the BCM through the Resource State Coordinator (RSC) + associated with each execution environment. Provider nodes must point to at + least one RPMh device child node pertaining to their RSC and each provider + can map to multiple RPMh resources. + + See also:: include/dt-bindings/interconnect/qcom,sm8550-rpmh.h + +properties: + compatible: + enum: + - qcom,sm8550-aggre1-noc + - qcom,sm8550-aggre2-noc + - qcom,sm8550-clk-virt + - qcom,sm8550-cnoc-main + - qcom,sm8550-config-noc + - qcom,sm8550-gem-noc + - qcom,sm8550-lpass-ag-noc + - qcom,sm8550-lpass-lpiaon-noc + - qcom,sm8550-lpass-lpicx-noc + - qcom,sm8550-mc-virt + - qcom,sm8550-mmss-noc + - qcom,sm8550-nsp-noc + - qcom,sm8550-pcie-anoc + - qcom,sm8550-system-noc + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + +allOf: + - $ref: qcom,rpmh-common.yaml# + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8550-clk-virt + - qcom,sm8550-mc-virt + then: + properties: + reg: false + else: + required: + - reg + + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8550-pcie-anoc + then: + properties: + clocks: + items: + - description: aggre-NOC PCIe AXI clock + - description: cfg-NOC PCIe a-NOC AHB clock + + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8550-aggre1-noc + then: + properties: + clocks: + items: + - description: aggre UFS PHY AXI clock + - description: aggre USB3 PRIM AXI clock + + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8550-aggre2-noc + then: + properties: + clocks: + items: + - description: RPMH CC IPA clock + + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8550-aggre1-noc + - qcom,sm8550-aggre2-noc + - qcom,sm8550-pcie-anoc + then: + required: + - clocks + else: + properties: + clocks: false + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + #include + + clk_virt: interconnect-0 { + compatible = "qcom,sm8550-clk-virt"; + #interconnect-cells = <2>; + qcom,bcm-voters = <&apps_bcm_voter>; + }; + + aggre1_noc: interconnect@16e0000 { + compatible = "qcom,sm8550-aggre1-noc"; + reg = <0x016e0000 0x14400>; + #interconnect-cells = <2>; + clocks = <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, + <&gcc GCC_AGGRE_USB3_PRIM_AXI_CLK>; + qcom,bcm-voters = <&apps_bcm_voter>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/apple,aic.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/apple,aic.yaml index b3605ff80..4be9b596a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/apple,aic.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/apple,aic.yaml @@ -1,133 +1,133 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/interrupt-controller/apple,aic.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Apple Interrupt Controller - -maintainers: - - Hector Martin - -description: | - The Apple Interrupt Controller is a simple interrupt controller present on - Apple ARM SoC platforms, including various iPhone and iPad devices and the - "Apple Silicon" Macs. - - It provides the following features: - - - Level-triggered hardware IRQs wired to SoC blocks - - Single mask bit per IRQ - - Per-IRQ affinity setting - - Automatic masking on event delivery (auto-ack) - - Software triggering (ORed with hw line) - - 2 per-CPU IPIs (meant as "self" and "other", but they are interchangeable - if not symmetric) - - Automatic prioritization (single event/ack register per CPU, lower IRQs = - higher priority) - - Automatic masking on ack - - Default "this CPU" register view and explicit per-CPU views - - This device also represents the FIQ interrupt sources on platforms using AIC, - which do not go through a discrete interrupt controller. - - IPIs may be performed via MMIO registers on all variants of AIC. Starting - from A11, system registers may also be used for "fast" IPIs. Starting from - M1, even faster IPIs within the same cluster may be achieved by writing to - a "local" fast IPI register as opposed to using the "global" fast IPI - register. - -allOf: - - $ref: /schemas/interrupt-controller.yaml# - -properties: - compatible: - items: - - enum: - - apple,s5l8960x-aic - - apple,t7000-aic - - apple,s8000-aic - - apple,t8010-aic - - apple,t8015-aic - - apple,t8103-aic - - const: apple,aic - - interrupt-controller: true - - '#interrupt-cells': - const: 3 - description: | - The 1st cell contains the interrupt type: - - 0: Hardware IRQ - - 1: FIQ - - The 2nd cell contains the interrupt number. - - HW IRQs: interrupt number - - FIQs: - - 0: physical HV timer - - 1: virtual HV timer - - 2: physical guest timer - - 3: virtual guest timer - - 4: 'efficient' CPU PMU - - 5: 'performance' CPU PMU - - The 3rd cell contains the interrupt flags. This is normally - IRQ_TYPE_LEVEL_HIGH (4). - - reg: - description: | - Specifies base physical address and size of the AIC registers. - maxItems: 1 - - power-domains: - maxItems: 1 - - affinities: - type: object - additionalProperties: false - description: - FIQ affinity can be expressed as a single "affinities" node, - containing a set of sub-nodes, one per FIQ with a non-default - affinity. - patternProperties: - "^.+-affinity$": - type: object - additionalProperties: false - properties: - apple,fiq-index: - description: - The interrupt number specified as a FIQ, and for which - the affinity is not the default. - $ref: /schemas/types.yaml#/definitions/uint32 - maximum: 5 - - cpus: - description: - Should be a list of phandles to CPU nodes (as described in - Documentation/devicetree/bindings/arm/cpus.yaml). - - required: - - apple,fiq-index - - cpus - -required: - - compatible - - '#interrupt-cells' - - interrupt-controller - - reg - -additionalProperties: false - -examples: - - | - soc { - #address-cells = <2>; - #size-cells = <2>; - - aic: interrupt-controller@23b100000 { - compatible = "apple,t8103-aic", "apple,aic"; - #interrupt-cells = <3>; - interrupt-controller; - reg = <0x2 0x3b100000 0x0 0x8000>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/apple,aic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple Interrupt Controller + +maintainers: + - Hector Martin + +description: | + The Apple Interrupt Controller is a simple interrupt controller present on + Apple ARM SoC platforms, including various iPhone and iPad devices and the + "Apple Silicon" Macs. + + It provides the following features: + + - Level-triggered hardware IRQs wired to SoC blocks + - Single mask bit per IRQ + - Per-IRQ affinity setting + - Automatic masking on event delivery (auto-ack) + - Software triggering (ORed with hw line) + - 2 per-CPU IPIs (meant as "self" and "other", but they are interchangeable + if not symmetric) + - Automatic prioritization (single event/ack register per CPU, lower IRQs = + higher priority) + - Automatic masking on ack + - Default "this CPU" register view and explicit per-CPU views + + This device also represents the FIQ interrupt sources on platforms using AIC, + which do not go through a discrete interrupt controller. + + IPIs may be performed via MMIO registers on all variants of AIC. Starting + from A11, system registers may also be used for "fast" IPIs. Starting from + M1, even faster IPIs within the same cluster may be achieved by writing to + a "local" fast IPI register as opposed to using the "global" fast IPI + register. + +allOf: + - $ref: /schemas/interrupt-controller.yaml# + +properties: + compatible: + items: + - enum: + - apple,s5l8960x-aic + - apple,t7000-aic + - apple,s8000-aic + - apple,t8010-aic + - apple,t8015-aic + - apple,t8103-aic + - const: apple,aic + + interrupt-controller: true + + '#interrupt-cells': + const: 3 + description: | + The 1st cell contains the interrupt type: + - 0: Hardware IRQ + - 1: FIQ + + The 2nd cell contains the interrupt number. + - HW IRQs: interrupt number + - FIQs: + - 0: physical HV timer + - 1: virtual HV timer + - 2: physical guest timer + - 3: virtual guest timer + - 4: 'efficient' CPU PMU + - 5: 'performance' CPU PMU + + The 3rd cell contains the interrupt flags. This is normally + IRQ_TYPE_LEVEL_HIGH (4). + + reg: + description: | + Specifies base physical address and size of the AIC registers. + maxItems: 1 + + power-domains: + maxItems: 1 + + affinities: + type: object + additionalProperties: false + description: + FIQ affinity can be expressed as a single "affinities" node, + containing a set of sub-nodes, one per FIQ with a non-default + affinity. + patternProperties: + "^.+-affinity$": + type: object + additionalProperties: false + properties: + apple,fiq-index: + description: + The interrupt number specified as a FIQ, and for which + the affinity is not the default. + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 5 + + cpus: + description: + Should be a list of phandles to CPU nodes (as described in + Documentation/devicetree/bindings/arm/cpus.yaml). + + required: + - apple,fiq-index + - cpus + +required: + - compatible + - '#interrupt-cells' + - interrupt-controller + - reg + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + aic: interrupt-controller@23b100000 { + compatible = "apple,t8103-aic", "apple,aic"; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x2 0x3b100000 0x0 0x8000>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml index a2239f035..2bde6cc6f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml @@ -1,143 +1,143 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/interrupt-controller/apple,aic2.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Apple Interrupt Controller 2 - -maintainers: - - Hector Martin - -description: | - The Apple Interrupt Controller 2 is a simple interrupt controller present on - Apple ARM SoC platforms starting with t600x (M1 Pro and Max). - - It provides the following features: - - - Level-triggered hardware IRQs wired to SoC blocks - - Single mask bit per IRQ - - Automatic masking on event delivery (auto-ack) - - Software triggering (ORed with hw line) - - Automatic prioritization (single event/ack register per CPU, lower IRQs = - higher priority) - - Automatic masking on ack - - Support for multiple dies - - This device also represents the FIQ interrupt sources on platforms using AIC, - which do not go through a discrete interrupt controller. It also handles - FIQ-based Fast IPIs. - -properties: - compatible: - items: - - enum: - - apple,t8112-aic - - apple,t6000-aic - - const: apple,aic2 - - interrupt-controller: true - - '#interrupt-cells': - minimum: 3 - maximum: 4 - description: | - The 1st cell contains the interrupt type: - - 0: Hardware IRQ - - 1: FIQ - - The 2nd cell contains the die ID (only present on apple,t6000-aic). - - The next cell contains the interrupt number. - - HW IRQs: interrupt number - - FIQs: - - 0: physical HV timer - - 1: virtual HV timer - - 2: physical guest timer - - 3: virtual guest timer - - The last cell contains the interrupt flags. This is normally - IRQ_TYPE_LEVEL_HIGH (4). - - reg: - items: - - description: Address and size of the main AIC2 registers. - - description: Address and size of the AIC2 Event register. - - reg-names: - items: - - const: core - - const: event - - power-domains: - maxItems: 1 - - affinities: - type: object - additionalProperties: false - description: - FIQ affinity can be expressed as a single "affinities" node, - containing a set of sub-nodes, one per FIQ with a non-default - affinity. - patternProperties: - "^.+-affinity$": - type: object - additionalProperties: false - properties: - apple,fiq-index: - description: - The interrupt number specified as a FIQ, and for which - the affinity is not the default. - $ref: /schemas/types.yaml#/definitions/uint32 - maximum: 5 - - cpus: - $ref: /schemas/types.yaml#/definitions/phandle-array - description: - Should be a list of phandles to CPU nodes (as described in - Documentation/devicetree/bindings/arm/cpus.yaml). - - required: - - apple,fiq-index - - cpus - -required: - - compatible - - '#interrupt-cells' - - interrupt-controller - - reg - - reg-names - -additionalProperties: false - -allOf: - - $ref: /schemas/interrupt-controller.yaml# - - if: - properties: - compatible: - contains: - const: apple,t8112-aic - then: - properties: - '#interrupt-cells': - const: 3 - else: - properties: - '#interrupt-cells': - const: 4 - -examples: - - | - soc { - #address-cells = <2>; - #size-cells = <2>; - - aic: interrupt-controller@28e100000 { - compatible = "apple,t6000-aic", "apple,aic2"; - #interrupt-cells = <4>; - interrupt-controller; - reg = <0x2 0x8e100000 0x0 0xc000>, - <0x2 0x8e10c000 0x0 0x4>; - reg-names = "core", "event"; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/apple,aic2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple Interrupt Controller 2 + +maintainers: + - Hector Martin + +description: | + The Apple Interrupt Controller 2 is a simple interrupt controller present on + Apple ARM SoC platforms starting with t600x (M1 Pro and Max). + + It provides the following features: + + - Level-triggered hardware IRQs wired to SoC blocks + - Single mask bit per IRQ + - Automatic masking on event delivery (auto-ack) + - Software triggering (ORed with hw line) + - Automatic prioritization (single event/ack register per CPU, lower IRQs = + higher priority) + - Automatic masking on ack + - Support for multiple dies + + This device also represents the FIQ interrupt sources on platforms using AIC, + which do not go through a discrete interrupt controller. It also handles + FIQ-based Fast IPIs. + +properties: + compatible: + items: + - enum: + - apple,t8112-aic + - apple,t6000-aic + - const: apple,aic2 + + interrupt-controller: true + + '#interrupt-cells': + minimum: 3 + maximum: 4 + description: | + The 1st cell contains the interrupt type: + - 0: Hardware IRQ + - 1: FIQ + + The 2nd cell contains the die ID (only present on apple,t6000-aic). + + The next cell contains the interrupt number. + - HW IRQs: interrupt number + - FIQs: + - 0: physical HV timer + - 1: virtual HV timer + - 2: physical guest timer + - 3: virtual guest timer + + The last cell contains the interrupt flags. This is normally + IRQ_TYPE_LEVEL_HIGH (4). + + reg: + items: + - description: Address and size of the main AIC2 registers. + - description: Address and size of the AIC2 Event register. + + reg-names: + items: + - const: core + - const: event + + power-domains: + maxItems: 1 + + affinities: + type: object + additionalProperties: false + description: + FIQ affinity can be expressed as a single "affinities" node, + containing a set of sub-nodes, one per FIQ with a non-default + affinity. + patternProperties: + "^.+-affinity$": + type: object + additionalProperties: false + properties: + apple,fiq-index: + description: + The interrupt number specified as a FIQ, and for which + the affinity is not the default. + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 5 + + cpus: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Should be a list of phandles to CPU nodes (as described in + Documentation/devicetree/bindings/arm/cpus.yaml). + + required: + - apple,fiq-index + - cpus + +required: + - compatible + - '#interrupt-cells' + - interrupt-controller + - reg + - reg-names + +additionalProperties: false + +allOf: + - $ref: /schemas/interrupt-controller.yaml# + - if: + properties: + compatible: + contains: + const: apple,t8112-aic + then: + properties: + '#interrupt-cells': + const: 3 + else: + properties: + '#interrupt-cells': + const: 4 + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + aic: interrupt-controller@28e100000 { + compatible = "apple,t6000-aic", "apple,aic2"; + #interrupt-cells = <4>; + interrupt-controller; + reg = <0x2 0x8e100000 0x0 0xc000>, + <0x2 0x8e10c000 0x0 0x4>; + reg-names = "core", "event"; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.yaml index 82df7d0e3..7ff4efc47 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.yaml @@ -1,137 +1,137 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/interrupt-controller/fsl,ls-extirq.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale Layerscape External Interrupt Controller - -maintainers: - - Shawn Guo - -description: | - Some Layerscape SOCs (LS1021A, LS1043A, LS1046A LS1088A, LS208xA, - LX216xA) support inverting the polarity of certain external interrupt - lines. - -properties: - compatible: - oneOf: - - enum: - - fsl,ls1021a-extirq - - fsl,ls1043a-extirq - - fsl,ls1088a-extirq - - items: - - enum: - - fsl,ls1046a-extirq - - const: fsl,ls1043a-extirq - - items: - - enum: - - fsl,ls2080a-extirq - - fsl,lx2160a-extirq - - const: fsl,ls1088a-extirq - - '#interrupt-cells': - const: 2 - - '#address-cells': - const: 0 - - interrupt-controller: true - - reg: - maxItems: 1 - description: - Specifies the Interrupt Polarity Control Register (INTPCR) in the - SCFG or the External Interrupt Control Register (IRQCR) in the ISC. - - interrupt-map: - description: Specifies the mapping from external interrupts to GIC interrupts. - - interrupt-map-mask: true - -required: - - compatible - - '#interrupt-cells' - - '#address-cells' - - interrupt-controller - - reg - - interrupt-map - - interrupt-map-mask - -allOf: - - if: - properties: - compatible: - contains: - enum: - - fsl,ls1021a-extirq - then: - properties: - interrupt-map: - minItems: 6 - maxItems: 6 - interrupt-map-mask: - items: - - const: 0x7 - - const: 0 - - if: - properties: - compatible: - contains: - enum: - - fsl,ls1043a-extirq - - fsl,ls1046a-extirq - then: - properties: - interrupt-map: - minItems: 12 - maxItems: 12 - interrupt-map-mask: - items: - - const: 0xf - - const: 0 - - - if: - properties: - compatible: - contains: - enum: - - fsl,ls1088a-extirq - - fsl,ls2080a-extirq - - fsl,lx2160a-extirq -# The driver(drivers/irqchip/irq-ls-extirq.c) have not use standard DT -# function to parser interrupt-map. So it doesn't consider '#address-size' -# in parent interrupt controller, such as GIC. -# -# When dt-binding verify interrupt-map, item data matrix is spitted at -# incorrect position. Remove interrupt-map restriction because it always -# wrong. - - then: - properties: - interrupt-map-mask: - items: - - const: 0xf - - const: 0 - -additionalProperties: false - -examples: - - | - #include - interrupt-controller@1ac { - compatible = "fsl,ls1021a-extirq"; - #interrupt-cells = <2>; - #address-cells = <0>; - interrupt-controller; - reg = <0x1ac 4>; - interrupt-map = - <0 0 &gic GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>, - <1 0 &gic GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>, - <2 0 &gic GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>, - <3 0 &gic GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>, - <4 0 &gic GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>, - <5 0 &gic GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>; - interrupt-map-mask = <0x7 0x0>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/fsl,ls-extirq.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale Layerscape External Interrupt Controller + +maintainers: + - Shawn Guo + +description: | + Some Layerscape SOCs (LS1021A, LS1043A, LS1046A LS1088A, LS208xA, + LX216xA) support inverting the polarity of certain external interrupt + lines. + +properties: + compatible: + oneOf: + - enum: + - fsl,ls1021a-extirq + - fsl,ls1043a-extirq + - fsl,ls1088a-extirq + - items: + - enum: + - fsl,ls1046a-extirq + - const: fsl,ls1043a-extirq + - items: + - enum: + - fsl,ls2080a-extirq + - fsl,lx2160a-extirq + - const: fsl,ls1088a-extirq + + '#interrupt-cells': + const: 2 + + '#address-cells': + const: 0 + + interrupt-controller: true + + reg: + maxItems: 1 + description: + Specifies the Interrupt Polarity Control Register (INTPCR) in the + SCFG or the External Interrupt Control Register (IRQCR) in the ISC. + + interrupt-map: + description: Specifies the mapping from external interrupts to GIC interrupts. + + interrupt-map-mask: true + +required: + - compatible + - '#interrupt-cells' + - '#address-cells' + - interrupt-controller + - reg + - interrupt-map + - interrupt-map-mask + +allOf: + - if: + properties: + compatible: + contains: + enum: + - fsl,ls1021a-extirq + then: + properties: + interrupt-map: + minItems: 6 + maxItems: 6 + interrupt-map-mask: + items: + - const: 0x7 + - const: 0 + - if: + properties: + compatible: + contains: + enum: + - fsl,ls1043a-extirq + - fsl,ls1046a-extirq + then: + properties: + interrupt-map: + minItems: 12 + maxItems: 12 + interrupt-map-mask: + items: + - const: 0xf + - const: 0 + + - if: + properties: + compatible: + contains: + enum: + - fsl,ls1088a-extirq + - fsl,ls2080a-extirq + - fsl,lx2160a-extirq +# The driver(drivers/irqchip/irq-ls-extirq.c) have not use standard DT +# function to parser interrupt-map. So it doesn't consider '#address-size' +# in parent interrupt controller, such as GIC. +# +# When dt-binding verify interrupt-map, item data matrix is spitted at +# incorrect position. Remove interrupt-map restriction because it always +# wrong. + + then: + properties: + interrupt-map-mask: + items: + - const: 0xf + - const: 0 + +additionalProperties: false + +examples: + - | + #include + interrupt-controller@1ac { + compatible = "fsl,ls1021a-extirq"; + #interrupt-cells = <2>; + #address-cells = <0>; + interrupt-controller; + reg = <0x1ac 4>; + interrupt-map = + <0 0 &gic GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>, + <1 0 &gic GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>, + <2 0 &gic GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>, + <3 0 &gic GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>, + <4 0 &gic GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>, + <5 0 &gic GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>; + interrupt-map-mask = <0x7 0x0>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/img,pdc-intc.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/img,pdc-intc.txt index 3ed84d7af..5dc2a55ad 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/img,pdc-intc.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/img,pdc-intc.txt @@ -1,105 +1,105 @@ -* ImgTec Powerdown Controller (PDC) Interrupt Controller Binding - -This binding specifies what properties must be available in the device tree -representation of a PDC IRQ controller. This has a number of input interrupt -lines which can wake the system, and are passed on through output interrupt -lines. - -Required properties: - - - compatible: Specifies the compatibility list for the interrupt controller. - The type shall be and the value shall include "img,pdc-intc". - - - reg: Specifies the base PDC physical address(s) and size(s) of the - addressable register space. The type shall be . - - - interrupt-controller: The presence of this property identifies the node - as an interrupt controller. No property value shall be defined. - - - #interrupt-cells: Specifies the number of cells needed to encode an - interrupt source. The type shall be a and the value shall be 2. - - - num-perips: Number of waking peripherals. - - - num-syswakes: Number of SysWake inputs. - - - interrupts: List of interrupt specifiers. The first specifier shall be the - shared SysWake interrupt, and remaining specifies shall be PDC peripheral - interrupts in order. - -* Interrupt Specifier Definition - - Interrupt specifiers consists of 2 cells encoded as follows: - - - <1st-cell>: The interrupt-number that identifies the interrupt source. - 0-7: Peripheral interrupts - 8-15: SysWake interrupts - - - <2nd-cell>: The level-sense information, encoded using the Linux interrupt - flags as follows (only 4 valid for peripheral interrupts): - 0 = none (decided by software) - 1 = low-to-high edge triggered - 2 = high-to-low edge triggered - 3 = both edge triggered - 4 = active-high level-sensitive (required for perip irqs) - 8 = active-low level-sensitive - -* Examples - -Example 1: - - /* - * TZ1090 PDC block - */ - pdc: pdc@02006000 { - // This is an interrupt controller node. - interrupt-controller; - - // Three cells to encode interrupt sources. - #interrupt-cells = <2>; - - // Offset address of 0x02006000 and size of 0x1000. - reg = <0x02006000 0x1000>; - - // Compatible with Meta hardware trigger block. - compatible = "img,pdc-intc"; - - // Three peripherals are connected. - num-perips = <3>; - - // Four SysWakes are connected. - num-syswakes = <4>; - - interrupts = <18 4 /* level */>, /* Syswakes */ - <30 4 /* level */>, /* Peripheral 0 (RTC) */ - <29 4 /* level */>, /* Peripheral 1 (IR) */ - <31 4 /* level */>; /* Peripheral 2 (WDT) */ - }; - -Example 2: - - /* - * An SoC peripheral that is wired through the PDC. - */ - rtc0 { - // The interrupt controller that this device is wired to. - interrupt-parent = <&pdc>; - - // Interrupt source Peripheral 0 - interrupts = <0 /* Peripheral 0 (RTC) */ - 4> /* IRQ_TYPE_LEVEL_HIGH */ - }; - -Example 3: - - /* - * An interrupt generating device that is wired to a SysWake pin. - */ - touchscreen0 { - // The interrupt controller that this device is wired to. - interrupt-parent = <&pdc>; - - // Interrupt source SysWake 0 that is active-low level-sensitive - interrupts = <8 /* SysWake0 */ - 8 /* IRQ_TYPE_LEVEL_LOW */>; - }; +* ImgTec Powerdown Controller (PDC) Interrupt Controller Binding + +This binding specifies what properties must be available in the device tree +representation of a PDC IRQ controller. This has a number of input interrupt +lines which can wake the system, and are passed on through output interrupt +lines. + +Required properties: + + - compatible: Specifies the compatibility list for the interrupt controller. + The type shall be and the value shall include "img,pdc-intc". + + - reg: Specifies the base PDC physical address(s) and size(s) of the + addressable register space. The type shall be . + + - interrupt-controller: The presence of this property identifies the node + as an interrupt controller. No property value shall be defined. + + - #interrupt-cells: Specifies the number of cells needed to encode an + interrupt source. The type shall be a and the value shall be 2. + + - num-perips: Number of waking peripherals. + + - num-syswakes: Number of SysWake inputs. + + - interrupts: List of interrupt specifiers. The first specifier shall be the + shared SysWake interrupt, and remaining specifies shall be PDC peripheral + interrupts in order. + +* Interrupt Specifier Definition + + Interrupt specifiers consists of 2 cells encoded as follows: + + - <1st-cell>: The interrupt-number that identifies the interrupt source. + 0-7: Peripheral interrupts + 8-15: SysWake interrupts + + - <2nd-cell>: The level-sense information, encoded using the Linux interrupt + flags as follows (only 4 valid for peripheral interrupts): + 0 = none (decided by software) + 1 = low-to-high edge triggered + 2 = high-to-low edge triggered + 3 = both edge triggered + 4 = active-high level-sensitive (required for perip irqs) + 8 = active-low level-sensitive + +* Examples + +Example 1: + + /* + * TZ1090 PDC block + */ + pdc: pdc@02006000 { + // This is an interrupt controller node. + interrupt-controller; + + // Three cells to encode interrupt sources. + #interrupt-cells = <2>; + + // Offset address of 0x02006000 and size of 0x1000. + reg = <0x02006000 0x1000>; + + // Compatible with Meta hardware trigger block. + compatible = "img,pdc-intc"; + + // Three peripherals are connected. + num-perips = <3>; + + // Four SysWakes are connected. + num-syswakes = <4>; + + interrupts = <18 4 /* level */>, /* Syswakes */ + <30 4 /* level */>, /* Peripheral 0 (RTC) */ + <29 4 /* level */>, /* Peripheral 1 (IR) */ + <31 4 /* level */>; /* Peripheral 2 (WDT) */ + }; + +Example 2: + + /* + * An SoC peripheral that is wired through the PDC. + */ + rtc0 { + // The interrupt controller that this device is wired to. + interrupt-parent = <&pdc>; + + // Interrupt source Peripheral 0 + interrupts = <0 /* Peripheral 0 (RTC) */ + 4> /* IRQ_TYPE_LEVEL_HIGH */ + }; + +Example 3: + + /* + * An interrupt generating device that is wired to a SysWake pin. + */ + touchscreen0 { + // The interrupt controller that this device is wired to. + interrupt-parent = <&pdc>; + + // Interrupt source SysWake 0 that is active-low level-sensitive + interrupts = <8 /* SysWake0 */ + 8 /* IRQ_TYPE_LEVEL_LOW */>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/interrupts.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/interrupts.txt index 90d395264..4ebfa0008 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/interrupts.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/interrupts.txt @@ -1,122 +1,122 @@ -Specifying interrupt information for devices -============================================ - -1) Interrupt client nodes -------------------------- - -Nodes that describe devices which generate interrupts must contain an -"interrupts" property, an "interrupts-extended" property, or both. If both are -present, the latter should take precedence; the former may be provided simply -for compatibility with software that does not recognize the latter. These -properties contain a list of interrupt specifiers, one per output interrupt. The -format of the interrupt specifier is determined by the interrupt controller to -which the interrupts are routed; see section 2 below for details. - - Example: - interrupt-parent = <&intc1>; - interrupts = <5 0>, <6 0>; - -The "interrupt-parent" property is used to specify the controller to which -interrupts are routed and contains a single phandle referring to the interrupt -controller node. This property is inherited, so it may be specified in an -interrupt client node or in any of its parent nodes. Interrupts listed in the -"interrupts" property are always in reference to the node's interrupt parent. - -The "interrupts-extended" property is a special form; useful when a node needs -to reference multiple interrupt parents or a different interrupt parent than -the inherited one. Each entry in this property contains both the parent phandle -and the interrupt specifier. - - Example: - interrupts-extended = <&intc1 5 1>, <&intc2 1 0>; - -2) Interrupt controller nodes ------------------------------ - -A device is marked as an interrupt controller with the "interrupt-controller" -property. This is a empty, boolean property. An additional "#interrupt-cells" -property defines the number of cells needed to specify a single interrupt. - -It is the responsibility of the interrupt controller's binding to define the -length and format of the interrupt specifier. The following two variants are -commonly used: - - a) one cell - ----------- - The #interrupt-cells property is set to 1 and the single cell defines the - index of the interrupt within the controller. - - Example: - - vic: intc@10140000 { - compatible = "arm,versatile-vic"; - interrupt-controller; - #interrupt-cells = <1>; - reg = <0x10140000 0x1000>; - }; - - sic: intc@10003000 { - compatible = "arm,versatile-sic"; - interrupt-controller; - #interrupt-cells = <1>; - reg = <0x10003000 0x1000>; - interrupt-parent = <&vic>; - interrupts = <31>; /* Cascaded to vic */ - }; - - b) two cells - ------------ - The #interrupt-cells property is set to 2 and the first cell defines the - index of the interrupt within the controller, while the second cell is used - to specify any of the following flags: - - bits[3:0] trigger type and level flags - 1 = low-to-high edge triggered - 2 = high-to-low edge triggered - 4 = active high level-sensitive - 8 = active low level-sensitive - - Example: - - i2c@7000c000 { - gpioext: gpio-adnp@41 { - compatible = "ad,gpio-adnp"; - reg = <0x41>; - - interrupt-parent = <&gpio>; - interrupts = <160 1>; - - gpio-controller; - #gpio-cells = <1>; - - interrupt-controller; - #interrupt-cells = <2>; - - nr-gpios = <64>; - }; - - sx8634@2b { - compatible = "smtc,sx8634"; - reg = <0x2b>; - - interrupt-parent = <&gpioext>; - interrupts = <3 0x8>; - - #address-cells = <1>; - #size-cells = <0>; - - threshold = <0x40>; - sensitivity = <7>; - }; - }; - -3) Interrupt wakeup parent --------------------------- - -Some interrupt controllers in a SoC, are always powered on and have a select -interrupts routed to them, so that they can wakeup the SoC from suspend. These -interrupt controllers do not fall into the category of a parent interrupt -controller and can be specified by the "wakeup-parent" property and contain a -single phandle referring to the wakeup capable interrupt controller. - - Example: - wakeup-parent = <&pdc_intc>; +Specifying interrupt information for devices +============================================ + +1) Interrupt client nodes +------------------------- + +Nodes that describe devices which generate interrupts must contain an +"interrupts" property, an "interrupts-extended" property, or both. If both are +present, the latter should take precedence; the former may be provided simply +for compatibility with software that does not recognize the latter. These +properties contain a list of interrupt specifiers, one per output interrupt. The +format of the interrupt specifier is determined by the interrupt controller to +which the interrupts are routed; see section 2 below for details. + + Example: + interrupt-parent = <&intc1>; + interrupts = <5 0>, <6 0>; + +The "interrupt-parent" property is used to specify the controller to which +interrupts are routed and contains a single phandle referring to the interrupt +controller node. This property is inherited, so it may be specified in an +interrupt client node or in any of its parent nodes. Interrupts listed in the +"interrupts" property are always in reference to the node's interrupt parent. + +The "interrupts-extended" property is a special form; useful when a node needs +to reference multiple interrupt parents or a different interrupt parent than +the inherited one. Each entry in this property contains both the parent phandle +and the interrupt specifier. + + Example: + interrupts-extended = <&intc1 5 1>, <&intc2 1 0>; + +2) Interrupt controller nodes +----------------------------- + +A device is marked as an interrupt controller with the "interrupt-controller" +property. This is a empty, boolean property. An additional "#interrupt-cells" +property defines the number of cells needed to specify a single interrupt. + +It is the responsibility of the interrupt controller's binding to define the +length and format of the interrupt specifier. The following two variants are +commonly used: + + a) one cell + ----------- + The #interrupt-cells property is set to 1 and the single cell defines the + index of the interrupt within the controller. + + Example: + + vic: intc@10140000 { + compatible = "arm,versatile-vic"; + interrupt-controller; + #interrupt-cells = <1>; + reg = <0x10140000 0x1000>; + }; + + sic: intc@10003000 { + compatible = "arm,versatile-sic"; + interrupt-controller; + #interrupt-cells = <1>; + reg = <0x10003000 0x1000>; + interrupt-parent = <&vic>; + interrupts = <31>; /* Cascaded to vic */ + }; + + b) two cells + ------------ + The #interrupt-cells property is set to 2 and the first cell defines the + index of the interrupt within the controller, while the second cell is used + to specify any of the following flags: + - bits[3:0] trigger type and level flags + 1 = low-to-high edge triggered + 2 = high-to-low edge triggered + 4 = active high level-sensitive + 8 = active low level-sensitive + + Example: + + i2c@7000c000 { + gpioext: gpio-adnp@41 { + compatible = "ad,gpio-adnp"; + reg = <0x41>; + + interrupt-parent = <&gpio>; + interrupts = <160 1>; + + gpio-controller; + #gpio-cells = <1>; + + interrupt-controller; + #interrupt-cells = <2>; + + nr-gpios = <64>; + }; + + sx8634@2b { + compatible = "smtc,sx8634"; + reg = <0x2b>; + + interrupt-parent = <&gpioext>; + interrupts = <3 0x8>; + + #address-cells = <1>; + #size-cells = <0>; + + threshold = <0x40>; + sensitivity = <7>; + }; + }; + +3) Interrupt wakeup parent +-------------------------- + +Some interrupt controllers in a SoC, are always powered on and have a select +interrupts routed to them, so that they can wakeup the SoC from suspend. These +interrupt controllers do not fall into the category of a parent interrupt +controller and can be specified by the "wakeup-parent" property and contain a +single phandle referring to the wakeup capable interrupt controller. + + Example: + wakeup-parent = <&pdc_intc>; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/msi.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/msi.txt index a181a4c20..c20b51df7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/msi.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/msi.txt @@ -1,135 +1,135 @@ -This document describes the generic device tree binding for MSI controllers and -their master(s). - -Message Signaled Interrupts (MSIs) are a class of interrupts generated by a -write to an MMIO address. - -MSIs were originally specified by PCI (and are used with PCIe), but may also be -used with other busses, and hence a mechanism is required to relate devices on -those busses to the MSI controllers which they are capable of using, -potentially including additional information. - -MSIs are distinguished by some combination of: - -- The doorbell (the MMIO address written to). - - Devices may be configured by software to write to arbitrary doorbells which - they can address. An MSI controller may feature a number of doorbells. - -- The payload (the value written to the doorbell). - - Devices may be configured to write an arbitrary payload chosen by software. - MSI controllers may have restrictions on permitted payloads. - -- Sideband information accompanying the write. - - Typically this is neither configurable nor probeable, and depends on the path - taken through the memory system (i.e. it is a property of the combination of - MSI controller and device rather than a property of either in isolation). - - -MSI controllers: -================ - -An MSI controller signals interrupts to a CPU when a write is made to an MMIO -address by some master. An MSI controller may feature a number of doorbells. - -Required properties: --------------------- - -- msi-controller: Identifies the node as an MSI controller. - -Optional properties: --------------------- - -- #msi-cells: The number of cells in an msi-specifier, required if not zero. - - Typically this will encode information related to sideband data, and will - not encode doorbells or payloads as these can be configured dynamically. - - The meaning of the msi-specifier is defined by the device tree binding of - the specific MSI controller. - - -MSI clients -=========== - -MSI clients are devices which generate MSIs. For each MSI they wish to -generate, the doorbell and payload may be configured, though sideband -information may not be configurable. - -Required properties: --------------------- - -- msi-parent: A list of phandle + msi-specifier pairs, one for each MSI - controller which the device is capable of using. - - This property is unordered, and MSIs may be allocated from any combination of - MSI controllers listed in the msi-parent property. - - If a device has restrictions on the allocation of MSIs, these restrictions - must be described with additional properties. - - When #msi-cells is non-zero, busses with an msi-parent will require - additional properties to describe the relationship between devices on the bus - and the set of MSIs they can potentially generate. - - -Example -======= - -/ { - #address-cells = <1>; - #size-cells = <1>; - - msi_a: msi-controller@a { - reg = <0xa 0xf00>; - compatible = "vendor-a,some-controller"; - msi-controller; - /* No sideband data, so #msi-cells omitted */ - }; - - msi_b: msi-controller@b { - reg = <0xb 0xf00>; - compatible = "vendor-b,another-controller"; - msi-controller; - /* Each device has some unique ID */ - #msi-cells = <1>; - }; - - msi_c: msi-controller@c { - reg = <0xc 0xf00>; - compatible = "vendor-b,another-controller"; - msi-controller; - /* Each device has some unique ID */ - #msi-cells = <1>; - }; - - dev@0 { - reg = <0x0 0xf00>; - compatible = "vendor-c,some-device"; - - /* Can only generate MSIs to msi_a */ - msi-parent = <&msi_a>; - }; - - dev@1 { - reg = <0x1 0xf00>; - compatible = "vendor-c,some-device"; - - /* - * Can generate MSIs to either A or B. - */ - msi-parent = <&msi_a>, <&msi_b 0x17>; - }; - - dev@2 { - reg = <0x2 0xf00>; - compatible = "vendor-c,some-device"; - /* - * Has different IDs at each MSI controller. - * Can generate MSIs to all of the MSI controllers. - */ - msi-parent = <&msi_a>, <&msi_b 0x17>, <&msi_c 0x53>; - }; -}; +This document describes the generic device tree binding for MSI controllers and +their master(s). + +Message Signaled Interrupts (MSIs) are a class of interrupts generated by a +write to an MMIO address. + +MSIs were originally specified by PCI (and are used with PCIe), but may also be +used with other busses, and hence a mechanism is required to relate devices on +those busses to the MSI controllers which they are capable of using, +potentially including additional information. + +MSIs are distinguished by some combination of: + +- The doorbell (the MMIO address written to). + + Devices may be configured by software to write to arbitrary doorbells which + they can address. An MSI controller may feature a number of doorbells. + +- The payload (the value written to the doorbell). + + Devices may be configured to write an arbitrary payload chosen by software. + MSI controllers may have restrictions on permitted payloads. + +- Sideband information accompanying the write. + + Typically this is neither configurable nor probeable, and depends on the path + taken through the memory system (i.e. it is a property of the combination of + MSI controller and device rather than a property of either in isolation). + + +MSI controllers: +================ + +An MSI controller signals interrupts to a CPU when a write is made to an MMIO +address by some master. An MSI controller may feature a number of doorbells. + +Required properties: +-------------------- + +- msi-controller: Identifies the node as an MSI controller. + +Optional properties: +-------------------- + +- #msi-cells: The number of cells in an msi-specifier, required if not zero. + + Typically this will encode information related to sideband data, and will + not encode doorbells or payloads as these can be configured dynamically. + + The meaning of the msi-specifier is defined by the device tree binding of + the specific MSI controller. + + +MSI clients +=========== + +MSI clients are devices which generate MSIs. For each MSI they wish to +generate, the doorbell and payload may be configured, though sideband +information may not be configurable. + +Required properties: +-------------------- + +- msi-parent: A list of phandle + msi-specifier pairs, one for each MSI + controller which the device is capable of using. + + This property is unordered, and MSIs may be allocated from any combination of + MSI controllers listed in the msi-parent property. + + If a device has restrictions on the allocation of MSIs, these restrictions + must be described with additional properties. + + When #msi-cells is non-zero, busses with an msi-parent will require + additional properties to describe the relationship between devices on the bus + and the set of MSIs they can potentially generate. + + +Example +======= + +/ { + #address-cells = <1>; + #size-cells = <1>; + + msi_a: msi-controller@a { + reg = <0xa 0xf00>; + compatible = "vendor-a,some-controller"; + msi-controller; + /* No sideband data, so #msi-cells omitted */ + }; + + msi_b: msi-controller@b { + reg = <0xb 0xf00>; + compatible = "vendor-b,another-controller"; + msi-controller; + /* Each device has some unique ID */ + #msi-cells = <1>; + }; + + msi_c: msi-controller@c { + reg = <0xc 0xf00>; + compatible = "vendor-b,another-controller"; + msi-controller; + /* Each device has some unique ID */ + #msi-cells = <1>; + }; + + dev@0 { + reg = <0x0 0xf00>; + compatible = "vendor-c,some-device"; + + /* Can only generate MSIs to msi_a */ + msi-parent = <&msi_a>; + }; + + dev@1 { + reg = <0x1 0xf00>; + compatible = "vendor-c,some-device"; + + /* + * Can generate MSIs to either A or B. + */ + msi-parent = <&msi_a>, <&msi_b 0x17>; + }; + + dev@2 { + reg = <0x2 0xf00>; + compatible = "vendor-c,some-device"; + /* + * Has different IDs at each MSI controller. + * Can generate MSIs to all of the MSI controllers. + */ + msi-parent = <&msi_a>, <&msi_b 0x17>, <&msi_c 0x53>; + }; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/mti,gic.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/mti,gic.yaml index 345e73edf..91bb3c230 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/mti,gic.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/mti,gic.yaml @@ -1,146 +1,146 @@ -# SPDX-License-Identifier: GPL-2.0-only -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/interrupt-controller/mti,gic.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MIPS Global Interrupt Controller - -maintainers: - - Paul Burton - - Thomas Bogendoerfer - -description: | - The MIPS GIC routes external interrupts to individual VPEs and IRQ pins. - It also supports local (per-processor) interrupts and software-generated - interrupts which can be used as IPIs. The GIC also includes a free-running - global timer, per-CPU count/compare timers, and a watchdog. - -properties: - compatible: - const: mti,gic - - "#interrupt-cells": - const: 3 - description: | - The 1st cell is the type of interrupt: local or shared defined in the - file 'dt-bindings/interrupt-controller/mips-gic.h'. The 2nd cell is the - GIC interrupt number. The 3d cell encodes the interrupt flags setting up - the IRQ trigger modes, which are defined in the file - 'dt-bindings/interrupt-controller/irq.h'. - - reg: - description: | - Base address and length of the GIC registers space. If not present, - the base address reported by the hardware GCR_GIC_BASE will be used. - maxItems: 1 - - interrupt-controller: true - - mti,reserved-cpu-vectors: - description: | - Specifies the list of CPU interrupt vectors to which the GIC may not - route interrupts. This property is ignored if the CPU is started in EIC - mode. - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 6 - uniqueItems: true - items: - minimum: 2 - maximum: 7 - - mti,reserved-ipi-vectors: - description: | - Specifies the range of GIC interrupts that are reserved for IPIs. - It accepts two values: the 1st is the starting interrupt and the 2nd is - the size of the reserved range. If not specified, the driver will - allocate the last (2 * number of VPEs in the system). - $ref: /schemas/types.yaml#/definitions/uint32-array - items: - - minimum: 0 - maximum: 254 - - minimum: 2 - maximum: 254 - - timer: - type: object - description: | - MIPS GIC includes a free-running global timer, per-CPU count/compare - timers, and a watchdog. Currently only the GIC Timer is supported. - properties: - compatible: - const: mti,gic-timer - - interrupts: - description: | - Interrupt for the GIC local timer, so normally it's suppose to be of - format. - maxItems: 1 - - clocks: - maxItems: 1 - - clock-frequency: true - - required: - - compatible - - interrupts - - oneOf: - - required: - - clocks - - required: - - clock-frequency - - additionalProperties: false - -additionalProperties: false - -required: - - compatible - - "#interrupt-cells" - - interrupt-controller - -examples: - - | - #include - #include - - interrupt-controller@1bdc0000 { - compatible = "mti,gic"; - reg = <0x1bdc0000 0x20000>; - interrupt-controller; - #interrupt-cells = <3>; - mti,reserved-cpu-vectors = <7>; - mti,reserved-ipi-vectors = <40 8>; - - timer { - compatible = "mti,gic-timer"; - interrupts = ; - clock-frequency = <50000000>; - }; - }; - - | - #include - #include - - interrupt-controller@1bdc0000 { - compatible = "mti,gic"; - reg = <0x1bdc0000 0x20000>; - interrupt-controller; - #interrupt-cells = <3>; - - timer { - compatible = "mti,gic-timer"; - interrupts = ; - clocks = <&cpu_pll>; - }; - }; - - | - interrupt-controller { - compatible = "mti,gic"; - interrupt-controller; - #interrupt-cells = <3>; - }; -... +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/mti,gic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MIPS Global Interrupt Controller + +maintainers: + - Paul Burton + - Thomas Bogendoerfer + +description: | + The MIPS GIC routes external interrupts to individual VPEs and IRQ pins. + It also supports local (per-processor) interrupts and software-generated + interrupts which can be used as IPIs. The GIC also includes a free-running + global timer, per-CPU count/compare timers, and a watchdog. + +properties: + compatible: + const: mti,gic + + "#interrupt-cells": + const: 3 + description: | + The 1st cell is the type of interrupt: local or shared defined in the + file 'dt-bindings/interrupt-controller/mips-gic.h'. The 2nd cell is the + GIC interrupt number. The 3d cell encodes the interrupt flags setting up + the IRQ trigger modes, which are defined in the file + 'dt-bindings/interrupt-controller/irq.h'. + + reg: + description: | + Base address and length of the GIC registers space. If not present, + the base address reported by the hardware GCR_GIC_BASE will be used. + maxItems: 1 + + interrupt-controller: true + + mti,reserved-cpu-vectors: + description: | + Specifies the list of CPU interrupt vectors to which the GIC may not + route interrupts. This property is ignored if the CPU is started in EIC + mode. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 6 + uniqueItems: true + items: + minimum: 2 + maximum: 7 + + mti,reserved-ipi-vectors: + description: | + Specifies the range of GIC interrupts that are reserved for IPIs. + It accepts two values: the 1st is the starting interrupt and the 2nd is + the size of the reserved range. If not specified, the driver will + allocate the last (2 * number of VPEs in the system). + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + - minimum: 0 + maximum: 254 + - minimum: 2 + maximum: 254 + + timer: + type: object + description: | + MIPS GIC includes a free-running global timer, per-CPU count/compare + timers, and a watchdog. Currently only the GIC Timer is supported. + properties: + compatible: + const: mti,gic-timer + + interrupts: + description: | + Interrupt for the GIC local timer, so normally it's suppose to be of + format. + maxItems: 1 + + clocks: + maxItems: 1 + + clock-frequency: true + + required: + - compatible + - interrupts + + oneOf: + - required: + - clocks + - required: + - clock-frequency + + additionalProperties: false + +additionalProperties: false + +required: + - compatible + - "#interrupt-cells" + - interrupt-controller + +examples: + - | + #include + #include + + interrupt-controller@1bdc0000 { + compatible = "mti,gic"; + reg = <0x1bdc0000 0x20000>; + interrupt-controller; + #interrupt-cells = <3>; + mti,reserved-cpu-vectors = <7>; + mti,reserved-ipi-vectors = <40 8>; + + timer { + compatible = "mti,gic-timer"; + interrupts = ; + clock-frequency = <50000000>; + }; + }; + - | + #include + #include + + interrupt-controller@1bdc0000 { + compatible = "mti,gic"; + reg = <0x1bdc0000 0x20000>; + interrupt-controller; + #interrupt-cells = <3>; + + timer { + compatible = "mti,gic-timer"; + interrupts = ; + clocks = <&cpu_pll>; + }; + }; + - | + interrupt-controller { + compatible = "mti,gic"; + interrupt-controller; + #interrupt-cells = <3>; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/ti,sci-inta.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/ti,sci-inta.yaml index d545b2846..6a49d74b9 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/ti,sci-inta.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/ti,sci-inta.yaml @@ -1,118 +1,118 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/interrupt-controller/ti,sci-inta.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Texas Instruments K3 Interrupt Aggregator - -maintainers: - - Lokesh Vutla - -allOf: - - $ref: /schemas/arm/keystone/ti,k3-sci-common.yaml# - -description: | - The Interrupt Aggregator (INTA) provides a centralized machine - which handles the termination of system events to that they can - be coherently processed by the host(s) in the system. A maximum - of 64 events can be mapped to a single interrupt. - - Interrupt Aggregator - +-----------------------------------------+ - | Intmap VINT | - | +--------------+ +------------+ | - m ------>| | vint | bit | | 0 |.....|63| vint0 | - . | +--------------+ +------------+ | +------+ - . | . . | | HOST | - Globalevents ------>| . . |----->| IRQ | - . | . . | | CTRL | - . | . . | +------+ - n ------>| +--------------+ +------------+ | - | | vint | bit | | 0 |.....|63| vintx | - | +--------------+ +------------+ | - | | - | Unmap | - | +--------------+ | - Unmapped events ---->| | umapidx |-------------------------> Globalevents - | +--------------+ | - | | - +-----------------------------------------+ - - Configuration of these Intmap registers that maps global events to vint is - done by a system controller (like the Device Memory and Security Controller - on AM654 SoC). Driver should request the system controller to get the range - of global events and vints assigned to the requesting host. Management - of these requested resources should be handled by driver and requests - system controller to map specific global event to vint, bit pair. - - Communication between the host processor running an OS and the system - controller happens through a protocol called TI System Control Interface - (TISCI protocol). - -properties: - compatible: - const: ti,sci-inta - - reg: - maxItems: 1 - - interrupt-controller: true - - '#interrupt-cells': - const: 0 - - msi-controller: true - - ti,interrupt-ranges: - $ref: /schemas/types.yaml#/definitions/uint32-matrix - description: | - Interrupt ranges that converts the INTA output hw irq numbers - to parents's input interrupt numbers. - items: - items: - - description: | - "output_irq" specifies the base for inta output irq - - description: | - "parent's input irq" specifies the base for parent irq - - description: | - "limit" specifies the limit for translation - - ti,unmapped-event-sources: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - maxItems: 1 - description: - Array of phandles to DMA controllers where the unmapped events originate. - - power-domains: - maxItems: 1 - -required: - - compatible - - reg - - interrupt-controller - - msi-controller - - ti,sci - - ti,sci-dev-id - - ti,interrupt-ranges - -unevaluatedProperties: false - -examples: - - | - bus { - #address-cells = <2>; - #size-cells = <2>; - - main_udmass_inta: msi-controller@33d00000 { - compatible = "ti,sci-inta"; - reg = <0x0 0x33d00000 0x0 0x100000>; - interrupt-controller; - msi-controller; - interrupt-parent = <&main_navss_intr>; - ti,sci = <&dmsc>; - ti,sci-dev-id = <179>; - ti,interrupt-ranges = <0 0 256>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/ti,sci-inta.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments K3 Interrupt Aggregator + +maintainers: + - Lokesh Vutla + +allOf: + - $ref: /schemas/arm/keystone/ti,k3-sci-common.yaml# + +description: | + The Interrupt Aggregator (INTA) provides a centralized machine + which handles the termination of system events to that they can + be coherently processed by the host(s) in the system. A maximum + of 64 events can be mapped to a single interrupt. + + Interrupt Aggregator + +-----------------------------------------+ + | Intmap VINT | + | +--------------+ +------------+ | + m ------>| | vint | bit | | 0 |.....|63| vint0 | + . | +--------------+ +------------+ | +------+ + . | . . | | HOST | + Globalevents ------>| . . |----->| IRQ | + . | . . | | CTRL | + . | . . | +------+ + n ------>| +--------------+ +------------+ | + | | vint | bit | | 0 |.....|63| vintx | + | +--------------+ +------------+ | + | | + | Unmap | + | +--------------+ | + Unmapped events ---->| | umapidx |-------------------------> Globalevents + | +--------------+ | + | | + +-----------------------------------------+ + + Configuration of these Intmap registers that maps global events to vint is + done by a system controller (like the Device Memory and Security Controller + on AM654 SoC). Driver should request the system controller to get the range + of global events and vints assigned to the requesting host. Management + of these requested resources should be handled by driver and requests + system controller to map specific global event to vint, bit pair. + + Communication between the host processor running an OS and the system + controller happens through a protocol called TI System Control Interface + (TISCI protocol). + +properties: + compatible: + const: ti,sci-inta + + reg: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 0 + + msi-controller: true + + ti,interrupt-ranges: + $ref: /schemas/types.yaml#/definitions/uint32-matrix + description: | + Interrupt ranges that converts the INTA output hw irq numbers + to parents's input interrupt numbers. + items: + items: + - description: | + "output_irq" specifies the base for inta output irq + - description: | + "parent's input irq" specifies the base for parent irq + - description: | + "limit" specifies the limit for translation + + ti,unmapped-event-sources: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + maxItems: 1 + description: + Array of phandles to DMA controllers where the unmapped events originate. + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - interrupt-controller + - msi-controller + - ti,sci + - ti,sci-dev-id + - ti,interrupt-ranges + +unevaluatedProperties: false + +examples: + - | + bus { + #address-cells = <2>; + #size-cells = <2>; + + main_udmass_inta: msi-controller@33d00000 { + compatible = "ti,sci-inta"; + reg = <0x0 0x33d00000 0x0 0x100000>; + interrupt-controller; + msi-controller; + interrupt-parent = <&main_navss_intr>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <179>; + ti,interrupt-ranges = <0 0 256>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/ti,sci-intr.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/ti,sci-intr.yaml index f0fa64a69..c99cc7323 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/ti,sci-intr.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/interrupt-controller/ti,sci-intr.yaml @@ -1,107 +1,107 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/interrupt-controller/ti,sci-intr.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Texas Instruments K3 Interrupt Router - -maintainers: - - Lokesh Vutla - -allOf: - - $ref: /schemas/arm/keystone/ti,k3-sci-common.yaml# - -description: | - The Interrupt Router (INTR) module provides a mechanism to mux M - interrupt inputs to N interrupt outputs, where all M inputs are selectable - to be driven per N output. An Interrupt Router can either handle edge - triggered or level triggered interrupts and that is fixed in hardware. - - Interrupt Router - +----------------------+ - | Inputs Outputs | - +-------+ | +------+ +-----+ | - | GPIO |----------->| | irq0 | | 0 | | Host IRQ - +-------+ | +------+ +-----+ | controller - | . . | +-------+ - +-------+ | . . |----->| IRQ | - | INTA |----------->| . . | +-------+ - +-------+ | . +-----+ | - | +------+ | N | | - | | irqM | +-----+ | - | +------+ | - | | - +----------------------+ - - There is one register per output (MUXCNTL_N) that controls the selection. - Configuration of these MUXCNTL_N registers is done by a system controller - (like the Device Memory and Security Controller on K3 AM654 SoC). System - controller will keep track of the used and unused registers within the Router. - Driver should request the system controller to get the range of GIC IRQs - assigned to the requesting hosts. It is the drivers responsibility to keep - track of Host IRQs. - - Communication between the host processor running an OS and the system - controller happens through a protocol called TI System Control Interface - (TISCI protocol). - -properties: - compatible: - const: ti,sci-intr - - ti,intr-trigger-type: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [1, 4] - description: | - Should be one of the following. - 1 = If intr supports edge triggered interrupts. - 4 = If intr supports level triggered interrupts. - - reg: - maxItems: 1 - - interrupt-controller: true - - '#interrupt-cells': - const: 1 - description: | - The 1st cell should contain interrupt router input hw number. - - ti,interrupt-ranges: - $ref: /schemas/types.yaml#/definitions/uint32-matrix - description: | - Interrupt ranges that converts the INTR output hw irq numbers - to parents's input interrupt numbers. - items: - items: - - description: | - "output_irq" specifies the base for intr output irq - - description: | - "parent's input irq" specifies the base for parent irq - - description: | - "limit" specifies the limit for translation - -required: - - compatible - - ti,intr-trigger-type - - interrupt-controller - - '#interrupt-cells' - - ti,sci - - ti,sci-dev-id - - ti,interrupt-ranges - -unevaluatedProperties: false - -examples: - - | - main_gpio_intr: interrupt-controller0 { - compatible = "ti,sci-intr"; - ti,intr-trigger-type = <1>; - interrupt-controller; - interrupt-parent = <&gic500>; - #interrupt-cells = <1>; - ti,sci = <&dmsc>; - ti,sci-dev-id = <131>; - ti,interrupt-ranges = <0 360 32>; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/ti,sci-intr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments K3 Interrupt Router + +maintainers: + - Lokesh Vutla + +allOf: + - $ref: /schemas/arm/keystone/ti,k3-sci-common.yaml# + +description: | + The Interrupt Router (INTR) module provides a mechanism to mux M + interrupt inputs to N interrupt outputs, where all M inputs are selectable + to be driven per N output. An Interrupt Router can either handle edge + triggered or level triggered interrupts and that is fixed in hardware. + + Interrupt Router + +----------------------+ + | Inputs Outputs | + +-------+ | +------+ +-----+ | + | GPIO |----------->| | irq0 | | 0 | | Host IRQ + +-------+ | +------+ +-----+ | controller + | . . | +-------+ + +-------+ | . . |----->| IRQ | + | INTA |----------->| . . | +-------+ + +-------+ | . +-----+ | + | +------+ | N | | + | | irqM | +-----+ | + | +------+ | + | | + +----------------------+ + + There is one register per output (MUXCNTL_N) that controls the selection. + Configuration of these MUXCNTL_N registers is done by a system controller + (like the Device Memory and Security Controller on K3 AM654 SoC). System + controller will keep track of the used and unused registers within the Router. + Driver should request the system controller to get the range of GIC IRQs + assigned to the requesting hosts. It is the drivers responsibility to keep + track of Host IRQs. + + Communication between the host processor running an OS and the system + controller happens through a protocol called TI System Control Interface + (TISCI protocol). + +properties: + compatible: + const: ti,sci-intr + + ti,intr-trigger-type: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 4] + description: | + Should be one of the following. + 1 = If intr supports edge triggered interrupts. + 4 = If intr supports level triggered interrupts. + + reg: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 1 + description: | + The 1st cell should contain interrupt router input hw number. + + ti,interrupt-ranges: + $ref: /schemas/types.yaml#/definitions/uint32-matrix + description: | + Interrupt ranges that converts the INTR output hw irq numbers + to parents's input interrupt numbers. + items: + items: + - description: | + "output_irq" specifies the base for intr output irq + - description: | + "parent's input irq" specifies the base for parent irq + - description: | + "limit" specifies the limit for translation + +required: + - compatible + - ti,intr-trigger-type + - interrupt-controller + - '#interrupt-cells' + - ti,sci + - ti,sci-dev-id + - ti,interrupt-ranges + +unevaluatedProperties: false + +examples: + - | + main_gpio_intr: interrupt-controller0 { + compatible = "ti,sci-intr"; + ti,intr-trigger-type = <1>; + interrupt-controller; + interrupt-parent = <&gic500>; + #interrupt-cells = <1>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <131>; + ti,interrupt-ranges = <0 360 32>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml index 4bdbf7d79..0acaa2bce 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml @@ -1,141 +1,141 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iommu/renesas,ipmmu-vmsa.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas VMSA-Compatible IOMMU - -maintainers: - - Yoshihiro Shimoda - -description: - The IPMMU is an IOMMU implementation compatible with the ARM VMSA page tables. - It provides address translation for bus masters outside of the CPU, each - connected to the IPMMU through a port called micro-TLB. - -properties: - compatible: - oneOf: - - items: - - enum: - - renesas,ipmmu-r8a73a4 # R-Mobile APE6 - - renesas,ipmmu-r8a7742 # RZ/G1H - - renesas,ipmmu-r8a7743 # RZ/G1M - - renesas,ipmmu-r8a7744 # RZ/G1N - - renesas,ipmmu-r8a7745 # RZ/G1E - - renesas,ipmmu-r8a7790 # R-Car H2 - - renesas,ipmmu-r8a7791 # R-Car M2-W - - renesas,ipmmu-r8a7793 # R-Car M2-N - - renesas,ipmmu-r8a7794 # R-Car E2 - - const: renesas,ipmmu-vmsa # R-Mobile APE6 or R-Car Gen2 or RZ/G1 - - - items: - - enum: - - renesas,ipmmu-r8a774a1 # RZ/G2M - - renesas,ipmmu-r8a774b1 # RZ/G2N - - renesas,ipmmu-r8a774c0 # RZ/G2E - - renesas,ipmmu-r8a774e1 # RZ/G2H - - renesas,ipmmu-r8a7795 # R-Car H3 - - renesas,ipmmu-r8a7796 # R-Car M3-W - - renesas,ipmmu-r8a77961 # R-Car M3-W+ - - renesas,ipmmu-r8a77965 # R-Car M3-N - - renesas,ipmmu-r8a77970 # R-Car V3M - - renesas,ipmmu-r8a77980 # R-Car V3H - - renesas,ipmmu-r8a77990 # R-Car E3 - - renesas,ipmmu-r8a77995 # R-Car D3 - - - items: - - enum: - - renesas,ipmmu-r8a779a0 # R-Car V3U - - renesas,ipmmu-r8a779f0 # R-Car S4-8 - - renesas,ipmmu-r8a779g0 # R-Car V4H - - renesas,ipmmu-r8a779h0 # R-Car V4M - - const: renesas,rcar-gen4-ipmmu-vmsa # R-Car Gen4 - - reg: - maxItems: 1 - - interrupts: - minItems: 1 - description: - Specifiers for the MMU fault interrupts. Not required for cache IPMMUs. - items: - - description: non-secure mode - - description: secure mode if supported - - '#iommu-cells': - const: 1 - description: - The number of the micro-TLB that the device is connected to. - - power-domains: - maxItems: 1 - - renesas,ipmmu-main: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - - minItems: 1 - items: - - description: phandle to main IPMMU - - description: - The interrupt bit number associated with the particular cache - IPMMU device. If present, the interrupt bit number needs to match - the main IPMMU IMSSTR register. Only used by cache IPMMU - instances. - description: - Reference to the main IPMMU. - -required: - - compatible - - reg - - '#iommu-cells' - -oneOf: - - required: - - interrupts - - required: - - renesas,ipmmu-main - -additionalProperties: false - -allOf: - - if: - properties: - compatible: - not: - contains: - const: renesas,ipmmu-vmsa - then: - required: - - power-domains - - - if: - properties: - compatible: - contains: - const: renesas,rcar-gen4-ipmmu-vmsa - then: - properties: - renesas,ipmmu-main: - items: - - maxItems: 1 - else: - properties: - renesas,ipmmu-main: - items: - - minItems: 2 - -examples: - - | - #include - #include - #include - - ipmmu_mx: iommu@fe951000 { - compatible = "renesas,ipmmu-r8a7791", "renesas,ipmmu-vmsa"; - reg = <0xfe951000 0x1000>; - interrupts = , - ; - #iommu-cells = <1>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iommu/renesas,ipmmu-vmsa.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas VMSA-Compatible IOMMU + +maintainers: + - Yoshihiro Shimoda + +description: + The IPMMU is an IOMMU implementation compatible with the ARM VMSA page tables. + It provides address translation for bus masters outside of the CPU, each + connected to the IPMMU through a port called micro-TLB. + +properties: + compatible: + oneOf: + - items: + - enum: + - renesas,ipmmu-r8a73a4 # R-Mobile APE6 + - renesas,ipmmu-r8a7742 # RZ/G1H + - renesas,ipmmu-r8a7743 # RZ/G1M + - renesas,ipmmu-r8a7744 # RZ/G1N + - renesas,ipmmu-r8a7745 # RZ/G1E + - renesas,ipmmu-r8a7790 # R-Car H2 + - renesas,ipmmu-r8a7791 # R-Car M2-W + - renesas,ipmmu-r8a7793 # R-Car M2-N + - renesas,ipmmu-r8a7794 # R-Car E2 + - const: renesas,ipmmu-vmsa # R-Mobile APE6 or R-Car Gen2 or RZ/G1 + + - items: + - enum: + - renesas,ipmmu-r8a774a1 # RZ/G2M + - renesas,ipmmu-r8a774b1 # RZ/G2N + - renesas,ipmmu-r8a774c0 # RZ/G2E + - renesas,ipmmu-r8a774e1 # RZ/G2H + - renesas,ipmmu-r8a7795 # R-Car H3 + - renesas,ipmmu-r8a7796 # R-Car M3-W + - renesas,ipmmu-r8a77961 # R-Car M3-W+ + - renesas,ipmmu-r8a77965 # R-Car M3-N + - renesas,ipmmu-r8a77970 # R-Car V3M + - renesas,ipmmu-r8a77980 # R-Car V3H + - renesas,ipmmu-r8a77990 # R-Car E3 + - renesas,ipmmu-r8a77995 # R-Car D3 + + - items: + - enum: + - renesas,ipmmu-r8a779a0 # R-Car V3U + - renesas,ipmmu-r8a779f0 # R-Car S4-8 + - renesas,ipmmu-r8a779g0 # R-Car V4H + - renesas,ipmmu-r8a779h0 # R-Car V4M + - const: renesas,rcar-gen4-ipmmu-vmsa # R-Car Gen4 + + reg: + maxItems: 1 + + interrupts: + minItems: 1 + description: + Specifiers for the MMU fault interrupts. Not required for cache IPMMUs. + items: + - description: non-secure mode + - description: secure mode if supported + + '#iommu-cells': + const: 1 + description: + The number of the micro-TLB that the device is connected to. + + power-domains: + maxItems: 1 + + renesas,ipmmu-main: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - minItems: 1 + items: + - description: phandle to main IPMMU + - description: + The interrupt bit number associated with the particular cache + IPMMU device. If present, the interrupt bit number needs to match + the main IPMMU IMSSTR register. Only used by cache IPMMU + instances. + description: + Reference to the main IPMMU. + +required: + - compatible + - reg + - '#iommu-cells' + +oneOf: + - required: + - interrupts + - required: + - renesas,ipmmu-main + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + not: + contains: + const: renesas,ipmmu-vmsa + then: + required: + - power-domains + + - if: + properties: + compatible: + contains: + const: renesas,rcar-gen4-ipmmu-vmsa + then: + properties: + renesas,ipmmu-main: + items: + - maxItems: 1 + else: + properties: + renesas,ipmmu-main: + items: + - minItems: 2 + +examples: + - | + #include + #include + #include + + ipmmu_mx: iommu@fe951000 { + compatible = "renesas,ipmmu-r8a7791", "renesas,ipmmu-vmsa"; + reg = <0xfe951000 0x1000>; + interrupts = , + ; + #iommu-cells = <1>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml index c355bf3fd..17e971903 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml @@ -1,173 +1,173 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/leds/awinic,aw200xx.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: AWINIC AW200XX LED - -maintainers: - - Martin Kurbanov - -description: | - It is a matrix LED driver programmed via an I2C interface. Devices have - a set of individually controlled leds and support 3 pattern controllers - for auto breathing or group dimming control. Supported devices: - - AW20036 (3x12) 36 LEDs - - AW20054 (6x9) 54 LEDs - - AW20072 (6x12) 72 LEDs - - AW20108 (9x12) 108 LEDs - - For more product information please see the link below: - aw20036 - https://www.awinic.com/en/productDetail/AW20036QNR#tech-docs - aw20054 - https://www.awinic.com/en/productDetail/AW20054QNR#tech-docs - aw20072 - https://www.awinic.com/en/productDetail/AW20072QNR#tech-docs - aw20108 - https://www.awinic.com/en/productDetail/AW20108QNR#tech-docs - -properties: - compatible: - enum: - - awinic,aw20036 - - awinic,aw20054 - - awinic,aw20072 - - awinic,aw20108 - - reg: - maxItems: 1 - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - - enable-gpios: - maxItems: 1 - -patternProperties: - "^led@[0-9a-f]+$": - type: object - $ref: common.yaml# - unevaluatedProperties: false - - properties: - reg: - description: - LED number - maxItems: 1 - - led-max-microamp: - default: 9780 - description: | - Note that a driver will take the minimum of all LED limits - since the chip has a single global setting. - The maximum output current of each LED is calculated by the - following formula: - IMAXled = 160000 * (592 / 600.5) * (1 / max-current-switch-number) - And the minimum output current formula: - IMINled = 3300 * (592 / 600.5) * (1 / max-current-switch-number) - where max-current-switch-number is determined by led configuration - and depends on how leds are physically connected to the led driver. - -allOf: - - if: - properties: - compatible: - contains: - const: awinic,aw20036 - then: - patternProperties: - "^led@[0-9a-f]+$": - properties: - reg: - items: - minimum: 0 - maximum: 36 - - - if: - properties: - compatible: - contains: - const: awinic,aw20054 - then: - patternProperties: - "^led@[0-9a-f]+$": - properties: - reg: - items: - minimum: 0 - maximum: 54 - - - if: - properties: - compatible: - contains: - const: awinic,aw20072 - then: - patternProperties: - "^led@[0-9a-f]+$": - properties: - reg: - items: - minimum: 0 - maximum: 72 - - - if: - properties: - compatible: - contains: - const: awinic,aw20108 - then: - patternProperties: - "^led@[0-9a-f]+$": - properties: - reg: - items: - minimum: 0 - maximum: 108 - -required: - - compatible - - reg - - "#address-cells" - - "#size-cells" - -additionalProperties: false - -examples: - - | - #include - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - led-controller@3a { - compatible = "awinic,aw20036"; - reg = <0x3a>; - #address-cells = <1>; - #size-cells = <0>; - enable-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>; - - led@0 { - reg = <0x0>; - color = ; - led-max-microamp = <9780>; - }; - - led@1 { - reg = <0x1>; - color = ; - led-max-microamp = <9780>; - }; - - led@2 { - reg = <0x2>; - color = ; - led-max-microamp = <9780>; - }; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/awinic,aw200xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AWINIC AW200XX LED + +maintainers: + - Martin Kurbanov + +description: | + It is a matrix LED driver programmed via an I2C interface. Devices have + a set of individually controlled leds and support 3 pattern controllers + for auto breathing or group dimming control. Supported devices: + - AW20036 (3x12) 36 LEDs + - AW20054 (6x9) 54 LEDs + - AW20072 (6x12) 72 LEDs + - AW20108 (9x12) 108 LEDs + + For more product information please see the link below: + aw20036 - https://www.awinic.com/en/productDetail/AW20036QNR#tech-docs + aw20054 - https://www.awinic.com/en/productDetail/AW20054QNR#tech-docs + aw20072 - https://www.awinic.com/en/productDetail/AW20072QNR#tech-docs + aw20108 - https://www.awinic.com/en/productDetail/AW20108QNR#tech-docs + +properties: + compatible: + enum: + - awinic,aw20036 + - awinic,aw20054 + - awinic,aw20072 + - awinic,aw20108 + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + enable-gpios: + maxItems: 1 + +patternProperties: + "^led@[0-9a-f]+$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + description: + LED number + maxItems: 1 + + led-max-microamp: + default: 9780 + description: | + Note that a driver will take the minimum of all LED limits + since the chip has a single global setting. + The maximum output current of each LED is calculated by the + following formula: + IMAXled = 160000 * (592 / 600.5) * (1 / max-current-switch-number) + And the minimum output current formula: + IMINled = 3300 * (592 / 600.5) * (1 / max-current-switch-number) + where max-current-switch-number is determined by led configuration + and depends on how leds are physically connected to the led driver. + +allOf: + - if: + properties: + compatible: + contains: + const: awinic,aw20036 + then: + patternProperties: + "^led@[0-9a-f]+$": + properties: + reg: + items: + minimum: 0 + maximum: 36 + + - if: + properties: + compatible: + contains: + const: awinic,aw20054 + then: + patternProperties: + "^led@[0-9a-f]+$": + properties: + reg: + items: + minimum: 0 + maximum: 54 + + - if: + properties: + compatible: + contains: + const: awinic,aw20072 + then: + patternProperties: + "^led@[0-9a-f]+$": + properties: + reg: + items: + minimum: 0 + maximum: 72 + + - if: + properties: + compatible: + contains: + const: awinic,aw20108 + then: + patternProperties: + "^led@[0-9a-f]+$": + properties: + reg: + items: + minimum: 0 + maximum: 108 + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@3a { + compatible = "awinic,aw20036"; + reg = <0x3a>; + #address-cells = <1>; + #size-cells = <0>; + enable-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>; + + led@0 { + reg = <0x0>; + color = ; + led-max-microamp = <9780>; + }; + + led@1 { + reg = <0x1>; + color = ; + led-max-microamp = <9780>; + }; + + led@2 { + reg = <0x2>; + color = ; + led-max-microamp = <9780>; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml index c86ced0b9..3c9b4054e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml @@ -1,142 +1,142 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/leds/backlight/lm3630a-backlight.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: TI LM3630A High-Efficiency Dual-String White LED - -maintainers: - - Lee Jones - - Daniel Thompson - - Jingoo Han - -description: | - The LM3630A is a current-mode boost converter which supplies the power and - controls the current in up to two strings of 10 LEDs per string. - https://www.ti.com/product/LM3630A - -properties: - compatible: - const: ti,lm3630a - - reg: - maxItems: 1 - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - - enable-gpios: - description: GPIO to use to enable/disable the backlight (HWEN pin). - maxItems: 1 - -required: - - compatible - - reg - - '#address-cells' - - '#size-cells' - -patternProperties: - "^led@[01]$": - type: object - description: | - Properties for a string of connected LEDs. - - properties: - reg: - description: | - The control bank that is used to program the two current sinks. The - LM3630A has two control banks (A and B) and are represented as 0 or 1 - in this property. The two current sinks can be controlled - independently with both banks, or bank A can be configured to control - both sinks with the led-sources property. - minimum: 0 - maximum: 1 - - label: - maxItems: 1 - - led-sources: - allOf: - - minItems: 1 - maxItems: 2 - items: - minimum: 0 - maximum: 1 - - default-brightness: - description: Default brightness level on boot. - minimum: 0 - maximum: 255 - - max-brightness: - description: Maximum brightness that is allowed during runtime. - minimum: 0 - maximum: 255 - - ti,linear-mapping-mode: - description: | - Enable linear mapping mode. If disabled, then it will use exponential - mapping mode in which the ramp up/down appears to have a more uniform - transition to the human eye. - type: boolean - - required: - - reg - - additionalProperties: false - -additionalProperties: false - -examples: - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - led-controller@38 { - compatible = "ti,lm3630a"; - reg = <0x38>; - enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; - - #address-cells = <1>; - #size-cells = <0>; - - led@0 { - reg = <0>; - led-sources = <0 1>; - label = "lcd-backlight"; - default-brightness = <200>; - max-brightness = <255>; - }; - }; - }; - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - led-controller@38 { - compatible = "ti,lm3630a"; - reg = <0x38>; - - #address-cells = <1>; - #size-cells = <0>; - - led@0 { - reg = <0>; - default-brightness = <150>; - ti,linear-mapping-mode; - }; - - led@1 { - reg = <1>; - default-brightness = <225>; - ti,linear-mapping-mode; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/backlight/lm3630a-backlight.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI LM3630A High-Efficiency Dual-String White LED + +maintainers: + - Lee Jones + - Daniel Thompson + - Jingoo Han + +description: | + The LM3630A is a current-mode boost converter which supplies the power and + controls the current in up to two strings of 10 LEDs per string. + https://www.ti.com/product/LM3630A + +properties: + compatible: + const: ti,lm3630a + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + enable-gpios: + description: GPIO to use to enable/disable the backlight (HWEN pin). + maxItems: 1 + +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' + +patternProperties: + "^led@[01]$": + type: object + description: | + Properties for a string of connected LEDs. + + properties: + reg: + description: | + The control bank that is used to program the two current sinks. The + LM3630A has two control banks (A and B) and are represented as 0 or 1 + in this property. The two current sinks can be controlled + independently with both banks, or bank A can be configured to control + both sinks with the led-sources property. + minimum: 0 + maximum: 1 + + label: + maxItems: 1 + + led-sources: + allOf: + - minItems: 1 + maxItems: 2 + items: + minimum: 0 + maximum: 1 + + default-brightness: + description: Default brightness level on boot. + minimum: 0 + maximum: 255 + + max-brightness: + description: Maximum brightness that is allowed during runtime. + minimum: 0 + maximum: 255 + + ti,linear-mapping-mode: + description: | + Enable linear mapping mode. If disabled, then it will use exponential + mapping mode in which the ramp up/down appears to have a more uniform + transition to the human eye. + type: boolean + + required: + - reg + + additionalProperties: false + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@38 { + compatible = "ti,lm3630a"; + reg = <0x38>; + enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; + + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + led-sources = <0 1>; + label = "lcd-backlight"; + default-brightness = <200>; + max-brightness = <255>; + }; + }; + }; + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@38 { + compatible = "ti,lm3630a"; + reg = <0x38>; + + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + default-brightness = <150>; + ti,linear-mapping-mode; + }; + + led@1 { + reg = <1>; + default-brightness = <225>; + ti,linear-mapping-mode; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/backlight/lp855x-backlight.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/backlight/lp855x-backlight.yaml index ed41a5887..9416e1bfa 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/backlight/lp855x-backlight.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/backlight/lp855x-backlight.yaml @@ -1,149 +1,149 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/leds/backlight/lp855x-backlight.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Texas Instruments LP855X backlight controllers - -maintainers: - - Artur Weber - -properties: - compatible: - enum: - - ti,lp8550 - - ti,lp8551 - - ti,lp8552 - - ti,lp8553 - - ti,lp8555 - - ti,lp8556 - - ti,lp8557 - - reg: - maxItems: 1 - - dev-ctrl: - $ref: /schemas/types.yaml#/definitions/uint8 - description: - Value of device control register. This is a device-specific value. - - bl-name: - $ref: /schemas/types.yaml#/definitions/string - description: Backlight device name. - - init-brt: - $ref: /schemas/types.yaml#/definitions/uint8 - description: Initial value of backlight brightness. - - power-supply: - description: Regulator which controls the 3V rail. - - enable-supply: - description: Regulator which controls the EN/VDDIO input. - - pwms: - maxItems: 1 - description: | - PWM channel to use for controlling the backlight; setting this - enables the PWM-based backlight control mode. - - pwm-names: true - - pwm-period: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - PWM period value. Deprecated; set the period value in the pwms - property instead. - deprecated: true - -patternProperties: - "^rom-[0-9a-f]{2}h$": - type: object - description: Nodes containing the values of configuration registers. - additionalProperties: false - properties: - rom-addr: - $ref: /schemas/types.yaml#/definitions/uint8 - description: Register address of ROM area to be updated. - - rom-val: - $ref: /schemas/types.yaml#/definitions/uint8 - description: Value to write to the ROM register. - -required: - - compatible - - reg - - dev-ctrl - -unevaluatedProperties: false - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - backlight@2c { - compatible = "ti,lp8555"; - reg = <0x2c>; - - dev-ctrl = /bits/ 8 <0x00>; - - pwms = <&pwm 0 10000>; - pwm-names = "lp8555"; - - /* 4V OV, 4 output LED0 string enabled */ - rom-14h { - rom-addr = /bits/ 8 <0x14>; - rom-val = /bits/ 8 <0xcf>; - }; - - /* Heavy smoothing, 24ms ramp time step */ - rom-15h { - rom-addr = /bits/ 8 <0x15>; - rom-val = /bits/ 8 <0xc7>; - }; - - /* 4 output LED1 string enabled */ - rom-19h { - rom-addr = /bits/ 8 <0x19>; - rom-val = /bits/ 8 <0x0f>; - }; - }; - }; - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - backlight@2c { - compatible = "ti,lp8556"; - reg = <0x2c>; - - bl-name = "lcd-bl"; - dev-ctrl = /bits/ 8 <0x85>; - init-brt = /bits/ 8 <0x10>; - }; - }; - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - backlight@2c { - compatible = "ti,lp8557"; - reg = <0x2c>; - enable-supply = <&backlight_vddio>; - power-supply = <&backlight_vdd>; - - dev-ctrl = /bits/ 8 <0x41>; - init-brt = /bits/ 8 <0x0a>; - - /* 4V OV, 4 output LED string enabled */ - rom-14h { - rom-addr = /bits/ 8 <0x14>; - rom-val = /bits/ 8 <0xcf>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/backlight/lp855x-backlight.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments LP855X backlight controllers + +maintainers: + - Artur Weber + +properties: + compatible: + enum: + - ti,lp8550 + - ti,lp8551 + - ti,lp8552 + - ti,lp8553 + - ti,lp8555 + - ti,lp8556 + - ti,lp8557 + + reg: + maxItems: 1 + + dev-ctrl: + $ref: /schemas/types.yaml#/definitions/uint8 + description: + Value of device control register. This is a device-specific value. + + bl-name: + $ref: /schemas/types.yaml#/definitions/string + description: Backlight device name. + + init-brt: + $ref: /schemas/types.yaml#/definitions/uint8 + description: Initial value of backlight brightness. + + power-supply: + description: Regulator which controls the 3V rail. + + enable-supply: + description: Regulator which controls the EN/VDDIO input. + + pwms: + maxItems: 1 + description: | + PWM channel to use for controlling the backlight; setting this + enables the PWM-based backlight control mode. + + pwm-names: true + + pwm-period: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + PWM period value. Deprecated; set the period value in the pwms + property instead. + deprecated: true + +patternProperties: + "^rom-[0-9a-f]{2}h$": + type: object + description: Nodes containing the values of configuration registers. + additionalProperties: false + properties: + rom-addr: + $ref: /schemas/types.yaml#/definitions/uint8 + description: Register address of ROM area to be updated. + + rom-val: + $ref: /schemas/types.yaml#/definitions/uint8 + description: Value to write to the ROM register. + +required: + - compatible + - reg + - dev-ctrl + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + backlight@2c { + compatible = "ti,lp8555"; + reg = <0x2c>; + + dev-ctrl = /bits/ 8 <0x00>; + + pwms = <&pwm 0 10000>; + pwm-names = "lp8555"; + + /* 4V OV, 4 output LED0 string enabled */ + rom-14h { + rom-addr = /bits/ 8 <0x14>; + rom-val = /bits/ 8 <0xcf>; + }; + + /* Heavy smoothing, 24ms ramp time step */ + rom-15h { + rom-addr = /bits/ 8 <0x15>; + rom-val = /bits/ 8 <0xc7>; + }; + + /* 4 output LED1 string enabled */ + rom-19h { + rom-addr = /bits/ 8 <0x19>; + rom-val = /bits/ 8 <0x0f>; + }; + }; + }; + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + backlight@2c { + compatible = "ti,lp8556"; + reg = <0x2c>; + + bl-name = "lcd-bl"; + dev-ctrl = /bits/ 8 <0x85>; + init-brt = /bits/ 8 <0x10>; + }; + }; + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + backlight@2c { + compatible = "ti,lp8557"; + reg = <0x2c>; + enable-supply = <&backlight_vddio>; + power-supply = <&backlight_vdd>; + + dev-ctrl = /bits/ 8 <0x41>; + init-brt = /bits/ 8 <0x0a>; + + /* 4V OV, 4 output LED string enabled */ + rom-14h { + rom-addr = /bits/ 8 <0x14>; + rom-val = /bits/ 8 <0xcf>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/kinetic,ktd202x.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/kinetic,ktd202x.yaml index 655284fef..832c030a5 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/kinetic,ktd202x.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/kinetic,ktd202x.yaml @@ -1,171 +1,171 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/leds/kinetic,ktd202x.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Kinetic KTD2026/7 RGB/White LED Driver - -maintainers: - - André Apitzsch - -description: | - The KTD2026/7 is a RGB/White LED driver with I2C interface. - - The data sheet can be found at: - https://www.kinet-ic.com/uploads/KTD2026-7-04h.pdf - -properties: - compatible: - enum: - - kinetic,ktd2026 - - kinetic,ktd2027 - - reg: - maxItems: 1 - - vin-supply: - description: Regulator providing power to the "VIN" pin. - - vio-supply: - description: Regulator providing power for pull-up of the I/O lines. - Note that this regulator does not directly connect to KTD2026, but is - needed for the correct operation of the status ("ST") and I2C lines. - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - - multi-led: - type: object - $ref: leds-class-multicolor.yaml# - unevaluatedProperties: false - - properties: - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - - patternProperties: - "^led@[0-3]$": - type: object - $ref: common.yaml# - unevaluatedProperties: false - - properties: - reg: - description: Index of the LED. - minimum: 0 - maximum: 3 - - required: - - reg - - color - - required: - - "#address-cells" - - "#size-cells" - -patternProperties: - "^led@[0-3]$": - type: object - $ref: common.yaml# - unevaluatedProperties: false - - properties: - reg: - description: Index of the LED. - minimum: 0 - maximum: 3 - - required: - - reg - -required: - - compatible - - reg - - "#address-cells" - - "#size-cells" - -additionalProperties: false - -examples: - - | - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - led-controller@30 { - compatible = "kinetic,ktd2026"; - reg = <0x30>; - #address-cells = <1>; - #size-cells = <0>; - - vin-supply = <&pm8916_l17>; - vio-supply = <&pm8916_l6>; - - led@0 { - reg = <0>; - function = LED_FUNCTION_STATUS; - color = ; - }; - - led@1 { - reg = <1>; - function = LED_FUNCTION_STATUS; - color = ; - }; - - led@2 { - reg = <2>; - function = LED_FUNCTION_STATUS; - color = ; - }; - }; - }; - - | - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - led-controller@30 { - compatible = "kinetic,ktd2026"; - reg = <0x30>; - #address-cells = <1>; - #size-cells = <0>; - - vin-supply = <&pm8916_l17>; - vio-supply = <&pm8916_l6>; - - multi-led { - color = ; - function = LED_FUNCTION_STATUS; - - #address-cells = <1>; - #size-cells = <0>; - - led@0 { - reg = <0>; - color = ; - }; - - led@1 { - reg = <1>; - color = ; - }; - - led@2 { - reg = <2>; - color = ; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/kinetic,ktd202x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Kinetic KTD2026/7 RGB/White LED Driver + +maintainers: + - André Apitzsch + +description: | + The KTD2026/7 is a RGB/White LED driver with I2C interface. + + The data sheet can be found at: + https://www.kinet-ic.com/uploads/KTD2026-7-04h.pdf + +properties: + compatible: + enum: + - kinetic,ktd2026 + - kinetic,ktd2027 + + reg: + maxItems: 1 + + vin-supply: + description: Regulator providing power to the "VIN" pin. + + vio-supply: + description: Regulator providing power for pull-up of the I/O lines. + Note that this regulator does not directly connect to KTD2026, but is + needed for the correct operation of the status ("ST") and I2C lines. + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + multi-led: + type: object + $ref: leds-class-multicolor.yaml# + unevaluatedProperties: false + + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + patternProperties: + "^led@[0-3]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + description: Index of the LED. + minimum: 0 + maximum: 3 + + required: + - reg + - color + + required: + - "#address-cells" + - "#size-cells" + +patternProperties: + "^led@[0-3]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + description: Index of the LED. + minimum: 0 + maximum: 3 + + required: + - reg + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@30 { + compatible = "kinetic,ktd2026"; + reg = <0x30>; + #address-cells = <1>; + #size-cells = <0>; + + vin-supply = <&pm8916_l17>; + vio-supply = <&pm8916_l6>; + + led@0 { + reg = <0>; + function = LED_FUNCTION_STATUS; + color = ; + }; + + led@1 { + reg = <1>; + function = LED_FUNCTION_STATUS; + color = ; + }; + + led@2 { + reg = <2>; + function = LED_FUNCTION_STATUS; + color = ; + }; + }; + }; + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@30 { + compatible = "kinetic,ktd2026"; + reg = <0x30>; + #address-cells = <1>; + #size-cells = <0>; + + vin-supply = <&pm8916_l17>; + vio-supply = <&pm8916_l6>; + + multi-led { + color = ; + function = LED_FUNCTION_STATUS; + + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + }; + + led@1 { + reg = <1>; + color = ; + }; + + led@2 { + reg = <2>; + color = ; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/leds-lm3532.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/leds-lm3532.txt index 55038f77c..097490a5f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/leds-lm3532.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/leds-lm3532.txt @@ -1,105 +1,105 @@ -* Texas Instruments - lm3532 White LED driver with ambient light sensing -capability. - -The LM3532 provides the 3 high-voltage, low-side current sinks. The device is -programmable over an I2C-compatible interface and has independent -current control for all three channels. The adaptive current regulation -method allows for different LED currents in each current sink thus allowing -for a wide variety of backlight and keypad applications. - -The main features of the LM3532 include dual ambient light sensor inputs -each with 32 internal voltage setting resistors, 8-bit logarithmic and linear -brightness control, dual external PWM brightness control inputs, and up to -1000:1 dimming ratio with programmable fade in and fade out settings. - -Required properties: - - compatible : "ti,lm3532" - - reg : I2C slave address - - #address-cells : 1 - - #size-cells : 0 - -Optional properties: - - enable-gpios : gpio pin to enable (active high)/disable the device. - - ramp-up-us - The Run time ramp rates/step are from one current - set-point to another after the device has reached its - initial target set point from turn-on - - ramp-down-us - The Run time ramp rates/step are from one current - set-point to another after the device has reached its - initial target set point from turn-on - Range for ramp settings: 8us - 65536us - -Optional properties if ALS mode is used: - - ti,als-vmin - Minimum ALS voltage defined in Volts - - ti,als-vmax - Maximum ALS voltage defined in Volts - Per the data sheet the max ALS voltage is 2V and the min is 0V - - - ti,als1-imp-sel - ALS1 impedance resistor selection in Ohms - - ti,als2-imp-sel - ALS2 impedance resistor selection in Ohms - Range for impedance select: 37000 Ohms - 1190 Ohms - Values above 37kohms will be set to the "High Impedance" setting - - - ti,als-avrg-time-us - Determines the length of time the device needs to - average the two ALS inputs. This is only used if - the input mode is LM3532_ALS_INPUT_AVRG. - Range: 17920us - 2293760us - - ti,als-input-mode - Determines how the device uses the attached ALS - devices. - 0x00 - ALS1 and ALS2 input average - 0x01 - ALS1 Input - 0x02 - ALS2 Input - 0x03 - Max of ALS1 and ALS2 - -Required child properties: - - reg : Indicates control bank the LED string is controlled by - - led-sources : see Documentation/devicetree/bindings/leds/common.txt - - ti,led-mode : Defines if the LED strings are manually controlled or - if the LED strings are controlled by the ALS. - 0x00 - LED strings are I2C controlled via full scale - brightness control register - 0x01 - LED strings are ALS controlled - -Optional LED child properties: - - label : see Documentation/devicetree/bindings/leds/common.txt - - linux,default-trigger : - see Documentation/devicetree/bindings/leds/common.txt - - led-max-microamp : Defines the full scale current value for each control - bank. The range is from 5000uA-29800uA in increments - of 800uA. - -Example: -led-controller@38 { - compatible = "ti,lm3532"; - #address-cells = <1>; - #size-cells = <0>; - reg = <0x38>; - - enable-gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>; - ramp-up-us = <1024>; - ramp-down-us = <65536>; - - ti,als-vmin = <0>; - ti,als-vmax = <2000>; - ti,als1-imp-sel = <4110>; - ti,als2-imp-sel = <2180>; - ti,als-avrg-time-us = <17920>; - ti,als-input-mode = <0x00>; - - led@0 { - reg = <0>; - led-sources = <2>; - ti,led-mode = <1>; - led-max-microamp = <21800>; - label = ":backlight"; - linux,default-trigger = "backlight"; - }; - - led@1 { - reg = <1>; - led-sources = <1>; - ti,led-mode = <0>; - label = ":kbd_backlight"; - }; -}; - -For more product information please see the links below: -https://www.ti.com/product/LM3532 +* Texas Instruments - lm3532 White LED driver with ambient light sensing +capability. + +The LM3532 provides the 3 high-voltage, low-side current sinks. The device is +programmable over an I2C-compatible interface and has independent +current control for all three channels. The adaptive current regulation +method allows for different LED currents in each current sink thus allowing +for a wide variety of backlight and keypad applications. + +The main features of the LM3532 include dual ambient light sensor inputs +each with 32 internal voltage setting resistors, 8-bit logarithmic and linear +brightness control, dual external PWM brightness control inputs, and up to +1000:1 dimming ratio with programmable fade in and fade out settings. + +Required properties: + - compatible : "ti,lm3532" + - reg : I2C slave address + - #address-cells : 1 + - #size-cells : 0 + +Optional properties: + - enable-gpios : gpio pin to enable (active high)/disable the device. + - ramp-up-us - The Run time ramp rates/step are from one current + set-point to another after the device has reached its + initial target set point from turn-on + - ramp-down-us - The Run time ramp rates/step are from one current + set-point to another after the device has reached its + initial target set point from turn-on + Range for ramp settings: 8us - 65536us + +Optional properties if ALS mode is used: + - ti,als-vmin - Minimum ALS voltage defined in Volts + - ti,als-vmax - Maximum ALS voltage defined in Volts + Per the data sheet the max ALS voltage is 2V and the min is 0V + + - ti,als1-imp-sel - ALS1 impedance resistor selection in Ohms + - ti,als2-imp-sel - ALS2 impedance resistor selection in Ohms + Range for impedance select: 37000 Ohms - 1190 Ohms + Values above 37kohms will be set to the "High Impedance" setting + + - ti,als-avrg-time-us - Determines the length of time the device needs to + average the two ALS inputs. This is only used if + the input mode is LM3532_ALS_INPUT_AVRG. + Range: 17920us - 2293760us + - ti,als-input-mode - Determines how the device uses the attached ALS + devices. + 0x00 - ALS1 and ALS2 input average + 0x01 - ALS1 Input + 0x02 - ALS2 Input + 0x03 - Max of ALS1 and ALS2 + +Required child properties: + - reg : Indicates control bank the LED string is controlled by + - led-sources : see Documentation/devicetree/bindings/leds/common.txt + - ti,led-mode : Defines if the LED strings are manually controlled or + if the LED strings are controlled by the ALS. + 0x00 - LED strings are I2C controlled via full scale + brightness control register + 0x01 - LED strings are ALS controlled + +Optional LED child properties: + - label : see Documentation/devicetree/bindings/leds/common.txt + - linux,default-trigger : + see Documentation/devicetree/bindings/leds/common.txt + - led-max-microamp : Defines the full scale current value for each control + bank. The range is from 5000uA-29800uA in increments + of 800uA. + +Example: +led-controller@38 { + compatible = "ti,lm3532"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x38>; + + enable-gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>; + ramp-up-us = <1024>; + ramp-down-us = <65536>; + + ti,als-vmin = <0>; + ti,als-vmax = <2000>; + ti,als1-imp-sel = <4110>; + ti,als2-imp-sel = <2180>; + ti,als-avrg-time-us = <17920>; + ti,als-input-mode = <0x00>; + + led@0 { + reg = <0>; + led-sources = <2>; + ti,led-mode = <1>; + led-max-microamp = <21800>; + label = ":backlight"; + linux,default-trigger = "backlight"; + }; + + led@1 { + reg = <1>; + led-sources = <1>; + ti,led-mode = <0>; + label = ":kbd_backlight"; + }; +}; + +For more product information please see the links below: +https://www.ti.com/product/LM3532 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml index b7e6c398d..402c25424 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml @@ -1,159 +1,159 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/leds/leds-lp50xx.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: LED driver for LP50XX RGB LED from Texas Instruments. - -maintainers: - - Andrew Davis - -description: | - The LP50XX is multi-channel, I2C RGB LED Drivers that can group RGB LEDs into - a LED group or control them individually. - - The difference in these RGB LED drivers is the number of supported RGB - modules. - - For more product information please see the link below: - https://www.ti.com/lit/ds/symlink/lp5012.pdf - https://www.ti.com/lit/ds/symlink/lp5024.pdf - https://www.ti.com/lit/ds/symlink/lp5036.pdf - -properties: - compatible: - enum: - - ti,lp5009 - - ti,lp5012 - - ti,lp5018 - - ti,lp5024 - - ti,lp5030 - - ti,lp5036 - - reg: - maxItems: 1 - description: - I2C slave address - lp5009/12 - 0x14, 0x15, 0x16, 0x17 - lp5018/24 - 0x28, 0x29, 0x2a, 0x2b - lp5030/36 - 0x30, 0x31, 0x32, 0x33 - - enable-gpios: - maxItems: 1 - description: GPIO pin to enable/disable the device. - - vled-supply: - description: LED supply. - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - -patternProperties: - '^multi-led@[0-9a-f]$': - type: object - $ref: leds-class-multicolor.yaml# - unevaluatedProperties: false - - properties: - reg: - minItems: 1 - maxItems: 12 - description: - This property denotes the LED module number(s) that is used on the - for the child node. The LED modules can either be used stand alone - or grouped into a module bank. - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - - patternProperties: - "^led@[0-9a-f]+$": - type: object - $ref: common.yaml# - unevaluatedProperties: false - - properties: - reg: - maxItems: 1 - - required: - - reg - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - #include - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - led-controller@14 { - compatible = "ti,lp5009"; - reg = <0x14>; - #address-cells = <1>; - #size-cells = <0>; - enable-gpios = <&gpio1 16>; - - multi-led@1 { - #address-cells = <1>; - #size-cells = <0>; - reg = <0x1>; - color = ; - function = LED_FUNCTION_CHARGING; - - led@0 { - reg = <0x0>; - color = ; - }; - - led@1 { - reg = <0x1>; - color = ; - }; - - led@2 { - reg = <0x2>; - color = ; - }; - }; - - multi-led@3 { - #address-cells = <1>; - #size-cells = <0>; - reg = <0x3>, <0x4>, <0x5>; - color = ; - function = LED_FUNCTION_STANDBY; - - led@3 { - reg = <0x3>; - color = ; - }; - - led@4 { - reg = <0x4>; - color = ; - }; - - led@5 { - reg = <0x5>; - color = ; - }; - }; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/leds-lp50xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LED driver for LP50XX RGB LED from Texas Instruments. + +maintainers: + - Andrew Davis + +description: | + The LP50XX is multi-channel, I2C RGB LED Drivers that can group RGB LEDs into + a LED group or control them individually. + + The difference in these RGB LED drivers is the number of supported RGB + modules. + + For more product information please see the link below: + https://www.ti.com/lit/ds/symlink/lp5012.pdf + https://www.ti.com/lit/ds/symlink/lp5024.pdf + https://www.ti.com/lit/ds/symlink/lp5036.pdf + +properties: + compatible: + enum: + - ti,lp5009 + - ti,lp5012 + - ti,lp5018 + - ti,lp5024 + - ti,lp5030 + - ti,lp5036 + + reg: + maxItems: 1 + description: + I2C slave address + lp5009/12 - 0x14, 0x15, 0x16, 0x17 + lp5018/24 - 0x28, 0x29, 0x2a, 0x2b + lp5030/36 - 0x30, 0x31, 0x32, 0x33 + + enable-gpios: + maxItems: 1 + description: GPIO pin to enable/disable the device. + + vled-supply: + description: LED supply. + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +patternProperties: + '^multi-led@[0-9a-f]$': + type: object + $ref: leds-class-multicolor.yaml# + unevaluatedProperties: false + + properties: + reg: + minItems: 1 + maxItems: 12 + description: + This property denotes the LED module number(s) that is used on the + for the child node. The LED modules can either be used stand alone + or grouped into a module bank. + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + "^led@[0-9a-f]+$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + maxItems: 1 + + required: + - reg + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@14 { + compatible = "ti,lp5009"; + reg = <0x14>; + #address-cells = <1>; + #size-cells = <0>; + enable-gpios = <&gpio1 16>; + + multi-led@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x1>; + color = ; + function = LED_FUNCTION_CHARGING; + + led@0 { + reg = <0x0>; + color = ; + }; + + led@1 { + reg = <0x1>; + color = ; + }; + + led@2 { + reg = <0x2>; + color = ; + }; + }; + + multi-led@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x3>, <0x4>, <0x5>; + color = ; + function = LED_FUNCTION_STANDBY; + + led@3 { + reg = <0x3>; + color = ; + }; + + led@4 { + reg = <0x4>; + color = ; + }; + + led@5 { + reg = <0x5>; + color = ; + }; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/leds-mt6360.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/leds-mt6360.yaml index 3b7f681ba..d84e28e61 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/leds-mt6360.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/leds-mt6360.yaml @@ -1,192 +1,192 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/leds/leds-mt6360.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: LED driver for MT6360 PMIC from MediaTek Integrated. - -maintainers: - - Gene Chen - -description: | - This module is part of the MT6360 MFD device. - see Documentation/devicetree/bindings/mfd/mediatek,mt6360.yaml - Add MT6360 LED driver include 2-channel Flash LED with torch/strobe mode, - and 4-channel RGB LED support Register/Flash/Breath Mode - -properties: - compatible: - const: mediatek,mt6360-led - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - -patternProperties: - "^multi-led@[0-5]$": - type: object - $ref: leds-class-multicolor.yaml# - unevaluatedProperties: false - - properties: - reg: - description: Index of the LED. - enum: - - 0 # LED output ISINK1 - - 1 # LED output ISINK2 - - 2 # LED output ISINK3 - - 3 # LED output ISINKML - - 4 # LED output FLASH1 - - 5 # LED output FLASH2 - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - - patternProperties: - "^led@[0-2]$": - type: object - $ref: common.yaml# - unevaluatedProperties: false - - properties: - reg: - enum: [0, 1, 2] - - required: - - reg - - color - - required: - - reg - - "#address-cells" - - "#size-cells" - - "^led@[0-5]$": - type: object - $ref: common.yaml# - unevaluatedProperties: false - description: - Properties for a single LED. - - properties: - reg: - enum: [0, 1, 2, 3, 4, 5] - -required: - - compatible - - "#address-cells" - - "#size-cells" - -additionalProperties: false - -examples: - - | - #include - led-controller { - compatible = "mediatek,mt6360-led"; - #address-cells = <1>; - #size-cells = <0>; - - multi-led@0 { - reg = <0>; - function = LED_FUNCTION_INDICATOR; - color = ; - led-max-microamp = <24000>; - #address-cells = <1>; - #size-cells = <0>; - led@0 { - reg = <0>; - color = ; - }; - led@1 { - reg = <1>; - color = ; - }; - led@2 { - reg = <2>; - color = ; - }; - }; - led@3 { - reg = <3>; - function = LED_FUNCTION_INDICATOR; - color = ; - led-max-microamp = <150000>; - }; - led@4 { - reg = <4>; - function = LED_FUNCTION_FLASH; - color = ; - function-enumerator = <1>; - led-max-microamp = <200000>; - flash-max-microamp = <500000>; - flash-max-timeout-us = <1024000>; - }; - led@5 { - reg = <5>; - function = LED_FUNCTION_FLASH; - color = ; - function-enumerator = <2>; - led-max-microamp = <200000>; - flash-max-microamp = <500000>; - flash-max-timeout-us = <1024000>; - }; - }; - - - | - - led-controller { - compatible = "mediatek,mt6360-led"; - #address-cells = <1>; - #size-cells = <0>; - - led@0 { - reg = <0>; - function = LED_FUNCTION_INDICATOR; - color = ; - led-max-microamp = <24000>; - }; - led@1 { - reg = <1>; - function = LED_FUNCTION_INDICATOR; - color = ; - led-max-microamp = <24000>; - }; - led@2 { - reg = <2>; - function = LED_FUNCTION_INDICATOR; - color = ; - led-max-microamp = <24000>; - }; - led@3 { - reg = <3>; - function = LED_FUNCTION_INDICATOR; - color = ; - led-max-microamp = <150000>; - }; - led@4 { - reg = <4>; - function = LED_FUNCTION_FLASH; - color = ; - function-enumerator = <1>; - led-max-microamp = <200000>; - flash-max-microamp = <500000>; - flash-max-timeout-us = <1024000>; - }; - led@5 { - reg = <5>; - function = LED_FUNCTION_FLASH; - color = ; - function-enumerator = <2>; - led-max-microamp = <200000>; - flash-max-microamp = <500000>; - flash-max-timeout-us = <1024000>; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/leds-mt6360.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LED driver for MT6360 PMIC from MediaTek Integrated. + +maintainers: + - Gene Chen + +description: | + This module is part of the MT6360 MFD device. + see Documentation/devicetree/bindings/mfd/mediatek,mt6360.yaml + Add MT6360 LED driver include 2-channel Flash LED with torch/strobe mode, + and 4-channel RGB LED support Register/Flash/Breath Mode + +properties: + compatible: + const: mediatek,mt6360-led + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^multi-led@[0-5]$": + type: object + $ref: leds-class-multicolor.yaml# + unevaluatedProperties: false + + properties: + reg: + description: Index of the LED. + enum: + - 0 # LED output ISINK1 + - 1 # LED output ISINK2 + - 2 # LED output ISINK3 + - 3 # LED output ISINKML + - 4 # LED output FLASH1 + - 5 # LED output FLASH2 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + patternProperties: + "^led@[0-2]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + enum: [0, 1, 2] + + required: + - reg + - color + + required: + - reg + - "#address-cells" + - "#size-cells" + + "^led@[0-5]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + description: + Properties for a single LED. + + properties: + reg: + enum: [0, 1, 2, 3, 4, 5] + +required: + - compatible + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include + led-controller { + compatible = "mediatek,mt6360-led"; + #address-cells = <1>; + #size-cells = <0>; + + multi-led@0 { + reg = <0>; + function = LED_FUNCTION_INDICATOR; + color = ; + led-max-microamp = <24000>; + #address-cells = <1>; + #size-cells = <0>; + led@0 { + reg = <0>; + color = ; + }; + led@1 { + reg = <1>; + color = ; + }; + led@2 { + reg = <2>; + color = ; + }; + }; + led@3 { + reg = <3>; + function = LED_FUNCTION_INDICATOR; + color = ; + led-max-microamp = <150000>; + }; + led@4 { + reg = <4>; + function = LED_FUNCTION_FLASH; + color = ; + function-enumerator = <1>; + led-max-microamp = <200000>; + flash-max-microamp = <500000>; + flash-max-timeout-us = <1024000>; + }; + led@5 { + reg = <5>; + function = LED_FUNCTION_FLASH; + color = ; + function-enumerator = <2>; + led-max-microamp = <200000>; + flash-max-microamp = <500000>; + flash-max-timeout-us = <1024000>; + }; + }; + + - | + + led-controller { + compatible = "mediatek,mt6360-led"; + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + function = LED_FUNCTION_INDICATOR; + color = ; + led-max-microamp = <24000>; + }; + led@1 { + reg = <1>; + function = LED_FUNCTION_INDICATOR; + color = ; + led-max-microamp = <24000>; + }; + led@2 { + reg = <2>; + function = LED_FUNCTION_INDICATOR; + color = ; + led-max-microamp = <24000>; + }; + led@3 { + reg = <3>; + function = LED_FUNCTION_INDICATOR; + color = ; + led-max-microamp = <150000>; + }; + led@4 { + reg = <4>; + function = LED_FUNCTION_FLASH; + color = ; + function-enumerator = <1>; + led-max-microamp = <200000>; + flash-max-microamp = <500000>; + flash-max-timeout-us = <1024000>; + }; + led@5 { + reg = <5>; + function = LED_FUNCTION_FLASH; + color = ; + function-enumerator = <2>; + led-max-microamp = <200000>; + flash-max-microamp = <500000>; + flash-max-timeout-us = <1024000>; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml index 3a071fa6a..1ba607685 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml @@ -1,121 +1,121 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/leds/qcom,spmi-flash-led.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Flash LED device inside Qualcomm Technologies, Inc. PMICs - -maintainers: - - Fenglin Wu - -description: | - Flash LED controller is present inside some Qualcomm Technologies, Inc. PMICs. - The flash LED module can have different number of LED channels supported - e.g. 3 or 4. There are some different registers between them but they can - both support maximum current up to 1.5 A per channel and they can also support - ganging 2 channels together to supply maximum current up to 2 A. The current - will be split symmetrically on each channel and they will be enabled and - disabled at the same time. - -properties: - compatible: - items: - - enum: - - qcom,pm6150l-flash-led - - qcom,pm8150c-flash-led - - qcom,pm8150l-flash-led - - qcom,pm8350c-flash-led - - qcom,pm8550-flash-led - - qcom,pmi8998-flash-led - - const: qcom,spmi-flash-led - - reg: - maxItems: 1 - -patternProperties: - "^led-[0-3]$": - type: object - $ref: common.yaml# - unevaluatedProperties: false - description: - Represents the physical LED components which are connected to the - flash LED channels' output. - - properties: - led-sources: - description: - The HW indices of the flash LED channels that connect to the - physical LED - allOf: - - minItems: 1 - maxItems: 2 - items: - enum: [1, 2, 3, 4] - - led-max-microamp: - anyOf: - - minimum: 5000 - maximum: 500000 - multipleOf: 5000 - - minimum: 10000 - maximum: 1000000 - multipleOf: 10000 - - flash-max-microamp: - anyOf: - - minimum: 12500 - maximum: 1500000 - multipleOf: 12500 - - minimum: 25000 - maximum: 2000000 - multipleOf: 25000 - - flash-max-timeout-us: - minimum: 10000 - maximum: 1280000 - multipleOf: 10000 - - required: - - led-sources - - led-max-microamp - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - #include - - pmic { - #address-cells = <1>; - #size-cells = <0>; - - led-controller@ee00 { - compatible = "qcom,pm8350c-flash-led", "qcom,spmi-flash-led"; - reg = <0xee00>; - - led-0 { - function = LED_FUNCTION_FLASH; - color = ; - led-sources = <1>, <4>; - led-max-microamp = <300000>; - flash-max-microamp = <2000000>; - flash-max-timeout-us = <1280000>; - function-enumerator = <0>; - }; - - led-1 { - function = LED_FUNCTION_FLASH; - color = ; - led-sources = <2>, <3>; - led-max-microamp = <300000>; - flash-max-microamp = <2000000>; - flash-max-timeout-us = <1280000>; - function-enumerator = <1>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/qcom,spmi-flash-led.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Flash LED device inside Qualcomm Technologies, Inc. PMICs + +maintainers: + - Fenglin Wu + +description: | + Flash LED controller is present inside some Qualcomm Technologies, Inc. PMICs. + The flash LED module can have different number of LED channels supported + e.g. 3 or 4. There are some different registers between them but they can + both support maximum current up to 1.5 A per channel and they can also support + ganging 2 channels together to supply maximum current up to 2 A. The current + will be split symmetrically on each channel and they will be enabled and + disabled at the same time. + +properties: + compatible: + items: + - enum: + - qcom,pm6150l-flash-led + - qcom,pm8150c-flash-led + - qcom,pm8150l-flash-led + - qcom,pm8350c-flash-led + - qcom,pm8550-flash-led + - qcom,pmi8998-flash-led + - const: qcom,spmi-flash-led + + reg: + maxItems: 1 + +patternProperties: + "^led-[0-3]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + description: + Represents the physical LED components which are connected to the + flash LED channels' output. + + properties: + led-sources: + description: + The HW indices of the flash LED channels that connect to the + physical LED + allOf: + - minItems: 1 + maxItems: 2 + items: + enum: [1, 2, 3, 4] + + led-max-microamp: + anyOf: + - minimum: 5000 + maximum: 500000 + multipleOf: 5000 + - minimum: 10000 + maximum: 1000000 + multipleOf: 10000 + + flash-max-microamp: + anyOf: + - minimum: 12500 + maximum: 1500000 + multipleOf: 12500 + - minimum: 25000 + maximum: 2000000 + multipleOf: 25000 + + flash-max-timeout-us: + minimum: 10000 + maximum: 1280000 + multipleOf: 10000 + + required: + - led-sources + - led-max-microamp + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + + pmic { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@ee00 { + compatible = "qcom,pm8350c-flash-led", "qcom,spmi-flash-led"; + reg = <0xee00>; + + led-0 { + function = LED_FUNCTION_FLASH; + color = ; + led-sources = <1>, <4>; + led-max-microamp = <300000>; + flash-max-microamp = <2000000>; + flash-max-timeout-us = <1280000>; + function-enumerator = <0>; + }; + + led-1 { + function = LED_FUNCTION_FLASH; + color = ; + led-sources = <2>, <3>; + led-max-microamp = <300000>; + flash-max-microamp = <2000000>; + flash-max-timeout-us = <1280000>; + function-enumerator = <1>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/richtek,rt8515.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/richtek,rt8515.yaml index fedcdfe56..68c328eec 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/richtek,rt8515.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/leds/richtek,rt8515.yaml @@ -1,111 +1,111 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/leds/richtek,rt8515.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Richtek RT8515 1.5A dual channel LED driver - -maintainers: - - Linus Walleij - -description: | - The Richtek RT8515 is a dual channel (two mode) LED driver that - supports driving a white LED in flash or torch mode. The maximum - current for each mode is defined in hardware using two resistors - RFS and RTS. - -properties: - compatible: - const: richtek,rt8515 - - enf-gpios: - maxItems: 1 - description: A connection to the 'ENF' (enable flash) pin. - - ent-gpios: - maxItems: 1 - description: A connection to the 'ENT' (enable torch) pin. - - richtek,rfs-ohms: - minimum: 7680 - maximum: 367000 - description: The resistance value of the RFS resistor. This - resistors limits the maximum flash current. This must be set - for the property flash-max-microamp to work, the RFS resistor - defines the range of the dimmer setting (brightness) of the - flash LED. - - richtek,rts-ohms: - minimum: 7680 - maximum: 367000 - description: The resistance value of the RTS resistor. This - resistors limits the maximum torch current. This must be set - for the property torch-max-microamp to work, the RTS resistor - defines the range of the dimmer setting (brightness) of the - torch LED. - - led: - type: object - $ref: common.yaml# - properties: - function: true - color: true - flash-max-timeout-us: true - - flash-max-microamp: - maximum: 700000 - description: The maximum current for flash mode - is hardwired to the component using the RFS resistor to - ground. The maximum hardware current setting is calculated - according to the formula Imax = 5500 / RFS. The lowest - allowed resistance value is 7.86 kOhm giving an absolute - maximum current of 700mA. By setting this attribute in - the device tree, you can further restrict the maximum - current below the hardware limit. This requires the RFS - to be defined as it defines the maximum range. - - led-max-microamp: - maximum: 700000 - description: The maximum current for torch mode - is hardwired to the component using the RTS resistor to - ground. The maximum hardware current setting is calculated - according to the formula Imax = 5500 / RTS. The lowest - allowed resistance value is 7.86 kOhm giving an absolute - maximum current of 700mA. By setting this attribute in - the device tree, you can further restrict the maximum - current below the hardware limit. This requires the RTS - to be defined as it defines the maximum range. - - additionalProperties: false - -required: - - compatible - - ent-gpios - - enf-gpios - - led - -additionalProperties: false - -examples: - - | - #include - #include - - led-controller { - compatible = "richtek,rt8515"; - enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>; - ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>; - richtek,rfs-ohms = <16000>; - richtek,rts-ohms = <100000>; - - led { - function = LED_FUNCTION_FLASH; - color = ; - flash-max-timeout-us = <250000>; - flash-max-microamp = <150000>; - led-max-microamp = <25000>; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/richtek,rt8515.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Richtek RT8515 1.5A dual channel LED driver + +maintainers: + - Linus Walleij + +description: | + The Richtek RT8515 is a dual channel (two mode) LED driver that + supports driving a white LED in flash or torch mode. The maximum + current for each mode is defined in hardware using two resistors + RFS and RTS. + +properties: + compatible: + const: richtek,rt8515 + + enf-gpios: + maxItems: 1 + description: A connection to the 'ENF' (enable flash) pin. + + ent-gpios: + maxItems: 1 + description: A connection to the 'ENT' (enable torch) pin. + + richtek,rfs-ohms: + minimum: 7680 + maximum: 367000 + description: The resistance value of the RFS resistor. This + resistors limits the maximum flash current. This must be set + for the property flash-max-microamp to work, the RFS resistor + defines the range of the dimmer setting (brightness) of the + flash LED. + + richtek,rts-ohms: + minimum: 7680 + maximum: 367000 + description: The resistance value of the RTS resistor. This + resistors limits the maximum torch current. This must be set + for the property torch-max-microamp to work, the RTS resistor + defines the range of the dimmer setting (brightness) of the + torch LED. + + led: + type: object + $ref: common.yaml# + properties: + function: true + color: true + flash-max-timeout-us: true + + flash-max-microamp: + maximum: 700000 + description: The maximum current for flash mode + is hardwired to the component using the RFS resistor to + ground. The maximum hardware current setting is calculated + according to the formula Imax = 5500 / RFS. The lowest + allowed resistance value is 7.86 kOhm giving an absolute + maximum current of 700mA. By setting this attribute in + the device tree, you can further restrict the maximum + current below the hardware limit. This requires the RFS + to be defined as it defines the maximum range. + + led-max-microamp: + maximum: 700000 + description: The maximum current for torch mode + is hardwired to the component using the RTS resistor to + ground. The maximum hardware current setting is calculated + according to the formula Imax = 5500 / RTS. The lowest + allowed resistance value is 7.86 kOhm giving an absolute + maximum current of 700mA. By setting this attribute in + the device tree, you can further restrict the maximum + current below the hardware limit. This requires the RTS + to be defined as it defines the maximum range. + + additionalProperties: false + +required: + - compatible + - ent-gpios + - enf-gpios + - led + +additionalProperties: false + +examples: + - | + #include + #include + + led-controller { + compatible = "richtek,rt8515"; + enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>; + ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>; + richtek,rfs-ohms = <16000>; + richtek,rts-ohms = <100000>; + + led { + function = LED_FUNCTION_FLASH; + color = ; + flash-max-timeout-us = <250000>; + flash-max-microamp = <150000>; + led-max-microamp = <25000>; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mailbox/nvidia,tegra186-hsp.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mailbox/nvidia,tegra186-hsp.yaml index 86352d6ba..2d14fc948 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mailbox/nvidia,tegra186-hsp.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mailbox/nvidia,tegra186-hsp.yaml @@ -1,124 +1,124 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mailbox/nvidia,tegra186-hsp.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NVIDIA Tegra Hardware Synchronization Primitives (HSP) - -maintainers: - - Thierry Reding - - Jon Hunter - -description: | - The HSP modules are used for the processors to share resources and - communicate together. It provides a set of hardware synchronization - primitives for interprocessor communication. So the interprocessor - communication (IPC) protocols can use hardware synchronization - primitives, when operating between two processors not in an SMP - relationship. - - The features that HSP supported are shared mailboxes, shared - semaphores, arbitrated semaphores and doorbells. - - The mbox specifier of the "mboxes" property in the client node should - contain two cells. The first cell determines the HSP type and the - second cell is used to identify the mailbox that the client is going - to use. - - For shared mailboxes, the first cell composed of two fields: - - bits 15..8: - A bit mask of flags that further specifies the type of shared - mailbox to be used (based on the data size). If no flag is - specified then, 32-bit shared mailbox is used. - - bits 7..0: - Defines the type of the mailbox to be used. This field should be - TEGRA_HSP_MBOX_TYPE_SM for shared mailboxes. - - For doorbells, the second cell specifies the index of the doorbell to - use. - - For shared mailboxes, the second cell is composed of two fields: - - bits 31..24: - A bit mask of flags that further specify how the shared mailbox - will be used. Valid flags are: - - bit 31: - Defines the direction of the mailbox. If set, the mailbox - will be used as a producer (i.e. used to send data). If - cleared, the mailbox is the consumer of data sent by a - producer. - - - bits 23..0: - The index of the shared mailbox to use. The number of available - mailboxes may vary by instance of the HSP block and SoC - generation. - - The following file contains definitions that can be used to - construct mailbox specifiers: - - - -properties: - $nodename: - pattern: "^hsp@[0-9a-f]+$" - - compatible: - oneOf: - - const: nvidia,tegra186-hsp - - const: nvidia,tegra194-hsp - - const: nvidia,tegra264-hsp - - items: - - const: nvidia,tegra234-hsp - - const: nvidia,tegra194-hsp - - reg: - maxItems: 1 - - interrupts: - minItems: 1 - maxItems: 9 - - interrupt-names: - oneOf: - # shared interrupts are optional - - items: - - const: doorbell - - - items: - - const: doorbell - - pattern: "^shared[0-7]$" - - pattern: "^shared[0-7]$" - - pattern: "^shared[0-7]$" - - pattern: "^shared[0-7]$" - - pattern: "^shared[0-7]$" - - pattern: "^shared[0-7]$" - - pattern: "^shared[0-7]$" - - pattern: "^shared[0-7]$" - - - items: - - pattern: "^shared[0-7]$" - - pattern: "^shared[0-7]$" - - pattern: "^shared[0-7]$" - - pattern: "^shared[0-7]$" - - "#mbox-cells": - const: 2 - -additionalProperties: false - -examples: - - | - #include - #include - - hsp_top0: hsp@3c00000 { - compatible = "nvidia,tegra186-hsp"; - reg = <0x03c00000 0xa0000>; - interrupts = ; - interrupt-names = "doorbell"; - #mbox-cells = <2>; - }; - - client { - mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_DB TEGRA_HSP_DB_MASTER_CCPLEX>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mailbox/nvidia,tegra186-hsp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra Hardware Synchronization Primitives (HSP) + +maintainers: + - Thierry Reding + - Jon Hunter + +description: | + The HSP modules are used for the processors to share resources and + communicate together. It provides a set of hardware synchronization + primitives for interprocessor communication. So the interprocessor + communication (IPC) protocols can use hardware synchronization + primitives, when operating between two processors not in an SMP + relationship. + + The features that HSP supported are shared mailboxes, shared + semaphores, arbitrated semaphores and doorbells. + + The mbox specifier of the "mboxes" property in the client node should + contain two cells. The first cell determines the HSP type and the + second cell is used to identify the mailbox that the client is going + to use. + + For shared mailboxes, the first cell composed of two fields: + - bits 15..8: + A bit mask of flags that further specifies the type of shared + mailbox to be used (based on the data size). If no flag is + specified then, 32-bit shared mailbox is used. + - bits 7..0: + Defines the type of the mailbox to be used. This field should be + TEGRA_HSP_MBOX_TYPE_SM for shared mailboxes. + + For doorbells, the second cell specifies the index of the doorbell to + use. + + For shared mailboxes, the second cell is composed of two fields: + - bits 31..24: + A bit mask of flags that further specify how the shared mailbox + will be used. Valid flags are: + - bit 31: + Defines the direction of the mailbox. If set, the mailbox + will be used as a producer (i.e. used to send data). If + cleared, the mailbox is the consumer of data sent by a + producer. + + - bits 23..0: + The index of the shared mailbox to use. The number of available + mailboxes may vary by instance of the HSP block and SoC + generation. + + The following file contains definitions that can be used to + construct mailbox specifiers: + + + +properties: + $nodename: + pattern: "^hsp@[0-9a-f]+$" + + compatible: + oneOf: + - const: nvidia,tegra186-hsp + - const: nvidia,tegra194-hsp + - const: nvidia,tegra264-hsp + - items: + - const: nvidia,tegra234-hsp + - const: nvidia,tegra194-hsp + + reg: + maxItems: 1 + + interrupts: + minItems: 1 + maxItems: 9 + + interrupt-names: + oneOf: + # shared interrupts are optional + - items: + - const: doorbell + + - items: + - const: doorbell + - pattern: "^shared[0-7]$" + - pattern: "^shared[0-7]$" + - pattern: "^shared[0-7]$" + - pattern: "^shared[0-7]$" + - pattern: "^shared[0-7]$" + - pattern: "^shared[0-7]$" + - pattern: "^shared[0-7]$" + - pattern: "^shared[0-7]$" + + - items: + - pattern: "^shared[0-7]$" + - pattern: "^shared[0-7]$" + - pattern: "^shared[0-7]$" + - pattern: "^shared[0-7]$" + + "#mbox-cells": + const: 2 + +additionalProperties: false + +examples: + - | + #include + #include + + hsp_top0: hsp@3c00000 { + compatible = "nvidia,tegra186-hsp"; + reg = <0x03c00000 0xa0000>; + interrupts = ; + interrupt-names = "doorbell"; + #mbox-cells = <2>; + }; + + client { + mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_DB TEGRA_HSP_DB_MASTER_CCPLEX>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/brcm,bcm2835-unicam.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/brcm,bcm2835-unicam.yaml index e027cf294..5fb5d60f0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/brcm,bcm2835-unicam.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/brcm,bcm2835-unicam.yaml @@ -1,127 +1,127 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/brcm,bcm2835-unicam.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Broadcom BCM283x Camera Interface (Unicam) - -maintainers: - - Raspberry Pi Kernel Maintenance - -description: |- - The Unicam block on BCM283x SoCs is the receiver for either - CSI-2 or CCP2 data from image sensors or similar devices. - - The main platform using this SoC is the Raspberry Pi family of boards. On - the Pi the VideoCore firmware can also control this hardware block, and - driving it from two different processors will cause issues. To avoid this, - the firmware checks the device tree configuration during boot. If it finds - device tree nodes whose name starts with 'csi' then it will stop the firmware - accessing the block, and it can then safely be used via the device tree - binding. - -properties: - compatible: - const: brcm,bcm2835-unicam - - reg: - items: - - description: Unicam block. - - description: Clock Manager Image (CMI) block. - - reg-names: - items: - - const: unicam - - const: cmi - - interrupts: - maxItems: 1 - - clocks: - items: - - description: Clock to drive the LP state machine of Unicam. - - description: Clock for the VPU (core clock). - - clock-names: - items: - - const: lp - - const: vpu - - power-domains: - items: - - description: Unicam power domain - - brcm,num-data-lanes: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [ 2, 4 ] - description: | - Number of CSI-2 data lanes supported by this Unicam instance. The number - of data lanes actively used is specified with the data-lanes endpoint - property. - - port: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - - properties: - endpoint: - $ref: /schemas/media/video-interfaces.yaml# - additionalProperties: false - - properties: - bus-type: - enum: [ 3, 4 ] - - clock-noncontinuous: true - data-lanes: true - remote-endpoint: true - - required: - - bus-type - - data-lanes - - remote-endpoint - - required: - - endpoint - -required: - - compatible - - reg - - reg-names - - interrupts - - clocks - - clock-names - - power-domains - - brcm,num-data-lanes - - port - -additionalProperties: False - -examples: - - | - #include - #include - #include - #include - - csi1: csi@7e801000 { - compatible = "brcm,bcm2835-unicam"; - reg = <0x7e801000 0x800>, - <0x7e802004 0x4>; - reg-names = "unicam", "cmi"; - interrupts = ; - clocks = <&clocks BCM2835_CLOCK_CAM1>, - <&firmware_clocks 4>; - clock-names = "lp", "vpu"; - power-domains = <&power RPI_POWER_DOMAIN_UNICAM1>; - brcm,num-data-lanes = <2>; - port { - csi1_ep: endpoint { - remote-endpoint = <&imx219_0>; - bus-type = ; - data-lanes = <1 2>; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/brcm,bcm2835-unicam.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM283x Camera Interface (Unicam) + +maintainers: + - Raspberry Pi Kernel Maintenance + +description: |- + The Unicam block on BCM283x SoCs is the receiver for either + CSI-2 or CCP2 data from image sensors or similar devices. + + The main platform using this SoC is the Raspberry Pi family of boards. On + the Pi the VideoCore firmware can also control this hardware block, and + driving it from two different processors will cause issues. To avoid this, + the firmware checks the device tree configuration during boot. If it finds + device tree nodes whose name starts with 'csi' then it will stop the firmware + accessing the block, and it can then safely be used via the device tree + binding. + +properties: + compatible: + const: brcm,bcm2835-unicam + + reg: + items: + - description: Unicam block. + - description: Clock Manager Image (CMI) block. + + reg-names: + items: + - const: unicam + - const: cmi + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Clock to drive the LP state machine of Unicam. + - description: Clock for the VPU (core clock). + + clock-names: + items: + - const: lp + - const: vpu + + power-domains: + items: + - description: Unicam power domain + + brcm,num-data-lanes: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 2, 4 ] + description: | + Number of CSI-2 data lanes supported by this Unicam instance. The number + of data lanes actively used is specified with the data-lanes endpoint + property. + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + additionalProperties: false + + properties: + bus-type: + enum: [ 3, 4 ] + + clock-noncontinuous: true + data-lanes: true + remote-endpoint: true + + required: + - bus-type + - data-lanes + - remote-endpoint + + required: + - endpoint + +required: + - compatible + - reg + - reg-names + - interrupts + - clocks + - clock-names + - power-domains + - brcm,num-data-lanes + - port + +additionalProperties: False + +examples: + - | + #include + #include + #include + #include + + csi1: csi@7e801000 { + compatible = "brcm,bcm2835-unicam"; + reg = <0x7e801000 0x800>, + <0x7e802004 0x4>; + reg-names = "unicam", "cmi"; + interrupts = ; + clocks = <&clocks BCM2835_CLOCK_CAM1>, + <&firmware_clocks 4>; + clock-names = "lp", "vpu"; + power-domains = <&power RPI_POWER_DOMAIN_UNICAM1>; + brcm,num-data-lanes = <2>; + port { + csi1_ep: endpoint { + remote-endpoint = <&imx219_0>; + bus-type = ; + data-lanes = <1 2>; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/adv7180.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/adv7180.yaml index ef1790ca7..c8d887eee 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/adv7180.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/adv7180.yaml @@ -1,179 +1,179 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/i2c/adv7180.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Analog Devices ADV7180 analog video decoder family - -maintainers: - - Lars-Peter Clausen - -description: - The adv7180 family devices are used to capture analog video to different - digital interfaces like MIPI CSI-2 or parallel video. - -properties: - compatible: - items: - - enum: - - adi,adv7180 - - adi,adv7180cp - - adi,adv7180st - - adi,adv7182 - - adi,adv7280 - - adi,adv7280-m - - adi,adv7281 - - adi,adv7281-m - - adi,adv7281-ma - - adi,adv7282 - - adi,adv7282-m - - reg: - maxItems: 1 - - powerdown-gpios: - maxItems: 1 - - reset-gpios: - maxItems: 1 - - adv,force-bt656-4: - description: - Indicates that the output is a BT.656-4 compatible stream. - type: boolean - - port: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - - properties: - endpoint: - $ref: /schemas/media/video-interfaces.yaml# - unevaluatedProperties: false - - ports: true - -additionalProperties: false - -required: - - compatible - - reg - -allOf: - - if: - properties: - compatible: - enum: - - adi,adv7180 - - adi,adv7182 - - adi,adv7280 - - adi,adv7280-m - - adi,adv7281 - - adi,adv7281-m - - adi,adv7281-ma - - adi,adv7282 - - adi,adv7282-m - then: - required: - - port - - - if: - properties: - compatible: - contains: - const: adi,adv7180cp - then: - properties: - ports: - $ref: /schemas/graph.yaml#/properties/ports - properties: - port@3: - $ref: /schemas/graph.yaml#/properties/port - description: Output port - - patternProperties: - "^port@[0-2]$": - $ref: /schemas/graph.yaml#/properties/port - description: Input port - - required: - - port@3 - - required: - - ports - - - if: - properties: - compatible: - contains: - const: adi,adv7180st - then: - properties: - ports: - $ref: /schemas/graph.yaml#/properties/ports - properties: - port@6: - $ref: /schemas/graph.yaml#/properties/port - description: Output port - - patternProperties: - "^port@[0-5]$": - $ref: /schemas/graph.yaml#/properties/port - description: Input port - - required: - - port@6 - - required: - - ports - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - composite-in@20 { - compatible = "adi,adv7180"; - reg = <0x20>; - - port { - adv7180: endpoint { - bus-width = <8>; - remote-endpoint = <&vin1ep>; - }; - }; - }; - - }; - - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - composite-in@20 { - compatible = "adi,adv7180cp"; - reg = <0x20>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - adv7180_in: endpoint { - remote-endpoint = <&composite_con_in>; - }; - }; - - port@3 { - reg = <3>; - adv7180_out: endpoint { - remote-endpoint = <&vin4_in>; - }; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/adv7180.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices ADV7180 analog video decoder family + +maintainers: + - Lars-Peter Clausen + +description: + The adv7180 family devices are used to capture analog video to different + digital interfaces like MIPI CSI-2 or parallel video. + +properties: + compatible: + items: + - enum: + - adi,adv7180 + - adi,adv7180cp + - adi,adv7180st + - adi,adv7182 + - adi,adv7280 + - adi,adv7280-m + - adi,adv7281 + - adi,adv7281-m + - adi,adv7281-ma + - adi,adv7282 + - adi,adv7282-m + + reg: + maxItems: 1 + + powerdown-gpios: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + adv,force-bt656-4: + description: + Indicates that the output is a BT.656-4 compatible stream. + type: boolean + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + ports: true + +additionalProperties: false + +required: + - compatible + - reg + +allOf: + - if: + properties: + compatible: + enum: + - adi,adv7180 + - adi,adv7182 + - adi,adv7280 + - adi,adv7280-m + - adi,adv7281 + - adi,adv7281-m + - adi,adv7281-ma + - adi,adv7282 + - adi,adv7282-m + then: + required: + - port + + - if: + properties: + compatible: + contains: + const: adi,adv7180cp + then: + properties: + ports: + $ref: /schemas/graph.yaml#/properties/ports + properties: + port@3: + $ref: /schemas/graph.yaml#/properties/port + description: Output port + + patternProperties: + "^port@[0-2]$": + $ref: /schemas/graph.yaml#/properties/port + description: Input port + + required: + - port@3 + + required: + - ports + + - if: + properties: + compatible: + contains: + const: adi,adv7180st + then: + properties: + ports: + $ref: /schemas/graph.yaml#/properties/ports + properties: + port@6: + $ref: /schemas/graph.yaml#/properties/port + description: Output port + + patternProperties: + "^port@[0-5]$": + $ref: /schemas/graph.yaml#/properties/port + description: Input port + + required: + - port@6 + + required: + - ports + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + composite-in@20 { + compatible = "adi,adv7180"; + reg = <0x20>; + + port { + adv7180: endpoint { + bus-width = <8>; + remote-endpoint = <&vin1ep>; + }; + }; + }; + + }; + + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + composite-in@20 { + compatible = "adi,adv7180cp"; + reg = <0x20>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + adv7180_in: endpoint { + remote-endpoint = <&composite_con_in>; + }; + }; + + port@3 { + reg = <3>; + adv7180_out: endpoint { + remote-endpoint = <&vin4_in>; + }; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/imi,rdacm2x-gmsl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/imi,rdacm2x-gmsl.yaml index 585c3d599..e57575c44 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/imi,rdacm2x-gmsl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/imi,rdacm2x-gmsl.yaml @@ -1,137 +1,137 @@ -# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause -# Copyright (C) 2019 Renesas Electronics Corp. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/i2c/imi,rdacm2x-gmsl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: IMI D&D RDACM20 and RDACM21 Automotive Camera Platforms - -maintainers: - - Jacopo Mondi - - Kieran Bingham - - Laurent Pinchart - - Niklas Söderlund - -description: -| - The IMI D&D RDACM20 and RDACM21 are GMSL-compatible camera designed for - automotive applications. - - The RDACM20 camera module encloses a Maxim Integrated MAX9271 GMSL serializer, - coupled with an OV10635 image sensor and an embedded MCU. Both the MCU and - the image sensor are connected to the serializer local I2C bus and are - accessible by the host SoC by direct addressing. - - The RDACM21 camera module encloses the same serializer, coupled with an - OV10640 image sensor and an OV490 ISP. Only the OV490 ISP is interfaced to - the serializer local I2C bus while the image sensor is not accessible from - the host SoC. - - They both connect to a remote GMSL endpoint through a coaxial cable. - - IMI RDACM20 - +---------------+ +--------------------------------+ - | GMSL | <- Video Stream | <- Video--------\ | - | |< === GMSL Link ====== >|MAX9271<- I2C bus-> <-->OV10635 | - | de-serializer | <- I2C messages -> | \<-->MCU | - +---------------+ +--------------------------------+ - - IMI RDACM21 - +---------------+ +--------------------------------+ - | GMSL | <- Video Stream | <- Video--------\ | - | |< === GMSL Link ====== >|MAX9271<- I2C bus-> <-->OV490 | - | | <- I2C messages -> | | | - | de-serializer | | OV10640 <-------| | - +---------------+ +--------------------------------+ - - Both camera modules serialize video data generated by the embedded camera - sensor on the GMSL serial channel to a remote GMSL de-serializer. They also - receive and transmit I2C messages encapsulated and transmitted on the GMSL - bidirectional control channel. - - All I2C traffic received on the GMSL link not directed to the serializer is - propagated on the local I2C bus to the remote device there connected. All the - I2C traffic generated on the local I2C bus not directed to the serializer is - propagated to the remote de-serializer encapsulated in the GMSL control - channel. - - The RDACM20 and RDACM21 DT node should be a direct child of the GMSL - deserializer's I2C bus corresponding to the GMSL link that the camera is - attached to. - -properties: - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - - compatible: - enum: - - imi,rdacm20 - - imi,rdacm21 - - reg: - description: -| - I2C device addresses, the first to be assigned to the serializer, the - following ones to be assigned to the remote devices. - - For RDACM20 the second entry of the property is assigned to the - OV10635 image sensor and the optional third one to the embedded MCU. - - For RDACM21 the second entry is assigned to the OV490 ISP and the optional - third one ignored. - - minItems: 2 - maxItems: 3 - - port: - $ref: /schemas/graph.yaml#/properties/port - description: - Connection to the remote GMSL endpoint. - -required: - - compatible - - reg - - port - -additionalProperties: false - -examples: - - | - i2c@e66d8000 { - #address-cells = <1>; - #size-cells = <0>; - - reg = <0 0xe66d8000>; - - camera@31 { - compatible = "imi,rdacm20"; - reg = <0x31>, <0x41>, <0x51>; - - port { - rdacm20_out0: endpoint { - remote-endpoint = <&max9286_in0>; - }; - }; - }; - }; - - - | - i2c@e66d8000 { - #address-cells = <1>; - #size-cells = <0>; - - reg = <0 0xe66d8000>; - - camera@31 { - compatible = "imi,rdacm21"; - reg = <0x31>, <0x41>; - - port { - rdacm21_out0: endpoint { - remote-endpoint = <&max9286_in0>; - }; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +# Copyright (C) 2019 Renesas Electronics Corp. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/imi,rdacm2x-gmsl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IMI D&D RDACM20 and RDACM21 Automotive Camera Platforms + +maintainers: + - Jacopo Mondi + - Kieran Bingham + - Laurent Pinchart + - Niklas Söderlund + +description: -| + The IMI D&D RDACM20 and RDACM21 are GMSL-compatible camera designed for + automotive applications. + + The RDACM20 camera module encloses a Maxim Integrated MAX9271 GMSL serializer, + coupled with an OV10635 image sensor and an embedded MCU. Both the MCU and + the image sensor are connected to the serializer local I2C bus and are + accessible by the host SoC by direct addressing. + + The RDACM21 camera module encloses the same serializer, coupled with an + OV10640 image sensor and an OV490 ISP. Only the OV490 ISP is interfaced to + the serializer local I2C bus while the image sensor is not accessible from + the host SoC. + + They both connect to a remote GMSL endpoint through a coaxial cable. + + IMI RDACM20 + +---------------+ +--------------------------------+ + | GMSL | <- Video Stream | <- Video--------\ | + | |< === GMSL Link ====== >|MAX9271<- I2C bus-> <-->OV10635 | + | de-serializer | <- I2C messages -> | \<-->MCU | + +---------------+ +--------------------------------+ + + IMI RDACM21 + +---------------+ +--------------------------------+ + | GMSL | <- Video Stream | <- Video--------\ | + | |< === GMSL Link ====== >|MAX9271<- I2C bus-> <-->OV490 | + | | <- I2C messages -> | | | + | de-serializer | | OV10640 <-------| | + +---------------+ +--------------------------------+ + + Both camera modules serialize video data generated by the embedded camera + sensor on the GMSL serial channel to a remote GMSL de-serializer. They also + receive and transmit I2C messages encapsulated and transmitted on the GMSL + bidirectional control channel. + + All I2C traffic received on the GMSL link not directed to the serializer is + propagated on the local I2C bus to the remote device there connected. All the + I2C traffic generated on the local I2C bus not directed to the serializer is + propagated to the remote de-serializer encapsulated in the GMSL control + channel. + + The RDACM20 and RDACM21 DT node should be a direct child of the GMSL + deserializer's I2C bus corresponding to the GMSL link that the camera is + attached to. + +properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + compatible: + enum: + - imi,rdacm20 + - imi,rdacm21 + + reg: + description: -| + I2C device addresses, the first to be assigned to the serializer, the + following ones to be assigned to the remote devices. + + For RDACM20 the second entry of the property is assigned to the + OV10635 image sensor and the optional third one to the embedded MCU. + + For RDACM21 the second entry is assigned to the OV490 ISP and the optional + third one ignored. + + minItems: 2 + maxItems: 3 + + port: + $ref: /schemas/graph.yaml#/properties/port + description: + Connection to the remote GMSL endpoint. + +required: + - compatible + - reg + - port + +additionalProperties: false + +examples: + - | + i2c@e66d8000 { + #address-cells = <1>; + #size-cells = <0>; + + reg = <0 0xe66d8000>; + + camera@31 { + compatible = "imi,rdacm20"; + reg = <0x31>, <0x41>, <0x51>; + + port { + rdacm20_out0: endpoint { + remote-endpoint = <&max9286_in0>; + }; + }; + }; + }; + + - | + i2c@e66d8000 { + #address-cells = <1>; + #size-cells = <0>; + + reg = <0 0xe66d8000>; + + camera@31 { + compatible = "imi,rdacm21"; + reg = <0x31>, <0x41>; + + port { + rdacm21_out0: endpoint { + remote-endpoint = <&max9286_in0>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml index f6a8d178d..6c72e77b9 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml @@ -1,118 +1,118 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (C) 2021 Renesas Electronics Corp. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/i2c/maxim,max96712.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Quad GMSL2 to CSI-2 Deserializer with GMSL1 Compatibility - -maintainers: - - Niklas Söderlund - -description: | - The MAX96712 deserializer converts GMSL2 or GMSL1 serial inputs into MIPI - CSI-2 D-PHY or C-PHY formatted outputs. The device allows each link to - simultaneously transmit bidirectional control-channel data while forward - video transmissions are in progress. The MAX96712 can accommodate as many as - four remotely located sensors using industry-standard coax or STP - interconnects. - - Each GMSL2 serial link operates at a fixed rate of 3Gbps or 6Gbps in the - forward direction and 187.5Mbps in the reverse direction. In GMSL1 mode, the - MAX96712 can be paired with first-generation 3.12Gbps or 1.5Gbps GMSL1 - serializers or operate up to 3.12Gbps with GMSL2 serializers in GMSL1 mode. - -properties: - compatible: - const: maxim,max96712 - - reg: - description: I2C device address - maxItems: 1 - - enable-gpios: true - - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port@0: - $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 0 - - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 1 - - port@2: - $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 2 - - port@3: - $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 3 - - port@4: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: CSI-2 Output - - properties: - endpoint: - $ref: /schemas/media/video-interfaces.yaml# - unevaluatedProperties: false - - properties: - data-lanes: true - bus-type: - enum: - - 1 # MEDIA_BUS_TYPE_CSI2_CPHY - - 4 # MEDIA_BUS_TYPE_CSI2_DPHY - - required: - - data-lanes - - bus-type - - required: - - port@4 - -required: - - compatible - - reg - - ports - -additionalProperties: false - -examples: - - | - #include - #include - - i2c@e6508000 { - #address-cells = <1>; - #size-cells = <0>; - - reg = <0 0xe6508000>; - - gmsl0: gmsl-deserializer@49 { - compatible = "maxim,max96712"; - reg = <0x49>; - enable-gpios = <&pca9654_a 0 GPIO_ACTIVE_HIGH>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@4 { - reg = <4>; - max96712_out0: endpoint { - bus-type = ; - clock-lanes = <0>; - data-lanes = <1 2 3 4>; - remote-endpoint = <&csi40_in>; - }; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2021 Renesas Electronics Corp. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/maxim,max96712.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Quad GMSL2 to CSI-2 Deserializer with GMSL1 Compatibility + +maintainers: + - Niklas Söderlund + +description: | + The MAX96712 deserializer converts GMSL2 or GMSL1 serial inputs into MIPI + CSI-2 D-PHY or C-PHY formatted outputs. The device allows each link to + simultaneously transmit bidirectional control-channel data while forward + video transmissions are in progress. The MAX96712 can accommodate as many as + four remotely located sensors using industry-standard coax or STP + interconnects. + + Each GMSL2 serial link operates at a fixed rate of 3Gbps or 6Gbps in the + forward direction and 187.5Mbps in the reverse direction. In GMSL1 mode, the + MAX96712 can be paired with first-generation 3.12Gbps or 1.5Gbps GMSL1 + serializers or operate up to 3.12Gbps with GMSL2 serializers in GMSL1 mode. + +properties: + compatible: + const: maxim,max96712 + + reg: + description: I2C device address + maxItems: 1 + + enable-gpios: true + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: GMSL Input 0 + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: GMSL Input 1 + + port@2: + $ref: /schemas/graph.yaml#/properties/port + description: GMSL Input 2 + + port@3: + $ref: /schemas/graph.yaml#/properties/port + description: GMSL Input 3 + + port@4: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: CSI-2 Output + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: true + bus-type: + enum: + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY + + required: + - data-lanes + - bus-type + + required: + - port@4 + +required: + - compatible + - reg + - ports + +additionalProperties: false + +examples: + - | + #include + #include + + i2c@e6508000 { + #address-cells = <1>; + #size-cells = <0>; + + reg = <0 0xe6508000>; + + gmsl0: gmsl-deserializer@49 { + compatible = "maxim,max96712"; + reg = <0x49>; + enable-gpios = <&pca9654_a 0 GPIO_ACTIVE_HIGH>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@4 { + reg = <4>; + max96712_out0: endpoint { + bus-type = ; + clock-lanes = <0>; + data-lanes = <1 2 3 4>; + remote-endpoint = <&csi40_in>; + }; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml index 0e5327884..d1e8ba6e3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml @@ -1,157 +1,157 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (C) 2024 Collabora Ltd. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/i2c/maxim,max96717.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MAX96717 CSI-2 to GMSL2 Serializer - -maintainers: - - Julien Massot - -description: - The MAX96717 serializer converts MIPI CSI-2 D-PHY formatted input - into GMSL2 serial outputs. The device allows the GMSL2 link to - simultaneously transmit bidirectional control-channel data while forward - video transmissions are in progress. The MAX96717 can connect to one - remotely located deserializer using industry-standard coax or STP - interconnects. The device cans operate in pixel or tunnel mode. In pixel mode - the MAX96717 can select the MIPI datatype, while the tunnel mode forward all the MIPI - data received by the serializer. - The MAX96717 supports Reference Over Reverse (channel), - to generate a clock output for the sensor from the GMSL reverse channel. - - The GMSL2 serial link operates at a fixed rate of 3Gbps or 6Gbps in the - forward direction and 187.5Mbps in the reverse direction. - MAX96717F only supports a fixed rate of 3Gbps in the forward direction. - -properties: - compatible: - oneOf: - - const: maxim,max96717f - - items: - - enum: - - maxim,max96717 - - const: maxim,max96717f - - '#gpio-cells': - const: 2 - description: - First cell is the GPIO pin number, second cell is the flags. The GPIO pin - number must be in range of [0, 10]. - - gpio-controller: true - - '#clock-cells': - const: 0 - - reg: - maxItems: 1 - - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port@0: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: CSI-2 Input port - - properties: - endpoint: - $ref: /schemas/media/video-interfaces.yaml# - unevaluatedProperties: false - - properties: - data-lanes: - minItems: 1 - maxItems: 4 - - lane-polarities: - minItems: 1 - maxItems: 5 - - required: - - data-lanes - - port@1: - $ref: /schemas/graph.yaml#/properties/port - unevaluatedProperties: false - description: GMSL Output port - - required: - - port@1 - - i2c-gate: - $ref: /schemas/i2c/i2c-gate.yaml - unevaluatedProperties: false - description: - The MAX96717 will forward the I2C requests from the - incoming GMSL2 link. Therefore, it supports an i2c-gate - subnode to configure a sensor. - -required: - - compatible - - reg - - ports - -additionalProperties: false - -examples: - - | - #include - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - serializer: serializer@40 { - compatible = "maxim,max96717f"; - reg = <0x40>; - gpio-controller; - #gpio-cells = <2>; - #clock-cells = <0>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - max96717f_csi_in: endpoint { - data-lanes = <1 2 3 4>; - remote-endpoint = <&sensor_out>; - }; - }; - - port@1 { - reg = <1>; - max96917f_gmsl_out: endpoint { - remote-endpoint = <&deser_gmsl_in>; - }; - }; - }; - - i2c-gate { - #address-cells = <1>; - #size-cells = <0>; - sensor@10 { - compatible = "st,st-vgxy61"; - reg = <0x10>; - reset-gpios = <&serializer 0 GPIO_ACTIVE_LOW>; - clocks = <&serializer>; - VCORE-supply = <&v1v2>; - VDDIO-supply = <&v1v8>; - VANA-supply = <&v2v8>; - port { - sensor_out: endpoint { - data-lanes = <1 2 3 4>; - remote-endpoint = <&max96717f_csi_in>; - }; - }; - }; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2024 Collabora Ltd. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/maxim,max96717.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MAX96717 CSI-2 to GMSL2 Serializer + +maintainers: + - Julien Massot + +description: + The MAX96717 serializer converts MIPI CSI-2 D-PHY formatted input + into GMSL2 serial outputs. The device allows the GMSL2 link to + simultaneously transmit bidirectional control-channel data while forward + video transmissions are in progress. The MAX96717 can connect to one + remotely located deserializer using industry-standard coax or STP + interconnects. The device cans operate in pixel or tunnel mode. In pixel mode + the MAX96717 can select the MIPI datatype, while the tunnel mode forward all the MIPI + data received by the serializer. + The MAX96717 supports Reference Over Reverse (channel), + to generate a clock output for the sensor from the GMSL reverse channel. + + The GMSL2 serial link operates at a fixed rate of 3Gbps or 6Gbps in the + forward direction and 187.5Mbps in the reverse direction. + MAX96717F only supports a fixed rate of 3Gbps in the forward direction. + +properties: + compatible: + oneOf: + - const: maxim,max96717f + - items: + - enum: + - maxim,max96717 + - const: maxim,max96717f + + '#gpio-cells': + const: 2 + description: + First cell is the GPIO pin number, second cell is the flags. The GPIO pin + number must be in range of [0, 10]. + + gpio-controller: true + + '#clock-cells': + const: 0 + + reg: + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: CSI-2 Input port + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + minItems: 1 + maxItems: 4 + + lane-polarities: + minItems: 1 + maxItems: 5 + + required: + - data-lanes + + port@1: + $ref: /schemas/graph.yaml#/properties/port + unevaluatedProperties: false + description: GMSL Output port + + required: + - port@1 + + i2c-gate: + $ref: /schemas/i2c/i2c-gate.yaml + unevaluatedProperties: false + description: + The MAX96717 will forward the I2C requests from the + incoming GMSL2 link. Therefore, it supports an i2c-gate + subnode to configure a sensor. + +required: + - compatible + - reg + - ports + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + serializer: serializer@40 { + compatible = "maxim,max96717f"; + reg = <0x40>; + gpio-controller; + #gpio-cells = <2>; + #clock-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + max96717f_csi_in: endpoint { + data-lanes = <1 2 3 4>; + remote-endpoint = <&sensor_out>; + }; + }; + + port@1 { + reg = <1>; + max96917f_gmsl_out: endpoint { + remote-endpoint = <&deser_gmsl_in>; + }; + }; + }; + + i2c-gate { + #address-cells = <1>; + #size-cells = <0>; + sensor@10 { + compatible = "st,st-vgxy61"; + reg = <0x10>; + reset-gpios = <&serializer 0 GPIO_ACTIVE_LOW>; + clocks = <&serializer>; + VCORE-supply = <&v1v2>; + VDDIO-supply = <&v1v8>; + VANA-supply = <&v2v8>; + port { + sensor_out: endpoint { + data-lanes = <1 2 3 4>; + remote-endpoint = <&max96717f_csi_in>; + }; + }; + }; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml index b9e98374f..f8ace8cbc 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml @@ -1,133 +1,133 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (C) 2014--2020 Intel Corporation -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/i2c/mipi-ccs.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MIPI CCS, SMIA++ and SMIA compliant camera sensors - -maintainers: - - Sakari Ailus - -description: - - CCS (Camera Command Set) is a raw Bayer camera sensor standard defined by the - MIPI Alliance; see - . - - SMIA (Standard Mobile Imaging Architecture) is an image sensor standard - defined jointly by Nokia and ST. SMIA++, defined by Nokia, is an extension of - that. - - More detailed documentation can be found in - Documentation/devicetree/bindings/media/video-interfaces.txt . - -properties: - compatible: - oneOf: - - items: - - const: mipi-ccs-1.1 - - const: mipi-ccs - - items: - - const: mipi-ccs-1.0 - - const: mipi-ccs - - const: nokia,smia - - reg: - maxItems: 1 - - vana-supply: - description: Analogue voltage supply (VANA), sensor dependent. - - vcore-supply: - description: Core voltage supply (VCore), sensor dependent. - - vio-supply: - description: I/O voltage supply (VIO), sensor dependent. - - clocks: - description: External clock to the sensor. - maxItems: 1 - - clock-frequency: - description: Frequency of the external clock to the sensor in Hz. - - reset-gpios: - description: Reset GPIO. Also commonly called XSHUTDOWN in hardware - documentation. - maxItems: 1 - - flash-leds: - description: Flash LED phandles. See ../video-interfaces.txt for details. - - lens-focus: - description: Lens focus controller phandles. See ../video-interfaces.txt - for details. - - rotation: - description: Rotation of the sensor. See ../video-interfaces.txt for - details. - enum: [ 0, 180 ] - - port: - $ref: /schemas/graph.yaml#/$defs/port-base - additionalProperties: false - - properties: - endpoint: - $ref: /schemas/media/video-interfaces.yaml# - unevaluatedProperties: false - - properties: - link-frequencies: true - data-lanes: true - bus-type: - enum: - - 1 # CSI-2 C-PHY - - 3 # CCP2 - - 4 # CSI-2 D-PHY - - required: - - link-frequencies - - data-lanes - - bus-type - -required: - - compatible - - reg - - clock-frequency - - clocks - -additionalProperties: false - -examples: - - | - #include - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - clock-frequency = <400000>; - - camera-sensor@10 { - compatible = "mipi-ccs-1.0", "mipi-ccs"; - reg = <0x10>; - reset-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>; - vana-supply = <&vaux3>; - clocks = <&omap3_isp 0>; - clock-frequency = <9600000>; - port { - ccs_ep: endpoint { - data-lanes = <1 2>; - remote-endpoint = <&csi2a_ep>; - link-frequencies = /bits/ 64 <199200000 210000000 - 499200000>; - bus-type = ; - }; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2014--2020 Intel Corporation +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/mipi-ccs.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MIPI CCS, SMIA++ and SMIA compliant camera sensors + +maintainers: + - Sakari Ailus + +description: + + CCS (Camera Command Set) is a raw Bayer camera sensor standard defined by the + MIPI Alliance; see + . + + SMIA (Standard Mobile Imaging Architecture) is an image sensor standard + defined jointly by Nokia and ST. SMIA++, defined by Nokia, is an extension of + that. + + More detailed documentation can be found in + Documentation/devicetree/bindings/media/video-interfaces.txt . + +properties: + compatible: + oneOf: + - items: + - const: mipi-ccs-1.1 + - const: mipi-ccs + - items: + - const: mipi-ccs-1.0 + - const: mipi-ccs + - const: nokia,smia + + reg: + maxItems: 1 + + vana-supply: + description: Analogue voltage supply (VANA), sensor dependent. + + vcore-supply: + description: Core voltage supply (VCore), sensor dependent. + + vio-supply: + description: I/O voltage supply (VIO), sensor dependent. + + clocks: + description: External clock to the sensor. + maxItems: 1 + + clock-frequency: + description: Frequency of the external clock to the sensor in Hz. + + reset-gpios: + description: Reset GPIO. Also commonly called XSHUTDOWN in hardware + documentation. + maxItems: 1 + + flash-leds: + description: Flash LED phandles. See ../video-interfaces.txt for details. + + lens-focus: + description: Lens focus controller phandles. See ../video-interfaces.txt + for details. + + rotation: + description: Rotation of the sensor. See ../video-interfaces.txt for + details. + enum: [ 0, 180 ] + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + link-frequencies: true + data-lanes: true + bus-type: + enum: + - 1 # CSI-2 C-PHY + - 3 # CCP2 + - 4 # CSI-2 D-PHY + + required: + - link-frequencies + - data-lanes + - bus-type + +required: + - compatible + - reg + - clock-frequency + - clocks + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + clock-frequency = <400000>; + + camera-sensor@10 { + compatible = "mipi-ccs-1.0", "mipi-ccs"; + reg = <0x10>; + reset-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>; + vana-supply = <&vaux3>; + clocks = <&omap3_isp 0>; + clock-frequency = <9600000>; + port { + ccs_ep: endpoint { + data-lanes = <1 2>; + remote-endpoint = <&csi2a_ep>; + link-frequencies = /bits/ 64 <199200000 210000000 + 499200000>; + bus-type = ; + }; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/ovti,ov02a10.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/ovti,ov02a10.yaml index 9a4481e84..67c1c2913 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/ovti,ov02a10.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/ovti,ov02a10.yaml @@ -1,148 +1,148 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -# Copyright (c) 2020 MediaTek Inc. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/i2c/ovti,ov02a10.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Omnivision OV02A10 CMOS Sensor - -maintainers: - - Dongchun Zhu - -description: |- - The Omnivision OV02A10 is a low-cost, high performance, 1/5-inch, 2 megapixel - image sensor, which is the latest production derived from Omnivision's CMOS - image sensor technology. Ihis chip supports high frame rate speeds up to 30fps - @ 1600x1200 (UXGA) resolution transferred over a 1-lane MIPI interface. The - sensor output is available via CSI-2 serial data output. - -allOf: - - $ref: /schemas/media/video-interface-devices.yaml# - -properties: - compatible: - const: ovti,ov02a10 - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - clock-names: - description: - External clock for the sensor. - items: - - const: eclk - - clock-frequency: - description: - Frequency of the eclk clock in Hz. - - dovdd-supply: - description: - Definition of the regulator used as Digital I/O voltage supply. - - avdd-supply: - description: - Definition of the regulator used as Analog voltage supply. - - dvdd-supply: - description: - Definition of the regulator used as Digital core voltage supply. - - powerdown-gpios: - description: - Must be the device tree identifier of the GPIO connected to the - PD_PAD pin. This pin is used to place the OV02A10 into standby mode - or shutdown mode. As the line needs to be high for the powerdown mode - to be active, it should be marked GPIO_ACTIVE_HIGH. - maxItems: 1 - - reset-gpios: - description: - Must be the device tree identifier of the GPIO connected to the - RST_PD pin. If specified, it will be asserted during driver probe. - As the line needs to be low for the reset to be active, it should be - marked GPIO_ACTIVE_LOW. - maxItems: 1 - - port: - $ref: /schemas/graph.yaml#/$defs/port-base - additionalProperties: false - description: - Output port node, single endpoint describing the CSI-2 transmitter. - - properties: - endpoint: - $ref: /schemas/media/video-interfaces.yaml# - unevaluatedProperties: false - - properties: - link-frequencies: true - ovti,mipi-clock-voltage: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Definition of MIPI clock voltage unit. This entry corresponds to - the link speed defined by the 'link-frequencies' property. - If present, the value shall be in the range of 0-4. - default: 4 - - required: - - link-frequencies - - required: - - endpoint - -required: - - compatible - - reg - - clocks - - clock-names - - clock-frequency - - dovdd-supply - - avdd-supply - - dvdd-supply - - powerdown-gpios - - reset-gpios - - port - -unevaluatedProperties: false - -examples: - - | - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - ov02a10: camera-sensor@3d { - compatible = "ovti,ov02a10"; - reg = <0x3d>; - - powerdown-gpios = <&pio 107 GPIO_ACTIVE_HIGH>; - reset-gpios = <&pio 109 GPIO_ACTIVE_LOW>; - - clocks = <&ov02a10_clk>; - clock-names = "eclk"; - clock-frequency = <24000000>; - - rotation = <180>; - - dovdd-supply = <&ov02a10_dovdd>; - avdd-supply = <&ov02a10_avdd>; - dvdd-supply = <&ov02a10_dvdd>; - - port { - wcam_out: endpoint { - link-frequencies = /bits/ 64 <390000000>; - ovti,mipi-clock-voltage = <3>; - remote-endpoint = <&mipi_in_wcam>; - }; - }; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright (c) 2020 MediaTek Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/ovti,ov02a10.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Omnivision OV02A10 CMOS Sensor + +maintainers: + - Dongchun Zhu + +description: |- + The Omnivision OV02A10 is a low-cost, high performance, 1/5-inch, 2 megapixel + image sensor, which is the latest production derived from Omnivision's CMOS + image sensor technology. Ihis chip supports high frame rate speeds up to 30fps + @ 1600x1200 (UXGA) resolution transferred over a 1-lane MIPI interface. The + sensor output is available via CSI-2 serial data output. + +allOf: + - $ref: /schemas/media/video-interface-devices.yaml# + +properties: + compatible: + const: ovti,ov02a10 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + description: + External clock for the sensor. + items: + - const: eclk + + clock-frequency: + description: + Frequency of the eclk clock in Hz. + + dovdd-supply: + description: + Definition of the regulator used as Digital I/O voltage supply. + + avdd-supply: + description: + Definition of the regulator used as Analog voltage supply. + + dvdd-supply: + description: + Definition of the regulator used as Digital core voltage supply. + + powerdown-gpios: + description: + Must be the device tree identifier of the GPIO connected to the + PD_PAD pin. This pin is used to place the OV02A10 into standby mode + or shutdown mode. As the line needs to be high for the powerdown mode + to be active, it should be marked GPIO_ACTIVE_HIGH. + maxItems: 1 + + reset-gpios: + description: + Must be the device tree identifier of the GPIO connected to the + RST_PD pin. If specified, it will be asserted during driver probe. + As the line needs to be low for the reset to be active, it should be + marked GPIO_ACTIVE_LOW. + maxItems: 1 + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + description: + Output port node, single endpoint describing the CSI-2 transmitter. + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + link-frequencies: true + ovti,mipi-clock-voltage: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Definition of MIPI clock voltage unit. This entry corresponds to + the link speed defined by the 'link-frequencies' property. + If present, the value shall be in the range of 0-4. + default: 4 + + required: + - link-frequencies + + required: + - endpoint + +required: + - compatible + - reg + - clocks + - clock-names + - clock-frequency + - dovdd-supply + - avdd-supply + - dvdd-supply + - powerdown-gpios + - reset-gpios + - port + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + ov02a10: camera-sensor@3d { + compatible = "ovti,ov02a10"; + reg = <0x3d>; + + powerdown-gpios = <&pio 107 GPIO_ACTIVE_HIGH>; + reset-gpios = <&pio 109 GPIO_ACTIVE_LOW>; + + clocks = <&ov02a10_clk>; + clock-names = "eclk"; + clock-frequency = <24000000>; + + rotation = <180>; + + dovdd-supply = <&ov02a10_dovdd>; + avdd-supply = <&ov02a10_avdd>; + dvdd-supply = <&ov02a10_dvdd>; + + port { + wcam_out: endpoint { + link-frequencies = /bits/ 64 <390000000>; + ovti,mipi-clock-voltage = <3>; + remote-endpoint = <&mipi_in_wcam>; + }; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml index 43b75a331..2c5e69356 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml @@ -1,149 +1,149 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/i2c/ovti,ov5640.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: OmniVision OV5640 Image Sensor - -maintainers: - - Steve Longerbeam - -allOf: - - $ref: /schemas/media/video-interface-devices.yaml# - -properties: - compatible: - const: ovti,ov5640 - - reg: - maxItems: 1 - - clocks: - description: XCLK Input Clock - - clock-names: - const: xclk - - AVDD-supply: - description: Analog voltage supply, 2.8 volts - - DVDD-supply: - description: Digital core voltage supply, 1.5 volts - - DOVDD-supply: - description: Digital I/O voltage supply, 1.8 volts - - powerdown-gpios: - maxItems: 1 - description: > - Reference to the GPIO connected to the powerdown pin, if any. - - reset-gpios: - maxItems: 1 - description: > - Reference to the GPIO connected to the reset pin, if any. - - port: - description: Digital Output Port - $ref: /schemas/graph.yaml#/$defs/port-base - additionalProperties: false - - properties: - endpoint: - $ref: /schemas/media/video-interfaces.yaml# - unevaluatedProperties: false - - properties: - clock-lanes: - const: 0 - - data-lanes: - minItems: 1 - maxItems: 2 - items: - enum: [1, 2] - - bus-width: - enum: [8, 10] - - data-shift: - enum: [0, 2] - -required: - - compatible - - reg - - clocks - - clock-names - - AVDD-supply - - DVDD-supply - - DOVDD-supply - - port - -unevaluatedProperties: false - -examples: - - | - #include - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - camera@3c { - compatible = "ovti,ov5640"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ov5640>; - reg = <0x3c>; - clocks = <&clks IMX6QDL_CLK_CKO>; - clock-names = "xclk"; - DOVDD-supply = <&vgen4_reg>; /* 1.8v */ - AVDD-supply = <&vgen3_reg>; /* 2.8v */ - DVDD-supply = <&vgen2_reg>; /* 1.5v */ - powerdown-gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>; - reset-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>; - rotation = <180>; - - port { - /* MIPI CSI-2 bus endpoint */ - ov5640_to_mipi_csi2: endpoint { - remote-endpoint = <&mipi_csi2_from_ov5640>; - clock-lanes = <0>; - data-lanes = <1 2>; - }; - }; - }; - }; - - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - camera@3c { - compatible = "ovti,ov5640"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ov5640>; - reg = <0x3c>; - clocks = <&clk_ext_camera>; - clock-names = "xclk"; - DOVDD-supply = <&vgen4_reg>; /* 1.8v */ - AVDD-supply = <&vgen3_reg>; /* 2.8v */ - DVDD-supply = <&vgen2_reg>; /* 1.5v */ - - port { - /* Parallel bus endpoint */ - ov5640_to_parallel: endpoint { - remote-endpoint = <¶llel_from_ov5640>; - bus-width = <8>; - data-shift = <2>; /* lines 9:2 are used */ - hsync-active = <0>; - vsync-active = <0>; - pclk-sample = <1>; - }; - }; - }; - }; - -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/ovti,ov5640.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: OmniVision OV5640 Image Sensor + +maintainers: + - Steve Longerbeam + +allOf: + - $ref: /schemas/media/video-interface-devices.yaml# + +properties: + compatible: + const: ovti,ov5640 + + reg: + maxItems: 1 + + clocks: + description: XCLK Input Clock + + clock-names: + const: xclk + + AVDD-supply: + description: Analog voltage supply, 2.8 volts + + DVDD-supply: + description: Digital core voltage supply, 1.5 volts + + DOVDD-supply: + description: Digital I/O voltage supply, 1.8 volts + + powerdown-gpios: + maxItems: 1 + description: > + Reference to the GPIO connected to the powerdown pin, if any. + + reset-gpios: + maxItems: 1 + description: > + Reference to the GPIO connected to the reset pin, if any. + + port: + description: Digital Output Port + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + clock-lanes: + const: 0 + + data-lanes: + minItems: 1 + maxItems: 2 + items: + enum: [1, 2] + + bus-width: + enum: [8, 10] + + data-shift: + enum: [0, 2] + +required: + - compatible + - reg + - clocks + - clock-names + - AVDD-supply + - DVDD-supply + - DOVDD-supply + - port + +unevaluatedProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + camera@3c { + compatible = "ovti,ov5640"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ov5640>; + reg = <0x3c>; + clocks = <&clks IMX6QDL_CLK_CKO>; + clock-names = "xclk"; + DOVDD-supply = <&vgen4_reg>; /* 1.8v */ + AVDD-supply = <&vgen3_reg>; /* 2.8v */ + DVDD-supply = <&vgen2_reg>; /* 1.5v */ + powerdown-gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>; + rotation = <180>; + + port { + /* MIPI CSI-2 bus endpoint */ + ov5640_to_mipi_csi2: endpoint { + remote-endpoint = <&mipi_csi2_from_ov5640>; + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; + }; + + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + camera@3c { + compatible = "ovti,ov5640"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ov5640>; + reg = <0x3c>; + clocks = <&clk_ext_camera>; + clock-names = "xclk"; + DOVDD-supply = <&vgen4_reg>; /* 1.8v */ + AVDD-supply = <&vgen3_reg>; /* 2.8v */ + DVDD-supply = <&vgen2_reg>; /* 1.5v */ + + port { + /* Parallel bus endpoint */ + ov5640_to_parallel: endpoint { + remote-endpoint = <¶llel_from_ov5640>; + bus-width = <8>; + data-shift = <2>; /* lines 9:2 are used */ + hsync-active = <0>; + vsync-active = <0>; + pclk-sample = <1>; + }; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/ovti,ov5693.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/ovti,ov5693.yaml index 28c696725..3368b3bd8 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/ovti,ov5693.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/ovti,ov5693.yaml @@ -1,141 +1,141 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (c) 2022 Amarulasolutions -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/i2c/ovti,ov5693.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Omnivision OV5693/OV5695 CMOS Sensors - -maintainers: - - Tommaso Merciai - -description: | - The Omnivision OV5693/OV5695 are high performance, 1/4-inch, 5 megapixel, CMOS - image sensors that deliver 2592x1944 at 30fps. It provides full-frame, - sub-sampled, and windowed 10-bit MIPI images in various formats via the - Serial Camera Control Bus (SCCB) interface. - - OV5693/OV5695 are controlled via I2C and two-wire Serial Camera Control Bus - (SCCB). The sensor output is available via CSI-2 serial data output (up to - 2-lane). - -allOf: - - $ref: /schemas/media/video-interface-devices.yaml# - - if: - properties: - compatible: - contains: - const: ovti,ov5693 - then: - properties: - port: - properties: - endpoint: - required: - - link-frequencies - -properties: - compatible: - enum: - - ovti,ov5693 - - ovti,ov5695 - - reg: - maxItems: 1 - - clocks: - description: - System input clock (aka XVCLK). From 6 to 27 MHz. - maxItems: 1 - - clock-names: - const: xvclk - - dovdd-supply: - description: - Digital I/O voltage supply, 1.8V. - - avdd-supply: - description: - Analog voltage supply, 2.8V. - - dvdd-supply: - description: - Digital core voltage supply, 1.2V. - - reset-gpios: - description: - The phandle and specifier for the GPIO that controls sensor reset. - This corresponds to the hardware pin XSHUTDN which is physically - active low. - maxItems: 1 - - port: - description: MIPI CSI-2 transmitter port - $ref: /schemas/graph.yaml#/$defs/port-base - additionalProperties: false - - properties: - endpoint: - $ref: /schemas/media/video-interfaces.yaml# - unevaluatedProperties: false - - properties: - link-frequencies: true - - data-lanes: - minItems: 1 - maxItems: 2 - - required: - - data-lanes - -required: - - compatible - - reg - - clocks - - port - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - ov5693: camera@36 { - compatible = "ovti,ov5693"; - reg = <0x36>; - - reset-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>; - pinctrl-names = "default"; - pinctrl-0 = <&cif_clkout_m0>; - - clocks = <&cru SCLK_CIF_OUT>; - assigned-clocks = <&cru SCLK_CIF_OUT>; - assigned-clock-rates = <19200000>; - - avdd-supply = <&vcc_1v8>; - dvdd-supply = <&vcc_1v2>; - dovdd-supply = <&vcc_2v8>; - - rotation = <90>; - orientation = <0>; - - port { - ucam_out: endpoint { - remote-endpoint = <&mipi_in_ucam>; - data-lanes = <1 2>; - link-frequencies = /bits/ 64 <450000000>; - }; - }; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (c) 2022 Amarulasolutions +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/ovti,ov5693.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Omnivision OV5693/OV5695 CMOS Sensors + +maintainers: + - Tommaso Merciai + +description: | + The Omnivision OV5693/OV5695 are high performance, 1/4-inch, 5 megapixel, CMOS + image sensors that deliver 2592x1944 at 30fps. It provides full-frame, + sub-sampled, and windowed 10-bit MIPI images in various formats via the + Serial Camera Control Bus (SCCB) interface. + + OV5693/OV5695 are controlled via I2C and two-wire Serial Camera Control Bus + (SCCB). The sensor output is available via CSI-2 serial data output (up to + 2-lane). + +allOf: + - $ref: /schemas/media/video-interface-devices.yaml# + - if: + properties: + compatible: + contains: + const: ovti,ov5693 + then: + properties: + port: + properties: + endpoint: + required: + - link-frequencies + +properties: + compatible: + enum: + - ovti,ov5693 + - ovti,ov5695 + + reg: + maxItems: 1 + + clocks: + description: + System input clock (aka XVCLK). From 6 to 27 MHz. + maxItems: 1 + + clock-names: + const: xvclk + + dovdd-supply: + description: + Digital I/O voltage supply, 1.8V. + + avdd-supply: + description: + Analog voltage supply, 2.8V. + + dvdd-supply: + description: + Digital core voltage supply, 1.2V. + + reset-gpios: + description: + The phandle and specifier for the GPIO that controls sensor reset. + This corresponds to the hardware pin XSHUTDN which is physically + active low. + maxItems: 1 + + port: + description: MIPI CSI-2 transmitter port + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + link-frequencies: true + + data-lanes: + minItems: 1 + maxItems: 2 + + required: + - data-lanes + +required: + - compatible + - reg + - clocks + - port + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + ov5693: camera@36 { + compatible = "ovti,ov5693"; + reg = <0x36>; + + reset-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&cif_clkout_m0>; + + clocks = <&cru SCLK_CIF_OUT>; + assigned-clocks = <&cru SCLK_CIF_OUT>; + assigned-clock-rates = <19200000>; + + avdd-supply = <&vcc_1v8>; + dvdd-supply = <&vcc_1v2>; + dovdd-supply = <&vcc_2v8>; + + rotation = <90>; + orientation = <0>; + + port { + ucam_out: endpoint { + remote-endpoint = <&mipi_in_ucam>; + data-lanes = <1 2>; + link-frequencies = /bits/ 64 <450000000>; + }; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml index b8daab85e..c978abc0c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml @@ -1,139 +1,139 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/i2c/sony,imx258.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Sony IMX258 13 Mpixel CMOS Digital Image Sensor - -maintainers: - - Krzysztof Kozlowski - -description: |- - IMX258 is a diagonal 5.867mm (Type 1/3.06) 13 Mega-pixel CMOS active pixel - type stacked image sensor with a square pixel array of size 4208 x 3120. It - is programmable through I2C interface. Image data is sent through MIPI - CSI-2. The sensor exists in two different models, a standard variant - (IMX258) and a variant with phase detection autofocus (IMX258-PDAF). - The camera module does not expose the model through registers, so the - exact model needs to be specified. - -properties: - compatible: - enum: - - sony,imx258 - - sony,imx258-pdaf - - assigned-clocks: true - assigned-clock-parents: true - assigned-clock-rates: true - - clocks: - description: - Clock frequency from 6 to 27 MHz. - maxItems: 1 - - reg: - maxItems: 1 - - reset-gpios: - description: |- - Reference to the GPIO connected to the XCLR pin, if any. - - vana-supply: - description: - Analog voltage (VANA) supply, 2.7 V - - vdig-supply: - description: - Digital I/O voltage (VDIG) supply, 1.2 V - - vif-supply: - description: - Interface voltage (VIF) supply, 1.8 V - - # See ../video-interfaces.txt for more details - port: - $ref: /schemas/graph.yaml#/$defs/port-base - additionalProperties: false - - properties: - endpoint: - $ref: /schemas/media/video-interfaces.yaml# - unevaluatedProperties: false - - properties: - data-lanes: - oneOf: - - items: - - const: 1 - - const: 2 - - const: 3 - - const: 4 - - items: - - const: 1 - - const: 2 - - link-frequencies: true - - required: - - data-lanes - - link-frequencies - -required: - - compatible - - reg - - port - -additionalProperties: false - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - sensor@6c { - compatible = "sony,imx258"; - reg = <0x6c>; - clocks = <&imx258_clk>; - - port { - endpoint { - remote-endpoint = <&csi1_ep>; - data-lanes = <1 2 3 4>; - link-frequencies = /bits/ 64 <320000000>; - }; - }; - }; - }; - - /* Oscillator on the camera board */ - imx258_clk: clk { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <19200000>; - }; - - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - sensor@6c { - compatible = "sony,imx258"; - reg = <0x6c>; - clocks = <&imx258_clk>; - - assigned-clocks = <&imx258_clk>; - assigned-clock-rates = <19200000>; - - port { - endpoint { - remote-endpoint = <&csi1_ep>; - data-lanes = <1 2 3 4>; - link-frequencies = /bits/ 64 <633600000>; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/sony,imx258.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sony IMX258 13 Mpixel CMOS Digital Image Sensor + +maintainers: + - Krzysztof Kozlowski + +description: |- + IMX258 is a diagonal 5.867mm (Type 1/3.06) 13 Mega-pixel CMOS active pixel + type stacked image sensor with a square pixel array of size 4208 x 3120. It + is programmable through I2C interface. Image data is sent through MIPI + CSI-2. The sensor exists in two different models, a standard variant + (IMX258) and a variant with phase detection autofocus (IMX258-PDAF). + The camera module does not expose the model through registers, so the + exact model needs to be specified. + +properties: + compatible: + enum: + - sony,imx258 + - sony,imx258-pdaf + + assigned-clocks: true + assigned-clock-parents: true + assigned-clock-rates: true + + clocks: + description: + Clock frequency from 6 to 27 MHz. + maxItems: 1 + + reg: + maxItems: 1 + + reset-gpios: + description: |- + Reference to the GPIO connected to the XCLR pin, if any. + + vana-supply: + description: + Analog voltage (VANA) supply, 2.7 V + + vdig-supply: + description: + Digital I/O voltage (VDIG) supply, 1.2 V + + vif-supply: + description: + Interface voltage (VIF) supply, 1.8 V + + # See ../video-interfaces.txt for more details + port: + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + oneOf: + - items: + - const: 1 + - const: 2 + - const: 3 + - const: 4 + - items: + - const: 1 + - const: 2 + + link-frequencies: true + + required: + - data-lanes + - link-frequencies + +required: + - compatible + - reg + - port + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + sensor@6c { + compatible = "sony,imx258"; + reg = <0x6c>; + clocks = <&imx258_clk>; + + port { + endpoint { + remote-endpoint = <&csi1_ep>; + data-lanes = <1 2 3 4>; + link-frequencies = /bits/ 64 <320000000>; + }; + }; + }; + }; + + /* Oscillator on the camera board */ + imx258_clk: clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <19200000>; + }; + + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + sensor@6c { + compatible = "sony,imx258"; + reg = <0x6c>; + clocks = <&imx258_clk>; + + assigned-clocks = <&imx258_clk>; + assigned-clock-rates = <19200000>; + + port { + endpoint { + remote-endpoint = <&csi1_ep>; + data-lanes = <1 2 3 4>; + link-frequencies = /bits/ 64 <633600000>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/sony,imx290.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/sony,imx290.yaml index f833b0938..bf05ca486 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/sony,imx290.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/sony,imx290.yaml @@ -1,143 +1,143 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/i2c/sony,imx290.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Sony IMX290 1/2.8-Inch CMOS Image Sensor - -maintainers: - - Manivannan Sadhasivam - - Laurent Pinchart - -description: |- - The Sony IMX290 is a 1/2.8-Inch CMOS Solid-state image sensor with Square - Pixel, available in either mono or colour variants. It is programmable - through I2C and 4-wire interfaces. - - The sensor output is available via CMOS logic parallel SDR output, Low voltage - LVDS DDR output and CSI-2 serial data output. The CSI-2 bus is the default. - No bindings have been defined for the other busses. - - imx290lqr is the full model identifier for the colour variant. "sony,imx290" - is treated the same as this as it was the original compatible string. - imx290llr is the mono version of the sensor. - -allOf: - - $ref: /schemas/media/video-interface-devices.yaml# - -properties: - compatible: - oneOf: - - enum: - - sony,imx290lqr # Colour - - sony,imx290llr # Monochrome - - sony,imx327lqr # Colour - - const: sony,imx290 - deprecated: true - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - clock-names: - description: Input clock (37.125 MHz or 74.25 MHz) - items: - - const: xclk - - clock-frequency: - description: Frequency of the xclk clock in Hz - - vdda-supply: - description: Analog power supply (2.9V) - - vddd-supply: - description: Digital core power supply (1.2V) - - vdddo-supply: - description: Digital I/O power supply (1.8V) - - reset-gpios: - description: Sensor reset (XCLR) GPIO - maxItems: 1 - - port: - $ref: /schemas/graph.yaml#/$defs/port-base - description: | - Video output port - - properties: - endpoint: - $ref: /schemas/media/video-interfaces.yaml# - unevaluatedProperties: false - - properties: - data-lanes: - anyOf: - - items: - - const: 1 - - const: 2 - - items: - - const: 1 - - const: 2 - - const: 3 - - const: 4 - - link-frequencies: true - - required: - - data-lanes - - link-frequencies - - additionalProperties: false - -required: - - compatible - - reg - - clocks - - clock-names - - clock-frequency - - vdda-supply - - vddd-supply - - vdddo-supply - - port - -unevaluatedProperties: false - -examples: - - | - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - imx290: camera-sensor@1a { - compatible = "sony,imx290lqr"; - reg = <0x1a>; - - pinctrl-names = "default"; - pinctrl-0 = <&camera_rear_default>; - - clocks = <&gcc 90>; - clock-names = "xclk"; - clock-frequency = <37125000>; - - vdddo-supply = <&camera_vdddo_1v8>; - vdda-supply = <&camera_vdda_2v8>; - vddd-supply = <&camera_vddd_1v5>; - - reset-gpios = <&msmgpio 35 GPIO_ACTIVE_LOW>; - - port { - imx290_ep: endpoint { - data-lanes = <1 2 3 4>; - link-frequencies = /bits/ 64 <445500000>; - remote-endpoint = <&csiphy0_ep>; - }; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/sony,imx290.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sony IMX290 1/2.8-Inch CMOS Image Sensor + +maintainers: + - Manivannan Sadhasivam + - Laurent Pinchart + +description: |- + The Sony IMX290 is a 1/2.8-Inch CMOS Solid-state image sensor with Square + Pixel, available in either mono or colour variants. It is programmable + through I2C and 4-wire interfaces. + + The sensor output is available via CMOS logic parallel SDR output, Low voltage + LVDS DDR output and CSI-2 serial data output. The CSI-2 bus is the default. + No bindings have been defined for the other busses. + + imx290lqr is the full model identifier for the colour variant. "sony,imx290" + is treated the same as this as it was the original compatible string. + imx290llr is the mono version of the sensor. + +allOf: + - $ref: /schemas/media/video-interface-devices.yaml# + +properties: + compatible: + oneOf: + - enum: + - sony,imx290lqr # Colour + - sony,imx290llr # Monochrome + - sony,imx327lqr # Colour + - const: sony,imx290 + deprecated: true + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + description: Input clock (37.125 MHz or 74.25 MHz) + items: + - const: xclk + + clock-frequency: + description: Frequency of the xclk clock in Hz + + vdda-supply: + description: Analog power supply (2.9V) + + vddd-supply: + description: Digital core power supply (1.2V) + + vdddo-supply: + description: Digital I/O power supply (1.8V) + + reset-gpios: + description: Sensor reset (XCLR) GPIO + maxItems: 1 + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + description: | + Video output port + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + anyOf: + - items: + - const: 1 + - const: 2 + - items: + - const: 1 + - const: 2 + - const: 3 + - const: 4 + + link-frequencies: true + + required: + - data-lanes + - link-frequencies + + additionalProperties: false + +required: + - compatible + - reg + - clocks + - clock-names + - clock-frequency + - vdda-supply + - vddd-supply + - vdddo-supply + - port + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + imx290: camera-sensor@1a { + compatible = "sony,imx290lqr"; + reg = <0x1a>; + + pinctrl-names = "default"; + pinctrl-0 = <&camera_rear_default>; + + clocks = <&gcc 90>; + clock-names = "xclk"; + clock-frequency = <37125000>; + + vdddo-supply = <&camera_vdddo_1v8>; + vdda-supply = <&camera_vdda_2v8>; + vddd-supply = <&camera_vddd_1v5>; + + reset-gpios = <&msmgpio 35 GPIO_ACTIVE_LOW>; + + port { + imx290_ep: endpoint { + data-lanes = <1 2 3 4>; + link-frequencies = /bits/ 64 <445500000>; + remote-endpoint = <&csiphy0_ep>; + }; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/tvp5150.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/tvp5150.txt index 168d5b685..94b908ace 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/tvp5150.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/i2c/tvp5150.txt @@ -1,157 +1,157 @@ -* Texas Instruments TVP5150 and TVP5151 video decoders - -The TVP5150 and TVP5151 are video decoders that convert baseband NTSC and PAL -(and also SECAM in the TVP5151 case) video signals to either 8-bit 4:2:2 YUV -with discrete syncs or 8-bit ITU-R BT.656 with embedded syncs output formats. - -Required Properties: -==================== -- compatible: Value must be "ti,tvp5150". -- reg: I2C slave address. - -Optional Properties: -==================== -- pdn-gpios: Phandle for the GPIO connected to the PDN pin, if any. -- reset-gpios: Phandle for the GPIO connected to the RESETB pin, if any. - -The device node must contain one 'port' child node per device physical input -and output port, in accordance with the video interface bindings defined in -Documentation/devicetree/bindings/media/video-interfaces.txt. The port nodes -are numbered as follows - - Name Type Port - -------------------------------------- - AIP1A sink 0 - AIP1B sink 1 - Y-OUT src 2 - -The device node must contain at least one sink port and the src port. Each input -port must be linked to an endpoint defined in [1]. The port/connector layout is -as follows - -tvp-5150 port@0 (AIP1A) - endpoint@0 -----------> Comp0-Con port - endpoint@1 ------+----> Svideo-Con port -tvp-5150 port@1 (AIP1B) | - endpoint@1 ------+ - endpoint@0 -----------> Comp1-Con port -tvp-5150 port@2 - endpoint (video bitstream output at YOUT[0-7] parallel bus) - -Required Endpoint Properties for parallel synchronization on output port: -========================================================================= - -- hsync-active: Active state of the HSYNC signal. Must be <1> (HIGH). -- vsync-active: Active state of the VSYNC signal. Must be <1> (HIGH). -- field-even-active: Field signal level during the even field data - transmission. Must be <0>. - -Note: Do not specify any of these properties if you want to use the embedded - BT.656 synchronization. - -Optional Connector Properties: -============================== - -- sdtv-standards: Set the possible signals to which the hardware tries to lock - instead of using the autodetection mechanism. Please look at - [1] for more information. - -[1] Documentation/devicetree/bindings/display/connector/analog-tv-connector.yaml. - -Example - three input sources: -#include - -comp_connector_0 { - compatible = "composite-video-connector"; - label = "Composite0"; - sdtv-standards = ; /* limit to pal-m signals */ - - port { - composite0_to_tvp5150: endpoint { - remote-endpoint = <&tvp5150_to_composite0>; - }; - }; -}; - -comp_connector_1 { - compatible = "composite-video-connector"; - label = "Composite1"; - sdtv-standards = ; /* limit to ntsc-m signals */ - - port { - composite1_to_tvp5150: endpoint { - remote-endpoint = <&tvp5150_to_composite1>; - }; - }; -}; - -svideo_connector { - compatible = "svideo-connector"; - label = "S-Video"; - - port { - #address-cells = <1>; - #size-cells = <0>; - - svideo_luma_to_tvp5150: endpoint@0 { - reg = <0>; - remote-endpoint = <&tvp5150_to_svideo_luma>; - }; - - svideo_chroma_to_tvp5150: endpoint@1 { - reg = <1>; - remote-endpoint = <&tvp5150_to_svideo_chroma>; - }; - }; -}; - -&i2c2 { - tvp5150@5c { - compatible = "ti,tvp5150"; - reg = <0x5c>; - pdn-gpios = <&gpio4 30 GPIO_ACTIVE_LOW>; - reset-gpios = <&gpio6 7 GPIO_ACTIVE_LOW>; - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - #address-cells = <1>; - #size-cells = <0>; - reg = <0>; - - tvp5150_to_composite0: endpoint@0 { - reg = <0>; - remote-endpoint = <&composite0_to_tvp5150>; - }; - - tvp5150_to_svideo_luma: endpoint@1 { - reg = <1>; - remote-endpoint = <&svideo_luma_to_tvp5150>; - }; - }; - - port@1 { - #address-cells = <1>; - #size-cells = <0>; - reg = <1>; - - tvp5150_to_composite1: endpoint@0 { - reg = <0>; - remote-endpoint = <&composite1_to_tvp5150>; - }; - - tvp5150_to_svideo_chroma: endpoint@1 { - reg = <1>; - remote-endpoint = <&svideo_chroma_to_tvp5150>; - }; - }; - - port@2 { - reg = <2>; - - tvp5150_1: endpoint { - remote-endpoint = <&ccdc_ep>; - }; - }; - }; -}; +* Texas Instruments TVP5150 and TVP5151 video decoders + +The TVP5150 and TVP5151 are video decoders that convert baseband NTSC and PAL +(and also SECAM in the TVP5151 case) video signals to either 8-bit 4:2:2 YUV +with discrete syncs or 8-bit ITU-R BT.656 with embedded syncs output formats. + +Required Properties: +==================== +- compatible: Value must be "ti,tvp5150". +- reg: I2C slave address. + +Optional Properties: +==================== +- pdn-gpios: Phandle for the GPIO connected to the PDN pin, if any. +- reset-gpios: Phandle for the GPIO connected to the RESETB pin, if any. + +The device node must contain one 'port' child node per device physical input +and output port, in accordance with the video interface bindings defined in +Documentation/devicetree/bindings/media/video-interfaces.txt. The port nodes +are numbered as follows + + Name Type Port + -------------------------------------- + AIP1A sink 0 + AIP1B sink 1 + Y-OUT src 2 + +The device node must contain at least one sink port and the src port. Each input +port must be linked to an endpoint defined in [1]. The port/connector layout is +as follows + +tvp-5150 port@0 (AIP1A) + endpoint@0 -----------> Comp0-Con port + endpoint@1 ------+----> Svideo-Con port +tvp-5150 port@1 (AIP1B) | + endpoint@1 ------+ + endpoint@0 -----------> Comp1-Con port +tvp-5150 port@2 + endpoint (video bitstream output at YOUT[0-7] parallel bus) + +Required Endpoint Properties for parallel synchronization on output port: +========================================================================= + +- hsync-active: Active state of the HSYNC signal. Must be <1> (HIGH). +- vsync-active: Active state of the VSYNC signal. Must be <1> (HIGH). +- field-even-active: Field signal level during the even field data + transmission. Must be <0>. + +Note: Do not specify any of these properties if you want to use the embedded + BT.656 synchronization. + +Optional Connector Properties: +============================== + +- sdtv-standards: Set the possible signals to which the hardware tries to lock + instead of using the autodetection mechanism. Please look at + [1] for more information. + +[1] Documentation/devicetree/bindings/display/connector/analog-tv-connector.yaml. + +Example - three input sources: +#include + +comp_connector_0 { + compatible = "composite-video-connector"; + label = "Composite0"; + sdtv-standards = ; /* limit to pal-m signals */ + + port { + composite0_to_tvp5150: endpoint { + remote-endpoint = <&tvp5150_to_composite0>; + }; + }; +}; + +comp_connector_1 { + compatible = "composite-video-connector"; + label = "Composite1"; + sdtv-standards = ; /* limit to ntsc-m signals */ + + port { + composite1_to_tvp5150: endpoint { + remote-endpoint = <&tvp5150_to_composite1>; + }; + }; +}; + +svideo_connector { + compatible = "svideo-connector"; + label = "S-Video"; + + port { + #address-cells = <1>; + #size-cells = <0>; + + svideo_luma_to_tvp5150: endpoint@0 { + reg = <0>; + remote-endpoint = <&tvp5150_to_svideo_luma>; + }; + + svideo_chroma_to_tvp5150: endpoint@1 { + reg = <1>; + remote-endpoint = <&tvp5150_to_svideo_chroma>; + }; + }; +}; + +&i2c2 { + tvp5150@5c { + compatible = "ti,tvp5150"; + reg = <0x5c>; + pdn-gpios = <&gpio4 30 GPIO_ACTIVE_LOW>; + reset-gpios = <&gpio6 7 GPIO_ACTIVE_LOW>; + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + tvp5150_to_composite0: endpoint@0 { + reg = <0>; + remote-endpoint = <&composite0_to_tvp5150>; + }; + + tvp5150_to_svideo_luma: endpoint@1 { + reg = <1>; + remote-endpoint = <&svideo_luma_to_tvp5150>; + }; + }; + + port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + tvp5150_to_composite1: endpoint@0 { + reg = <0>; + remote-endpoint = <&composite1_to_tvp5150>; + }; + + tvp5150_to_svideo_chroma: endpoint@1 { + reg = <1>; + remote-endpoint = <&svideo_chroma_to_tvp5150>; + }; + }; + + port@2 { + reg = <2>; + + tvp5150_1: endpoint { + remote-endpoint = <&ccdc_ep>; + }; + }; + }; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml index 28d19e831..18603f6c5 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml @@ -1,168 +1,168 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/mediatek,mdp3-rdma.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MediaTek Read Direct Memory Access - -maintainers: - - Matthias Brugger - - Moudy Ho - -description: | - MediaTek Read Direct Memory Access(RDMA) component used to do read DMA. - It contains one line buffer to store the sufficient pixel data, and - must be siblings to the central MMSYS_CONFIG node. - For a description of the MMSYS_CONFIG binding, see - Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml - for details. - -properties: - compatible: - oneOf: - - enum: - - mediatek,mt8183-mdp3-rdma - - mediatek,mt8188-mdp3-rdma - - mediatek,mt8195-mdp3-rdma - - mediatek,mt8195-vdo1-rdma - - items: - - const: mediatek,mt8188-vdo1-rdma - - const: mediatek,mt8195-vdo1-rdma - - reg: - maxItems: 1 - - mediatek,gce-client-reg: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - items: - - description: phandle of GCE - - description: GCE subsys id - - description: register offset - - description: register size - description: The register of client driver can be configured by gce with - 4 arguments defined in this property. Each GCE subsys id is mapping to - a client defined in the header include/dt-bindings/gce/-gce.h. - - mediatek,gce-events: - description: - The event id which is mapping to the specific hardware event signal - to gce. The event id is defined in the gce header - include/dt-bindings/gce/-gce.h of each chips. - $ref: /schemas/types.yaml#/definitions/uint32-array - - mediatek,scp: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Phandle to the System Control Processor (SCP) used for initializing - and stopping the MDP3, for sending frame data locations to the MDP3's - VPU and to install Inter-Processor Interrupt handlers to control - processing states. - - power-domains: - maxItems: 1 - - clocks: - items: - - description: RDMA clock - - description: RSZ clock - minItems: 1 - - iommus: - maxItems: 1 - - mboxes: - items: - - description: used for 1st data pipe from RDMA - - description: used for 2nd data pipe from RDMA - - description: used for 3rd data pipe from RDMA - - description: used for 4th data pipe from RDMA - - description: used for the data pipe from SPLIT - minItems: 1 - - interrupts: - maxItems: 1 - - '#dma-cells': - const: 1 - -required: - - compatible - - reg - - mediatek,gce-client-reg - - power-domains - - clocks - - iommus - - '#dma-cells' - -allOf: - - if: - properties: - compatible: - contains: - const: mediatek,mt8183-mdp3-rdma - - then: - properties: - clocks: - minItems: 2 - - mboxes: - minItems: 2 - - required: - - mboxes - - mediatek,gce-events - - - if: - properties: - compatible: - contains: - const: mediatek,mt8195-mdp3-rdma - - then: - properties: - clocks: - maxItems: 1 - - mboxes: - minItems: 5 - - required: - - mediatek,gce-events - - - if: - properties: - compatible: - contains: - const: mediatek,mt8195-vdo1-rdma - - then: - properties: - clocks: - maxItems: 1 - -additionalProperties: false - -examples: - - | - #include - #include - #include - #include - - dma-controller@14001000 { - compatible = "mediatek,mt8183-mdp3-rdma"; - reg = <0x14001000 0x1000>; - mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x1000 0x1000>; - mediatek,gce-events = , - ; - power-domains = <&spm MT8183_POWER_DOMAIN_DISP>; - clocks = <&mmsys CLK_MM_MDP_RDMA0>, - <&mmsys CLK_MM_MDP_RSZ1>; - iommus = <&iommu>; - mboxes = <&gce 20 CMDQ_THR_PRIO_LOWEST>, - <&gce 21 CMDQ_THR_PRIO_LOWEST>; - #dma-cells = <1>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mdp3-rdma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Read Direct Memory Access + +maintainers: + - Matthias Brugger + - Moudy Ho + +description: | + MediaTek Read Direct Memory Access(RDMA) component used to do read DMA. + It contains one line buffer to store the sufficient pixel data, and + must be siblings to the central MMSYS_CONFIG node. + For a description of the MMSYS_CONFIG binding, see + Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml + for details. + +properties: + compatible: + oneOf: + - enum: + - mediatek,mt8183-mdp3-rdma + - mediatek,mt8188-mdp3-rdma + - mediatek,mt8195-mdp3-rdma + - mediatek,mt8195-vdo1-rdma + - items: + - const: mediatek,mt8188-vdo1-rdma + - const: mediatek,mt8195-vdo1-rdma + + reg: + maxItems: 1 + + mediatek,gce-client-reg: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + items: + - description: phandle of GCE + - description: GCE subsys id + - description: register offset + - description: register size + description: The register of client driver can be configured by gce with + 4 arguments defined in this property. Each GCE subsys id is mapping to + a client defined in the header include/dt-bindings/gce/-gce.h. + + mediatek,gce-events: + description: + The event id which is mapping to the specific hardware event signal + to gce. The event id is defined in the gce header + include/dt-bindings/gce/-gce.h of each chips. + $ref: /schemas/types.yaml#/definitions/uint32-array + + mediatek,scp: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the System Control Processor (SCP) used for initializing + and stopping the MDP3, for sending frame data locations to the MDP3's + VPU and to install Inter-Processor Interrupt handlers to control + processing states. + + power-domains: + maxItems: 1 + + clocks: + items: + - description: RDMA clock + - description: RSZ clock + minItems: 1 + + iommus: + maxItems: 1 + + mboxes: + items: + - description: used for 1st data pipe from RDMA + - description: used for 2nd data pipe from RDMA + - description: used for 3rd data pipe from RDMA + - description: used for 4th data pipe from RDMA + - description: used for the data pipe from SPLIT + minItems: 1 + + interrupts: + maxItems: 1 + + '#dma-cells': + const: 1 + +required: + - compatible + - reg + - mediatek,gce-client-reg + - power-domains + - clocks + - iommus + - '#dma-cells' + +allOf: + - if: + properties: + compatible: + contains: + const: mediatek,mt8183-mdp3-rdma + + then: + properties: + clocks: + minItems: 2 + + mboxes: + minItems: 2 + + required: + - mboxes + - mediatek,gce-events + + - if: + properties: + compatible: + contains: + const: mediatek,mt8195-mdp3-rdma + + then: + properties: + clocks: + maxItems: 1 + + mboxes: + minItems: 5 + + required: + - mediatek,gce-events + + - if: + properties: + compatible: + contains: + const: mediatek,mt8195-vdo1-rdma + + then: + properties: + clocks: + maxItems: 1 + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + + dma-controller@14001000 { + compatible = "mediatek,mt8183-mdp3-rdma"; + reg = <0x14001000 0x1000>; + mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x1000 0x1000>; + mediatek,gce-events = , + ; + power-domains = <&spm MT8183_POWER_DOMAIN_DISP>; + clocks = <&mmsys CLK_MM_MDP_RDMA0>, + <&mmsys CLK_MM_MDP_RSZ1>; + iommus = <&iommu>; + mboxes = <&gce 20 CMDQ_THR_PRIO_LOWEST>, + <&gce 21 CMDQ_THR_PRIO_LOWEST>; + #dma-cells = <1>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/mediatek,mt8195-jpegenc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/mediatek,mt8195-jpegenc.yaml index 8955132cd..596186497 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/mediatek,mt8195-jpegenc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/mediatek,mt8195-jpegenc.yaml @@ -1,140 +1,140 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/mediatek,mt8195-jpegenc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MediaTek JPEG Encoder - -maintainers: - - kyrie wu - -description: - MediaTek JPEG Encoder is the JPEG encode hardware present in MediaTek SoCs - -properties: - compatible: - const: mediatek,mt8195-jpgenc - - power-domains: - maxItems: 1 - - iommus: - maxItems: 4 - description: - Points to the respective IOMMU block with master port as argument, see - Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. - Ports are according to the HW. - - "#address-cells": - const: 2 - - "#size-cells": - const: 2 - - ranges: true - -# Required child node: -patternProperties: - "^jpgenc@[0-9a-f]+$": - type: object - description: - The jpeg encoder hardware device node which should be added as subnodes to - the main jpeg node. - - properties: - compatible: - const: mediatek,mt8195-jpgenc-hw - - reg: - maxItems: 1 - - iommus: - minItems: 1 - maxItems: 32 - description: - List of the hardware port in respective IOMMU block for current Socs. - Refer to bindings/iommu/mediatek,iommu.yaml. - - interrupts: - maxItems: 1 - - clocks: - maxItems: 1 - - clock-names: - items: - - const: jpgenc - - power-domains: - maxItems: 1 - - required: - - compatible - - reg - - iommus - - interrupts - - clocks - - clock-names - - power-domains - - additionalProperties: false - -required: - - compatible - - power-domains - - iommus - - ranges - -additionalProperties: false - -examples: - - | - #include - #include - #include - #include - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - - jpgenc-master { - compatible = "mediatek,mt8195-jpgenc"; - power-domains = <&spm MT8195_POWER_DOMAIN_VENC_CORE1>; - iommus = <&iommu_vpp M4U_PORT_L20_JPGENC_Y_RDMA>, - <&iommu_vpp M4U_PORT_L20_JPGENC_C_RDMA>, - <&iommu_vpp M4U_PORT_L20_JPGENC_Q_TABLE>, - <&iommu_vpp M4U_PORT_L20_JPGENC_BSDMA>; - #address-cells = <2>; - #size-cells = <2>; - ranges; - - jpgenc@1a030000 { - compatible = "mediatek,mt8195-jpgenc-hw"; - reg = <0 0x1a030000 0 0x10000>; - iommus = <&iommu_vdo M4U_PORT_L19_JPGENC_Y_RDMA>, - <&iommu_vdo M4U_PORT_L19_JPGENC_C_RDMA>, - <&iommu_vdo M4U_PORT_L19_JPGENC_Q_TABLE>, - <&iommu_vdo M4U_PORT_L19_JPGENC_BSDMA>; - interrupts = ; - clocks = <&vencsys CLK_VENC_JPGENC>; - clock-names = "jpgenc"; - power-domains = <&spm MT8195_POWER_DOMAIN_VENC>; - }; - - jpgenc@1b030000 { - compatible = "mediatek,mt8195-jpgenc-hw"; - reg = <0 0x1b030000 0 0x10000>; - iommus = <&iommu_vpp M4U_PORT_L20_JPGENC_Y_RDMA>, - <&iommu_vpp M4U_PORT_L20_JPGENC_C_RDMA>, - <&iommu_vpp M4U_PORT_L20_JPGENC_Q_TABLE>, - <&iommu_vpp M4U_PORT_L20_JPGENC_BSDMA>; - interrupts = ; - clocks = <&vencsys_core1 CLK_VENC_CORE1_JPGENC>; - clock-names = "jpgenc"; - power-domains = <&spm MT8195_POWER_DOMAIN_VENC_CORE1>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mt8195-jpegenc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek JPEG Encoder + +maintainers: + - kyrie wu + +description: + MediaTek JPEG Encoder is the JPEG encode hardware present in MediaTek SoCs + +properties: + compatible: + const: mediatek,mt8195-jpgenc + + power-domains: + maxItems: 1 + + iommus: + maxItems: 4 + description: + Points to the respective IOMMU block with master port as argument, see + Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. + Ports are according to the HW. + + "#address-cells": + const: 2 + + "#size-cells": + const: 2 + + ranges: true + +# Required child node: +patternProperties: + "^jpgenc@[0-9a-f]+$": + type: object + description: + The jpeg encoder hardware device node which should be added as subnodes to + the main jpeg node. + + properties: + compatible: + const: mediatek,mt8195-jpgenc-hw + + reg: + maxItems: 1 + + iommus: + minItems: 1 + maxItems: 32 + description: + List of the hardware port in respective IOMMU block for current Socs. + Refer to bindings/iommu/mediatek,iommu.yaml. + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: jpgenc + + power-domains: + maxItems: 1 + + required: + - compatible + - reg + - iommus + - interrupts + - clocks + - clock-names + - power-domains + + additionalProperties: false + +required: + - compatible + - power-domains + - iommus + - ranges + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + jpgenc-master { + compatible = "mediatek,mt8195-jpgenc"; + power-domains = <&spm MT8195_POWER_DOMAIN_VENC_CORE1>; + iommus = <&iommu_vpp M4U_PORT_L20_JPGENC_Y_RDMA>, + <&iommu_vpp M4U_PORT_L20_JPGENC_C_RDMA>, + <&iommu_vpp M4U_PORT_L20_JPGENC_Q_TABLE>, + <&iommu_vpp M4U_PORT_L20_JPGENC_BSDMA>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + jpgenc@1a030000 { + compatible = "mediatek,mt8195-jpgenc-hw"; + reg = <0 0x1a030000 0 0x10000>; + iommus = <&iommu_vdo M4U_PORT_L19_JPGENC_Y_RDMA>, + <&iommu_vdo M4U_PORT_L19_JPGENC_C_RDMA>, + <&iommu_vdo M4U_PORT_L19_JPGENC_Q_TABLE>, + <&iommu_vdo M4U_PORT_L19_JPGENC_BSDMA>; + interrupts = ; + clocks = <&vencsys CLK_VENC_JPGENC>; + clock-names = "jpgenc"; + power-domains = <&spm MT8195_POWER_DOMAIN_VENC>; + }; + + jpgenc@1b030000 { + compatible = "mediatek,mt8195-jpgenc-hw"; + reg = <0 0x1b030000 0 0x10000>; + iommus = <&iommu_vpp M4U_PORT_L20_JPGENC_Y_RDMA>, + <&iommu_vpp M4U_PORT_L20_JPGENC_C_RDMA>, + <&iommu_vpp M4U_PORT_L20_JPGENC_Q_TABLE>, + <&iommu_vpp M4U_PORT_L20_JPGENC_BSDMA>; + interrupts = ; + clocks = <&vencsys_core1 CLK_VENC_CORE1_JPGENC>; + clock-names = "jpgenc"; + power-domains = <&spm MT8195_POWER_DOMAIN_VENC_CORE1>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml index 7908fcf0f..2be30c5fd 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml @@ -1,100 +1,100 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/nxp,imx8-jpeg.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: i.MX8QXP/QM JPEG decoder/encoder - -maintainers: - - Mirela Rabulea - -description: |- - The JPEG decoder/encoder present in iMX8QXP and iMX8QM SoCs is an - ISO/IEC 10918-1 JPEG standard compliant decoder/encoder, for Baseline - and Extended Sequential DCT modes. - -properties: - compatible: - oneOf: - - items: - enum: - - nxp,imx8qxp-jpgdec - - nxp,imx8qxp-jpgenc - - items: - - const: nxp,imx8qm-jpgdec - - const: nxp,imx8qxp-jpgdec - - items: - - const: nxp,imx8qm-jpgenc - - const: nxp,imx8qxp-jpgenc - - reg: - maxItems: 1 - - clocks: - items: - - description: AXI DMA engine clock for fetching JPEG bitstream from memory (per) - - description: IP bus clock for register access (ipg) - - interrupts: - description: | - There are 4 slots available in the IP, which the driver may use - If a certain slot is used, it should have an associated interrupt - The interrupt with index i is assumed to be for slot i - minItems: 1 # At least one slot is needed by the driver - maxItems: 4 # The IP has 4 slots available for use - - power-domains: - description: - List of phandle and PM domain specifier as documented in - Documentation/devicetree/bindings/power/power_domain.txt - minItems: 2 # Wrapper and 1 slot - maxItems: 5 # Wrapper and 4 slots - -required: - - compatible - - reg - - clocks - - interrupts - - power-domains - -additionalProperties: false - -examples: - - | - #include - #include - #include - - jpegdec: jpegdec@58400000 { - compatible = "nxp,imx8qxp-jpgdec"; - reg = <0x58400000 0x00050000 >; - clocks = <&img_jpeg_dec_lpcg IMX_LPCG_CLK_0>, - <&img_jpeg_dec_lpcg IMX_LPCG_CLK_4>; - interrupts = , - , - , - ; - power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>, - <&pd IMX_SC_R_MJPEG_DEC_S0>, - <&pd IMX_SC_R_MJPEG_DEC_S1>, - <&pd IMX_SC_R_MJPEG_DEC_S2>, - <&pd IMX_SC_R_MJPEG_DEC_S3>; - }; - - jpegenc: jpegenc@58450000 { - compatible = "nxp,imx8qm-jpgenc", "nxp,imx8qxp-jpgenc"; - reg = <0x58450000 0x00050000 >; - clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>, - <&img_jpeg__lpcg IMX_LPCG_CLK_4>; - interrupts = , - , - , - ; - power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>, - <&pd IMX_SC_R_MJPEG_ENC_S0>, - <&pd IMX_SC_R_MJPEG_ENC_S1>, - <&pd IMX_SC_R_MJPEG_ENC_S2>, - <&pd IMX_SC_R_MJPEG_ENC_S3>; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/nxp,imx8-jpeg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: i.MX8QXP/QM JPEG decoder/encoder + +maintainers: + - Mirela Rabulea + +description: |- + The JPEG decoder/encoder present in iMX8QXP and iMX8QM SoCs is an + ISO/IEC 10918-1 JPEG standard compliant decoder/encoder, for Baseline + and Extended Sequential DCT modes. + +properties: + compatible: + oneOf: + - items: + enum: + - nxp,imx8qxp-jpgdec + - nxp,imx8qxp-jpgenc + - items: + - const: nxp,imx8qm-jpgdec + - const: nxp,imx8qxp-jpgdec + - items: + - const: nxp,imx8qm-jpgenc + - const: nxp,imx8qxp-jpgenc + + reg: + maxItems: 1 + + clocks: + items: + - description: AXI DMA engine clock for fetching JPEG bitstream from memory (per) + - description: IP bus clock for register access (ipg) + + interrupts: + description: | + There are 4 slots available in the IP, which the driver may use + If a certain slot is used, it should have an associated interrupt + The interrupt with index i is assumed to be for slot i + minItems: 1 # At least one slot is needed by the driver + maxItems: 4 # The IP has 4 slots available for use + + power-domains: + description: + List of phandle and PM domain specifier as documented in + Documentation/devicetree/bindings/power/power_domain.txt + minItems: 2 # Wrapper and 1 slot + maxItems: 5 # Wrapper and 4 slots + +required: + - compatible + - reg + - clocks + - interrupts + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + #include + + jpegdec: jpegdec@58400000 { + compatible = "nxp,imx8qxp-jpgdec"; + reg = <0x58400000 0x00050000 >; + clocks = <&img_jpeg_dec_lpcg IMX_LPCG_CLK_0>, + <&img_jpeg_dec_lpcg IMX_LPCG_CLK_4>; + interrupts = , + , + , + ; + power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>, + <&pd IMX_SC_R_MJPEG_DEC_S0>, + <&pd IMX_SC_R_MJPEG_DEC_S1>, + <&pd IMX_SC_R_MJPEG_DEC_S2>, + <&pd IMX_SC_R_MJPEG_DEC_S3>; + }; + + jpegenc: jpegenc@58450000 { + compatible = "nxp,imx8qm-jpgenc", "nxp,imx8qxp-jpgenc"; + reg = <0x58450000 0x00050000 >; + clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>, + <&img_jpeg__lpcg IMX_LPCG_CLK_4>; + interrupts = , + , + , + ; + power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>, + <&pd IMX_SC_R_MJPEG_ENC_S0>, + <&pd IMX_SC_R_MJPEG_ENC_S1>, + <&pd IMX_SC_R_MJPEG_ENC_S2>, + <&pd IMX_SC_R_MJPEG_ENC_S3>; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/qcom,msm8996-venus.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/qcom,msm8996-venus.yaml index 1bc807764..56c16458e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/qcom,msm8996-venus.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/qcom,msm8996-venus.yaml @@ -1,157 +1,157 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/qcom,msm8996-venus.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm MSM8996 Venus video encode and decode accelerators - -maintainers: - - Stanimir Varbanov - -description: | - The Venus IP is a video encode and decode accelerator present - on Qualcomm platforms - -allOf: - - $ref: qcom,venus-common.yaml# - -properties: - compatible: - enum: - - qcom,msm8996-venus - - qcom,msm8998-venus - - power-domains: - maxItems: 1 - - clocks: - maxItems: 4 - - clock-names: - items: - - const: core - - const: iface - - const: bus - - const: mbus - - interconnects: - maxItems: 2 - - interconnect-names: - items: - - const: video-mem - - const: cpu-cfg - - iommus: - maxItems: 20 - - video-decoder: - type: object - - properties: - compatible: - const: venus-decoder - - clocks: - maxItems: 1 - - clock-names: - items: - - const: core - - power-domains: - maxItems: 1 - - required: - - compatible - - clocks - - clock-names - - power-domains - - additionalProperties: false - - video-encoder: - type: object - - properties: - compatible: - const: venus-encoder - - clocks: - maxItems: 1 - - clock-names: - items: - - const: core - - power-domains: - maxItems: 1 - - required: - - compatible - - clocks - - clock-names - - power-domains - - additionalProperties: false - -required: - - compatible - - iommus - - video-decoder - - video-encoder - -unevaluatedProperties: false - -examples: - - | - #include - #include - - video-codec@c00000 { - compatible = "qcom,msm8996-venus"; - reg = <0x00c00000 0xff000>; - interrupts = ; - clocks = <&mmcc VIDEO_CORE_CLK>, - <&mmcc VIDEO_AHB_CLK>, - <&mmcc VIDEO_AXI_CLK>, - <&mmcc VIDEO_MAXI_CLK>; - clock-names = "core", "iface", "bus", "mbus"; - power-domains = <&mmcc VENUS_GDSC>; - iommus = <&venus_smmu 0x00>, - <&venus_smmu 0x01>, - <&venus_smmu 0x0a>, - <&venus_smmu 0x07>, - <&venus_smmu 0x0e>, - <&venus_smmu 0x0f>, - <&venus_smmu 0x08>, - <&venus_smmu 0x09>, - <&venus_smmu 0x0b>, - <&venus_smmu 0x0c>, - <&venus_smmu 0x0d>, - <&venus_smmu 0x10>, - <&venus_smmu 0x11>, - <&venus_smmu 0x21>, - <&venus_smmu 0x28>, - <&venus_smmu 0x29>, - <&venus_smmu 0x2b>, - <&venus_smmu 0x2c>, - <&venus_smmu 0x2d>, - <&venus_smmu 0x31>; - memory-region = <&venus_mem>; - - video-decoder { - compatible = "venus-decoder"; - clocks = <&mmcc VIDEO_SUBCORE0_CLK>; - clock-names = "core"; - power-domains = <&mmcc VENUS_CORE0_GDSC>; - }; - - video-encoder { - compatible = "venus-encoder"; - clocks = <&mmcc VIDEO_SUBCORE1_CLK>; - clock-names = "core"; - power-domains = <&mmcc VENUS_CORE1_GDSC>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/qcom,msm8996-venus.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm MSM8996 Venus video encode and decode accelerators + +maintainers: + - Stanimir Varbanov + +description: | + The Venus IP is a video encode and decode accelerator present + on Qualcomm platforms + +allOf: + - $ref: qcom,venus-common.yaml# + +properties: + compatible: + enum: + - qcom,msm8996-venus + - qcom,msm8998-venus + + power-domains: + maxItems: 1 + + clocks: + maxItems: 4 + + clock-names: + items: + - const: core + - const: iface + - const: bus + - const: mbus + + interconnects: + maxItems: 2 + + interconnect-names: + items: + - const: video-mem + - const: cpu-cfg + + iommus: + maxItems: 20 + + video-decoder: + type: object + + properties: + compatible: + const: venus-decoder + + clocks: + maxItems: 1 + + clock-names: + items: + - const: core + + power-domains: + maxItems: 1 + + required: + - compatible + - clocks + - clock-names + - power-domains + + additionalProperties: false + + video-encoder: + type: object + + properties: + compatible: + const: venus-encoder + + clocks: + maxItems: 1 + + clock-names: + items: + - const: core + + power-domains: + maxItems: 1 + + required: + - compatible + - clocks + - clock-names + - power-domains + + additionalProperties: false + +required: + - compatible + - iommus + - video-decoder + - video-encoder + +unevaluatedProperties: false + +examples: + - | + #include + #include + + video-codec@c00000 { + compatible = "qcom,msm8996-venus"; + reg = <0x00c00000 0xff000>; + interrupts = ; + clocks = <&mmcc VIDEO_CORE_CLK>, + <&mmcc VIDEO_AHB_CLK>, + <&mmcc VIDEO_AXI_CLK>, + <&mmcc VIDEO_MAXI_CLK>; + clock-names = "core", "iface", "bus", "mbus"; + power-domains = <&mmcc VENUS_GDSC>; + iommus = <&venus_smmu 0x00>, + <&venus_smmu 0x01>, + <&venus_smmu 0x0a>, + <&venus_smmu 0x07>, + <&venus_smmu 0x0e>, + <&venus_smmu 0x0f>, + <&venus_smmu 0x08>, + <&venus_smmu 0x09>, + <&venus_smmu 0x0b>, + <&venus_smmu 0x0c>, + <&venus_smmu 0x0d>, + <&venus_smmu 0x10>, + <&venus_smmu 0x11>, + <&venus_smmu 0x21>, + <&venus_smmu 0x28>, + <&venus_smmu 0x29>, + <&venus_smmu 0x2b>, + <&venus_smmu 0x2c>, + <&venus_smmu 0x2d>, + <&venus_smmu 0x31>; + memory-region = <&venus_mem>; + + video-decoder { + compatible = "venus-decoder"; + clocks = <&mmcc VIDEO_SUBCORE0_CLK>; + clock-names = "core"; + power-domains = <&mmcc VENUS_CORE0_GDSC>; + }; + + video-encoder { + compatible = "venus-encoder"; + clocks = <&mmcc VIDEO_SUBCORE1_CLK>; + clock-names = "core"; + power-domains = <&mmcc VENUS_CORE1_GDSC>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/qcom,sdm660-venus.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/qcom,sdm660-venus.yaml index b6c6690a8..a51835b22 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/qcom,sdm660-venus.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/qcom,sdm660-venus.yaml @@ -1,159 +1,159 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/qcom,sdm660-venus.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SDM660 Venus video encode and decode accelerators - -maintainers: - - Stanimir Varbanov - - AngeloGioacchino Del Regno - -description: | - The Venus IP is a video encode and decode accelerator present - on Qualcomm platforms - -allOf: - - $ref: qcom,venus-common.yaml# - -properties: - compatible: - const: qcom,sdm660-venus - - clocks: - maxItems: 4 - - clock-names: - items: - - const: core - - const: iface - - const: bus - - const: bus_throttle - - interconnects: - maxItems: 2 - - interconnect-names: - items: - - const: cpu-cfg - - const: video-mem - - iommus: - maxItems: 20 - - power-domains: - maxItems: 1 - - video-decoder: - type: object - - properties: - compatible: - const: venus-decoder - - clocks: - maxItems: 1 - - clock-names: - items: - - const: vcodec0_core - - power-domains: - maxItems: 1 - - required: - - compatible - - clocks - - clock-names - - power-domains - - additionalProperties: false - - video-encoder: - type: object - - properties: - compatible: - const: venus-encoder - - clocks: - maxItems: 1 - - clock-names: - items: - - const: vcodec0_core - - power-domains: - maxItems: 1 - - required: - - compatible - - clocks - - clock-names - - power-domains - - additionalProperties: false - -required: - - compatible - - iommus - - video-decoder - - video-encoder - -unevaluatedProperties: false - -examples: - - | - #include - #include - - video-codec@cc00000 { - compatible = "qcom,sdm660-venus"; - reg = <0x0cc00000 0xff000>; - clocks = <&mmcc VIDEO_CORE_CLK>, - <&mmcc VIDEO_AHB_CLK>, - <&mmcc VIDEO_AXI_CLK>, - <&mmcc THROTTLE_VIDEO_AXI_CLK>; - clock-names = "core", "iface", "bus", "bus_throttle"; - interconnects = <&gnoc 0 &mnoc 13>, - <&mnoc 4 &bimc 5>; - interconnect-names = "cpu-cfg", "video-mem"; - interrupts = ; - iommus = <&mmss_smmu 0x400>, - <&mmss_smmu 0x401>, - <&mmss_smmu 0x40a>, - <&mmss_smmu 0x407>, - <&mmss_smmu 0x40e>, - <&mmss_smmu 0x40f>, - <&mmss_smmu 0x408>, - <&mmss_smmu 0x409>, - <&mmss_smmu 0x40b>, - <&mmss_smmu 0x40c>, - <&mmss_smmu 0x40d>, - <&mmss_smmu 0x410>, - <&mmss_smmu 0x421>, - <&mmss_smmu 0x428>, - <&mmss_smmu 0x429>, - <&mmss_smmu 0x42b>, - <&mmss_smmu 0x42c>, - <&mmss_smmu 0x42d>, - <&mmss_smmu 0x411>, - <&mmss_smmu 0x431>; - memory-region = <&venus_region>; - power-domains = <&mmcc VENUS_GDSC>; - - video-decoder { - compatible = "venus-decoder"; - clocks = <&mmcc VIDEO_SUBCORE0_CLK>; - clock-names = "vcodec0_core"; - power-domains = <&mmcc VENUS_CORE0_GDSC>; - }; - - video-encoder { - compatible = "venus-encoder"; - clocks = <&mmcc VIDEO_SUBCORE0_CLK>; - clock-names = "vcodec0_core"; - power-domains = <&mmcc VENUS_CORE0_GDSC>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/qcom,sdm660-venus.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SDM660 Venus video encode and decode accelerators + +maintainers: + - Stanimir Varbanov + - AngeloGioacchino Del Regno + +description: | + The Venus IP is a video encode and decode accelerator present + on Qualcomm platforms + +allOf: + - $ref: qcom,venus-common.yaml# + +properties: + compatible: + const: qcom,sdm660-venus + + clocks: + maxItems: 4 + + clock-names: + items: + - const: core + - const: iface + - const: bus + - const: bus_throttle + + interconnects: + maxItems: 2 + + interconnect-names: + items: + - const: cpu-cfg + - const: video-mem + + iommus: + maxItems: 20 + + power-domains: + maxItems: 1 + + video-decoder: + type: object + + properties: + compatible: + const: venus-decoder + + clocks: + maxItems: 1 + + clock-names: + items: + - const: vcodec0_core + + power-domains: + maxItems: 1 + + required: + - compatible + - clocks + - clock-names + - power-domains + + additionalProperties: false + + video-encoder: + type: object + + properties: + compatible: + const: venus-encoder + + clocks: + maxItems: 1 + + clock-names: + items: + - const: vcodec0_core + + power-domains: + maxItems: 1 + + required: + - compatible + - clocks + - clock-names + - power-domains + + additionalProperties: false + +required: + - compatible + - iommus + - video-decoder + - video-encoder + +unevaluatedProperties: false + +examples: + - | + #include + #include + + video-codec@cc00000 { + compatible = "qcom,sdm660-venus"; + reg = <0x0cc00000 0xff000>; + clocks = <&mmcc VIDEO_CORE_CLK>, + <&mmcc VIDEO_AHB_CLK>, + <&mmcc VIDEO_AXI_CLK>, + <&mmcc THROTTLE_VIDEO_AXI_CLK>; + clock-names = "core", "iface", "bus", "bus_throttle"; + interconnects = <&gnoc 0 &mnoc 13>, + <&mnoc 4 &bimc 5>; + interconnect-names = "cpu-cfg", "video-mem"; + interrupts = ; + iommus = <&mmss_smmu 0x400>, + <&mmss_smmu 0x401>, + <&mmss_smmu 0x40a>, + <&mmss_smmu 0x407>, + <&mmss_smmu 0x40e>, + <&mmss_smmu 0x40f>, + <&mmss_smmu 0x408>, + <&mmss_smmu 0x409>, + <&mmss_smmu 0x40b>, + <&mmss_smmu 0x40c>, + <&mmss_smmu 0x40d>, + <&mmss_smmu 0x410>, + <&mmss_smmu 0x421>, + <&mmss_smmu 0x428>, + <&mmss_smmu 0x429>, + <&mmss_smmu 0x42b>, + <&mmss_smmu 0x42c>, + <&mmss_smmu 0x42d>, + <&mmss_smmu 0x411>, + <&mmss_smmu 0x431>; + memory-region = <&venus_region>; + power-domains = <&mmcc VENUS_GDSC>; + + video-decoder { + compatible = "venus-decoder"; + clocks = <&mmcc VIDEO_SUBCORE0_CLK>; + clock-names = "vcodec0_core"; + power-domains = <&mmcc VENUS_CORE0_GDSC>; + }; + + video-encoder { + compatible = "venus-encoder"; + clocks = <&mmcc VIDEO_SUBCORE0_CLK>; + clock-names = "vcodec0_core"; + power-domains = <&mmcc VENUS_CORE0_GDSC>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/rc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/rc.yaml index 09d601ff5..dedc5a4b8 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/rc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/rc.yaml @@ -1,164 +1,164 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/rc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Generic Infrared Remote Controller - -maintainers: - - Mauro Carvalho Chehab - - Sean Young - -properties: - $nodename: - pattern: "^ir(-receiver)?(@[a-f0-9]+)?$" - - linux,rc-map-name: - description: - Specifies the scancode/key mapping table defined in-kernel for - the remote controller. - $ref: /schemas/types.yaml#/definitions/string - enum: - - rc-adstech-dvb-t-pci - - rc-alink-dtu-m - - rc-anysee - - rc-apac-viewcomp - - rc-astrometa-t2hybrid - - rc-asus-pc39 - - rc-asus-ps3-100 - - rc-ati-tv-wonder-hd-600 - - rc-ati-x10 - - rc-avermedia - - rc-avermedia-a16d - - rc-avermedia-cardbus - - rc-avermedia-dvbt - - rc-avermedia-m135a - - rc-avermedia-m733a-rm-k6 - - rc-avermedia-rm-ks - - rc-avertv-303 - - rc-azurewave-ad-tu700 - - rc-beelink-gs1 - - rc-beelink-mxiii - - rc-behold - - rc-behold-columbus - - rc-budget-ci-old - - rc-cec - - rc-cinergy - - rc-cinergy-1400 - - rc-ct-90405 - - rc-d680-dmb - - rc-delock-61959 - - rc-dib0700-nec - - rc-dib0700-rc5 - - rc-digitalnow-tinytwin - - rc-digittrade - - rc-dm1105-nec - - rc-dntv-live-dvb-t - - rc-dntv-live-dvbt-pro - - rc-dreambox - - rc-dtt200u - - rc-dvbsky - - rc-dvico-mce - - rc-dvico-portable - - rc-em-terratec - - rc-empty - - rc-encore-enltv - - rc-encore-enltv-fm53 - - rc-encore-enltv2 - - rc-evga-indtube - - rc-eztv - - rc-flydvb - - rc-flyvideo - - rc-fusionhdtv-mce - - rc-gadmei-rm008z - - rc-geekbox - - rc-genius-tvgo-a11mce - - rc-gotview7135 - - rc-hauppauge - - rc-hisi-poplar - - rc-hisi-tv-demo - - rc-imon-mce - - rc-imon-pad - - rc-imon-rsc - - rc-iodata-bctv7e - - rc-it913x-v1 - - rc-it913x-v2 - - rc-kaiomy - - rc-khadas - - rc-khamsin - - rc-kworld-315u - - rc-kworld-pc150u - - rc-kworld-plus-tv-analog - - rc-leadtek-y04g0051 - - rc-lme2510 - - rc-manli - - rc-mecool-kii-pro - - rc-mecool-kiii-pro - - rc-medion-x10 - - rc-medion-x10-digitainer - - rc-medion-x10-or2x - - rc-minix-neo - - rc-msi-digivox-ii - - rc-msi-digivox-iii - - rc-msi-tvanywhere - - rc-msi-tvanywhere-plus - - rc-mygica-utv3 - - rc-nebula - - rc-nec-terratec-cinergy-xs - - rc-norwood - - rc-npgtech - - rc-odroid - - rc-pctv-sedna - - rc-pine64 - - rc-pinnacle-color - - rc-pinnacle-grey - - rc-pinnacle-pctv-hd - - rc-pixelview - - rc-pixelview-002t - - rc-pixelview-mk12 - - rc-pixelview-new - - rc-powercolor-real-angel - - rc-proteus-2309 - - rc-purpletv - - rc-pv951 - - rc-rc5-tv - - rc-rc6-mce - - rc-real-audio-220-32-keys - - rc-reddo - - rc-snapstream-firefly - - rc-streamzap - - rc-su3000 - - rc-tanix-tx3mini - - rc-tanix-tx5max - - rc-tbs-nec - - rc-technisat-ts35 - - rc-technisat-usb2 - - rc-terratec-cinergy-c-pci - - rc-terratec-cinergy-s2-hd - - rc-terratec-cinergy-xs - - rc-terratec-slim - - rc-terratec-slim-2 - - rc-tevii-nec - - rc-tivo - - rc-total-media-in-hand - - rc-total-media-in-hand-02 - - rc-trekstor - - rc-tt-1500 - - rc-twinhan-dtv-cab-ci - - rc-twinhan1027 - - rc-videomate-k100 - - rc-videomate-s350 - - rc-videomate-tv-pvr - - rc-videostrong-kii-pro - - rc-vega-s9x - - rc-wetek-hub - - rc-wetek-play2 - - rc-winfast - - rc-winfast-usbii-deluxe - - rc-x96max - - rc-xbox-360 - - rc-xbox-dvd - - rc-zx-irdec - -additionalProperties: true +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/rc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic Infrared Remote Controller + +maintainers: + - Mauro Carvalho Chehab + - Sean Young + +properties: + $nodename: + pattern: "^ir(-receiver)?(@[a-f0-9]+)?$" + + linux,rc-map-name: + description: + Specifies the scancode/key mapping table defined in-kernel for + the remote controller. + $ref: /schemas/types.yaml#/definitions/string + enum: + - rc-adstech-dvb-t-pci + - rc-alink-dtu-m + - rc-anysee + - rc-apac-viewcomp + - rc-astrometa-t2hybrid + - rc-asus-pc39 + - rc-asus-ps3-100 + - rc-ati-tv-wonder-hd-600 + - rc-ati-x10 + - rc-avermedia + - rc-avermedia-a16d + - rc-avermedia-cardbus + - rc-avermedia-dvbt + - rc-avermedia-m135a + - rc-avermedia-m733a-rm-k6 + - rc-avermedia-rm-ks + - rc-avertv-303 + - rc-azurewave-ad-tu700 + - rc-beelink-gs1 + - rc-beelink-mxiii + - rc-behold + - rc-behold-columbus + - rc-budget-ci-old + - rc-cec + - rc-cinergy + - rc-cinergy-1400 + - rc-ct-90405 + - rc-d680-dmb + - rc-delock-61959 + - rc-dib0700-nec + - rc-dib0700-rc5 + - rc-digitalnow-tinytwin + - rc-digittrade + - rc-dm1105-nec + - rc-dntv-live-dvb-t + - rc-dntv-live-dvbt-pro + - rc-dreambox + - rc-dtt200u + - rc-dvbsky + - rc-dvico-mce + - rc-dvico-portable + - rc-em-terratec + - rc-empty + - rc-encore-enltv + - rc-encore-enltv-fm53 + - rc-encore-enltv2 + - rc-evga-indtube + - rc-eztv + - rc-flydvb + - rc-flyvideo + - rc-fusionhdtv-mce + - rc-gadmei-rm008z + - rc-geekbox + - rc-genius-tvgo-a11mce + - rc-gotview7135 + - rc-hauppauge + - rc-hisi-poplar + - rc-hisi-tv-demo + - rc-imon-mce + - rc-imon-pad + - rc-imon-rsc + - rc-iodata-bctv7e + - rc-it913x-v1 + - rc-it913x-v2 + - rc-kaiomy + - rc-khadas + - rc-khamsin + - rc-kworld-315u + - rc-kworld-pc150u + - rc-kworld-plus-tv-analog + - rc-leadtek-y04g0051 + - rc-lme2510 + - rc-manli + - rc-mecool-kii-pro + - rc-mecool-kiii-pro + - rc-medion-x10 + - rc-medion-x10-digitainer + - rc-medion-x10-or2x + - rc-minix-neo + - rc-msi-digivox-ii + - rc-msi-digivox-iii + - rc-msi-tvanywhere + - rc-msi-tvanywhere-plus + - rc-mygica-utv3 + - rc-nebula + - rc-nec-terratec-cinergy-xs + - rc-norwood + - rc-npgtech + - rc-odroid + - rc-pctv-sedna + - rc-pine64 + - rc-pinnacle-color + - rc-pinnacle-grey + - rc-pinnacle-pctv-hd + - rc-pixelview + - rc-pixelview-002t + - rc-pixelview-mk12 + - rc-pixelview-new + - rc-powercolor-real-angel + - rc-proteus-2309 + - rc-purpletv + - rc-pv951 + - rc-rc5-tv + - rc-rc6-mce + - rc-real-audio-220-32-keys + - rc-reddo + - rc-snapstream-firefly + - rc-streamzap + - rc-su3000 + - rc-tanix-tx3mini + - rc-tanix-tx5max + - rc-tbs-nec + - rc-technisat-ts35 + - rc-technisat-usb2 + - rc-terratec-cinergy-c-pci + - rc-terratec-cinergy-s2-hd + - rc-terratec-cinergy-xs + - rc-terratec-slim + - rc-terratec-slim-2 + - rc-tevii-nec + - rc-tivo + - rc-total-media-in-hand + - rc-total-media-in-hand-02 + - rc-trekstor + - rc-tt-1500 + - rc-twinhan-dtv-cab-ci + - rc-twinhan1027 + - rc-videomate-k100 + - rc-videomate-s350 + - rc-videomate-tv-pvr + - rc-videostrong-kii-pro + - rc-vega-s9x + - rc-wetek-hub + - rc-wetek-play2 + - rc-winfast + - rc-winfast-usbii-deluxe + - rc-x96max + - rc-xbox-360 + - rc-xbox-dvd + - rc-zx-irdec + +additionalProperties: true diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/renesas,rzg2l-csi2.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/renesas,rzg2l-csi2.yaml index 3dd9cc116..7faa12fec 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/renesas,rzg2l-csi2.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/renesas,rzg2l-csi2.yaml @@ -1,150 +1,150 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -# Copyright (C) 2022 Renesas Electronics Corp. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/renesas,rzg2l-csi2.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas RZ/G2L (and alike SoC's) MIPI CSI-2 receiver - -maintainers: - - Lad Prabhakar - -description: - The CSI-2 receiver device provides MIPI CSI-2 capabilities for the Renesas RZ/G2L - (and alike SoCs). MIPI CSI-2 is part of the CRU block which is used in conjunction - with the Image Processing module, which provides the video capture capabilities. - -properties: - compatible: - items: - - enum: - - renesas,r9a07g043-csi2 # RZ/G2UL - - renesas,r9a07g044-csi2 # RZ/G2{L,LC} - - renesas,r9a07g054-csi2 # RZ/V2L - - const: renesas,rzg2l-csi2 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - items: - - description: Internal clock for connecting CRU and MIPI - - description: CRU Main clock - - description: CRU Register access clock - - clock-names: - items: - - const: system - - const: video - - const: apb - - power-domains: - maxItems: 1 - - resets: - items: - - description: CRU_PRESETN reset terminal - - description: CRU_CMN_RSTB reset terminal - - reset-names: - items: - - const: presetn - - const: cmn-rstb - - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port@0: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: - Input port node, single endpoint describing the CSI-2 transmitter. - - properties: - endpoint: - $ref: video-interfaces.yaml# - unevaluatedProperties: false - - properties: - data-lanes: - minItems: 1 - maxItems: 4 - items: - maximum: 4 - - required: - - clock-lanes - - data-lanes - - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: - Output port node, Image Processing block connected to the CSI-2 receiver. - - required: - - port@0 - - port@1 - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - - power-domains - - resets - - reset-names - - ports - -additionalProperties: false - -examples: - - | - #include - #include - - csi: csi@10830400 { - compatible = "renesas,r9a07g044-csi2", "renesas,rzg2l-csi2"; - reg = <0x10830400 0xfc00>; - interrupts = ; - clocks = <&cpg CPG_MOD R9A07G044_CRU_SYSCLK>, - <&cpg CPG_MOD R9A07G044_CRU_VCLK>, - <&cpg CPG_MOD R9A07G044_CRU_PCLK>; - clock-names = "system", "video", "apb"; - power-domains = <&cpg>; - resets = <&cpg R9A07G044_CRU_PRESETN>, - <&cpg R9A07G044_CRU_CMN_RSTB>; - reset-names = "presetn", "cmn-rstb"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - - csi2_in: endpoint { - clock-lanes = <0>; - data-lanes = <1 2>; - remote-endpoint = <&ov5645_ep>; - }; - }; - - port@1 { - #address-cells = <1>; - #size-cells = <0>; - - reg = <1>; - - csi2cru: endpoint@0 { - reg = <0>; - remote-endpoint = <&crucsi2>; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright (C) 2022 Renesas Electronics Corp. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/renesas,rzg2l-csi2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/G2L (and alike SoC's) MIPI CSI-2 receiver + +maintainers: + - Lad Prabhakar + +description: + The CSI-2 receiver device provides MIPI CSI-2 capabilities for the Renesas RZ/G2L + (and alike SoCs). MIPI CSI-2 is part of the CRU block which is used in conjunction + with the Image Processing module, which provides the video capture capabilities. + +properties: + compatible: + items: + - enum: + - renesas,r9a07g043-csi2 # RZ/G2UL + - renesas,r9a07g044-csi2 # RZ/G2{L,LC} + - renesas,r9a07g054-csi2 # RZ/V2L + - const: renesas,rzg2l-csi2 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Internal clock for connecting CRU and MIPI + - description: CRU Main clock + - description: CRU Register access clock + + clock-names: + items: + - const: system + - const: video + - const: apb + + power-domains: + maxItems: 1 + + resets: + items: + - description: CRU_PRESETN reset terminal + - description: CRU_CMN_RSTB reset terminal + + reset-names: + items: + - const: presetn + - const: cmn-rstb + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: + Input port node, single endpoint describing the CSI-2 transmitter. + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + minItems: 1 + maxItems: 4 + items: + maximum: 4 + + required: + - clock-lanes + - data-lanes + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: + Output port node, Image Processing block connected to the CSI-2 receiver. + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - power-domains + - resets + - reset-names + - ports + +additionalProperties: false + +examples: + - | + #include + #include + + csi: csi@10830400 { + compatible = "renesas,r9a07g044-csi2", "renesas,rzg2l-csi2"; + reg = <0x10830400 0xfc00>; + interrupts = ; + clocks = <&cpg CPG_MOD R9A07G044_CRU_SYSCLK>, + <&cpg CPG_MOD R9A07G044_CRU_VCLK>, + <&cpg CPG_MOD R9A07G044_CRU_PCLK>; + clock-names = "system", "video", "apb"; + power-domains = <&cpg>; + resets = <&cpg R9A07G044_CRU_PRESETN>, + <&cpg R9A07G044_CRU_CMN_RSTB>; + reset-names = "presetn", "cmn-rstb"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + csi2_in: endpoint { + clock-lanes = <0>; + data-lanes = <1 2>; + remote-endpoint = <&ov5645_ep>; + }; + }; + + port@1 { + #address-cells = <1>; + #size-cells = <0>; + + reg = <1>; + + csi2cru: endpoint@0 { + reg = <0>; + remote-endpoint = <&crucsi2>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/samsung,exynos4210-csis.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/samsung,exynos4210-csis.yaml index f05920caa..dd6cc7ac1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/samsung,exynos4210-csis.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/samsung,exynos4210-csis.yaml @@ -1,170 +1,170 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/samsung,exynos4210-csis.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung S5P/Exynos SoC series MIPI CSI-2 receiver (MIPI CSIS) - -maintainers: - - Krzysztof Kozlowski - - Sylwester Nawrocki - -properties: - compatible: - enum: - - samsung,s5pv210-csis - - samsung,exynos4210-csis - - samsung,exynos4212-csis - - samsung,exynos5250-csis - - reg: - maxItems: 1 - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - - bus-width: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [2, 4] - description: - Number of data lines supported. - - clocks: - maxItems: 2 - - clock-names: - items: - - const: csis - - const: sclk_csis - - clock-frequency: - default: 166000000 - description: - The IP's main (system bus) clock frequency in Hz. - - interrupts: - maxItems: 1 - - phys: - maxItems: 1 - - phy-names: - items: - - const: csis - - power-domains: - maxItems: 1 - - vddio-supply: - description: MIPI CSIS I/O and PLL voltage supply (e.g. 1.8V). - - vddcore-supply: - description: MIPI CSIS Core voltage supply (e.g. 1.1V). - -patternProperties: - "^port@[34]$": - $ref: /schemas/graph.yaml#/$defs/port-base - additionalProperties: false - description: - Camera input port. - - properties: - reg: - enum: [3, 4] - - endpoint: - $ref: video-interfaces.yaml# - unevaluatedProperties: false - - properties: - data-lanes: - minItems: 1 - maxItems: 4 - - samsung,csis-hs-settle: - $ref: /schemas/types.yaml#/definitions/uint32 - description: Differential receiver (HS-RX) settle time. - - samsung,csis-wclk: - type: boolean - description: - CSI-2 wrapper clock selection. If this property is present external clock - from CMU will be used, or the bus clock if it's not specified. - - required: - - data-lanes - - required: - - reg - -required: - - compatible - - reg - - bus-width - - clocks - - clock-names - - interrupts - - vddio-supply - - vddcore-supply - -anyOf: - - required: - - port@3 - - required: - - port@4 - -allOf: - - if: - required: - - samsung,isp-wb - then: - required: - - samsung,sysreg - -additionalProperties: false - -examples: - - | - #include - #include - - csis@11890000 { - compatible = "samsung,exynos4210-csis"; - reg = <0x11890000 0x4000>; - clocks = <&clock CLK_CSIS1>, - <&clock CLK_SCLK_CSIS1>; - clock-names = "csis", "sclk_csis"; - assigned-clocks = <&clock CLK_MOUT_CSIS1>, - <&clock CLK_SCLK_CSIS1>; - assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>; - assigned-clock-rates = <0>, <176000000>; - - interrupts = ; - - bus-width = <2>; - power-domains = <&pd_cam>; - phys = <&mipi_phy 2>; - phy-names = "csis"; - - vddcore-supply = <&ldo8_reg>; - vddio-supply = <&ldo10_reg>; - - #address-cells = <1>; - #size-cells = <0>; - - /* Camera D (4) MIPI CSI-2 (CSIS1) */ - port@4 { - reg = <4>; - - endpoint { - remote-endpoint = <&is_s5k6a3_ep>; - data-lanes = <1>; - samsung,csis-hs-settle = <18>; - samsung,csis-wclk; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/samsung,exynos4210-csis.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S5P/Exynos SoC series MIPI CSI-2 receiver (MIPI CSIS) + +maintainers: + - Krzysztof Kozlowski + - Sylwester Nawrocki + +properties: + compatible: + enum: + - samsung,s5pv210-csis + - samsung,exynos4210-csis + - samsung,exynos4212-csis + - samsung,exynos5250-csis + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + bus-width: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [2, 4] + description: + Number of data lines supported. + + clocks: + maxItems: 2 + + clock-names: + items: + - const: csis + - const: sclk_csis + + clock-frequency: + default: 166000000 + description: + The IP's main (system bus) clock frequency in Hz. + + interrupts: + maxItems: 1 + + phys: + maxItems: 1 + + phy-names: + items: + - const: csis + + power-domains: + maxItems: 1 + + vddio-supply: + description: MIPI CSIS I/O and PLL voltage supply (e.g. 1.8V). + + vddcore-supply: + description: MIPI CSIS Core voltage supply (e.g. 1.1V). + +patternProperties: + "^port@[34]$": + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + description: + Camera input port. + + properties: + reg: + enum: [3, 4] + + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + minItems: 1 + maxItems: 4 + + samsung,csis-hs-settle: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Differential receiver (HS-RX) settle time. + + samsung,csis-wclk: + type: boolean + description: + CSI-2 wrapper clock selection. If this property is present external clock + from CMU will be used, or the bus clock if it's not specified. + + required: + - data-lanes + + required: + - reg + +required: + - compatible + - reg + - bus-width + - clocks + - clock-names + - interrupts + - vddio-supply + - vddcore-supply + +anyOf: + - required: + - port@3 + - required: + - port@4 + +allOf: + - if: + required: + - samsung,isp-wb + then: + required: + - samsung,sysreg + +additionalProperties: false + +examples: + - | + #include + #include + + csis@11890000 { + compatible = "samsung,exynos4210-csis"; + reg = <0x11890000 0x4000>; + clocks = <&clock CLK_CSIS1>, + <&clock CLK_SCLK_CSIS1>; + clock-names = "csis", "sclk_csis"; + assigned-clocks = <&clock CLK_MOUT_CSIS1>, + <&clock CLK_SCLK_CSIS1>; + assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>; + assigned-clock-rates = <0>, <176000000>; + + interrupts = ; + + bus-width = <2>; + power-domains = <&pd_cam>; + phys = <&mipi_phy 2>; + phy-names = "csis"; + + vddcore-supply = <&ldo8_reg>; + vddio-supply = <&ldo10_reg>; + + #address-cells = <1>; + #size-cells = <0>; + + /* Camera D (4) MIPI CSI-2 (CSIS1) */ + port@4 { + reg = <4>; + + endpoint { + remote-endpoint = <&is_s5k6a3_ep>; + data-lanes = <1>; + samsung,csis-hs-settle = <18>; + samsung,csis-wclk; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/samsung,exynos4210-fimc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/samsung,exynos4210-fimc.yaml index 711e88da8..2ba27b230 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/samsung,exynos4210-fimc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/samsung,exynos4210-fimc.yaml @@ -1,152 +1,152 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/samsung,exynos4210-fimc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung S5P/Exynos SoC Fully Integrated Mobile Camera - -maintainers: - - Krzysztof Kozlowski - - Sylwester Nawrocki - -description: - Each FIMC device should have an alias in the aliases node, in the form of - fimc, where is an integer specifying the IP block instance. - -properties: - compatible: - enum: - - samsung,exynos4210-fimc - - samsung,exynos4212-fimc - - samsung,s5pv210-fimc - - reg: - maxItems: 1 - - clocks: - maxItems: 2 - - clock-names: - items: - - const: fimc - - const: sclk_fimc - - clock-frequency: - description: - Maximum FIMC local clock (LCLK) frequency. - - interrupts: - maxItems: 1 - - iommus: - maxItems: 1 - - power-domains: - maxItems: 1 - - samsung,cam-if: - type: boolean - description: - The FIMC IP block includes the camera input interface. - - samsung,isp-wb: - type: boolean - description: | - The FIMC IP block has the ISP writeback input. - - samsung,lcd-wb: - type: boolean - description: | - The FIMC IP block has the LCD writeback input. - - samsung,mainscaler-ext: - type: boolean - description: - FIMC IP supports extended image size and has CIEXTEN register. - - samsung,min-pix-alignment: - $ref: /schemas/types.yaml#/definitions/uint32-array - items: - - description: Minimum supported image height alignment. - - description: Horizontal image offset. - description: - The values are in pixels and default is <2 1>. - - samsung,min-pix-sizes: - $ref: /schemas/types.yaml#/definitions/uint32-array - maxItems: 2 - description: | - An array specifying minimum image size in pixels at the FIMC input and - output DMA, in the first and second cell respectively. Default value - is <16 16>. - - samsung,pix-limits: - $ref: /schemas/types.yaml#/definitions/uint32-array - maxItems: 4 - description: | - An array of maximum supported image sizes in pixels, for details refer to - Table 2-1 in the S5PV210 SoC User Manual. The meaning of each cell is as - follows: - 0 - scaler input horizontal size - 1 - input horizontal size for the scaler bypassed - 2 - REAL_WIDTH without input rotation - 3 - REAL_HEIGHT with input rotation - - samsung,rotators: - $ref: /schemas/types.yaml#/definitions/uint32 - default: 0x11 - description: | - A bitmask specifying whether this IP has the input and the output - rotator. Bits 4 and 0 correspond to input and output rotator - respectively. If a rotator is present its corresponding bit should be - set. - - samsung,sysreg: - $ref: /schemas/types.yaml#/definitions/phandle - description: - System Registers (SYSREG) node. - -required: - - compatible - - reg - - clocks - - clock-names - - samsung,pix-limits - -allOf: - - if: - required: - - samsung,isp-wb - then: - required: - - samsung,sysreg - -additionalProperties: false - -examples: - - | - #include - #include - - fimc@11800000 { - compatible = "samsung,exynos4212-fimc"; - reg = <0x11800000 0x1000>; - clocks = <&clock CLK_FIMC0>, - <&clock CLK_SCLK_FIMC0>; - clock-names = "fimc", "sclk_fimc"; - interrupts = ; - iommus = <&sysmmu_fimc0>; - power-domains = <&pd_cam>; - samsung,sysreg = <&sys_reg>; - - samsung,pix-limits = <4224 8192 1920 4224>; - samsung,mainscaler-ext; - samsung,isp-wb; - samsung,cam-if; - - assigned-clocks = <&clock CLK_MOUT_FIMC0>, - <&clock CLK_SCLK_FIMC0>; - assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>; - assigned-clock-rates = <0>, <176000000>; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/samsung,exynos4210-fimc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S5P/Exynos SoC Fully Integrated Mobile Camera + +maintainers: + - Krzysztof Kozlowski + - Sylwester Nawrocki + +description: + Each FIMC device should have an alias in the aliases node, in the form of + fimc, where is an integer specifying the IP block instance. + +properties: + compatible: + enum: + - samsung,exynos4210-fimc + - samsung,exynos4212-fimc + - samsung,s5pv210-fimc + + reg: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: fimc + - const: sclk_fimc + + clock-frequency: + description: + Maximum FIMC local clock (LCLK) frequency. + + interrupts: + maxItems: 1 + + iommus: + maxItems: 1 + + power-domains: + maxItems: 1 + + samsung,cam-if: + type: boolean + description: + The FIMC IP block includes the camera input interface. + + samsung,isp-wb: + type: boolean + description: | + The FIMC IP block has the ISP writeback input. + + samsung,lcd-wb: + type: boolean + description: | + The FIMC IP block has the LCD writeback input. + + samsung,mainscaler-ext: + type: boolean + description: + FIMC IP supports extended image size and has CIEXTEN register. + + samsung,min-pix-alignment: + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + - description: Minimum supported image height alignment. + - description: Horizontal image offset. + description: + The values are in pixels and default is <2 1>. + + samsung,min-pix-sizes: + $ref: /schemas/types.yaml#/definitions/uint32-array + maxItems: 2 + description: | + An array specifying minimum image size in pixels at the FIMC input and + output DMA, in the first and second cell respectively. Default value + is <16 16>. + + samsung,pix-limits: + $ref: /schemas/types.yaml#/definitions/uint32-array + maxItems: 4 + description: | + An array of maximum supported image sizes in pixels, for details refer to + Table 2-1 in the S5PV210 SoC User Manual. The meaning of each cell is as + follows: + 0 - scaler input horizontal size + 1 - input horizontal size for the scaler bypassed + 2 - REAL_WIDTH without input rotation + 3 - REAL_HEIGHT with input rotation + + samsung,rotators: + $ref: /schemas/types.yaml#/definitions/uint32 + default: 0x11 + description: | + A bitmask specifying whether this IP has the input and the output + rotator. Bits 4 and 0 correspond to input and output rotator + respectively. If a rotator is present its corresponding bit should be + set. + + samsung,sysreg: + $ref: /schemas/types.yaml#/definitions/phandle + description: + System Registers (SYSREG) node. + +required: + - compatible + - reg + - clocks + - clock-names + - samsung,pix-limits + +allOf: + - if: + required: + - samsung,isp-wb + then: + required: + - samsung,sysreg + +additionalProperties: false + +examples: + - | + #include + #include + + fimc@11800000 { + compatible = "samsung,exynos4212-fimc"; + reg = <0x11800000 0x1000>; + clocks = <&clock CLK_FIMC0>, + <&clock CLK_SCLK_FIMC0>; + clock-names = "fimc", "sclk_fimc"; + interrupts = ; + iommus = <&sysmmu_fimc0>; + power-domains = <&pd_cam>; + samsung,sysreg = <&sys_reg>; + + samsung,pix-limits = <4224 8192 1920 4224>; + samsung,mainscaler-ext; + samsung,isp-wb; + samsung,cam-if; + + assigned-clocks = <&clock CLK_MOUT_FIMC0>, + <&clock CLK_SCLK_FIMC0>; + assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>; + assigned-clock-rates = <0>, <176000000>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/samsung,s5c73m3.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/samsung,s5c73m3.yaml index 9437ec967..1b75390fd 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/samsung,s5c73m3.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/samsung,s5c73m3.yaml @@ -1,165 +1,165 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/samsung,s5c73m3.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung S5C73M3 8Mp camera ISP - -maintainers: - - Krzysztof Kozlowski - - Sylwester Nawrocki - -description: - The S5C73M3 camera ISP supports MIPI CSI-2 and parallel (ITU-R BT.656) - video data busses. The I2C bus is the main control bus and additionally the - SPI bus is used, mostly for transferring the firmware to and from the - device. Two slave device nodes corresponding to these control bus - interfaces are required and should be placed under respective bus - controller nodes. - -properties: - compatible: - const: samsung,s5c73m3 - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - clock-names: - items: - - const: cis_extclk - - clock-frequency: - default: 24000000 - description: cis_extclk clock frequency. - - standby-gpios: - maxItems: 1 - description: STANDBY pin. - - vdda-supply: - description: Analog power supply (1.2V). - - vdd-af-supply: - description: lens power supply (2.8V). - - vddio-cis-supply: - description: CIS I/O power supply (1.2V to 1.8V). - - vddio-host-supply: - description: Host I/O power supply (1.8V to 2.8V). - - vdd-int-supply: - description: Digital power supply (1.2V). - - vdd-reg-supply: - description: Regulator input power supply (2.8V). - - xshutdown-gpios: - maxItems: 1 - description: XSHUTDOWN pin. - - port: - $ref: /schemas/graph.yaml#/$defs/port-base - additionalProperties: false - - properties: - endpoint: - $ref: /schemas/media/video-interfaces.yaml# - unevaluatedProperties: false - - properties: - data-lanes: - items: - - const: 1 - - const: 2 - - const: 3 - - const: 4 - -required: - - compatible - - reg - -allOf: - - $ref: /schemas/spi/spi-peripheral-props.yaml# - - if: - required: - - spi-max-frequency - then: - properties: - # The SPI node is simplified firmware-transfer interface only - clocks: false - clock-names: false - standby-gpios: false - vdda-supply: false - vdd-af-supply: false - vddio-cis-supply: false - vddio-host-supply: false - vdd-int-supply: false - vdd-reg-supply: false - xshutdown-gpios: false - port: false - else: - required: - - clocks - - clock-names - - standby-gpios - - vdda-supply - - vdd-af-supply - - vddio-cis-supply - - vddio-host-supply - - vdd-int-supply - - vdd-reg-supply - - xshutdown-gpios - - port - -unevaluatedProperties: false - -examples: - - | - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - image-sensor@3c { - compatible = "samsung,s5c73m3"; - reg = <0x3c>; - clock-frequency = <24000000>; - clocks = <&camera 0>; - clock-names = "cis_extclk"; - standby-gpios = <&gpm0 6 GPIO_ACTIVE_LOW>; - vdda-supply = <&cam_vdda_reg>; - vdd-af-supply = <&cam_af_reg>; - vddio-cis-supply = <&ldo9_reg>; - vddio-host-supply = <&ldo18_reg>; - vdd-int-supply = <&buck9_reg>; - vdd-reg-supply = <&cam_io_reg>; - xshutdown-gpios = <&gpf1 3 GPIO_ACTIVE_LOW>; /* ISP_RESET */ - - port { - s5c73m3_ep: endpoint { - remote-endpoint = <&csis0_ep>; - data-lanes = <1 2 3 4>; - }; - }; - }; - }; - - spi { - #address-cells = <1>; - #size-cells = <0>; - - image-sensor@0 { - compatible = "samsung,s5c73m3"; - reg = <0>; - spi-max-frequency = <50000000>; - controller-data { - samsung,spi-feedback-delay = <2>; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/samsung,s5c73m3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S5C73M3 8Mp camera ISP + +maintainers: + - Krzysztof Kozlowski + - Sylwester Nawrocki + +description: + The S5C73M3 camera ISP supports MIPI CSI-2 and parallel (ITU-R BT.656) + video data busses. The I2C bus is the main control bus and additionally the + SPI bus is used, mostly for transferring the firmware to and from the + device. Two slave device nodes corresponding to these control bus + interfaces are required and should be placed under respective bus + controller nodes. + +properties: + compatible: + const: samsung,s5c73m3 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: cis_extclk + + clock-frequency: + default: 24000000 + description: cis_extclk clock frequency. + + standby-gpios: + maxItems: 1 + description: STANDBY pin. + + vdda-supply: + description: Analog power supply (1.2V). + + vdd-af-supply: + description: lens power supply (2.8V). + + vddio-cis-supply: + description: CIS I/O power supply (1.2V to 1.8V). + + vddio-host-supply: + description: Host I/O power supply (1.8V to 2.8V). + + vdd-int-supply: + description: Digital power supply (1.2V). + + vdd-reg-supply: + description: Regulator input power supply (2.8V). + + xshutdown-gpios: + maxItems: 1 + description: XSHUTDOWN pin. + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + items: + - const: 1 + - const: 2 + - const: 3 + - const: 4 + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + - if: + required: + - spi-max-frequency + then: + properties: + # The SPI node is simplified firmware-transfer interface only + clocks: false + clock-names: false + standby-gpios: false + vdda-supply: false + vdd-af-supply: false + vddio-cis-supply: false + vddio-host-supply: false + vdd-int-supply: false + vdd-reg-supply: false + xshutdown-gpios: false + port: false + else: + required: + - clocks + - clock-names + - standby-gpios + - vdda-supply + - vdd-af-supply + - vddio-cis-supply + - vddio-host-supply + - vdd-int-supply + - vdd-reg-supply + - xshutdown-gpios + - port + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + image-sensor@3c { + compatible = "samsung,s5c73m3"; + reg = <0x3c>; + clock-frequency = <24000000>; + clocks = <&camera 0>; + clock-names = "cis_extclk"; + standby-gpios = <&gpm0 6 GPIO_ACTIVE_LOW>; + vdda-supply = <&cam_vdda_reg>; + vdd-af-supply = <&cam_af_reg>; + vddio-cis-supply = <&ldo9_reg>; + vddio-host-supply = <&ldo18_reg>; + vdd-int-supply = <&buck9_reg>; + vdd-reg-supply = <&cam_io_reg>; + xshutdown-gpios = <&gpf1 3 GPIO_ACTIVE_LOW>; /* ISP_RESET */ + + port { + s5c73m3_ep: endpoint { + remote-endpoint = <&csis0_ep>; + data-lanes = <1 2 3 4>; + }; + }; + }; + }; + + spi { + #address-cells = <1>; + #size-cells = <0>; + + image-sensor@0 { + compatible = "samsung,s5c73m3"; + reg = <0>; + spi-max-frequency = <50000000>; + controller-data { + samsung,spi-feedback-delay = <2>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/samsung,s5p-mfc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/samsung,s5p-mfc.yaml index 05d5b966f..b46cc7807 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/samsung,s5p-mfc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/samsung,s5p-mfc.yaml @@ -1,195 +1,195 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/samsung,s5p-mfc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung Exynos Multi Format Codec (MFC) - -maintainers: - - Marek Szyprowski - - Aakarsh Jain - -description: - Multi Format Codec (MFC) is the IP present in Samsung SoCs which - supports high resolution decoding and encoding functionalities. - -properties: - compatible: - oneOf: - - enum: - - samsung,exynos5433-mfc # Exynos5433 - - samsung,mfc-v5 # Exynos4 - - samsung,mfc-v6 # Exynos5 - - samsung,mfc-v7 # Exynos5420 - - samsung,mfc-v8 # Exynos5800 - - samsung,mfc-v10 # Exynos7880 - - tesla,fsd-mfc # Tesla FSD - - items: - - enum: - - samsung,exynos3250-mfc # Exynos3250 - - const: samsung,mfc-v7 # Fall back for Exynos3250 - - reg: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 3 - - clock-names: - minItems: 1 - maxItems: 3 - - interrupts: - maxItems: 1 - - iommus: - minItems: 1 - maxItems: 2 - - iommu-names: - minItems: 1 - items: - - const: left - - const: right - - power-domains: - maxItems: 1 - - memory-region: - minItems: 1 - maxItems: 2 - -required: - - compatible - - reg - - clocks - - clock-names - - interrupts - -additionalProperties: false - -allOf: - - if: - properties: - compatible: - contains: - enum: - - samsung,exynos3250-mfc - then: - properties: - clocks: - maxItems: 2 - clock-names: - items: - - const: mfc - - const: sclk_mfc - iommus: - maxItems: 1 - iommu-names: false - - - if: - properties: - compatible: - contains: - enum: - - samsung,exynos5433-mfc - then: - properties: - clocks: - maxItems: 3 - clock-names: - items: - - const: pclk - - const: aclk - - const: aclk_xiu - iommus: - minItems: 2 - iommu-names: - minItems: 2 - - - if: - properties: - compatible: - contains: - enum: - - samsung,mfc-v5 - then: - properties: - clocks: - maxItems: 2 - clock-names: - items: - - const: mfc - - const: sclk_mfc - iommus: - minItems: 2 - iommu-names: - minItems: 2 - - - if: - properties: - compatible: - contains: - enum: - - samsung,mfc-v6 - - samsung,mfc-v8 - then: - properties: - clocks: - maxItems: 1 - clock-names: - items: - - const: mfc - iommus: - minItems: 2 - iommu-names: - minItems: 2 - - - if: - properties: - compatible: - contains: - enum: - - samsung,mfc-v7 - then: - properties: - clocks: - minItems: 1 - maxItems: 2 - - - if: - properties: - compatible: - contains: - enum: - - tesla,fsd-mfc - then: - properties: - clocks: - maxItems: 1 - clock-names: - items: - - const: mfc - iommus: - maxItems: 2 - iommus-names: false - -examples: - - | - #include - #include - #include - #include - - codec@13400000 { - compatible = "samsung,mfc-v5"; - reg = <0x13400000 0x10000>; - interrupts = ; - power-domains = <&pd_mfc>; - clocks = <&clock CLK_MFC>, <&clock CLK_SCLK_MFC>; - clock-names = "mfc", "sclk_mfc"; - iommus = <&sysmmu_mfc_l>, <&sysmmu_mfc_r>; - iommu-names = "left", "right"; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/samsung,s5p-mfc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Exynos Multi Format Codec (MFC) + +maintainers: + - Marek Szyprowski + - Aakarsh Jain + +description: + Multi Format Codec (MFC) is the IP present in Samsung SoCs which + supports high resolution decoding and encoding functionalities. + +properties: + compatible: + oneOf: + - enum: + - samsung,exynos5433-mfc # Exynos5433 + - samsung,mfc-v5 # Exynos4 + - samsung,mfc-v6 # Exynos5 + - samsung,mfc-v7 # Exynos5420 + - samsung,mfc-v8 # Exynos5800 + - samsung,mfc-v10 # Exynos7880 + - tesla,fsd-mfc # Tesla FSD + - items: + - enum: + - samsung,exynos3250-mfc # Exynos3250 + - const: samsung,mfc-v7 # Fall back for Exynos3250 + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 3 + + clock-names: + minItems: 1 + maxItems: 3 + + interrupts: + maxItems: 1 + + iommus: + minItems: 1 + maxItems: 2 + + iommu-names: + minItems: 1 + items: + - const: left + - const: right + + power-domains: + maxItems: 1 + + memory-region: + minItems: 1 + maxItems: 2 + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + contains: + enum: + - samsung,exynos3250-mfc + then: + properties: + clocks: + maxItems: 2 + clock-names: + items: + - const: mfc + - const: sclk_mfc + iommus: + maxItems: 1 + iommu-names: false + + - if: + properties: + compatible: + contains: + enum: + - samsung,exynos5433-mfc + then: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: pclk + - const: aclk + - const: aclk_xiu + iommus: + minItems: 2 + iommu-names: + minItems: 2 + + - if: + properties: + compatible: + contains: + enum: + - samsung,mfc-v5 + then: + properties: + clocks: + maxItems: 2 + clock-names: + items: + - const: mfc + - const: sclk_mfc + iommus: + minItems: 2 + iommu-names: + minItems: 2 + + - if: + properties: + compatible: + contains: + enum: + - samsung,mfc-v6 + - samsung,mfc-v8 + then: + properties: + clocks: + maxItems: 1 + clock-names: + items: + - const: mfc + iommus: + minItems: 2 + iommu-names: + minItems: 2 + + - if: + properties: + compatible: + contains: + enum: + - samsung,mfc-v7 + then: + properties: + clocks: + minItems: 1 + maxItems: 2 + + - if: + properties: + compatible: + contains: + enum: + - tesla,fsd-mfc + then: + properties: + clocks: + maxItems: 1 + clock-names: + items: + - const: mfc + iommus: + maxItems: 2 + iommus-names: false + +examples: + - | + #include + #include + #include + #include + + codec@13400000 { + compatible = "samsung,mfc-v5"; + reg = <0x13400000 0x10000>; + interrupts = ; + power-domains = <&pd_mfc>; + clocks = <&clock CLK_MFC>, <&clock CLK_SCLK_MFC>; + clock-names = "mfc", "sclk_mfc"; + iommus = <&sysmmu_mfc_l>, <&sysmmu_mfc_r>; + iommu-names = "left", "right"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml index 1af03d2b3..c66586d90 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml @@ -1,180 +1,180 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/starfive,jh7110-camss.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Starfive SoC CAMSS ISP - -maintainers: - - Jack Zhu - - Changhuang Liang - -description: - The Starfive CAMSS ISP is a Camera interface for Starfive JH7110 SoC. It - consists of a VIN controller (Video In Controller, a top-level control unit) - and an ISP. - -properties: - compatible: - const: starfive,jh7110-camss - - reg: - maxItems: 2 - - reg-names: - items: - - const: syscon - - const: isp - - clocks: - maxItems: 7 - - clock-names: - items: - - const: apb_func - - const: wrapper_clk_c - - const: dvp_inv - - const: axiwr - - const: mipi_rx0_pxl - - const: ispcore_2x - - const: isp_axi - - resets: - maxItems: 6 - - reset-names: - items: - - const: wrapper_p - - const: wrapper_c - - const: axird - - const: axiwr - - const: isp_top_n - - const: isp_top_axi - - power-domains: - items: - - description: JH7110 ISP Power Domain Switch Controller. - - interrupts: - maxItems: 4 - - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port@0: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: Input port for receiving DVP data. - - properties: - endpoint: - $ref: video-interfaces.yaml# - unevaluatedProperties: false - - properties: - bus-type: - enum: [5, 6] - - bus-width: - enum: [8, 10, 12] - - data-shift: - enum: [0, 2] - default: 0 - - hsync-active: - enum: [0, 1] - default: 1 - - vsync-active: - enum: [0, 1] - default: 1 - - required: - - bus-type - - bus-width - - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: Input port for receiving CSI data. - - required: - - port@0 - - port@1 - -required: - - compatible - - reg - - reg-names - - clocks - - clock-names - - resets - - reset-names - - power-domains - - interrupts - - ports - -additionalProperties: false - -examples: - - | - isp@19840000 { - compatible = "starfive,jh7110-camss"; - reg = <0x19840000 0x10000>, - <0x19870000 0x30000>; - reg-names = "syscon", "isp"; - clocks = <&ispcrg 0>, - <&ispcrg 13>, - <&ispcrg 2>, - <&ispcrg 12>, - <&ispcrg 1>, - <&syscrg 51>, - <&syscrg 52>; - clock-names = "apb_func", - "wrapper_clk_c", - "dvp_inv", - "axiwr", - "mipi_rx0_pxl", - "ispcore_2x", - "isp_axi"; - resets = <&ispcrg 0>, - <&ispcrg 1>, - <&ispcrg 10>, - <&ispcrg 11>, - <&syscrg 41>, - <&syscrg 42>; - reset-names = "wrapper_p", - "wrapper_c", - "axird", - "axiwr", - "isp_top_n", - "isp_top_axi"; - power-domains = <&pwrc 5>; - interrupts = <92>, <87>, <88>, <90>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - port@0 { - reg = <0>; - vin_from_sc2235: endpoint { - remote-endpoint = <&sc2235_to_vin>; - bus-type = <5>; - bus-width = <8>; - data-shift = <2>; - hsync-active = <1>; - vsync-active = <0>; - pclk-sample = <1>; - }; - }; - - port@1 { - reg = <1>; - vin_from_csi2rx: endpoint { - remote-endpoint = <&csi2rx_to_vin>; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/starfive,jh7110-camss.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Starfive SoC CAMSS ISP + +maintainers: + - Jack Zhu + - Changhuang Liang + +description: + The Starfive CAMSS ISP is a Camera interface for Starfive JH7110 SoC. It + consists of a VIN controller (Video In Controller, a top-level control unit) + and an ISP. + +properties: + compatible: + const: starfive,jh7110-camss + + reg: + maxItems: 2 + + reg-names: + items: + - const: syscon + - const: isp + + clocks: + maxItems: 7 + + clock-names: + items: + - const: apb_func + - const: wrapper_clk_c + - const: dvp_inv + - const: axiwr + - const: mipi_rx0_pxl + - const: ispcore_2x + - const: isp_axi + + resets: + maxItems: 6 + + reset-names: + items: + - const: wrapper_p + - const: wrapper_c + - const: axird + - const: axiwr + - const: isp_top_n + - const: isp_top_axi + + power-domains: + items: + - description: JH7110 ISP Power Domain Switch Controller. + + interrupts: + maxItems: 4 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: Input port for receiving DVP data. + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + bus-type: + enum: [5, 6] + + bus-width: + enum: [8, 10, 12] + + data-shift: + enum: [0, 2] + default: 0 + + hsync-active: + enum: [0, 1] + default: 1 + + vsync-active: + enum: [0, 1] + default: 1 + + required: + - bus-type + - bus-width + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Input port for receiving CSI data. + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - reg-names + - clocks + - clock-names + - resets + - reset-names + - power-domains + - interrupts + - ports + +additionalProperties: false + +examples: + - | + isp@19840000 { + compatible = "starfive,jh7110-camss"; + reg = <0x19840000 0x10000>, + <0x19870000 0x30000>; + reg-names = "syscon", "isp"; + clocks = <&ispcrg 0>, + <&ispcrg 13>, + <&ispcrg 2>, + <&ispcrg 12>, + <&ispcrg 1>, + <&syscrg 51>, + <&syscrg 52>; + clock-names = "apb_func", + "wrapper_clk_c", + "dvp_inv", + "axiwr", + "mipi_rx0_pxl", + "ispcore_2x", + "isp_axi"; + resets = <&ispcrg 0>, + <&ispcrg 1>, + <&ispcrg 10>, + <&ispcrg 11>, + <&syscrg 41>, + <&syscrg 42>; + reset-names = "wrapper_p", + "wrapper_c", + "axird", + "axiwr", + "isp_top_n", + "isp_top_axi"; + power-domains = <&pwrc 5>; + interrupts = <92>, <87>, <88>, <90>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + vin_from_sc2235: endpoint { + remote-endpoint = <&sc2235_to_vin>; + bus-type = <5>; + bus-width = <8>; + data-shift = <2>; + hsync-active = <1>; + vsync-active = <0>; + pclk-sample = <1>; + }; + }; + + port@1 { + reg = <1>; + vin_from_csi2rx: endpoint { + remote-endpoint = <&csi2rx_to_vin>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/ti,cal.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/ti,cal.yaml index db944d43a..f1a940a11 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/ti,cal.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/media/ti,cal.yaml @@ -1,177 +1,177 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/media/ti,cal.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Texas Instruments DRA72x CAMERA ADAPTATION LAYER (CAL) - -maintainers: - - Benoit Parrot - -description: |- - The Camera Adaptation Layer (CAL) is a key component for image capture - applications. The capture module provides the system interface and the - processing capability to connect CSI2 image-sensor modules to the - DRA72x device. - - CAL supports 2 camera port nodes on MIPI bus. - -properties: - compatible: - enum: - # for DRA72 controllers - - ti,dra72-cal - # for DRA72 controllers pre ES2.0 - - ti,dra72-pre-es2-cal - # for DRA76 controllers - - ti,dra76-cal - # for AM654 controllers - - ti,am654-cal - - reg: - minItems: 2 - items: - - description: The CAL main register region - - description: The RX Core0 (DPHY0) register region - - description: The RX Core1 (DPHY1) register region - - reg-names: - minItems: 2 - items: - - const: cal_top - - const: cal_rx_core0 - - const: cal_rx_core1 - - interrupts: - maxItems: 1 - - ti,camerrx-control: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - - items: - - description: phandle to device control module - - description: offset to the control_camerarx_core register - description: - phandle to the device control module and offset to the - control_camerarx_core register - - clocks: - maxItems: 1 - - clock-names: - const: fck - - power-domains: - description: - List of phandle and PM domain specifier as documented in - Documentation/devicetree/bindings/power/power_domain.txt - maxItems: 1 - - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port@0: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: 'CSI2 Port #0' - - properties: - endpoint: - $ref: video-interfaces.yaml# - unevaluatedProperties: false - - properties: - clock-lanes: - maxItems: 1 - - data-lanes: - minItems: 1 - maxItems: 4 - - port@1: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: 'CSI2 Port #1' - - properties: - endpoint: - $ref: video-interfaces.yaml# - unevaluatedProperties: false - - properties: - clock-lanes: - maxItems: 1 - - data-lanes: - minItems: 1 - maxItems: 4 - - required: - - port@0 - -required: - - compatible - - reg - - reg-names - - interrupts - - ti,camerrx-control - -additionalProperties: false - -examples: - - | - #include - - cal: cal@4845b000 { - compatible = "ti,dra72-cal"; - reg = <0x4845B000 0x400>, - <0x4845B800 0x40>, - <0x4845B900 0x40>; - reg-names = "cal_top", - "cal_rx_core0", - "cal_rx_core1"; - interrupts = ; - ti,camerrx-control = <&scm_conf 0xE94>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - csi2_0: port@0 { - reg = <0>; - csi2_phy0: endpoint { - remote-endpoint = <&csi2_cam0>; - clock-lanes = <0>; - data-lanes = <1 2>; - }; - }; - }; - }; - - i2c { - clock-frequency = <400000>; - #address-cells = <1>; - #size-cells = <0>; - - camera-sensor@3c { - compatible = "ovti,ov5640"; - reg = <0x3c>; - AVDD-supply = <®_2p8v>; - DOVDD-supply = <®_1p8v>; - DVDD-supply = <®_1p5v>; - clocks = <&clk_ov5640_fixed>; - clock-names = "xclk"; - - port { - csi2_cam0: endpoint { - remote-endpoint = <&csi2_phy0>; - clock-lanes = <0>; - data-lanes = <1 2>; - }; - }; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/ti,cal.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments DRA72x CAMERA ADAPTATION LAYER (CAL) + +maintainers: + - Benoit Parrot + +description: |- + The Camera Adaptation Layer (CAL) is a key component for image capture + applications. The capture module provides the system interface and the + processing capability to connect CSI2 image-sensor modules to the + DRA72x device. + + CAL supports 2 camera port nodes on MIPI bus. + +properties: + compatible: + enum: + # for DRA72 controllers + - ti,dra72-cal + # for DRA72 controllers pre ES2.0 + - ti,dra72-pre-es2-cal + # for DRA76 controllers + - ti,dra76-cal + # for AM654 controllers + - ti,am654-cal + + reg: + minItems: 2 + items: + - description: The CAL main register region + - description: The RX Core0 (DPHY0) register region + - description: The RX Core1 (DPHY1) register region + + reg-names: + minItems: 2 + items: + - const: cal_top + - const: cal_rx_core0 + - const: cal_rx_core1 + + interrupts: + maxItems: 1 + + ti,camerrx-control: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to device control module + - description: offset to the control_camerarx_core register + description: + phandle to the device control module and offset to the + control_camerarx_core register + + clocks: + maxItems: 1 + + clock-names: + const: fck + + power-domains: + description: + List of phandle and PM domain specifier as documented in + Documentation/devicetree/bindings/power/power_domain.txt + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: 'CSI2 Port #0' + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + clock-lanes: + maxItems: 1 + + data-lanes: + minItems: 1 + maxItems: 4 + + port@1: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: 'CSI2 Port #1' + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + clock-lanes: + maxItems: 1 + + data-lanes: + minItems: 1 + maxItems: 4 + + required: + - port@0 + +required: + - compatible + - reg + - reg-names + - interrupts + - ti,camerrx-control + +additionalProperties: false + +examples: + - | + #include + + cal: cal@4845b000 { + compatible = "ti,dra72-cal"; + reg = <0x4845B000 0x400>, + <0x4845B800 0x40>, + <0x4845B900 0x40>; + reg-names = "cal_top", + "cal_rx_core0", + "cal_rx_core1"; + interrupts = ; + ti,camerrx-control = <&scm_conf 0xE94>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + csi2_0: port@0 { + reg = <0>; + csi2_phy0: endpoint { + remote-endpoint = <&csi2_cam0>; + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; + }; + + i2c { + clock-frequency = <400000>; + #address-cells = <1>; + #size-cells = <0>; + + camera-sensor@3c { + compatible = "ovti,ov5640"; + reg = <0x3c>; + AVDD-supply = <®_2p8v>; + DOVDD-supply = <®_1p8v>; + DVDD-supply = <®_1p5v>; + clocks = <&clk_ov5640_fixed>; + clock-names = "xclk"; + + port { + csi2_cam0: endpoint { + remote-endpoint = <&csi2_phy0>; + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/arm,pl172.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/arm,pl172.txt index f9ab2593c..22b77ee02 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/arm,pl172.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/arm,pl172.txt @@ -1,127 +1,127 @@ -* Device tree bindings for ARM PL172/PL175/PL176 MultiPort Memory Controller - -Required properties: - -- compatible: Must be "arm,primecell" and exactly one from - "arm,pl172", "arm,pl175" or "arm,pl176". - -- reg: Must contains offset/length value for controller. - -- #address-cells: Must be 2. The partition number has to be encoded in the - first address cell and it may accept values 0..N-1 - (N - total number of partitions). The second cell is the - offset into the partition. - -- #size-cells: Must be set to 1. - -- ranges: Must contain one or more chip select memory regions. - -- clocks: Must contain references to controller clocks. - -- clock-names: Must contain "mpmcclk" and "apb_pclk". - -- clock-ranges: Empty property indicating that child nodes can inherit - named clocks. Required only if clock tree data present - in device tree. - See clock-bindings.txt - -Child chip-select (cs) nodes contain the memory devices nodes connected to -such as NOR (e.g. cfi-flash) and NAND. - -Required child cs node properties: - -- #address-cells: Must be 2. - -- #size-cells: Must be 1. - -- ranges: Empty property indicating that child nodes can inherit - memory layout. - -- clock-ranges: Empty property indicating that child nodes can inherit - named clocks. Required only if clock tree data present - in device tree. - -- mpmc,cs: Chip select number. Indicates to the pl0172 driver - which chipselect is used for accessing the memory. - -- mpmc,memory-width: Width of the chip select memory. Must be equal to - either 8, 16 or 32. - -Optional child cs node config properties: - -- mpmc,async-page-mode: Enable asynchronous page mode. - -- mpmc,cs-active-high: Set chip select polarity to active high. - -- mpmc,byte-lane-low: Set byte lane state to low. - -- mpmc,extended-wait: Enable extended wait. - -- mpmc,buffer-enable: Enable write buffer, option is not supported by - PL175 and PL176 controllers. - -- mpmc,write-protect: Enable write protect. - -Optional child cs node timing properties: - -- mpmc,write-enable-delay: Delay from chip select assertion to write - enable (WE signal) in nano seconds. - -- mpmc,output-enable-delay: Delay from chip select assertion to output - enable (OE signal) in nano seconds. - -- mpmc,write-access-delay: Delay from chip select assertion to write - access in nano seconds. - -- mpmc,read-access-delay: Delay from chip select assertion to read - access in nano seconds. - -- mpmc,page-mode-read-delay: Delay for asynchronous page mode sequential - accesses in nano seconds. - -- mpmc,turn-round-delay: Delay between access to memory banks in nano - seconds. - -If any of the above timing parameters are absent, current parameter value will -be taken from the corresponding HW reg. - -Example for pl172 with nor flash on chip select 0 shown below. - -emc: memory-controller@40005000 { - compatible = "arm,pl172", "arm,primecell"; - reg = <0x40005000 0x1000>; - clocks = <&ccu1 CLK_CPU_EMCDIV>, <&ccu1 CLK_CPU_EMC>; - clock-names = "mpmcclk", "apb_pclk"; - #address-cells = <2>; - #size-cells = <1>; - ranges = <0 0 0x1c000000 0x1000000 - 1 0 0x1d000000 0x1000000 - 2 0 0x1e000000 0x1000000 - 3 0 0x1f000000 0x1000000>; - - cs0 { - #address-cells = <2>; - #size-cells = <1>; - ranges; - - mpmc,cs = <0>; - mpmc,memory-width = <16>; - mpmc,byte-lane-low; - mpmc,write-enable-delay = <0>; - mpmc,output-enable-delay = <0>; - mpmc,read-enable-delay = <70>; - mpmc,page-mode-read-delay = <70>; - - flash@0,0 { - compatible = "sst,sst39vf320", "cfi-flash"; - reg = <0 0 0x400000>; - bank-width = <2>; - #address-cells = <1>; - #size-cells = <1>; - partition@0 { - label = "data"; - reg = <0 0x400000>; - }; - }; - }; -}; +* Device tree bindings for ARM PL172/PL175/PL176 MultiPort Memory Controller + +Required properties: + +- compatible: Must be "arm,primecell" and exactly one from + "arm,pl172", "arm,pl175" or "arm,pl176". + +- reg: Must contains offset/length value for controller. + +- #address-cells: Must be 2. The partition number has to be encoded in the + first address cell and it may accept values 0..N-1 + (N - total number of partitions). The second cell is the + offset into the partition. + +- #size-cells: Must be set to 1. + +- ranges: Must contain one or more chip select memory regions. + +- clocks: Must contain references to controller clocks. + +- clock-names: Must contain "mpmcclk" and "apb_pclk". + +- clock-ranges: Empty property indicating that child nodes can inherit + named clocks. Required only if clock tree data present + in device tree. + See clock-bindings.txt + +Child chip-select (cs) nodes contain the memory devices nodes connected to +such as NOR (e.g. cfi-flash) and NAND. + +Required child cs node properties: + +- #address-cells: Must be 2. + +- #size-cells: Must be 1. + +- ranges: Empty property indicating that child nodes can inherit + memory layout. + +- clock-ranges: Empty property indicating that child nodes can inherit + named clocks. Required only if clock tree data present + in device tree. + +- mpmc,cs: Chip select number. Indicates to the pl0172 driver + which chipselect is used for accessing the memory. + +- mpmc,memory-width: Width of the chip select memory. Must be equal to + either 8, 16 or 32. + +Optional child cs node config properties: + +- mpmc,async-page-mode: Enable asynchronous page mode. + +- mpmc,cs-active-high: Set chip select polarity to active high. + +- mpmc,byte-lane-low: Set byte lane state to low. + +- mpmc,extended-wait: Enable extended wait. + +- mpmc,buffer-enable: Enable write buffer, option is not supported by + PL175 and PL176 controllers. + +- mpmc,write-protect: Enable write protect. + +Optional child cs node timing properties: + +- mpmc,write-enable-delay: Delay from chip select assertion to write + enable (WE signal) in nano seconds. + +- mpmc,output-enable-delay: Delay from chip select assertion to output + enable (OE signal) in nano seconds. + +- mpmc,write-access-delay: Delay from chip select assertion to write + access in nano seconds. + +- mpmc,read-access-delay: Delay from chip select assertion to read + access in nano seconds. + +- mpmc,page-mode-read-delay: Delay for asynchronous page mode sequential + accesses in nano seconds. + +- mpmc,turn-round-delay: Delay between access to memory banks in nano + seconds. + +If any of the above timing parameters are absent, current parameter value will +be taken from the corresponding HW reg. + +Example for pl172 with nor flash on chip select 0 shown below. + +emc: memory-controller@40005000 { + compatible = "arm,pl172", "arm,primecell"; + reg = <0x40005000 0x1000>; + clocks = <&ccu1 CLK_CPU_EMCDIV>, <&ccu1 CLK_CPU_EMC>; + clock-names = "mpmcclk", "apb_pclk"; + #address-cells = <2>; + #size-cells = <1>; + ranges = <0 0 0x1c000000 0x1000000 + 1 0 0x1d000000 0x1000000 + 2 0 0x1e000000 0x1000000 + 3 0 0x1f000000 0x1000000>; + + cs0 { + #address-cells = <2>; + #size-cells = <1>; + ranges; + + mpmc,cs = <0>; + mpmc,memory-width = <16>; + mpmc,byte-lane-low; + mpmc,write-enable-delay = <0>; + mpmc,output-enable-delay = <0>; + mpmc,read-enable-delay = <70>; + mpmc,page-mode-read-delay = <70>; + + flash@0,0 { + compatible = "sst,sst39vf320", "cfi-flash"; + reg = <0 0 0x400000>; + bank-width = <2>; + #address-cells = <1>; + #size-cells = <1>; + partition@0 { + label = "data"; + reg = <0 0x400000>; + }; + }; + }; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/arm,pl35x-smc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/arm,pl35x-smc.yaml index b11e7e2f0..05dd6b3a1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/arm,pl35x-smc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/arm,pl35x-smc.yaml @@ -1,156 +1,156 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/memory-controllers/arm,pl35x-smc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Arm PL35x Series Static Memory Controller (SMC) - -maintainers: - - Miquel Raynal - -description: | - The PL35x Static Memory Controller is a bus where you can connect two kinds - of memory interfaces, which are NAND and memory mapped interfaces (such as - SRAM or NOR) depending on the specific configuration. - - The TRM is available here: - https://documentation-service.arm.com/static/5e8e2524fd977155116a58aa - -# We need a select here so we don't match all nodes with 'arm,primecell' -select: - properties: - compatible: - contains: - enum: - - arm,pl353-smc-r2p1 - - arm,pl354 - required: - - compatible - -properties: - $nodename: - pattern: "^memory-controller@[0-9a-f]+$" - - compatible: - items: - - enum: - - arm,pl353-smc-r2p1 - - arm,pl354 - - const: arm,primecell - - "#address-cells": - const: 2 - - "#size-cells": - const: 1 - - reg: - items: - - description: - Configuration registers for the host and sub-controllers. - The three chip select regions are defined in 'ranges'. - - clocks: - minItems: 1 - maxItems: 2 - - clock-names: - minItems: 1 - maxItems: 2 - - ranges: - minItems: 1 - maxItems: 8 - - interrupts: - minItems: 1 - items: - - description: Combined or Memory interface 0 IRQ - - description: Memory interface 1 IRQ - -patternProperties: - "@[0-7],[a-f0-9]+$": - type: object - additionalProperties: true - description: | - The child device node represents the controller connected to the SMC - bus. The controller can be a NAND controller or a pair of any memory - mapped controllers such as NOR and SRAM controllers. - - properties: - compatible: - description: - Compatible of memory controller. - - reg: - items: - - items: - - description: | - Chip-select ID, as in the parent range property. - minimum: 0 - maximum: 7 - - description: | - Offset of the memory region requested by the device. - - description: | - Length of the memory region requested by the device. - - required: - - compatible - - reg - -required: - - compatible - - reg - - clock-names - - clocks - -additionalProperties: false - -allOf: - - if: - properties: - compatible: - contains: - const: arm,pl354 - then: - properties: - clocks: - # According to TRM, really should be 3 clocks - maxItems: 1 - - clock-names: - const: apb_pclk - - else: - properties: - clocks: - items: - - description: clock for the memory device bus - - description: main clock of the SMC - - clock-names: - items: - - const: memclk - - const: apb_pclk - -examples: - - | - smcc: memory-controller@e000e000 { - compatible = "arm,pl353-smc-r2p1", "arm,primecell"; - reg = <0xe000e000 0x0001000>; - clock-names = "memclk", "apb_pclk"; - clocks = <&clkc 11>, <&clkc 44>; - ranges = <0x0 0x0 0xe1000000 0x1000000 /* Nand CS region */ - 0x1 0x0 0xe2000000 0x2000000 /* SRAM/NOR CS0 region */ - 0x2 0x0 0xe4000000 0x2000000>; /* SRAM/NOR CS1 region */ - #address-cells = <2>; - #size-cells = <1>; - - nfc0: nand-controller@0,0 { - compatible = "arm,pl353-nand-r2p1"; - reg = <0 0 0x1000000>; - #address-cells = <1>; - #size-cells = <0>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/arm,pl35x-smc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Arm PL35x Series Static Memory Controller (SMC) + +maintainers: + - Miquel Raynal + +description: | + The PL35x Static Memory Controller is a bus where you can connect two kinds + of memory interfaces, which are NAND and memory mapped interfaces (such as + SRAM or NOR) depending on the specific configuration. + + The TRM is available here: + https://documentation-service.arm.com/static/5e8e2524fd977155116a58aa + +# We need a select here so we don't match all nodes with 'arm,primecell' +select: + properties: + compatible: + contains: + enum: + - arm,pl353-smc-r2p1 + - arm,pl354 + required: + - compatible + +properties: + $nodename: + pattern: "^memory-controller@[0-9a-f]+$" + + compatible: + items: + - enum: + - arm,pl353-smc-r2p1 + - arm,pl354 + - const: arm,primecell + + "#address-cells": + const: 2 + + "#size-cells": + const: 1 + + reg: + items: + - description: + Configuration registers for the host and sub-controllers. + The three chip select regions are defined in 'ranges'. + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + maxItems: 2 + + ranges: + minItems: 1 + maxItems: 8 + + interrupts: + minItems: 1 + items: + - description: Combined or Memory interface 0 IRQ + - description: Memory interface 1 IRQ + +patternProperties: + "@[0-7],[a-f0-9]+$": + type: object + additionalProperties: true + description: | + The child device node represents the controller connected to the SMC + bus. The controller can be a NAND controller or a pair of any memory + mapped controllers such as NOR and SRAM controllers. + + properties: + compatible: + description: + Compatible of memory controller. + + reg: + items: + - items: + - description: | + Chip-select ID, as in the parent range property. + minimum: 0 + maximum: 7 + - description: | + Offset of the memory region requested by the device. + - description: | + Length of the memory region requested by the device. + + required: + - compatible + - reg + +required: + - compatible + - reg + - clock-names + - clocks + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + contains: + const: arm,pl354 + then: + properties: + clocks: + # According to TRM, really should be 3 clocks + maxItems: 1 + + clock-names: + const: apb_pclk + + else: + properties: + clocks: + items: + - description: clock for the memory device bus + - description: main clock of the SMC + + clock-names: + items: + - const: memclk + - const: apb_pclk + +examples: + - | + smcc: memory-controller@e000e000 { + compatible = "arm,pl353-smc-r2p1", "arm,primecell"; + reg = <0xe000e000 0x0001000>; + clock-names = "memclk", "apb_pclk"; + clocks = <&clkc 11>, <&clkc 44>; + ranges = <0x0 0x0 0xe1000000 0x1000000 /* Nand CS region */ + 0x1 0x0 0xe2000000 0x2000000 /* SRAM/NOR CS0 region */ + 0x2 0x0 0xe4000000 0x2000000>; /* SRAM/NOR CS1 region */ + #address-cells = <2>; + #size-cells = <1>; + + nfc0: nand-controller@0,0 { + compatible = "arm,pl353-nand-r2p1"; + reg = <0 0 0x1000000>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/atmel,ebi.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/atmel,ebi.txt index bcc66640f..94bf7896a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/atmel,ebi.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/atmel,ebi.txt @@ -1,137 +1,137 @@ -* Device tree bindings for Atmel EBI - -The External Bus Interface (EBI) controller is a bus where you can connect -asynchronous (NAND, NOR, SRAM, ....) and synchronous memories (SDR/DDR SDRAMs). -The EBI provides a glue-less interface to asynchronous memories through the SMC -(Static Memory Controller). - -Required properties: - -- compatible: "atmel,at91sam9260-ebi" - "atmel,at91sam9261-ebi" - "atmel,at91sam9263-ebi0" - "atmel,at91sam9263-ebi1" - "atmel,at91sam9rl-ebi" - "atmel,at91sam9g45-ebi" - "atmel,at91sam9x5-ebi" - "atmel,sama5d3-ebi" - "microchip,sam9x60-ebi" - -- reg: Contains offset/length value for EBI memory mapping. - This property might contain several entries if the EBI - memory range is not contiguous - -- #address-cells: Must be 2. - The first cell encodes the CS. - The second cell encode the offset into the CS memory - range. - -- #size-cells: Must be set to 1. - -- ranges: Encodes CS to memory region association. - -- clocks: Clock feeding the EBI controller. - See clock-bindings.txt - -Children device nodes are representing device connected to the EBI bus. - -Required device node properties: - -- reg: Contains the chip-select id, the offset and the length - of the memory region requested by the device. - -EBI bus configuration will be defined directly in the device subnode. - -Optional EBI/SMC properties: - -- atmel,smc-bus-width: width of the asynchronous device's data bus - 8, 16 or 32. - Default to 8 when undefined. - -- atmel,smc-byte-access-type "write" or "select" (see Atmel datasheet). - Default to "select" when undefined. - -- atmel,smc-read-mode "nrd" or "ncs". - Default to "ncs" when undefined. - -- atmel,smc-write-mode "nwe" or "ncs". - Default to "ncs" when undefined. - -- atmel,smc-exnw-mode "disabled", "frozen" or "ready". - Default to "disabled" when undefined. - -- atmel,smc-page-mode enable page mode if present. The provided value - defines the page size (supported values: 4, 8, - 16 and 32). - -- atmel,smc-tdf-mode: "normal" or "optimized". When set to - "optimized" the data float time is optimized - depending on the next device being accessed - (next device setup time is subtracted to the - current device data float time). - Default to "normal" when undefined. - -If at least one atmel,smc- property is defined the following SMC timing -properties become mandatory. In the other hand, if none of the atmel,smc- -properties are specified, we assume that the EBI bus configuration will be -handled by the sub-device driver, and none of those properties should be -defined. - -All the timings are expressed in nanoseconds (see Atmel datasheet for a full -description). - -- atmel,smc-ncs-rd-setup-ns -- atmel,smc-nrd-setup-ns -- atmel,smc-ncs-wr-setup-ns -- atmel,smc-nwe-setup-ns -- atmel,smc-ncs-rd-pulse-ns -- atmel,smc-nrd-pulse-ns -- atmel,smc-ncs-wr-pulse-ns -- atmel,smc-nwe-pulse-ns -- atmel,smc-nwe-cycle-ns -- atmel,smc-nrd-cycle-ns -- atmel,smc-tdf-ns - -Example: - - ebi: ebi@10000000 { - compatible = "atmel,sama5d3-ebi"; - #address-cells = <2>; - #size-cells = <1>; - atmel,smc = <&hsmc>; - atmel,matrix = <&matrix>; - reg = <0x10000000 0x10000000 - 0x40000000 0x30000000>; - ranges = <0x0 0x0 0x10000000 0x10000000 - 0x1 0x0 0x40000000 0x10000000 - 0x2 0x0 0x50000000 0x10000000 - 0x3 0x0 0x60000000 0x10000000>; - clocks = <&mck>; - - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ebi_addr>; - - nor: flash@0,0 { - compatible = "cfi-flash"; - #address-cells = <1>; - #size-cells = <1>; - reg = <0x0 0x0 0x1000000>; - bank-width = <2>; - - atmel,smc-read-mode = "nrd"; - atmel,smc-write-mode = "nwe"; - atmel,smc-bus-width = <16>; - atmel,smc-ncs-rd-setup-ns = <0>; - atmel,smc-ncs-wr-setup-ns = <0>; - atmel,smc-nwe-setup-ns = <8>; - atmel,smc-nrd-setup-ns = <16>; - atmel,smc-ncs-rd-pulse-ns = <84>; - atmel,smc-ncs-wr-pulse-ns = <84>; - atmel,smc-nrd-pulse-ns = <76>; - atmel,smc-nwe-pulse-ns = <76>; - atmel,smc-nrd-cycle-ns = <107>; - atmel,smc-nwe-cycle-ns = <84>; - atmel,smc-tdf-ns = <16>; - }; - }; - +* Device tree bindings for Atmel EBI + +The External Bus Interface (EBI) controller is a bus where you can connect +asynchronous (NAND, NOR, SRAM, ....) and synchronous memories (SDR/DDR SDRAMs). +The EBI provides a glue-less interface to asynchronous memories through the SMC +(Static Memory Controller). + +Required properties: + +- compatible: "atmel,at91sam9260-ebi" + "atmel,at91sam9261-ebi" + "atmel,at91sam9263-ebi0" + "atmel,at91sam9263-ebi1" + "atmel,at91sam9rl-ebi" + "atmel,at91sam9g45-ebi" + "atmel,at91sam9x5-ebi" + "atmel,sama5d3-ebi" + "microchip,sam9x60-ebi" + +- reg: Contains offset/length value for EBI memory mapping. + This property might contain several entries if the EBI + memory range is not contiguous + +- #address-cells: Must be 2. + The first cell encodes the CS. + The second cell encode the offset into the CS memory + range. + +- #size-cells: Must be set to 1. + +- ranges: Encodes CS to memory region association. + +- clocks: Clock feeding the EBI controller. + See clock-bindings.txt + +Children device nodes are representing device connected to the EBI bus. + +Required device node properties: + +- reg: Contains the chip-select id, the offset and the length + of the memory region requested by the device. + +EBI bus configuration will be defined directly in the device subnode. + +Optional EBI/SMC properties: + +- atmel,smc-bus-width: width of the asynchronous device's data bus + 8, 16 or 32. + Default to 8 when undefined. + +- atmel,smc-byte-access-type "write" or "select" (see Atmel datasheet). + Default to "select" when undefined. + +- atmel,smc-read-mode "nrd" or "ncs". + Default to "ncs" when undefined. + +- atmel,smc-write-mode "nwe" or "ncs". + Default to "ncs" when undefined. + +- atmel,smc-exnw-mode "disabled", "frozen" or "ready". + Default to "disabled" when undefined. + +- atmel,smc-page-mode enable page mode if present. The provided value + defines the page size (supported values: 4, 8, + 16 and 32). + +- atmel,smc-tdf-mode: "normal" or "optimized". When set to + "optimized" the data float time is optimized + depending on the next device being accessed + (next device setup time is subtracted to the + current device data float time). + Default to "normal" when undefined. + +If at least one atmel,smc- property is defined the following SMC timing +properties become mandatory. In the other hand, if none of the atmel,smc- +properties are specified, we assume that the EBI bus configuration will be +handled by the sub-device driver, and none of those properties should be +defined. + +All the timings are expressed in nanoseconds (see Atmel datasheet for a full +description). + +- atmel,smc-ncs-rd-setup-ns +- atmel,smc-nrd-setup-ns +- atmel,smc-ncs-wr-setup-ns +- atmel,smc-nwe-setup-ns +- atmel,smc-ncs-rd-pulse-ns +- atmel,smc-nrd-pulse-ns +- atmel,smc-ncs-wr-pulse-ns +- atmel,smc-nwe-pulse-ns +- atmel,smc-nwe-cycle-ns +- atmel,smc-nrd-cycle-ns +- atmel,smc-tdf-ns + +Example: + + ebi: ebi@10000000 { + compatible = "atmel,sama5d3-ebi"; + #address-cells = <2>; + #size-cells = <1>; + atmel,smc = <&hsmc>; + atmel,matrix = <&matrix>; + reg = <0x10000000 0x10000000 + 0x40000000 0x30000000>; + ranges = <0x0 0x0 0x10000000 0x10000000 + 0x1 0x0 0x40000000 0x10000000 + 0x2 0x0 0x50000000 0x10000000 + 0x3 0x0 0x60000000 0x10000000>; + clocks = <&mck>; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ebi_addr>; + + nor: flash@0,0 { + compatible = "cfi-flash"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x0 0x0 0x1000000>; + bank-width = <2>; + + atmel,smc-read-mode = "nrd"; + atmel,smc-write-mode = "nwe"; + atmel,smc-bus-width = <16>; + atmel,smc-ncs-rd-setup-ns = <0>; + atmel,smc-ncs-wr-setup-ns = <0>; + atmel,smc-nwe-setup-ns = <8>; + atmel,smc-nrd-setup-ns = <16>; + atmel,smc-ncs-rd-pulse-ns = <84>; + atmel,smc-ncs-wr-pulse-ns = <84>; + atmel,smc-nrd-pulse-ns = <76>; + atmel,smc-nwe-pulse-ns = <76>; + atmel,smc-nrd-cycle-ns = <107>; + atmel,smc-nwe-cycle-ns = <84>; + atmel,smc-tdf-ns = <16>; + }; + }; + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr-channel.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr-channel.yaml index fef04af52..34b5bd153 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr-channel.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr-channel.yaml @@ -1,146 +1,146 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr-channel.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: LPDDR channel with chip/rank topology description - -description: - An LPDDR channel is a completely independent set of LPDDR pins (DQ, CA, CS, - CK, etc.) that connect one or more LPDDR chips to a host system. The main - purpose of this node is to overall LPDDR topology of the system, including the - amount of individual LPDDR chips and the ranks per chip. - -maintainers: - - Julius Werner - -properties: - compatible: - enum: - - jedec,lpddr2-channel - - jedec,lpddr3-channel - - jedec,lpddr4-channel - - jedec,lpddr5-channel - - io-width: - description: - The number of DQ pins in the channel. If this number is different - from (a multiple of) the io-width of the LPDDR chip, that means that - multiple instances of that type of chip are wired in parallel on this - channel (with the channel's DQ pins split up between the different - chips, and the CA, CS, etc. pins of the different chips all shorted - together). This means that the total physical memory controlled by a - channel is equal to the sum of the densities of each rank on the - connected LPDDR chip, times the io-width of the channel divided by - the io-width of the LPDDR chip. - enum: - - 8 - - 16 - - 32 - - 64 - - 128 - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - -patternProperties: - "^rank@[0-9]+$": - type: object - description: - Each physical LPDDR chip may have one or more ranks. Ranks are - internal but fully independent sub-units of the chip. Each LPDDR bus - transaction on the channel targets exactly one rank, based on the - state of the CS pins. Different ranks may have different densities and - timing requirements. - required: - - reg - -allOf: - - if: - properties: - compatible: - contains: - const: jedec,lpddr2-channel - then: - patternProperties: - "^rank@[0-9]+$": - $ref: /schemas/memory-controllers/ddr/jedec,lpddr2.yaml# - - if: - properties: - compatible: - contains: - const: jedec,lpddr3-channel - then: - patternProperties: - "^rank@[0-9]+$": - $ref: /schemas/memory-controllers/ddr/jedec,lpddr3.yaml# - - if: - properties: - compatible: - contains: - const: jedec,lpddr4-channel - then: - patternProperties: - "^rank@[0-9]+$": - $ref: /schemas/memory-controllers/ddr/jedec,lpddr4.yaml# - - if: - properties: - compatible: - contains: - const: jedec,lpddr5-channel - then: - patternProperties: - "^rank@[0-9]+$": - $ref: /schemas/memory-controllers/ddr/jedec,lpddr5.yaml# - -required: - - compatible - - io-width - - "#address-cells" - - "#size-cells" - -additionalProperties: false - -examples: - - | - lpddr-channel0 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "jedec,lpddr3-channel"; - io-width = <32>; - - rank@0 { - compatible = "lpddr3-ff,0100", "jedec,lpddr3"; - reg = <0>; - density = <8192>; - io-width = <16>; - revision-id = <1 0>; - }; - }; - - lpddr-channel1 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "jedec,lpddr4-channel"; - io-width = <32>; - - rank@0 { - compatible = "lpddr4-05,0301", "jedec,lpddr4"; - reg = <0>; - density = <4096>; - io-width = <32>; - revision-id = <3 1>; - }; - - rank@1 { - compatible = "lpddr4-05,0301", "jedec,lpddr4"; - reg = <1>; - density = <2048>; - io-width = <32>; - revision-id = <3 1>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr-channel.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LPDDR channel with chip/rank topology description + +description: + An LPDDR channel is a completely independent set of LPDDR pins (DQ, CA, CS, + CK, etc.) that connect one or more LPDDR chips to a host system. The main + purpose of this node is to overall LPDDR topology of the system, including the + amount of individual LPDDR chips and the ranks per chip. + +maintainers: + - Julius Werner + +properties: + compatible: + enum: + - jedec,lpddr2-channel + - jedec,lpddr3-channel + - jedec,lpddr4-channel + - jedec,lpddr5-channel + + io-width: + description: + The number of DQ pins in the channel. If this number is different + from (a multiple of) the io-width of the LPDDR chip, that means that + multiple instances of that type of chip are wired in parallel on this + channel (with the channel's DQ pins split up between the different + chips, and the CA, CS, etc. pins of the different chips all shorted + together). This means that the total physical memory controlled by a + channel is equal to the sum of the densities of each rank on the + connected LPDDR chip, times the io-width of the channel divided by + the io-width of the LPDDR chip. + enum: + - 8 + - 16 + - 32 + - 64 + - 128 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^rank@[0-9]+$": + type: object + description: + Each physical LPDDR chip may have one or more ranks. Ranks are + internal but fully independent sub-units of the chip. Each LPDDR bus + transaction on the channel targets exactly one rank, based on the + state of the CS pins. Different ranks may have different densities and + timing requirements. + required: + - reg + +allOf: + - if: + properties: + compatible: + contains: + const: jedec,lpddr2-channel + then: + patternProperties: + "^rank@[0-9]+$": + $ref: /schemas/memory-controllers/ddr/jedec,lpddr2.yaml# + - if: + properties: + compatible: + contains: + const: jedec,lpddr3-channel + then: + patternProperties: + "^rank@[0-9]+$": + $ref: /schemas/memory-controllers/ddr/jedec,lpddr3.yaml# + - if: + properties: + compatible: + contains: + const: jedec,lpddr4-channel + then: + patternProperties: + "^rank@[0-9]+$": + $ref: /schemas/memory-controllers/ddr/jedec,lpddr4.yaml# + - if: + properties: + compatible: + contains: + const: jedec,lpddr5-channel + then: + patternProperties: + "^rank@[0-9]+$": + $ref: /schemas/memory-controllers/ddr/jedec,lpddr5.yaml# + +required: + - compatible + - io-width + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + lpddr-channel0 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "jedec,lpddr3-channel"; + io-width = <32>; + + rank@0 { + compatible = "lpddr3-ff,0100", "jedec,lpddr3"; + reg = <0>; + density = <8192>; + io-width = <16>; + revision-id = <1 0>; + }; + }; + + lpddr-channel1 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "jedec,lpddr4-channel"; + io-width = <32>; + + rank@0 { + compatible = "lpddr4-05,0301", "jedec,lpddr4"; + reg = <0>; + density = <4096>; + io-width = <32>; + revision-id = <3 1>; + }; + + rank@1 { + compatible = "lpddr4-05,0301", "jedec,lpddr4"; + reg = <1>; + density = <2048>; + io-width = <32>; + revision-id = <3 1>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2-timings.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2-timings.yaml index a0c56b160..1daa66592 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2-timings.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2-timings.yaml @@ -1,135 +1,135 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr2-timings.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: LPDDR2 SDRAM AC timing parameters for a given speed-bin - -maintainers: - - Krzysztof Kozlowski - -properties: - compatible: - const: jedec,lpddr2-timings - - max-freq: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Maximum DDR clock frequency for the speed-bin, in Hz. - - min-freq: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Minimum DDR clock frequency for the speed-bin, in Hz. - - tCKESR: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - CKE minimum pulse width during SELF REFRESH (low pulse width during - SELF REFRESH) in pico seconds. - - tDQSCK-max: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - DQS output data access time from CK_t/CK_c in pico seconds. - - tDQSCK-max-derated: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - DQS output data access time from CK_t/CK_c, temperature de-rated, in pico - seconds. - - tFAW: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Four-bank activate window in pico seconds. - - tRAS-max-ns: - description: | - Row active time in nano seconds. - - tRAS-min: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Row active time in pico seconds. - - tRCD: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - RAS-to-CAS delay in pico seconds. - - tRPab: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Row precharge time (all banks) in pico seconds. - - tRRD: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Active bank A to active bank B in pico seconds. - - tRTP: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Internal READ to PRECHARGE command delay in pico seconds. - - tWR: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - WRITE recovery time in pico seconds. - - tWTR: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Internal WRITE-to-READ command delay in pico seconds. - - tXP: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Exit power-down to next valid command delay in pico seconds. - - tZQCL: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Long calibration time in pico seconds. - - tZQCS: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Short calibration time in pico seconds. - - tZQinit: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Initialization calibration time in pico seconds. - -required: - - compatible - - min-freq - - max-freq - -additionalProperties: false - -examples: - - | - timings { - compatible = "jedec,lpddr2-timings"; - min-freq = <10000000>; - max-freq = <400000000>; - tCKESR = <15000>; - tDQSCK-max = <5500>; - tFAW = <50000>; - tRAS-max-ns = <70000>; - tRAS-min = <42000>; - tRPab = <21000>; - tRCD = <18000>; - tRRD = <10000>; - tRTP = <7500>; - tWR = <15000>; - tWTR = <7500>; - tXP = <7500>; - tZQCL = <360000>; - tZQCS = <90000>; - tZQinit = <1000000>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr2-timings.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LPDDR2 SDRAM AC timing parameters for a given speed-bin + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + const: jedec,lpddr2-timings + + max-freq: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Maximum DDR clock frequency for the speed-bin, in Hz. + + min-freq: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Minimum DDR clock frequency for the speed-bin, in Hz. + + tCKESR: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + CKE minimum pulse width during SELF REFRESH (low pulse width during + SELF REFRESH) in pico seconds. + + tDQSCK-max: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + DQS output data access time from CK_t/CK_c in pico seconds. + + tDQSCK-max-derated: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + DQS output data access time from CK_t/CK_c, temperature de-rated, in pico + seconds. + + tFAW: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Four-bank activate window in pico seconds. + + tRAS-max-ns: + description: | + Row active time in nano seconds. + + tRAS-min: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Row active time in pico seconds. + + tRCD: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + RAS-to-CAS delay in pico seconds. + + tRPab: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Row precharge time (all banks) in pico seconds. + + tRRD: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Active bank A to active bank B in pico seconds. + + tRTP: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Internal READ to PRECHARGE command delay in pico seconds. + + tWR: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + WRITE recovery time in pico seconds. + + tWTR: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Internal WRITE-to-READ command delay in pico seconds. + + tXP: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Exit power-down to next valid command delay in pico seconds. + + tZQCL: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Long calibration time in pico seconds. + + tZQCS: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Short calibration time in pico seconds. + + tZQinit: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Initialization calibration time in pico seconds. + +required: + - compatible + - min-freq + - max-freq + +additionalProperties: false + +examples: + - | + timings { + compatible = "jedec,lpddr2-timings"; + min-freq = <10000000>; + max-freq = <400000000>; + tCKESR = <15000>; + tDQSCK-max = <5500>; + tFAW = <50000>; + tRAS-max-ns = <70000>; + tRAS-min = <42000>; + tRPab = <21000>; + tRCD = <18000>; + tRRD = <10000>; + tRTP = <7500>; + tWR = <15000>; + tWTR = <7500>; + tXP = <7500>; + tZQCL = <360000>; + tZQCS = <90000>; + tZQinit = <1000000>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr3-timings.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr3-timings.yaml index eea0397b9..5c6512c1e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr3-timings.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr3-timings.yaml @@ -1,157 +1,157 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr3-timings.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: LPDDR3 SDRAM AC timing parameters for a given speed-bin - -maintainers: - - Krzysztof Kozlowski - -properties: - compatible: - const: jedec,lpddr3-timings - - reg: - maxItems: 1 - description: | - Maximum DDR clock frequency for the speed-bin, in Hz. - Property is deprecated, use max-freq. - deprecated: true - - max-freq: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Maximum DDR clock frequency for the speed-bin, in Hz. - - min-freq: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Minimum DDR clock frequency for the speed-bin, in Hz. - - tCKE: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - CKE minimum pulse width (HIGH and LOW pulse width) in pico seconds. - - tCKESR: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - CKE minimum pulse width during SELF REFRESH (low pulse width during - SELF REFRESH) in pico seconds. - - tFAW: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Four-bank activate window in pico seconds. - - tMRD: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Mode register set command delay in pico seconds. - - tR2R-C2C: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Additional READ-to-READ delay in chip-to-chip cases in pico seconds. - - tRAS: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Row active time in pico seconds. - - tRC: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - ACTIVATE-to-ACTIVATE command period in pico seconds. - - tRCD: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - RAS-to-CAS delay in pico seconds. - - tRFC: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Refresh Cycle time in pico seconds. - - tRPab: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Row precharge time (all banks) in pico seconds. - - tRPpb: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Row precharge time (single banks) in pico seconds. - - tRRD: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Active bank A to active bank B in pico seconds. - - tRTP: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Internal READ to PRECHARGE command delay in pico seconds. - - tW2W-C2C: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Additional WRITE-to-WRITE delay in chip-to-chip cases in pico seconds. - - tWR: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - WRITE recovery time in pico seconds. - - tWTR: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Internal WRITE-to-READ command delay in pico seconds. - - tXP: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Exit power-down to next valid command delay in pico seconds. - - tXSR: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - SELF REFRESH exit to next valid command delay in pico seconds. - -required: - - compatible - - min-freq - - max-freq - -additionalProperties: false - -examples: - - | - lpddr3 { - timings { - compatible = "jedec,lpddr3-timings"; - max-freq = <800000000>; - min-freq = <100000000>; - tCKE = <3750>; - tCKESR = <3750>; - tFAW = <25000>; - tMRD = <7000>; - tR2R-C2C = <0>; - tRAS = <23000>; - tRC = <33750>; - tRCD = <10000>; - tRFC = <65000>; - tRPab = <12000>; - tRPpb = <12000>; - tRRD = <6000>; - tRTP = <3750>; - tW2W-C2C = <0>; - tWR = <7500>; - tWTR = <3750>; - tXP = <3750>; - tXSR = <70000>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr3-timings.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LPDDR3 SDRAM AC timing parameters for a given speed-bin + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + const: jedec,lpddr3-timings + + reg: + maxItems: 1 + description: | + Maximum DDR clock frequency for the speed-bin, in Hz. + Property is deprecated, use max-freq. + deprecated: true + + max-freq: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Maximum DDR clock frequency for the speed-bin, in Hz. + + min-freq: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Minimum DDR clock frequency for the speed-bin, in Hz. + + tCKE: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + CKE minimum pulse width (HIGH and LOW pulse width) in pico seconds. + + tCKESR: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + CKE minimum pulse width during SELF REFRESH (low pulse width during + SELF REFRESH) in pico seconds. + + tFAW: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Four-bank activate window in pico seconds. + + tMRD: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Mode register set command delay in pico seconds. + + tR2R-C2C: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Additional READ-to-READ delay in chip-to-chip cases in pico seconds. + + tRAS: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Row active time in pico seconds. + + tRC: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + ACTIVATE-to-ACTIVATE command period in pico seconds. + + tRCD: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + RAS-to-CAS delay in pico seconds. + + tRFC: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Refresh Cycle time in pico seconds. + + tRPab: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Row precharge time (all banks) in pico seconds. + + tRPpb: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Row precharge time (single banks) in pico seconds. + + tRRD: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Active bank A to active bank B in pico seconds. + + tRTP: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Internal READ to PRECHARGE command delay in pico seconds. + + tW2W-C2C: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Additional WRITE-to-WRITE delay in chip-to-chip cases in pico seconds. + + tWR: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + WRITE recovery time in pico seconds. + + tWTR: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Internal WRITE-to-READ command delay in pico seconds. + + tXP: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Exit power-down to next valid command delay in pico seconds. + + tXSR: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + SELF REFRESH exit to next valid command delay in pico seconds. + +required: + - compatible + - min-freq + - max-freq + +additionalProperties: false + +examples: + - | + lpddr3 { + timings { + compatible = "jedec,lpddr3-timings"; + max-freq = <800000000>; + min-freq = <100000000>; + tCKE = <3750>; + tCKESR = <3750>; + tFAW = <25000>; + tMRD = <7000>; + tR2R-C2C = <0>; + tRAS = <23000>; + tRC = <33750>; + tRCD = <10000>; + tRFC = <65000>; + tRPab = <12000>; + tRPpb = <12000>; + tRRD = <6000>; + tRTP = <3750>; + tW2W-C2C = <0>; + tWR = <7500>; + tWTR = <3750>; + tXP = <3750>; + tXSR = <70000>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/exynos-srom.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/exynos-srom.yaml index 48b7ec2a5..10a2d97e5 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/exynos-srom.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/exynos-srom.yaml @@ -1,128 +1,128 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/memory-controllers/exynos-srom.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung Exynos SoC SROM Controller driver - -maintainers: - - Krzysztof Kozlowski - -description: |+ - The SROM controller can be used to attach external peripherals. In this case - extra properties, describing the bus behind it, should be specified. - -properties: - compatible: - items: - - const: samsung,exynos4210-srom - - reg: - maxItems: 1 - - "#address-cells": - const: 2 - - "#size-cells": - const: 1 - - ranges: - minItems: 1 - maxItems: 4 - description: | - Reflects the memory layout with four integer values per bank. Format: - 0 - Up to four banks are supported. - -patternProperties: - "^.*@[0-3],[a-f0-9]+$": - type: object - additionalProperties: true - description: - The actual device nodes should be added as subnodes to the SROMc node. - These subnodes, in addition to regular device specification, should - contain the following properties, describing configuration - of the relevant SROM bank. - - properties: - reg: - description: - Bank number, base address (relative to start of the bank) and size - of the memory mapped for the device. Note that base address will be - typically 0 as this is the start of the bank. - maxItems: 1 - - reg-io-width: - enum: [1, 2] - description: - Data width in bytes (1 or 2). If omitted, default of 1 is used. - - samsung,srom-page-mode: - description: - If page mode is set, 4 data page mode will be configured, - else normal (1 data) page mode will be set. - type: boolean - - samsung,srom-timing: - $ref: /schemas/types.yaml#/definitions/uint32-array - items: - minItems: 6 - maxItems: 6 - description: | - Array of 6 integers, specifying bank timings in the following order: - Tacp, Tcah, Tcoh, Tacc, Tcos, Tacs. - Each value is specified in cycles and has the following meaning - and valid range: - Tacp: Page mode access cycle at Page mode (0 - 15) - Tcah: Address holding time after CSn (0 - 15) - Tcoh: Chip selection hold on OEn (0 - 15) - Tacc: Access cycle (0 - 31, the actual time is N + 1) - Tcos: Chip selection set-up before OEn (0 - 15) - Tacs: Address set-up before CSn (0 - 15) - - required: - - reg - - samsung,srom-timing - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - // Example: basic definition, no banks are configured - memory-controller@12560000 { - compatible = "samsung,exynos4210-srom"; - reg = <0x12560000 0x14>; - }; - - - | - // Example: SROMc with SMSC911x ethernet chip on bank 3 - memory-controller@12570000 { - #address-cells = <2>; - #size-cells = <1>; - ranges = <0 0 0x04000000 0x20000 // Bank0 - 1 0 0x05000000 0x20000 // Bank1 - 2 0 0x06000000 0x20000 // Bank2 - 3 0 0x07000000 0x20000>; // Bank3 - - compatible = "samsung,exynos4210-srom"; - reg = <0x12570000 0x14>; - - ethernet@3,0 { - compatible = "smsc,lan9115"; - reg = <3 0 0x10000>; // Bank 3, offset = 0 - phy-mode = "mii"; - interrupt-parent = <&gpx0>; - interrupts = <5 8>; - reg-io-width = <2>; - smsc,irq-push-pull; - smsc,force-internal-phy; - - samsung,srom-page-mode; - samsung,srom-timing = <9 12 1 9 1 1>; - }; - }; +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/exynos-srom.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Exynos SoC SROM Controller driver + +maintainers: + - Krzysztof Kozlowski + +description: |+ + The SROM controller can be used to attach external peripherals. In this case + extra properties, describing the bus behind it, should be specified. + +properties: + compatible: + items: + - const: samsung,exynos4210-srom + + reg: + maxItems: 1 + + "#address-cells": + const: 2 + + "#size-cells": + const: 1 + + ranges: + minItems: 1 + maxItems: 4 + description: | + Reflects the memory layout with four integer values per bank. Format: + 0 + Up to four banks are supported. + +patternProperties: + "^.*@[0-3],[a-f0-9]+$": + type: object + additionalProperties: true + description: + The actual device nodes should be added as subnodes to the SROMc node. + These subnodes, in addition to regular device specification, should + contain the following properties, describing configuration + of the relevant SROM bank. + + properties: + reg: + description: + Bank number, base address (relative to start of the bank) and size + of the memory mapped for the device. Note that base address will be + typically 0 as this is the start of the bank. + maxItems: 1 + + reg-io-width: + enum: [1, 2] + description: + Data width in bytes (1 or 2). If omitted, default of 1 is used. + + samsung,srom-page-mode: + description: + If page mode is set, 4 data page mode will be configured, + else normal (1 data) page mode will be set. + type: boolean + + samsung,srom-timing: + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + minItems: 6 + maxItems: 6 + description: | + Array of 6 integers, specifying bank timings in the following order: + Tacp, Tcah, Tcoh, Tacc, Tcos, Tacs. + Each value is specified in cycles and has the following meaning + and valid range: + Tacp: Page mode access cycle at Page mode (0 - 15) + Tcah: Address holding time after CSn (0 - 15) + Tcoh: Chip selection hold on OEn (0 - 15) + Tacc: Access cycle (0 - 31, the actual time is N + 1) + Tcos: Chip selection set-up before OEn (0 - 15) + Tacs: Address set-up before CSn (0 - 15) + + required: + - reg + - samsung,srom-timing + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + // Example: basic definition, no banks are configured + memory-controller@12560000 { + compatible = "samsung,exynos4210-srom"; + reg = <0x12560000 0x14>; + }; + + - | + // Example: SROMc with SMSC911x ethernet chip on bank 3 + memory-controller@12570000 { + #address-cells = <2>; + #size-cells = <1>; + ranges = <0 0 0x04000000 0x20000 // Bank0 + 1 0 0x05000000 0x20000 // Bank1 + 2 0 0x06000000 0x20000 // Bank2 + 3 0 0x07000000 0x20000>; // Bank3 + + compatible = "samsung,exynos4210-srom"; + reg = <0x12570000 0x14>; + + ethernet@3,0 { + compatible = "smsc,lan9115"; + reg = <3 0 0x10000>; // Bank 3, offset = 0 + phy-mode = "mii"; + interrupt-parent = <&gpx0>; + interrupts = <5 8>; + reg-io-width = <2>; + smsc,irq-push-pull; + smsc,force-internal-phy; + + samsung,srom-page-mode; + samsung,srom-timing = <9 12 1 9 1 1>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/intel,ixp4xx-expansion-bus-controller.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/intel,ixp4xx-expansion-bus-controller.yaml index 46f3384b3..3049d6bb0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/intel,ixp4xx-expansion-bus-controller.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/intel,ixp4xx-expansion-bus-controller.yaml @@ -1,107 +1,107 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/memory-controllers/intel,ixp4xx-expansion-bus-controller.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Intel IXP4xx Expansion Bus Controller - -description: | - The IXP4xx expansion bus controller handles access to devices on the - memory-mapped expansion bus on the Intel IXP4xx family of system on chips, - including IXP42x, IXP43x, IXP45x and IXP46x. - -maintainers: - - Linus Walleij - -properties: - $nodename: - pattern: '^bus@[0-9a-f]+$' - - compatible: - items: - - enum: - - intel,ixp42x-expansion-bus-controller - - intel,ixp43x-expansion-bus-controller - - intel,ixp45x-expansion-bus-controller - - intel,ixp46x-expansion-bus-controller - - const: syscon - - reg: - description: Control registers for the expansion bus, these are not - inside the memory range handled by the expansion bus. - maxItems: 1 - - native-endian: - $ref: /schemas/types.yaml#/definitions/flag - description: The IXP4xx has a peculiar MMIO access scheme, as it changes - the access pattern for words (swizzling) on the bus depending on whether - the SoC is running in big-endian or little-endian mode. Thus the - registers must always be accessed using native endianness. - - "#address-cells": - description: | - The first cell is the chip select number. - The second cell is the address offset within the bank. - const: 2 - - "#size-cells": - const: 1 - - ranges: true - dma-ranges: true - -patternProperties: - "^.*@[0-7],[0-9a-f]+$": - description: Devices attached to chip selects are represented as - subnodes. - type: object - $ref: /schemas/memory-controllers/intel,ixp4xx-expansion-peripheral-props.yaml# - additionalProperties: true - -required: - - compatible - - reg - - native-endian - - "#address-cells" - - "#size-cells" - - ranges - - dma-ranges - -additionalProperties: false - -examples: - - | - #include - bus@50000000 { - compatible = "intel,ixp42x-expansion-bus-controller", "syscon"; - reg = <0xc4000000 0x28>; - native-endian; - #address-cells = <2>; - #size-cells = <1>; - ranges = <0 0x0 0x50000000 0x01000000>, - <1 0x0 0x51000000 0x01000000>; - dma-ranges = <0 0x0 0x50000000 0x01000000>, - <1 0x0 0x51000000 0x01000000>; - flash@0,0 { - compatible = "intel,ixp4xx-flash", "cfi-flash"; - bank-width = <2>; - reg = <0 0x00000000 0x1000000>; - intel,ixp4xx-eb-t3 = <3>; - intel,ixp4xx-eb-cycle-type = <0>; - intel,ixp4xx-eb-byte-access-on-halfword = <1>; - intel,ixp4xx-eb-write-enable = <1>; - intel,ixp4xx-eb-byte-access = <0>; - }; - serial@1,0 { - compatible = "exar,xr16l2551", "ns8250"; - reg = <1 0x00000000 0x10>; - interrupt-parent = <&gpio0>; - interrupts = <4 IRQ_TYPE_LEVEL_LOW>; - clock-frequency = <1843200>; - intel,ixp4xx-eb-t3 = <3>; - intel,ixp4xx-eb-cycle-type = <1>; - intel,ixp4xx-eb-write-enable = <1>; - intel,ixp4xx-eb-byte-access = <1>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/intel,ixp4xx-expansion-bus-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Intel IXP4xx Expansion Bus Controller + +description: | + The IXP4xx expansion bus controller handles access to devices on the + memory-mapped expansion bus on the Intel IXP4xx family of system on chips, + including IXP42x, IXP43x, IXP45x and IXP46x. + +maintainers: + - Linus Walleij + +properties: + $nodename: + pattern: '^bus@[0-9a-f]+$' + + compatible: + items: + - enum: + - intel,ixp42x-expansion-bus-controller + - intel,ixp43x-expansion-bus-controller + - intel,ixp45x-expansion-bus-controller + - intel,ixp46x-expansion-bus-controller + - const: syscon + + reg: + description: Control registers for the expansion bus, these are not + inside the memory range handled by the expansion bus. + maxItems: 1 + + native-endian: + $ref: /schemas/types.yaml#/definitions/flag + description: The IXP4xx has a peculiar MMIO access scheme, as it changes + the access pattern for words (swizzling) on the bus depending on whether + the SoC is running in big-endian or little-endian mode. Thus the + registers must always be accessed using native endianness. + + "#address-cells": + description: | + The first cell is the chip select number. + The second cell is the address offset within the bank. + const: 2 + + "#size-cells": + const: 1 + + ranges: true + dma-ranges: true + +patternProperties: + "^.*@[0-7],[0-9a-f]+$": + description: Devices attached to chip selects are represented as + subnodes. + type: object + $ref: /schemas/memory-controllers/intel,ixp4xx-expansion-peripheral-props.yaml# + additionalProperties: true + +required: + - compatible + - reg + - native-endian + - "#address-cells" + - "#size-cells" + - ranges + - dma-ranges + +additionalProperties: false + +examples: + - | + #include + bus@50000000 { + compatible = "intel,ixp42x-expansion-bus-controller", "syscon"; + reg = <0xc4000000 0x28>; + native-endian; + #address-cells = <2>; + #size-cells = <1>; + ranges = <0 0x0 0x50000000 0x01000000>, + <1 0x0 0x51000000 0x01000000>; + dma-ranges = <0 0x0 0x50000000 0x01000000>, + <1 0x0 0x51000000 0x01000000>; + flash@0,0 { + compatible = "intel,ixp4xx-flash", "cfi-flash"; + bank-width = <2>; + reg = <0 0x00000000 0x1000000>; + intel,ixp4xx-eb-t3 = <3>; + intel,ixp4xx-eb-cycle-type = <0>; + intel,ixp4xx-eb-byte-access-on-halfword = <1>; + intel,ixp4xx-eb-write-enable = <1>; + intel,ixp4xx-eb-byte-access = <0>; + }; + serial@1,0 { + compatible = "exar,xr16l2551", "ns8250"; + reg = <1 0x00000000 0x10>; + interrupt-parent = <&gpio0>; + interrupts = <4 IRQ_TYPE_LEVEL_LOW>; + clock-frequency = <1843200>; + intel,ixp4xx-eb-t3 = <3>; + intel,ixp4xx-eb-cycle-type = <1>; + intel,ixp4xx-eb-write-enable = <1>; + intel,ixp4xx-eb-byte-access = <1>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml index 0a9bf3939..2381660b3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml @@ -1,143 +1,143 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (c) 2020 MediaTek Inc. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/memory-controllers/mediatek,smi-larb.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: SMI (Smart Multimedia Interface) Local Arbiter - -maintainers: - - Yong Wu - -description: | - The hardware block diagram please check bindings/iommu/mediatek,iommu.yaml - -properties: - compatible: - oneOf: - - enum: - - mediatek,mt2701-smi-larb - - mediatek,mt2712-smi-larb - - mediatek,mt6779-smi-larb - - mediatek,mt6795-smi-larb - - mediatek,mt8167-smi-larb - - mediatek,mt8173-smi-larb - - mediatek,mt8183-smi-larb - - mediatek,mt8186-smi-larb - - mediatek,mt8188-smi-larb - - mediatek,mt8192-smi-larb - - mediatek,mt8195-smi-larb - - - description: for mt7623 - items: - - const: mediatek,mt7623-smi-larb - - const: mediatek,mt2701-smi-larb - - - items: - - const: mediatek,mt8365-smi-larb - - const: mediatek,mt8186-smi-larb - - reg: - maxItems: 1 - - clocks: - description: | - apb and smi are mandatory. gals(global async local sync) is optional. - minItems: 2 - items: - - description: apb is Advanced Peripheral Bus clock, It's the clock for - setting the register. - - description: smi is the clock for transfer data and command. - - description: the clock for gals. - - clock-names: - minItems: 2 - maxItems: 3 - - power-domains: - maxItems: 1 - - mediatek,smi: - $ref: /schemas/types.yaml#/definitions/phandle - description: a phandle to the smi_common node. - - mediatek,larb-id: - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 31 - description: the hardware id of this larb. It's only required when this - hardware id is not consecutive from its M4U point of view. - -required: - - compatible - - reg - - clocks - - clock-names - - power-domains - -allOf: - - if: # HW has gals - properties: - compatible: - enum: - - mediatek,mt8183-smi-larb - - mediatek,mt8186-smi-larb - - mediatek,mt8188-smi-larb - - mediatek,mt8195-smi-larb - - then: - properties: - clocks: - minItems: 2 - maxItems: 3 - clock-names: - minItems: 2 - items: - - const: apb - - const: smi - - const: gals - - else: - properties: - clocks: - minItems: 2 - maxItems: 2 - clock-names: - items: - - const: apb - - const: smi - - - if: - properties: - compatible: - contains: - enum: - - mediatek,mt2701-smi-larb - - mediatek,mt2712-smi-larb - - mediatek,mt6779-smi-larb - - mediatek,mt8186-smi-larb - - mediatek,mt8188-smi-larb - - mediatek,mt8192-smi-larb - - mediatek,mt8195-smi-larb - - then: - required: - - mediatek,larb-id - -additionalProperties: false - -examples: - - |+ - #include - #include - - larb1: larb@16010000 { - compatible = "mediatek,mt8173-smi-larb"; - reg = <0x16010000 0x1000>; - mediatek,smi = <&smi_common>; - power-domains = <&scpsys MT8173_POWER_DOMAIN_VDEC>; - clocks = <&vdecsys CLK_VDEC_CKEN>, - <&vdecsys CLK_VDEC_LARB_CKEN>; - clock-names = "apb", "smi"; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (c) 2020 MediaTek Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/mediatek,smi-larb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SMI (Smart Multimedia Interface) Local Arbiter + +maintainers: + - Yong Wu + +description: | + The hardware block diagram please check bindings/iommu/mediatek,iommu.yaml + +properties: + compatible: + oneOf: + - enum: + - mediatek,mt2701-smi-larb + - mediatek,mt2712-smi-larb + - mediatek,mt6779-smi-larb + - mediatek,mt6795-smi-larb + - mediatek,mt8167-smi-larb + - mediatek,mt8173-smi-larb + - mediatek,mt8183-smi-larb + - mediatek,mt8186-smi-larb + - mediatek,mt8188-smi-larb + - mediatek,mt8192-smi-larb + - mediatek,mt8195-smi-larb + + - description: for mt7623 + items: + - const: mediatek,mt7623-smi-larb + - const: mediatek,mt2701-smi-larb + + - items: + - const: mediatek,mt8365-smi-larb + - const: mediatek,mt8186-smi-larb + + reg: + maxItems: 1 + + clocks: + description: | + apb and smi are mandatory. gals(global async local sync) is optional. + minItems: 2 + items: + - description: apb is Advanced Peripheral Bus clock, It's the clock for + setting the register. + - description: smi is the clock for transfer data and command. + - description: the clock for gals. + + clock-names: + minItems: 2 + maxItems: 3 + + power-domains: + maxItems: 1 + + mediatek,smi: + $ref: /schemas/types.yaml#/definitions/phandle + description: a phandle to the smi_common node. + + mediatek,larb-id: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 31 + description: the hardware id of this larb. It's only required when this + hardware id is not consecutive from its M4U point of view. + +required: + - compatible + - reg + - clocks + - clock-names + - power-domains + +allOf: + - if: # HW has gals + properties: + compatible: + enum: + - mediatek,mt8183-smi-larb + - mediatek,mt8186-smi-larb + - mediatek,mt8188-smi-larb + - mediatek,mt8195-smi-larb + + then: + properties: + clocks: + minItems: 2 + maxItems: 3 + clock-names: + minItems: 2 + items: + - const: apb + - const: smi + - const: gals + + else: + properties: + clocks: + minItems: 2 + maxItems: 2 + clock-names: + items: + - const: apb + - const: smi + + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt2701-smi-larb + - mediatek,mt2712-smi-larb + - mediatek,mt6779-smi-larb + - mediatek,mt8186-smi-larb + - mediatek,mt8188-smi-larb + - mediatek,mt8192-smi-larb + - mediatek,mt8195-smi-larb + + then: + required: + - mediatek,larb-id + +additionalProperties: false + +examples: + - |+ + #include + #include + + larb1: larb@16010000 { + compatible = "mediatek,mt8173-smi-larb"; + reg = <0x16010000 0x1000>; + mediatek,smi = <&smi_common>; + power-domains = <&scpsys MT8173_POWER_DOMAIN_VDEC>; + clocks = <&vdecsys CLK_VDEC_CKEN>, + <&vdecsys CLK_VDEC_LARB_CKEN>; + clock-names = "apb", "smi"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml index f894c3bae..4f4bc953e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml @@ -1,149 +1,149 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/memory-controllers/renesas,rpc-if.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas Reduced Pin Count Interface (RPC-IF) - -maintainers: - - Sergei Shtylyov - -description: | - Renesas RPC-IF allows a SPI flash or HyperFlash connected to the SoC to - be accessed via the external address space read mode or the manual mode. - - The flash chip itself should be represented by a subnode of the RPC-IF node. - The flash interface is selected based on the "compatible" property of this - subnode: - - if it contains "jedec,spi-nor", then SPI is used; - - if it contains "cfi-flash", then HyperFlash is used. - -allOf: - - $ref: /schemas/spi/spi-controller.yaml# - -properties: - compatible: - oneOf: - - items: - - enum: - - renesas,r8a774a1-rpc-if # RZ/G2M - - renesas,r8a774b1-rpc-if # RZ/G2N - - renesas,r8a774c0-rpc-if # RZ/G2E - - renesas,r8a774e1-rpc-if # RZ/G2H - - renesas,r8a7795-rpc-if # R-Car H3 - - renesas,r8a7796-rpc-if # R-Car M3-W - - renesas,r8a77961-rpc-if # R-Car M3-W+ - - renesas,r8a77965-rpc-if # R-Car M3-N - - renesas,r8a77970-rpc-if # R-Car V3M - - renesas,r8a77980-rpc-if # R-Car V3H - - renesas,r8a77990-rpc-if # R-Car E3 - - renesas,r8a77995-rpc-if # R-Car D3 - - renesas,r8a779a0-rpc-if # R-Car V3U - - const: renesas,rcar-gen3-rpc-if # a generic R-Car gen3 or RZ/G2{E,H,M,N} device - - - items: - - enum: - - renesas,r8a779g0-rpc-if # R-Car V4H - - renesas,r8a779h0-rpc-if # R-Car V4M - - const: renesas,rcar-gen4-rpc-if # a generic R-Car gen4 device - - - items: - - enum: - - renesas,r9a07g043-rpc-if # RZ/G2UL - - renesas,r9a07g044-rpc-if # RZ/G2{L,LC} - - renesas,r9a07g054-rpc-if # RZ/V2L - - const: renesas,rzg2l-rpc-if - - reg: - items: - - description: RPC-IF registers - - description: direct mapping read mode area - - description: write buffer area - - reg-names: - items: - - const: regs - - const: dirmap - - const: wbuf - - clocks: - minItems: 1 - maxItems: 2 - - interrupts: - maxItems: 1 - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - -patternProperties: - "flash@[0-9a-f]+$": - type: object - additionalProperties: true - - properties: - compatible: - contains: - enum: - - cfi-flash - - jedec,spi-nor - -required: - - compatible - - reg - - reg-names - - clocks - - power-domains - - resets - - '#address-cells' - - '#size-cells' - -if: - properties: - compatible: - contains: - enum: - - renesas,rzg2l-rpc-if -then: - properties: - clocks: - items: - - description: SPI Multi IO Register access clock (SPI_CLK2) - - description: SPI Multi IO Main clock (SPI_CLK). - -else: - properties: - clocks: - maxItems: 1 - -unevaluatedProperties: false - -examples: - - | - #include - #include - - spi@ee200000 { - compatible = "renesas,r8a77995-rpc-if", "renesas,rcar-gen3-rpc-if"; - reg = <0xee200000 0x200>, - <0x08000000 0x4000000>, - <0xee208000 0x100>; - reg-names = "regs", "dirmap", "wbuf"; - clocks = <&cpg CPG_MOD 917>; - power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; - resets = <&cpg 917>; - #address-cells = <1>; - #size-cells = <0>; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <40000000>; - spi-tx-bus-width = <1>; - spi-rx-bus-width = <1>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/renesas,rpc-if.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas Reduced Pin Count Interface (RPC-IF) + +maintainers: + - Sergei Shtylyov + +description: | + Renesas RPC-IF allows a SPI flash or HyperFlash connected to the SoC to + be accessed via the external address space read mode or the manual mode. + + The flash chip itself should be represented by a subnode of the RPC-IF node. + The flash interface is selected based on the "compatible" property of this + subnode: + - if it contains "jedec,spi-nor", then SPI is used; + - if it contains "cfi-flash", then HyperFlash is used. + +allOf: + - $ref: /schemas/spi/spi-controller.yaml# + +properties: + compatible: + oneOf: + - items: + - enum: + - renesas,r8a774a1-rpc-if # RZ/G2M + - renesas,r8a774b1-rpc-if # RZ/G2N + - renesas,r8a774c0-rpc-if # RZ/G2E + - renesas,r8a774e1-rpc-if # RZ/G2H + - renesas,r8a7795-rpc-if # R-Car H3 + - renesas,r8a7796-rpc-if # R-Car M3-W + - renesas,r8a77961-rpc-if # R-Car M3-W+ + - renesas,r8a77965-rpc-if # R-Car M3-N + - renesas,r8a77970-rpc-if # R-Car V3M + - renesas,r8a77980-rpc-if # R-Car V3H + - renesas,r8a77990-rpc-if # R-Car E3 + - renesas,r8a77995-rpc-if # R-Car D3 + - renesas,r8a779a0-rpc-if # R-Car V3U + - const: renesas,rcar-gen3-rpc-if # a generic R-Car gen3 or RZ/G2{E,H,M,N} device + + - items: + - enum: + - renesas,r8a779g0-rpc-if # R-Car V4H + - renesas,r8a779h0-rpc-if # R-Car V4M + - const: renesas,rcar-gen4-rpc-if # a generic R-Car gen4 device + + - items: + - enum: + - renesas,r9a07g043-rpc-if # RZ/G2UL + - renesas,r9a07g044-rpc-if # RZ/G2{L,LC} + - renesas,r9a07g054-rpc-if # RZ/V2L + - const: renesas,rzg2l-rpc-if + + reg: + items: + - description: RPC-IF registers + - description: direct mapping read mode area + - description: write buffer area + + reg-names: + items: + - const: regs + - const: dirmap + - const: wbuf + + clocks: + minItems: 1 + maxItems: 2 + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + +patternProperties: + "flash@[0-9a-f]+$": + type: object + additionalProperties: true + + properties: + compatible: + contains: + enum: + - cfi-flash + - jedec,spi-nor + +required: + - compatible + - reg + - reg-names + - clocks + - power-domains + - resets + - '#address-cells' + - '#size-cells' + +if: + properties: + compatible: + contains: + enum: + - renesas,rzg2l-rpc-if +then: + properties: + clocks: + items: + - description: SPI Multi IO Register access clock (SPI_CLK2) + - description: SPI Multi IO Main clock (SPI_CLK). + +else: + properties: + clocks: + maxItems: 1 + +unevaluatedProperties: false + +examples: + - | + #include + #include + + spi@ee200000 { + compatible = "renesas,r8a77995-rpc-if", "renesas,rcar-gen3-rpc-if"; + reg = <0xee200000 0x200>, + <0x08000000 0x4000000>, + <0xee208000 0x100>; + reg-names = "regs", "dirmap", "wbuf"; + clocks = <&cpg CPG_MOD 917>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 917>; + #address-cells = <1>; + #size-cells = <0>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + spi-tx-bus-width = <1>; + spi-rx-bus-width = <1>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/samsung,exynos5422-dmc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/samsung,exynos5422-dmc.yaml index cc1bfb640..783ac984d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/samsung,exynos5422-dmc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/samsung,exynos5422-dmc.yaml @@ -1,139 +1,139 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/memory-controllers/samsung,exynos5422-dmc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: | - Samsung Exynos5422 SoC frequency and voltage scaling for Dynamic Memory - Controller device - -maintainers: - - Krzysztof Kozlowski - - Lukasz Luba - -description: | - The Samsung Exynos5422 SoC has DMC (Dynamic Memory Controller) to which the - DRAM memory chips are connected. The driver is to monitor the controller in - runtime and switch frequency and voltage. To monitor the usage of the - controller in runtime, the driver uses the PPMU (Platform Performance - Monitoring Unit), which is able to measure the current load of the memory. - When 'userspace' governor is used for the driver, an application is able to - switch the DMC and memory frequency. - -properties: - compatible: - items: - - const: samsung,exynos5422-dmc - - clock-names: - items: - - const: fout_spll - - const: mout_sclk_spll - - const: ff_dout_spll2 - - const: fout_bpll - - const: mout_bpll - - const: sclk_bpll - - const: mout_mx_mspll_ccore - - const: mout_mclk_cdrex - - clocks: - minItems: 8 - maxItems: 8 - - devfreq-events: - $ref: /schemas/types.yaml#/definitions/phandle-array - minItems: 1 - maxItems: 16 - items: - maxItems: 1 - description: phandles of the PPMU events used by the controller. - - device-handle: - $ref: /schemas/types.yaml#/definitions/phandle - description: | - phandle of the connected DRAM memory device. For more information please - refer to jedec,lpddr3.yaml. - - operating-points-v2: true - - interrupts: - items: - - description: DMC internal performance event counters in DREX0 - - description: DMC internal performance event counters in DREX1 - - interrupt-names: - items: - - const: drex_0 - - const: drex_1 - - reg: - items: - - description: registers of DREX0 - - description: registers of DREX1 - - samsung,syscon-clk: - $ref: /schemas/types.yaml#/definitions/phandle - description: | - Phandle of the clock register set used by the controller, these registers - are used for enabling a 'pause' feature and are not exposed by clock - framework but they must be used in a safe way. The register offsets are - in the driver code and specyfic for this SoC type. - - vdd-supply: true - -required: - - compatible - - clock-names - - clocks - - devfreq-events - - device-handle - - reg - - samsung,syscon-clk - -additionalProperties: false - -examples: - - | - #include - ppmu_dmc0_0: ppmu@10d00000 { - compatible = "samsung,exynos-ppmu"; - reg = <0x10d00000 0x2000>; - clocks = <&clock CLK_PCLK_PPMU_DREX0_0>; - clock-names = "ppmu"; - events { - ppmu_event_dmc0_0: ppmu-event3-dmc0-0 { - event-name = "ppmu-event3-dmc0_0"; - }; - }; - }; - - memory-controller@10c20000 { - compatible = "samsung,exynos5422-dmc"; - reg = <0x10c20000 0x10000>, <0x10c30000 0x10000>; - clocks = <&clock CLK_FOUT_SPLL>, - <&clock CLK_MOUT_SCLK_SPLL>, - <&clock CLK_FF_DOUT_SPLL2>, - <&clock CLK_FOUT_BPLL>, - <&clock CLK_MOUT_BPLL>, - <&clock CLK_SCLK_BPLL>, - <&clock CLK_MOUT_MX_MSPLL_CCORE>, - <&clock CLK_MOUT_MCLK_CDREX>; - clock-names = "fout_spll", - "mout_sclk_spll", - "ff_dout_spll2", - "fout_bpll", - "mout_bpll", - "sclk_bpll", - "mout_mx_mspll_ccore", - "mout_mclk_cdrex"; - operating-points-v2 = <&dmc_opp_table>; - devfreq-events = <&ppmu_event3_dmc0_0>, <&ppmu_event3_dmc0_1>, - <&ppmu_event3_dmc1_0>, <&ppmu_event3_dmc1_1>; - device-handle = <&samsung_K3QF2F20DB>; - vdd-supply = <&buck1_reg>; - samsung,syscon-clk = <&clock>; - interrupt-parent = <&combiner>; - interrupts = <16 0>, <16 1>; - interrupt-names = "drex_0", "drex_1"; - }; +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/samsung,exynos5422-dmc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: | + Samsung Exynos5422 SoC frequency and voltage scaling for Dynamic Memory + Controller device + +maintainers: + - Krzysztof Kozlowski + - Lukasz Luba + +description: | + The Samsung Exynos5422 SoC has DMC (Dynamic Memory Controller) to which the + DRAM memory chips are connected. The driver is to monitor the controller in + runtime and switch frequency and voltage. To monitor the usage of the + controller in runtime, the driver uses the PPMU (Platform Performance + Monitoring Unit), which is able to measure the current load of the memory. + When 'userspace' governor is used for the driver, an application is able to + switch the DMC and memory frequency. + +properties: + compatible: + items: + - const: samsung,exynos5422-dmc + + clock-names: + items: + - const: fout_spll + - const: mout_sclk_spll + - const: ff_dout_spll2 + - const: fout_bpll + - const: mout_bpll + - const: sclk_bpll + - const: mout_mx_mspll_ccore + - const: mout_mclk_cdrex + + clocks: + minItems: 8 + maxItems: 8 + + devfreq-events: + $ref: /schemas/types.yaml#/definitions/phandle-array + minItems: 1 + maxItems: 16 + items: + maxItems: 1 + description: phandles of the PPMU events used by the controller. + + device-handle: + $ref: /schemas/types.yaml#/definitions/phandle + description: | + phandle of the connected DRAM memory device. For more information please + refer to jedec,lpddr3.yaml. + + operating-points-v2: true + + interrupts: + items: + - description: DMC internal performance event counters in DREX0 + - description: DMC internal performance event counters in DREX1 + + interrupt-names: + items: + - const: drex_0 + - const: drex_1 + + reg: + items: + - description: registers of DREX0 + - description: registers of DREX1 + + samsung,syscon-clk: + $ref: /schemas/types.yaml#/definitions/phandle + description: | + Phandle of the clock register set used by the controller, these registers + are used for enabling a 'pause' feature and are not exposed by clock + framework but they must be used in a safe way. The register offsets are + in the driver code and specyfic for this SoC type. + + vdd-supply: true + +required: + - compatible + - clock-names + - clocks + - devfreq-events + - device-handle + - reg + - samsung,syscon-clk + +additionalProperties: false + +examples: + - | + #include + ppmu_dmc0_0: ppmu@10d00000 { + compatible = "samsung,exynos-ppmu"; + reg = <0x10d00000 0x2000>; + clocks = <&clock CLK_PCLK_PPMU_DREX0_0>; + clock-names = "ppmu"; + events { + ppmu_event_dmc0_0: ppmu-event3-dmc0-0 { + event-name = "ppmu-event3-dmc0_0"; + }; + }; + }; + + memory-controller@10c20000 { + compatible = "samsung,exynos5422-dmc"; + reg = <0x10c20000 0x10000>, <0x10c30000 0x10000>; + clocks = <&clock CLK_FOUT_SPLL>, + <&clock CLK_MOUT_SCLK_SPLL>, + <&clock CLK_FF_DOUT_SPLL2>, + <&clock CLK_FOUT_BPLL>, + <&clock CLK_MOUT_BPLL>, + <&clock CLK_SCLK_BPLL>, + <&clock CLK_MOUT_MX_MSPLL_CCORE>, + <&clock CLK_MOUT_MCLK_CDREX>; + clock-names = "fout_spll", + "mout_sclk_spll", + "ff_dout_spll2", + "fout_bpll", + "mout_bpll", + "sclk_bpll", + "mout_mx_mspll_ccore", + "mout_mclk_cdrex"; + operating-points-v2 = <&dmc_opp_table>; + devfreq-events = <&ppmu_event3_dmc0_0>, <&ppmu_event3_dmc0_1>, + <&ppmu_event3_dmc1_0>, <&ppmu_event3_dmc1_1>; + device-handle = <&samsung_K3QF2F20DB>; + vdd-supply = <&buck1_reg>; + samsung,syscon-clk = <&clock>; + interrupt-parent = <&combiner>; + interrupts = <16 0>, <16 1>; + interrupt-names = "drex_0", "drex_1"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/snps,dw-umctl2-ddrc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/snps,dw-umctl2-ddrc.yaml index 014296fae..87ff9ee09 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/snps,dw-umctl2-ddrc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/snps,dw-umctl2-ddrc.yaml @@ -1,117 +1,117 @@ -# SPDX-License-Identifier: GPL-2.0-only -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/memory-controllers/snps,dw-umctl2-ddrc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Synopsys DesignWare Universal Multi-Protocol Memory Controller - -maintainers: - - Krzysztof Kozlowski - - Michal Simek - -description: | - Synopsys DesignWare Enhanced uMCTL2 DDR Memory Controller is capable of - working with the memory devices supporting up to (LP)DDR4 protocol. It can - be equipped with SEC/DEC ECC feature if DRAM data bus width is either - 16-bits or 32-bits or 64-bits wide. - - For instance the ZynqMP DDR controller is based on the DW uMCTL2 v2.40a - controller. It has an optional SEC/DEC ECC support in 64- and 32-bits - bus width configurations. - -properties: - compatible: - oneOf: - - deprecated: true - description: Synopsys DW uMCTL2 DDR controller v3.80a - const: snps,ddrc-3.80a - - description: Synopsys DW uMCTL2 DDR controller - const: snps,dw-umctl2-ddrc - - description: Xilinx ZynqMP DDR controller v2.40a - const: xlnx,zynqmp-ddrc-2.40a - - interrupts: - description: - DW uMCTL2 DDRC IP-core provides individual IRQ signal for each event":" - ECC Corrected Error, ECC Uncorrected Error, ECC Address Protection, - Scrubber-Done signal, DFI Parity/CRC Error. Some platforms may have the - signals merged before they reach the IRQ controller or have some of them - absent in case if the corresponding feature is unavailable/disabled. - minItems: 1 - maxItems: 5 - - interrupt-names: - minItems: 1 - maxItems: 5 - oneOf: - - description: Common ECC CE/UE/Scrubber/DFI Errors IRQ - items: - - const: ecc - - description: Individual ECC CE/UE/Scrubber/DFI Errors IRQs - items: - enum: [ ecc_ce, ecc_ue, ecc_ap, ecc_sbr, dfi_e ] - - reg: - maxItems: 1 - - clocks: - description: - A standard set of the clock sources contains CSRs bus clock, AXI-ports - reference clock, DDRC core clock, Scrubber standalone clock - (synchronous to the DDRC clock). - minItems: 1 - maxItems: 4 - - clock-names: - minItems: 1 - maxItems: 4 - items: - enum: [ pclk, aclk, core, sbr ] - - resets: - description: - Each clock domain can have separate reset signal. - minItems: 1 - maxItems: 4 - - reset-names: - minItems: 1 - maxItems: 4 - items: - enum: [ prst, arst, core, sbr ] - -required: - - compatible - - reg - - interrupts - -additionalProperties: false - -examples: - - | - #include - - memory-controller@fd070000 { - compatible = "xlnx,zynqmp-ddrc-2.40a"; - reg = <0xfd070000 0x30000>; - - interrupt-parent = <&gic>; - interrupts = ; - interrupt-names = "ecc"; - }; - - | - #include - - memory-controller@3d400000 { - compatible = "snps,dw-umctl2-ddrc"; - reg = <0x3d400000 0x400000>; - - interrupts = <147 IRQ_TYPE_LEVEL_HIGH>, <148 IRQ_TYPE_LEVEL_HIGH>, - <149 IRQ_TYPE_LEVEL_HIGH>, <150 IRQ_TYPE_LEVEL_HIGH>; - interrupt-names = "ecc_ce", "ecc_ue", "ecc_sbr", "dfi_e"; - - clocks = <&pclk>, <&aclk>, <&core_clk>, <&sbr_clk>; - clock-names = "pclk", "aclk", "core", "sbr"; - }; -... +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/snps,dw-umctl2-ddrc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synopsys DesignWare Universal Multi-Protocol Memory Controller + +maintainers: + - Krzysztof Kozlowski + - Michal Simek + +description: | + Synopsys DesignWare Enhanced uMCTL2 DDR Memory Controller is capable of + working with the memory devices supporting up to (LP)DDR4 protocol. It can + be equipped with SEC/DEC ECC feature if DRAM data bus width is either + 16-bits or 32-bits or 64-bits wide. + + For instance the ZynqMP DDR controller is based on the DW uMCTL2 v2.40a + controller. It has an optional SEC/DEC ECC support in 64- and 32-bits + bus width configurations. + +properties: + compatible: + oneOf: + - deprecated: true + description: Synopsys DW uMCTL2 DDR controller v3.80a + const: snps,ddrc-3.80a + - description: Synopsys DW uMCTL2 DDR controller + const: snps,dw-umctl2-ddrc + - description: Xilinx ZynqMP DDR controller v2.40a + const: xlnx,zynqmp-ddrc-2.40a + + interrupts: + description: + DW uMCTL2 DDRC IP-core provides individual IRQ signal for each event":" + ECC Corrected Error, ECC Uncorrected Error, ECC Address Protection, + Scrubber-Done signal, DFI Parity/CRC Error. Some platforms may have the + signals merged before they reach the IRQ controller or have some of them + absent in case if the corresponding feature is unavailable/disabled. + minItems: 1 + maxItems: 5 + + interrupt-names: + minItems: 1 + maxItems: 5 + oneOf: + - description: Common ECC CE/UE/Scrubber/DFI Errors IRQ + items: + - const: ecc + - description: Individual ECC CE/UE/Scrubber/DFI Errors IRQs + items: + enum: [ ecc_ce, ecc_ue, ecc_ap, ecc_sbr, dfi_e ] + + reg: + maxItems: 1 + + clocks: + description: + A standard set of the clock sources contains CSRs bus clock, AXI-ports + reference clock, DDRC core clock, Scrubber standalone clock + (synchronous to the DDRC clock). + minItems: 1 + maxItems: 4 + + clock-names: + minItems: 1 + maxItems: 4 + items: + enum: [ pclk, aclk, core, sbr ] + + resets: + description: + Each clock domain can have separate reset signal. + minItems: 1 + maxItems: 4 + + reset-names: + minItems: 1 + maxItems: 4 + items: + enum: [ prst, arst, core, sbr ] + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + + memory-controller@fd070000 { + compatible = "xlnx,zynqmp-ddrc-2.40a"; + reg = <0xfd070000 0x30000>; + + interrupt-parent = <&gic>; + interrupts = ; + interrupt-names = "ecc"; + }; + - | + #include + + memory-controller@3d400000 { + compatible = "snps,dw-umctl2-ddrc"; + reg = <0x3d400000 0x400000>; + + interrupts = <147 IRQ_TYPE_LEVEL_HIGH>, <148 IRQ_TYPE_LEVEL_HIGH>, + <149 IRQ_TYPE_LEVEL_HIGH>, <150 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "ecc_ce", "ecc_ue", "ecc_sbr", "dfi_e"; + + clocks = <&pclk>, <&aclk>, <&core_clk>, <&sbr_clk>; + clock-names = "pclk", "aclk", "core", "sbr"; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/st,stm32-fmc2-ebi.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/st,stm32-fmc2-ebi.yaml index 5a6b7a12a..706e45eb4 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/st,stm32-fmc2-ebi.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/memory-controllers/st,stm32-fmc2-ebi.yaml @@ -1,128 +1,128 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/memory-controllers/st,stm32-fmc2-ebi.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: STMicroelectronics Flexible Memory Controller 2 (FMC2) - -description: | - The FMC2 functional block makes the interface with: synchronous and - asynchronous static devices (such as PSNOR, PSRAM or other memory-mapped - peripherals) and NAND flash memories. - Its main purposes are: - - to translate AXI transactions into the appropriate external device - protocol - - to meet the access time requirements of the external devices - All external devices share the addresses, data and control signals with the - controller. Each external device is accessed by means of a unique Chip - Select. The FMC2 performs only one access at a time to an external device. - -maintainers: - - Christophe Kerello - -properties: - compatible: - enum: - - st,stm32mp1-fmc2-ebi - - st,stm32mp25-fmc2-ebi - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - resets: - maxItems: 1 - - power-domains: - maxItems: 1 - - "#address-cells": - const: 2 - - "#size-cells": - const: 1 - - ranges: - description: | - Reflects the memory layout with four integer values per bank. Format: - 0
- - access-controllers: - minItems: 1 - maxItems: 2 - -patternProperties: - "^.*@[0-4],[a-f0-9]+$": - additionalProperties: true - type: object - $ref: mc-peripheral-props.yaml# - -required: - - "#address-cells" - - "#size-cells" - - compatible - - reg - - clocks - - ranges - -additionalProperties: false - -examples: - - | - #include - #include - #include - memory-controller@58002000 { - #address-cells = <2>; - #size-cells = <1>; - compatible = "st,stm32mp1-fmc2-ebi"; - reg = <0x58002000 0x1000>; - clocks = <&rcc FMC_K>; - resets = <&rcc FMC_R>; - - ranges = <0 0 0x60000000 0x04000000>, /* EBI CS 1 */ - <1 0 0x64000000 0x04000000>, /* EBI CS 2 */ - <2 0 0x68000000 0x04000000>, /* EBI CS 3 */ - <3 0 0x6c000000 0x04000000>, /* EBI CS 4 */ - <4 0 0x80000000 0x10000000>; /* NAND */ - - psram@0,0 { - compatible = "mtd-ram"; - reg = <0 0x00000000 0x100000>; - bank-width = <2>; - - st,fmc2-ebi-cs-transaction-type = <1>; - st,fmc2-ebi-cs-address-setup-ns = <60>; - st,fmc2-ebi-cs-data-setup-ns = <30>; - st,fmc2-ebi-cs-bus-turnaround-ns = <5>; - }; - - nand-controller@4,0 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "st,stm32mp1-fmc2-nfc"; - reg = <4 0x00000000 0x1000>, - <4 0x08010000 0x1000>, - <4 0x08020000 0x1000>, - <4 0x01000000 0x1000>, - <4 0x09010000 0x1000>, - <4 0x09020000 0x1000>; - interrupts = ; - dmas = <&mdma1 20 0x2 0x12000a02 0x0 0x0>, - <&mdma1 20 0x2 0x12000a08 0x0 0x0>, - <&mdma1 21 0x2 0x12000a0a 0x0 0x0>; - dma-names = "tx", "rx", "ecc"; - - nand@0 { - reg = <0>; - nand-on-flash-bbt; - #address-cells = <1>; - #size-cells = <1>; - }; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/st,stm32-fmc2-ebi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics Flexible Memory Controller 2 (FMC2) + +description: | + The FMC2 functional block makes the interface with: synchronous and + asynchronous static devices (such as PSNOR, PSRAM or other memory-mapped + peripherals) and NAND flash memories. + Its main purposes are: + - to translate AXI transactions into the appropriate external device + protocol + - to meet the access time requirements of the external devices + All external devices share the addresses, data and control signals with the + controller. Each external device is accessed by means of a unique Chip + Select. The FMC2 performs only one access at a time to an external device. + +maintainers: + - Christophe Kerello + +properties: + compatible: + enum: + - st,stm32mp1-fmc2-ebi + - st,stm32mp25-fmc2-ebi + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + power-domains: + maxItems: 1 + + "#address-cells": + const: 2 + + "#size-cells": + const: 1 + + ranges: + description: | + Reflects the memory layout with four integer values per bank. Format: + 0
+ + access-controllers: + minItems: 1 + maxItems: 2 + +patternProperties: + "^.*@[0-4],[a-f0-9]+$": + additionalProperties: true + type: object + $ref: mc-peripheral-props.yaml# + +required: + - "#address-cells" + - "#size-cells" + - compatible + - reg + - clocks + - ranges + +additionalProperties: false + +examples: + - | + #include + #include + #include + memory-controller@58002000 { + #address-cells = <2>; + #size-cells = <1>; + compatible = "st,stm32mp1-fmc2-ebi"; + reg = <0x58002000 0x1000>; + clocks = <&rcc FMC_K>; + resets = <&rcc FMC_R>; + + ranges = <0 0 0x60000000 0x04000000>, /* EBI CS 1 */ + <1 0 0x64000000 0x04000000>, /* EBI CS 2 */ + <2 0 0x68000000 0x04000000>, /* EBI CS 3 */ + <3 0 0x6c000000 0x04000000>, /* EBI CS 4 */ + <4 0 0x80000000 0x10000000>; /* NAND */ + + psram@0,0 { + compatible = "mtd-ram"; + reg = <0 0x00000000 0x100000>; + bank-width = <2>; + + st,fmc2-ebi-cs-transaction-type = <1>; + st,fmc2-ebi-cs-address-setup-ns = <60>; + st,fmc2-ebi-cs-data-setup-ns = <30>; + st,fmc2-ebi-cs-bus-turnaround-ns = <5>; + }; + + nand-controller@4,0 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "st,stm32mp1-fmc2-nfc"; + reg = <4 0x00000000 0x1000>, + <4 0x08010000 0x1000>, + <4 0x08020000 0x1000>, + <4 0x01000000 0x1000>, + <4 0x09010000 0x1000>, + <4 0x09020000 0x1000>; + interrupts = ; + dmas = <&mdma1 20 0x2 0x12000a02 0x0 0x0>, + <&mdma1 20 0x2 0x12000a08 0x0 0x0>, + <&mdma1 21 0x2 0x12000a0a 0x0 0x0>; + dma-names = "tx", "rx", "ecc"; + + nand@0 { + reg = <0>; + nand-on-flash-bbt; + #address-cells = <1>; + #size-cells = <1>; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/allwinner,sun8i-a23-prcm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/allwinner,sun8i-a23-prcm.yaml index 3c1954292..e51f85519 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/allwinner,sun8i-a23-prcm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/allwinner,sun8i-a23-prcm.yaml @@ -1,168 +1,168 @@ -# SPDX-License-Identifier: GPL-2.0+ -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/allwinner,sun8i-a23-prcm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Allwinner A23 PRCM - -maintainers: - - Chen-Yu Tsai - - Maxime Ripard - -deprecated: true - -properties: - compatible: - const: allwinner,sun8i-a23-prcm - - reg: - maxItems: 1 - -patternProperties: - "^.*(clk|rst|codec).*$": - type: object - unevaluatedProperties: false - - properties: - compatible: - enum: - - fixed-factor-clock - - allwinner,sun8i-a23-apb0-clk - - allwinner,sun8i-a23-apb0-gates-clk - - allwinner,sun6i-a31-clock-reset - - allwinner,sun8i-a23-codec-analog - - required: - - compatible - - allOf: - - if: - properties: - compatible: - contains: - const: fixed-factor-clock - - then: - $ref: /schemas/clock/fixed-factor-clock.yaml# - - - if: - properties: - compatible: - contains: - const: allwinner,sun8i-a23-apb0-clk - - then: - properties: - "#clock-cells": - const: 0 - - clocks: - maxItems: 1 - - clock-output-names: - maxItems: 1 - - required: - - "#clock-cells" - - clocks - - clock-output-names - - - if: - properties: - compatible: - contains: - const: allwinner,sun8i-a23-apb0-gates-clk - - then: - properties: - "#clock-cells": - const: 1 - description: > - This additional argument passed to that clock is the - offset of the bit controlling this particular gate in - the register. - - clocks: - maxItems: 1 - - clock-output-names: - minItems: 1 - maxItems: 32 - - required: - - "#clock-cells" - - clocks - - clock-output-names - - - if: - properties: - compatible: - contains: - const: allwinner,sun6i-a31-clock-reset - - then: - properties: - "#reset-cells": - const: 1 - - required: - - "#reset-cells" - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - prcm@1f01400 { - compatible = "allwinner,sun8i-a23-prcm"; - reg = <0x01f01400 0x200>; - - ar100: ar100_clk { - compatible = "fixed-factor-clock"; - #clock-cells = <0>; - clock-div = <1>; - clock-mult = <1>; - clocks = <&osc24M>; - clock-output-names = "ar100"; - }; - - ahb0: ahb0_clk { - compatible = "fixed-factor-clock"; - #clock-cells = <0>; - clock-div = <1>; - clock-mult = <1>; - clocks = <&ar100>; - clock-output-names = "ahb0"; - }; - - apb0: apb0_clk { - compatible = "allwinner,sun8i-a23-apb0-clk"; - #clock-cells = <0>; - clocks = <&ahb0>; - clock-output-names = "apb0"; - }; - - apb0_gates: apb0_gates_clk { - compatible = "allwinner,sun8i-a23-apb0-gates-clk"; - #clock-cells = <1>; - clocks = <&apb0>; - clock-output-names = "apb0_pio", "apb0_timer", - "apb0_rsb", "apb0_uart", - "apb0_i2c"; - }; - - apb0_rst: apb0_rst { - compatible = "allwinner,sun6i-a31-clock-reset"; - #reset-cells = <1>; - }; - - codec_analog: codec-analog { - compatible = "allwinner,sun8i-a23-codec-analog"; - }; - }; - -... +# SPDX-License-Identifier: GPL-2.0+ +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/allwinner,sun8i-a23-prcm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner A23 PRCM + +maintainers: + - Chen-Yu Tsai + - Maxime Ripard + +deprecated: true + +properties: + compatible: + const: allwinner,sun8i-a23-prcm + + reg: + maxItems: 1 + +patternProperties: + "^.*(clk|rst|codec).*$": + type: object + unevaluatedProperties: false + + properties: + compatible: + enum: + - fixed-factor-clock + - allwinner,sun8i-a23-apb0-clk + - allwinner,sun8i-a23-apb0-gates-clk + - allwinner,sun6i-a31-clock-reset + - allwinner,sun8i-a23-codec-analog + + required: + - compatible + + allOf: + - if: + properties: + compatible: + contains: + const: fixed-factor-clock + + then: + $ref: /schemas/clock/fixed-factor-clock.yaml# + + - if: + properties: + compatible: + contains: + const: allwinner,sun8i-a23-apb0-clk + + then: + properties: + "#clock-cells": + const: 0 + + clocks: + maxItems: 1 + + clock-output-names: + maxItems: 1 + + required: + - "#clock-cells" + - clocks + - clock-output-names + + - if: + properties: + compatible: + contains: + const: allwinner,sun8i-a23-apb0-gates-clk + + then: + properties: + "#clock-cells": + const: 1 + description: > + This additional argument passed to that clock is the + offset of the bit controlling this particular gate in + the register. + + clocks: + maxItems: 1 + + clock-output-names: + minItems: 1 + maxItems: 32 + + required: + - "#clock-cells" + - clocks + - clock-output-names + + - if: + properties: + compatible: + contains: + const: allwinner,sun6i-a31-clock-reset + + then: + properties: + "#reset-cells": + const: 1 + + required: + - "#reset-cells" + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + prcm@1f01400 { + compatible = "allwinner,sun8i-a23-prcm"; + reg = <0x01f01400 0x200>; + + ar100: ar100_clk { + compatible = "fixed-factor-clock"; + #clock-cells = <0>; + clock-div = <1>; + clock-mult = <1>; + clocks = <&osc24M>; + clock-output-names = "ar100"; + }; + + ahb0: ahb0_clk { + compatible = "fixed-factor-clock"; + #clock-cells = <0>; + clock-div = <1>; + clock-mult = <1>; + clocks = <&ar100>; + clock-output-names = "ahb0"; + }; + + apb0: apb0_clk { + compatible = "allwinner,sun8i-a23-apb0-clk"; + #clock-cells = <0>; + clocks = <&ahb0>; + clock-output-names = "apb0"; + }; + + apb0_gates: apb0_gates_clk { + compatible = "allwinner,sun8i-a23-apb0-gates-clk"; + #clock-cells = <1>; + clocks = <&apb0>; + clock-output-names = "apb0_pio", "apb0_timer", + "apb0_rsb", "apb0_uart", + "apb0_i2c"; + }; + + apb0_rst: apb0_rst { + compatible = "allwinner,sun6i-a31-clock-reset"; + #reset-cells = <1>; + }; + + codec_analog: codec-analog { + compatible = "allwinner,sun8i-a23-codec-analog"; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/brcm,bcm6318-gpio-sysctl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/brcm,bcm6318-gpio-sysctl.yaml index 31e63e6df..cb480162f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/brcm,bcm6318-gpio-sysctl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/brcm,bcm6318-gpio-sysctl.yaml @@ -1,177 +1,177 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/brcm,bcm6318-gpio-sysctl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Broadcom BCM6318 GPIO System Controller - -maintainers: - - Álvaro Fernández Rojas - - Jonas Gorski - -description: - Broadcom BCM6318 SoC GPIO system controller which provides a register map - for controlling the GPIO and pins of the SoC. - -properties: - "#address-cells": true - - "#size-cells": true - - compatible: - items: - - const: brcm,bcm6318-gpio-sysctl - - const: syscon - - const: simple-mfd - - ranges: - maxItems: 1 - - reg: - maxItems: 1 - -patternProperties: - "^gpio@[0-9a-f]+$": - # Child node - type: object - $ref: /schemas/gpio/brcm,bcm63xx-gpio.yaml - description: - GPIO controller for the SoC GPIOs. This child node definition - should follow the bindings specified in - Documentation/devicetree/bindings/gpio/brcm,bcm63xx-gpio.yaml. - - "^pinctrl@[0-9a-f]+$": - # Child node - type: object - $ref: /schemas/pinctrl/brcm,bcm6318-pinctrl.yaml - description: - Pin controller for the SoC pins. This child node definition - should follow the bindings specified in - Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml. - -required: - - "#address-cells" - - compatible - - ranges - - reg - - "#size-cells" - -additionalProperties: false - -examples: - - | - syscon@10000080 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "brcm,bcm6318-gpio-sysctl", "syscon", "simple-mfd"; - reg = <0x10000080 0x80>; - ranges = <0 0x10000080 0x80>; - - gpio@0 { - compatible = "brcm,bcm6318-gpio"; - reg-names = "dirout", "dat"; - reg = <0x0 0x8>, <0x8 0x8>; - - gpio-controller; - gpio-ranges = <&pinctrl 0 0 50>; - #gpio-cells = <2>; - }; - - pinctrl: pinctrl@10 { - compatible = "brcm,bcm6318-pinctrl"; - reg = <0x18 0x10>, <0x54 0x18>; - - pinctrl_ephy0_spd_led: ephy0_spd_led-pins { - function = "ephy0_spd_led"; - pins = "gpio0"; - }; - - pinctrl_ephy1_spd_led: ephy1_spd_led-pins { - function = "ephy1_spd_led"; - pins = "gpio1"; - }; - - pinctrl_ephy2_spd_led: ephy2_spd_led-pins { - function = "ephy2_spd_led"; - pins = "gpio2"; - }; - - pinctrl_ephy3_spd_led: ephy3_spd_led-pins { - function = "ephy3_spd_led"; - pins = "gpio3"; - }; - - pinctrl_ephy0_act_led: ephy0_act_led-pins { - function = "ephy0_act_led"; - pins = "gpio4"; - }; - - pinctrl_ephy1_act_led: ephy1_act_led-pins { - function = "ephy1_act_led"; - pins = "gpio5"; - }; - - pinctrl_ephy2_act_led: ephy2_act_led-pins { - function = "ephy2_act_led"; - pins = "gpio6"; - }; - - pinctrl_ephy3_act_led: ephy3_act_led-pins { - function = "ephy3_act_led"; - pins = "gpio7"; - }; - - pinctrl_serial_led: serial_led-pins { - pinctrl_serial_led_data: serial_led_data-pins { - function = "serial_led_data"; - pins = "gpio6"; - }; - - pinctrl_serial_led_clk: serial_led_clk-pins { - function = "serial_led_clk"; - pins = "gpio7"; - }; - }; - - pinctrl_inet_act_led: inet_act_led-pins { - function = "inet_act_led"; - pins = "gpio8"; - }; - - pinctrl_inet_fail_led: inet_fail_led-pins { - function = "inet_fail_led"; - pins = "gpio9"; - }; - - pinctrl_dsl_led: dsl_led-pins { - function = "dsl_led"; - pins = "gpio10"; - }; - - pinctrl_post_fail_led: post_fail_led-pins { - function = "post_fail_led"; - pins = "gpio11"; - }; - - pinctrl_wlan_wps_led: wlan_wps_led-pins { - function = "wlan_wps_led"; - pins = "gpio12"; - }; - - pinctrl_usb_pwron: usb_pwron-pins { - function = "usb_pwron"; - pins = "gpio13"; - }; - - pinctrl_usb_device_led: usb_device_led-pins { - function = "usb_device_led"; - pins = "gpio13"; - }; - - pinctrl_usb_active: usb_active-pins { - function = "usb_active"; - pins = "gpio40"; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/brcm,bcm6318-gpio-sysctl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM6318 GPIO System Controller + +maintainers: + - Álvaro Fernández Rojas + - Jonas Gorski + +description: + Broadcom BCM6318 SoC GPIO system controller which provides a register map + for controlling the GPIO and pins of the SoC. + +properties: + "#address-cells": true + + "#size-cells": true + + compatible: + items: + - const: brcm,bcm6318-gpio-sysctl + - const: syscon + - const: simple-mfd + + ranges: + maxItems: 1 + + reg: + maxItems: 1 + +patternProperties: + "^gpio@[0-9a-f]+$": + # Child node + type: object + $ref: /schemas/gpio/brcm,bcm63xx-gpio.yaml + description: + GPIO controller for the SoC GPIOs. This child node definition + should follow the bindings specified in + Documentation/devicetree/bindings/gpio/brcm,bcm63xx-gpio.yaml. + + "^pinctrl@[0-9a-f]+$": + # Child node + type: object + $ref: /schemas/pinctrl/brcm,bcm6318-pinctrl.yaml + description: + Pin controller for the SoC pins. This child node definition + should follow the bindings specified in + Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml. + +required: + - "#address-cells" + - compatible + - ranges + - reg + - "#size-cells" + +additionalProperties: false + +examples: + - | + syscon@10000080 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "brcm,bcm6318-gpio-sysctl", "syscon", "simple-mfd"; + reg = <0x10000080 0x80>; + ranges = <0 0x10000080 0x80>; + + gpio@0 { + compatible = "brcm,bcm6318-gpio"; + reg-names = "dirout", "dat"; + reg = <0x0 0x8>, <0x8 0x8>; + + gpio-controller; + gpio-ranges = <&pinctrl 0 0 50>; + #gpio-cells = <2>; + }; + + pinctrl: pinctrl@10 { + compatible = "brcm,bcm6318-pinctrl"; + reg = <0x18 0x10>, <0x54 0x18>; + + pinctrl_ephy0_spd_led: ephy0_spd_led-pins { + function = "ephy0_spd_led"; + pins = "gpio0"; + }; + + pinctrl_ephy1_spd_led: ephy1_spd_led-pins { + function = "ephy1_spd_led"; + pins = "gpio1"; + }; + + pinctrl_ephy2_spd_led: ephy2_spd_led-pins { + function = "ephy2_spd_led"; + pins = "gpio2"; + }; + + pinctrl_ephy3_spd_led: ephy3_spd_led-pins { + function = "ephy3_spd_led"; + pins = "gpio3"; + }; + + pinctrl_ephy0_act_led: ephy0_act_led-pins { + function = "ephy0_act_led"; + pins = "gpio4"; + }; + + pinctrl_ephy1_act_led: ephy1_act_led-pins { + function = "ephy1_act_led"; + pins = "gpio5"; + }; + + pinctrl_ephy2_act_led: ephy2_act_led-pins { + function = "ephy2_act_led"; + pins = "gpio6"; + }; + + pinctrl_ephy3_act_led: ephy3_act_led-pins { + function = "ephy3_act_led"; + pins = "gpio7"; + }; + + pinctrl_serial_led: serial_led-pins { + pinctrl_serial_led_data: serial_led_data-pins { + function = "serial_led_data"; + pins = "gpio6"; + }; + + pinctrl_serial_led_clk: serial_led_clk-pins { + function = "serial_led_clk"; + pins = "gpio7"; + }; + }; + + pinctrl_inet_act_led: inet_act_led-pins { + function = "inet_act_led"; + pins = "gpio8"; + }; + + pinctrl_inet_fail_led: inet_fail_led-pins { + function = "inet_fail_led"; + pins = "gpio9"; + }; + + pinctrl_dsl_led: dsl_led-pins { + function = "dsl_led"; + pins = "gpio10"; + }; + + pinctrl_post_fail_led: post_fail_led-pins { + function = "post_fail_led"; + pins = "gpio11"; + }; + + pinctrl_wlan_wps_led: wlan_wps_led-pins { + function = "wlan_wps_led"; + pins = "gpio12"; + }; + + pinctrl_usb_pwron: usb_pwron-pins { + function = "usb_pwron"; + pins = "gpio13"; + }; + + pinctrl_usb_device_led: usb_device_led-pins { + function = "usb_device_led"; + pins = "gpio13"; + }; + + pinctrl_usb_active: usb_active-pins { + function = "usb_active"; + pins = "gpio40"; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/brcm,bcm6328-gpio-sysctl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/brcm,bcm6328-gpio-sysctl.yaml index b5ebecbb5..5f48209ed 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/brcm,bcm6328-gpio-sysctl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/brcm,bcm6328-gpio-sysctl.yaml @@ -1,162 +1,162 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/brcm,bcm6328-gpio-sysctl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Broadcom BCM6328 GPIO System Controller - -maintainers: - - Álvaro Fernández Rojas - - Jonas Gorski - -description: - Broadcom BCM6328 SoC GPIO system controller which provides a register map - for controlling the GPIO and pins of the SoC. - -properties: - "#address-cells": true - - "#size-cells": true - - compatible: - items: - - const: brcm,bcm6328-gpio-sysctl - - const: syscon - - const: simple-mfd - - ranges: - maxItems: 1 - - reg: - maxItems: 1 - -patternProperties: - "^gpio@[0-9a-f]+$": - # Child node - type: object - $ref: /schemas/gpio/brcm,bcm63xx-gpio.yaml - description: - GPIO controller for the SoC GPIOs. This child node definition - should follow the bindings specified in - Documentation/devicetree/bindings/gpio/brcm,bcm63xx-gpio.yaml. - - "^pinctrl@[0-9a-f]+$": - # Child node - type: object - $ref: /schemas/pinctrl/brcm,bcm6328-pinctrl.yaml - description: - Pin controller for the SoC pins. This child node definition - should follow the bindings specified in - Documentation/devicetree/bindings/pinctrl/brcm,bcm6328-pinctrl.yaml. - -required: - - "#address-cells" - - compatible - - ranges - - reg - - "#size-cells" - -additionalProperties: false - -examples: - - | - syscon@10000080 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "brcm,bcm6328-gpio-sysctl", "syscon", "simple-mfd"; - reg = <0x10000080 0x80>; - ranges = <0 0x10000080 0x80>; - - gpio@0 { - compatible = "brcm,bcm6328-gpio"; - reg-names = "dirout", "dat"; - reg = <0x0 0x8>, <0x8 0x8>; - - gpio-controller; - gpio-ranges = <&pinctrl 0 0 32>; - #gpio-cells = <2>; - }; - - pinctrl: pinctrl@18 { - compatible = "brcm,bcm6328-pinctrl"; - reg = <0x18 0x10>; - - pinctrl_serial_led: serial_led-pins { - pinctrl_serial_led_data: serial_led_data-pins { - function = "serial_led_data"; - pins = "gpio6"; - }; - - pinctrl_serial_led_clk: serial_led_clk-pins { - function = "serial_led_clk"; - pins = "gpio7"; - }; - }; - - pinctrl_inet_act_led: inet_act_led-pins { - function = "inet_act_led"; - pins = "gpio11"; - }; - - pinctrl_pcie_clkreq: pcie_clkreq-pins { - function = "pcie_clkreq"; - pins = "gpio16"; - }; - - pinctrl_ephy0_spd_led: ephy0_spd_led-pins { - function = "led"; - pins = "gpio17"; - }; - - pinctrl_ephy1_spd_led: ephy1_spd_led-pins { - function = "led"; - pins = "gpio18"; - }; - - pinctrl_ephy2_spd_led: ephy2_spd_led-pins { - function = "led"; - pins = "gpio19"; - }; - - pinctrl_ephy3_spd_led: ephy3_spd_led-pins { - function = "led"; - pins = "gpio20"; - }; - - pinctrl_ephy0_act_led: ephy0_act_led-pins { - function = "ephy0_act_led"; - pins = "gpio25"; - }; - - pinctrl_ephy1_act_led: ephy1_act_led-pins { - function = "ephy1_act_led"; - pins = "gpio26"; - }; - - pinctrl_ephy2_act_led: ephy2_act_led-pins { - function = "ephy2_act_led"; - pins = "gpio27"; - }; - - pinctrl_ephy3_act_led: ephy3_act_led-pins { - function = "ephy3_act_led"; - pins = "gpio28"; - }; - - pinctrl_hsspi_cs1: hsspi_cs1-pins { - function = "hsspi_cs1"; - pins = "hsspi_cs1"; - }; - - pinctrl_usb_port1_device: usb_port1_device-pins { - function = "usb_device_port"; - pins = "usb_port1"; - }; - - pinctrl_usb_port1_host: usb_port1_host-pins { - function = "usb_host_port"; - pins = "usb_port1"; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/brcm,bcm6328-gpio-sysctl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM6328 GPIO System Controller + +maintainers: + - Álvaro Fernández Rojas + - Jonas Gorski + +description: + Broadcom BCM6328 SoC GPIO system controller which provides a register map + for controlling the GPIO and pins of the SoC. + +properties: + "#address-cells": true + + "#size-cells": true + + compatible: + items: + - const: brcm,bcm6328-gpio-sysctl + - const: syscon + - const: simple-mfd + + ranges: + maxItems: 1 + + reg: + maxItems: 1 + +patternProperties: + "^gpio@[0-9a-f]+$": + # Child node + type: object + $ref: /schemas/gpio/brcm,bcm63xx-gpio.yaml + description: + GPIO controller for the SoC GPIOs. This child node definition + should follow the bindings specified in + Documentation/devicetree/bindings/gpio/brcm,bcm63xx-gpio.yaml. + + "^pinctrl@[0-9a-f]+$": + # Child node + type: object + $ref: /schemas/pinctrl/brcm,bcm6328-pinctrl.yaml + description: + Pin controller for the SoC pins. This child node definition + should follow the bindings specified in + Documentation/devicetree/bindings/pinctrl/brcm,bcm6328-pinctrl.yaml. + +required: + - "#address-cells" + - compatible + - ranges + - reg + - "#size-cells" + +additionalProperties: false + +examples: + - | + syscon@10000080 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "brcm,bcm6328-gpio-sysctl", "syscon", "simple-mfd"; + reg = <0x10000080 0x80>; + ranges = <0 0x10000080 0x80>; + + gpio@0 { + compatible = "brcm,bcm6328-gpio"; + reg-names = "dirout", "dat"; + reg = <0x0 0x8>, <0x8 0x8>; + + gpio-controller; + gpio-ranges = <&pinctrl 0 0 32>; + #gpio-cells = <2>; + }; + + pinctrl: pinctrl@18 { + compatible = "brcm,bcm6328-pinctrl"; + reg = <0x18 0x10>; + + pinctrl_serial_led: serial_led-pins { + pinctrl_serial_led_data: serial_led_data-pins { + function = "serial_led_data"; + pins = "gpio6"; + }; + + pinctrl_serial_led_clk: serial_led_clk-pins { + function = "serial_led_clk"; + pins = "gpio7"; + }; + }; + + pinctrl_inet_act_led: inet_act_led-pins { + function = "inet_act_led"; + pins = "gpio11"; + }; + + pinctrl_pcie_clkreq: pcie_clkreq-pins { + function = "pcie_clkreq"; + pins = "gpio16"; + }; + + pinctrl_ephy0_spd_led: ephy0_spd_led-pins { + function = "led"; + pins = "gpio17"; + }; + + pinctrl_ephy1_spd_led: ephy1_spd_led-pins { + function = "led"; + pins = "gpio18"; + }; + + pinctrl_ephy2_spd_led: ephy2_spd_led-pins { + function = "led"; + pins = "gpio19"; + }; + + pinctrl_ephy3_spd_led: ephy3_spd_led-pins { + function = "led"; + pins = "gpio20"; + }; + + pinctrl_ephy0_act_led: ephy0_act_led-pins { + function = "ephy0_act_led"; + pins = "gpio25"; + }; + + pinctrl_ephy1_act_led: ephy1_act_led-pins { + function = "ephy1_act_led"; + pins = "gpio26"; + }; + + pinctrl_ephy2_act_led: ephy2_act_led-pins { + function = "ephy2_act_led"; + pins = "gpio27"; + }; + + pinctrl_ephy3_act_led: ephy3_act_led-pins { + function = "ephy3_act_led"; + pins = "gpio28"; + }; + + pinctrl_hsspi_cs1: hsspi_cs1-pins { + function = "hsspi_cs1"; + pins = "hsspi_cs1"; + }; + + pinctrl_usb_port1_device: usb_port1_device-pins { + function = "usb_device_port"; + pins = "usb_port1"; + }; + + pinctrl_usb_port1_host: usb_port1_host-pins { + function = "usb_host_port"; + pins = "usb_port1"; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml index 3b162b229..6a8243518 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml @@ -1,133 +1,133 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/hisilicon,hi6421-spmi-pmic.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: HiSilicon 6421v600 SPMI PMIC - -maintainers: - - Mauro Carvalho Chehab - -description: | - HiSilicon 6421v600 should be connected inside a MIPI System Power Management - (SPMI) bus. It provides interrupts and power supply. - - The GPIO and interrupt settings are represented as part of the top-level PMIC - node. - - The SPMI controller part is provided by - Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml - -properties: - $nodename: - pattern: "pmic@[0-9a-f]" - - compatible: - const: hisilicon,hi6421v600-spmi - - reg: - maxItems: 1 - - '#interrupt-cells': - const: 2 - - interrupt-controller: true - - interrupts: - maxItems: 1 - - regulators: - type: object - - additionalProperties: false - - patternProperties: - '^ldo[0-9]+$': - type: object - - $ref: /schemas/regulator/regulator.yaml# - - unevaluatedProperties: false - -required: - - compatible - - reg - - regulators - -additionalProperties: false - -examples: - - | - #include - - spmi { - #address-cells = <2>; - #size-cells = <0>; - - pmic@0 { - compatible = "hisilicon,hi6421v600-spmi"; - reg = <0 SPMI_USID>; - - #interrupt-cells = <2>; - interrupt-controller; - interrupt-parent = <&gpio28>; - interrupts = <0 0>; - - regulators { - ldo3 { - regulator-name = "ldo3"; - regulator-min-microvolt = <1500000>; - regulator-max-microvolt = <2000000>; - regulator-boot-on; - }; - - ldo4 { - regulator-name = "ldo4"; - regulator-min-microvolt = <1725000>; - regulator-max-microvolt = <1900000>; - regulator-boot-on; - }; - - ldo9 { - regulator-name = "ldo9"; - regulator-min-microvolt = <1750000>; - regulator-max-microvolt = <3300000>; - regulator-boot-on; - }; - - ldo15 { - regulator-name = "ldo15"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3000000>; - regulator-always-on; - }; - - ldo16 { - regulator-name = "ldo16"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3000000>; - regulator-boot-on; - }; - - ldo17 { - regulator-name = "ldo17"; - regulator-min-microvolt = <2500000>; - regulator-max-microvolt = <3300000>; - }; - - ldo33 { - regulator-name = "ldo33"; - regulator-min-microvolt = <2500000>; - regulator-max-microvolt = <3300000>; - regulator-boot-on; - }; - - ldo34 { - regulator-name = "ldo34"; - regulator-min-microvolt = <2600000>; - regulator-max-microvolt = <3300000>; - }; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/hisilicon,hi6421-spmi-pmic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HiSilicon 6421v600 SPMI PMIC + +maintainers: + - Mauro Carvalho Chehab + +description: | + HiSilicon 6421v600 should be connected inside a MIPI System Power Management + (SPMI) bus. It provides interrupts and power supply. + + The GPIO and interrupt settings are represented as part of the top-level PMIC + node. + + The SPMI controller part is provided by + Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml + +properties: + $nodename: + pattern: "pmic@[0-9a-f]" + + compatible: + const: hisilicon,hi6421v600-spmi + + reg: + maxItems: 1 + + '#interrupt-cells': + const: 2 + + interrupt-controller: true + + interrupts: + maxItems: 1 + + regulators: + type: object + + additionalProperties: false + + patternProperties: + '^ldo[0-9]+$': + type: object + + $ref: /schemas/regulator/regulator.yaml# + + unevaluatedProperties: false + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + #include + + spmi { + #address-cells = <2>; + #size-cells = <0>; + + pmic@0 { + compatible = "hisilicon,hi6421v600-spmi"; + reg = <0 SPMI_USID>; + + #interrupt-cells = <2>; + interrupt-controller; + interrupt-parent = <&gpio28>; + interrupts = <0 0>; + + regulators { + ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <2000000>; + regulator-boot-on; + }; + + ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1725000>; + regulator-max-microvolt = <1900000>; + regulator-boot-on; + }; + + ldo9 { + regulator-name = "ldo9"; + regulator-min-microvolt = <1750000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + + ldo15 { + regulator-name = "ldo15"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3000000>; + regulator-always-on; + }; + + ldo16 { + regulator-name = "ldo16"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3000000>; + regulator-boot-on; + }; + + ldo17 { + regulator-name = "ldo17"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <3300000>; + }; + + ldo33 { + regulator-name = "ldo33"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + + ldo34 { + regulator-name = "ldo34"; + regulator-min-microvolt = <2600000>; + regulator-max-microvolt = <3300000>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/kontron,sl28cpld.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/kontron,sl28cpld.yaml index f94034c32..37207a97e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/kontron,sl28cpld.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/kontron,sl28cpld.yaml @@ -1,153 +1,153 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/kontron,sl28cpld.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Kontron's sl28cpld board management controller - -maintainers: - - Michael Walle - -description: | - The board management controller may contain different IP blocks like - watchdog, fan monitoring, PWM controller, interrupt controller and a - GPIO controller. - -properties: - compatible: - const: kontron,sl28cpld - - reg: - description: - I2C device address. - maxItems: 1 - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - - "#interrupt-cells": - const: 2 - - interrupts: - maxItems: 1 - - interrupt-controller: true - -patternProperties: - "^gpio(@[0-9a-f]+)?$": - $ref: /schemas/gpio/kontron,sl28cpld-gpio.yaml - - "^hwmon(@[0-9a-f]+)?$": - $ref: /schemas/hwmon/kontron,sl28cpld-hwmon.yaml - - "^interrupt-controller(@[0-9a-f]+)?$": - $ref: /schemas/interrupt-controller/kontron,sl28cpld-intc.yaml - - "^pwm(@[0-9a-f]+)?$": - $ref: /schemas/pwm/kontron,sl28cpld-pwm.yaml - - "^watchdog(@[0-9a-f]+)?$": - $ref: /schemas/watchdog/kontron,sl28cpld-wdt.yaml - -required: - - "#address-cells" - - "#size-cells" - - compatible - - reg - -additionalProperties: false - -examples: - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - sl28cpld@4a { - compatible = "kontron,sl28cpld"; - reg = <0x4a>; - #address-cells = <1>; - #size-cells = <0>; - - watchdog@4 { - compatible = "kontron,sl28cpld-wdt"; - reg = <0x4>; - kontron,assert-wdt-timeout-pin; - }; - - hwmon@b { - compatible = "kontron,sl28cpld-fan"; - reg = <0xb>; - }; - - pwm@c { - compatible = "kontron,sl28cpld-pwm"; - reg = <0xc>; - #pwm-cells = <2>; - }; - - pwm@e { - compatible = "kontron,sl28cpld-pwm"; - reg = <0xe>; - #pwm-cells = <2>; - }; - - gpio@10 { - compatible = "kontron,sl28cpld-gpio"; - reg = <0x10>; - interrupts-extended = <&gpio2 6 - IRQ_TYPE_EDGE_FALLING>; - - gpio-controller; - #gpio-cells = <2>; - gpio-line-names = "a", "b", "c"; - - interrupt-controller; - #interrupt-cells = <2>; - }; - - gpio@15 { - compatible = "kontron,sl28cpld-gpio"; - reg = <0x15>; - interrupts-extended = <&gpio2 6 - IRQ_TYPE_EDGE_FALLING>; - - gpio-controller; - #gpio-cells = <2>; - - interrupt-controller; - #interrupt-cells = <2>; - }; - - gpio@1a { - compatible = "kontron,sl28cpld-gpo"; - reg = <0x1a>; - - gpio-controller; - #gpio-cells = <2>; - }; - - gpio@1b { - compatible = "kontron,sl28cpld-gpi"; - reg = <0x1b>; - - gpio-controller; - #gpio-cells = <2>; - }; - - interrupt-controller@1c { - compatible = "kontron,sl28cpld-intc"; - reg = <0x1c>; - interrupts-extended = <&gpio2 6 - IRQ_TYPE_EDGE_FALLING>; - - interrupt-controller; - #interrupt-cells = <2>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/kontron,sl28cpld.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Kontron's sl28cpld board management controller + +maintainers: + - Michael Walle + +description: | + The board management controller may contain different IP blocks like + watchdog, fan monitoring, PWM controller, interrupt controller and a + GPIO controller. + +properties: + compatible: + const: kontron,sl28cpld + + reg: + description: + I2C device address. + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + "#interrupt-cells": + const: 2 + + interrupts: + maxItems: 1 + + interrupt-controller: true + +patternProperties: + "^gpio(@[0-9a-f]+)?$": + $ref: /schemas/gpio/kontron,sl28cpld-gpio.yaml + + "^hwmon(@[0-9a-f]+)?$": + $ref: /schemas/hwmon/kontron,sl28cpld-hwmon.yaml + + "^interrupt-controller(@[0-9a-f]+)?$": + $ref: /schemas/interrupt-controller/kontron,sl28cpld-intc.yaml + + "^pwm(@[0-9a-f]+)?$": + $ref: /schemas/pwm/kontron,sl28cpld-pwm.yaml + + "^watchdog(@[0-9a-f]+)?$": + $ref: /schemas/watchdog/kontron,sl28cpld-wdt.yaml + +required: + - "#address-cells" + - "#size-cells" + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + sl28cpld@4a { + compatible = "kontron,sl28cpld"; + reg = <0x4a>; + #address-cells = <1>; + #size-cells = <0>; + + watchdog@4 { + compatible = "kontron,sl28cpld-wdt"; + reg = <0x4>; + kontron,assert-wdt-timeout-pin; + }; + + hwmon@b { + compatible = "kontron,sl28cpld-fan"; + reg = <0xb>; + }; + + pwm@c { + compatible = "kontron,sl28cpld-pwm"; + reg = <0xc>; + #pwm-cells = <2>; + }; + + pwm@e { + compatible = "kontron,sl28cpld-pwm"; + reg = <0xe>; + #pwm-cells = <2>; + }; + + gpio@10 { + compatible = "kontron,sl28cpld-gpio"; + reg = <0x10>; + interrupts-extended = <&gpio2 6 + IRQ_TYPE_EDGE_FALLING>; + + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = "a", "b", "c"; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpio@15 { + compatible = "kontron,sl28cpld-gpio"; + reg = <0x15>; + interrupts-extended = <&gpio2 6 + IRQ_TYPE_EDGE_FALLING>; + + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpio@1a { + compatible = "kontron,sl28cpld-gpo"; + reg = <0x1a>; + + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@1b { + compatible = "kontron,sl28cpld-gpi"; + reg = <0x1b>; + + gpio-controller; + #gpio-cells = <2>; + }; + + interrupt-controller@1c { + compatible = "kontron,sl28cpld-intc"; + reg = <0x1c>; + interrupts-extended = <&gpio2 6 + IRQ_TYPE_EDGE_FALLING>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/max77650.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/max77650.yaml index b9d86880c..d93d84171 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/max77650.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/max77650.yaml @@ -1,149 +1,149 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/max77650.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MAX77650 ultra low-power PMIC from Maxim Integrated. - -maintainers: - - Bartosz Golaszewski - -description: | - MAX77650 is an ultra-low power PMIC providing battery charging and power - supply for low-power IoT and wearable applications. - - The GPIO-controller module is represented as part of the top-level PMIC - node. The device exposes a single GPIO line. - - For device-tree bindings of other sub-modules (regulator, power supply, - LEDs and onkey) refer to the binding documents under the respective - sub-system directories. - -properties: - compatible: - const: maxim,max77650 - - reg: - description: - I2C device address. - maxItems: 1 - - interrupts: - maxItems: 1 - - interrupt-controller: true - - "#interrupt-cells": - const: 2 - description: - The first cell is the IRQ number, the second cell is the trigger type. - - gpio-controller: true - - "#gpio-cells": - const: 2 - description: - The first cell is the pin number and the second cell is used to specify - the gpio active state. - - gpio-line-names: - maxItems: 1 - description: - Single string containing the name of the GPIO line. - - regulators: - $ref: /schemas/regulator/max77650-regulator.yaml - - charger: - $ref: /schemas/power/supply/max77650-charger.yaml - - leds: - $ref: /schemas/leds/leds-max77650.yaml - - onkey: - $ref: /schemas/input/max77650-onkey.yaml - -required: - - compatible - - reg - - interrupts - - interrupt-controller - - "#interrupt-cells" - - gpio-controller - - "#gpio-cells" - -additionalProperties: false - -examples: - - | - #include - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - pmic@48 { - compatible = "maxim,max77650"; - reg = <0x48>; - - interrupt-controller; - interrupt-parent = <&gpio2>; - #interrupt-cells = <2>; - interrupts = <3 IRQ_TYPE_LEVEL_LOW>; - - gpio-controller; - #gpio-cells = <2>; - gpio-line-names = "max77650-charger"; - - regulators { - compatible = "maxim,max77650-regulator"; - - max77650_ldo: regulator-ldo { - regulator-name = "max77650-ldo"; - regulator-min-microvolt = <1350000>; - regulator-max-microvolt = <2937500>; - }; - - max77650_sbb0: regulator-sbb0 { - regulator-name = "max77650-sbb0"; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <1587500>; - }; - }; - - charger { - compatible = "maxim,max77650-charger"; - input-voltage-min-microvolt = <4200000>; - input-current-limit-microamp = <285000>; - }; - - leds { - compatible = "maxim,max77650-led"; - #address-cells = <1>; - #size-cells = <0>; - - led@0 { - reg = <0>; - label = "blue:usr0"; - }; - - led@1 { - reg = <1>; - label = "red:usr1"; - linux,default-trigger = "heartbeat"; - }; - - led@2 { - reg = <2>; - label = "green:usr2"; - }; - }; - - onkey { - compatible = "maxim,max77650-onkey"; - linux,code = ; - maxim,onkey-slide; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/max77650.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MAX77650 ultra low-power PMIC from Maxim Integrated. + +maintainers: + - Bartosz Golaszewski + +description: | + MAX77650 is an ultra-low power PMIC providing battery charging and power + supply for low-power IoT and wearable applications. + + The GPIO-controller module is represented as part of the top-level PMIC + node. The device exposes a single GPIO line. + + For device-tree bindings of other sub-modules (regulator, power supply, + LEDs and onkey) refer to the binding documents under the respective + sub-system directories. + +properties: + compatible: + const: maxim,max77650 + + reg: + description: + I2C device address. + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + description: + The first cell is the IRQ number, the second cell is the trigger type. + + gpio-controller: true + + "#gpio-cells": + const: 2 + description: + The first cell is the pin number and the second cell is used to specify + the gpio active state. + + gpio-line-names: + maxItems: 1 + description: + Single string containing the name of the GPIO line. + + regulators: + $ref: /schemas/regulator/max77650-regulator.yaml + + charger: + $ref: /schemas/power/supply/max77650-charger.yaml + + leds: + $ref: /schemas/leds/leds-max77650.yaml + + onkey: + $ref: /schemas/input/max77650-onkey.yaml + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - "#interrupt-cells" + - gpio-controller + - "#gpio-cells" + +additionalProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@48 { + compatible = "maxim,max77650"; + reg = <0x48>; + + interrupt-controller; + interrupt-parent = <&gpio2>; + #interrupt-cells = <2>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = "max77650-charger"; + + regulators { + compatible = "maxim,max77650-regulator"; + + max77650_ldo: regulator-ldo { + regulator-name = "max77650-ldo"; + regulator-min-microvolt = <1350000>; + regulator-max-microvolt = <2937500>; + }; + + max77650_sbb0: regulator-sbb0 { + regulator-name = "max77650-sbb0"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1587500>; + }; + }; + + charger { + compatible = "maxim,max77650-charger"; + input-voltage-min-microvolt = <4200000>; + input-current-limit-microamp = <285000>; + }; + + leds { + compatible = "maxim,max77650-led"; + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + label = "blue:usr0"; + }; + + led@1 { + reg = <1>; + label = "red:usr1"; + linux,default-trigger = "heartbeat"; + }; + + led@2 { + reg = <2>; + label = "green:usr2"; + }; + }; + + onkey { + compatible = "maxim,max77650-onkey"; + linux,code = ; + maxim,onkey-slide; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/maxim,max5970.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/maxim,max5970.yaml index 4ce407ca4..0da5cae38 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/maxim,max5970.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/maxim,max5970.yaml @@ -1,156 +1,156 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/maxim,max5970.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Regulator for MAX5970 Smart Switch from Maxim Integrated - -maintainers: - - Patrick Rudolph - -description: | - The smart switch provides no output regulation, but independent fault protection - and voltage and current sensing. - Programming is done through I2C bus. - - Datasheets: - https://datasheets.maximintegrated.com/en/ds/MAX5970.pdf - https://datasheets.maximintegrated.com/en/ds/MAX5978.pdf - -properties: - compatible: - enum: - - maxim,max5970 - - maxim,max5978 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - leds: - type: object - description: - Properties for four LEDS. - - properties: - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - - patternProperties: - "^led@[0-3]$": - $ref: /schemas/leds/common.yaml# - unevaluatedProperties: false - type: object - - properties: - reg: - maximum: 3 - - additionalProperties: false - - vss1-supply: - description: Supply of the first channel. - - vss2-supply: - description: Supply of the second channel. - - regulators: - type: object - description: - Properties for both hot swap control/switch. - - patternProperties: - "^sw[0-1]$": - $ref: /schemas/regulator/regulator.yaml# - type: object - properties: - shunt-resistor-micro-ohms: - description: | - The value of current sense resistor in microohms. - - required: - - shunt-resistor-micro-ohms - - unevaluatedProperties: false - - additionalProperties: false - -required: - - compatible - - reg - - regulators - - vss1-supply - -allOf: - - if: - properties: - compatible: - enum: - - maxim,max5970 - then: - required: - - vss2-supply - -additionalProperties: false - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - regulator@3a { - compatible = "maxim,max5978"; - reg = <0x3a>; - vss1-supply = <&p3v3>; - - regulators { - sw0_ref_0: sw0 { - shunt-resistor-micro-ohms = <12000>; - }; - }; - - leds { - #address-cells = <1>; - #size-cells = <0>; - led@0 { - reg = <0>; - label = "led0"; - default-state = "on"; - }; - led@1 { - reg = <1>; - label = "led1"; - default-state = "on"; - }; - }; - }; - }; - - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - regulator@3a { - compatible = "maxim,max5970"; - reg = <0x3a>; - vss1-supply = <&p3v3>; - vss2-supply = <&p5v>; - - regulators { - sw0_ref_1: sw0 { - shunt-resistor-micro-ohms = <12000>; - }; - sw1_ref_1: sw1 { - shunt-resistor-micro-ohms = <10000>; - }; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/maxim,max5970.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Regulator for MAX5970 Smart Switch from Maxim Integrated + +maintainers: + - Patrick Rudolph + +description: | + The smart switch provides no output regulation, but independent fault protection + and voltage and current sensing. + Programming is done through I2C bus. + + Datasheets: + https://datasheets.maximintegrated.com/en/ds/MAX5970.pdf + https://datasheets.maximintegrated.com/en/ds/MAX5978.pdf + +properties: + compatible: + enum: + - maxim,max5970 + - maxim,max5978 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + leds: + type: object + description: + Properties for four LEDS. + + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + patternProperties: + "^led@[0-3]$": + $ref: /schemas/leds/common.yaml# + unevaluatedProperties: false + type: object + + properties: + reg: + maximum: 3 + + additionalProperties: false + + vss1-supply: + description: Supply of the first channel. + + vss2-supply: + description: Supply of the second channel. + + regulators: + type: object + description: + Properties for both hot swap control/switch. + + patternProperties: + "^sw[0-1]$": + $ref: /schemas/regulator/regulator.yaml# + type: object + properties: + shunt-resistor-micro-ohms: + description: | + The value of current sense resistor in microohms. + + required: + - shunt-resistor-micro-ohms + + unevaluatedProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - regulators + - vss1-supply + +allOf: + - if: + properties: + compatible: + enum: + - maxim,max5970 + then: + required: + - vss2-supply + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + regulator@3a { + compatible = "maxim,max5978"; + reg = <0x3a>; + vss1-supply = <&p3v3>; + + regulators { + sw0_ref_0: sw0 { + shunt-resistor-micro-ohms = <12000>; + }; + }; + + leds { + #address-cells = <1>; + #size-cells = <0>; + led@0 { + reg = <0>; + label = "led0"; + default-state = "on"; + }; + led@1 { + reg = <1>; + label = "led1"; + default-state = "on"; + }; + }; + }; + }; + + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + regulator@3a { + compatible = "maxim,max5970"; + reg = <0x3a>; + vss1-supply = <&p3v3>; + vss2-supply = <&p5v>; + + regulators { + sw0_ref_1: sw0 { + shunt-resistor-micro-ohms = <12000>; + }; + sw1_ref_1: sw1 { + shunt-resistor-micro-ohms = <10000>; + }; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/maxim,max77686.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/maxim,max77686.yaml index 6a1a4f103..c13d51e46 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/maxim,max77686.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/maxim,max77686.yaml @@ -1,132 +1,132 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/maxim,max77686.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Maxim MAX77686 Power Management IC - -maintainers: - - Chanwoo Choi - - Krzysztof Kozlowski - -description: | - This is a part of device tree bindings for Maxim MAX77686 Power Management - Integrated Circuit (PMIC). - - The Maxim MAX77686 is a Power Management IC which includes voltage and - current regulators, RTC and clock outputs. - - The MAX77686 provides three 32.768khz clock outputs that can be controlled - (gated/ungated) over I2C. The clock IDs are defined as preprocessor macros - in dt-bindings/clock/maxim,max77686.h. - -properties: - compatible: - const: maxim,max77686 - - '#clock-cells': - const: 1 - - interrupts: - maxItems: 1 - - reg: - maxItems: 1 - - voltage-regulators: - $ref: /schemas/regulator/maxim,max77686.yaml - description: - List of child nodes that specify the regulators. - - wakeup-source: true - -required: - - compatible - - '#clock-cells' - - reg - -additionalProperties: false - -examples: - - | - #include - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - max77686: pmic@9 { - compatible = "maxim,max77686"; - reg = <0x09>; - - interrupt-parent = <&gpx0>; - interrupts = <7 IRQ_TYPE_LEVEL_LOW>; - pinctrl-0 = <&max77686_irq>; - pinctrl-names = "default"; - wakeup-source; - #clock-cells = <1>; - - voltage-regulators { - LDO1 { - regulator-name = "VALIVE_1.0V_AP"; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1000000>; - regulator-always-on; - }; - - LDO2 { - regulator-name = "VM1M2_1.2V_AP"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-always-on; - regulator-state-mem { - regulator-on-in-suspend; - }; - }; - - // ... - - LDO22 { - regulator-name = "VMEM_VDD_2.8V"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - maxim,ena-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>; - }; - - // ... - - BUCK1 { - regulator-name = "VDD_MIF"; - regulator-min-microvolt = <850000>; - regulator-max-microvolt = <1100000>; - regulator-always-on; - regulator-boot-on; - regulator-state-mem { - regulator-off-in-suspend; - }; - }; - - BUCK2 { - regulator-name = "VDD_ARM"; - regulator-min-microvolt = <850000>; - regulator-max-microvolt = <1500000>; - regulator-always-on; - regulator-boot-on; - regulator-state-mem { - regulator-on-in-suspend; - }; - }; - - // ... - - BUCK9 { - regulator-name = "CAM_ISP_CORE_1.2V"; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1200000>; - maxim,ena-gpios = <&gpm0 3 GPIO_ACTIVE_HIGH>; - }; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/maxim,max77686.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX77686 Power Management IC + +maintainers: + - Chanwoo Choi + - Krzysztof Kozlowski + +description: | + This is a part of device tree bindings for Maxim MAX77686 Power Management + Integrated Circuit (PMIC). + + The Maxim MAX77686 is a Power Management IC which includes voltage and + current regulators, RTC and clock outputs. + + The MAX77686 provides three 32.768khz clock outputs that can be controlled + (gated/ungated) over I2C. The clock IDs are defined as preprocessor macros + in dt-bindings/clock/maxim,max77686.h. + +properties: + compatible: + const: maxim,max77686 + + '#clock-cells': + const: 1 + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + + voltage-regulators: + $ref: /schemas/regulator/maxim,max77686.yaml + description: + List of child nodes that specify the regulators. + + wakeup-source: true + +required: + - compatible + - '#clock-cells' + - reg + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + max77686: pmic@9 { + compatible = "maxim,max77686"; + reg = <0x09>; + + interrupt-parent = <&gpx0>; + interrupts = <7 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 = <&max77686_irq>; + pinctrl-names = "default"; + wakeup-source; + #clock-cells = <1>; + + voltage-regulators { + LDO1 { + regulator-name = "VALIVE_1.0V_AP"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + }; + + LDO2 { + regulator-name = "VM1M2_1.2V_AP"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + // ... + + LDO22 { + regulator-name = "VMEM_VDD_2.8V"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + maxim,ena-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>; + }; + + // ... + + BUCK1 { + regulator-name = "VDD_MIF"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1100000>; + regulator-always-on; + regulator-boot-on; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + BUCK2 { + regulator-name = "VDD_ARM"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1500000>; + regulator-always-on; + regulator-boot-on; + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + // ... + + BUCK9 { + regulator-name = "CAM_ISP_CORE_1.2V"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1200000>; + maxim,ena-gpios = <&gpm0 3 GPIO_ACTIVE_HIGH>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/maxim,max77843.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/maxim,max77843.yaml index 720b98a25..2e2a2a86b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/maxim,max77843.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/maxim,max77843.yaml @@ -1,145 +1,145 @@ -# SPDX-License-Identifier: GPL-2.0-only -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/maxim,max77843.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Maxim MAX77843 MicroUSB and Companion Power Management IC - -maintainers: - - Krzysztof Kozlowski - -description: | - This is a part of device tree bindings for Maxim MAX77843 MicroUSB - Integrated Circuit (MUIC). - - The Maxim MAX77843 is a MicroUSB and Companion Power Management IC which - includes voltage current regulators, charger, fuel-gauge, haptic motor driver - and MicroUSB management IC. - -properties: - compatible: - const: maxim,max77843 - - interrupts: - maxItems: 1 - - reg: - maxItems: 1 - - extcon: - $ref: /schemas/extcon/maxim,max77843.yaml - - motor-driver: - type: object - additionalProperties: false - properties: - compatible: - const: maxim,max77843-haptic - - haptic-supply: - description: Power supply to the haptic motor - - pwms: - maxItems: 1 - - required: - - compatible - - haptic-supply - - pwms - - regulators: - $ref: /schemas/regulator/maxim,max77843.yaml - -required: - - compatible - - interrupts - - reg - -additionalProperties: false - -examples: - - | - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - pmic@66 { - compatible = "maxim,max77843"; - interrupt-parent = <&gpa1>; - interrupts = <5 IRQ_TYPE_EDGE_FALLING>; - reg = <0x66>; - - extcon { - compatible = "maxim,max77843-muic"; - - connector { - compatible = "samsung,usb-connector-11pin", - "usb-b-connector"; - label = "micro-USB"; - type = "micro"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - /* - * TODO: The DTS this is based on does not have - * port@0 which is a required property. The ports - * look incomplete and need fixing. - * Add a disabled port just to satisfy dtschema. - */ - reg = <0>; - status = "disabled"; - }; - - port@3 { - reg = <3>; - endpoint { - remote-endpoint = <&mhl_to_musb_con>; - }; - }; - }; - }; - - ports { - port { - endpoint { - remote-endpoint = <&usb_to_muic>; - }; - }; - }; - }; - - regulators { - compatible = "maxim,max77843-regulator"; - - SAFEOUT1 { - regulator-name = "SAFEOUT1"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <4950000>; - }; - - SAFEOUT2 { - regulator-name = "SAFEOUT2"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <4950000>; - }; - - CHARGER { - regulator-name = "CHARGER"; - regulator-min-microamp = <100000>; - regulator-max-microamp = <3150000>; - }; - }; - - motor-driver { - compatible = "maxim,max77843-haptic"; - haptic-supply = <&ldo38_reg>; - pwms = <&pwm 0 33670 0>; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/maxim,max77843.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX77843 MicroUSB and Companion Power Management IC + +maintainers: + - Krzysztof Kozlowski + +description: | + This is a part of device tree bindings for Maxim MAX77843 MicroUSB + Integrated Circuit (MUIC). + + The Maxim MAX77843 is a MicroUSB and Companion Power Management IC which + includes voltage current regulators, charger, fuel-gauge, haptic motor driver + and MicroUSB management IC. + +properties: + compatible: + const: maxim,max77843 + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + + extcon: + $ref: /schemas/extcon/maxim,max77843.yaml + + motor-driver: + type: object + additionalProperties: false + properties: + compatible: + const: maxim,max77843-haptic + + haptic-supply: + description: Power supply to the haptic motor + + pwms: + maxItems: 1 + + required: + - compatible + - haptic-supply + - pwms + + regulators: + $ref: /schemas/regulator/maxim,max77843.yaml + +required: + - compatible + - interrupts + - reg + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@66 { + compatible = "maxim,max77843"; + interrupt-parent = <&gpa1>; + interrupts = <5 IRQ_TYPE_EDGE_FALLING>; + reg = <0x66>; + + extcon { + compatible = "maxim,max77843-muic"; + + connector { + compatible = "samsung,usb-connector-11pin", + "usb-b-connector"; + label = "micro-USB"; + type = "micro"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + /* + * TODO: The DTS this is based on does not have + * port@0 which is a required property. The ports + * look incomplete and need fixing. + * Add a disabled port just to satisfy dtschema. + */ + reg = <0>; + status = "disabled"; + }; + + port@3 { + reg = <3>; + endpoint { + remote-endpoint = <&mhl_to_musb_con>; + }; + }; + }; + }; + + ports { + port { + endpoint { + remote-endpoint = <&usb_to_muic>; + }; + }; + }; + }; + + regulators { + compatible = "maxim,max77843-regulator"; + + SAFEOUT1 { + regulator-name = "SAFEOUT1"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <4950000>; + }; + + SAFEOUT2 { + regulator-name = "SAFEOUT2"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <4950000>; + }; + + CHARGER { + regulator-name = "CHARGER"; + regulator-min-microamp = <100000>; + regulator-max-microamp = <3150000>; + }; + }; + + motor-driver { + compatible = "maxim,max77843-haptic"; + haptic-supply = <&ldo38_reg>; + pwms = <&pwm 0 33670 0>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/maxim,max8925.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/maxim,max8925.yaml index 321e34c45..86dd81085 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/maxim,max8925.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/maxim,max8925.yaml @@ -1,145 +1,145 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/maxim,max8925.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MAX8925 PMIC from Maxim Integrated. - -maintainers: - - Lee Jones - -properties: - compatible: - const: maxim,max8925 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - interrupt-controller: true - - "#interrupt-cells": - const: 1 - description: - The cell is the IRQ number - - maxim,tsc-irq: - description: second interrupt from max8925 - $ref: /schemas/types.yaml#/definitions/uint32 - - regulators: - type: object - - patternProperties: - "^SDV[1-3]$|^LDO[1-9]$|^LDO1[0-9]$|^LDO20$": - description: regulator configuration for SDV1-3 and LDO1-20 - $ref: /schemas/regulator/regulator.yaml - unevaluatedProperties: false - - additionalProperties: false - - backlight: - type: object - properties: - maxim,max8925-dual-string: - description: set to 1 to support dual string - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1] - default: 0 - - additionalProperties: false - - charger: - type: object - properties: - batt-detect: - description: set to 1 if battery detection via ID pin is supported - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1] - default: 0 - - topoff-threshold: - description: charging current in topoff mode, configures bits 5-6 in CHG_CNTL1 - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 3 - default: 0 - - fast-charge: - description: set charging current in fast mode, configures bits 0-3 in CHG_CNTL1 - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 7 - default: 0 - - no-temp-support: - description: set to 1 if temperature sensing is not supported - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1] - default: 0 - - no-insert-detect: - description: set to 1 if AC detection is not supported - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1] - default: 0 - - additionalProperties: false - -required: - - compatible - - reg - - interrupts - - interrupt-controller - - "#interrupt-cells" - - regulators - -additionalProperties: false - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - pmic@3c { - compatible = "maxim,max8925"; - reg = <0x3c>; - interrupts = <1>; - interrupt-parent = <&intcmux4>; - interrupt-controller; - #interrupt-cells = <1>; - maxim,tsc-irq = <0>; - - regulators { - SDV1 { - regulator-min-microvolt = <637500>; - regulator-max-microvolt = <1425000>; - regulator-boot-on; - regulator-always-on; - }; - - LDO1 { - regulator-min-microvolt = <750000>; - regulator-max-microvolt = <3900000>; - regulator-boot-on; - regulator-always-on; - }; - }; - - backlight { - maxim,max8925-dual-string = <0>; - }; - - charger { - batt-detect = <0>; - topoff-threshold = <1>; - fast-charge = <7>; - no-temp-support = <0>; - no-insert-detect = <0>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/maxim,max8925.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MAX8925 PMIC from Maxim Integrated. + +maintainers: + - Lee Jones + +properties: + compatible: + const: maxim,max8925 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + "#interrupt-cells": + const: 1 + description: + The cell is the IRQ number + + maxim,tsc-irq: + description: second interrupt from max8925 + $ref: /schemas/types.yaml#/definitions/uint32 + + regulators: + type: object + + patternProperties: + "^SDV[1-3]$|^LDO[1-9]$|^LDO1[0-9]$|^LDO20$": + description: regulator configuration for SDV1-3 and LDO1-20 + $ref: /schemas/regulator/regulator.yaml + unevaluatedProperties: false + + additionalProperties: false + + backlight: + type: object + properties: + maxim,max8925-dual-string: + description: set to 1 to support dual string + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + default: 0 + + additionalProperties: false + + charger: + type: object + properties: + batt-detect: + description: set to 1 if battery detection via ID pin is supported + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + default: 0 + + topoff-threshold: + description: charging current in topoff mode, configures bits 5-6 in CHG_CNTL1 + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 3 + default: 0 + + fast-charge: + description: set charging current in fast mode, configures bits 0-3 in CHG_CNTL1 + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 7 + default: 0 + + no-temp-support: + description: set to 1 if temperature sensing is not supported + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + default: 0 + + no-insert-detect: + description: set to 1 if AC detection is not supported + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + default: 0 + + additionalProperties: false + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - "#interrupt-cells" + - regulators + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@3c { + compatible = "maxim,max8925"; + reg = <0x3c>; + interrupts = <1>; + interrupt-parent = <&intcmux4>; + interrupt-controller; + #interrupt-cells = <1>; + maxim,tsc-irq = <0>; + + regulators { + SDV1 { + regulator-min-microvolt = <637500>; + regulator-max-microvolt = <1425000>; + regulator-boot-on; + regulator-always-on; + }; + + LDO1 { + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <3900000>; + regulator-boot-on; + regulator-always-on; + }; + }; + + backlight { + maxim,max8925-dual-string = <0>; + }; + + charger { + batt-detect = <0>; + topoff-threshold = <1>; + fast-charge = <7>; + no-temp-support = <0>; + no-insert-detect = <0>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml index 4b0365ccf..b67fbe0e7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml @@ -1,135 +1,135 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/mediatek,mt6357.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MediaTek MT6357 PMIC - -maintainers: - - Flora Fu - - Alexandre Mergnat - -description: | - MT6357 is a power management system chip containing 5 buck - converters and 29 LDOs. Supported features are audio codec, - USB battery charging, fuel gauge, RTC - - This is a multifunction device with the following sub modules: - - Regulator - - RTC - - Keys - - It is interfaced to host controller using SPI interface by a proprietary hardware - called PMIC wrapper or pwrap. This MFD is a child device of pwrap. - See the following for pwrap node definitions: - Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml - -properties: - compatible: - const: mediatek,mt6357 - - interrupts: - maxItems: 1 - - interrupt-controller: true - - "#interrupt-cells": - const: 2 - - mediatek,hp-pull-down: - description: - Earphone driver positive output stage short to - the audio reference ground. - type: boolean - - mediatek,micbias0-microvolt: - description: Selects MIC Bias 0 output voltage. - enum: [1700000, 1800000, 1900000, 2000000, - 2100000, 2500000, 2600000, 2700000] - default: 1700000 - - mediatek,micbias1-microvolt: - description: Selects MIC Bias 1 output voltage. - enum: [1700000, 1800000, 1900000, 2000000, - 2100000, 2500000, 2600000, 2700000] - default: 1700000 - - regulators: - type: object - $ref: /schemas/regulator/mediatek,mt6357-regulator.yaml - unevaluatedProperties: false - description: - List of MT6357 BUCKs and LDOs regulators. - - rtc: - type: object - $ref: /schemas/rtc/rtc.yaml# - unevaluatedProperties: false - description: - MT6357 Real Time Clock. - properties: - compatible: - const: mediatek,mt6357-rtc - start-year: true - required: - - compatible - - keys: - type: object - $ref: /schemas/input/mediatek,pmic-keys.yaml - unevaluatedProperties: false - description: - MT6357 power and home keys. - -required: - - compatible - - regulators - -additionalProperties: false - -examples: - - | - #include - - pwrap { - pmic { - compatible = "mediatek,mt6357"; - - interrupt-parent = <&pio>; - interrupts = <145 IRQ_TYPE_LEVEL_HIGH>; - interrupt-controller; - #interrupt-cells = <2>; - - mediatek,micbias0-microvolt = <1700000>; - mediatek,micbias1-microvolt = <1700000>; - - regulators { - mt6357_vproc_reg: buck-vproc { - regulator-name = "vproc"; - regulator-min-microvolt = <518750>; - regulator-max-microvolt = <1312500>; - regulator-ramp-delay = <6250>; - regulator-enable-ramp-delay = <220>; - regulator-always-on; - }; - - // ... - - mt6357_vusb33_reg: ldo-vusb33 { - regulator-name = "vusb33"; - regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <3100000>; - regulator-enable-ramp-delay = <264>; - }; - }; - - rtc { - compatible = "mediatek,mt6357-rtc"; - }; - - keys { - compatible = "mediatek,mt6357-keys"; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/mediatek,mt6357.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MT6357 PMIC + +maintainers: + - Flora Fu + - Alexandre Mergnat + +description: | + MT6357 is a power management system chip containing 5 buck + converters and 29 LDOs. Supported features are audio codec, + USB battery charging, fuel gauge, RTC + + This is a multifunction device with the following sub modules: + - Regulator + - RTC + - Keys + + It is interfaced to host controller using SPI interface by a proprietary hardware + called PMIC wrapper or pwrap. This MFD is a child device of pwrap. + See the following for pwrap node definitions: + Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml + +properties: + compatible: + const: mediatek,mt6357 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + + mediatek,hp-pull-down: + description: + Earphone driver positive output stage short to + the audio reference ground. + type: boolean + + mediatek,micbias0-microvolt: + description: Selects MIC Bias 0 output voltage. + enum: [1700000, 1800000, 1900000, 2000000, + 2100000, 2500000, 2600000, 2700000] + default: 1700000 + + mediatek,micbias1-microvolt: + description: Selects MIC Bias 1 output voltage. + enum: [1700000, 1800000, 1900000, 2000000, + 2100000, 2500000, 2600000, 2700000] + default: 1700000 + + regulators: + type: object + $ref: /schemas/regulator/mediatek,mt6357-regulator.yaml + unevaluatedProperties: false + description: + List of MT6357 BUCKs and LDOs regulators. + + rtc: + type: object + $ref: /schemas/rtc/rtc.yaml# + unevaluatedProperties: false + description: + MT6357 Real Time Clock. + properties: + compatible: + const: mediatek,mt6357-rtc + start-year: true + required: + - compatible + + keys: + type: object + $ref: /schemas/input/mediatek,pmic-keys.yaml + unevaluatedProperties: false + description: + MT6357 power and home keys. + +required: + - compatible + - regulators + +additionalProperties: false + +examples: + - | + #include + + pwrap { + pmic { + compatible = "mediatek,mt6357"; + + interrupt-parent = <&pio>; + interrupts = <145 IRQ_TYPE_LEVEL_HIGH>; + interrupt-controller; + #interrupt-cells = <2>; + + mediatek,micbias0-microvolt = <1700000>; + mediatek,micbias1-microvolt = <1700000>; + + regulators { + mt6357_vproc_reg: buck-vproc { + regulator-name = "vproc"; + regulator-min-microvolt = <518750>; + regulator-max-microvolt = <1312500>; + regulator-ramp-delay = <6250>; + regulator-enable-ramp-delay = <220>; + regulator-always-on; + }; + + // ... + + mt6357_vusb33_reg: ldo-vusb33 { + regulator-name = "vusb33"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3100000>; + regulator-enable-ramp-delay = <264>; + }; + }; + + rtc { + compatible = "mediatek,mt6357-rtc"; + }; + + keys { + compatible = "mediatek,mt6357-keys"; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/mscc,ocelot.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/mscc,ocelot.yaml index 7fbe5fce4..8bd1abfc4 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/mscc,ocelot.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/mscc,ocelot.yaml @@ -1,169 +1,169 @@ -# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/mscc,ocelot.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Ocelot Externally-Controlled Ethernet Switch - -maintainers: - - Colin Foster - -description: | - The Ocelot ethernet switch family contains chips that have an internal CPU - (VSC7513, VSC7514) and chips that don't (VSC7511, VSC7512). All switches have - the option to be controlled externally via external interfaces like SPI or - PCIe. - - The switch family is a multi-port networking switch that supports many - interfaces. Additionally, the device can perform pin control, MDIO buses, and - external GPIO expanders. - -properties: - compatible: - enum: - - mscc,vsc7512 - - reg: - maxItems: 1 - - "#address-cells": - const: 1 - - "#size-cells": - const: 1 - - spi-max-frequency: - maxItems: 1 - -patternProperties: - "^pinctrl@[0-9a-f]+$": - type: object - $ref: /schemas/pinctrl/mscc,ocelot-pinctrl.yaml - - "^gpio@[0-9a-f]+$": - type: object - $ref: /schemas/pinctrl/microchip,sparx5-sgpio.yaml - properties: - compatible: - enum: - - mscc,ocelot-sgpio - - "^mdio@[0-9a-f]+$": - type: object - $ref: /schemas/net/mscc,miim.yaml - properties: - compatible: - enum: - - mscc,ocelot-miim - - "^ethernet-switch@[0-9a-f]+$": - type: object - $ref: /schemas/net/mscc,vsc7514-switch.yaml - unevaluatedProperties: false - properties: - compatible: - enum: - - mscc,vsc7512-switch - -required: - - compatible - - reg - - '#address-cells' - - '#size-cells' - -additionalProperties: false - -examples: - - | - ocelot_clock: ocelot-clock { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <125000000>; - }; - - spi { - #address-cells = <1>; - #size-cells = <0>; - - soc@0 { - compatible = "mscc,vsc7512"; - spi-max-frequency = <2500000>; - reg = <0>; - #address-cells = <1>; - #size-cells = <1>; - - mdio@7107009c { - compatible = "mscc,ocelot-miim"; - #address-cells = <1>; - #size-cells = <0>; - reg = <0x7107009c 0x24>; - - sw_phy0: ethernet-phy@0 { - reg = <0x0>; - }; - }; - - mdio@710700c0 { - compatible = "mscc,ocelot-miim"; - pinctrl-names = "default"; - pinctrl-0 = <&miim1_pins>; - #address-cells = <1>; - #size-cells = <0>; - reg = <0x710700c0 0x24>; - - sw_phy4: ethernet-phy@4 { - reg = <0x4>; - }; - }; - - gpio: pinctrl@71070034 { - compatible = "mscc,ocelot-pinctrl"; - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&gpio 0 0 22>; - reg = <0x71070034 0x6c>; - - sgpio_pins: sgpio-pins { - pins = "GPIO_0", "GPIO_1", "GPIO_2", "GPIO_3"; - function = "sg0"; - }; - - miim1_pins: miim1-pins { - pins = "GPIO_14", "GPIO_15"; - function = "miim"; - }; - }; - - gpio@710700f8 { - compatible = "mscc,ocelot-sgpio"; - #address-cells = <1>; - #size-cells = <0>; - bus-frequency = <12500000>; - clocks = <&ocelot_clock>; - microchip,sgpio-port-ranges = <0 15>; - pinctrl-names = "default"; - pinctrl-0 = <&sgpio_pins>; - reg = <0x710700f8 0x100>; - - sgpio_in0: gpio@0 { - compatible = "microchip,sparx5-sgpio-bank"; - reg = <0>; - gpio-controller; - #gpio-cells = <3>; - ngpios = <64>; - }; - - sgpio_out1: gpio@1 { - compatible = "microchip,sparx5-sgpio-bank"; - reg = <1>; - gpio-controller; - #gpio-cells = <3>; - ngpios = <64>; - }; - }; - }; - }; - -... - +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/mscc,ocelot.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Ocelot Externally-Controlled Ethernet Switch + +maintainers: + - Colin Foster + +description: | + The Ocelot ethernet switch family contains chips that have an internal CPU + (VSC7513, VSC7514) and chips that don't (VSC7511, VSC7512). All switches have + the option to be controlled externally via external interfaces like SPI or + PCIe. + + The switch family is a multi-port networking switch that supports many + interfaces. Additionally, the device can perform pin control, MDIO buses, and + external GPIO expanders. + +properties: + compatible: + enum: + - mscc,vsc7512 + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + spi-max-frequency: + maxItems: 1 + +patternProperties: + "^pinctrl@[0-9a-f]+$": + type: object + $ref: /schemas/pinctrl/mscc,ocelot-pinctrl.yaml + + "^gpio@[0-9a-f]+$": + type: object + $ref: /schemas/pinctrl/microchip,sparx5-sgpio.yaml + properties: + compatible: + enum: + - mscc,ocelot-sgpio + + "^mdio@[0-9a-f]+$": + type: object + $ref: /schemas/net/mscc,miim.yaml + properties: + compatible: + enum: + - mscc,ocelot-miim + + "^ethernet-switch@[0-9a-f]+$": + type: object + $ref: /schemas/net/mscc,vsc7514-switch.yaml + unevaluatedProperties: false + properties: + compatible: + enum: + - mscc,vsc7512-switch + +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' + +additionalProperties: false + +examples: + - | + ocelot_clock: ocelot-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <125000000>; + }; + + spi { + #address-cells = <1>; + #size-cells = <0>; + + soc@0 { + compatible = "mscc,vsc7512"; + spi-max-frequency = <2500000>; + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + + mdio@7107009c { + compatible = "mscc,ocelot-miim"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x7107009c 0x24>; + + sw_phy0: ethernet-phy@0 { + reg = <0x0>; + }; + }; + + mdio@710700c0 { + compatible = "mscc,ocelot-miim"; + pinctrl-names = "default"; + pinctrl-0 = <&miim1_pins>; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x710700c0 0x24>; + + sw_phy4: ethernet-phy@4 { + reg = <0x4>; + }; + }; + + gpio: pinctrl@71070034 { + compatible = "mscc,ocelot-pinctrl"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&gpio 0 0 22>; + reg = <0x71070034 0x6c>; + + sgpio_pins: sgpio-pins { + pins = "GPIO_0", "GPIO_1", "GPIO_2", "GPIO_3"; + function = "sg0"; + }; + + miim1_pins: miim1-pins { + pins = "GPIO_14", "GPIO_15"; + function = "miim"; + }; + }; + + gpio@710700f8 { + compatible = "mscc,ocelot-sgpio"; + #address-cells = <1>; + #size-cells = <0>; + bus-frequency = <12500000>; + clocks = <&ocelot_clock>; + microchip,sgpio-port-ranges = <0 15>; + pinctrl-names = "default"; + pinctrl-0 = <&sgpio_pins>; + reg = <0x710700f8 0x100>; + + sgpio_in0: gpio@0 { + compatible = "microchip,sparx5-sgpio-bank"; + reg = <0>; + gpio-controller; + #gpio-cells = <3>; + ngpios = <64>; + }; + + sgpio_out1: gpio@1 { + compatible = "microchip,sparx5-sgpio-bank"; + reg = <1>; + gpio-controller; + #gpio-cells = <3>; + ngpios = <64>; + }; + }; + }; + }; + +... + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/richtek,rt5033.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/richtek,rt5033.yaml index cebf8dd89..386b1a501 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/richtek,rt5033.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/richtek,rt5033.yaml @@ -1,138 +1,138 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/richtek,rt5033.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Richtek RT5033 Power Management Integrated Circuit - -maintainers: - - Jakob Hauser - -description: - RT5033 is a multifunction device which includes battery charger, fuel gauge, - flash LED current source, LDO and synchronous Buck converter for portable - applications. It is interfaced to host controller using I2C interface. The - battery fuel gauge uses a separate I2C bus. - -properties: - compatible: - const: richtek,rt5033 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - regulators: - description: - The regulators of RT5033 have to be instantiated under a sub-node named - "regulators". For SAFE_LDO voltage there is only one value of 4.9 V. LDO - voltage ranges from 1.2 V to 3.0 V in 0.1 V steps. BUCK voltage ranges - from 1.0 V to 3.0 V in 0.1 V steps. - type: object - patternProperties: - "^(SAFE_LDO|LDO|BUCK)$": - type: object - $ref: /schemas/regulator/regulator.yaml# - unevaluatedProperties: false - additionalProperties: false - - charger: - type: object - $ref: /schemas/power/supply/richtek,rt5033-charger.yaml# - -required: - - compatible - - reg - - interrupts - -additionalProperties: false - -examples: - - | - #include - - battery: battery { - compatible = "simple-battery"; - precharge-current-microamp = <450000>; - constant-charge-current-max-microamp = <1000000>; - charge-term-current-microamp = <150000>; - precharge-upper-limit-microvolt = <3500000>; - constant-charge-voltage-max-microvolt = <4350000>; - }; - - extcon { - usb_con: connector { - compatible = "usb-b-connector"; - label = "micro-USB"; - type = "micro"; - }; - }; - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - i2c@0 { - #address-cells = <1>; - #size-cells = <0>; - reg = <0>; - - fuel-gauge@35 { - compatible = "richtek,rt5033-battery"; - reg = <0x35>; - - interrupt-parent = <&msmgpio>; - interrupts = <121 IRQ_TYPE_EDGE_FALLING>; - - pinctrl-names = "default"; - pinctrl-0 = <&fg_alert_default>; - - power-supplies = <&rt5033_charger>; - }; - }; - - i2c@1 { - #address-cells = <1>; - #size-cells = <0>; - reg = <1>; - - pmic@34 { - compatible = "richtek,rt5033"; - reg = <0x34>; - - interrupt-parent = <&msmgpio>; - interrupts = <62 IRQ_TYPE_EDGE_FALLING>; - - pinctrl-names = "default"; - pinctrl-0 = <&pmic_int_default>; - - regulators { - safe_ldo_reg: SAFE_LDO { - regulator-name = "SAFE_LDO"; - regulator-min-microvolt = <4900000>; - regulator-max-microvolt = <4900000>; - regulator-always-on; - }; - ldo_reg: LDO { - regulator-name = "LDO"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - }; - buck_reg: BUCK { - regulator-name = "BUCK"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - }; - }; - - rt5033_charger: charger { - compatible = "richtek,rt5033-charger"; - monitored-battery = <&battery>; - richtek,usb-connector = <&usb_con>; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/richtek,rt5033.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Richtek RT5033 Power Management Integrated Circuit + +maintainers: + - Jakob Hauser + +description: + RT5033 is a multifunction device which includes battery charger, fuel gauge, + flash LED current source, LDO and synchronous Buck converter for portable + applications. It is interfaced to host controller using I2C interface. The + battery fuel gauge uses a separate I2C bus. + +properties: + compatible: + const: richtek,rt5033 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + regulators: + description: + The regulators of RT5033 have to be instantiated under a sub-node named + "regulators". For SAFE_LDO voltage there is only one value of 4.9 V. LDO + voltage ranges from 1.2 V to 3.0 V in 0.1 V steps. BUCK voltage ranges + from 1.0 V to 3.0 V in 0.1 V steps. + type: object + patternProperties: + "^(SAFE_LDO|LDO|BUCK)$": + type: object + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + additionalProperties: false + + charger: + type: object + $ref: /schemas/power/supply/richtek,rt5033-charger.yaml# + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + + battery: battery { + compatible = "simple-battery"; + precharge-current-microamp = <450000>; + constant-charge-current-max-microamp = <1000000>; + charge-term-current-microamp = <150000>; + precharge-upper-limit-microvolt = <3500000>; + constant-charge-voltage-max-microvolt = <4350000>; + }; + + extcon { + usb_con: connector { + compatible = "usb-b-connector"; + label = "micro-USB"; + type = "micro"; + }; + }; + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + fuel-gauge@35 { + compatible = "richtek,rt5033-battery"; + reg = <0x35>; + + interrupt-parent = <&msmgpio>; + interrupts = <121 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-names = "default"; + pinctrl-0 = <&fg_alert_default>; + + power-supplies = <&rt5033_charger>; + }; + }; + + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + pmic@34 { + compatible = "richtek,rt5033"; + reg = <0x34>; + + interrupt-parent = <&msmgpio>; + interrupts = <62 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-names = "default"; + pinctrl-0 = <&pmic_int_default>; + + regulators { + safe_ldo_reg: SAFE_LDO { + regulator-name = "SAFE_LDO"; + regulator-min-microvolt = <4900000>; + regulator-max-microvolt = <4900000>; + regulator-always-on; + }; + ldo_reg: LDO { + regulator-name = "LDO"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + }; + buck_reg: BUCK { + regulator-name = "BUCK"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + }; + + rt5033_charger: charger { + compatible = "richtek,rt5033-charger"; + monitored-battery = <&battery>; + richtek,usb-connector = <&usb_con>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/rohm,bd9571mwv.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/rohm,bd9571mwv.yaml index 518d392ea..534cf03f3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/rohm,bd9571mwv.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/rohm,bd9571mwv.yaml @@ -1,127 +1,127 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/rohm,bd9571mwv.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ROHM BD9571MWV/BD9574MWF Power Management Integrated Circuit (PMIC) - -maintainers: - - Marek Vasut - -properties: - compatible: - enum: - - rohm,bd9571mwv - - rohm,bd9574mwf - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - interrupt-controller: true - - '#interrupt-cells': - const: 2 - - gpio-controller: true - - '#gpio-cells': - const: 2 - - rohm,ddr-backup-power: - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0x0 - maximum: 0xf - description: | - Value to use for DDR-Backup Power (default 0). - This is a bitmask that specifies which DDR power rails need to be kept - powered when backup mode is entered, for system suspend: - - bit 0: DDR0 - - bit 1: DDR1 - - bit 2: DDR0C - - bit 3: DDR1C - These bits match the KEEPON_DDR* bits in the documentation for the "BKUP - Mode Cnt" register. - - rohm,rstbmode-level: - $ref: /schemas/types.yaml#/definitions/flag - description: - The RSTB signal is configured for level mode, to accommodate a toggle - power switch (the RSTBMODE pin is strapped low). - - rohm,rstbmode-pulse: - $ref: /schemas/types.yaml#/definitions/flag - description: - The RSTB signal is configured for pulse mode, to accommodate a momentary - power switch (the RSTBMODE pin is strapped high). - - regulators: - type: object - description: - List of child nodes that specify the regulator initialization data. - Child nodes must be named after their hardware counterparts. - - patternProperties: - "^(vd09|vd18|vd25|vd33|dvfs)$": - type: object - $ref: /schemas/regulator/regulator.yaml# - - properties: - regulator-name: - pattern: "^(vd09|vd18|vd25|vd33|dvfs)$" - - unevaluatedProperties: false - - additionalProperties: false - -additionalProperties: false - -required: - - compatible - - reg - - interrupts - - interrupt-controller - - '#interrupt-cells' - - gpio-controller - - '#gpio-cells' - -oneOf: - - required: - - rohm,rstbmode-level - - required: - - rohm,rstbmode-pulse - -examples: - - | - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - pmic: pmic@30 { - compatible = "rohm,bd9571mwv"; - reg = <0x30>; - interrupt-parent = <&gpio2>; - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; - interrupt-controller; - #interrupt-cells = <2>; - gpio-controller; - #gpio-cells = <2>; - rohm,ddr-backup-power = <0xf>; - rohm,rstbmode-pulse; - - regulators { - dvfs: dvfs { - regulator-name = "dvfs"; - regulator-min-microvolt = <750000>; - regulator-max-microvolt = <1030000>; - regulator-boot-on; - regulator-always-on; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/rohm,bd9571mwv.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BD9571MWV/BD9574MWF Power Management Integrated Circuit (PMIC) + +maintainers: + - Marek Vasut + +properties: + compatible: + enum: + - rohm,bd9571mwv + - rohm,bd9574mwf + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + + gpio-controller: true + + '#gpio-cells': + const: 2 + + rohm,ddr-backup-power: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0x0 + maximum: 0xf + description: | + Value to use for DDR-Backup Power (default 0). + This is a bitmask that specifies which DDR power rails need to be kept + powered when backup mode is entered, for system suspend: + - bit 0: DDR0 + - bit 1: DDR1 + - bit 2: DDR0C + - bit 3: DDR1C + These bits match the KEEPON_DDR* bits in the documentation for the "BKUP + Mode Cnt" register. + + rohm,rstbmode-level: + $ref: /schemas/types.yaml#/definitions/flag + description: + The RSTB signal is configured for level mode, to accommodate a toggle + power switch (the RSTBMODE pin is strapped low). + + rohm,rstbmode-pulse: + $ref: /schemas/types.yaml#/definitions/flag + description: + The RSTB signal is configured for pulse mode, to accommodate a momentary + power switch (the RSTBMODE pin is strapped high). + + regulators: + type: object + description: + List of child nodes that specify the regulator initialization data. + Child nodes must be named after their hardware counterparts. + + patternProperties: + "^(vd09|vd18|vd25|vd33|dvfs)$": + type: object + $ref: /schemas/regulator/regulator.yaml# + + properties: + regulator-name: + pattern: "^(vd09|vd18|vd25|vd33|dvfs)$" + + unevaluatedProperties: false + + additionalProperties: false + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - '#interrupt-cells' + - gpio-controller + - '#gpio-cells' + +oneOf: + - required: + - rohm,rstbmode-level + - required: + - rohm,rstbmode-pulse + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic: pmic@30 { + compatible = "rohm,bd9571mwv"; + reg = <0x30>; + interrupt-parent = <&gpio2>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-controller; + #gpio-cells = <2>; + rohm,ddr-backup-power = <0xf>; + rohm,rstbmode-pulse; + + regulators { + dvfs: dvfs { + regulator-name = "dvfs"; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <1030000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/rohm,bd9576-pmic.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/rohm,bd9576-pmic.yaml index 424a3a964..70fd9b5e4 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/rohm,bd9576-pmic.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/rohm,bd9576-pmic.yaml @@ -1,123 +1,123 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/rohm,bd9576-pmic.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ROHM BD9576MUF and BD9573MUF Power Management Integrated Circuit - -maintainers: - - Matti Vaittinen - -description: | - BD9576MUF and BD9573MUF are power management ICs primarily intended for - powering the R-Car series processors. - The IC provides 6 power outputs with configurable sequencing and safety - monitoring. A watchdog logic with slow ping/windowed modes is also included. - -properties: - compatible: - enum: - - rohm,bd9576 - - rohm,bd9573 - - reg: - description: - I2C slave address. - maxItems: 1 - - interrupts: - maxItems: 1 - - rohm,vout1-en-low: - description: - BD9576 and BD9573 VOUT1 regulator enable state can be individually - controlled by a GPIO. This is dictated by state of vout1-en pin during - the PMIC startup. If vout1-en is LOW during PMIC startup then the VOUT1 - enable state is controlled via this pin. Set this property if vout1-en - is wired to be down at PMIC start-up. - type: boolean - - rohm,vout1-en-gpios: - description: - GPIO specifier to specify the GPIO connected to vout1-en for vout1 ON/OFF - state control. - maxItems: 1 - - rohm,ddr-sel-low: - description: - The BD9576 and BD9573 output voltage for DDR can be selected by setting - the ddr-sel pin low or high. Set this property if ddr-sel is grounded. - type: boolean - - rohm,watchdog-enable-gpios: - description: The GPIO line used to enable the watchdog. - maxItems: 1 - - rohm,watchdog-ping-gpios: - description: The GPIO line used to ping the watchdog. - maxItems: 1 - - rohm,hw-timeout-ms: - maxItems: 2 - description: - Watchdog timeout in milliseconds. If single value is given it is - the maximum timeout. Eg. if pinging watchdog is not done within this time - limit the watchdog will be triggered. If two values are given watchdog - is configured in "window mode". Then first value is limit for short-ping - Eg. if watchdog is pinged sooner than that the watchdog will trigger. - When two values is given the second value is the maximum timeout. - # (HW) minimum for short timeout is 2ms, maximum 220 ms. - # (HW) minimum for max timeout is 4ms, maximum 4416 ms. - - regulators: - $ref: /schemas/regulator/rohm,bd9576-regulator.yaml - description: - List of child nodes that specify the regulators. - -required: - - compatible - - reg - - regulators - -additionalProperties: false - -examples: - - | - #include - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - pmic: pmic@30 { - compatible = "rohm,bd9576"; - reg = <0x30>; - rohm,vout1-en-low; - rohm,vout1-en-gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>; - rohm,ddr-sel-low; - rohm,watchdog-enable-gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>; - rohm,watchdog-ping-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>; - rohm,hw-timeout-ms = <150>, <2300>; - - regulators { - boost1: regulator-vd50 { - regulator-name = "VD50"; - }; - buck1: regulator-vd18 { - regulator-name = "VD18"; - }; - buck2: regulator-vdddr { - regulator-name = "VDDDR"; - }; - buck3: regulator-vd10 { - regulator-name = "VD10"; - }; - ldo: regulator-voutl1 { - regulator-name = "VOUTL1"; - }; - sw: regulator-vouts1 { - regulator-name = "VOUTS1"; - }; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/rohm,bd9576-pmic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BD9576MUF and BD9573MUF Power Management Integrated Circuit + +maintainers: + - Matti Vaittinen + +description: | + BD9576MUF and BD9573MUF are power management ICs primarily intended for + powering the R-Car series processors. + The IC provides 6 power outputs with configurable sequencing and safety + monitoring. A watchdog logic with slow ping/windowed modes is also included. + +properties: + compatible: + enum: + - rohm,bd9576 + - rohm,bd9573 + + reg: + description: + I2C slave address. + maxItems: 1 + + interrupts: + maxItems: 1 + + rohm,vout1-en-low: + description: + BD9576 and BD9573 VOUT1 regulator enable state can be individually + controlled by a GPIO. This is dictated by state of vout1-en pin during + the PMIC startup. If vout1-en is LOW during PMIC startup then the VOUT1 + enable state is controlled via this pin. Set this property if vout1-en + is wired to be down at PMIC start-up. + type: boolean + + rohm,vout1-en-gpios: + description: + GPIO specifier to specify the GPIO connected to vout1-en for vout1 ON/OFF + state control. + maxItems: 1 + + rohm,ddr-sel-low: + description: + The BD9576 and BD9573 output voltage for DDR can be selected by setting + the ddr-sel pin low or high. Set this property if ddr-sel is grounded. + type: boolean + + rohm,watchdog-enable-gpios: + description: The GPIO line used to enable the watchdog. + maxItems: 1 + + rohm,watchdog-ping-gpios: + description: The GPIO line used to ping the watchdog. + maxItems: 1 + + rohm,hw-timeout-ms: + maxItems: 2 + description: + Watchdog timeout in milliseconds. If single value is given it is + the maximum timeout. Eg. if pinging watchdog is not done within this time + limit the watchdog will be triggered. If two values are given watchdog + is configured in "window mode". Then first value is limit for short-ping + Eg. if watchdog is pinged sooner than that the watchdog will trigger. + When two values is given the second value is the maximum timeout. + # (HW) minimum for short timeout is 2ms, maximum 220 ms. + # (HW) minimum for max timeout is 4ms, maximum 4416 ms. + + regulators: + $ref: /schemas/regulator/rohm,bd9576-regulator.yaml + description: + List of child nodes that specify the regulators. + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + pmic: pmic@30 { + compatible = "rohm,bd9576"; + reg = <0x30>; + rohm,vout1-en-low; + rohm,vout1-en-gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>; + rohm,ddr-sel-low; + rohm,watchdog-enable-gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>; + rohm,watchdog-ping-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>; + rohm,hw-timeout-ms = <150>, <2300>; + + regulators { + boost1: regulator-vd50 { + regulator-name = "VD50"; + }; + buck1: regulator-vd18 { + regulator-name = "VD18"; + }; + buck2: regulator-vdddr { + regulator-name = "VDDDR"; + }; + buck3: regulator-vd10 { + regulator-name = "VD10"; + }; + ldo: regulator-voutl1 { + regulator-name = "VOUTL1"; + }; + sw: regulator-vouts1 { + regulator-name = "VOUTS1"; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/st,stm32-timers.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/st,stm32-timers.yaml index bb1b4340d..b0e438ff4 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/st,stm32-timers.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/st,stm32-timers.yaml @@ -1,180 +1,180 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/st,stm32-timers.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: STMicroelectronics STM32 Timers - -description: | - This hardware block provides 3 types of timer along with PWM functionality: - - advanced-control timers consist of a 16-bit auto-reload counter driven - by a programmable prescaler, break input feature, PWM outputs and - complementary PWM outputs channels. - - general-purpose timers consist of a 16-bit or 32-bit auto-reload counter - driven by a programmable prescaler and PWM outputs. - - basic timers consist of a 16-bit auto-reload counter driven by a - programmable prescaler. - -maintainers: - - Fabrice Gasnier - -properties: - compatible: - const: st,stm32-timers - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - clock-names: - items: - - const: int - - resets: - maxItems: 1 - - dmas: - minItems: 1 - maxItems: 7 - - dma-names: - items: - enum: [ ch1, ch2, ch3, ch4, up, trig, com ] - minItems: 1 - maxItems: 7 - - interrupts: - oneOf: - - maxItems: 1 - - maxItems: 4 - - interrupt-names: - oneOf: - - items: - - const: global - - items: - - const: brk - - const: up - - const: trg-com - - const: cc - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - - access-controllers: - minItems: 1 - maxItems: 2 - - pwm: - type: object - additionalProperties: false - - properties: - compatible: - const: st,stm32-pwm - - "#pwm-cells": - const: 3 - - st,breakinput: - description: - One or two to describe break input - configurations. - $ref: /schemas/types.yaml#/definitions/uint32-matrix - items: - items: - - description: | - "index" indicates on which break input (0 or 1) the - configuration should be applied. - enum: [0, 1] - - description: | - "level" gives the active level (0=low or 1=high) of the - input signal for this configuration - enum: [0, 1] - - description: | - "filter" gives the filtering value (up to 15) to be applied. - maximum: 15 - minItems: 1 - maxItems: 2 - - required: - - "#pwm-cells" - - compatible - - counter: - type: object - additionalProperties: false - - properties: - compatible: - const: st,stm32-timer-counter - - required: - - compatible - -patternProperties: - "^timer@[0-9]+$": - type: object - additionalProperties: false - - properties: - compatible: - enum: - - st,stm32-timer-trigger - - st,stm32h7-timer-trigger - - reg: - description: Identify trigger hardware block. - items: - minimum: 0 - maximum: 16 - - required: - - compatible - - reg - -required: - - compatible - - reg - - clocks - - clock-names - -additionalProperties: false - -examples: - - | - #include - timers2: timer@40000000 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "st,stm32-timers"; - reg = <0x40000000 0x400>; - clocks = <&rcc TIM2_K>; - clock-names = "int"; - dmas = <&dmamux1 18 0x400 0x1>, - <&dmamux1 19 0x400 0x1>, - <&dmamux1 20 0x400 0x1>, - <&dmamux1 21 0x400 0x1>, - <&dmamux1 22 0x400 0x1>; - dma-names = "ch1", "ch2", "ch3", "ch4", "up"; - pwm { - compatible = "st,stm32-pwm"; - #pwm-cells = <3>; - st,breakinput = <0 1 5>; - }; - timer@1 { - compatible = "st,stm32-timer-trigger"; - reg = <1>; - }; - counter { - compatible = "st,stm32-timer-counter"; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/st,stm32-timers.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STM32 Timers + +description: | + This hardware block provides 3 types of timer along with PWM functionality: + - advanced-control timers consist of a 16-bit auto-reload counter driven + by a programmable prescaler, break input feature, PWM outputs and + complementary PWM outputs channels. + - general-purpose timers consist of a 16-bit or 32-bit auto-reload counter + driven by a programmable prescaler and PWM outputs. + - basic timers consist of a 16-bit auto-reload counter driven by a + programmable prescaler. + +maintainers: + - Fabrice Gasnier + +properties: + compatible: + const: st,stm32-timers + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: int + + resets: + maxItems: 1 + + dmas: + minItems: 1 + maxItems: 7 + + dma-names: + items: + enum: [ ch1, ch2, ch3, ch4, up, trig, com ] + minItems: 1 + maxItems: 7 + + interrupts: + oneOf: + - maxItems: 1 + - maxItems: 4 + + interrupt-names: + oneOf: + - items: + - const: global + - items: + - const: brk + - const: up + - const: trg-com + - const: cc + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + access-controllers: + minItems: 1 + maxItems: 2 + + pwm: + type: object + additionalProperties: false + + properties: + compatible: + const: st,stm32-pwm + + "#pwm-cells": + const: 3 + + st,breakinput: + description: + One or two to describe break input + configurations. + $ref: /schemas/types.yaml#/definitions/uint32-matrix + items: + items: + - description: | + "index" indicates on which break input (0 or 1) the + configuration should be applied. + enum: [0, 1] + - description: | + "level" gives the active level (0=low or 1=high) of the + input signal for this configuration + enum: [0, 1] + - description: | + "filter" gives the filtering value (up to 15) to be applied. + maximum: 15 + minItems: 1 + maxItems: 2 + + required: + - "#pwm-cells" + - compatible + + counter: + type: object + additionalProperties: false + + properties: + compatible: + const: st,stm32-timer-counter + + required: + - compatible + +patternProperties: + "^timer@[0-9]+$": + type: object + additionalProperties: false + + properties: + compatible: + enum: + - st,stm32-timer-trigger + - st,stm32h7-timer-trigger + + reg: + description: Identify trigger hardware block. + items: + minimum: 0 + maximum: 16 + + required: + - compatible + - reg + +required: + - compatible + - reg + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + timers2: timer@40000000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "st,stm32-timers"; + reg = <0x40000000 0x400>; + clocks = <&rcc TIM2_K>; + clock-names = "int"; + dmas = <&dmamux1 18 0x400 0x1>, + <&dmamux1 19 0x400 0x1>, + <&dmamux1 20 0x400 0x1>, + <&dmamux1 21 0x400 0x1>, + <&dmamux1 22 0x400 0x1>; + dma-names = "ch1", "ch2", "ch3", "ch4", "up"; + pwm { + compatible = "st,stm32-pwm"; + #pwm-cells = <3>; + st,breakinput = <0 1 5>; + }; + timer@1 { + compatible = "st,stm32-timer-trigger"; + reg = <1>; + }; + counter { + compatible = "st,stm32-timer-counter"; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/ti,tps65086.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/ti,tps65086.yaml index 46d76f775..a8eed9065 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/ti,tps65086.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mfd/ti,tps65086.yaml @@ -1,125 +1,125 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mfd/ti,tps65086.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: TPS65086 Power Management Integrated Circuit (PMIC) - -maintainers: - - Emil Renner Berthing - -properties: - compatible: - const: ti,tps65086 - - reg: - const: 0x5e - description: I2C slave address - - interrupts: - maxItems: 1 - - interrupt-controller: true - - '#interrupt-cells': - const: 2 - description: | - The first cell is the IRQ number. The second cell is the flags, - encoded as trigger masks from ../interrupt-controller/interrupts.txt. - - gpio-controller: true - - '#gpio-cells': - const: 2 - description: | - The first cell is the pin number and the second cell is used to specify - flags. See ../gpio/gpio.txt for more information. - - regulators: - type: object - additionalProperties: false - description: | - List of child nodes that specify the regulator initialization data. - Child nodes must be named after their hardware counterparts: - buck[1-6], ldoa[1-3], swa1, swb[1-2], and vtt. - Each child node is defined using the standard binding for regulators and - the optional regulator properties defined below. - - patternProperties: - "^buck[1-6]$": - type: object - $ref: /schemas/regulator/regulator.yaml - - properties: - regulator-name: true - regulator-boot-on: true - regulator-always-on: true - regulator-min-microvolt: true - regulator-max-microvolt: true - ti,regulator-step-size-25mv: - type: boolean - description: | - Set this if the regulator is factory set with a 25mv step voltage - mapping. - ti,regulator-decay: - type: boolean - description: | - Set this if the output needs to decay, default is for the output - to slew down. - - additionalProperties: false - - "^(ldoa[1-3]|swa1|swb[1-2]|vtt)$": - type: object - $ref: /schemas/regulator/regulator.yaml - - properties: - regulator-name: true - regulator-boot-on: true - regulator-always-on: true - regulator-min-microvolt: true - regulator-max-microvolt: true - - additionalProperties: false - -additionalProperties: false - -required: - - compatible - - reg - - gpio-controller - - '#gpio-cells' - - regulators - -examples: - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - pmic: pmic@5e { - compatible = "ti,tps65086"; - reg = <0x5e>; - interrupt-parent = <&gpio1>; - interrupts = <28 IRQ_TYPE_LEVEL_LOW>; - interrupt-controller; - #interrupt-cells = <2>; - gpio-controller; - #gpio-cells = <2>; - - regulators { - buck1 { - regulator-name = "vcc1"; - regulator-min-microvolt = <1600000>; - regulator-max-microvolt = <1600000>; - regulator-boot-on; - ti,regulator-decay; - ti,regulator-step-size-25mv; - }; - }; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/ti,tps65086.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TPS65086 Power Management Integrated Circuit (PMIC) + +maintainers: + - Emil Renner Berthing + +properties: + compatible: + const: ti,tps65086 + + reg: + const: 0x5e + description: I2C slave address + + interrupts: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + description: | + The first cell is the IRQ number. The second cell is the flags, + encoded as trigger masks from ../interrupt-controller/interrupts.txt. + + gpio-controller: true + + '#gpio-cells': + const: 2 + description: | + The first cell is the pin number and the second cell is used to specify + flags. See ../gpio/gpio.txt for more information. + + regulators: + type: object + additionalProperties: false + description: | + List of child nodes that specify the regulator initialization data. + Child nodes must be named after their hardware counterparts: + buck[1-6], ldoa[1-3], swa1, swb[1-2], and vtt. + Each child node is defined using the standard binding for regulators and + the optional regulator properties defined below. + + patternProperties: + "^buck[1-6]$": + type: object + $ref: /schemas/regulator/regulator.yaml + + properties: + regulator-name: true + regulator-boot-on: true + regulator-always-on: true + regulator-min-microvolt: true + regulator-max-microvolt: true + ti,regulator-step-size-25mv: + type: boolean + description: | + Set this if the regulator is factory set with a 25mv step voltage + mapping. + ti,regulator-decay: + type: boolean + description: | + Set this if the output needs to decay, default is for the output + to slew down. + + additionalProperties: false + + "^(ldoa[1-3]|swa1|swb[1-2]|vtt)$": + type: object + $ref: /schemas/regulator/regulator.yaml + + properties: + regulator-name: true + regulator-boot-on: true + regulator-always-on: true + regulator-min-microvolt: true + regulator-max-microvolt: true + + additionalProperties: false + +additionalProperties: false + +required: + - compatible + - reg + - gpio-controller + - '#gpio-cells' + - regulators + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic: pmic@5e { + compatible = "ti,tps65086"; + reg = <0x5e>; + interrupt-parent = <&gpio1>; + interrupts = <28 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-controller; + #gpio-cells = <2>; + + regulators { + buck1 { + regulator-name = "vcc1"; + regulator-min-microvolt = <1600000>; + regulator-max-microvolt = <1600000>; + regulator-boot-on; + ti,regulator-decay; + ti,regulator-step-size-25mv; + }; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mips/brcm/soc.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mips/brcm/soc.txt index 721a7509d..3a66d3c48 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mips/brcm/soc.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mips/brcm/soc.txt @@ -1,166 +1,166 @@ -* Broadcom cable/DSL/settop platforms - -Required properties: - -- compatible: "brcm,bcm3368", "brcm,bcm3384", "brcm,bcm33843" - "brcm,bcm3384-viper", "brcm,bcm33843-viper" - "brcm,bcm6328", "brcm,bcm6358", "brcm,bcm6362", "brcm,bcm6368", - "brcm,bcm63168", "brcm,bcm63268", - "brcm,bcm7125", "brcm,bcm7346", "brcm,bcm7358", "brcm,bcm7360", - "brcm,bcm7362", "brcm,bcm7420", "brcm,bcm7425" - -The experimental -viper variants are for running Linux on the 3384's -BMIPS4355 cable modem CPU instead of the BMIPS5000 application processor. - -Power management ----------------- - -For power management (particularly, S2/S3/S5 system suspend), the following SoC -components are needed: - -= Always-On control block (AON CTRL) - -This hardware provides control registers for the "always-on" (even in low-power -modes) hardware, such as the Power Management State Machine (PMSM). - -Required properties: -- compatible : should be one of - "brcm,bcm7425-aon-ctrl" - "brcm,bcm7429-aon-ctrl" - "brcm,bcm7435-aon-ctrl" and - "brcm,brcmstb-aon-ctrl" -- reg : the register start and length for the AON CTRL block - -Example: - -syscon@410000 { - compatible = "brcm,bcm7425-aon-ctrl", "brcm,brcmstb-aon-ctrl"; - reg = <0x410000 0x400>; -}; - -= Memory controllers - -A Broadcom STB SoC typically has a number of independent memory controllers, -each of which may have several associated hardware blocks, which are versioned -independently (control registers, DDR PHYs, etc.). One might consider -describing these controllers as a parent "memory controllers" block, which -contains N sub-nodes (one for each controller in the system), each of which is -associated with a number of hardware register resources (e.g., its PHY. - -== MEMC (MEMory Controller) - -Represents a single memory controller instance. - -Required properties: -- compatible : should contain "brcm,brcmstb-memc" and "simple-bus" -- ranges : should contain the child address in the parent address - space, must be 0 here, and the register start and length of - the entire memory controller (including all sub nodes: DDR PHY, - arbiter, etc.) -- #address-cells : must be 1 -- #size-cells : must be 1 - -Example: - - memory-controller@0 { - compatible = "brcm,brcmstb-memc", "simple-bus"; - ranges = <0x0 0x0 0xa000>; - #address-cells = <1>; - #size-cells = <1>; - - memc-arb@1000 { - ... - }; - - memc-ddr@2000 { - ... - }; - - ddr-phy@6000 { - ... - }; - }; - -Should contain subnodes for any of the following relevant hardware resources: - -== DDR PHY control - -Control registers for this memory controller's DDR PHY. - -Required properties: -- compatible : should contain one of these - "brcm,brcmstb-ddr-phy-v64.5" - "brcm,brcmstb-ddr-phy" - -- reg : the DDR PHY register range and length - -Example: - - ddr-phy@6000 { - compatible = "brcm,brcmstb-ddr-phy-v64.5"; - reg = <0x6000 0xc8>; - }; - -== DDR memory controller sequencer - -Control registers for this memory controller's DDR memory sequencer - -Required properties: -- compatible : should contain one of these - "brcm,bcm7425-memc-ddr" - "brcm,bcm7429-memc-ddr" - "brcm,bcm7435-memc-ddr" and - "brcm,brcmstb-memc-ddr" - -- reg : the DDR sequencer register range and length - -Example: - - memc-ddr@2000 { - compatible = "brcm,bcm7425-memc-ddr", "brcm,brcmstb-memc-ddr"; - reg = <0x2000 0x300>; - }; - -== MEMC Arbiter - -The memory controller arbiter is responsible for memory clients allocation -(bandwidth, priorities etc.) and needs to have its contents restored during -deep sleep states (S3). - -Required properties: - -- compatible : should contain one of these - "brcm,brcmstb-memc-arb-v10.0.0.0" - "brcm,brcmstb-memc-arb" - -- reg : the DDR Arbiter register range and length - -Example: - - memc-arb@1000 { - compatible = "brcm,brcmstb-memc-arb-v10.0.0.0"; - reg = <0x1000 0x248>; - }; - -== Timers - -The Broadcom STB chips contain a timer block with several general purpose -timers that can be used. - -Required properties: - -- compatible : should contain one of: - "brcm,bcm7425-timers" - "brcm,bcm7429-timers" - "brcm,bcm7435-timers" and - "brcm,brcmstb-timers" -- reg : the timers register range -- interrupts : the interrupt line for this timer block - -Example: - - timers: timer@4067c0 { - compatible = "brcm,bcm7425-timers", "brcm,brcmstb-timers"; - reg = <0x4067c0 0x40>; - interrupts = <&periph_intc 19>; - }; +* Broadcom cable/DSL/settop platforms + +Required properties: + +- compatible: "brcm,bcm3368", "brcm,bcm3384", "brcm,bcm33843" + "brcm,bcm3384-viper", "brcm,bcm33843-viper" + "brcm,bcm6328", "brcm,bcm6358", "brcm,bcm6362", "brcm,bcm6368", + "brcm,bcm63168", "brcm,bcm63268", + "brcm,bcm7125", "brcm,bcm7346", "brcm,bcm7358", "brcm,bcm7360", + "brcm,bcm7362", "brcm,bcm7420", "brcm,bcm7425" + +The experimental -viper variants are for running Linux on the 3384's +BMIPS4355 cable modem CPU instead of the BMIPS5000 application processor. + +Power management +---------------- + +For power management (particularly, S2/S3/S5 system suspend), the following SoC +components are needed: + += Always-On control block (AON CTRL) + +This hardware provides control registers for the "always-on" (even in low-power +modes) hardware, such as the Power Management State Machine (PMSM). + +Required properties: +- compatible : should be one of + "brcm,bcm7425-aon-ctrl" + "brcm,bcm7429-aon-ctrl" + "brcm,bcm7435-aon-ctrl" and + "brcm,brcmstb-aon-ctrl" +- reg : the register start and length for the AON CTRL block + +Example: + +syscon@410000 { + compatible = "brcm,bcm7425-aon-ctrl", "brcm,brcmstb-aon-ctrl"; + reg = <0x410000 0x400>; +}; + += Memory controllers + +A Broadcom STB SoC typically has a number of independent memory controllers, +each of which may have several associated hardware blocks, which are versioned +independently (control registers, DDR PHYs, etc.). One might consider +describing these controllers as a parent "memory controllers" block, which +contains N sub-nodes (one for each controller in the system), each of which is +associated with a number of hardware register resources (e.g., its PHY. + +== MEMC (MEMory Controller) + +Represents a single memory controller instance. + +Required properties: +- compatible : should contain "brcm,brcmstb-memc" and "simple-bus" +- ranges : should contain the child address in the parent address + space, must be 0 here, and the register start and length of + the entire memory controller (including all sub nodes: DDR PHY, + arbiter, etc.) +- #address-cells : must be 1 +- #size-cells : must be 1 + +Example: + + memory-controller@0 { + compatible = "brcm,brcmstb-memc", "simple-bus"; + ranges = <0x0 0x0 0xa000>; + #address-cells = <1>; + #size-cells = <1>; + + memc-arb@1000 { + ... + }; + + memc-ddr@2000 { + ... + }; + + ddr-phy@6000 { + ... + }; + }; + +Should contain subnodes for any of the following relevant hardware resources: + +== DDR PHY control + +Control registers for this memory controller's DDR PHY. + +Required properties: +- compatible : should contain one of these + "brcm,brcmstb-ddr-phy-v64.5" + "brcm,brcmstb-ddr-phy" + +- reg : the DDR PHY register range and length + +Example: + + ddr-phy@6000 { + compatible = "brcm,brcmstb-ddr-phy-v64.5"; + reg = <0x6000 0xc8>; + }; + +== DDR memory controller sequencer + +Control registers for this memory controller's DDR memory sequencer + +Required properties: +- compatible : should contain one of these + "brcm,bcm7425-memc-ddr" + "brcm,bcm7429-memc-ddr" + "brcm,bcm7435-memc-ddr" and + "brcm,brcmstb-memc-ddr" + +- reg : the DDR sequencer register range and length + +Example: + + memc-ddr@2000 { + compatible = "brcm,bcm7425-memc-ddr", "brcm,brcmstb-memc-ddr"; + reg = <0x2000 0x300>; + }; + +== MEMC Arbiter + +The memory controller arbiter is responsible for memory clients allocation +(bandwidth, priorities etc.) and needs to have its contents restored during +deep sleep states (S3). + +Required properties: + +- compatible : should contain one of these + "brcm,brcmstb-memc-arb-v10.0.0.0" + "brcm,brcmstb-memc-arb" + +- reg : the DDR Arbiter register range and length + +Example: + + memc-arb@1000 { + compatible = "brcm,brcmstb-memc-arb-v10.0.0.0"; + reg = <0x1000 0x248>; + }; + +== Timers + +The Broadcom STB chips contain a timer block with several general purpose +timers that can be used. + +Required properties: + +- compatible : should contain one of: + "brcm,bcm7425-timers" + "brcm,bcm7429-timers" + "brcm,bcm7435-timers" and + "brcm,brcmstb-timers" +- reg : the timers register range +- interrupts : the interrupt line for this timer block + +Example: + + timers: timer@4067c0 { + compatible = "brcm,bcm7425-timers", "brcm,brcmstb-timers"; + reg = <0x4067c0 0x40>; + interrupts = <&periph_intc 19>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mips/cavium/bootbus.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mips/cavium/bootbus.txt index f4fc5275d..658147822 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mips/cavium/bootbus.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mips/cavium/bootbus.txt @@ -1,126 +1,126 @@ -* Boot Bus - -The Octeon Boot Bus is a configurable parallel bus with 8 chip -selects. Each chip select is independently configurable. - -Properties: -- compatible: "cavium,octeon-3860-bootbus" - - Compatibility with all cn3XXX, cn5XXX and cn6XXX SOCs. - -- reg: The base address of the Boot Bus' register bank. - -- #address-cells: Must be <2>. The first cell is the chip select - within the bootbus. The second cell is the offset from the chip select. - -- #size-cells: Must be <1>. - -- ranges: There must be one one triplet of (child-bus-address, - parent-bus-address, length) for each active chip select. If the - length element for any triplet is zero, the chip select is disabled, - making it inactive. - -The configuration parameters for each chip select are stored in child -nodes. - -Configuration Properties: -- compatible: "cavium,octeon-3860-bootbus-config" - -- cavium,cs-index: A single cell indicating the chip select that - corresponds to this configuration. - -- cavium,t-adr: A cell specifying the ADR timing (in nS). - -- cavium,t-ce: A cell specifying the CE timing (in nS). - -- cavium,t-oe: A cell specifying the OE timing (in nS). - -- cavium,t-we: A cell specifying the WE timing (in nS). - -- cavium,t-rd-hld: A cell specifying the RD_HLD timing (in nS). - -- cavium,t-wr-hld: A cell specifying the WR_HLD timing (in nS). - -- cavium,t-pause: A cell specifying the PAUSE timing (in nS). - -- cavium,t-wait: A cell specifying the WAIT timing (in nS). - -- cavium,t-page: A cell specifying the PAGE timing (in nS). - -- cavium,t-rd-dly: A cell specifying the RD_DLY timing (in nS). - -- cavium,pages: A cell specifying the PAGES parameter (0 = 8 bytes, 1 - = 2 bytes, 2 = 4 bytes, 3 = 8 bytes). - -- cavium,wait-mode: Optional. If present, wait mode (WAITM) is selected. - -- cavium,page-mode: Optional. If present, page mode (PAGEM) is selected. - -- cavium,bus-width: A cell specifying the WIDTH parameter (in bits) of - the bus for this chip select. - -- cavium,ale-mode: Optional. If present, ALE mode is selected. - -- cavium,sam-mode: Optional. If present, SAM mode is selected. - -- cavium,or-mode: Optional. If present, OR mode is selected. - -Example: - bootbus: bootbus@1180000000000 { - compatible = "cavium,octeon-3860-bootbus"; - reg = <0x11800 0x00000000 0x0 0x200>; - /* The chip select number and offset */ - #address-cells = <2>; - /* The size of the chip select region */ - #size-cells = <1>; - ranges = <0 0 0x0 0x1f400000 0xc00000>, - <1 0 0x10000 0x30000000 0>, - <2 0 0x10000 0x40000000 0>, - <3 0 0x10000 0x50000000 0>, - <4 0 0x0 0x1d020000 0x10000>, - <5 0 0x0 0x1d040000 0x10000>, - <6 0 0x0 0x1d050000 0x10000>, - <7 0 0x10000 0x90000000 0>; - - cavium,cs-config@0 { - compatible = "cavium,octeon-3860-bootbus-config"; - cavium,cs-index = <0>; - cavium,t-adr = <20>; - cavium,t-ce = <60>; - cavium,t-oe = <60>; - cavium,t-we = <45>; - cavium,t-rd-hld = <35>; - cavium,t-wr-hld = <45>; - cavium,t-pause = <0>; - cavium,t-wait = <0>; - cavium,t-page = <35>; - cavium,t-rd-dly = <0>; - - cavium,pages = <0>; - cavium,bus-width = <8>; - }; - . - . - . - cavium,cs-config@6 { - compatible = "cavium,octeon-3860-bootbus-config"; - cavium,cs-index = <6>; - cavium,t-adr = <5>; - cavium,t-ce = <300>; - cavium,t-oe = <270>; - cavium,t-we = <150>; - cavium,t-rd-hld = <100>; - cavium,t-wr-hld = <70>; - cavium,t-pause = <0>; - cavium,t-wait = <0>; - cavium,t-page = <320>; - cavium,t-rd-dly = <0>; - - cavium,pages = <0>; - cavium,wait-mode; - cavium,bus-width = <16>; - }; - . - . - . - }; +* Boot Bus + +The Octeon Boot Bus is a configurable parallel bus with 8 chip +selects. Each chip select is independently configurable. + +Properties: +- compatible: "cavium,octeon-3860-bootbus" + + Compatibility with all cn3XXX, cn5XXX and cn6XXX SOCs. + +- reg: The base address of the Boot Bus' register bank. + +- #address-cells: Must be <2>. The first cell is the chip select + within the bootbus. The second cell is the offset from the chip select. + +- #size-cells: Must be <1>. + +- ranges: There must be one one triplet of (child-bus-address, + parent-bus-address, length) for each active chip select. If the + length element for any triplet is zero, the chip select is disabled, + making it inactive. + +The configuration parameters for each chip select are stored in child +nodes. + +Configuration Properties: +- compatible: "cavium,octeon-3860-bootbus-config" + +- cavium,cs-index: A single cell indicating the chip select that + corresponds to this configuration. + +- cavium,t-adr: A cell specifying the ADR timing (in nS). + +- cavium,t-ce: A cell specifying the CE timing (in nS). + +- cavium,t-oe: A cell specifying the OE timing (in nS). + +- cavium,t-we: A cell specifying the WE timing (in nS). + +- cavium,t-rd-hld: A cell specifying the RD_HLD timing (in nS). + +- cavium,t-wr-hld: A cell specifying the WR_HLD timing (in nS). + +- cavium,t-pause: A cell specifying the PAUSE timing (in nS). + +- cavium,t-wait: A cell specifying the WAIT timing (in nS). + +- cavium,t-page: A cell specifying the PAGE timing (in nS). + +- cavium,t-rd-dly: A cell specifying the RD_DLY timing (in nS). + +- cavium,pages: A cell specifying the PAGES parameter (0 = 8 bytes, 1 + = 2 bytes, 2 = 4 bytes, 3 = 8 bytes). + +- cavium,wait-mode: Optional. If present, wait mode (WAITM) is selected. + +- cavium,page-mode: Optional. If present, page mode (PAGEM) is selected. + +- cavium,bus-width: A cell specifying the WIDTH parameter (in bits) of + the bus for this chip select. + +- cavium,ale-mode: Optional. If present, ALE mode is selected. + +- cavium,sam-mode: Optional. If present, SAM mode is selected. + +- cavium,or-mode: Optional. If present, OR mode is selected. + +Example: + bootbus: bootbus@1180000000000 { + compatible = "cavium,octeon-3860-bootbus"; + reg = <0x11800 0x00000000 0x0 0x200>; + /* The chip select number and offset */ + #address-cells = <2>; + /* The size of the chip select region */ + #size-cells = <1>; + ranges = <0 0 0x0 0x1f400000 0xc00000>, + <1 0 0x10000 0x30000000 0>, + <2 0 0x10000 0x40000000 0>, + <3 0 0x10000 0x50000000 0>, + <4 0 0x0 0x1d020000 0x10000>, + <5 0 0x0 0x1d040000 0x10000>, + <6 0 0x0 0x1d050000 0x10000>, + <7 0 0x10000 0x90000000 0>; + + cavium,cs-config@0 { + compatible = "cavium,octeon-3860-bootbus-config"; + cavium,cs-index = <0>; + cavium,t-adr = <20>; + cavium,t-ce = <60>; + cavium,t-oe = <60>; + cavium,t-we = <45>; + cavium,t-rd-hld = <35>; + cavium,t-wr-hld = <45>; + cavium,t-pause = <0>; + cavium,t-wait = <0>; + cavium,t-page = <35>; + cavium,t-rd-dly = <0>; + + cavium,pages = <0>; + cavium,bus-width = <8>; + }; + . + . + . + cavium,cs-config@6 { + compatible = "cavium,octeon-3860-bootbus-config"; + cavium,cs-index = <6>; + cavium,t-adr = <5>; + cavium,t-ce = <300>; + cavium,t-oe = <270>; + cavium,t-we = <150>; + cavium,t-rd-hld = <100>; + cavium,t-wr-hld = <70>; + cavium,t-pause = <0>; + cavium,t-wait = <0>; + cavium,t-page = <320>; + cavium,t-rd-dly = <0>; + + cavium,pages = <0>; + cavium,wait-mode; + cavium,bus-width = <16>; + }; + . + . + . + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml index 18b37bf59..0840a3d92 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml @@ -1,147 +1,147 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/misc/qcom,fastrpc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm FastRPC Driver - -maintainers: - - Srinivas Kandagatla - -description: | - The FastRPC implements an IPC (Inter-Processor Communication) - mechanism that allows for clients to transparently make remote method - invocations across DSP and APPS boundaries. This enables developers - to offload tasks to the DSP and free up the application processor for - other tasks. - -properties: - compatible: - const: qcom,fastrpc - - label: - enum: - - adsp - - mdsp - - sdsp - - cdsp - - cdsp1 - - memory-region: - maxItems: 1 - description: - Phandle to a node describing memory to be used for remote heap CMA. - - qcom,glink-channels: - description: - A list of channels tied to this function, used for matching - the function to a set of virtual channels. - $ref: /schemas/types.yaml#/definitions/string-array - items: - - const: fastrpcglink-apps-dsp - - qcom,non-secure-domain: - description: - Used to mark the current domain as non-secure. - type: boolean - - qcom,smd-channels: - description: - Channel name used for the RPM communication - $ref: /schemas/types.yaml#/definitions/string-array - items: - - const: fastrpcsmd-apps-dsp - - qcom,vmids: - description: - Virtual machine IDs for remote processor. - $ref: /schemas/types.yaml#/definitions/uint32-array - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - -patternProperties: - "(compute-)?cb@[0-9]*$": - type: object - - description: > - Each subnode of the Fastrpc represents compute context banks available on the dsp. - - properties: - compatible: - const: qcom,fastrpc-compute-cb - - reg: - maxItems: 1 - - dma-coherent: true - - iommus: - minItems: 1 - maxItems: 10 - - qcom,nsessions: - $ref: /schemas/types.yaml#/definitions/uint32 - default: 1 - description: > - A value indicating how many sessions can share this context bank. - - required: - - compatible - - reg - - additionalProperties: false - -required: - - compatible - - label - - "#address-cells" - - "#size-cells" - -additionalProperties: false - -examples: - - | - #include - #include - - glink-edge { - interrupts-extended = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP - IRQ_TYPE_EDGE_RISING>; - mboxes = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP>; - label = "lpass"; - qcom,remote-pid = <2>; - - fastrpc { - compatible = "qcom,fastrpc"; - qcom,glink-channels = "fastrpcglink-apps-dsp"; - label = "sdsp"; - qcom,non-secure-domain; - #address-cells = <1>; - #size-cells = <0>; - - compute-cb@1 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <1>; - iommus = <&apps_smmu 0x0541 0x0>; - }; - - compute-cb@2 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <2>; - iommus = <&apps_smmu 0x0542 0x0>; - }; - - compute-cb@3 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <3>; - iommus = <&apps_smmu 0x0543 0x0>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/misc/qcom,fastrpc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm FastRPC Driver + +maintainers: + - Srinivas Kandagatla + +description: | + The FastRPC implements an IPC (Inter-Processor Communication) + mechanism that allows for clients to transparently make remote method + invocations across DSP and APPS boundaries. This enables developers + to offload tasks to the DSP and free up the application processor for + other tasks. + +properties: + compatible: + const: qcom,fastrpc + + label: + enum: + - adsp + - mdsp + - sdsp + - cdsp + - cdsp1 + + memory-region: + maxItems: 1 + description: + Phandle to a node describing memory to be used for remote heap CMA. + + qcom,glink-channels: + description: + A list of channels tied to this function, used for matching + the function to a set of virtual channels. + $ref: /schemas/types.yaml#/definitions/string-array + items: + - const: fastrpcglink-apps-dsp + + qcom,non-secure-domain: + description: + Used to mark the current domain as non-secure. + type: boolean + + qcom,smd-channels: + description: + Channel name used for the RPM communication + $ref: /schemas/types.yaml#/definitions/string-array + items: + - const: fastrpcsmd-apps-dsp + + qcom,vmids: + description: + Virtual machine IDs for remote processor. + $ref: /schemas/types.yaml#/definitions/uint32-array + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "(compute-)?cb@[0-9]*$": + type: object + + description: > + Each subnode of the Fastrpc represents compute context banks available on the dsp. + + properties: + compatible: + const: qcom,fastrpc-compute-cb + + reg: + maxItems: 1 + + dma-coherent: true + + iommus: + minItems: 1 + maxItems: 10 + + qcom,nsessions: + $ref: /schemas/types.yaml#/definitions/uint32 + default: 1 + description: > + A value indicating how many sessions can share this context bank. + + required: + - compatible + - reg + + additionalProperties: false + +required: + - compatible + - label + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include + #include + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + label = "lpass"; + qcom,remote-pid = <2>; + + fastrpc { + compatible = "qcom,fastrpc"; + qcom,glink-channels = "fastrpcglink-apps-dsp"; + label = "sdsp"; + qcom,non-secure-domain; + #address-cells = <1>; + #size-cells = <0>; + + compute-cb@1 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <1>; + iommus = <&apps_smmu 0x0541 0x0>; + }; + + compute-cb@2 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <2>; + iommus = <&apps_smmu 0x0542 0x0>; + }; + + compute-cb@3 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <3>; + iommus = <&apps_smmu 0x0543 0x0>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml index 4d42ea6ec..6c4061140 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml @@ -1,156 +1,156 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mmc/cdns,sdhci.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Cadence SD/SDIO/eMMC Host Controller (SD4HC) - -maintainers: - - Masahiro Yamada - -properties: - compatible: - items: - - enum: - - amd,pensando-elba-sd4hc - - microchip,mpfs-sd4hc - - socionext,uniphier-sd4hc - - const: cdns,sd4hc - - reg: - minItems: 1 - maxItems: 2 - - interrupts: - maxItems: 1 - - clocks: - maxItems: 1 - - resets: - maxItems: 1 - - # PHY DLL input delays: - # They are used to delay the data valid window, and align the window to - # sampling clock. The delay starts from 5ns (for delay parameter equal to 0) - # and it is increased by 2.5ns in each step. - - cdns,phy-input-delay-sd-highspeed: - description: Value of the delay in the input path for SD high-speed timing - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 0x1f - - cdns,phy-input-delay-legacy: - description: Value of the delay in the input path for legacy timing - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 0x1f - - cdns,phy-input-delay-sd-uhs-sdr12: - description: Value of the delay in the input path for SD UHS SDR12 timing - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 0x1f - - cdns,phy-input-delay-sd-uhs-sdr25: - description: Value of the delay in the input path for SD UHS SDR25 timing - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 0x1f - - cdns,phy-input-delay-sd-uhs-sdr50: - description: Value of the delay in the input path for SD UHS SDR50 timing - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 0x1f - - cdns,phy-input-delay-sd-uhs-ddr50: - description: Value of the delay in the input path for SD UHS DDR50 timing - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 0x1f - - cdns,phy-input-delay-mmc-highspeed: - description: Value of the delay in the input path for MMC high-speed timing - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 0x1f - - cdns,phy-input-delay-mmc-ddr: - description: Value of the delay in the input path for eMMC high-speed DDR timing - - # PHY DLL clock delays: - # Each delay property represents the fraction of the clock period. - # The approximate delay value will be - # (/128)*sdmclk_clock_period. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 0x1f - - cdns,phy-dll-delay-sdclk: - description: | - Value of the delay introduced on the sdclk output for all modes except - HS200, HS400 and HS400_ES. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 0x7f - - cdns,phy-dll-delay-sdclk-hsmmc: - description: | - Value of the delay introduced on the sdclk output for HS200, HS400 and - HS400_ES speed modes. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 0x7f - - cdns,phy-dll-delay-strobe: - description: | - Value of the delay introduced on the dat_strobe input used in - HS400 / HS400_ES speed modes. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 0x7f - -required: - - compatible - - reg - - interrupts - - clocks - -allOf: - - $ref: mmc-controller.yaml - - if: - properties: - compatible: - contains: - const: amd,pensando-elba-sd4hc - then: - properties: - reg: - items: - - description: Host controller registers - - description: Elba byte-lane enable register for writes - required: - - resets - else: - properties: - reg: - maxItems: 1 - -unevaluatedProperties: false - -examples: - - | - emmc: mmc@5a000000 { - compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc"; - reg = <0x5a000000 0x400>; - interrupts = <0 78 4>; - clocks = <&clk 4>; - bus-width = <8>; - mmc-ddr-1_8v; - mmc-hs200-1_8v; - mmc-hs400-1_8v; - cdns,phy-dll-delay-sdclk = <0>; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/cdns,sdhci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cadence SD/SDIO/eMMC Host Controller (SD4HC) + +maintainers: + - Masahiro Yamada + +properties: + compatible: + items: + - enum: + - amd,pensando-elba-sd4hc + - microchip,mpfs-sd4hc + - socionext,uniphier-sd4hc + - const: cdns,sd4hc + + reg: + minItems: 1 + maxItems: 2 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + # PHY DLL input delays: + # They are used to delay the data valid window, and align the window to + # sampling clock. The delay starts from 5ns (for delay parameter equal to 0) + # and it is increased by 2.5ns in each step. + + cdns,phy-input-delay-sd-highspeed: + description: Value of the delay in the input path for SD high-speed timing + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0x1f + + cdns,phy-input-delay-legacy: + description: Value of the delay in the input path for legacy timing + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0x1f + + cdns,phy-input-delay-sd-uhs-sdr12: + description: Value of the delay in the input path for SD UHS SDR12 timing + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0x1f + + cdns,phy-input-delay-sd-uhs-sdr25: + description: Value of the delay in the input path for SD UHS SDR25 timing + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0x1f + + cdns,phy-input-delay-sd-uhs-sdr50: + description: Value of the delay in the input path for SD UHS SDR50 timing + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0x1f + + cdns,phy-input-delay-sd-uhs-ddr50: + description: Value of the delay in the input path for SD UHS DDR50 timing + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0x1f + + cdns,phy-input-delay-mmc-highspeed: + description: Value of the delay in the input path for MMC high-speed timing + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0x1f + + cdns,phy-input-delay-mmc-ddr: + description: Value of the delay in the input path for eMMC high-speed DDR timing + + # PHY DLL clock delays: + # Each delay property represents the fraction of the clock period. + # The approximate delay value will be + # (/128)*sdmclk_clock_period. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0x1f + + cdns,phy-dll-delay-sdclk: + description: | + Value of the delay introduced on the sdclk output for all modes except + HS200, HS400 and HS400_ES. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0x7f + + cdns,phy-dll-delay-sdclk-hsmmc: + description: | + Value of the delay introduced on the sdclk output for HS200, HS400 and + HS400_ES speed modes. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0x7f + + cdns,phy-dll-delay-strobe: + description: | + Value of the delay introduced on the dat_strobe input used in + HS400 / HS400_ES speed modes. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0x7f + +required: + - compatible + - reg + - interrupts + - clocks + +allOf: + - $ref: mmc-controller.yaml + - if: + properties: + compatible: + contains: + const: amd,pensando-elba-sd4hc + then: + properties: + reg: + items: + - description: Host controller registers + - description: Elba byte-lane enable register for writes + required: + - resets + else: + properties: + reg: + maxItems: 1 + +unevaluatedProperties: false + +examples: + - | + emmc: mmc@5a000000 { + compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc"; + reg = <0x5a000000 0x400>; + interrupts = <0 78 4>; + clocks = <&clk 4>; + bus-width = <8>; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + cdns,phy-dll-delay-sdclk = <0>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.yaml index ab59f4d66..06df1269f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.yaml @@ -1,127 +1,127 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mmc/rockchip-dw-mshc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Rockchip designware mobile storage host controller - -description: - Rockchip uses the Synopsys designware mobile storage host controller - to interface a SoC with storage medium such as eMMC or SD/MMC cards. - This file documents the combined properties for the core Synopsys dw mshc - controller that are not already included in the synopsys-dw-mshc-common.yaml - file and the Rockchip specific extensions. - -allOf: - - $ref: synopsys-dw-mshc-common.yaml# - -maintainers: - - Heiko Stuebner - -# Everything else is described in the common file -properties: - compatible: - oneOf: - # for Rockchip RK2928 and before RK3288 - - const: rockchip,rk2928-dw-mshc - # for Rockchip RK3288 - - const: rockchip,rk3288-dw-mshc - - items: - - enum: - - rockchip,px30-dw-mshc - - rockchip,rk1808-dw-mshc - - rockchip,rk3036-dw-mshc - - rockchip,rk3128-dw-mshc - - rockchip,rk3228-dw-mshc - - rockchip,rk3308-dw-mshc - - rockchip,rk3328-dw-mshc - - rockchip,rk3368-dw-mshc - - rockchip,rk3399-dw-mshc - - rockchip,rk3568-dw-mshc - - rockchip,rk3588-dw-mshc - - rockchip,rv1108-dw-mshc - - rockchip,rv1126-dw-mshc - - const: rockchip,rk3288-dw-mshc - # for Rockchip RK3576 with phase tuning inside the controller - - const: rockchip,rk3576-dw-mshc - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - minItems: 2 - maxItems: 4 - description: - Handle to "biu" and "ciu" clocks for the bus interface unit clock and - the card interface unit clock. If "ciu-drive" and "ciu-sample" are - specified in clock-names, it should also contain - handles to these clocks. - - clock-names: - minItems: 2 - items: - - const: biu - - const: ciu - - const: ciu-drive - - const: ciu-sample - description: - Apart from the clock-names "biu" and "ciu" two more clocks - "ciu-drive" and "ciu-sample" are supported. They are used - to control the clock phases, "ciu-sample" is required for tuning - high speed modes. - - power-domains: - maxItems: 1 - - rockchip,default-sample-phase: - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 360 - default: 0 - description: - The default phase to set "ciu-sample" at probing, - low speeds or in case where all phases work at tuning time. - If not specified 0 deg will be used. - - rockchip,desired-num-phases: - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 360 - default: 360 - description: - The desired number of times that the host execute tuning when needed. - If not specified, the host will do tuning for 360 times, - namely tuning for each degree. - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - sdmmc: mmc@ff0c0000 { - compatible = "rockchip,rk3288-dw-mshc"; - reg = <0xff0c0000 0x4000>; - interrupts = ; - clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, - <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; - clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; - resets = <&cru SRST_MMC0>; - reset-names = "reset"; - fifo-depth = <0x100>; - max-frequency = <150000000>; - }; - -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/rockchip-dw-mshc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip designware mobile storage host controller + +description: + Rockchip uses the Synopsys designware mobile storage host controller + to interface a SoC with storage medium such as eMMC or SD/MMC cards. + This file documents the combined properties for the core Synopsys dw mshc + controller that are not already included in the synopsys-dw-mshc-common.yaml + file and the Rockchip specific extensions. + +allOf: + - $ref: synopsys-dw-mshc-common.yaml# + +maintainers: + - Heiko Stuebner + +# Everything else is described in the common file +properties: + compatible: + oneOf: + # for Rockchip RK2928 and before RK3288 + - const: rockchip,rk2928-dw-mshc + # for Rockchip RK3288 + - const: rockchip,rk3288-dw-mshc + - items: + - enum: + - rockchip,px30-dw-mshc + - rockchip,rk1808-dw-mshc + - rockchip,rk3036-dw-mshc + - rockchip,rk3128-dw-mshc + - rockchip,rk3228-dw-mshc + - rockchip,rk3308-dw-mshc + - rockchip,rk3328-dw-mshc + - rockchip,rk3368-dw-mshc + - rockchip,rk3399-dw-mshc + - rockchip,rk3568-dw-mshc + - rockchip,rk3588-dw-mshc + - rockchip,rv1108-dw-mshc + - rockchip,rv1126-dw-mshc + - const: rockchip,rk3288-dw-mshc + # for Rockchip RK3576 with phase tuning inside the controller + - const: rockchip,rk3576-dw-mshc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 2 + maxItems: 4 + description: + Handle to "biu" and "ciu" clocks for the bus interface unit clock and + the card interface unit clock. If "ciu-drive" and "ciu-sample" are + specified in clock-names, it should also contain + handles to these clocks. + + clock-names: + minItems: 2 + items: + - const: biu + - const: ciu + - const: ciu-drive + - const: ciu-sample + description: + Apart from the clock-names "biu" and "ciu" two more clocks + "ciu-drive" and "ciu-sample" are supported. They are used + to control the clock phases, "ciu-sample" is required for tuning + high speed modes. + + power-domains: + maxItems: 1 + + rockchip,default-sample-phase: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 360 + default: 0 + description: + The default phase to set "ciu-sample" at probing, + low speeds or in case where all phases work at tuning time. + If not specified 0 deg will be used. + + rockchip,desired-num-phases: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 360 + default: 360 + description: + The desired number of times that the host execute tuning when needed. + If not specified, the host will do tuning for 360 times, + namely tuning for each degree. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + sdmmc: mmc@ff0c0000 { + compatible = "rockchip,rk3288-dw-mshc"; + reg = <0xff0c0000 0x4000>; + interrupts = ; + clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, + <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; + clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; + resets = <&cru SRST_MMC0>; + reset-names = "reset"; + fifo-depth = <0x100>; + max-frequency = <150000000>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mmc/sdhci-st.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mmc/sdhci-st.txt index d1edd544d..ccf82b4ee 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mmc/sdhci-st.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mmc/sdhci-st.txt @@ -1,110 +1,110 @@ -* STMicroelectronics sdhci-st MMC/SD controller - -This file documents the differences between the core properties in -Documentation/devicetree/bindings/mmc/mmc.txt and the properties -used by the sdhci-st driver. - -Required properties: -- compatible: Must be "st,sdhci" and it can be compatible to "st,sdhci-stih407" - to set the internal glue logic used for configuring the MMC - subsystem (mmcss) inside the FlashSS (available in STiH407 SoC - family). - -- clock-names: Should be "mmc" and "icn". (NB: The latter is not compulsory) - See: Documentation/devicetree/bindings/resource-names.txt -- clocks: Phandle to the clock. - See: Documentation/devicetree/bindings/clock/clock-bindings.txt - -- interrupts: One mmc interrupt should be described here. -- interrupt-names: Should be "mmcirq". - -- pinctrl-names: A pinctrl state names "default" must be defined. -- pinctrl-0: Phandle referencing pin configuration of the sd/emmc controller. - See: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt - -- reg: This must provide the host controller base address and it can also - contain the FlashSS Top register for TX/RX delay used by the driver - to configure DLL inside the flashSS, if so reg-names must also be - specified. - -Optional properties: -- reg-names: Should be "mmc" and "top-mmc-delay". "top-mmc-delay" is optional - for eMMC on stih407 family silicon to configure DLL inside FlashSS. - -- non-removable: Non-removable slot. Also used for configuring mmcss in STiH407 SoC - family. - See: Documentation/devicetree/bindings/mmc/mmc.txt. - -- bus-width: Number of data lines. - See: Documentation/devicetree/bindings/mmc/mmc.txt. - -- max-frequency: Can be 200MHz, 100MHz or 50MHz (default) and used for - configuring the CCONFIG3 in the mmcss. - See: Documentation/devicetree/bindings/mmc/mmc.txt. - -- resets: Phandle and reset specifier pair to softreset line of HC IP. - See: Documentation/devicetree/bindings/reset/reset.txt - -- vqmmc-supply: Phandle to the regulator dt node, mentioned as the vcc/vdd - supply in eMMC/SD specs. - -- sd-uhs-sdr50: To enable the SDR50 in the mmcss. - See: Documentation/devicetree/bindings/mmc/mmc.txt. - -- sd-uhs-sdr104: To enable the SDR104 in the mmcss. - See: Documentation/devicetree/bindings/mmc/mmc.txt. - -- sd-uhs-ddr50: To enable the DDR50 in the mmcss. - See: Documentation/devicetree/bindings/mmc/mmc.txt. - -Example: - -/* Example stih416e eMMC configuration */ - -mmc0: sdhci@fe81e000 { - compatible = "st,sdhci"; - reg = <0xfe81e000 0x1000>; - interrupts = ; - interrupt-names = "mmcirq"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_mmc0>; - clock-names = "mmc"; - clocks = <&clk_s_a1_ls 1>; - bus-width = <8> - -/* Example SD stih407 family configuration */ - -mmc1: sdhci@9080000 { - compatible = "st,sdhci-stih407", "st,sdhci"; - reg = <0x09080000 0x7ff>; - reg-names = "mmc"; - interrupts = ; - interrupt-names = "mmcirq"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_sd1>; - clock-names = "mmc"; - clocks = <&clk_s_c0_flexgen CLK_MMC_1>; - resets = <&softreset STIH407_MMC1_SOFTRESET>; - bus-width = <4>; -}; - -/* Example eMMC stih407 family configuration */ - -mmc0: sdhci@9060000 { - compatible = "st,sdhci-stih407", "st,sdhci"; - reg = <0x09060000 0x7ff>, <0x9061008 0x20>; - reg-names = "mmc", "top-mmc-delay"; - interrupts = ; - interrupt-names = "mmcirq"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_mmc0>; - clock-names = "mmc"; - clocks = <&clk_s_c0_flexgen CLK_MMC_0>; - vqmmc-supply = <&vmmc_reg>; - max-frequency = <200000000>; - bus-width = <8>; - non-removable; - sd-uhs-sdr50; - sd-uhs-sdr104; - sd-uhs-ddr50; -}; +* STMicroelectronics sdhci-st MMC/SD controller + +This file documents the differences between the core properties in +Documentation/devicetree/bindings/mmc/mmc.txt and the properties +used by the sdhci-st driver. + +Required properties: +- compatible: Must be "st,sdhci" and it can be compatible to "st,sdhci-stih407" + to set the internal glue logic used for configuring the MMC + subsystem (mmcss) inside the FlashSS (available in STiH407 SoC + family). + +- clock-names: Should be "mmc" and "icn". (NB: The latter is not compulsory) + See: Documentation/devicetree/bindings/resource-names.txt +- clocks: Phandle to the clock. + See: Documentation/devicetree/bindings/clock/clock-bindings.txt + +- interrupts: One mmc interrupt should be described here. +- interrupt-names: Should be "mmcirq". + +- pinctrl-names: A pinctrl state names "default" must be defined. +- pinctrl-0: Phandle referencing pin configuration of the sd/emmc controller. + See: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt + +- reg: This must provide the host controller base address and it can also + contain the FlashSS Top register for TX/RX delay used by the driver + to configure DLL inside the flashSS, if so reg-names must also be + specified. + +Optional properties: +- reg-names: Should be "mmc" and "top-mmc-delay". "top-mmc-delay" is optional + for eMMC on stih407 family silicon to configure DLL inside FlashSS. + +- non-removable: Non-removable slot. Also used for configuring mmcss in STiH407 SoC + family. + See: Documentation/devicetree/bindings/mmc/mmc.txt. + +- bus-width: Number of data lines. + See: Documentation/devicetree/bindings/mmc/mmc.txt. + +- max-frequency: Can be 200MHz, 100MHz or 50MHz (default) and used for + configuring the CCONFIG3 in the mmcss. + See: Documentation/devicetree/bindings/mmc/mmc.txt. + +- resets: Phandle and reset specifier pair to softreset line of HC IP. + See: Documentation/devicetree/bindings/reset/reset.txt + +- vqmmc-supply: Phandle to the regulator dt node, mentioned as the vcc/vdd + supply in eMMC/SD specs. + +- sd-uhs-sdr50: To enable the SDR50 in the mmcss. + See: Documentation/devicetree/bindings/mmc/mmc.txt. + +- sd-uhs-sdr104: To enable the SDR104 in the mmcss. + See: Documentation/devicetree/bindings/mmc/mmc.txt. + +- sd-uhs-ddr50: To enable the DDR50 in the mmcss. + See: Documentation/devicetree/bindings/mmc/mmc.txt. + +Example: + +/* Example stih416e eMMC configuration */ + +mmc0: sdhci@fe81e000 { + compatible = "st,sdhci"; + reg = <0xfe81e000 0x1000>; + interrupts = ; + interrupt-names = "mmcirq"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_mmc0>; + clock-names = "mmc"; + clocks = <&clk_s_a1_ls 1>; + bus-width = <8> + +/* Example SD stih407 family configuration */ + +mmc1: sdhci@9080000 { + compatible = "st,sdhci-stih407", "st,sdhci"; + reg = <0x09080000 0x7ff>; + reg-names = "mmc"; + interrupts = ; + interrupt-names = "mmcirq"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sd1>; + clock-names = "mmc"; + clocks = <&clk_s_c0_flexgen CLK_MMC_1>; + resets = <&softreset STIH407_MMC1_SOFTRESET>; + bus-width = <4>; +}; + +/* Example eMMC stih407 family configuration */ + +mmc0: sdhci@9060000 { + compatible = "st,sdhci-stih407", "st,sdhci"; + reg = <0x09060000 0x7ff>, <0x9061008 0x20>; + reg-names = "mmc", "top-mmc-delay"; + interrupts = ; + interrupt-names = "mmcirq"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_mmc0>; + clock-names = "mmc"; + clocks = <&clk_s_c0_flexgen CLK_MMC_0>; + vqmmc-supply = <&vmmc_reg>; + max-frequency = <200000000>; + bus-width = <8>; + non-removable; + sd-uhs-sdr50; + sd-uhs-sdr104; + sd-uhs-ddr50; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml index ffc46e905..b9312ebef 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml @@ -1,139 +1,139 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mtd/ingenic,nand.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Ingenic SoCs NAND controller - -maintainers: - - Paul Cercueil - -allOf: - - $ref: nand-controller.yaml# - - $ref: /schemas/memory-controllers/ingenic,nemc-peripherals.yaml# - -properties: - compatible: - enum: - - ingenic,jz4740-nand - - ingenic,jz4725b-nand - - ingenic,jz4780-nand - - reg: - items: - - description: Bank number, offset and size of first attached NAND chip - - description: Bank number, offset and size of second attached NAND chip - - description: Bank number, offset and size of third attached NAND chip - - description: Bank number, offset and size of fourth attached NAND chip - minItems: 1 - - ecc-engine: true - - partitions: - type: object - deprecated: true - description: - Node containing description of fixed partitions. - -patternProperties: - "^nand@[a-f0-9]$": - type: object - $ref: raw-nand-chip.yaml - properties: - - rb-gpios: - description: GPIO specifier for the busy pin. - maxItems: 1 - - wp-gpios: - description: GPIO specifier for the write-protect pin. - maxItems: 1 - - unevaluatedProperties: false - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - memory-controller@13410000 { - compatible = "ingenic,jz4780-nemc"; - reg = <0x13410000 0x10000>; - #address-cells = <2>; - #size-cells = <1>; - ranges = <1 0 0x1b000000 0x1000000>, - <2 0 0x1a000000 0x1000000>, - <3 0 0x19000000 0x1000000>, - <4 0 0x18000000 0x1000000>, - <5 0 0x17000000 0x1000000>, - <6 0 0x16000000 0x1000000>; - - clocks = <&cgu JZ4780_CLK_NEMC>; - - nand-controller@1 { - compatible = "ingenic,jz4780-nand"; - reg = <1 0 0x1000000>; - - #address-cells = <1>; - #size-cells = <0>; - - ecc-engine = <&bch>; - - ingenic,nemc-tAS = <10>; - ingenic,nemc-tAH = <5>; - ingenic,nemc-tBP = <10>; - ingenic,nemc-tAW = <15>; - ingenic,nemc-tSTRV = <100>; - - pinctrl-names = "default"; - pinctrl-0 = <&pins_nemc>; - - nand@1 { - reg = <1>; - - nand-ecc-step-size = <1024>; - nand-ecc-strength = <24>; - nand-ecc-mode = "hw"; - nand-on-flash-bbt; - - pinctrl-names = "default"; - pinctrl-0 = <&pins_nemc_cs1>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <2>; - #size-cells = <2>; - - partition@0 { - label = "u-boot-spl"; - reg = <0x0 0x0 0x0 0x800000>; - }; - - partition@800000 { - label = "u-boot"; - reg = <0x0 0x800000 0x0 0x200000>; - }; - - partition@a00000 { - label = "u-boot-env"; - reg = <0x0 0xa00000 0x0 0x200000>; - }; - - partition@c00000 { - label = "boot"; - reg = <0x0 0xc00000 0x0 0x4000000>; - }; - - partition@4c00000 { - label = "system"; - reg = <0x0 0x4c00000 0x1 0xfb400000>; - }; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/ingenic,nand.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Ingenic SoCs NAND controller + +maintainers: + - Paul Cercueil + +allOf: + - $ref: nand-controller.yaml# + - $ref: /schemas/memory-controllers/ingenic,nemc-peripherals.yaml# + +properties: + compatible: + enum: + - ingenic,jz4740-nand + - ingenic,jz4725b-nand + - ingenic,jz4780-nand + + reg: + items: + - description: Bank number, offset and size of first attached NAND chip + - description: Bank number, offset and size of second attached NAND chip + - description: Bank number, offset and size of third attached NAND chip + - description: Bank number, offset and size of fourth attached NAND chip + minItems: 1 + + ecc-engine: true + + partitions: + type: object + deprecated: true + description: + Node containing description of fixed partitions. + +patternProperties: + "^nand@[a-f0-9]$": + type: object + $ref: raw-nand-chip.yaml + properties: + + rb-gpios: + description: GPIO specifier for the busy pin. + maxItems: 1 + + wp-gpios: + description: GPIO specifier for the write-protect pin. + maxItems: 1 + + unevaluatedProperties: false + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + memory-controller@13410000 { + compatible = "ingenic,jz4780-nemc"; + reg = <0x13410000 0x10000>; + #address-cells = <2>; + #size-cells = <1>; + ranges = <1 0 0x1b000000 0x1000000>, + <2 0 0x1a000000 0x1000000>, + <3 0 0x19000000 0x1000000>, + <4 0 0x18000000 0x1000000>, + <5 0 0x17000000 0x1000000>, + <6 0 0x16000000 0x1000000>; + + clocks = <&cgu JZ4780_CLK_NEMC>; + + nand-controller@1 { + compatible = "ingenic,jz4780-nand"; + reg = <1 0 0x1000000>; + + #address-cells = <1>; + #size-cells = <0>; + + ecc-engine = <&bch>; + + ingenic,nemc-tAS = <10>; + ingenic,nemc-tAH = <5>; + ingenic,nemc-tBP = <10>; + ingenic,nemc-tAW = <15>; + ingenic,nemc-tSTRV = <100>; + + pinctrl-names = "default"; + pinctrl-0 = <&pins_nemc>; + + nand@1 { + reg = <1>; + + nand-ecc-step-size = <1024>; + nand-ecc-strength = <24>; + nand-ecc-mode = "hw"; + nand-on-flash-bbt; + + pinctrl-names = "default"; + pinctrl-0 = <&pins_nemc_cs1>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <2>; + #size-cells = <2>; + + partition@0 { + label = "u-boot-spl"; + reg = <0x0 0x0 0x0 0x800000>; + }; + + partition@800000 { + label = "u-boot"; + reg = <0x0 0x800000 0x0 0x200000>; + }; + + partition@a00000 { + label = "u-boot-env"; + reg = <0x0 0xa00000 0x0 0x200000>; + }; + + partition@c00000 { + label = "boot"; + reg = <0x0 0xc00000 0x0 0x4000000>; + }; + + partition@4c00000 { + label = "system"; + reg = <0x0 0x4c00000 0x1 0xfb400000>; + }; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml index e0d0eede8..6e3afb429 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml @@ -1,123 +1,123 @@ -# SPDX-License-Identifier: GPL-2.0-only -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mtd/jedec,spi-nor.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: SPI NOR flash ST M25Pxx (and similar) serial flash chips - -maintainers: - - Rob Herring - -allOf: - - $ref: mtd.yaml# - - $ref: /schemas/spi/spi-peripheral-props.yaml# - -properties: - compatible: - oneOf: - - items: - - pattern: "^((((micron|spansion|st),)?\ - (m25p(40|80|16|32|64|128)|\ - n25q(32b|064|128a11|128a13|256a|512a|164k)))|\ - atmel,at25df(321a|641|081a)|\ - everspin,mr25h(10|40|128|256)|\ - (mxicy|macronix),mx25l(4005a|1606e|6405d|8005|12805d|25635e)|\ - (mxicy|macronix),mx25u(4033|4035)|\ - (spansion,)?s25fl(128s|256s1|512s|008k|064k|164k)|\ - (sst|microchip),sst25vf(016b|032b|040b)|\ - (sst,)?sst26wf016b|\ - (sst,)?sst25wf(040b|080)|\ - winbond,w25x(80|32)|\ - (winbond,)?w25q(16|32(w|dw)?|64(dw)?|80bl|128(fw)?|256))$" - - const: jedec,spi-nor - - items: - - enum: - - issi,is25lp016d - - micron,mt25qu02g - - mxicy,mx25r1635f - - mxicy,mx25u6435f - - mxicy,mx25v8035f - - spansion,s25sl12801 - - spansion,s25fs512s - - const: jedec,spi-nor - - const: jedec,spi-nor - description: - SPI NOR flashes compatible with the JEDEC SFDP standard or which may be - identified with the READ ID opcode (0x9F) do not deserve a specific - compatible. They should instead only be matched against the generic - "jedec,spi-nor" compatible. - - reg: - minItems: 1 - maxItems: 2 - - interrupts: - maxItems: 1 - - m25p,fast-read: - type: boolean - description: - Use the "fast read" opcode to read data from the chip instead of the usual - "read" opcode. This opcode is not supported by all chips and support for - it can not be detected at runtime. Refer to your chips' datasheet to check - if this is supported by your chip. - - broken-flash-reset: - type: boolean - description: - Some flash devices utilize stateful addressing modes (e.g., for 32-bit - addressing) which need to be managed carefully by a system. Because these - sorts of flash don't have a standardized software reset command, and - because some systems don't toggle the flash RESET# pin upon system reset - (if the pin even exists at all), there are systems which cannot reboot - properly if the flash is left in the "wrong" state. This boolean flag can - be used on such systems, to denote the absence of a reliable reset - mechanism. - - no-wp: - type: boolean - description: - The status register write disable (SRWD) bit in status register, combined - with the WP# signal, provides hardware data protection for the device. When - the SRWD bit is set to 1, and the WP# signal is either driven LOW or hard - strapped to LOW, the status register nonvolatile bits become read-only and - the WRITE STATUS REGISTER operation will not execute. The only way to exit - this hardware-protected mode is to drive WP# HIGH. If the WP# signal of the - flash device is not connected or is wrongly tied to GND (that includes internal - pull-downs) then status register permanently becomes read-only as the SRWD bit - cannot be reset. This boolean flag can be used on such systems to avoid setting - the SRWD bit while writing the status register. WP# signal hard strapped to GND - can be a valid use case. - - reset-gpios: - description: - A GPIO line connected to the RESET (active low) signal of the device. - If "broken-flash-reset" is present then having this property does not - make any difference. - - spi-cpol: true - spi-cpha: true - -dependencies: - spi-cpol: [ spi-cpha ] - spi-cpha: [ spi-cpol ] - -unevaluatedProperties: false - -examples: - - | - #include - spi { - #address-cells = <1>; - #size-cells = <0>; - - flash@0 { - compatible = "spansion,m25p80", "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <40000000>; - m25p,fast-read; - reset-gpios = <&gpio 12 GPIO_ACTIVE_LOW>; - }; - }; -... +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/jedec,spi-nor.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SPI NOR flash ST M25Pxx (and similar) serial flash chips + +maintainers: + - Rob Herring + +allOf: + - $ref: mtd.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + oneOf: + - items: + - pattern: "^((((micron|spansion|st),)?\ + (m25p(40|80|16|32|64|128)|\ + n25q(32b|064|128a11|128a13|256a|512a|164k)))|\ + atmel,at25df(321a|641|081a)|\ + everspin,mr25h(10|40|128|256)|\ + (mxicy|macronix),mx25l(4005a|1606e|6405d|8005|12805d|25635e)|\ + (mxicy|macronix),mx25u(4033|4035)|\ + (spansion,)?s25fl(128s|256s1|512s|008k|064k|164k)|\ + (sst|microchip),sst25vf(016b|032b|040b)|\ + (sst,)?sst26wf016b|\ + (sst,)?sst25wf(040b|080)|\ + winbond,w25x(80|32)|\ + (winbond,)?w25q(16|32(w|dw)?|64(dw)?|80bl|128(fw)?|256))$" + - const: jedec,spi-nor + - items: + - enum: + - issi,is25lp016d + - micron,mt25qu02g + - mxicy,mx25r1635f + - mxicy,mx25u6435f + - mxicy,mx25v8035f + - spansion,s25sl12801 + - spansion,s25fs512s + - const: jedec,spi-nor + - const: jedec,spi-nor + description: + SPI NOR flashes compatible with the JEDEC SFDP standard or which may be + identified with the READ ID opcode (0x9F) do not deserve a specific + compatible. They should instead only be matched against the generic + "jedec,spi-nor" compatible. + + reg: + minItems: 1 + maxItems: 2 + + interrupts: + maxItems: 1 + + m25p,fast-read: + type: boolean + description: + Use the "fast read" opcode to read data from the chip instead of the usual + "read" opcode. This opcode is not supported by all chips and support for + it can not be detected at runtime. Refer to your chips' datasheet to check + if this is supported by your chip. + + broken-flash-reset: + type: boolean + description: + Some flash devices utilize stateful addressing modes (e.g., for 32-bit + addressing) which need to be managed carefully by a system. Because these + sorts of flash don't have a standardized software reset command, and + because some systems don't toggle the flash RESET# pin upon system reset + (if the pin even exists at all), there are systems which cannot reboot + properly if the flash is left in the "wrong" state. This boolean flag can + be used on such systems, to denote the absence of a reliable reset + mechanism. + + no-wp: + type: boolean + description: + The status register write disable (SRWD) bit in status register, combined + with the WP# signal, provides hardware data protection for the device. When + the SRWD bit is set to 1, and the WP# signal is either driven LOW or hard + strapped to LOW, the status register nonvolatile bits become read-only and + the WRITE STATUS REGISTER operation will not execute. The only way to exit + this hardware-protected mode is to drive WP# HIGH. If the WP# signal of the + flash device is not connected or is wrongly tied to GND (that includes internal + pull-downs) then status register permanently becomes read-only as the SRWD bit + cannot be reset. This boolean flag can be used on such systems to avoid setting + the SRWD bit while writing the status register. WP# signal hard strapped to GND + can be a valid use case. + + reset-gpios: + description: + A GPIO line connected to the RESET (active low) signal of the device. + If "broken-flash-reset" is present then having this property does not + make any difference. + + spi-cpol: true + spi-cpha: true + +dependencies: + spi-cpol: [ spi-cpha ] + spi-cpha: [ spi-cpol ] + +unevaluatedProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + m25p,fast-read; + reset-gpios = <&gpio 12 GPIO_ACTIVE_LOW>; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/mediatek,mtk-nfc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/mediatek,mtk-nfc.yaml index ad2f138a1..ab503a33a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/mediatek,mtk-nfc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/mediatek,mtk-nfc.yaml @@ -1,154 +1,154 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mtd/mediatek,mtk-nfc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MediaTek(MTK) SoCs raw NAND FLASH controller (NFC) - -maintainers: - - Xiangsheng Hou - -properties: - compatible: - enum: - - mediatek,mt2701-nfc - - mediatek,mt2712-nfc - - mediatek,mt7622-nfc - - reg: - items: - - description: Base physical address and size of NFI. - - interrupts: - items: - - description: NFI interrupt - - clocks: - items: - - description: clock used for the controller - - description: clock used for the pad - - clock-names: - items: - - const: nfi_clk - - const: pad_clk - - ecc-engine: - description: device-tree node of the required ECC engine. - $ref: /schemas/types.yaml#/definitions/phandle - -patternProperties: - "^nand@[a-f0-9]$": - $ref: raw-nand-chip.yaml# - unevaluatedProperties: false - properties: - reg: - maximum: 1 - nand-ecc-mode: - const: hw - -allOf: - - $ref: nand-controller.yaml# - - - if: - properties: - compatible: - contains: - const: mediatek,mt2701-nfc - then: - patternProperties: - "^nand@[a-f0-9]$": - properties: - nand-ecc-step-size: - enum: [ 512, 1024 ] - nand-ecc-strength: - enum: [4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 28, 32, 36, - 40, 44, 48, 52, 56, 60] - - - if: - properties: - compatible: - contains: - const: mediatek,mt2712-nfc - then: - patternProperties: - "^nand@[a-f0-9]$": - properties: - nand-ecc-step-size: - enum: [ 512, 1024 ] - nand-ecc-strength: - enum: [4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 28, 32, 36, - 40, 44, 48, 52, 56, 60, 68, 72, 80] - - - if: - properties: - compatible: - contains: - const: mediatek,mt7622-nfc - then: - patternProperties: - "^nand@[a-f0-9]$": - properties: - nand-ecc-step-size: - const: 512 - nand-ecc-strength: - enum: [4, 6, 8, 10, 12] - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - - ecc-engine - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - - nand-controller@1100d000 { - compatible = "mediatek,mt2701-nfc"; - reg = <0 0x1100d000 0 0x1000>; - interrupts = ; - clocks = <&pericfg CLK_PERI_NFI>, - <&pericfg CLK_PERI_NFI_PAD>; - clock-names = "nfi_clk", "pad_clk"; - ecc-engine = <&bch>; - #address-cells = <1>; - #size-cells = <0>; - - nand@0 { - reg = <0>; - - nand-on-flash-bbt; - nand-ecc-mode = "hw"; - nand-ecc-step-size = <1024>; - nand-ecc-strength = <24>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - preloader@0 { - label = "pl"; - read-only; - reg = <0x0 0x400000>; - }; - android@400000 { - label = "android"; - reg = <0x400000 0x12c00000>; - }; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/mediatek,mtk-nfc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek(MTK) SoCs raw NAND FLASH controller (NFC) + +maintainers: + - Xiangsheng Hou + +properties: + compatible: + enum: + - mediatek,mt2701-nfc + - mediatek,mt2712-nfc + - mediatek,mt7622-nfc + + reg: + items: + - description: Base physical address and size of NFI. + + interrupts: + items: + - description: NFI interrupt + + clocks: + items: + - description: clock used for the controller + - description: clock used for the pad + + clock-names: + items: + - const: nfi_clk + - const: pad_clk + + ecc-engine: + description: device-tree node of the required ECC engine. + $ref: /schemas/types.yaml#/definitions/phandle + +patternProperties: + "^nand@[a-f0-9]$": + $ref: raw-nand-chip.yaml# + unevaluatedProperties: false + properties: + reg: + maximum: 1 + nand-ecc-mode: + const: hw + +allOf: + - $ref: nand-controller.yaml# + + - if: + properties: + compatible: + contains: + const: mediatek,mt2701-nfc + then: + patternProperties: + "^nand@[a-f0-9]$": + properties: + nand-ecc-step-size: + enum: [ 512, 1024 ] + nand-ecc-strength: + enum: [4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 28, 32, 36, + 40, 44, 48, 52, 56, 60] + + - if: + properties: + compatible: + contains: + const: mediatek,mt2712-nfc + then: + patternProperties: + "^nand@[a-f0-9]$": + properties: + nand-ecc-step-size: + enum: [ 512, 1024 ] + nand-ecc-strength: + enum: [4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 28, 32, 36, + 40, 44, 48, 52, 56, 60, 68, 72, 80] + + - if: + properties: + compatible: + contains: + const: mediatek,mt7622-nfc + then: + patternProperties: + "^nand@[a-f0-9]$": + properties: + nand-ecc-step-size: + const: 512 + nand-ecc-strength: + enum: [4, 6, 8, 10, 12] + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - ecc-engine + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + nand-controller@1100d000 { + compatible = "mediatek,mt2701-nfc"; + reg = <0 0x1100d000 0 0x1000>; + interrupts = ; + clocks = <&pericfg CLK_PERI_NFI>, + <&pericfg CLK_PERI_NFI_PAD>; + clock-names = "nfi_clk", "pad_clk"; + ecc-engine = <&bch>; + #address-cells = <1>; + #size-cells = <0>; + + nand@0 { + reg = <0>; + + nand-on-flash-bbt; + nand-ecc-mode = "hw"; + nand-ecc-step-size = <1024>; + nand-ecc-strength = <24>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + preloader@0 { + label = "pl"; + read-only; + reg = <0x0 0x400000>; + }; + android@400000 { + label = "android"; + reg = <0x400000 0x12c00000>; + }; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/raw-nand-chip.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/raw-nand-chip.yaml index d09fde7c2..092448d7b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/raw-nand-chip.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/raw-nand-chip.yaml @@ -1,111 +1,111 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mtd/raw-nand-chip.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Raw NAND Chip Common Properties - -maintainers: - - Miquel Raynal - -allOf: - - $ref: nand-chip.yaml# - -description: | - The ECC strength and ECC step size properties define the user - desires in terms of correction capability of a controller. Together, - they request the ECC engine to correct {strength} bit errors per - {size} bytes for a particular raw NAND chip. - - The interpretation of these parameters is implementation-defined, so - not all implementations must support all possible - combinations. However, implementations are encouraged to further - specify the value(s) they support. - -properties: - $nodename: - pattern: "^nand@[a-f0-9]$" - - reg: - description: - Contains the chip-select IDs. - - nand-ecc-placement: - description: - Location of the ECC bytes. This location is unknown by default - but can be explicitly set to "oob", if all ECC bytes are - known to be stored in the OOB area, or "interleaved" if ECC - bytes will be interleaved with regular data in the main area. - $ref: /schemas/types.yaml#/definitions/string - enum: [ oob, interleaved ] - deprecated: true - - nand-ecc-mode: - description: - Legacy ECC configuration mixing the ECC engine choice and - configuration. - $ref: /schemas/types.yaml#/definitions/string - enum: [none, soft, soft_bch, hw, hw_syndrome, on-die] - deprecated: true - - nand-bus-width: - description: - Bus width to the NAND chip - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [8, 16] - default: 8 - - nand-on-flash-bbt: - description: - With this property, the OS will search the device for a Bad - Block Table (BBT). If not found, it will create one, reserve - a few blocks at the end of the device to store it and update - it as the device ages. Otherwise, the out-of-band area of a - few pages of all the blocks will be scanned at boot time to - find Bad Block Markers (BBM). These markers will help to - build a volatile BBT in RAM. - $ref: /schemas/types.yaml#/definitions/flag - - nand-ecc-maximize: - description: - Whether or not the ECC strength should be maximized. The - maximum ECC strength is both controller and chip - dependent. The ECC engine has to select the ECC config - providing the best strength and taking the OOB area size - constraint into account. This is particularly useful when - only the in-band area is used by the upper layers, and you - want to make your NAND as reliable as possible. - $ref: /schemas/types.yaml#/definitions/flag - - nand-is-boot-medium: - description: - Whether or not the NAND chip is a boot medium. Drivers might - use this information to select ECC algorithms supported by - the boot ROM or similar restrictions. - $ref: /schemas/types.yaml#/definitions/flag - - nand-rb: - description: - Contains the native Ready/Busy IDs. - $ref: /schemas/types.yaml#/definitions/uint32-array - - rb-gpios: - description: - Contains one or more GPIO descriptor (the numper of descriptor - depends on the number of R/B pins exposed by the flash) for the - Ready/Busy pins. Active state refers to the NAND ready state and - should be set to GPIOD_ACTIVE_HIGH unless the signal is inverted. - - wp-gpios: - description: - Contains one GPIO descriptor for the Write Protect pin. - Active state refers to the NAND Write Protect state and should be - set to GPIOD_ACTIVE_LOW unless the signal is inverted. - maxItems: 1 - -required: - - reg - -# This is a generic file other binding inherit from and extend -additionalProperties: true +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/raw-nand-chip.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Raw NAND Chip Common Properties + +maintainers: + - Miquel Raynal + +allOf: + - $ref: nand-chip.yaml# + +description: | + The ECC strength and ECC step size properties define the user + desires in terms of correction capability of a controller. Together, + they request the ECC engine to correct {strength} bit errors per + {size} bytes for a particular raw NAND chip. + + The interpretation of these parameters is implementation-defined, so + not all implementations must support all possible + combinations. However, implementations are encouraged to further + specify the value(s) they support. + +properties: + $nodename: + pattern: "^nand@[a-f0-9]$" + + reg: + description: + Contains the chip-select IDs. + + nand-ecc-placement: + description: + Location of the ECC bytes. This location is unknown by default + but can be explicitly set to "oob", if all ECC bytes are + known to be stored in the OOB area, or "interleaved" if ECC + bytes will be interleaved with regular data in the main area. + $ref: /schemas/types.yaml#/definitions/string + enum: [ oob, interleaved ] + deprecated: true + + nand-ecc-mode: + description: + Legacy ECC configuration mixing the ECC engine choice and + configuration. + $ref: /schemas/types.yaml#/definitions/string + enum: [none, soft, soft_bch, hw, hw_syndrome, on-die] + deprecated: true + + nand-bus-width: + description: + Bus width to the NAND chip + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [8, 16] + default: 8 + + nand-on-flash-bbt: + description: + With this property, the OS will search the device for a Bad + Block Table (BBT). If not found, it will create one, reserve + a few blocks at the end of the device to store it and update + it as the device ages. Otherwise, the out-of-band area of a + few pages of all the blocks will be scanned at boot time to + find Bad Block Markers (BBM). These markers will help to + build a volatile BBT in RAM. + $ref: /schemas/types.yaml#/definitions/flag + + nand-ecc-maximize: + description: + Whether or not the ECC strength should be maximized. The + maximum ECC strength is both controller and chip + dependent. The ECC engine has to select the ECC config + providing the best strength and taking the OOB area size + constraint into account. This is particularly useful when + only the in-band area is used by the upper layers, and you + want to make your NAND as reliable as possible. + $ref: /schemas/types.yaml#/definitions/flag + + nand-is-boot-medium: + description: + Whether or not the NAND chip is a boot medium. Drivers might + use this information to select ECC algorithms supported by + the boot ROM or similar restrictions. + $ref: /schemas/types.yaml#/definitions/flag + + nand-rb: + description: + Contains the native Ready/Busy IDs. + $ref: /schemas/types.yaml#/definitions/uint32-array + + rb-gpios: + description: + Contains one or more GPIO descriptor (the numper of descriptor + depends on the number of R/B pins exposed by the flash) for the + Ready/Busy pins. Active state refers to the NAND ready state and + should be set to GPIOD_ACTIVE_HIGH unless the signal is inverted. + + wp-gpios: + description: + Contains one GPIO descriptor for the Write Protect pin. + Active state refers to the NAND Write Protect state and should be + set to GPIOD_ACTIVE_LOW unless the signal is inverted. + maxItems: 1 + +required: + - reg + +# This is a generic file other binding inherit from and extend +additionalProperties: true diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/rockchip,nand-controller.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/rockchip,nand-controller.yaml index 23d6e921a..ee53715ff 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/rockchip,nand-controller.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/rockchip,nand-controller.yaml @@ -1,165 +1,165 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mtd/rockchip,nand-controller.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Rockchip SoCs NAND FLASH Controller (NFC) - -allOf: - - $ref: nand-controller.yaml# - -maintainers: - - Heiko Stuebner - -properties: - compatible: - oneOf: - - const: rockchip,px30-nfc - - const: rockchip,rk2928-nfc - - const: rockchip,rv1108-nfc - - items: - - enum: - - rockchip,rk3036-nfc - - rockchip,rk3128-nfc - - const: rockchip,rk2928-nfc - - items: - - const: rockchip,rk3308-nfc - - const: rockchip,rv1108-nfc - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - minItems: 1 - items: - - description: Bus Clock - - description: Module Clock - - clock-names: - minItems: 1 - items: - - const: ahb - - const: nfc - - assigned-clocks: - maxItems: 1 - - assigned-clock-rates: - maxItems: 1 - - power-domains: - maxItems: 1 - -patternProperties: - "^nand@[0-7]$": - type: object - $ref: raw-nand-chip.yaml - properties: - reg: - minimum: 0 - maximum: 7 - - nand-ecc-mode: - const: hw - - nand-ecc-step-size: - const: 1024 - - nand-ecc-strength: - enum: [16, 24, 40, 60, 70] - description: | - The ECC configurations that can be supported are as follows. - NFC v600 ECC 16, 24, 40, 60 - RK2928, RK3066, RK3188 - - NFC v622 ECC 16, 24, 40, 60 - RK3036, RK3128 - - NFC v800 ECC 16 - RK3308, RV1108 - - NFC v900 ECC 16, 40, 60, 70 - RK3326, PX30 - - nand-bus-width: - const: 8 - - rockchip,boot-blks: - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 2 - default: 16 - description: - The NFC driver need this information to select ECC - algorithms supported by the boot ROM. - Only used in combination with 'nand-is-boot-medium'. - - rockchip,boot-ecc-strength: - enum: [16, 24, 40, 60, 70] - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - If specified it indicates that a different BCH/ECC setting is - supported by the boot ROM. - NFC v600 ECC 16, 24 - RK2928, RK3066, RK3188 - - NFC v622 ECC 16, 24, 40, 60 - RK3036, RK3128 - - NFC v800 ECC 16 - RK3308, RV1108 - - NFC v900 ECC 16, 70 - RK3326, PX30 - - Only used in combination with 'nand-is-boot-medium'. - - unevaluatedProperties: false - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - -unevaluatedProperties: false - -examples: - - | - #include - #include - nfc: nand-controller@ff4b0000 { - compatible = "rockchip,rk3308-nfc", - "rockchip,rv1108-nfc"; - reg = <0xff4b0000 0x4000>; - interrupts = ; - clocks = <&cru HCLK_NANDC>, <&cru SCLK_NANDC>; - clock-names = "ahb", "nfc"; - assigned-clocks = <&clks SCLK_NANDC>; - assigned-clock-rates = <150000000>; - - pinctrl-0 = <&flash_ale &flash_bus8 &flash_cle &flash_csn0 - &flash_rdn &flash_rdy &flash_wrn>; - pinctrl-names = "default"; - - #address-cells = <1>; - #size-cells = <0>; - - nand@0 { - reg = <0>; - label = "rk-nand"; - nand-bus-width = <8>; - nand-ecc-mode = "hw"; - nand-ecc-step-size = <1024>; - nand-ecc-strength = <16>; - nand-is-boot-medium; - rockchip,boot-blks = <8>; - rockchip,boot-ecc-strength = <16>; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/rockchip,nand-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip SoCs NAND FLASH Controller (NFC) + +allOf: + - $ref: nand-controller.yaml# + +maintainers: + - Heiko Stuebner + +properties: + compatible: + oneOf: + - const: rockchip,px30-nfc + - const: rockchip,rk2928-nfc + - const: rockchip,rv1108-nfc + - items: + - enum: + - rockchip,rk3036-nfc + - rockchip,rk3128-nfc + - const: rockchip,rk2928-nfc + - items: + - const: rockchip,rk3308-nfc + - const: rockchip,rv1108-nfc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 1 + items: + - description: Bus Clock + - description: Module Clock + + clock-names: + minItems: 1 + items: + - const: ahb + - const: nfc + + assigned-clocks: + maxItems: 1 + + assigned-clock-rates: + maxItems: 1 + + power-domains: + maxItems: 1 + +patternProperties: + "^nand@[0-7]$": + type: object + $ref: raw-nand-chip.yaml + properties: + reg: + minimum: 0 + maximum: 7 + + nand-ecc-mode: + const: hw + + nand-ecc-step-size: + const: 1024 + + nand-ecc-strength: + enum: [16, 24, 40, 60, 70] + description: | + The ECC configurations that can be supported are as follows. + NFC v600 ECC 16, 24, 40, 60 + RK2928, RK3066, RK3188 + + NFC v622 ECC 16, 24, 40, 60 + RK3036, RK3128 + + NFC v800 ECC 16 + RK3308, RV1108 + + NFC v900 ECC 16, 40, 60, 70 + RK3326, PX30 + + nand-bus-width: + const: 8 + + rockchip,boot-blks: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 2 + default: 16 + description: + The NFC driver need this information to select ECC + algorithms supported by the boot ROM. + Only used in combination with 'nand-is-boot-medium'. + + rockchip,boot-ecc-strength: + enum: [16, 24, 40, 60, 70] + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + If specified it indicates that a different BCH/ECC setting is + supported by the boot ROM. + NFC v600 ECC 16, 24 + RK2928, RK3066, RK3188 + + NFC v622 ECC 16, 24, 40, 60 + RK3036, RK3128 + + NFC v800 ECC 16 + RK3308, RV1108 + + NFC v900 ECC 16, 70 + RK3326, PX30 + + Only used in combination with 'nand-is-boot-medium'. + + unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + #include + nfc: nand-controller@ff4b0000 { + compatible = "rockchip,rk3308-nfc", + "rockchip,rv1108-nfc"; + reg = <0xff4b0000 0x4000>; + interrupts = ; + clocks = <&cru HCLK_NANDC>, <&cru SCLK_NANDC>; + clock-names = "ahb", "nfc"; + assigned-clocks = <&clks SCLK_NANDC>; + assigned-clock-rates = <150000000>; + + pinctrl-0 = <&flash_ale &flash_bus8 &flash_cle &flash_csn0 + &flash_rdn &flash_rdy &flash_wrn>; + pinctrl-names = "default"; + + #address-cells = <1>; + #size-cells = <0>; + + nand@0 { + reg = <0>; + label = "rk-nand"; + nand-bus-width = <8>; + nand-ecc-mode = "hw"; + nand-ecc-step-size = <1024>; + nand-ecc-strength = <16>; + nand-is-boot-medium; + rockchip,boot-blks = <8>; + rockchip,boot-ecc-strength = <16>; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml index 9fa20e67f..b8ef9ba88 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml @@ -1,158 +1,158 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mtd/st,stm32-fmc2-nand.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: STMicroelectronics Flexible Memory Controller 2 (FMC2) - -maintainers: - - Christophe Kerello - -properties: - compatible: - enum: - - st,stm32mp15-fmc2 - - st,stm32mp1-fmc2-nfc - - st,stm32mp25-fmc2-nfc - - reg: - minItems: 6 - maxItems: 12 - - interrupts: - maxItems: 1 - - dmas: - items: - - description: tx DMA channel - - description: rx DMA channel - - description: ecc DMA channel - - dma-names: - items: - - const: tx - - const: rx - - const: ecc - -patternProperties: - "^nand@[a-f0-9]$": - type: object - $ref: raw-nand-chip.yaml - properties: - nand-ecc-step-size: - const: 512 - - nand-ecc-strength: - enum: [1, 4, 8] - - unevaluatedProperties: false - -allOf: - - $ref: nand-controller.yaml# - - - if: - properties: - compatible: - contains: - const: st,stm32mp15-fmc2 - then: - properties: - reg: - items: - - description: Registers - - description: Chip select 0 data - - description: Chip select 0 command - - description: Chip select 0 address space - - description: Chip select 1 data - - description: Chip select 1 command - - description: Chip select 1 address space - - clocks: - maxItems: 1 - - resets: - maxItems: 1 - - required: - - clocks - - - if: - properties: - compatible: - contains: - const: st,stm32mp1-fmc2-nfc - then: - properties: - reg: - items: - - description: Chip select 0 data - - description: Chip select 0 command - - description: Chip select 0 address space - - description: Chip select 1 data - - description: Chip select 1 command - - description: Chip select 1 address space - - - if: - properties: - compatible: - contains: - const: st,stm32mp25-fmc2-nfc - then: - properties: - reg: - items: - - description: Chip select 0 data - - description: Chip select 0 command - - description: Chip select 0 address space - - description: Chip select 1 data - - description: Chip select 1 command - - description: Chip select 1 address space - - description: Chip select 2 data - - description: Chip select 2 command - - description: Chip select 2 address space - - description: Chip select 3 data - - description: Chip select 3 command - - description: Chip select 3 address space - -required: - - compatible - - reg - - interrupts - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - - nand-controller@58002000 { - compatible = "st,stm32mp15-fmc2"; - reg = <0x58002000 0x1000>, - <0x80000000 0x1000>, - <0x88010000 0x1000>, - <0x88020000 0x1000>, - <0x81000000 0x1000>, - <0x89010000 0x1000>, - <0x89020000 0x1000>; - interrupts = ; - dmas = <&mdma1 20 0x2 0x12000a02 0x0 0x0>, - <&mdma1 20 0x2 0x12000a08 0x0 0x0>, - <&mdma1 21 0x2 0x12000a0a 0x0 0x0>; - dma-names = "tx", "rx", "ecc"; - clocks = <&rcc FMC_K>; - resets = <&rcc FMC_R>; - #address-cells = <1>; - #size-cells = <0>; - - nand@0 { - reg = <0>; - nand-on-flash-bbt; - #address-cells = <1>; - #size-cells = <1>; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/st,stm32-fmc2-nand.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics Flexible Memory Controller 2 (FMC2) + +maintainers: + - Christophe Kerello + +properties: + compatible: + enum: + - st,stm32mp15-fmc2 + - st,stm32mp1-fmc2-nfc + - st,stm32mp25-fmc2-nfc + + reg: + minItems: 6 + maxItems: 12 + + interrupts: + maxItems: 1 + + dmas: + items: + - description: tx DMA channel + - description: rx DMA channel + - description: ecc DMA channel + + dma-names: + items: + - const: tx + - const: rx + - const: ecc + +patternProperties: + "^nand@[a-f0-9]$": + type: object + $ref: raw-nand-chip.yaml + properties: + nand-ecc-step-size: + const: 512 + + nand-ecc-strength: + enum: [1, 4, 8] + + unevaluatedProperties: false + +allOf: + - $ref: nand-controller.yaml# + + - if: + properties: + compatible: + contains: + const: st,stm32mp15-fmc2 + then: + properties: + reg: + items: + - description: Registers + - description: Chip select 0 data + - description: Chip select 0 command + - description: Chip select 0 address space + - description: Chip select 1 data + - description: Chip select 1 command + - description: Chip select 1 address space + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + required: + - clocks + + - if: + properties: + compatible: + contains: + const: st,stm32mp1-fmc2-nfc + then: + properties: + reg: + items: + - description: Chip select 0 data + - description: Chip select 0 command + - description: Chip select 0 address space + - description: Chip select 1 data + - description: Chip select 1 command + - description: Chip select 1 address space + + - if: + properties: + compatible: + contains: + const: st,stm32mp25-fmc2-nfc + then: + properties: + reg: + items: + - description: Chip select 0 data + - description: Chip select 0 command + - description: Chip select 0 address space + - description: Chip select 1 data + - description: Chip select 1 command + - description: Chip select 1 address space + - description: Chip select 2 data + - description: Chip select 2 command + - description: Chip select 2 address space + - description: Chip select 3 data + - description: Chip select 3 command + - description: Chip select 3 address space + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + nand-controller@58002000 { + compatible = "st,stm32mp15-fmc2"; + reg = <0x58002000 0x1000>, + <0x80000000 0x1000>, + <0x88010000 0x1000>, + <0x88020000 0x1000>, + <0x81000000 0x1000>, + <0x89010000 0x1000>, + <0x89020000 0x1000>; + interrupts = ; + dmas = <&mdma1 20 0x2 0x12000a02 0x0 0x0>, + <&mdma1 20 0x2 0x12000a08 0x0 0x0>, + <&mdma1 21 0x2 0x12000a0a 0x0 0x0>; + dma-names = "tx", "rx", "ecc"; + clocks = <&rcc FMC_K>; + resets = <&rcc FMC_R>; + #address-cells = <1>; + #size-cells = <0>; + + nand@0 { + reg = <0>; + nand-on-flash-bbt; + #address-cells = <1>; + #size-cells = <1>; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mux/reg-mux.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mux/reg-mux.yaml index a3cb3371f..dc4be092f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mux/reg-mux.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/mux/reg-mux.yaml @@ -1,146 +1,146 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mux/reg-mux.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Generic register bitfield-based multiplexer controller - -maintainers: - - Peter Rosin - -description: |+ - Define register bitfields to be used to control multiplexers. The parent - device tree node must be a device node to provide register r/w access. - -properties: - compatible: - enum: - - reg-mux # parent device of mux controller is not syscon device - - mmio-mux # parent device of mux controller is syscon device - - reg: true - - '#mux-control-cells': - const: 1 - - mux-reg-masks: - $ref: /schemas/types.yaml#/definitions/uint32-matrix - items: - items: - - description: register offset - - description: pre-shifted bitfield mask - description: Each entry pair describes a single mux control. - - idle-states: true - -required: - - compatible - - mux-reg-masks - - '#mux-control-cells' - -additionalProperties: false - -examples: - - | - /* The parent device of mux controller is not a syscon device. */ - - #include - - mux-controller { - compatible = "reg-mux"; - #mux-control-cells = <1>; - mux-reg-masks = - <0x54 0xf8>, /* 0: reg 0x54, bits 7:3 */ - <0x54 0x07>; /* 1: reg 0x54, bits 2:0 */ - }; - - mdio-mux-1 { - compatible = "mdio-mux-multiplexer"; - mux-controls = <&mux1 0>; - mdio-parent-bus = <&emdio1>; - #address-cells = <1>; - #size-cells = <0>; - - mdio@0 { - reg = <0x0>; - #address-cells = <1>; - #size-cells = <0>; - }; - - mdio@8 { - reg = <0x8>; - #address-cells = <1>; - #size-cells = <0>; - }; - }; - - mdio-mux-2 { - compatible = "mdio-mux-multiplexer"; - mux-controls = <&mux1 1>; - mdio-parent-bus = <&emdio2>; - #address-cells = <1>; - #size-cells = <0>; - - mdio@0 { - reg = <0x0>; - #address-cells = <1>; - #size-cells = <0>; - }; - - mdio@1 { - reg = <0x1>; - #address-cells = <1>; - #size-cells = <0>; - }; - }; - - - | - /* The parent device of mux controller is syscon device. */ - - #include - syscon@1000 { - reg = <0x1000 0x100>; - - mux2: mux-controller { - compatible = "mmio-mux"; - #mux-control-cells = <1>; - - mux-reg-masks = - <0x3 0x30>, /* 0: reg 0x3, bits 5:4 */ - <0x3 0x40>; /* 1: reg 0x3, bit 6 */ - idle-states = , <0>; - }; - }; - - video-mux { - compatible = "video-mux"; - mux-controls = <&mux2 0>; - #address-cells = <1>; - #size-cells = <0>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - /* inputs 0..3 */ - port@0 { - reg = <0>; - }; - port@1 { - reg = <1>; - }; - port@2 { - reg = <2>; - }; - port@3 { - reg = <3>; - }; - - /* output */ - port@4 { - reg = <4>; - }; - }; - }; -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mux/reg-mux.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic register bitfield-based multiplexer controller + +maintainers: + - Peter Rosin + +description: |+ + Define register bitfields to be used to control multiplexers. The parent + device tree node must be a device node to provide register r/w access. + +properties: + compatible: + enum: + - reg-mux # parent device of mux controller is not syscon device + - mmio-mux # parent device of mux controller is syscon device + + reg: true + + '#mux-control-cells': + const: 1 + + mux-reg-masks: + $ref: /schemas/types.yaml#/definitions/uint32-matrix + items: + items: + - description: register offset + - description: pre-shifted bitfield mask + description: Each entry pair describes a single mux control. + + idle-states: true + +required: + - compatible + - mux-reg-masks + - '#mux-control-cells' + +additionalProperties: false + +examples: + - | + /* The parent device of mux controller is not a syscon device. */ + + #include + + mux-controller { + compatible = "reg-mux"; + #mux-control-cells = <1>; + mux-reg-masks = + <0x54 0xf8>, /* 0: reg 0x54, bits 7:3 */ + <0x54 0x07>; /* 1: reg 0x54, bits 2:0 */ + }; + + mdio-mux-1 { + compatible = "mdio-mux-multiplexer"; + mux-controls = <&mux1 0>; + mdio-parent-bus = <&emdio1>; + #address-cells = <1>; + #size-cells = <0>; + + mdio@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + }; + + mdio@8 { + reg = <0x8>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + + mdio-mux-2 { + compatible = "mdio-mux-multiplexer"; + mux-controls = <&mux1 1>; + mdio-parent-bus = <&emdio2>; + #address-cells = <1>; + #size-cells = <0>; + + mdio@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + }; + + mdio@1 { + reg = <0x1>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + + - | + /* The parent device of mux controller is syscon device. */ + + #include + syscon@1000 { + reg = <0x1000 0x100>; + + mux2: mux-controller { + compatible = "mmio-mux"; + #mux-control-cells = <1>; + + mux-reg-masks = + <0x3 0x30>, /* 0: reg 0x3, bits 5:4 */ + <0x3 0x40>; /* 1: reg 0x3, bit 6 */ + idle-states = , <0>; + }; + }; + + video-mux { + compatible = "video-mux"; + mux-controls = <&mux2 0>; + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + /* inputs 0..3 */ + port@0 { + reg = <0>; + }; + port@1 { + reg = <1>; + }; + port@2 { + reg = <2>; + }; + port@3 { + reg = <3>; + }; + + /* output */ + port@4 { + reg = <4>; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml index 73a0d96c0..c578637c5 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml @@ -1,143 +1,143 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/airoha,en7581-eth.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Airoha EN7581 Frame Engine Ethernet controller - -maintainers: - - Lorenzo Bianconi - -description: - The frame engine ethernet controller can be found on Airoha SoCs. - These SoCs have multi-GMAC ports. - -properties: - compatible: - enum: - - airoha,en7581-eth - - reg: - items: - - description: Frame engine base address - - description: QDMA0 base address - - description: QDMA1 base address - - reg-names: - items: - - const: fe - - const: qdma0 - - const: qdma1 - - interrupts: - items: - - description: QDMA lan irq0 - - description: QDMA lan irq1 - - description: QDMA lan irq2 - - description: QDMA lan irq3 - - description: QDMA wan irq0 - - description: QDMA wan irq1 - - description: QDMA wan irq2 - - description: QDMA wan irq3 - - description: FE error irq - - description: PDMA irq - - resets: - maxItems: 8 - - reset-names: - items: - - const: fe - - const: pdma - - const: qdma - - const: xsi-mac - - const: hsi0-mac - - const: hsi1-mac - - const: hsi-mac - - const: xfp-mac - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - -patternProperties: - "^ethernet@[1-4]$": - type: object - unevaluatedProperties: false - $ref: ethernet-controller.yaml# - description: - Ethernet GMAC port associated to the MAC controller - properties: - compatible: - const: airoha,eth-mac - - reg: - minimum: 1 - maximum: 4 - description: GMAC port identifier - - required: - - reg - - compatible - -required: - - compatible - - reg - - interrupts - - resets - - reset-names - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - - eth: ethernet@1fb50000 { - compatible = "airoha,en7581-eth"; - reg = <0 0x1fb50000 0 0x2600>, - <0 0x1fb54000 0 0x2000>, - <0 0x1fb56000 0 0x2000>; - reg-names = "fe", "qdma0", "qdma1"; - - resets = <&scuclk 44>, - <&scuclk 30>, - <&scuclk 31>, - <&scuclk 6>, - <&scuclk 15>, - <&scuclk 16>, - <&scuclk 17>, - <&scuclk 26>; - reset-names = "fe", "pdma", "qdma", "xsi-mac", - "hsi0-mac", "hsi1-mac", "hsi-mac", - "xfp-mac"; - - interrupts = , - , - , - , - , - , - , - , - , - ; - - #address-cells = <1>; - #size-cells = <0>; - - mac: ethernet@1 { - compatible = "airoha,eth-mac"; - reg = <1>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/airoha,en7581-eth.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Airoha EN7581 Frame Engine Ethernet controller + +maintainers: + - Lorenzo Bianconi + +description: + The frame engine ethernet controller can be found on Airoha SoCs. + These SoCs have multi-GMAC ports. + +properties: + compatible: + enum: + - airoha,en7581-eth + + reg: + items: + - description: Frame engine base address + - description: QDMA0 base address + - description: QDMA1 base address + + reg-names: + items: + - const: fe + - const: qdma0 + - const: qdma1 + + interrupts: + items: + - description: QDMA lan irq0 + - description: QDMA lan irq1 + - description: QDMA lan irq2 + - description: QDMA lan irq3 + - description: QDMA wan irq0 + - description: QDMA wan irq1 + - description: QDMA wan irq2 + - description: QDMA wan irq3 + - description: FE error irq + - description: PDMA irq + + resets: + maxItems: 8 + + reset-names: + items: + - const: fe + - const: pdma + - const: qdma + - const: xsi-mac + - const: hsi0-mac + - const: hsi1-mac + - const: hsi-mac + - const: xfp-mac + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^ethernet@[1-4]$": + type: object + unevaluatedProperties: false + $ref: ethernet-controller.yaml# + description: + Ethernet GMAC port associated to the MAC controller + properties: + compatible: + const: airoha,eth-mac + + reg: + minimum: 1 + maximum: 4 + description: GMAC port identifier + + required: + - reg + - compatible + +required: + - compatible + - reg + - interrupts + - resets + - reset-names + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + eth: ethernet@1fb50000 { + compatible = "airoha,en7581-eth"; + reg = <0 0x1fb50000 0 0x2600>, + <0 0x1fb54000 0 0x2000>, + <0 0x1fb56000 0 0x2000>; + reg-names = "fe", "qdma0", "qdma1"; + + resets = <&scuclk 44>, + <&scuclk 30>, + <&scuclk 31>, + <&scuclk 6>, + <&scuclk 15>, + <&scuclk 16>, + <&scuclk 17>, + <&scuclk 26>; + reset-names = "fe", "pdma", "qdma", "xsi-mac", + "hsi0-mac", "hsi1-mac", "hsi-mac", + "xfp-mac"; + + interrupts = , + , + , + , + , + , + , + , + , + ; + + #address-cells = <1>; + #size-cells = <0>; + + mac: ethernet@1 { + compatible = "airoha,eth-mac"; + reg = <1>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/altr,tse.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/altr,tse.yaml index 7f98f383a..f5d3b70af 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/altr,tse.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/altr,tse.yaml @@ -1,168 +1,168 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/altr,tse.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Altera Triple Speed Ethernet MAC driver (TSE) - -maintainers: - - Maxime Chevallier - -properties: - compatible: - oneOf: - - const: altr,tse-1.0 - - const: ALTR,tse-1.0 - deprecated: true - - const: altr,tse-msgdma-1.0 - - interrupts: - minItems: 2 - - interrupt-names: - items: - - const: rx_irq - - const: tx_irq - - rx-fifo-depth: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Depth in bytes of the RX FIFO - - tx-fifo-depth: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Depth in bytes of the TX FIFO - - altr,has-supplementary-unicast: - type: boolean - description: - If present, TSE supports additional unicast addresses. - - altr,has-hash-multicast-filter: - type: boolean - description: - If present, TSE supports hash based multicast filter. - - mdio: - $ref: mdio.yaml# - unevaluatedProperties: false - description: - Creates and registers an MDIO bus. - - properties: - compatible: - const: altr,tse-mdio - - required: - - compatible - -required: - - compatible - - reg - - interrupts - - rx-fifo-depth - - tx-fifo-depth - -allOf: - - $ref: ethernet-controller.yaml# - - if: - properties: - compatible: - contains: - enum: - - altr,tse-1.0 - - ALTR,tse-1.0 - then: - properties: - reg: - minItems: 4 - reg-names: - items: - - const: control_port - - const: rx_csr - - const: tx_csr - - const: s1 - - - if: - properties: - compatible: - contains: - enum: - - altr,tse-msgdma-1.0 - then: - properties: - reg: - minItems: 6 - maxItems: 7 - reg-names: - minItems: 6 - items: - - const: control_port - - const: rx_csr - - const: rx_desc - - const: rx_resp - - const: tx_csr - - const: tx_desc - - const: pcs - -unevaluatedProperties: false - -examples: - - | - tse_sub_0: ethernet@c0100000 { - compatible = "altr,tse-msgdma-1.0"; - reg = <0xc0100000 0x00000400>, - <0xc0101000 0x00000020>, - <0xc0102000 0x00000020>, - <0xc0103000 0x00000008>, - <0xc0104000 0x00000020>, - <0xc0105000 0x00000020>, - <0xc0106000 0x00000100>; - reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc", "pcs"; - interrupt-parent = <&intc>; - interrupts = <0 44 4>,<0 45 4>; - interrupt-names = "rx_irq","tx_irq"; - rx-fifo-depth = <2048>; - tx-fifo-depth = <2048>; - max-frame-size = <1500>; - local-mac-address = [ 00 00 00 00 00 00 ]; - altr,has-supplementary-unicast; - altr,has-hash-multicast-filter; - sfp = <&sfp0>; - phy-mode = "sgmii"; - managed = "in-band-status"; - }; - - | - tse_sub_1_eth_tse_0: ethernet@1,00001000 { - compatible = "altr,tse-msgdma-1.0"; - reg = <0x00001000 0x00000400>, - <0x00001460 0x00000020>, - <0x00001480 0x00000020>, - <0x000014A0 0x00000008>, - <0x00001400 0x00000020>, - <0x00001420 0x00000020>; - reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc"; - interrupt-parent = <&hps_0_arm_gic_0>; - interrupts = <0 43 4>, <0 42 4>; - interrupt-names = "rx_irq", "tx_irq"; - rx-fifo-depth = <2048>; - tx-fifo-depth = <2048>; - max-frame-size = <1500>; - local-mac-address = [ 00 00 00 00 00 00 ]; - phy-mode = "gmii"; - altr,has-supplementary-unicast; - altr,has-hash-multicast-filter; - phy-handle = <&phy1>; - mdio { - compatible = "altr,tse-mdio"; - #address-cells = <1>; - #size-cells = <0>; - phy1: ethernet-phy@1 { - reg = <0x1>; - }; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/altr,tse.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Altera Triple Speed Ethernet MAC driver (TSE) + +maintainers: + - Maxime Chevallier + +properties: + compatible: + oneOf: + - const: altr,tse-1.0 + - const: ALTR,tse-1.0 + deprecated: true + - const: altr,tse-msgdma-1.0 + + interrupts: + minItems: 2 + + interrupt-names: + items: + - const: rx_irq + - const: tx_irq + + rx-fifo-depth: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Depth in bytes of the RX FIFO + + tx-fifo-depth: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Depth in bytes of the TX FIFO + + altr,has-supplementary-unicast: + type: boolean + description: + If present, TSE supports additional unicast addresses. + + altr,has-hash-multicast-filter: + type: boolean + description: + If present, TSE supports hash based multicast filter. + + mdio: + $ref: mdio.yaml# + unevaluatedProperties: false + description: + Creates and registers an MDIO bus. + + properties: + compatible: + const: altr,tse-mdio + + required: + - compatible + +required: + - compatible + - reg + - interrupts + - rx-fifo-depth + - tx-fifo-depth + +allOf: + - $ref: ethernet-controller.yaml# + - if: + properties: + compatible: + contains: + enum: + - altr,tse-1.0 + - ALTR,tse-1.0 + then: + properties: + reg: + minItems: 4 + reg-names: + items: + - const: control_port + - const: rx_csr + - const: tx_csr + - const: s1 + + - if: + properties: + compatible: + contains: + enum: + - altr,tse-msgdma-1.0 + then: + properties: + reg: + minItems: 6 + maxItems: 7 + reg-names: + minItems: 6 + items: + - const: control_port + - const: rx_csr + - const: rx_desc + - const: rx_resp + - const: tx_csr + - const: tx_desc + - const: pcs + +unevaluatedProperties: false + +examples: + - | + tse_sub_0: ethernet@c0100000 { + compatible = "altr,tse-msgdma-1.0"; + reg = <0xc0100000 0x00000400>, + <0xc0101000 0x00000020>, + <0xc0102000 0x00000020>, + <0xc0103000 0x00000008>, + <0xc0104000 0x00000020>, + <0xc0105000 0x00000020>, + <0xc0106000 0x00000100>; + reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc", "pcs"; + interrupt-parent = <&intc>; + interrupts = <0 44 4>,<0 45 4>; + interrupt-names = "rx_irq","tx_irq"; + rx-fifo-depth = <2048>; + tx-fifo-depth = <2048>; + max-frame-size = <1500>; + local-mac-address = [ 00 00 00 00 00 00 ]; + altr,has-supplementary-unicast; + altr,has-hash-multicast-filter; + sfp = <&sfp0>; + phy-mode = "sgmii"; + managed = "in-band-status"; + }; + - | + tse_sub_1_eth_tse_0: ethernet@1,00001000 { + compatible = "altr,tse-msgdma-1.0"; + reg = <0x00001000 0x00000400>, + <0x00001460 0x00000020>, + <0x00001480 0x00000020>, + <0x000014A0 0x00000008>, + <0x00001400 0x00000020>, + <0x00001420 0x00000020>; + reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc"; + interrupt-parent = <&hps_0_arm_gic_0>; + interrupts = <0 43 4>, <0 42 4>; + interrupt-names = "rx_irq", "tx_irq"; + rx-fifo-depth = <2048>; + tx-fifo-depth = <2048>; + max-frame-size = <1500>; + local-mac-address = [ 00 00 00 00 00 00 ]; + phy-mode = "gmii"; + altr,has-supplementary-unicast; + altr,has-hash-multicast-filter; + phy-handle = <&phy1>; + mdio { + compatible = "altr,tse-mdio"; + #address-cells = <1>; + #size-cells = <0>; + phy1: ethernet-phy@1 { + reg = <0x1>; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/apm-xgene-enet.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/apm-xgene-enet.txt index 2cd23e9a1..f591ab782 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/apm-xgene-enet.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/apm-xgene-enet.txt @@ -1,91 +1,91 @@ -APM X-Gene SoC Ethernet nodes - -Ethernet nodes are defined to describe on-chip ethernet interfaces in -APM X-Gene SoC. - -Required properties for all the ethernet interfaces: -- compatible: Should state binding information from the following list, - - "apm,xgene-enet": RGMII based 1G interface - - "apm,xgene1-sgenet": SGMII based 1G interface - - "apm,xgene1-xgenet": XFI based 10G interface -- reg: Address and length of the register set for the device. It contains the - information of registers in the same order as described by reg-names -- reg-names: Should contain the register set names - - "enet_csr": Ethernet control and status register address space - - "ring_csr": Descriptor ring control and status register address space - - "ring_cmd": Descriptor ring command register address space -- interrupts: Two interrupt specifiers can be specified. - - First is the Rx interrupt. This irq is mandatory. - - Second is the Tx completion interrupt. - This is supported only on SGMII based 1GbE and 10GbE interfaces. -- channel: Ethernet to CPU, start channel (prefetch buffer) number - - Must map to the first irq and irqs must be sequential -- port-id: Port number (0 or 1) -- clocks: Reference to the clock entry. -- local-mac-address: MAC address assigned to this device -- phy-connection-type: Interface type between ethernet device and PHY device - -Required properties for ethernet interfaces that have external PHY: -- phy-handle: Reference to a PHY node connected to this device - -- mdio: Device tree subnode with the following required properties: - - compatible: Must be "apm,xgene-mdio". - - #address-cells: Must be <1>. - - #size-cells: Must be <0>. - - For the phy on the mdio bus, there must be a node with the following fields: - - compatible: PHY identifier. Please refer ./phy.txt for the format. - - reg: The ID number for the phy. - -Optional properties: -- status: Should be "ok" or "disabled" for enabled/disabled. Default is "ok". -- tx-delay: Delay value for RGMII bridge TX clock. - Valid values are between 0 to 7, that maps to - 417, 717, 1020, 1321, 1611, 1913, 2215, 2514 ps - Default value is 4, which corresponds to 1611 ps -- rx-delay: Delay value for RGMII bridge RX clock. - Valid values are between 0 to 7, that maps to - 273, 589, 899, 1222, 1480, 1806, 2147, 2464 ps - Default value is 2, which corresponds to 899 ps -- rxlos-gpios: Input gpio from SFP+ module to indicate availability of - incoming signal. - - -Example: - menetclk: menetclk { - compatible = "apm,xgene-device-clock"; - clock-output-names = "menetclk"; - status = "ok"; - }; - - menet: ethernet@17020000 { - compatible = "apm,xgene-enet"; - status = "disabled"; - reg = <0x0 0x17020000 0x0 0xd100>, - <0x0 0x17030000 0x0 0x400>, - <0x0 0x10000000 0x0 0x200>; - reg-names = "enet_csr", "ring_csr", "ring_cmd"; - interrupts = <0x0 0x3c 0x4>; - port-id = <0>; - clocks = <&menetclk 0>; - local-mac-address = [00 01 73 00 00 01]; - phy-connection-type = "rgmii"; - phy-handle = <&menetphy>; - mdio { - compatible = "apm,xgene-mdio"; - #address-cells = <1>; - #size-cells = <0>; - menetphy: menetphy@3 { - compatible = "ethernet-phy-id001c.c915"; - reg = <0x3>; - }; - - }; - }; - -/* Board-specific peripheral configurations */ -&menet { - tx-delay = <4>; - rx-delay = <2>; - status = "ok"; -}; +APM X-Gene SoC Ethernet nodes + +Ethernet nodes are defined to describe on-chip ethernet interfaces in +APM X-Gene SoC. + +Required properties for all the ethernet interfaces: +- compatible: Should state binding information from the following list, + - "apm,xgene-enet": RGMII based 1G interface + - "apm,xgene1-sgenet": SGMII based 1G interface + - "apm,xgene1-xgenet": XFI based 10G interface +- reg: Address and length of the register set for the device. It contains the + information of registers in the same order as described by reg-names +- reg-names: Should contain the register set names + - "enet_csr": Ethernet control and status register address space + - "ring_csr": Descriptor ring control and status register address space + - "ring_cmd": Descriptor ring command register address space +- interrupts: Two interrupt specifiers can be specified. + - First is the Rx interrupt. This irq is mandatory. + - Second is the Tx completion interrupt. + This is supported only on SGMII based 1GbE and 10GbE interfaces. +- channel: Ethernet to CPU, start channel (prefetch buffer) number + - Must map to the first irq and irqs must be sequential +- port-id: Port number (0 or 1) +- clocks: Reference to the clock entry. +- local-mac-address: MAC address assigned to this device +- phy-connection-type: Interface type between ethernet device and PHY device + +Required properties for ethernet interfaces that have external PHY: +- phy-handle: Reference to a PHY node connected to this device + +- mdio: Device tree subnode with the following required properties: + - compatible: Must be "apm,xgene-mdio". + - #address-cells: Must be <1>. + - #size-cells: Must be <0>. + + For the phy on the mdio bus, there must be a node with the following fields: + - compatible: PHY identifier. Please refer ./phy.txt for the format. + - reg: The ID number for the phy. + +Optional properties: +- status: Should be "ok" or "disabled" for enabled/disabled. Default is "ok". +- tx-delay: Delay value for RGMII bridge TX clock. + Valid values are between 0 to 7, that maps to + 417, 717, 1020, 1321, 1611, 1913, 2215, 2514 ps + Default value is 4, which corresponds to 1611 ps +- rx-delay: Delay value for RGMII bridge RX clock. + Valid values are between 0 to 7, that maps to + 273, 589, 899, 1222, 1480, 1806, 2147, 2464 ps + Default value is 2, which corresponds to 899 ps +- rxlos-gpios: Input gpio from SFP+ module to indicate availability of + incoming signal. + + +Example: + menetclk: menetclk { + compatible = "apm,xgene-device-clock"; + clock-output-names = "menetclk"; + status = "ok"; + }; + + menet: ethernet@17020000 { + compatible = "apm,xgene-enet"; + status = "disabled"; + reg = <0x0 0x17020000 0x0 0xd100>, + <0x0 0x17030000 0x0 0x400>, + <0x0 0x10000000 0x0 0x200>; + reg-names = "enet_csr", "ring_csr", "ring_cmd"; + interrupts = <0x0 0x3c 0x4>; + port-id = <0>; + clocks = <&menetclk 0>; + local-mac-address = [00 01 73 00 00 01]; + phy-connection-type = "rgmii"; + phy-handle = <&menetphy>; + mdio { + compatible = "apm,xgene-mdio"; + #address-cells = <1>; + #size-cells = <0>; + menetphy: menetphy@3 { + compatible = "ethernet-phy-id001c.c915"; + reg = <0x3>; + }; + + }; + }; + +/* Board-specific peripheral configurations */ +&menet { + tx-delay = <4>; + rx-delay = <2>; + status = "ok"; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml index 3c6444bf2..3c410cadf 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml @@ -1,163 +1,163 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/bluetooth/brcm,bluetooth.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Broadcom Bluetooth Chips - -maintainers: - - Linus Walleij - -description: - This binding describes Broadcom UART-attached bluetooth chips. - -properties: - compatible: - oneOf: - - items: - - enum: - - infineon,cyw43439-bt - - const: brcm,bcm4329-bt - - enum: - - brcm,bcm20702a1 - - brcm,bcm4329-bt - - brcm,bcm4330-bt - - brcm,bcm4334-bt - - brcm,bcm43430a0-bt - - brcm,bcm43430a1-bt - - brcm,bcm43438-bt - - brcm,bcm4345c5 - - brcm,bcm43540-bt - - brcm,bcm4335a0 - - brcm,bcm4349-bt - - cypress,cyw4373a0-bt - - infineon,cyw55572-bt - - shutdown-gpios: - maxItems: 1 - description: GPIO specifier for the line BT_REG_ON used to - power on the BT module - - reset-gpios: - maxItems: 1 - description: GPIO specifier for the line BT_RST_N used to - reset the BT module. This should be marked as - GPIO_ACTIVE_LOW. - - device-wakeup-gpios: - maxItems: 1 - description: GPIO specifier for the line BT_WAKE used to - wakeup the controller. This is using the BT_GPIO_0 - pin on the chip when in use. - - host-wakeup-gpios: - maxItems: 1 - deprecated: true - description: GPIO specifier for the line HOST_WAKE used - to wakeup the host processor. This is using he BT_GPIO_1 - pin on the chip when in use. This is deprecated and replaced - by interrupts and "host-wakeup" interrupt-names - - clocks: - minItems: 1 - maxItems: 2 - description: 1 or 2 clocks as defined in clock-names below, - in that order - - clock-names: - description: Names of the 1 to 2 supplied clocks - oneOf: - - const: extclk - deprecated: true - description: Deprecated in favor of txco - - - const: txco - description: > - external reference clock (not a standalone crystal) - - - const: lpo - description: > - external low power 32.768 kHz clock - - - items: - - const: txco - - const: lpo - - vbat-supply: - description: phandle to regulator supply for VBAT - - vddio-supply: - description: phandle to regulator supply for VDDIO - - brcm,bt-pcm-int-params: - $ref: /schemas/types.yaml#/definitions/uint8-array - minItems: 5 - maxItems: 5 - description: |- - configure PCM parameters via a 5-byte array: - sco-routing: 0 = PCM, 1 = Transport, 2 = Codec, 3 = I2S - pcm-interface-rate: 128KBps, 256KBps, 512KBps, 1024KBps, 2048KBps - pcm-frame-type: short, long - pcm-sync-mode: slave, master - pcm-clock-mode: slave, master - - brcm,requires-autobaud-mode: - type: boolean - description: - Set this property if autobaud mode is required. Autobaud mode is required - if the device's initial baud rate in normal mode is not supported by the - host or if the device requires autobaud mode startup before loading FW. - - interrupts: - items: - - description: Handle to the line HOST_WAKE used to wake - up the host processor. This uses the BT_GPIO_1 pin on - the chip when in use. - - interrupt-names: - items: - - const: host-wakeup - -required: - - compatible - -dependencies: - brcm,requires-autobaud-mode: [ shutdown-gpios ] - -allOf: - - $ref: /schemas/serial/serial-peripheral-props.yaml# - - if: - not: - properties: - compatible: - contains: - enum: - - brcm,bcm20702a1 - - brcm,bcm4329-bt - - brcm,bcm4330-bt - then: - properties: - reset-gpios: false - -unevaluatedProperties: false - -examples: - - | - #include - #include - - uart { - uart-has-rtscts; - - bluetooth { - compatible = "brcm,bcm4330-bt"; - max-speed = <921600>; - brcm,bt-pcm-int-params = [01 02 00 01 01]; - shutdown-gpios = <&gpio 30 GPIO_ACTIVE_HIGH>; - device-wakeup-gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; - reset-gpios = <&gpio 9 GPIO_ACTIVE_LOW>; - interrupt-parent = <&gpio>; - interrupts = <8 IRQ_TYPE_EDGE_FALLING>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/bluetooth/brcm,bluetooth.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Bluetooth Chips + +maintainers: + - Linus Walleij + +description: + This binding describes Broadcom UART-attached bluetooth chips. + +properties: + compatible: + oneOf: + - items: + - enum: + - infineon,cyw43439-bt + - const: brcm,bcm4329-bt + - enum: + - brcm,bcm20702a1 + - brcm,bcm4329-bt + - brcm,bcm4330-bt + - brcm,bcm4334-bt + - brcm,bcm43430a0-bt + - brcm,bcm43430a1-bt + - brcm,bcm43438-bt + - brcm,bcm4345c5 + - brcm,bcm43540-bt + - brcm,bcm4335a0 + - brcm,bcm4349-bt + - cypress,cyw4373a0-bt + - infineon,cyw55572-bt + + shutdown-gpios: + maxItems: 1 + description: GPIO specifier for the line BT_REG_ON used to + power on the BT module + + reset-gpios: + maxItems: 1 + description: GPIO specifier for the line BT_RST_N used to + reset the BT module. This should be marked as + GPIO_ACTIVE_LOW. + + device-wakeup-gpios: + maxItems: 1 + description: GPIO specifier for the line BT_WAKE used to + wakeup the controller. This is using the BT_GPIO_0 + pin on the chip when in use. + + host-wakeup-gpios: + maxItems: 1 + deprecated: true + description: GPIO specifier for the line HOST_WAKE used + to wakeup the host processor. This is using he BT_GPIO_1 + pin on the chip when in use. This is deprecated and replaced + by interrupts and "host-wakeup" interrupt-names + + clocks: + minItems: 1 + maxItems: 2 + description: 1 or 2 clocks as defined in clock-names below, + in that order + + clock-names: + description: Names of the 1 to 2 supplied clocks + oneOf: + - const: extclk + deprecated: true + description: Deprecated in favor of txco + + - const: txco + description: > + external reference clock (not a standalone crystal) + + - const: lpo + description: > + external low power 32.768 kHz clock + + - items: + - const: txco + - const: lpo + + vbat-supply: + description: phandle to regulator supply for VBAT + + vddio-supply: + description: phandle to regulator supply for VDDIO + + brcm,bt-pcm-int-params: + $ref: /schemas/types.yaml#/definitions/uint8-array + minItems: 5 + maxItems: 5 + description: |- + configure PCM parameters via a 5-byte array: + sco-routing: 0 = PCM, 1 = Transport, 2 = Codec, 3 = I2S + pcm-interface-rate: 128KBps, 256KBps, 512KBps, 1024KBps, 2048KBps + pcm-frame-type: short, long + pcm-sync-mode: slave, master + pcm-clock-mode: slave, master + + brcm,requires-autobaud-mode: + type: boolean + description: + Set this property if autobaud mode is required. Autobaud mode is required + if the device's initial baud rate in normal mode is not supported by the + host or if the device requires autobaud mode startup before loading FW. + + interrupts: + items: + - description: Handle to the line HOST_WAKE used to wake + up the host processor. This uses the BT_GPIO_1 pin on + the chip when in use. + + interrupt-names: + items: + - const: host-wakeup + +required: + - compatible + +dependencies: + brcm,requires-autobaud-mode: [ shutdown-gpios ] + +allOf: + - $ref: /schemas/serial/serial-peripheral-props.yaml# + - if: + not: + properties: + compatible: + contains: + enum: + - brcm,bcm20702a1 + - brcm,bcm4329-bt + - brcm,bcm4330-bt + then: + properties: + reset-gpios: false + +unevaluatedProperties: false + +examples: + - | + #include + #include + + uart { + uart-has-rtscts; + + bluetooth { + compatible = "brcm,bcm4330-bt"; + max-speed = <921600>; + brcm,bt-pcm-int-params = [01 02 00 01 01]; + shutdown-gpios = <&gpio 30 GPIO_ACTIVE_HIGH>; + device-wakeup-gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio 9 GPIO_ACTIVE_LOW>; + interrupt-parent = <&gpio>; + interrupts = <8 IRQ_TYPE_EDGE_FALLING>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/brcm,asp-v2.0.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/brcm,asp-v2.0.yaml index c2dc54a03..660e2ca42 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/brcm,asp-v2.0.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/brcm,asp-v2.0.yaml @@ -1,159 +1,159 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/brcm,asp-v2.0.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Broadcom ASP 2.0 Ethernet controller - -maintainers: - - Justin Chen - - Florian Fainelli - -description: Broadcom Ethernet controller first introduced with 72165 - -properties: - compatible: - oneOf: - - items: - - enum: - - brcm,bcm74165b0-asp - - const: brcm,asp-v2.2 - - items: - - enum: - - brcm,bcm74165-asp - - const: brcm,asp-v2.1 - - items: - - enum: - - brcm,bcm72165-asp - - const: brcm,asp-v2.0 - - "#address-cells": - const: 1 - "#size-cells": - const: 1 - - reg: - maxItems: 1 - - ranges: true - - interrupts: - minItems: 1 - items: - - description: RX/TX interrupt - - description: Port 0 Wake-on-LAN - - description: Port 1 Wake-on-LAN - - clocks: - maxItems: 1 - - ethernet-ports: - type: object - properties: - "#address-cells": - const: 1 - "#size-cells": - const: 0 - - patternProperties: - "^port@[0-9a-f]+$": - type: object - - $ref: ethernet-controller.yaml# - - unevaluatedProperties: false - - properties: - reg: - maxItems: 1 - description: Port number - - brcm,channel: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - ASP Channel Number - - The depacketizer channel that consumes packets from - the unimac/port. - - required: - - reg - - brcm,channel - - additionalProperties: false - -patternProperties: - "^mdio@[0-9a-f]+$": - type: object - $ref: brcm,unimac-mdio.yaml - - description: - ASP internal UniMAC MDIO bus - -required: - - compatible - - reg - - interrupts - - clocks - - ranges - -additionalProperties: false - -examples: - - | - #include - #include - - ethernet@9c00000 { - compatible = "brcm,bcm72165-asp", "brcm,asp-v2.0"; - reg = <0x9c00000 0x1fff14>; - interrupts = ; - ranges = <0x0 0x9c00000 0x1fff14>; - clocks = <&scmi 14>; - #address-cells = <1>; - #size-cells = <1>; - - mdio@c614 { - compatible = "brcm,asp-v2.0-mdio"; - reg = <0xc614 0x8>; - reg-names = "mdio"; - #address-cells = <1>; - #size-cells = <0>; - - phy0: ethernet-phy@1 { - reg = <1>; - }; - }; - - mdio@ce14 { - compatible = "brcm,asp-v2.0-mdio"; - reg = <0xce14 0x8>; - reg-names = "mdio"; - #address-cells = <1>; - #size-cells = <0>; - - phy1: ethernet-phy@1 { - reg = <1>; - }; - }; - - ethernet-ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - brcm,channel = <8>; - phy-mode = "rgmii"; - phy-handle = <&phy0>; - }; - - port@1 { - reg = <1>; - brcm,channel = <9>; - phy-mode = "rgmii"; - phy-handle = <&phy1>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/brcm,asp-v2.0.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom ASP 2.0 Ethernet controller + +maintainers: + - Justin Chen + - Florian Fainelli + +description: Broadcom Ethernet controller first introduced with 72165 + +properties: + compatible: + oneOf: + - items: + - enum: + - brcm,bcm74165b0-asp + - const: brcm,asp-v2.2 + - items: + - enum: + - brcm,bcm74165-asp + - const: brcm,asp-v2.1 + - items: + - enum: + - brcm,bcm72165-asp + - const: brcm,asp-v2.0 + + "#address-cells": + const: 1 + "#size-cells": + const: 1 + + reg: + maxItems: 1 + + ranges: true + + interrupts: + minItems: 1 + items: + - description: RX/TX interrupt + - description: Port 0 Wake-on-LAN + - description: Port 1 Wake-on-LAN + + clocks: + maxItems: 1 + + ethernet-ports: + type: object + properties: + "#address-cells": + const: 1 + "#size-cells": + const: 0 + + patternProperties: + "^port@[0-9a-f]+$": + type: object + + $ref: ethernet-controller.yaml# + + unevaluatedProperties: false + + properties: + reg: + maxItems: 1 + description: Port number + + brcm,channel: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + ASP Channel Number + + The depacketizer channel that consumes packets from + the unimac/port. + + required: + - reg + - brcm,channel + + additionalProperties: false + +patternProperties: + "^mdio@[0-9a-f]+$": + type: object + $ref: brcm,unimac-mdio.yaml + + description: + ASP internal UniMAC MDIO bus + +required: + - compatible + - reg + - interrupts + - clocks + - ranges + +additionalProperties: false + +examples: + - | + #include + #include + + ethernet@9c00000 { + compatible = "brcm,bcm72165-asp", "brcm,asp-v2.0"; + reg = <0x9c00000 0x1fff14>; + interrupts = ; + ranges = <0x0 0x9c00000 0x1fff14>; + clocks = <&scmi 14>; + #address-cells = <1>; + #size-cells = <1>; + + mdio@c614 { + compatible = "brcm,asp-v2.0-mdio"; + reg = <0xc614 0x8>; + reg-names = "mdio"; + #address-cells = <1>; + #size-cells = <0>; + + phy0: ethernet-phy@1 { + reg = <1>; + }; + }; + + mdio@ce14 { + compatible = "brcm,asp-v2.0-mdio"; + reg = <0xce14 0x8>; + reg-names = "mdio"; + #address-cells = <1>; + #size-cells = <0>; + + phy1: ethernet-phy@1 { + reg = <1>; + }; + }; + + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + brcm,channel = <8>; + phy-mode = "rgmii"; + phy-handle = <&phy0>; + }; + + port@1 { + reg = <1>; + brcm,channel = <9>; + phy-mode = "rgmii"; + phy-handle = <&phy1>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/can/nxp,sja1000.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/can/nxp,sja1000.yaml index 977b59eb0..144a37851 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/can/nxp,sja1000.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/can/nxp,sja1000.yaml @@ -1,136 +1,136 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/can/nxp,sja1000.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Memory mapped SJA1000 CAN controller from NXP (formerly Philips) - -maintainers: - - Wolfgang Grandegger - -properties: - compatible: - oneOf: - - enum: - - nxp,sja1000 - - technologic,sja1000 - - items: - - enum: - - renesas,r9a06g032-sja1000 # RZ/N1D - - renesas,r9a06g033-sja1000 # RZ/N1S - - const: renesas,rzn1-sja1000 # RZ/N1 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - maxItems: 1 - - power-domains: - maxItems: 1 - - reg-io-width: - description: I/O register width (in bytes) implemented by this device - default: 1 - enum: [ 1, 2, 4 ] - - nxp,external-clock-frequency: - $ref: /schemas/types.yaml#/definitions/uint32 - default: 16000000 - description: | - Frequency of the external oscillator clock in Hz. - The internal clock frequency used by the SJA1000 is half of that value. - - nxp,tx-output-mode: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [ 0, 1, 2, 3 ] - default: 1 - description: | - operation mode of the TX output control logic. Valid values are: - <0> : bi-phase output mode - <1> : normal output mode (default) - <2> : test output mode - <3> : clock output mode - - nxp,tx-output-config: - $ref: /schemas/types.yaml#/definitions/uint32 - default: 0x02 - description: | - TX output pin configuration. Valid values are any one of the below - or combination of TX0 and TX1: - <0x01> : TX0 invert - <0x02> : TX0 pull-down (default) - <0x04> : TX0 pull-up - <0x06> : TX0 push-pull - <0x08> : TX1 invert - <0x10> : TX1 pull-down - <0x20> : TX1 pull-up - <0x30> : TX1 push-pull - - nxp,clock-out-frequency: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - clock frequency in Hz on the CLKOUT pin. - If not specified or if the specified value is 0, the CLKOUT pin - will be disabled. - - nxp,no-comparator-bypass: - type: boolean - description: Allows to disable the CAN input comparator. - -required: - - compatible - - reg - - interrupts - -allOf: - - $ref: can-controller.yaml# - - if: - properties: - compatible: - contains: - enum: - - technologic,sja1000 - - renesas,rzn1-sja1000 - then: - required: - - reg-io-width - - if: - properties: - compatible: - contains: - const: renesas,rzn1-sja1000 - then: - required: - - clocks - - power-domains - -unevaluatedProperties: false - -examples: - - | - can@1a000 { - compatible = "technologic,sja1000"; - reg = <0x1a000 0x100>; - interrupts = <1>; - reg-io-width = <2>; - nxp,tx-output-config = <0x06>; - nxp,external-clock-frequency = <24000000>; - }; - - - | - #include - #include - - can@52104000 { - compatible = "renesas,r9a06g032-sja1000", "renesas,rzn1-sja1000"; - reg = <0x52104000 0x800>; - reg-io-width = <4>; - interrupts = ; - clocks = <&sysctrl R9A06G032_HCLK_CAN0>; - power-domains = <&sysctrl>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/can/nxp,sja1000.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Memory mapped SJA1000 CAN controller from NXP (formerly Philips) + +maintainers: + - Wolfgang Grandegger + +properties: + compatible: + oneOf: + - enum: + - nxp,sja1000 + - technologic,sja1000 + - items: + - enum: + - renesas,r9a06g032-sja1000 # RZ/N1D + - renesas,r9a06g033-sja1000 # RZ/N1S + - const: renesas,rzn1-sja1000 # RZ/N1 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + power-domains: + maxItems: 1 + + reg-io-width: + description: I/O register width (in bytes) implemented by this device + default: 1 + enum: [ 1, 2, 4 ] + + nxp,external-clock-frequency: + $ref: /schemas/types.yaml#/definitions/uint32 + default: 16000000 + description: | + Frequency of the external oscillator clock in Hz. + The internal clock frequency used by the SJA1000 is half of that value. + + nxp,tx-output-mode: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 0, 1, 2, 3 ] + default: 1 + description: | + operation mode of the TX output control logic. Valid values are: + <0> : bi-phase output mode + <1> : normal output mode (default) + <2> : test output mode + <3> : clock output mode + + nxp,tx-output-config: + $ref: /schemas/types.yaml#/definitions/uint32 + default: 0x02 + description: | + TX output pin configuration. Valid values are any one of the below + or combination of TX0 and TX1: + <0x01> : TX0 invert + <0x02> : TX0 pull-down (default) + <0x04> : TX0 pull-up + <0x06> : TX0 push-pull + <0x08> : TX1 invert + <0x10> : TX1 pull-down + <0x20> : TX1 pull-up + <0x30> : TX1 push-pull + + nxp,clock-out-frequency: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + clock frequency in Hz on the CLKOUT pin. + If not specified or if the specified value is 0, the CLKOUT pin + will be disabled. + + nxp,no-comparator-bypass: + type: boolean + description: Allows to disable the CAN input comparator. + +required: + - compatible + - reg + - interrupts + +allOf: + - $ref: can-controller.yaml# + - if: + properties: + compatible: + contains: + enum: + - technologic,sja1000 + - renesas,rzn1-sja1000 + then: + required: + - reg-io-width + - if: + properties: + compatible: + contains: + const: renesas,rzn1-sja1000 + then: + required: + - clocks + - power-domains + +unevaluatedProperties: false + +examples: + - | + can@1a000 { + compatible = "technologic,sja1000"; + reg = <0x1a000 0x100>; + interrupts = <1>; + reg-io-width = <2>; + nxp,tx-output-config = <0x06>; + nxp,external-clock-frequency = <24000000>; + }; + + - | + #include + #include + + can@52104000 { + compatible = "renesas,r9a06g032-sja1000", "renesas,rzn1-sja1000"; + reg = <0x52104000 0x800>; + reg-io-width = <4>; + interrupts = ; + clocks = <&sysctrl R9A06G032_HCLK_CAN0>; + power-domains = <&sysctrl>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/can/renesas,rcar-can.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/can/renesas,rcar-can.yaml index c560d6032..fadc871fd 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/can/renesas,rcar-can.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/can/renesas,rcar-can.yaml @@ -1,139 +1,139 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/can/renesas,rcar-can.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas R-Car CAN Controller - -maintainers: - - Sergei Shtylyov - -properties: - compatible: - oneOf: - - items: - - enum: - - renesas,can-r8a7778 # R-Car M1-A - - renesas,can-r8a7779 # R-Car H1 - - const: renesas,rcar-gen1-can # R-Car Gen1 - - - items: - - enum: - - renesas,can-r8a7742 # RZ/G1H - - renesas,can-r8a7743 # RZ/G1M - - renesas,can-r8a7744 # RZ/G1N - - renesas,can-r8a7745 # RZ/G1E - - renesas,can-r8a77470 # RZ/G1C - - renesas,can-r8a7790 # R-Car H2 - - renesas,can-r8a7791 # R-Car M2-W - - renesas,can-r8a7792 # R-Car V2H - - renesas,can-r8a7793 # R-Car M2-N - - renesas,can-r8a7794 # R-Car E2 - - const: renesas,rcar-gen2-can # R-Car Gen2 and RZ/G1 - - - items: - - enum: - - renesas,can-r8a774a1 # RZ/G2M - - renesas,can-r8a774b1 # RZ/G2N - - renesas,can-r8a774c0 # RZ/G2E - - renesas,can-r8a774e1 # RZ/G2H - - renesas,can-r8a7795 # R-Car H3 - - renesas,can-r8a7796 # R-Car M3-W - - renesas,can-r8a77961 # R-Car M3-W+ - - renesas,can-r8a77965 # R-Car M3-N - - renesas,can-r8a77990 # R-Car E3 - - renesas,can-r8a77995 # R-Car D3 - - const: renesas,rcar-gen3-can # R-Car Gen3 and RZ/G2 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - maxItems: 3 - - clock-names: - items: - - const: clkp1 - - const: clkp2 - - const: can_clk - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - renesas,can-clock-select: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [ 0, 1, 3 ] - default: 0 - description: | - R-Car CAN Clock Source Select. Valid values are: - <0x0> (default) : Peripheral clock (clkp1) - <0x1> : Peripheral clock (clkp2) - <0x3> : External input clock - - assigned-clocks: - description: - Reference to the clkp2 (CANFD) clock. - On R-Car Gen3 and RZ/G2 SoCs, "clkp2" is the CANFD clock. This is a div6 - clock and can be used by both CAN and CAN FD controllers at the same - time. It needs to be scaled to maximum frequency if any of these - controllers use it. - - assigned-clock-rates: - description: Maximum frequency of the CANFD clock. - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - - power-domains - -allOf: - - $ref: can-controller.yaml# - - - if: - not: - properties: - compatible: - contains: - const: renesas,rcar-gen1-can - then: - required: - - resets - - - if: - properties: - compatible: - contains: - const: renesas,rcar-gen3-can - then: - required: - - assigned-clocks - - assigned-clock-rates - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - - can0: can@e6e80000 { - compatible = "renesas,can-r8a7791", "renesas,rcar-gen2-can"; - reg = <0xe6e80000 0x1000>; - interrupts = ; - clocks = <&cpg CPG_MOD 916>, - <&cpg CPG_CORE R8A7791_CLK_RCAN>, <&can_clk>; - clock-names = "clkp1", "clkp2", "can_clk"; - power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; - resets = <&cpg 916>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/can/renesas,rcar-can.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas R-Car CAN Controller + +maintainers: + - Sergei Shtylyov + +properties: + compatible: + oneOf: + - items: + - enum: + - renesas,can-r8a7778 # R-Car M1-A + - renesas,can-r8a7779 # R-Car H1 + - const: renesas,rcar-gen1-can # R-Car Gen1 + + - items: + - enum: + - renesas,can-r8a7742 # RZ/G1H + - renesas,can-r8a7743 # RZ/G1M + - renesas,can-r8a7744 # RZ/G1N + - renesas,can-r8a7745 # RZ/G1E + - renesas,can-r8a77470 # RZ/G1C + - renesas,can-r8a7790 # R-Car H2 + - renesas,can-r8a7791 # R-Car M2-W + - renesas,can-r8a7792 # R-Car V2H + - renesas,can-r8a7793 # R-Car M2-N + - renesas,can-r8a7794 # R-Car E2 + - const: renesas,rcar-gen2-can # R-Car Gen2 and RZ/G1 + + - items: + - enum: + - renesas,can-r8a774a1 # RZ/G2M + - renesas,can-r8a774b1 # RZ/G2N + - renesas,can-r8a774c0 # RZ/G2E + - renesas,can-r8a774e1 # RZ/G2H + - renesas,can-r8a7795 # R-Car H3 + - renesas,can-r8a7796 # R-Car M3-W + - renesas,can-r8a77961 # R-Car M3-W+ + - renesas,can-r8a77965 # R-Car M3-N + - renesas,can-r8a77990 # R-Car E3 + - renesas,can-r8a77995 # R-Car D3 + - const: renesas,rcar-gen3-can # R-Car Gen3 and RZ/G2 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 3 + + clock-names: + items: + - const: clkp1 + - const: clkp2 + - const: can_clk + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + renesas,can-clock-select: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 0, 1, 3 ] + default: 0 + description: | + R-Car CAN Clock Source Select. Valid values are: + <0x0> (default) : Peripheral clock (clkp1) + <0x1> : Peripheral clock (clkp2) + <0x3> : External input clock + + assigned-clocks: + description: + Reference to the clkp2 (CANFD) clock. + On R-Car Gen3 and RZ/G2 SoCs, "clkp2" is the CANFD clock. This is a div6 + clock and can be used by both CAN and CAN FD controllers at the same + time. It needs to be scaled to maximum frequency if any of these + controllers use it. + + assigned-clock-rates: + description: Maximum frequency of the CANFD clock. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - power-domains + +allOf: + - $ref: can-controller.yaml# + + - if: + not: + properties: + compatible: + contains: + const: renesas,rcar-gen1-can + then: + required: + - resets + + - if: + properties: + compatible: + contains: + const: renesas,rcar-gen3-can + then: + required: + - assigned-clocks + - assigned-clock-rates + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + can0: can@e6e80000 { + compatible = "renesas,can-r8a7791", "renesas,rcar-gen2-can"; + reg = <0xe6e80000 0x1000>; + interrupts = ; + clocks = <&cpg CPG_MOD 916>, + <&cpg CPG_CORE R8A7791_CLK_RCAN>, <&can_clk>; + clock-names = "clkp1", "clkp2", "can_clk"; + power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; + resets = <&cpg 916>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/can/xilinx,can.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/can/xilinx,can.yaml index f718f254d..408354970 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/can/xilinx,can.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/can/xilinx,can.yaml @@ -1,169 +1,169 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/can/xilinx,can.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: - Xilinx CAN and CANFD controller - -maintainers: - - Appana Durga Kedareswara rao - -properties: - compatible: - enum: - - xlnx,zynq-can-1.0 - - xlnx,axi-can-1.00.a - - xlnx,canfd-1.0 - - xlnx,canfd-2.0 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 2 - - clock-names: - maxItems: 2 - - power-domains: - maxItems: 1 - - tx-fifo-depth: - $ref: /schemas/types.yaml#/definitions/uint32 - description: CAN Tx fifo depth (Zynq, Axi CAN). - - rx-fifo-depth: - $ref: /schemas/types.yaml#/definitions/uint32 - description: CAN Rx fifo depth (Zynq, Axi CAN, CAN FD in sequential Rx mode) - - tx-mailbox-count: - $ref: /schemas/types.yaml#/definitions/uint32 - description: CAN Tx mailbox buffer count (CAN FD) - - resets: - maxItems: 1 - - xlnx,has-ecc: - $ref: /schemas/types.yaml#/definitions/flag - description: CAN TX_OL, TX_TL and RX FIFOs have ECC support(AXI CAN) - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - -unevaluatedProperties: false - -allOf: - - $ref: can-controller.yaml# - - if: - properties: - compatible: - contains: - enum: - - xlnx,zynq-can-1.0 - - then: - properties: - clock-names: - items: - - const: can_clk - - const: pclk - required: - - tx-fifo-depth - - rx-fifo-depth - - - if: - properties: - compatible: - contains: - enum: - - xlnx,axi-can-1.00.a - - then: - properties: - clock-names: - items: - - const: can_clk - - const: s_axi_aclk - required: - - tx-fifo-depth - - rx-fifo-depth - - - if: - properties: - compatible: - contains: - enum: - - xlnx,canfd-1.0 - - xlnx,canfd-2.0 - - then: - properties: - clock-names: - items: - - const: can_clk - - const: s_axi_aclk - required: - - tx-mailbox-count - - rx-fifo-depth - -examples: - - | - #include - - can@e0008000 { - compatible = "xlnx,zynq-can-1.0"; - reg = <0xe0008000 0x1000>; - clocks = <&clkc 19>, <&clkc 36>; - clock-names = "can_clk", "pclk"; - interrupts = ; - interrupt-parent = <&intc>; - tx-fifo-depth = <0x40>; - rx-fifo-depth = <0x40>; - }; - - - | - can@40000000 { - compatible = "xlnx,axi-can-1.00.a"; - reg = <0x40000000 0x10000>; - clocks = <&clkc 0>, <&clkc 1>; - clock-names = "can_clk", "s_axi_aclk"; - interrupt-parent = <&intc>; - interrupts = ; - tx-fifo-depth = <0x40>; - rx-fifo-depth = <0x40>; - xlnx,has-ecc; - }; - - - | - can@40000000 { - compatible = "xlnx,canfd-1.0"; - reg = <0x40000000 0x2000>; - clocks = <&clkc 0>, <&clkc 1>; - clock-names = "can_clk", "s_axi_aclk"; - interrupt-parent = <&intc>; - interrupts = ; - tx-mailbox-count = <0x20>; - rx-fifo-depth = <0x20>; - }; - - - | - can@ff060000 { - compatible = "xlnx,canfd-2.0"; - reg = <0xff060000 0x6000>; - clocks = <&clkc 0>, <&clkc 1>; - clock-names = "can_clk", "s_axi_aclk"; - interrupt-parent = <&intc>; - interrupts = ; - tx-mailbox-count = <0x20>; - rx-fifo-depth = <0x40>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/can/xilinx,can.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: + Xilinx CAN and CANFD controller + +maintainers: + - Appana Durga Kedareswara rao + +properties: + compatible: + enum: + - xlnx,zynq-can-1.0 + - xlnx,axi-can-1.00.a + - xlnx,canfd-1.0 + - xlnx,canfd-2.0 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + maxItems: 2 + + power-domains: + maxItems: 1 + + tx-fifo-depth: + $ref: /schemas/types.yaml#/definitions/uint32 + description: CAN Tx fifo depth (Zynq, Axi CAN). + + rx-fifo-depth: + $ref: /schemas/types.yaml#/definitions/uint32 + description: CAN Rx fifo depth (Zynq, Axi CAN, CAN FD in sequential Rx mode) + + tx-mailbox-count: + $ref: /schemas/types.yaml#/definitions/uint32 + description: CAN Tx mailbox buffer count (CAN FD) + + resets: + maxItems: 1 + + xlnx,has-ecc: + $ref: /schemas/types.yaml#/definitions/flag + description: CAN TX_OL, TX_TL and RX FIFOs have ECC support(AXI CAN) + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +unevaluatedProperties: false + +allOf: + - $ref: can-controller.yaml# + - if: + properties: + compatible: + contains: + enum: + - xlnx,zynq-can-1.0 + + then: + properties: + clock-names: + items: + - const: can_clk + - const: pclk + required: + - tx-fifo-depth + - rx-fifo-depth + + - if: + properties: + compatible: + contains: + enum: + - xlnx,axi-can-1.00.a + + then: + properties: + clock-names: + items: + - const: can_clk + - const: s_axi_aclk + required: + - tx-fifo-depth + - rx-fifo-depth + + - if: + properties: + compatible: + contains: + enum: + - xlnx,canfd-1.0 + - xlnx,canfd-2.0 + + then: + properties: + clock-names: + items: + - const: can_clk + - const: s_axi_aclk + required: + - tx-mailbox-count + - rx-fifo-depth + +examples: + - | + #include + + can@e0008000 { + compatible = "xlnx,zynq-can-1.0"; + reg = <0xe0008000 0x1000>; + clocks = <&clkc 19>, <&clkc 36>; + clock-names = "can_clk", "pclk"; + interrupts = ; + interrupt-parent = <&intc>; + tx-fifo-depth = <0x40>; + rx-fifo-depth = <0x40>; + }; + + - | + can@40000000 { + compatible = "xlnx,axi-can-1.00.a"; + reg = <0x40000000 0x10000>; + clocks = <&clkc 0>, <&clkc 1>; + clock-names = "can_clk", "s_axi_aclk"; + interrupt-parent = <&intc>; + interrupts = ; + tx-fifo-depth = <0x40>; + rx-fifo-depth = <0x40>; + xlnx,has-ecc; + }; + + - | + can@40000000 { + compatible = "xlnx,canfd-1.0"; + reg = <0x40000000 0x2000>; + clocks = <&clkc 0>, <&clkc 1>; + clock-names = "can_clk", "s_axi_aclk"; + interrupt-parent = <&intc>; + interrupts = ; + tx-mailbox-count = <0x20>; + rx-fifo-depth = <0x20>; + }; + + - | + can@ff060000 { + compatible = "xlnx,canfd-2.0"; + reg = <0xff060000 0x6000>; + clocks = <&clkc 0>, <&clkc 1>; + clock-names = "can_clk", "s_axi_aclk"; + interrupt-parent = <&intc>; + interrupts = ; + tx-mailbox-count = <0x20>; + rx-fifo-depth = <0x40>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/cortina,gemini-ethernet.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/cortina,gemini-ethernet.yaml index 46c390c2c..44fd23a5f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/cortina,gemini-ethernet.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/cortina,gemini-ethernet.yaml @@ -1,138 +1,138 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/cortina,gemini-ethernet.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Cortina Systems Gemini Ethernet Controller - -maintainers: - - Linus Walleij - -description: | - This ethernet controller is found in the Gemini SoC family: - StorLink SL3512 and SL3516, also known as Cortina Systems - CS3512 and CS3516. - -properties: - compatible: - const: cortina,gemini-ethernet - - reg: - minItems: 3 - description: must contain the global registers and the V-bit and A-bit - memory areas, in total three register sets. - - "#address-cells": - const: 1 - - "#size-cells": - const: 1 - - ranges: true - -# The subnodes represents the two ethernet ports in this device. -# They are not independent of each other since they share resources -# in the parent node, and are thus children. -patternProperties: - "^ethernet-port@[0-9]+$": - type: object - unevaluatedProperties: false - description: contains the resources for ethernet port - allOf: - - $ref: ethernet-controller.yaml# - properties: - compatible: - const: cortina,gemini-ethernet-port - - reg: - items: - - description: DMA/TOE memory - - description: GMAC memory area of the port - - interrupts: - maxItems: 1 - description: should contain the interrupt line of the port. - this is nominally a level interrupt active high. - - resets: - maxItems: 1 - description: this must provide an SoC-integrated reset line for the port. - - clocks: - maxItems: 1 - description: this should contain a handle to the PCLK clock for - clocking the silicon in this port - - clock-names: - const: PCLK - - required: - - reg - - compatible - - interrupts - - resets - - clocks - - clock-names - -required: - - compatible - - reg - - ranges - -additionalProperties: false - -examples: - - | - #include - #include - #include - mdio0: mdio { - #address-cells = <1>; - #size-cells = <0>; - phy0: ethernet-phy@1 { - reg = <1>; - device_type = "ethernet-phy"; - }; - phy1: ethernet-phy@3 { - reg = <3>; - device_type = "ethernet-phy"; - }; - }; - - - ethernet@60000000 { - compatible = "cortina,gemini-ethernet"; - reg = <0x60000000 0x4000>, /* Global registers, queue */ - <0x60004000 0x2000>, /* V-bit */ - <0x60006000 0x2000>; /* A-bit */ - #address-cells = <1>; - #size-cells = <1>; - ranges; - - gmac0: ethernet-port@0 { - compatible = "cortina,gemini-ethernet-port"; - reg = <0x60008000 0x2000>, /* Port 0 DMA/TOE */ - <0x6000a000 0x2000>; /* Port 0 GMAC */ - interrupt-parent = <&intcon>; - interrupts = <1 IRQ_TYPE_LEVEL_HIGH>; - resets = <&syscon GEMINI_RESET_GMAC0>; - clocks = <&syscon GEMINI_CLK_GATE_GMAC0>; - clock-names = "PCLK"; - phy-mode = "rgmii"; - phy-handle = <&phy0>; - }; - - gmac1: ethernet-port@1 { - compatible = "cortina,gemini-ethernet-port"; - reg = <0x6000c000 0x2000>, /* Port 1 DMA/TOE */ - <0x6000e000 0x2000>; /* Port 1 GMAC */ - interrupt-parent = <&intcon>; - interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; - resets = <&syscon GEMINI_RESET_GMAC1>; - clocks = <&syscon GEMINI_CLK_GATE_GMAC1>; - clock-names = "PCLK"; - phy-mode = "rgmii"; - phy-handle = <&phy1>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/cortina,gemini-ethernet.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cortina Systems Gemini Ethernet Controller + +maintainers: + - Linus Walleij + +description: | + This ethernet controller is found in the Gemini SoC family: + StorLink SL3512 and SL3516, also known as Cortina Systems + CS3512 and CS3516. + +properties: + compatible: + const: cortina,gemini-ethernet + + reg: + minItems: 3 + description: must contain the global registers and the V-bit and A-bit + memory areas, in total three register sets. + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + ranges: true + +# The subnodes represents the two ethernet ports in this device. +# They are not independent of each other since they share resources +# in the parent node, and are thus children. +patternProperties: + "^ethernet-port@[0-9]+$": + type: object + unevaluatedProperties: false + description: contains the resources for ethernet port + allOf: + - $ref: ethernet-controller.yaml# + properties: + compatible: + const: cortina,gemini-ethernet-port + + reg: + items: + - description: DMA/TOE memory + - description: GMAC memory area of the port + + interrupts: + maxItems: 1 + description: should contain the interrupt line of the port. + this is nominally a level interrupt active high. + + resets: + maxItems: 1 + description: this must provide an SoC-integrated reset line for the port. + + clocks: + maxItems: 1 + description: this should contain a handle to the PCLK clock for + clocking the silicon in this port + + clock-names: + const: PCLK + + required: + - reg + - compatible + - interrupts + - resets + - clocks + - clock-names + +required: + - compatible + - reg + - ranges + +additionalProperties: false + +examples: + - | + #include + #include + #include + mdio0: mdio { + #address-cells = <1>; + #size-cells = <0>; + phy0: ethernet-phy@1 { + reg = <1>; + device_type = "ethernet-phy"; + }; + phy1: ethernet-phy@3 { + reg = <3>; + device_type = "ethernet-phy"; + }; + }; + + + ethernet@60000000 { + compatible = "cortina,gemini-ethernet"; + reg = <0x60000000 0x4000>, /* Global registers, queue */ + <0x60004000 0x2000>, /* V-bit */ + <0x60006000 0x2000>; /* A-bit */ + #address-cells = <1>; + #size-cells = <1>; + ranges; + + gmac0: ethernet-port@0 { + compatible = "cortina,gemini-ethernet-port"; + reg = <0x60008000 0x2000>, /* Port 0 DMA/TOE */ + <0x6000a000 0x2000>; /* Port 0 GMAC */ + interrupt-parent = <&intcon>; + interrupts = <1 IRQ_TYPE_LEVEL_HIGH>; + resets = <&syscon GEMINI_RESET_GMAC0>; + clocks = <&syscon GEMINI_CLK_GATE_GMAC0>; + clock-names = "PCLK"; + phy-mode = "rgmii"; + phy-handle = <&phy0>; + }; + + gmac1: ethernet-port@1 { + compatible = "cortina,gemini-ethernet-port"; + reg = <0x6000c000 0x2000>, /* Port 1 DMA/TOE */ + <0x6000e000 0x2000>; /* Port 1 GMAC */ + interrupt-parent = <&intcon>; + interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; + resets = <&syscon GEMINI_RESET_GMAC1>; + clocks = <&syscon GEMINI_CLK_GATE_GMAC1>; + clock-names = "PCLK"; + phy-mode = "rgmii"; + phy-handle = <&phy1>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/cpsw.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/cpsw.txt index d8fdf8660..ef655f386 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/cpsw.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/cpsw.txt @@ -1,132 +1,132 @@ -TI SoC Ethernet Switch Controller Device Tree Bindings ------------------------------------------------------- - -Required properties: -- compatible : Should be one of the below:- - "ti,cpsw" for backward compatible - "ti,am335x-cpsw" for AM335x controllers - "ti,am4372-cpsw" for AM437x controllers - "ti,dra7-cpsw" for DRA7x controllers -- reg : physical base address and size of the cpsw - registers map -- interrupts : property with a value describing the interrupt - number -- cpdma_channels : Specifies number of channels in CPDMA -- ale_entries : Specifies No of entries ALE can hold -- bd_ram_size : Specifies internal descriptor RAM size -- mac_control : Specifies Default MAC control register content - for the specific platform -- slaves : Specifies number for slaves -- active_slave : Specifies the slave to use for time stamping, - ethtool and SIOCGMIIPHY -- cpsw-phy-sel : Specifies the phandle to the CPSW phy mode selection - device. See also cpsw-phy-sel.txt for its binding. - Note that in legacy cases cpsw-phy-sel may be - a child device instead of a phandle - (DEPRECATED, use phys property instead). - -Optional properties: -- ti,hwmods : Must be "cpgmac0" -- dual_emac : Specifies Switch to act as Dual EMAC -- syscon : Phandle to the system control device node, which is - the control module device of the am33x -- mode-gpios : Should be added if one/multiple gpio lines are - required to be driven so that cpsw data lines - can be connected to the phy via selective mux. - For example in dra72x-evm, pcf gpio has to be - driven low so that cpsw slave 0 and phy data - lines are connected via mux. -- cpts_clock_mult : Numerator to convert input clock ticks into nanoseconds -- cpts_clock_shift : Denominator to convert input clock ticks into nanoseconds - Mult and shift will be calculated basing on CPTS - rftclk frequency if both cpts_clock_shift and - cpts_clock_mult properties are not provided. - -Slave Properties: -Required properties: -- phy-mode : See ethernet.txt file in the same directory -- phys : phandle on phy-gmii-sel PHY (see phy/ti-phy-gmii-sel.txt) - -Optional properties: -- dual_emac_res_vlan : Specifies VID to be used to segregate the ports -- phy_id : Specifies slave phy id (deprecated, use phy-handle) -- phy-handle : See ethernet.txt file in the same directory - -The MAC address will be determined using the optional properties -defined in ethernet.txt. - -Slave sub-nodes: -- fixed-link : See fixed-link.txt file in the same directory - -Note: Exactly one of phy_id, phy-handle, or fixed-link must be specified. - -Note: "ti,hwmods" field is used to fetch the base address and irq -resources from TI, omap hwmod data base during device registration. -Future plan is to migrate hwmod data base contents into device tree -blob so that, all the required data will be used from device tree dts -file. - -Examples: - - mac: ethernet@4a100000 { - compatible = "ti,cpsw"; - reg = <0x4A100000 0x1000>; - interrupts = <55 0x4>; - interrupt-parent = <&intc>; - cpdma_channels = <8>; - ale_entries = <1024>; - bd_ram_size = <0x2000>; - rx_descs = <64>; - mac_control = <0x20>; - slaves = <2>; - active_slave = <0>; - cpts_clock_mult = <0x80000000>; - cpts_clock_shift = <29>; - syscon = <&cm>; - cpsw-phy-sel = <&phy_sel>; - cpsw_emac0: slave@0 { - phy_id = <&davinci_mdio>, <0>; - phy-mode = "rgmii-txid"; - /* Filled in by U-Boot */ - mac-address = [ 00 00 00 00 00 00 ]; - phys = <&phy_gmii_sel 1 0>; - }; - cpsw_emac1: slave@1 { - phy_id = <&davinci_mdio>, <1>; - phy-mode = "rgmii-txid"; - /* Filled in by U-Boot */ - mac-address = [ 00 00 00 00 00 00 ]; - phys = <&phy_gmii_sel 2 0>; - }; - }; - -(or) - mac: ethernet@4a100000 { - compatible = "ti,cpsw"; - ti,hwmods = "cpgmac0"; - cpdma_channels = <8>; - ale_entries = <1024>; - bd_ram_size = <0x2000>; - rx_descs = <64>; - mac_control = <0x20>; - slaves = <2>; - active_slave = <0>; - cpts_clock_mult = <0x80000000>; - cpts_clock_shift = <29>; - syscon = <&cm>; - cpsw-phy-sel = <&phy_sel>; - cpsw_emac0: slave@0 { - phy_id = <&davinci_mdio>, <0>; - phy-mode = "rgmii-txid"; - /* Filled in by U-Boot */ - mac-address = [ 00 00 00 00 00 00 ]; - phys = <&phy_gmii_sel 1 0>; - }; - cpsw_emac1: slave@1 { - phy_id = <&davinci_mdio>, <1>; - phy-mode = "rgmii-txid"; - /* Filled in by U-Boot */ - mac-address = [ 00 00 00 00 00 00 ]; - phys = <&phy_gmii_sel 2 0>; - }; - }; +TI SoC Ethernet Switch Controller Device Tree Bindings +------------------------------------------------------ + +Required properties: +- compatible : Should be one of the below:- + "ti,cpsw" for backward compatible + "ti,am335x-cpsw" for AM335x controllers + "ti,am4372-cpsw" for AM437x controllers + "ti,dra7-cpsw" for DRA7x controllers +- reg : physical base address and size of the cpsw + registers map +- interrupts : property with a value describing the interrupt + number +- cpdma_channels : Specifies number of channels in CPDMA +- ale_entries : Specifies No of entries ALE can hold +- bd_ram_size : Specifies internal descriptor RAM size +- mac_control : Specifies Default MAC control register content + for the specific platform +- slaves : Specifies number for slaves +- active_slave : Specifies the slave to use for time stamping, + ethtool and SIOCGMIIPHY +- cpsw-phy-sel : Specifies the phandle to the CPSW phy mode selection + device. See also cpsw-phy-sel.txt for its binding. + Note that in legacy cases cpsw-phy-sel may be + a child device instead of a phandle + (DEPRECATED, use phys property instead). + +Optional properties: +- ti,hwmods : Must be "cpgmac0" +- dual_emac : Specifies Switch to act as Dual EMAC +- syscon : Phandle to the system control device node, which is + the control module device of the am33x +- mode-gpios : Should be added if one/multiple gpio lines are + required to be driven so that cpsw data lines + can be connected to the phy via selective mux. + For example in dra72x-evm, pcf gpio has to be + driven low so that cpsw slave 0 and phy data + lines are connected via mux. +- cpts_clock_mult : Numerator to convert input clock ticks into nanoseconds +- cpts_clock_shift : Denominator to convert input clock ticks into nanoseconds + Mult and shift will be calculated basing on CPTS + rftclk frequency if both cpts_clock_shift and + cpts_clock_mult properties are not provided. + +Slave Properties: +Required properties: +- phy-mode : See ethernet.txt file in the same directory +- phys : phandle on phy-gmii-sel PHY (see phy/ti-phy-gmii-sel.txt) + +Optional properties: +- dual_emac_res_vlan : Specifies VID to be used to segregate the ports +- phy_id : Specifies slave phy id (deprecated, use phy-handle) +- phy-handle : See ethernet.txt file in the same directory + +The MAC address will be determined using the optional properties +defined in ethernet.txt. + +Slave sub-nodes: +- fixed-link : See fixed-link.txt file in the same directory + +Note: Exactly one of phy_id, phy-handle, or fixed-link must be specified. + +Note: "ti,hwmods" field is used to fetch the base address and irq +resources from TI, omap hwmod data base during device registration. +Future plan is to migrate hwmod data base contents into device tree +blob so that, all the required data will be used from device tree dts +file. + +Examples: + + mac: ethernet@4a100000 { + compatible = "ti,cpsw"; + reg = <0x4A100000 0x1000>; + interrupts = <55 0x4>; + interrupt-parent = <&intc>; + cpdma_channels = <8>; + ale_entries = <1024>; + bd_ram_size = <0x2000>; + rx_descs = <64>; + mac_control = <0x20>; + slaves = <2>; + active_slave = <0>; + cpts_clock_mult = <0x80000000>; + cpts_clock_shift = <29>; + syscon = <&cm>; + cpsw-phy-sel = <&phy_sel>; + cpsw_emac0: slave@0 { + phy_id = <&davinci_mdio>, <0>; + phy-mode = "rgmii-txid"; + /* Filled in by U-Boot */ + mac-address = [ 00 00 00 00 00 00 ]; + phys = <&phy_gmii_sel 1 0>; + }; + cpsw_emac1: slave@1 { + phy_id = <&davinci_mdio>, <1>; + phy-mode = "rgmii-txid"; + /* Filled in by U-Boot */ + mac-address = [ 00 00 00 00 00 00 ]; + phys = <&phy_gmii_sel 2 0>; + }; + }; + +(or) + mac: ethernet@4a100000 { + compatible = "ti,cpsw"; + ti,hwmods = "cpgmac0"; + cpdma_channels = <8>; + ale_entries = <1024>; + bd_ram_size = <0x2000>; + rx_descs = <64>; + mac_control = <0x20>; + slaves = <2>; + active_slave = <0>; + cpts_clock_mult = <0x80000000>; + cpts_clock_shift = <29>; + syscon = <&cm>; + cpsw-phy-sel = <&phy_sel>; + cpsw_emac0: slave@0 { + phy_id = <&davinci_mdio>, <0>; + phy-mode = "rgmii-txid"; + /* Filled in by U-Boot */ + mac-address = [ 00 00 00 00 00 00 ]; + phys = <&phy_gmii_sel 1 0>; + }; + cpsw_emac1: slave@1 { + phy_id = <&davinci_mdio>, <1>; + phy-mode = "rgmii-txid"; + /* Filled in by U-Boot */ + mac-address = [ 00 00 00 00 00 00 ]; + phys = <&phy_gmii_sel 2 0>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml index 77b41d489..f21bdd0f4 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml @@ -1,167 +1,167 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/dsa/brcm,sf2.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Broadcom Starfighter 2 integrated switch - -maintainers: - - Florian Fainelli - -properties: - compatible: - items: - - enum: - - brcm,bcm4908-switch - - brcm,bcm7278-switch-v4.0 - - brcm,bcm7278-switch-v4.8 - - brcm,bcm7445-switch-v4.0 - - reg: - minItems: 6 - maxItems: 6 - - reg-names: - items: - - const: core - - const: reg - - const: intrl2_0 - - const: intrl2_1 - - const: fcb - - const: acb - - interrupts: - minItems: 2 - maxItems: 2 - - interrupt-names: - items: - - const: switch_0 - - const: switch_1 - - resets: - maxItems: 1 - - reset-names: - const: switch - - clocks: - minItems: 1 - items: - - description: switch's main clock - - description: dividing of the switch core clock - - clock-names: - minItems: 1 - items: - - const: sw_switch - - const: sw_switch_mdiv - - brcm,num-gphy: - $ref: /schemas/types.yaml#/definitions/uint32 - description: maximum number of integrated gigabit PHYs in the switch - - brcm,num-rgmii-ports: - $ref: /schemas/types.yaml#/definitions/uint32 - description: maximum number of RGMII interfaces supported by the switch - - brcm,fcb-pause-override: - description: if present indicates that the switch supports Failover Control - Block pause override capability - type: boolean - - brcm,acb-packets-inflight: - description: if present indicates that the switch Admission Control Block - supports reporting the number of packets in-flight in a switch queue - type: boolean - - ports: - type: object - additionalProperties: true - - patternProperties: - '^port@[0-9a-f]$': - $ref: dsa-port.yaml# - unevaluatedProperties: false - - properties: - brcm,use-bcm-hdr: - description: if present, indicates that the switch port has Broadcom - tags enabled (per-packet metadata) - type: boolean - -required: - - reg - - interrupts - -allOf: - - $ref: dsa.yaml# - - if: - properties: - compatible: - contains: - enum: - - brcm,bcm7278-switch-v4.0 - - brcm,bcm7278-switch-v4.8 - then: - properties: - clocks: - minItems: 1 - maxItems: 1 - clock-names: - minItems: 1 - maxItems: 1 - required: - - clocks - - clock-names - - if: - properties: - compatible: - contains: - const: brcm,bcm7445-switch-v4.0 - then: - properties: - clocks: - minItems: 2 - maxItems: 2 - clock-names: - minItems: 2 - maxItems: 2 - required: - - clocks - - clock-names - -additionalProperties: false - -examples: - - | - switch@f0b00000 { - compatible = "brcm,bcm7445-switch-v4.0"; - reg = <0xf0b00000 0x40000>, - <0xf0b40000 0x110>, - <0xf0b40340 0x30>, - <0xf0b40380 0x30>, - <0xf0b40400 0x34>, - <0xf0b40600 0x208>; - reg-names = "core", "reg", "intrl2_0", "intrl2_1", - "fcb", "acb"; - interrupts = <0 0x18 0>, - <0 0x19 0>; - clocks = <&sw_switch>, <&sw_switch_mdiv>; - clock-names = "sw_switch", "sw_switch_mdiv"; - brcm,num-gphy = <1>; - brcm,num-rgmii-ports = <2>; - brcm,fcb-pause-override; - brcm,acb-packets-inflight; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - label = "gphy"; - reg = <0>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/dsa/brcm,sf2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Starfighter 2 integrated switch + +maintainers: + - Florian Fainelli + +properties: + compatible: + items: + - enum: + - brcm,bcm4908-switch + - brcm,bcm7278-switch-v4.0 + - brcm,bcm7278-switch-v4.8 + - brcm,bcm7445-switch-v4.0 + + reg: + minItems: 6 + maxItems: 6 + + reg-names: + items: + - const: core + - const: reg + - const: intrl2_0 + - const: intrl2_1 + - const: fcb + - const: acb + + interrupts: + minItems: 2 + maxItems: 2 + + interrupt-names: + items: + - const: switch_0 + - const: switch_1 + + resets: + maxItems: 1 + + reset-names: + const: switch + + clocks: + minItems: 1 + items: + - description: switch's main clock + - description: dividing of the switch core clock + + clock-names: + minItems: 1 + items: + - const: sw_switch + - const: sw_switch_mdiv + + brcm,num-gphy: + $ref: /schemas/types.yaml#/definitions/uint32 + description: maximum number of integrated gigabit PHYs in the switch + + brcm,num-rgmii-ports: + $ref: /schemas/types.yaml#/definitions/uint32 + description: maximum number of RGMII interfaces supported by the switch + + brcm,fcb-pause-override: + description: if present indicates that the switch supports Failover Control + Block pause override capability + type: boolean + + brcm,acb-packets-inflight: + description: if present indicates that the switch Admission Control Block + supports reporting the number of packets in-flight in a switch queue + type: boolean + + ports: + type: object + additionalProperties: true + + patternProperties: + '^port@[0-9a-f]$': + $ref: dsa-port.yaml# + unevaluatedProperties: false + + properties: + brcm,use-bcm-hdr: + description: if present, indicates that the switch port has Broadcom + tags enabled (per-packet metadata) + type: boolean + +required: + - reg + - interrupts + +allOf: + - $ref: dsa.yaml# + - if: + properties: + compatible: + contains: + enum: + - brcm,bcm7278-switch-v4.0 + - brcm,bcm7278-switch-v4.8 + then: + properties: + clocks: + minItems: 1 + maxItems: 1 + clock-names: + minItems: 1 + maxItems: 1 + required: + - clocks + - clock-names + - if: + properties: + compatible: + contains: + const: brcm,bcm7445-switch-v4.0 + then: + properties: + clocks: + minItems: 2 + maxItems: 2 + clock-names: + minItems: 2 + maxItems: 2 + required: + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + switch@f0b00000 { + compatible = "brcm,bcm7445-switch-v4.0"; + reg = <0xf0b00000 0x40000>, + <0xf0b40000 0x110>, + <0xf0b40340 0x30>, + <0xf0b40380 0x30>, + <0xf0b40400 0x34>, + <0xf0b40600 0x208>; + reg-names = "core", "reg", "intrl2_0", "intrl2_1", + "fcb", "acb"; + interrupts = <0 0x18 0>, + <0 0x19 0>; + clocks = <&sw_switch>, <&sw_switch_mdiv>; + clock-names = "sw_switch", "sw_switch_mdiv"; + brcm,num-gphy = <1>; + brcm,num-rgmii-ports = <2>; + brcm,fcb-pause-override; + brcm,acb-packets-inflight; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + label = "gphy"; + reg = <0>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/dsa/qca,ar9331.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/dsa/qca,ar9331.yaml index 835cfaaf2..fd9ddc59d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/dsa/qca,ar9331.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/dsa/qca,ar9331.yaml @@ -1,161 +1,161 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/dsa/qca,ar9331.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Atheros AR9331 built-in switch - -maintainers: - - Oleksij Rempel - -description: - Qualcomm Atheros AR9331 is a switch built-in to Atheros AR9331 WiSoC and - addressable over internal MDIO bus. All PHYs are built-in as well. - -properties: - compatible: - const: qca,ar9331-switch - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - interrupt-controller: true - - '#interrupt-cells': - const: 1 - - mdio: - $ref: /schemas/net/mdio.yaml# - unevaluatedProperties: false - properties: - interrupt-parent: true - - patternProperties: - '(ethernet-)?phy@[0-4]+$': - type: object - unevaluatedProperties: false - - properties: - reg: true - interrupts: - maxItems: 1 - - resets: - maxItems: 1 - - reset-names: - items: - - const: switch - -required: - - compatible - - reg - - interrupts - - interrupt-controller - - '#interrupt-cells' - - mdio - - ports - - resets - - reset-names - -allOf: - - $ref: dsa.yaml#/$defs/ethernet-ports - -unevaluatedProperties: false - -examples: - - | - mdio { - #address-cells = <1>; - #size-cells = <0>; - - switch10: switch@10 { - compatible = "qca,ar9331-switch"; - reg = <0x10>; - - interrupt-parent = <&miscintc>; - interrupts = <12>; - interrupt-controller; - #interrupt-cells = <1>; - - resets = <&rst 8>; - reset-names = "switch"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0x0>; - ethernet = <ð1>; - - phy-mode = "gmii"; - - fixed-link { - speed = <1000>; - full-duplex; - }; - }; - - port@1 { - reg = <0x1>; - phy-handle = <&phy_port0>; - phy-mode = "internal"; - }; - - port@2 { - reg = <0x2>; - phy-handle = <&phy_port1>; - phy-mode = "internal"; - }; - - port@3 { - reg = <0x3>; - phy-handle = <&phy_port2>; - phy-mode = "internal"; - }; - - port@4 { - reg = <0x4>; - phy-handle = <&phy_port3>; - phy-mode = "internal"; - }; - }; - - mdio { - #address-cells = <1>; - #size-cells = <0>; - - interrupt-parent = <&switch10>; - - phy_port0: ethernet-phy@0 { - reg = <0x0>; - interrupts = <0>; - }; - - phy_port1: ethernet-phy@1 { - reg = <0x1>; - interrupts = <0>; - }; - - phy_port2: ethernet-phy@2 { - reg = <0x2>; - interrupts = <0>; - }; - - phy_port3: ethernet-phy@3 { - reg = <0x3>; - interrupts = <0>; - }; - - phy_port4: ethernet-phy@4 { - reg = <0x4>; - interrupts = <0>; - }; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/dsa/qca,ar9331.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Atheros AR9331 built-in switch + +maintainers: + - Oleksij Rempel + +description: + Qualcomm Atheros AR9331 is a switch built-in to Atheros AR9331 WiSoC and + addressable over internal MDIO bus. All PHYs are built-in as well. + +properties: + compatible: + const: qca,ar9331-switch + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 1 + + mdio: + $ref: /schemas/net/mdio.yaml# + unevaluatedProperties: false + properties: + interrupt-parent: true + + patternProperties: + '(ethernet-)?phy@[0-4]+$': + type: object + unevaluatedProperties: false + + properties: + reg: true + interrupts: + maxItems: 1 + + resets: + maxItems: 1 + + reset-names: + items: + - const: switch + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - '#interrupt-cells' + - mdio + - ports + - resets + - reset-names + +allOf: + - $ref: dsa.yaml#/$defs/ethernet-ports + +unevaluatedProperties: false + +examples: + - | + mdio { + #address-cells = <1>; + #size-cells = <0>; + + switch10: switch@10 { + compatible = "qca,ar9331-switch"; + reg = <0x10>; + + interrupt-parent = <&miscintc>; + interrupts = <12>; + interrupt-controller; + #interrupt-cells = <1>; + + resets = <&rst 8>; + reset-names = "switch"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0x0>; + ethernet = <ð1>; + + phy-mode = "gmii"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + + port@1 { + reg = <0x1>; + phy-handle = <&phy_port0>; + phy-mode = "internal"; + }; + + port@2 { + reg = <0x2>; + phy-handle = <&phy_port1>; + phy-mode = "internal"; + }; + + port@3 { + reg = <0x3>; + phy-handle = <&phy_port2>; + phy-mode = "internal"; + }; + + port@4 { + reg = <0x4>; + phy-handle = <&phy_port3>; + phy-mode = "internal"; + }; + }; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + interrupt-parent = <&switch10>; + + phy_port0: ethernet-phy@0 { + reg = <0x0>; + interrupts = <0>; + }; + + phy_port1: ethernet-phy@1 { + reg = <0x1>; + interrupts = <0>; + }; + + phy_port2: ethernet-phy@2 { + reg = <0x2>; + interrupts = <0>; + }; + + phy_port3: ethernet-phy@3 { + reg = <0x3>; + interrupts = <0>; + }; + + phy_port4: ethernet-phy@4 { + reg = <0x4>; + interrupts = <0>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml index db8ef9992..ea285ef3e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml @@ -1,152 +1,152 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/dsa/renesas,rzn1-a5psw.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas RZ/N1 Advanced 5 ports ethernet switch - -maintainers: - - Clément Léger - -description: | - The advanced 5 ports switch is present on the Renesas RZ/N1 SoC family and - handles 4 ports + 1 CPU management port. - -allOf: - - $ref: dsa.yaml#/$defs/ethernet-ports - -properties: - compatible: - items: - - enum: - - renesas,r9a06g032-a5psw - - const: renesas,rzn1-a5psw - - reg: - maxItems: 1 - - interrupts: - items: - - description: Device Level Ring (DLR) interrupt - - description: Switch interrupt - - description: Parallel Redundancy Protocol (PRP) interrupt - - description: Integrated HUB module interrupt - - description: Receive Pattern Match interrupt - - interrupt-names: - items: - - const: dlr - - const: switch - - const: prp - - const: hub - - const: ptrn - - power-domains: - maxItems: 1 - - mdio: - $ref: /schemas/net/mdio.yaml# - unevaluatedProperties: false - - clocks: - items: - - description: AHB clock used for the switch register interface - - description: Switch system clock - - clock-names: - items: - - const: hclk - - const: clk - - ethernet-ports: - type: object - additionalProperties: true - patternProperties: - "^(ethernet-)?port@[0-4]$": - type: object - additionalProperties: true - properties: - pcs-handle: - maxItems: 1 - description: - phandle pointing to a PCS sub-node compatible with - renesas,rzn1-miic.yaml# - -unevaluatedProperties: false - -required: - - compatible - - reg - - clocks - - clock-names - - power-domains - -examples: - - | - #include - #include - #include - - switch@44050000 { - compatible = "renesas,r9a06g032-a5psw", "renesas,rzn1-a5psw"; - reg = <0x44050000 0x10000>; - clocks = <&sysctrl R9A06G032_HCLK_SWITCH>, <&sysctrl R9A06G032_CLK_SWITCH>; - clock-names = "hclk", "clk"; - power-domains = <&sysctrl>; - interrupts = , - , - , - , - ; - interrupt-names = "dlr", "switch", "prp", "hub", "ptrn"; - - dsa,member = <0 0>; - - ethernet-ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - label = "lan0"; - phy-handle = <&switch0phy3>; - pcs-handle = <&mii_conv4>; - }; - - port@1 { - reg = <1>; - label = "lan1"; - phy-handle = <&switch0phy1>; - pcs-handle = <&mii_conv3>; - }; - - port@4 { - reg = <4>; - ethernet = <&gmac2>; - phy-mode = "internal"; - - fixed-link { - speed = <1000>; - full-duplex; - }; - }; - }; - - mdio { - #address-cells = <1>; - #size-cells = <0>; - - reset-gpios = <&gpio0a 2 GPIO_ACTIVE_HIGH>; - reset-delay-us = <15>; - clock-frequency = <2500000>; - - switch0phy1: ethernet-phy@1{ - reg = <1>; - }; - - switch0phy3: ethernet-phy@3{ - reg = <3>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/dsa/renesas,rzn1-a5psw.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/N1 Advanced 5 ports ethernet switch + +maintainers: + - Clément Léger + +description: | + The advanced 5 ports switch is present on the Renesas RZ/N1 SoC family and + handles 4 ports + 1 CPU management port. + +allOf: + - $ref: dsa.yaml#/$defs/ethernet-ports + +properties: + compatible: + items: + - enum: + - renesas,r9a06g032-a5psw + - const: renesas,rzn1-a5psw + + reg: + maxItems: 1 + + interrupts: + items: + - description: Device Level Ring (DLR) interrupt + - description: Switch interrupt + - description: Parallel Redundancy Protocol (PRP) interrupt + - description: Integrated HUB module interrupt + - description: Receive Pattern Match interrupt + + interrupt-names: + items: + - const: dlr + - const: switch + - const: prp + - const: hub + - const: ptrn + + power-domains: + maxItems: 1 + + mdio: + $ref: /schemas/net/mdio.yaml# + unevaluatedProperties: false + + clocks: + items: + - description: AHB clock used for the switch register interface + - description: Switch system clock + + clock-names: + items: + - const: hclk + - const: clk + + ethernet-ports: + type: object + additionalProperties: true + patternProperties: + "^(ethernet-)?port@[0-4]$": + type: object + additionalProperties: true + properties: + pcs-handle: + maxItems: 1 + description: + phandle pointing to a PCS sub-node compatible with + renesas,rzn1-miic.yaml# + +unevaluatedProperties: false + +required: + - compatible + - reg + - clocks + - clock-names + - power-domains + +examples: + - | + #include + #include + #include + + switch@44050000 { + compatible = "renesas,r9a06g032-a5psw", "renesas,rzn1-a5psw"; + reg = <0x44050000 0x10000>; + clocks = <&sysctrl R9A06G032_HCLK_SWITCH>, <&sysctrl R9A06G032_CLK_SWITCH>; + clock-names = "hclk", "clk"; + power-domains = <&sysctrl>; + interrupts = , + , + , + , + ; + interrupt-names = "dlr", "switch", "prp", "hub", "ptrn"; + + dsa,member = <0 0>; + + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "lan0"; + phy-handle = <&switch0phy3>; + pcs-handle = <&mii_conv4>; + }; + + port@1 { + reg = <1>; + label = "lan1"; + phy-handle = <&switch0phy1>; + pcs-handle = <&mii_conv3>; + }; + + port@4 { + reg = <4>; + ethernet = <&gmac2>; + phy-mode = "internal"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + reset-gpios = <&gpio0a 2 GPIO_ACTIVE_HIGH>; + reset-delay-us = <15>; + clock-frequency = <2500000>; + + switch0phy1: ethernet-phy@1{ + reg = <1>; + }; + + switch0phy3: ethernet-phy@3{ + reg = <3>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/fsl,fman-mdio.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/fsl,fman-mdio.yaml index 5d341f278..6b2c0aa40 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/fsl,fman-mdio.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/fsl,fman-mdio.yaml @@ -1,123 +1,123 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/fsl,fman-mdio.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale Frame Manager MDIO Device - -maintainers: - - Frank Li - -description: FMan MDIO Node. - The MDIO is a bus to which the PHY devices are connected. - -properties: - compatible: - enum: - - fsl,fman-mdio - - fsl,fman-xmdio - - fsl,fman-memac-mdio - description: - Must include "fsl,fman-mdio" for 1 Gb/s MDIO from FMan v2. - Must include "fsl,fman-xmdio" for 10 Gb/s MDIO from FMan v2. - Must include "fsl,fman-memac-mdio" for 1/10 Gb/s MDIO from - FMan v3. - - reg: - maxItems: 1 - - clocks: - items: - - description: A reference to the input clock of the controller - from which the MDC frequency is derived. - - interrupts: - maxItems: 1 - - fsl,fman-internal-mdio: - $ref: /schemas/types.yaml#/definitions/flag - description: - Fman has internal MDIO for internal PCS(Physical - Coding Sublayer) PHYs and external MDIO for external PHYs. - The settings and programming routines for internal/external - MDIO are different. Must be included for internal MDIO. - - fsl,erratum-a009885: - $ref: /schemas/types.yaml#/definitions/flag - description: Indicates the presence of the A009885 - erratum describing that the contents of MDIO_DATA may - become corrupt unless it is read within 16 MDC cycles - of MDIO_CFG[BSY] being cleared, when performing an - MDIO read operation. - - fsl,erratum-a011043: - $ref: /schemas/types.yaml#/definitions/flag - description: - Indicates the presence of the A011043 erratum - describing that the MDIO_CFG[MDIO_RD_ER] bit may be falsely - set when reading internal PCS registers. MDIO reads to - internal PCS registers may result in having the - MDIO_CFG[MDIO_RD_ER] bit set, even when there is no error and - read data (MDIO_DATA[MDIO_DATA]) is correct. - Software may get false read error when reading internal - PCS registers through MDIO. As a workaround, all internal - MDIO accesses should ignore the MDIO_CFG[MDIO_RD_ER] bit. - - For internal PHY device on internal mdio bus, a PHY node should be created. - See the definition of the PHY node in booting-without-of.txt for an - example of how to define a PHY (Internal PHY has no interrupt line). - - For "fsl,fman-mdio" compatible internal mdio bus, the PHY is TBI PHY. - - For "fsl,fman-memac-mdio" compatible internal mdio bus, the PHY is PCS PHY. - The PCS PHY address should correspond to the value of the appropriate - MDEV_PORT. - - little-endian: - $ref: /schemas/types.yaml#/definitions/flag - description: - IP block is little-endian mode. The default endian mode is big-endian. - -required: - - compatible - - reg - -allOf: - - $ref: mdio.yaml# - -unevaluatedProperties: false - -examples: - - | - mdio@f1000 { - compatible = "fsl,fman-xmdio"; - reg = <0xf1000 0x1000>; - interrupts = <101 2 0 0>; - }; - - - | - mdio@e3120 { - compatible = "fsl,fman-mdio"; - reg = <0xe3120 0xee0>; - fsl,fman-internal-mdio; - #address-cells = <1>; - #size-cells = <0>; - - tbi-phy@8 { - reg = <0x8>; - device_type = "tbi-phy"; - }; - }; - - - | - mdio@f1000 { - compatible = "fsl,fman-memac-mdio"; - reg = <0xf1000 0x1000>; - fsl,fman-internal-mdio; - #address-cells = <1>; - #size-cells = <0>; - - pcsphy6: ethernet-phy@0 { - reg = <0x0>; - }; - }; - +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/fsl,fman-mdio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale Frame Manager MDIO Device + +maintainers: + - Frank Li + +description: FMan MDIO Node. + The MDIO is a bus to which the PHY devices are connected. + +properties: + compatible: + enum: + - fsl,fman-mdio + - fsl,fman-xmdio + - fsl,fman-memac-mdio + description: + Must include "fsl,fman-mdio" for 1 Gb/s MDIO from FMan v2. + Must include "fsl,fman-xmdio" for 10 Gb/s MDIO from FMan v2. + Must include "fsl,fman-memac-mdio" for 1/10 Gb/s MDIO from + FMan v3. + + reg: + maxItems: 1 + + clocks: + items: + - description: A reference to the input clock of the controller + from which the MDC frequency is derived. + + interrupts: + maxItems: 1 + + fsl,fman-internal-mdio: + $ref: /schemas/types.yaml#/definitions/flag + description: + Fman has internal MDIO for internal PCS(Physical + Coding Sublayer) PHYs and external MDIO for external PHYs. + The settings and programming routines for internal/external + MDIO are different. Must be included for internal MDIO. + + fsl,erratum-a009885: + $ref: /schemas/types.yaml#/definitions/flag + description: Indicates the presence of the A009885 + erratum describing that the contents of MDIO_DATA may + become corrupt unless it is read within 16 MDC cycles + of MDIO_CFG[BSY] being cleared, when performing an + MDIO read operation. + + fsl,erratum-a011043: + $ref: /schemas/types.yaml#/definitions/flag + description: + Indicates the presence of the A011043 erratum + describing that the MDIO_CFG[MDIO_RD_ER] bit may be falsely + set when reading internal PCS registers. MDIO reads to + internal PCS registers may result in having the + MDIO_CFG[MDIO_RD_ER] bit set, even when there is no error and + read data (MDIO_DATA[MDIO_DATA]) is correct. + Software may get false read error when reading internal + PCS registers through MDIO. As a workaround, all internal + MDIO accesses should ignore the MDIO_CFG[MDIO_RD_ER] bit. + + For internal PHY device on internal mdio bus, a PHY node should be created. + See the definition of the PHY node in booting-without-of.txt for an + example of how to define a PHY (Internal PHY has no interrupt line). + - For "fsl,fman-mdio" compatible internal mdio bus, the PHY is TBI PHY. + - For "fsl,fman-memac-mdio" compatible internal mdio bus, the PHY is PCS PHY. + The PCS PHY address should correspond to the value of the appropriate + MDEV_PORT. + + little-endian: + $ref: /schemas/types.yaml#/definitions/flag + description: + IP block is little-endian mode. The default endian mode is big-endian. + +required: + - compatible + - reg + +allOf: + - $ref: mdio.yaml# + +unevaluatedProperties: false + +examples: + - | + mdio@f1000 { + compatible = "fsl,fman-xmdio"; + reg = <0xf1000 0x1000>; + interrupts = <101 2 0 0>; + }; + + - | + mdio@e3120 { + compatible = "fsl,fman-mdio"; + reg = <0xe3120 0xee0>; + fsl,fman-internal-mdio; + #address-cells = <1>; + #size-cells = <0>; + + tbi-phy@8 { + reg = <0x8>; + device_type = "tbi-phy"; + }; + }; + + - | + mdio@f1000 { + compatible = "fsl,fman-memac-mdio"; + reg = <0xf1000 0x1000>; + fsl,fman-internal-mdio; + #address-cells = <1>; + #size-cells = <0>; + + pcsphy6: ethernet-phy@0 { + reg = <0x0>; + }; + }; + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/fsl-tsec-phy.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/fsl-tsec-phy.txt index 1a5407c6b..9c9668c1b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/fsl-tsec-phy.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/fsl-tsec-phy.txt @@ -1,89 +1,89 @@ -* MDIO IO device - -The MDIO is a bus to which the PHY devices are connected. For each -device that exists on this bus, a child node should be created. See -the definition of the PHY node in booting-without-of.txt for an example -of how to define a PHY. - -Required properties: - - reg : Offset and length of the register set for the device, and optionally - the offset and length of the TBIPA register (TBI PHY address - register). If TBIPA register is not specified, the driver will - attempt to infer it from the register set specified (your mileage may - vary). - - compatible : Should define the compatible device type for the - mdio. Currently supported strings/devices are: - - "fsl,gianfar-tbi" - - "fsl,gianfar-mdio" - - "fsl,etsec2-tbi" - - "fsl,etsec2-mdio" - - "fsl,ucc-mdio" - - "fsl,fman-mdio" - When device_type is "mdio", the following strings are also considered: - - "gianfar" - - "ucc_geth_phy" - -Example: - - mdio@24520 { - reg = <24520 20>; - compatible = "fsl,gianfar-mdio"; - - ethernet-phy@0 { - ...... - }; - }; - -* TBI Internal MDIO bus - -As of this writing, every tsec is associated with an internal TBI PHY. -This PHY is accessed through the local MDIO bus. These buses are defined -similarly to the mdio buses, except they are compatible with "fsl,gianfar-tbi". -The TBI PHYs underneath them are similar to normal PHYs, but the reg property -is considered instructive, rather than descriptive. The reg property should -be chosen so it doesn't interfere with other PHYs on the bus. - -* Gianfar-compatible ethernet nodes - -Properties: - - - device_type : Should be "network" - - model : Model of the device. Can be "TSEC", "eTSEC", or "FEC" - - compatible : Should be "gianfar" - - reg : Offset and length of the register set for the device - - interrupts : For FEC devices, the first interrupt is the device's - interrupt. For TSEC and eTSEC devices, the first interrupt is - transmit, the second is receive, and the third is error. - - phy-handle : See ethernet.txt file in the same directory. - - fixed-link : See fixed-link.txt in the same directory. - - phy-connection-type : See ethernet.txt file in the same directory. - This property is only really needed if the connection is of type - "rgmii-id", as all other connection types are detected by hardware. - - fsl,magic-packet : If present, indicates that the hardware supports - waking up via magic packet. - - fsl,wake-on-filer : If present, indicates that the hardware supports - waking up by Filer General Purpose Interrupt (FGPI) asserted on the - Rx int line. This is an advanced power management capability allowing - certain packet types (user) defined by filer rules to wake up the system. - - bd-stash : If present, indicates that the hardware supports stashing - buffer descriptors in the L2. - - rx-stash-len : Denotes the number of bytes of a received buffer to stash - in the L2. - - rx-stash-idx : Denotes the index of the first byte from the received - buffer to stash in the L2. - -Example: - ethernet@24000 { - device_type = "network"; - model = "TSEC"; - compatible = "gianfar"; - reg = <0x24000 0x1000>; - local-mac-address = [ 00 E0 0C 00 73 00 ]; - interrupts = <29 2 30 2 34 2>; - interrupt-parent = <&mpic>; - phy-handle = <&phy0> - }; - -* Gianfar PTP clock nodes - -Refer to Documentation/devicetree/bindings/ptp/fsl,ptp.yaml +* MDIO IO device + +The MDIO is a bus to which the PHY devices are connected. For each +device that exists on this bus, a child node should be created. See +the definition of the PHY node in booting-without-of.txt for an example +of how to define a PHY. + +Required properties: + - reg : Offset and length of the register set for the device, and optionally + the offset and length of the TBIPA register (TBI PHY address + register). If TBIPA register is not specified, the driver will + attempt to infer it from the register set specified (your mileage may + vary). + - compatible : Should define the compatible device type for the + mdio. Currently supported strings/devices are: + - "fsl,gianfar-tbi" + - "fsl,gianfar-mdio" + - "fsl,etsec2-tbi" + - "fsl,etsec2-mdio" + - "fsl,ucc-mdio" + - "fsl,fman-mdio" + When device_type is "mdio", the following strings are also considered: + - "gianfar" + - "ucc_geth_phy" + +Example: + + mdio@24520 { + reg = <24520 20>; + compatible = "fsl,gianfar-mdio"; + + ethernet-phy@0 { + ...... + }; + }; + +* TBI Internal MDIO bus + +As of this writing, every tsec is associated with an internal TBI PHY. +This PHY is accessed through the local MDIO bus. These buses are defined +similarly to the mdio buses, except they are compatible with "fsl,gianfar-tbi". +The TBI PHYs underneath them are similar to normal PHYs, but the reg property +is considered instructive, rather than descriptive. The reg property should +be chosen so it doesn't interfere with other PHYs on the bus. + +* Gianfar-compatible ethernet nodes + +Properties: + + - device_type : Should be "network" + - model : Model of the device. Can be "TSEC", "eTSEC", or "FEC" + - compatible : Should be "gianfar" + - reg : Offset and length of the register set for the device + - interrupts : For FEC devices, the first interrupt is the device's + interrupt. For TSEC and eTSEC devices, the first interrupt is + transmit, the second is receive, and the third is error. + - phy-handle : See ethernet.txt file in the same directory. + - fixed-link : See fixed-link.txt in the same directory. + - phy-connection-type : See ethernet.txt file in the same directory. + This property is only really needed if the connection is of type + "rgmii-id", as all other connection types are detected by hardware. + - fsl,magic-packet : If present, indicates that the hardware supports + waking up via magic packet. + - fsl,wake-on-filer : If present, indicates that the hardware supports + waking up by Filer General Purpose Interrupt (FGPI) asserted on the + Rx int line. This is an advanced power management capability allowing + certain packet types (user) defined by filer rules to wake up the system. + - bd-stash : If present, indicates that the hardware supports stashing + buffer descriptors in the L2. + - rx-stash-len : Denotes the number of bytes of a received buffer to stash + in the L2. + - rx-stash-idx : Denotes the index of the first byte from the received + buffer to stash in the L2. + +Example: + ethernet@24000 { + device_type = "network"; + model = "TSEC"; + compatible = "gianfar"; + reg = <0x24000 0x1000>; + local-mac-address = [ 00 E0 0C 00 73 00 ]; + interrupts = <29 2 30 2 34 2>; + interrupt-parent = <&mpic>; + phy-handle = <&phy0> + }; + +* Gianfar PTP clock nodes + +Refer to Documentation/devicetree/bindings/ptp/fsl,ptp.yaml diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/hisilicon-hns-dsaf.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/hisilicon-hns-dsaf.txt index 8eae411ae..8ee4b1ced 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/hisilicon-hns-dsaf.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/hisilicon-hns-dsaf.txt @@ -1,90 +1,90 @@ -Hisilicon DSA Fabric device controller - -Required properties: -- compatible: should be "hisilicon,hns-dsaf-v1" or "hisilicon,hns-dsaf-v2". - "hisilicon,hns-dsaf-v1" is for hip05. - "hisilicon,hns-dsaf-v2" is for Hi1610 and Hi1612. -- mode: dsa fabric mode string. only support one of dsaf modes like these: - "2port-64vf", - "6port-16rss", - "6port-16vf", - "single-port". -- interrupts: should contain the DSA Fabric and rcb interrupt. -- reg: specifies base physical address(es) and size of the device registers. - The first region is external interface control register base and size(optional, - only used when subctrl-syscon does not exist). It is recommended using - subctrl-syscon rather than this address. - The second region is SerDes base register and size(optional, only used when - serdes-syscon in port node does not exist). It is recommended using - serdes-syscon rather than this address. - The third region is the PPE register base and size. - The fourth region is dsa fabric base register and size. It is not required for - single-port mode. -- reg-names: may be ppe-base and(or) dsaf-base. It is used to find the - corresponding reg's index. - -- phy-handle: phy handle of physical port, 0 if not any phy device. It is optional - attribute. If port node exists, phy-handle in each port node will be used. - see ethernet.txt [1]. -- subctrl-syscon: is syscon handle for external interface control register. -- reset-field-offset: is offset of reset field. Its value depends on the hardware - user manual. -- buf-size: rx buffer size, should be 16-1024. -- desc-num: number of description in TX and RX queue, should be 512, 1024, 2048 or 4096. - -- port: subnodes of dsaf. A dsaf node may contain several port nodes(Depending - on mode of dsaf). Port node contain some attributes listed below: -- reg: is physical port index in one dsaf. -- phy-handle: phy handle of physical port. It is not required if there isn't - phy device. see ethernet.txt [1]. -- serdes-syscon: is syscon handle for SerDes register. -- cpld-syscon: is syscon handle + register offset pair for cpld register. It is - not required if there isn't cpld device. -- port-rst-offset: is offset of reset field for each port in dsaf. Its value - depends on the hardware user manual. -- port-mode-offset: is offset of port mode field for each port in dsaf. Its - value depends on the hardware user manual. -- mc-mac-mask: mask of multicast address, determines bit in multicast address - to set: - 1 stands for this bit will be precisely matched, TCAM will check this bit of - MAC address. - 0 stands for this bit will be fuzzy matched, TCAM won't care about this bit - of MAC address. - -[1] Documentation/devicetree/bindings/net/phy.txt - -Example: - -dsaf0: dsa@c7000000 { - compatible = "hisilicon,hns-dsaf-v1"; - mode = "6port-16rss"; - interrupt-parent = <&mbigen_dsa>; - reg = <0x0 0xc5000000 0x0 0x890000 - 0x0 0xc7000000 0x0 0x60000>; - reg-names = "ppe-base", "dsaf-base"; - subctrl-syscon = <&subctrl>; - reset-field-offset = 0; - interrupts = <131 4>,<132 4>, <133 4>,<134 4>, - <135 4>,<136 4>, <137 4>,<138 4>, - <139 4>,<140 4>, <141 4>,<142 4>, - <143 4>,<144 4>, <145 4>,<146 4>, - <147 4>,<148 4>, <384 1>,<385 1>, - <386 1>,<387 1>, <388 1>,<389 1>, - <390 1>,<391 1>, - buf-size = <4096>; - desc-num = <1024>; - dma-coherent; - - port@0 { - reg = 0; - phy-handle = <&phy0>; - serdes-syscon = <&serdes>; - mc-mac-mask = [ff f0 00 00 00 00]; - }; - - port@1 { - reg = 1; - serdes-syscon = <&serdes>; - mc-mac-mask = [ff f0 00 00 00 00]; - }; -}; +Hisilicon DSA Fabric device controller + +Required properties: +- compatible: should be "hisilicon,hns-dsaf-v1" or "hisilicon,hns-dsaf-v2". + "hisilicon,hns-dsaf-v1" is for hip05. + "hisilicon,hns-dsaf-v2" is for Hi1610 and Hi1612. +- mode: dsa fabric mode string. only support one of dsaf modes like these: + "2port-64vf", + "6port-16rss", + "6port-16vf", + "single-port". +- interrupts: should contain the DSA Fabric and rcb interrupt. +- reg: specifies base physical address(es) and size of the device registers. + The first region is external interface control register base and size(optional, + only used when subctrl-syscon does not exist). It is recommended using + subctrl-syscon rather than this address. + The second region is SerDes base register and size(optional, only used when + serdes-syscon in port node does not exist). It is recommended using + serdes-syscon rather than this address. + The third region is the PPE register base and size. + The fourth region is dsa fabric base register and size. It is not required for + single-port mode. +- reg-names: may be ppe-base and(or) dsaf-base. It is used to find the + corresponding reg's index. + +- phy-handle: phy handle of physical port, 0 if not any phy device. It is optional + attribute. If port node exists, phy-handle in each port node will be used. + see ethernet.txt [1]. +- subctrl-syscon: is syscon handle for external interface control register. +- reset-field-offset: is offset of reset field. Its value depends on the hardware + user manual. +- buf-size: rx buffer size, should be 16-1024. +- desc-num: number of description in TX and RX queue, should be 512, 1024, 2048 or 4096. + +- port: subnodes of dsaf. A dsaf node may contain several port nodes(Depending + on mode of dsaf). Port node contain some attributes listed below: +- reg: is physical port index in one dsaf. +- phy-handle: phy handle of physical port. It is not required if there isn't + phy device. see ethernet.txt [1]. +- serdes-syscon: is syscon handle for SerDes register. +- cpld-syscon: is syscon handle + register offset pair for cpld register. It is + not required if there isn't cpld device. +- port-rst-offset: is offset of reset field for each port in dsaf. Its value + depends on the hardware user manual. +- port-mode-offset: is offset of port mode field for each port in dsaf. Its + value depends on the hardware user manual. +- mc-mac-mask: mask of multicast address, determines bit in multicast address + to set: + 1 stands for this bit will be precisely matched, TCAM will check this bit of + MAC address. + 0 stands for this bit will be fuzzy matched, TCAM won't care about this bit + of MAC address. + +[1] Documentation/devicetree/bindings/net/phy.txt + +Example: + +dsaf0: dsa@c7000000 { + compatible = "hisilicon,hns-dsaf-v1"; + mode = "6port-16rss"; + interrupt-parent = <&mbigen_dsa>; + reg = <0x0 0xc5000000 0x0 0x890000 + 0x0 0xc7000000 0x0 0x60000>; + reg-names = "ppe-base", "dsaf-base"; + subctrl-syscon = <&subctrl>; + reset-field-offset = 0; + interrupts = <131 4>,<132 4>, <133 4>,<134 4>, + <135 4>,<136 4>, <137 4>,<138 4>, + <139 4>,<140 4>, <141 4>,<142 4>, + <143 4>,<144 4>, <145 4>,<146 4>, + <147 4>,<148 4>, <384 1>,<385 1>, + <386 1>,<387 1>, <388 1>,<389 1>, + <390 1>,<391 1>, + buf-size = <4096>; + desc-num = <1024>; + dma-coherent; + + port@0 { + reg = 0; + phy-handle = <&phy0>; + serdes-syscon = <&serdes>; + mc-mac-mask = [ff f0 00 00 00 00]; + }; + + port@1 { + reg = 1; + serdes-syscon = <&serdes>; + mc-mac-mask = [ff f0 00 00 00 00]; + }; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/intel,ixp4xx-hss.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/intel,ixp4xx-hss.yaml index 316de115a..7a405e9b3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/intel,ixp4xx-hss.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/intel,ixp4xx-hss.yaml @@ -1,123 +1,123 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -# Copyright 2021 Linaro Ltd. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/intel,ixp4xx-hss.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Intel IXP4xx V.35 WAN High Speed Serial Link (HSS) - -maintainers: - - Linus Walleij - -description: | - The Intel IXP4xx HSS makes use of the IXP4xx NPE (Network - Processing Engine) and the IXP4xx Queue Manager to process - V.35 Wideband Modem (WAN) links. - -properties: - compatible: - const: intel,ixp4xx-hss - - reg: - maxItems: 1 - description: The HSS instance - - intel,npe-handle: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - items: - - description: phandle to the NPE this HSS instance is using - - description: the NPE instance number - description: phandle to the NPE this HSS instance is using - and the instance to use in the second cell - - intel,queue-chl-rxtrig: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - - items: - - description: phandle to the RX trigger queue on the NPE - - description: the queue instance number - description: phandle to the RX trigger queue on the NPE - - intel,queue-chl-txready: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - - items: - - description: phandle to the TX ready queue on the NPE - - description: the queue instance number - description: phandle to the TX ready queue on the NPE - - intel,queue-pkt-rx: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - - items: - - description: phandle to the RX queue on the NPE - - description: the queue instance number - description: phandle to the packet RX queue on the NPE - - intel,queue-pkt-tx: - $ref: /schemas/types.yaml#/definitions/phandle-array - maxItems: 4 - items: - items: - - description: phandle to the TX queue on the NPE - - description: the queue instance number - description: phandle to the packet TX0, TX1, TX2 and TX3 queues on the NPE - - intel,queue-pkt-rxfree: - $ref: /schemas/types.yaml#/definitions/phandle-array - maxItems: 4 - items: - items: - - description: phandle to the RXFREE queue on the NPE - - description: the queue instance number - description: phandle to the packet RXFREE0, RXFREE1, RXFREE2 and - RXFREE3 queues on the NPE - - intel,queue-pkt-txdone: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - - items: - - description: phandle to the TXDONE queue on the NPE - - description: the queue instance number - description: phandle to the packet TXDONE queue on the NPE - - cts-gpios: - maxItems: 1 - description: Clear To Send (CTS) GPIO line - - rts-gpios: - maxItems: 1 - description: Ready To Send (RTS) GPIO line - - dcd-gpios: - maxItems: 1 - description: Data Carrier Detect (DCD) GPIO line - - dtr-gpios: - maxItems: 1 - description: Data Terminal Ready (DTR) GPIO line - - clk-internal-gpios: - maxItems: 1 - description: Clock internal GPIO line, driving this high will make the HSS - use internal clocking as opposed to external clocking - -required: - - compatible - - reg - - intel,npe-handle - - intel,queue-chl-rxtrig - - intel,queue-chl-txready - - intel,queue-pkt-rx - - intel,queue-pkt-tx - - intel,queue-pkt-rxfree - - intel,queue-pkt-txdone - - cts-gpios - - rts-gpios - - dcd-gpios - - dtr-gpios - - clk-internal-gpios - -additionalProperties: false +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2021 Linaro Ltd. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/intel,ixp4xx-hss.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Intel IXP4xx V.35 WAN High Speed Serial Link (HSS) + +maintainers: + - Linus Walleij + +description: | + The Intel IXP4xx HSS makes use of the IXP4xx NPE (Network + Processing Engine) and the IXP4xx Queue Manager to process + V.35 Wideband Modem (WAN) links. + +properties: + compatible: + const: intel,ixp4xx-hss + + reg: + maxItems: 1 + description: The HSS instance + + intel,npe-handle: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + items: + - description: phandle to the NPE this HSS instance is using + - description: the NPE instance number + description: phandle to the NPE this HSS instance is using + and the instance to use in the second cell + + intel,queue-chl-rxtrig: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to the RX trigger queue on the NPE + - description: the queue instance number + description: phandle to the RX trigger queue on the NPE + + intel,queue-chl-txready: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to the TX ready queue on the NPE + - description: the queue instance number + description: phandle to the TX ready queue on the NPE + + intel,queue-pkt-rx: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to the RX queue on the NPE + - description: the queue instance number + description: phandle to the packet RX queue on the NPE + + intel,queue-pkt-tx: + $ref: /schemas/types.yaml#/definitions/phandle-array + maxItems: 4 + items: + items: + - description: phandle to the TX queue on the NPE + - description: the queue instance number + description: phandle to the packet TX0, TX1, TX2 and TX3 queues on the NPE + + intel,queue-pkt-rxfree: + $ref: /schemas/types.yaml#/definitions/phandle-array + maxItems: 4 + items: + items: + - description: phandle to the RXFREE queue on the NPE + - description: the queue instance number + description: phandle to the packet RXFREE0, RXFREE1, RXFREE2 and + RXFREE3 queues on the NPE + + intel,queue-pkt-txdone: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to the TXDONE queue on the NPE + - description: the queue instance number + description: phandle to the packet TXDONE queue on the NPE + + cts-gpios: + maxItems: 1 + description: Clear To Send (CTS) GPIO line + + rts-gpios: + maxItems: 1 + description: Ready To Send (RTS) GPIO line + + dcd-gpios: + maxItems: 1 + description: Data Carrier Detect (DCD) GPIO line + + dtr-gpios: + maxItems: 1 + description: Data Terminal Ready (DTR) GPIO line + + clk-internal-gpios: + maxItems: 1 + description: Clock internal GPIO line, driving this high will make the HSS + use internal clocking as opposed to external clocking + +required: + - compatible + - reg + - intel,npe-handle + - intel,queue-chl-rxtrig + - intel,queue-chl-txready + - intel,queue-pkt-rx + - intel,queue-pkt-tx + - intel,queue-pkt-rxfree + - intel,queue-pkt-txdone + - cts-gpios + - rts-gpios + - dcd-gpios + - dtr-gpios + - clk-internal-gpios + +additionalProperties: false diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/mdio-mux-gpio.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/mdio-mux-gpio.yaml index 156b51485..71c25c458 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/mdio-mux-gpio.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/mdio-mux-gpio.yaml @@ -1,135 +1,135 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/mdio-mux-gpio.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Properties for an MDIO bus multiplexer/switch controlled by GPIO pins. - -maintainers: - - Andrew Lunn - -description: - This is a special case of a MDIO bus multiplexer. One or more GPIO - lines are used to control which child bus is connected. - -allOf: - - $ref: /schemas/net/mdio-mux.yaml# - -properties: - compatible: - const: mdio-mux-gpio - - gpios: - description: - List of GPIOs used to control the multiplexer, least significant bit first. - minItems: 1 - maxItems: 32 - -required: - - compatible - - gpios - -unevaluatedProperties: false - -examples: - - | - /* - An NXP sn74cbtlv3253 dual 1-of-4 switch controlled by a - pair of GPIO lines. Child busses 2 and 3 populated with 4 - PHYs each. - */ - mdio-mux { - compatible = "mdio-mux-gpio"; - gpios = <&gpio1 3 0>, <&gpio1 4 0>; - mdio-parent-bus = <&smi1>; - #address-cells = <1>; - #size-cells = <0>; - - mdio@2 { - reg = <2>; - #address-cells = <1>; - #size-cells = <0>; - - ethernet-phy@1 { - reg = <1>; - marvell,reg-init = <3 0x10 0 0x5777>, - <3 0x11 0 0x00aa>, - <3 0x12 0 0x4105>, - <3 0x13 0 0x0a60>; - interrupt-parent = <&gpio>; - interrupts = <10 8>; /* Pin 10, active low */ - }; - ethernet-phy@2 { - reg = <2>; - marvell,reg-init = <3 0x10 0 0x5777>, - <3 0x11 0 0x00aa>, - <3 0x12 0 0x4105>, - <3 0x13 0 0x0a60>; - interrupt-parent = <&gpio>; - interrupts = <10 8>; /* Pin 10, active low */ - }; - ethernet-phy@3 { - reg = <3>; - marvell,reg-init = <3 0x10 0 0x5777>, - <3 0x11 0 0x00aa>, - <3 0x12 0 0x4105>, - <3 0x13 0 0x0a60>; - interrupt-parent = <&gpio>; - interrupts = <10 8>; /* Pin 10, active low */ - }; - ethernet-phy@4 { - reg = <4>; - marvell,reg-init = <3 0x10 0 0x5777>, - <3 0x11 0 0x00aa>, - <3 0x12 0 0x4105>, - <3 0x13 0 0x0a60>; - interrupt-parent = <&gpio>; - interrupts = <10 8>; /* Pin 10, active low */ - }; - }; - - mdio@3 { - reg = <3>; - #address-cells = <1>; - #size-cells = <0>; - - ethernet-phy@1 { - reg = <1>; - marvell,reg-init = <3 0x10 0 0x5777>, - <3 0x11 0 0x00aa>, - <3 0x12 0 0x4105>, - <3 0x13 0 0x0a60>; - interrupt-parent = <&gpio>; - interrupts = <12 8>; /* Pin 12, active low */ - }; - ethernet-phy@2 { - reg = <2>; - marvell,reg-init = <3 0x10 0 0x5777>, - <3 0x11 0 0x00aa>, - <3 0x12 0 0x4105>, - <3 0x13 0 0x0a60>; - interrupt-parent = <&gpio>; - interrupts = <12 8>; /* Pin 12, active low */ - }; - ethernet-phy@3 { - reg = <3>; - marvell,reg-init = <3 0x10 0 0x5777>, - <3 0x11 0 0x00aa>, - <3 0x12 0 0x4105>, - <3 0x13 0 0x0a60>; - interrupt-parent = <&gpio>; - interrupts = <12 8>; /* Pin 12, active low */ - }; - ethernet-phy@4 { - reg = <4>; - marvell,reg-init = <3 0x10 0 0x5777>, - <3 0x11 0 0x00aa>, - <3 0x12 0 0x4105>, - <3 0x13 0 0x0a60>; - interrupt-parent = <&gpio>; - interrupts = <12 8>; /* Pin 12, active low */ - }; - }; - }; -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/mdio-mux-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Properties for an MDIO bus multiplexer/switch controlled by GPIO pins. + +maintainers: + - Andrew Lunn + +description: + This is a special case of a MDIO bus multiplexer. One or more GPIO + lines are used to control which child bus is connected. + +allOf: + - $ref: /schemas/net/mdio-mux.yaml# + +properties: + compatible: + const: mdio-mux-gpio + + gpios: + description: + List of GPIOs used to control the multiplexer, least significant bit first. + minItems: 1 + maxItems: 32 + +required: + - compatible + - gpios + +unevaluatedProperties: false + +examples: + - | + /* + An NXP sn74cbtlv3253 dual 1-of-4 switch controlled by a + pair of GPIO lines. Child busses 2 and 3 populated with 4 + PHYs each. + */ + mdio-mux { + compatible = "mdio-mux-gpio"; + gpios = <&gpio1 3 0>, <&gpio1 4 0>; + mdio-parent-bus = <&smi1>; + #address-cells = <1>; + #size-cells = <0>; + + mdio@2 { + reg = <2>; + #address-cells = <1>; + #size-cells = <0>; + + ethernet-phy@1 { + reg = <1>; + marvell,reg-init = <3 0x10 0 0x5777>, + <3 0x11 0 0x00aa>, + <3 0x12 0 0x4105>, + <3 0x13 0 0x0a60>; + interrupt-parent = <&gpio>; + interrupts = <10 8>; /* Pin 10, active low */ + }; + ethernet-phy@2 { + reg = <2>; + marvell,reg-init = <3 0x10 0 0x5777>, + <3 0x11 0 0x00aa>, + <3 0x12 0 0x4105>, + <3 0x13 0 0x0a60>; + interrupt-parent = <&gpio>; + interrupts = <10 8>; /* Pin 10, active low */ + }; + ethernet-phy@3 { + reg = <3>; + marvell,reg-init = <3 0x10 0 0x5777>, + <3 0x11 0 0x00aa>, + <3 0x12 0 0x4105>, + <3 0x13 0 0x0a60>; + interrupt-parent = <&gpio>; + interrupts = <10 8>; /* Pin 10, active low */ + }; + ethernet-phy@4 { + reg = <4>; + marvell,reg-init = <3 0x10 0 0x5777>, + <3 0x11 0 0x00aa>, + <3 0x12 0 0x4105>, + <3 0x13 0 0x0a60>; + interrupt-parent = <&gpio>; + interrupts = <10 8>; /* Pin 10, active low */ + }; + }; + + mdio@3 { + reg = <3>; + #address-cells = <1>; + #size-cells = <0>; + + ethernet-phy@1 { + reg = <1>; + marvell,reg-init = <3 0x10 0 0x5777>, + <3 0x11 0 0x00aa>, + <3 0x12 0 0x4105>, + <3 0x13 0 0x0a60>; + interrupt-parent = <&gpio>; + interrupts = <12 8>; /* Pin 12, active low */ + }; + ethernet-phy@2 { + reg = <2>; + marvell,reg-init = <3 0x10 0 0x5777>, + <3 0x11 0 0x00aa>, + <3 0x12 0 0x4105>, + <3 0x13 0 0x0a60>; + interrupt-parent = <&gpio>; + interrupts = <12 8>; /* Pin 12, active low */ + }; + ethernet-phy@3 { + reg = <3>; + marvell,reg-init = <3 0x10 0 0x5777>, + <3 0x11 0 0x00aa>, + <3 0x12 0 0x4105>, + <3 0x13 0 0x0a60>; + interrupt-parent = <&gpio>; + interrupts = <12 8>; /* Pin 12, active low */ + }; + ethernet-phy@4 { + reg = <4>; + marvell,reg-init = <3 0x10 0 0x5777>, + <3 0x11 0 0x00aa>, + <3 0x12 0 0x4105>, + <3 0x13 0 0x0a60>; + interrupt-parent = <&gpio>; + interrupts = <12 8>; /* Pin 12, active low */ + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml index b1b5eb403..306ef9ecf 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml @@ -1,171 +1,171 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/microchip,lan966x-switch.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Microchip Lan966x Ethernet switch controller - -maintainers: - - Horatiu Vultur - -description: | - The lan966x switch is a multi-port Gigabit AVB/TSN Ethernet Switch with - two integrated 10/100/1000Base-T PHYs. In addition to the integrated PHYs, - it supports up to 2RGMII/RMII, up to 3BASE-X/SERDES/2.5GBASE-X and up to - 2 Quad-SGMII/Quad-USGMII interfaces. - -properties: - $nodename: - pattern: "^switch@[0-9a-f]+$" - - compatible: - const: microchip,lan966x-switch - - reg: - items: - - description: cpu target - - description: general control block target - - reg-names: - items: - - const: cpu - - const: gcb - - interrupts: - minItems: 1 - items: - - description: register based extraction - - description: frame dma based extraction - - description: analyzer interrupt - - description: ptp interrupt - - description: ptp external interrupt - - interrupt-names: - minItems: 1 - items: - - const: xtr - - const: fdma - - const: ana - - const: ptp - - const: ptp-ext - - resets: - items: - - description: Reset controller used for switch core reset (soft reset) - - reset-names: - items: - - const: switch - - ethernet-ports: - type: object - - properties: - '#address-cells': - const: 1 - '#size-cells': - const: 0 - - additionalProperties: false - - patternProperties: - "^port@[0-9a-f]+$": - type: object - - $ref: /schemas/net/ethernet-controller.yaml# - unevaluatedProperties: false - - properties: - '#address-cells': - const: 1 - '#size-cells': - const: 0 - - reg: - description: - Switch port number - - phys: - description: - Phandle of a Ethernet SerDes PHY - - phy-mode: - description: - This specifies the interface used by the Ethernet SerDes towards - the PHY or SFP. - enum: - - gmii - - sgmii - - qsgmii - - 1000base-x - - 2500base-x - - phy-handle: - description: - Phandle of a Ethernet PHY. - - sfp: - description: - Phandle of an SFP. - - managed: true - - required: - - reg - - phys - - phy-mode - - oneOf: - - required: - - phy-handle - - required: - - sfp - - managed - -required: - - compatible - - reg - - reg-names - - interrupts - - interrupt-names - - resets - - reset-names - - ethernet-ports - -additionalProperties: false - -examples: - - | - #include - switch: switch@e0000000 { - compatible = "microchip,lan966x-switch"; - reg = <0xe0000000 0x0100000>, - <0xe2000000 0x0800000>; - reg-names = "cpu", "gcb"; - interrupts = ; - interrupt-names = "xtr"; - resets = <&switch_reset 0>; - reset-names = "switch"; - ethernet-ports { - #address-cells = <1>; - #size-cells = <0>; - - port0: port@0 { - reg = <0>; - phy-handle = <&phy0>; - phys = <&serdes 0 0>; - phy-mode = "gmii"; - }; - - port1: port@1 { - reg = <1>; - sfp = <&sfp_eth1>; - managed = "in-band-status"; - phys = <&serdes 2 4>; - phy-mode = "sgmii"; - }; - }; - }; - -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/microchip,lan966x-switch.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip Lan966x Ethernet switch controller + +maintainers: + - Horatiu Vultur + +description: | + The lan966x switch is a multi-port Gigabit AVB/TSN Ethernet Switch with + two integrated 10/100/1000Base-T PHYs. In addition to the integrated PHYs, + it supports up to 2RGMII/RMII, up to 3BASE-X/SERDES/2.5GBASE-X and up to + 2 Quad-SGMII/Quad-USGMII interfaces. + +properties: + $nodename: + pattern: "^switch@[0-9a-f]+$" + + compatible: + const: microchip,lan966x-switch + + reg: + items: + - description: cpu target + - description: general control block target + + reg-names: + items: + - const: cpu + - const: gcb + + interrupts: + minItems: 1 + items: + - description: register based extraction + - description: frame dma based extraction + - description: analyzer interrupt + - description: ptp interrupt + - description: ptp external interrupt + + interrupt-names: + minItems: 1 + items: + - const: xtr + - const: fdma + - const: ana + - const: ptp + - const: ptp-ext + + resets: + items: + - description: Reset controller used for switch core reset (soft reset) + + reset-names: + items: + - const: switch + + ethernet-ports: + type: object + + properties: + '#address-cells': + const: 1 + '#size-cells': + const: 0 + + additionalProperties: false + + patternProperties: + "^port@[0-9a-f]+$": + type: object + + $ref: /schemas/net/ethernet-controller.yaml# + unevaluatedProperties: false + + properties: + '#address-cells': + const: 1 + '#size-cells': + const: 0 + + reg: + description: + Switch port number + + phys: + description: + Phandle of a Ethernet SerDes PHY + + phy-mode: + description: + This specifies the interface used by the Ethernet SerDes towards + the PHY or SFP. + enum: + - gmii + - sgmii + - qsgmii + - 1000base-x + - 2500base-x + + phy-handle: + description: + Phandle of a Ethernet PHY. + + sfp: + description: + Phandle of an SFP. + + managed: true + + required: + - reg + - phys + - phy-mode + + oneOf: + - required: + - phy-handle + - required: + - sfp + - managed + +required: + - compatible + - reg + - reg-names + - interrupts + - interrupt-names + - resets + - reset-names + - ethernet-ports + +additionalProperties: false + +examples: + - | + #include + switch: switch@e0000000 { + compatible = "microchip,lan966x-switch"; + reg = <0xe0000000 0x0100000>, + <0xe2000000 0x0800000>; + reg-names = "cpu", "gcb"; + interrupts = ; + interrupt-names = "xtr"; + resets = <&switch_reset 0>; + reset-names = "switch"; + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + + port0: port@0 { + reg = <0>; + phy-handle = <&phy0>; + phys = <&serdes 0 0>; + phy-mode = "gmii"; + }; + + port1: port@1 { + reg = <1>; + sfp = <&sfp_eth1>; + managed = "in-band-status"; + phys = <&serdes 2 4>; + phy-mode = "sgmii"; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/nfc/marvell,nci.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/nfc/marvell,nci.yaml index b8ed5e82b..89663fdd3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/nfc/marvell,nci.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/nfc/marvell,nci.yaml @@ -1,170 +1,170 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/nfc/marvell,nci.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Marvell International Ltd. NCI NFC controller - -maintainers: - - Krzysztof Kozlowski - -properties: - compatible: - enum: - - marvell,nfc-i2c - - marvell,nfc-spi - - marvell,nfc-uart - - hci-muxed: - type: boolean - description: | - Specifies that the chip is muxing NCI over HCI frames - - interrupts: - maxItems: 1 - - reg: - maxItems: 1 - - reset-n-io: - $ref: /schemas/types.yaml#/definitions/phandle-array - maxItems: 1 - description: | - Output GPIO pin used to reset the chip (active low) - - i2c-int-falling: - type: boolean - description: | - For I2C type of connection. Specifies that the chip read event shall be - triggered on falling edge. - - i2c-int-rising: - type: boolean - description: | - For I2C type of connection. Specifies that the chip read event shall be - triggered on rising edge. - - break-control: - type: boolean - description: | - For UART type of connection. Specifies that the chip needs specific break - management. - - flow-control: - type: boolean - description: | - For UART type of connection. Specifies that the chip is using RTS/CTS. - - spi-cpha: true - spi-cpol: true - -required: - - compatible - -allOf: - - if: - properties: - compatible: - contains: - const: marvell,nfc-i2c - then: - properties: - break-control: false - flow-control: false - spi-cpha: false - spi-cpol: false - spi-max-frequency: false - required: - - reg - - - if: - properties: - compatible: - contains: - const: marvell,nfc-spi - then: - $ref: /schemas/spi/spi-peripheral-props.yaml# - properties: - break-control: false - flow-control: false - i2c-int-falling: false - i2c-int-rising: false - required: - - reg - - - if: - properties: - compatible: - contains: - const: marvell,nfc-uart - then: - properties: - i2c-int-falling: false - i2c-int-rising: false - interrupts: false - spi-cpha: false - spi-cpol: false - spi-max-frequency: false - reg: false - -unevaluatedProperties: false - -examples: - - | - #include - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - nfc@8 { - compatible = "marvell,nfc-i2c"; - reg = <0x8>; - - interrupt-parent = <&gpio3>; - interrupts = <21 IRQ_TYPE_EDGE_RISING>; - - i2c-int-rising; - - reset-n-io = <&gpio3 19 GPIO_ACTIVE_LOW>; - }; - }; - - - | - #include - #include - - spi { - #address-cells = <1>; - #size-cells = <0>; - - nfc@0 { - compatible = "marvell,nfc-spi"; - reg = <0>; - - spi-max-frequency = <3000000>; - spi-cpha; - spi-cpol; - - interrupt-parent = <&gpio1>; - interrupts = <17 IRQ_TYPE_EDGE_RISING>; - - reset-n-io = <&gpio3 19 GPIO_ACTIVE_LOW>; - }; - }; - - - | - #include - - uart { - nfc { - compatible = "marvell,nfc-uart"; - - reset-n-io = <&gpio3 16 GPIO_ACTIVE_LOW>; - - hci-muxed; - flow-control; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/nfc/marvell,nci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell International Ltd. NCI NFC controller + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + enum: + - marvell,nfc-i2c + - marvell,nfc-spi + - marvell,nfc-uart + + hci-muxed: + type: boolean + description: | + Specifies that the chip is muxing NCI over HCI frames + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + + reset-n-io: + $ref: /schemas/types.yaml#/definitions/phandle-array + maxItems: 1 + description: | + Output GPIO pin used to reset the chip (active low) + + i2c-int-falling: + type: boolean + description: | + For I2C type of connection. Specifies that the chip read event shall be + triggered on falling edge. + + i2c-int-rising: + type: boolean + description: | + For I2C type of connection. Specifies that the chip read event shall be + triggered on rising edge. + + break-control: + type: boolean + description: | + For UART type of connection. Specifies that the chip needs specific break + management. + + flow-control: + type: boolean + description: | + For UART type of connection. Specifies that the chip is using RTS/CTS. + + spi-cpha: true + spi-cpol: true + +required: + - compatible + +allOf: + - if: + properties: + compatible: + contains: + const: marvell,nfc-i2c + then: + properties: + break-control: false + flow-control: false + spi-cpha: false + spi-cpol: false + spi-max-frequency: false + required: + - reg + + - if: + properties: + compatible: + contains: + const: marvell,nfc-spi + then: + $ref: /schemas/spi/spi-peripheral-props.yaml# + properties: + break-control: false + flow-control: false + i2c-int-falling: false + i2c-int-rising: false + required: + - reg + + - if: + properties: + compatible: + contains: + const: marvell,nfc-uart + then: + properties: + i2c-int-falling: false + i2c-int-rising: false + interrupts: false + spi-cpha: false + spi-cpol: false + spi-max-frequency: false + reg: false + +unevaluatedProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + nfc@8 { + compatible = "marvell,nfc-i2c"; + reg = <0x8>; + + interrupt-parent = <&gpio3>; + interrupts = <21 IRQ_TYPE_EDGE_RISING>; + + i2c-int-rising; + + reset-n-io = <&gpio3 19 GPIO_ACTIVE_LOW>; + }; + }; + + - | + #include + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + nfc@0 { + compatible = "marvell,nfc-spi"; + reg = <0>; + + spi-max-frequency = <3000000>; + spi-cpha; + spi-cpol; + + interrupt-parent = <&gpio1>; + interrupts = <17 IRQ_TYPE_EDGE_RISING>; + + reset-n-io = <&gpio3 19 GPIO_ACTIVE_LOW>; + }; + }; + + - | + #include + + uart { + nfc { + compatible = "marvell,nfc-uart"; + + reset-n-io = <&gpio3 16 GPIO_ACTIVE_LOW>; + + hci-muxed; + flow-control; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/nvidia,tegra234-mgbe.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/nvidia,tegra234-mgbe.yaml index d8064cd10..2bd3efff2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/nvidia,tegra234-mgbe.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/nvidia,tegra234-mgbe.yaml @@ -1,162 +1,162 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/nvidia,tegra234-mgbe.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Tegra234 MGBE Multi-Gigabit Ethernet Controller - -maintainers: - - Thierry Reding - - Jon Hunter - -properties: - compatible: - const: nvidia,tegra234-mgbe - - reg: - maxItems: 3 - - reg-names: - items: - - const: hypervisor - - const: mac - - const: xpcs - - interrupts: - minItems: 1 - maxItems: 3 - - interrupt-names: - minItems: 1 - items: - - const: common - - const: macsec-ns - - const: macsec - - clocks: - maxItems: 12 - - clock-names: - items: - - const: mgbe - - const: mac - - const: mac-divider - - const: ptp-ref - - const: rx-input-m - - const: rx-input - - const: tx - - const: eee-pcs - - const: rx-pcs-input - - const: rx-pcs-m - - const: rx-pcs - - const: tx-pcs - - resets: - maxItems: 2 - - reset-names: - items: - - const: mac - - const: pcs - - interconnects: - items: - - description: memory read client - - description: memory write client - - interconnect-names: - items: - - const: dma-mem - - const: write - - iommus: - maxItems: 1 - - power-domains: - maxItems: 1 - - phy-handle: true - - phy-mode: - contains: - enum: - - usxgmii - - 10gbase-kr - - mdio: - $ref: mdio.yaml# - unevaluatedProperties: false - description: - Optional node for embedded MDIO controller. - -required: - - compatible - - reg - - interrupts - - interrupt-names - - clocks - - clock-names - - resets - - reset-names - - power-domains - - phy-handle - - phy-mode - -additionalProperties: false - -examples: - - | - #include - #include - #include - #include - #include - - ethernet@6800000 { - compatible = "nvidia,tegra234-mgbe"; - reg = <0x06800000 0x10000>, - <0x06810000 0x10000>, - <0x068a0000 0x10000>; - reg-names = "hypervisor", "mac", "xpcs"; - interrupts = ; - interrupt-names = "common"; - clocks = <&bpmp TEGRA234_CLK_MGBE0_APP>, - <&bpmp TEGRA234_CLK_MGBE0_MAC>, - <&bpmp TEGRA234_CLK_MGBE0_MAC_DIVIDER>, - <&bpmp TEGRA234_CLK_MGBE0_PTP_REF>, - <&bpmp TEGRA234_CLK_MGBE0_RX_INPUT_M>, - <&bpmp TEGRA234_CLK_MGBE0_RX_INPUT>, - <&bpmp TEGRA234_CLK_MGBE0_TX>, - <&bpmp TEGRA234_CLK_MGBE0_EEE_PCS>, - <&bpmp TEGRA234_CLK_MGBE0_RX_PCS_INPUT>, - <&bpmp TEGRA234_CLK_MGBE0_RX_PCS_M>, - <&bpmp TEGRA234_CLK_MGBE0_RX_PCS>, - <&bpmp TEGRA234_CLK_MGBE0_TX_PCS>; - clock-names = "mgbe", "mac", "mac-divider", "ptp-ref", "rx-input-m", - "rx-input", "tx", "eee-pcs", "rx-pcs-input", "rx-pcs-m", - "rx-pcs", "tx-pcs"; - resets = <&bpmp TEGRA234_RESET_MGBE0_MAC>, - <&bpmp TEGRA234_RESET_MGBE0_PCS>; - reset-names = "mac", "pcs"; - interconnects = <&mc TEGRA234_MEMORY_CLIENT_MGBEARD &emc>, - <&mc TEGRA234_MEMORY_CLIENT_MGBEAWR &emc>; - interconnect-names = "dma-mem", "write"; - iommus = <&smmu_niso0 TEGRA234_SID_MGBE>; - power-domains = <&bpmp TEGRA234_POWER_DOMAIN_MGBEA>; - - phy-handle = <&mgbe0_phy>; - phy-mode = "usxgmii"; - - mdio { - #address-cells = <1>; - #size-cells = <0>; - - mgbe0_phy: phy@0 { - compatible = "ethernet-phy-ieee802.3-c45"; - reg = <0x0>; - - #phy-cells = <0>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/nvidia,tegra234-mgbe.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Tegra234 MGBE Multi-Gigabit Ethernet Controller + +maintainers: + - Thierry Reding + - Jon Hunter + +properties: + compatible: + const: nvidia,tegra234-mgbe + + reg: + maxItems: 3 + + reg-names: + items: + - const: hypervisor + - const: mac + - const: xpcs + + interrupts: + minItems: 1 + maxItems: 3 + + interrupt-names: + minItems: 1 + items: + - const: common + - const: macsec-ns + - const: macsec + + clocks: + maxItems: 12 + + clock-names: + items: + - const: mgbe + - const: mac + - const: mac-divider + - const: ptp-ref + - const: rx-input-m + - const: rx-input + - const: tx + - const: eee-pcs + - const: rx-pcs-input + - const: rx-pcs-m + - const: rx-pcs + - const: tx-pcs + + resets: + maxItems: 2 + + reset-names: + items: + - const: mac + - const: pcs + + interconnects: + items: + - description: memory read client + - description: memory write client + + interconnect-names: + items: + - const: dma-mem + - const: write + + iommus: + maxItems: 1 + + power-domains: + maxItems: 1 + + phy-handle: true + + phy-mode: + contains: + enum: + - usxgmii + - 10gbase-kr + + mdio: + $ref: mdio.yaml# + unevaluatedProperties: false + description: + Optional node for embedded MDIO controller. + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - clock-names + - resets + - reset-names + - power-domains + - phy-handle + - phy-mode + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + #include + + ethernet@6800000 { + compatible = "nvidia,tegra234-mgbe"; + reg = <0x06800000 0x10000>, + <0x06810000 0x10000>, + <0x068a0000 0x10000>; + reg-names = "hypervisor", "mac", "xpcs"; + interrupts = ; + interrupt-names = "common"; + clocks = <&bpmp TEGRA234_CLK_MGBE0_APP>, + <&bpmp TEGRA234_CLK_MGBE0_MAC>, + <&bpmp TEGRA234_CLK_MGBE0_MAC_DIVIDER>, + <&bpmp TEGRA234_CLK_MGBE0_PTP_REF>, + <&bpmp TEGRA234_CLK_MGBE0_RX_INPUT_M>, + <&bpmp TEGRA234_CLK_MGBE0_RX_INPUT>, + <&bpmp TEGRA234_CLK_MGBE0_TX>, + <&bpmp TEGRA234_CLK_MGBE0_EEE_PCS>, + <&bpmp TEGRA234_CLK_MGBE0_RX_PCS_INPUT>, + <&bpmp TEGRA234_CLK_MGBE0_RX_PCS_M>, + <&bpmp TEGRA234_CLK_MGBE0_RX_PCS>, + <&bpmp TEGRA234_CLK_MGBE0_TX_PCS>; + clock-names = "mgbe", "mac", "mac-divider", "ptp-ref", "rx-input-m", + "rx-input", "tx", "eee-pcs", "rx-pcs-input", "rx-pcs-m", + "rx-pcs", "tx-pcs"; + resets = <&bpmp TEGRA234_RESET_MGBE0_MAC>, + <&bpmp TEGRA234_RESET_MGBE0_PCS>; + reset-names = "mac", "pcs"; + interconnects = <&mc TEGRA234_MEMORY_CLIENT_MGBEARD &emc>, + <&mc TEGRA234_MEMORY_CLIENT_MGBEAWR &emc>; + interconnect-names = "dma-mem", "write"; + iommus = <&smmu_niso0 TEGRA234_SID_MGBE>; + power-domains = <&bpmp TEGRA234_POWER_DOMAIN_MGBEA>; + + phy-handle = <&mgbe0_phy>; + phy-mode = "usxgmii"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + mgbe0_phy: phy@0 { + compatible = "ethernet-phy-ieee802.3-c45"; + reg = <0x0>; + + #phy-cells = <0>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml index b2e5daec6..2d33bbab7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml @@ -1,171 +1,171 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/pcs/renesas,rzn1-miic.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas RZ/N1 MII converter - -maintainers: - - Clément Léger - -description: | - This MII converter is present on the Renesas RZ/N1 SoC family. It is - responsible to do MII passthrough or convert it to RMII/RGMII. - -properties: - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - - compatible: - items: - - enum: - - renesas,r9a06g032-miic - - const: renesas,rzn1-miic - - reg: - maxItems: 1 - - clocks: - items: - - description: MII reference clock - - description: RGMII reference clock - - description: RMII reference clock - - description: AHB clock used for the MII converter register interface - - clock-names: - items: - - const: mii_ref - - const: rgmii_ref - - const: rmii_ref - - const: hclk - - renesas,miic-switch-portin: - description: MII Switch PORTIN configuration. This value should use one of - the values defined in dt-bindings/net/pcs-rzn1-miic.h. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [1, 2] - - power-domains: - maxItems: 1 - -patternProperties: - "^mii-conv@[0-5]$": - type: object - description: MII converter port - - properties: - reg: - description: MII Converter port number. - enum: [1, 2, 3, 4, 5] - - renesas,miic-input: - description: Converter input port configuration. This value should use - one of the values defined in dt-bindings/net/pcs-rzn1-miic.h. - $ref: /schemas/types.yaml#/definitions/uint32 - - required: - - reg - - renesas,miic-input - - additionalProperties: false - - allOf: - - if: - properties: - reg: - const: 1 - then: - properties: - renesas,miic-input: - const: 0 - - if: - properties: - reg: - const: 2 - then: - properties: - renesas,miic-input: - enum: [1, 11] - - if: - properties: - reg: - const: 3 - then: - properties: - renesas,miic-input: - enum: [7, 10] - - if: - properties: - reg: - const: 4 - then: - properties: - renesas,miic-input: - enum: [4, 6, 9, 13] - - if: - properties: - reg: - const: 5 - then: - properties: - renesas,miic-input: - enum: [3, 5, 8, 12] - -required: - - '#address-cells' - - '#size-cells' - - compatible - - reg - - clocks - - clock-names - - power-domains - -additionalProperties: false - -examples: - - | - #include - #include - - eth-miic@44030000 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "renesas,r9a06g032-miic", "renesas,rzn1-miic"; - reg = <0x44030000 0x10000>; - clocks = <&sysctrl R9A06G032_CLK_MII_REF>, - <&sysctrl R9A06G032_CLK_RGMII_REF>, - <&sysctrl R9A06G032_CLK_RMII_REF>, - <&sysctrl R9A06G032_HCLK_SWITCH_RG>; - clock-names = "mii_ref", "rgmii_ref", "rmii_ref", "hclk"; - renesas,miic-switch-portin = ; - power-domains = <&sysctrl>; - - mii_conv1: mii-conv@1 { - renesas,miic-input = ; - reg = <1>; - }; - - mii_conv2: mii-conv@2 { - renesas,miic-input = ; - reg = <2>; - }; - - mii_conv3: mii-conv@3 { - renesas,miic-input = ; - reg = <3>; - }; - - mii_conv4: mii-conv@4 { - renesas,miic-input = ; - reg = <4>; - }; - - mii_conv5: mii-conv@5 { - renesas,miic-input = ; - reg = <5>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/pcs/renesas,rzn1-miic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/N1 MII converter + +maintainers: + - Clément Léger + +description: | + This MII converter is present on the Renesas RZ/N1 SoC family. It is + responsible to do MII passthrough or convert it to RMII/RGMII. + +properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + compatible: + items: + - enum: + - renesas,r9a06g032-miic + - const: renesas,rzn1-miic + + reg: + maxItems: 1 + + clocks: + items: + - description: MII reference clock + - description: RGMII reference clock + - description: RMII reference clock + - description: AHB clock used for the MII converter register interface + + clock-names: + items: + - const: mii_ref + - const: rgmii_ref + - const: rmii_ref + - const: hclk + + renesas,miic-switch-portin: + description: MII Switch PORTIN configuration. This value should use one of + the values defined in dt-bindings/net/pcs-rzn1-miic.h. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2] + + power-domains: + maxItems: 1 + +patternProperties: + "^mii-conv@[0-5]$": + type: object + description: MII converter port + + properties: + reg: + description: MII Converter port number. + enum: [1, 2, 3, 4, 5] + + renesas,miic-input: + description: Converter input port configuration. This value should use + one of the values defined in dt-bindings/net/pcs-rzn1-miic.h. + $ref: /schemas/types.yaml#/definitions/uint32 + + required: + - reg + - renesas,miic-input + + additionalProperties: false + + allOf: + - if: + properties: + reg: + const: 1 + then: + properties: + renesas,miic-input: + const: 0 + - if: + properties: + reg: + const: 2 + then: + properties: + renesas,miic-input: + enum: [1, 11] + - if: + properties: + reg: + const: 3 + then: + properties: + renesas,miic-input: + enum: [7, 10] + - if: + properties: + reg: + const: 4 + then: + properties: + renesas,miic-input: + enum: [4, 6, 9, 13] + - if: + properties: + reg: + const: 5 + then: + properties: + renesas,miic-input: + enum: [3, 5, 8, 12] + +required: + - '#address-cells' + - '#size-cells' + - compatible + - reg + - clocks + - clock-names + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + + eth-miic@44030000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,r9a06g032-miic", "renesas,rzn1-miic"; + reg = <0x44030000 0x10000>; + clocks = <&sysctrl R9A06G032_CLK_MII_REF>, + <&sysctrl R9A06G032_CLK_RGMII_REF>, + <&sysctrl R9A06G032_CLK_RMII_REF>, + <&sysctrl R9A06G032_HCLK_SWITCH_RG>; + clock-names = "mii_ref", "rgmii_ref", "rmii_ref", "hclk"; + renesas,miic-switch-portin = ; + power-domains = <&sysctrl>; + + mii_conv1: mii-conv@1 { + renesas,miic-input = ; + reg = <1>; + }; + + mii_conv2: mii-conv@2 { + renesas,miic-input = ; + reg = <2>; + }; + + mii_conv3: mii-conv@3 { + renesas,miic-input = ; + reg = <3>; + }; + + mii_conv4: mii-conv@4 { + renesas,miic-input = ; + reg = <4>; + }; + + mii_conv5: mii-conv@5 { + renesas,miic-input = ; + reg = <5>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml index fa50d75d2..fd4244fce 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml @@ -1,176 +1,176 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/pse-pd/microchip,pd692x0.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Microchip PD692x0 Power Sourcing Equipment controller - -maintainers: - - Kory Maincent - -allOf: - - $ref: pse-controller.yaml# - -properties: - compatible: - enum: - - microchip,pd69200 - - microchip,pd69210 - - microchip,pd69220 - - reg: - maxItems: 1 - - managers: - type: object - additionalProperties: false - description: - List of the PD69208T4/PD69204T4/PD69208M PSE managers. Each manager - have 4 or 8 physical ports according to the chip version. No need to - specify the SPI chip select as it is automatically detected by the - PD692x0 PSE controller. The PSE managers have to be described from - the lowest chip select to the greatest one, which is the detection - behavior of the PD692x0 PSE controller. The PD692x0 support up to - 12 PSE managers which can expose up to 96 physical ports. All - physical ports available on a manager have to be described in the - incremental order even if they are not used. - - properties: - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - - required: - - "#address-cells" - - "#size-cells" - - patternProperties: - "^manager@[0-9a-b]$": - type: object - additionalProperties: false - description: - PD69208T4/PD69204T4/PD69208M PSE manager exposing 4 or 8 physical - ports. - - properties: - reg: - description: - Incremental index of the PSE manager starting from 0, ranging - from lowest to highest chip select, up to 11. - maxItems: 1 - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - - patternProperties: - '^port@[0-7]$': - type: object - additionalProperties: false - - properties: - reg: - maxItems: 1 - - required: - - reg - - required: - - reg - - "#address-cells" - - "#size-cells" - -required: - - compatible - - reg - - pse-pis - -unevaluatedProperties: false - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - ethernet-pse@3c { - compatible = "microchip,pd69200"; - reg = <0x3c>; - - managers { - #address-cells = <1>; - #size-cells = <0>; - - manager@0 { - reg = <0>; - #address-cells = <1>; - #size-cells = <0>; - - phys0: port@0 { - reg = <0>; - }; - - phys1: port@1 { - reg = <1>; - }; - - phys2: port@2 { - reg = <2>; - }; - - phys3: port@3 { - reg = <3>; - }; - }; - - manager@1 { - reg = <1>; - #address-cells = <1>; - #size-cells = <0>; - - phys4: port@0 { - reg = <0>; - }; - - phys5: port@1 { - reg = <1>; - }; - - phys6: port@2 { - reg = <2>; - }; - - phys7: port@3 { - reg = <3>; - }; - }; - }; - - pse-pis { - #address-cells = <1>; - #size-cells = <0>; - - pse_pi0: pse-pi@0 { - reg = <0>; - #pse-cells = <0>; - pairset-names = "alternative-a", "alternative-b"; - pairsets = <&phys0>, <&phys1>; - polarity-supported = "MDI", "S"; - vpwr-supply = <&vpwr1>; - }; - pse_pi1: pse-pi@1 { - reg = <1>; - #pse-cells = <0>; - pairset-names = "alternative-a"; - pairsets = <&phys2>; - polarity-supported = "MDI"; - vpwr-supply = <&vpwr2>; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/pse-pd/microchip,pd692x0.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip PD692x0 Power Sourcing Equipment controller + +maintainers: + - Kory Maincent + +allOf: + - $ref: pse-controller.yaml# + +properties: + compatible: + enum: + - microchip,pd69200 + - microchip,pd69210 + - microchip,pd69220 + + reg: + maxItems: 1 + + managers: + type: object + additionalProperties: false + description: + List of the PD69208T4/PD69204T4/PD69208M PSE managers. Each manager + have 4 or 8 physical ports according to the chip version. No need to + specify the SPI chip select as it is automatically detected by the + PD692x0 PSE controller. The PSE managers have to be described from + the lowest chip select to the greatest one, which is the detection + behavior of the PD692x0 PSE controller. The PD692x0 support up to + 12 PSE managers which can expose up to 96 physical ports. All + physical ports available on a manager have to be described in the + incremental order even if they are not used. + + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + required: + - "#address-cells" + - "#size-cells" + + patternProperties: + "^manager@[0-9a-b]$": + type: object + additionalProperties: false + description: + PD69208T4/PD69204T4/PD69208M PSE manager exposing 4 or 8 physical + ports. + + properties: + reg: + description: + Incremental index of the PSE manager starting from 0, ranging + from lowest to highest chip select, up to 11. + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + patternProperties: + '^port@[0-7]$': + type: object + additionalProperties: false + + properties: + reg: + maxItems: 1 + + required: + - reg + + required: + - reg + - "#address-cells" + - "#size-cells" + +required: + - compatible + - reg + - pse-pis + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + ethernet-pse@3c { + compatible = "microchip,pd69200"; + reg = <0x3c>; + + managers { + #address-cells = <1>; + #size-cells = <0>; + + manager@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + phys0: port@0 { + reg = <0>; + }; + + phys1: port@1 { + reg = <1>; + }; + + phys2: port@2 { + reg = <2>; + }; + + phys3: port@3 { + reg = <3>; + }; + }; + + manager@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + phys4: port@0 { + reg = <0>; + }; + + phys5: port@1 { + reg = <1>; + }; + + phys6: port@2 { + reg = <2>; + }; + + phys7: port@3 { + reg = <3>; + }; + }; + }; + + pse-pis { + #address-cells = <1>; + #size-cells = <0>; + + pse_pi0: pse-pi@0 { + reg = <0>; + #pse-cells = <0>; + pairset-names = "alternative-a", "alternative-b"; + pairsets = <&phys0>, <&phys1>; + polarity-supported = "MDI", "S"; + vpwr-supply = <&vpwr1>; + }; + pse_pi1: pse-pi@1 { + reg = <1>; + #pse-cells = <0>; + pairset-names = "alternative-a"; + pairsets = <&phys2>; + polarity-supported = "MDI"; + vpwr-supply = <&vpwr2>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/qca,ar803x.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/qca,ar803x.yaml index 322af6f8b..3acd09f0d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/qca,ar803x.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/qca,ar803x.yaml @@ -1,134 +1,134 @@ -# SPDX-License-Identifier: GPL-2.0+ -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/qca,ar803x.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Atheros AR803x PHY - -maintainers: - - Andrew Lunn - - Florian Fainelli - - Heiner Kallweit - -description: | - Bindings for Qualcomm Atheros AR803x PHYs - -allOf: - - $ref: ethernet-phy.yaml# - -properties: - qca,clk-out-frequency: - description: Clock output frequency in Hertz. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [25000000, 50000000, 62500000, 125000000] - - qca,clk-out-strength: - description: Clock output driver strength. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1, 2] - - qca,disable-smarteee: - description: Disable Atheros SmartEEE feature. - type: boolean - - qca,keep-pll-enabled: - description: | - If set, keep the PLL enabled even if there is no link. Useful if you - want to use the clock output without an ethernet link. - - Only supported on the AR8031. - type: boolean - - qca,disable-hibernation-mode: - description: | - Disable Atheros AR803X PHYs hibernation mode. If present, indicates - that the hardware of PHY will not enter power saving mode when the - cable is disconnected. And the RX_CLK always keeps outputting a - valid clock. - type: boolean - - qca,smarteee-tw-us-100m: - description: EEE Tw parameter for 100M links. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 1 - maximum: 255 - - qca,smarteee-tw-us-1g: - description: EEE Tw parameter for gigabit links. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 1 - maximum: 255 - - vddio-supply: - description: | - RGMII I/O voltage regulator (see regulator/regulator.yaml). - - The PHY supports RGMII I/O voltages of 1.5V, 1.8V and 2.5V. You can - either connect this to the vddio-regulator (1.5V / 1.8V) or the - vddh-regulator (2.5V). - - Only supported on the AR8031. - - vddio-regulator: - type: object - description: - Initial data for the VDDIO regulator. Set this to 1.5V or 1.8V. - $ref: /schemas/regulator/regulator.yaml - unevaluatedProperties: false - - vddh-regulator: - type: object - description: - Dummy subnode to model the external connection of the PHY VDDH - regulator to VDDIO. - $ref: /schemas/regulator/regulator.yaml - unevaluatedProperties: false - -unevaluatedProperties: false - -examples: - - | - #include - - ethernet { - #address-cells = <1>; - #size-cells = <0>; - - phy-mode = "rgmii-id"; - - ethernet-phy@0 { - reg = <0>; - - qca,clk-out-frequency = <125000000>; - qca,clk-out-strength = ; - - vddio-supply = <&vddio>; - - vddio: vddio-regulator { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - }; - }; - }; - - | - #include - - ethernet { - #address-cells = <1>; - #size-cells = <0>; - - phy-mode = "rgmii-id"; - - ethernet-phy@0 { - reg = <0>; - - qca,clk-out-frequency = <50000000>; - qca,keep-pll-enabled; - - vddio-supply = <&vddh>; - - vddh: vddh-regulator { - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0+ +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/qca,ar803x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Atheros AR803x PHY + +maintainers: + - Andrew Lunn + - Florian Fainelli + - Heiner Kallweit + +description: | + Bindings for Qualcomm Atheros AR803x PHYs + +allOf: + - $ref: ethernet-phy.yaml# + +properties: + qca,clk-out-frequency: + description: Clock output frequency in Hertz. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [25000000, 50000000, 62500000, 125000000] + + qca,clk-out-strength: + description: Clock output driver strength. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2] + + qca,disable-smarteee: + description: Disable Atheros SmartEEE feature. + type: boolean + + qca,keep-pll-enabled: + description: | + If set, keep the PLL enabled even if there is no link. Useful if you + want to use the clock output without an ethernet link. + + Only supported on the AR8031. + type: boolean + + qca,disable-hibernation-mode: + description: | + Disable Atheros AR803X PHYs hibernation mode. If present, indicates + that the hardware of PHY will not enter power saving mode when the + cable is disconnected. And the RX_CLK always keeps outputting a + valid clock. + type: boolean + + qca,smarteee-tw-us-100m: + description: EEE Tw parameter for 100M links. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + maximum: 255 + + qca,smarteee-tw-us-1g: + description: EEE Tw parameter for gigabit links. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + maximum: 255 + + vddio-supply: + description: | + RGMII I/O voltage regulator (see regulator/regulator.yaml). + + The PHY supports RGMII I/O voltages of 1.5V, 1.8V and 2.5V. You can + either connect this to the vddio-regulator (1.5V / 1.8V) or the + vddh-regulator (2.5V). + + Only supported on the AR8031. + + vddio-regulator: + type: object + description: + Initial data for the VDDIO regulator. Set this to 1.5V or 1.8V. + $ref: /schemas/regulator/regulator.yaml + unevaluatedProperties: false + + vddh-regulator: + type: object + description: + Dummy subnode to model the external connection of the PHY VDDH + regulator to VDDIO. + $ref: /schemas/regulator/regulator.yaml + unevaluatedProperties: false + +unevaluatedProperties: false + +examples: + - | + #include + + ethernet { + #address-cells = <1>; + #size-cells = <0>; + + phy-mode = "rgmii-id"; + + ethernet-phy@0 { + reg = <0>; + + qca,clk-out-frequency = <125000000>; + qca,clk-out-strength = ; + + vddio-supply = <&vddio>; + + vddio: vddio-regulator { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + }; + }; + - | + #include + + ethernet { + #address-cells = <1>; + #size-cells = <0>; + + phy-mode = "rgmii-id"; + + ethernet-phy@0 { + reg = <0>; + + qca,clk-out-frequency = <50000000>; + qca,keep-pll-enabled; + + vddio-supply = <&vddh>; + + vddh: vddh-regulator { + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/renesas,ether.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/renesas,ether.yaml index 678aa19bc..29355ab98 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/renesas,ether.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/renesas,ether.yaml @@ -1,129 +1,129 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/renesas,ether.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas Electronics SH EtherMAC - -allOf: - - $ref: ethernet-controller.yaml# - -maintainers: - - Sergei Shtylyov - -properties: - compatible: - oneOf: - - items: - - enum: - - renesas,gether-r8a7740 # device is a part of R8A7740 SoC - - renesas,gether-r8a77980 # device is a part of R8A77980 SoC - - renesas,ether-r7s72100 # device is a part of R7S72100 SoC - - renesas,ether-r7s9210 # device is a part of R7S9210 SoC - - items: - - enum: - - renesas,ether-r8a7778 # device is a part of R8A7778 SoC - - renesas,ether-r8a7779 # device is a part of R8A7779 SoC - - enum: - - renesas,rcar-gen1-ether # a generic R-Car Gen1 device - - items: - - enum: - - renesas,ether-r8a7742 # device is a part of R8A7742 SoC - - renesas,ether-r8a7743 # device is a part of R8A7743 SoC - - renesas,ether-r8a7745 # device is a part of R8A7745 SoC - - renesas,ether-r8a7790 # device is a part of R8A7790 SoC - - renesas,ether-r8a7791 # device is a part of R8A7791 SoC - - renesas,ether-r8a7793 # device is a part of R8A7793 SoC - - renesas,ether-r8a7794 # device is a part of R8A7794 SoC - - enum: - - renesas,rcar-gen2-ether # a generic R-Car Gen2 or RZ/G1 device - - reg: - items: - - description: E-DMAC/feLic registers - - description: TSU registers - minItems: 1 - - interrupts: - maxItems: 1 - - '#address-cells': - description: number of address cells for the MDIO bus - const: 1 - - '#size-cells': - description: number of size cells on the MDIO bus - const: 0 - - clocks: - maxItems: 1 - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - phy-mode: true - - phy-handle: true - - renesas,no-ether-link: - type: boolean - description: - specify when a board does not provide a proper Ether LINK signal - - renesas,ether-link-active-low: - type: boolean - description: - specify when the Ether LINK signal is active-low instead of normal - active-high - -patternProperties: - "@[0-9a-f]$": - type: object - -required: - - compatible - - reg - - interrupts - - phy-mode - - phy-handle - - '#address-cells' - - '#size-cells' - - clocks - -additionalProperties: false - -examples: - # Lager board - - | - #include - #include - #include - #include - - ethernet@ee700000 { - compatible = "renesas,ether-r8a7790", "renesas,rcar-gen2-ether"; - reg = <0xee700000 0x400>; - interrupts = ; - clocks = <&cpg CPG_MOD 813>; - power-domains = <&sysc R8A7790_PD_ALWAYS_ON>; - resets = <&cpg 813>; - phy-mode = "rmii"; - phy-handle = <&phy1>; - renesas,ether-link-active-low; - #address-cells = <1>; - #size-cells = <0>; - - phy1: ethernet-phy@1 { - compatible = "ethernet-phy-id0022.1537", - "ethernet-phy-ieee802.3-c22"; - reg = <1>; - interrupt-parent = <&irqc0>; - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; - micrel,led-mode = <1>; - reset-gpios = <&gpio5 31 GPIO_ACTIVE_LOW>; - }; - }; +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/renesas,ether.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas Electronics SH EtherMAC + +allOf: + - $ref: ethernet-controller.yaml# + +maintainers: + - Sergei Shtylyov + +properties: + compatible: + oneOf: + - items: + - enum: + - renesas,gether-r8a7740 # device is a part of R8A7740 SoC + - renesas,gether-r8a77980 # device is a part of R8A77980 SoC + - renesas,ether-r7s72100 # device is a part of R7S72100 SoC + - renesas,ether-r7s9210 # device is a part of R7S9210 SoC + - items: + - enum: + - renesas,ether-r8a7778 # device is a part of R8A7778 SoC + - renesas,ether-r8a7779 # device is a part of R8A7779 SoC + - enum: + - renesas,rcar-gen1-ether # a generic R-Car Gen1 device + - items: + - enum: + - renesas,ether-r8a7742 # device is a part of R8A7742 SoC + - renesas,ether-r8a7743 # device is a part of R8A7743 SoC + - renesas,ether-r8a7745 # device is a part of R8A7745 SoC + - renesas,ether-r8a7790 # device is a part of R8A7790 SoC + - renesas,ether-r8a7791 # device is a part of R8A7791 SoC + - renesas,ether-r8a7793 # device is a part of R8A7793 SoC + - renesas,ether-r8a7794 # device is a part of R8A7794 SoC + - enum: + - renesas,rcar-gen2-ether # a generic R-Car Gen2 or RZ/G1 device + + reg: + items: + - description: E-DMAC/feLic registers + - description: TSU registers + minItems: 1 + + interrupts: + maxItems: 1 + + '#address-cells': + description: number of address cells for the MDIO bus + const: 1 + + '#size-cells': + description: number of size cells on the MDIO bus + const: 0 + + clocks: + maxItems: 1 + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + phy-mode: true + + phy-handle: true + + renesas,no-ether-link: + type: boolean + description: + specify when a board does not provide a proper Ether LINK signal + + renesas,ether-link-active-low: + type: boolean + description: + specify when the Ether LINK signal is active-low instead of normal + active-high + +patternProperties: + "@[0-9a-f]$": + type: object + +required: + - compatible + - reg + - interrupts + - phy-mode + - phy-handle + - '#address-cells' + - '#size-cells' + - clocks + +additionalProperties: false + +examples: + # Lager board + - | + #include + #include + #include + #include + + ethernet@ee700000 { + compatible = "renesas,ether-r8a7790", "renesas,rcar-gen2-ether"; + reg = <0xee700000 0x400>; + interrupts = ; + clocks = <&cpg CPG_MOD 813>; + power-domains = <&sysc R8A7790_PD_ALWAYS_ON>; + resets = <&cpg 813>; + phy-mode = "rmii"; + phy-handle = <&phy1>; + renesas,ether-link-active-low; + #address-cells = <1>; + #size-cells = <0>; + + phy1: ethernet-phy@1 { + compatible = "ethernet-phy-id0022.1537", + "ethernet-phy-ieee802.3-c22"; + reg = <1>; + interrupt-parent = <&irqc0>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + micrel,led-mode = <1>; + reset-gpios = <&gpio5 31 GPIO_ACTIVE_LOW>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml index ae33a0fd6..f8a576611 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml @@ -1,144 +1,144 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/rockchip-dwmac.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Rockchip 10/100/1000 Ethernet driver(GMAC) - -maintainers: - - David Wu - -# We need a select here so we don't match all nodes with 'snps,dwmac' -select: - properties: - compatible: - contains: - enum: - - rockchip,px30-gmac - - rockchip,rk3128-gmac - - rockchip,rk3228-gmac - - rockchip,rk3288-gmac - - rockchip,rk3308-gmac - - rockchip,rk3328-gmac - - rockchip,rk3366-gmac - - rockchip,rk3368-gmac - - rockchip,rk3399-gmac - - rockchip,rk3568-gmac - - rockchip,rk3576-gmac - - rockchip,rk3588-gmac - - rockchip,rv1108-gmac - - rockchip,rv1126-gmac - required: - - compatible - -allOf: - - $ref: snps,dwmac.yaml# - -properties: - compatible: - oneOf: - - items: - - enum: - - rockchip,px30-gmac - - rockchip,rk3128-gmac - - rockchip,rk3228-gmac - - rockchip,rk3288-gmac - - rockchip,rk3308-gmac - - rockchip,rk3328-gmac - - rockchip,rk3366-gmac - - rockchip,rk3368-gmac - - rockchip,rk3399-gmac - - rockchip,rv1108-gmac - - items: - - enum: - - rockchip,rk3568-gmac - - rockchip,rk3576-gmac - - rockchip,rk3588-gmac - - rockchip,rv1126-gmac - - const: snps,dwmac-4.20a - - clocks: - minItems: 5 - maxItems: 8 - - clock-names: - contains: - enum: - - stmmaceth - - mac_clk_tx - - mac_clk_rx - - aclk_mac - - pclk_mac - - clk_mac_ref - - clk_mac_refout - - clk_mac_speed - - clock_in_out: - description: - For RGMII, it must be "input", means main clock(125MHz) - is not sourced from SoC's PLL, but input from PHY. - For RMII, "input" means PHY provides the reference clock(50MHz), - "output" means GMAC provides the reference clock. - $ref: /schemas/types.yaml#/definitions/string - enum: [input, output] - default: input - - rockchip,grf: - description: The phandle of the syscon node for the general register file. - $ref: /schemas/types.yaml#/definitions/phandle - - rockchip,php-grf: - description: - The phandle of the syscon node for the peripheral general register file. - $ref: /schemas/types.yaml#/definitions/phandle - - tx_delay: - description: Delay value for TXD timing. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 0x7F - default: 0x30 - - rx_delay: - description: Delay value for RXD timing. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 0x7F - default: 0x10 - - phy-supply: - description: PHY regulator - -required: - - compatible - - clocks - - clock-names - -unevaluatedProperties: false - -examples: - - | - #include - #include - - gmac: ethernet@ff290000 { - compatible = "rockchip,rk3288-gmac"; - reg = <0xff290000 0x10000>; - interrupts = ; - interrupt-names = "macirq"; - clocks = <&cru SCLK_MAC>, - <&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>, - <&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>, - <&cru ACLK_GMAC>, <&cru PCLK_GMAC>; - clock-names = "stmmaceth", - "mac_clk_rx", "mac_clk_tx", - "clk_mac_ref", "clk_mac_refout", - "aclk_mac", "pclk_mac"; - assigned-clocks = <&cru SCLK_MAC>; - assigned-clock-parents = <&ext_gmac>; - - rockchip,grf = <&grf>; - phy-mode = "rgmii-id"; - clock_in_out = "input"; - }; +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/rockchip-dwmac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip 10/100/1000 Ethernet driver(GMAC) + +maintainers: + - David Wu + +# We need a select here so we don't match all nodes with 'snps,dwmac' +select: + properties: + compatible: + contains: + enum: + - rockchip,px30-gmac + - rockchip,rk3128-gmac + - rockchip,rk3228-gmac + - rockchip,rk3288-gmac + - rockchip,rk3308-gmac + - rockchip,rk3328-gmac + - rockchip,rk3366-gmac + - rockchip,rk3368-gmac + - rockchip,rk3399-gmac + - rockchip,rk3568-gmac + - rockchip,rk3576-gmac + - rockchip,rk3588-gmac + - rockchip,rv1108-gmac + - rockchip,rv1126-gmac + required: + - compatible + +allOf: + - $ref: snps,dwmac.yaml# + +properties: + compatible: + oneOf: + - items: + - enum: + - rockchip,px30-gmac + - rockchip,rk3128-gmac + - rockchip,rk3228-gmac + - rockchip,rk3288-gmac + - rockchip,rk3308-gmac + - rockchip,rk3328-gmac + - rockchip,rk3366-gmac + - rockchip,rk3368-gmac + - rockchip,rk3399-gmac + - rockchip,rv1108-gmac + - items: + - enum: + - rockchip,rk3568-gmac + - rockchip,rk3576-gmac + - rockchip,rk3588-gmac + - rockchip,rv1126-gmac + - const: snps,dwmac-4.20a + + clocks: + minItems: 5 + maxItems: 8 + + clock-names: + contains: + enum: + - stmmaceth + - mac_clk_tx + - mac_clk_rx + - aclk_mac + - pclk_mac + - clk_mac_ref + - clk_mac_refout + - clk_mac_speed + + clock_in_out: + description: + For RGMII, it must be "input", means main clock(125MHz) + is not sourced from SoC's PLL, but input from PHY. + For RMII, "input" means PHY provides the reference clock(50MHz), + "output" means GMAC provides the reference clock. + $ref: /schemas/types.yaml#/definitions/string + enum: [input, output] + default: input + + rockchip,grf: + description: The phandle of the syscon node for the general register file. + $ref: /schemas/types.yaml#/definitions/phandle + + rockchip,php-grf: + description: + The phandle of the syscon node for the peripheral general register file. + $ref: /schemas/types.yaml#/definitions/phandle + + tx_delay: + description: Delay value for TXD timing. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0x7F + default: 0x30 + + rx_delay: + description: Delay value for RXD timing. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0x7F + default: 0x10 + + phy-supply: + description: PHY regulator + +required: + - compatible + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + #include + + gmac: ethernet@ff290000 { + compatible = "rockchip,rk3288-gmac"; + reg = <0xff290000 0x10000>; + interrupts = ; + interrupt-names = "macirq"; + clocks = <&cru SCLK_MAC>, + <&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>, + <&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>, + <&cru ACLK_GMAC>, <&cru PCLK_GMAC>; + clock-names = "stmmaceth", + "mac_clk_rx", "mac_clk_tx", + "clk_mac_ref", "clk_mac_refout", + "aclk_mac", "pclk_mac"; + assigned-clocks = <&cru SCLK_MAC>; + assigned-clock-parents = <&ext_gmac>; + + rockchip,grf = <&grf>; + phy-mode = "rgmii-id"; + clock_in_out = "input"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/sff,sfp.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/sff,sfp.yaml index 93d24914f..90611b598 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/sff,sfp.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/sff,sfp.yaml @@ -1,143 +1,143 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/sff,sfp.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Small Form Factor (SFF) Committee Small Form-factor Pluggable (SFP) - Transceiver - -maintainers: - - Russell King - -properties: - compatible: - enum: - - sff,sfp # for SFP modules - - sff,sff # for soldered down SFF modules - - i2c-bus: - $ref: /schemas/types.yaml#/definitions/phandle - description: - phandle of an I2C bus controller for the SFP two wire serial - - maximum-power-milliwatt: - minimum: 1000 - default: 1000 - description: - Maximum module power consumption Specifies the maximum power consumption - allowable by a module in the slot, in milli-Watts. Presently, modules can - be up to 1W, 1.5W or 2W. - - mod-def0-gpios: - maxItems: 1 - description: - GPIO phandle and a specifier of the MOD-DEF0 (AKA Mod_ABS) module - presence input gpio signal, active (module absent) high. Must not be - present for SFF modules - - los-gpios: - maxItems: 1 - description: - GPIO phandle and a specifier of the Receiver Loss of Signal Indication - input gpio signal, active (signal lost) high - - tx-fault-gpios: - maxItems: 1 - description: - GPIO phandle and a specifier of the Module Transmitter Fault input gpio - signal, active (fault condition) high - - tx-disable-gpios: - maxItems: 1 - description: - GPIO phandle and a specifier of the Transmitter Disable output gpio - signal, active (Tx disable) high - - rate-select0-gpios: - maxItems: 1 - description: - GPIO phandle and a specifier of the Rx Signaling Rate Select (AKA RS0) - output gpio signal, low - low Rx rate, high - high Rx rate Must not be - present for SFF modules - - rate-select1-gpios: - maxItems: 1 - description: - GPIO phandle and a specifier of the Tx Signaling Rate Select (AKA RS1) - output gpio signal (SFP+ only), low - low Tx rate, high - high Tx rate. Must - not be present for SFF modules - -allOf: - - if: - properties: - compatible: - contains: - const: sff,sff - then: - properties: - mod-def0-gpios: false - rate-select0-gpios: false - rate-select1-gpios: false - -required: - - compatible - - i2c-bus - -additionalProperties: false - -examples: - - | # Direct serdes to SFP connection - #include - - sfp1: sfp { - compatible = "sff,sfp"; - i2c-bus = <&sfp_1g_i2c>; - los-gpios = <&cpm_gpio2 22 GPIO_ACTIVE_HIGH>; - mod-def0-gpios = <&cpm_gpio2 21 GPIO_ACTIVE_LOW>; - maximum-power-milliwatt = <1000>; - pinctrl-names = "default"; - pinctrl-0 = <&cpm_sfp_1g_pins &cps_sfp_1g_pins>; - tx-disable-gpios = <&cps_gpio1 24 GPIO_ACTIVE_HIGH>; - tx-fault-gpios = <&cpm_gpio2 19 GPIO_ACTIVE_HIGH>; - }; - - ethernet { - phy-names = "comphy"; - phys = <&cps_comphy5 0>; - sfp = <&sfp1>; - }; - - - | # Serdes to PHY to SFP connection - #include - #include - - sfp2: sfp { - compatible = "sff,sfp"; - i2c-bus = <&sfp_i2c>; - los-gpios = <&cps_gpio1 28 GPIO_ACTIVE_HIGH>; - mod-def0-gpios = <&cps_gpio1 27 GPIO_ACTIVE_LOW>; - pinctrl-names = "default"; - pinctrl-0 = <&cps_sfpp0_pins>; - tx-disable-gpios = <&cps_gpio1 29 GPIO_ACTIVE_HIGH>; - tx-fault-gpios = <&cps_gpio1 26 GPIO_ACTIVE_HIGH>; - }; - - mdio { - #address-cells = <1>; - #size-cells = <0>; - - phy: ethernet-phy@0 { - compatible = "ethernet-phy-ieee802.3-c45"; - pinctrl-names = "default"; - pinctrl-0 = <&cpm_phy0_pins &cps_phy0_pins>; - reg = <0>; - interrupt = <&cpm_gpio2 18 IRQ_TYPE_EDGE_FALLING>; - sfp = <&sfp2>; - }; - }; - - ethernet { - phy = <&phy>; - phy-mode = "10gbase-kr"; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/sff,sfp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Small Form Factor (SFF) Committee Small Form-factor Pluggable (SFP) + Transceiver + +maintainers: + - Russell King + +properties: + compatible: + enum: + - sff,sfp # for SFP modules + - sff,sff # for soldered down SFF modules + + i2c-bus: + $ref: /schemas/types.yaml#/definitions/phandle + description: + phandle of an I2C bus controller for the SFP two wire serial + + maximum-power-milliwatt: + minimum: 1000 + default: 1000 + description: + Maximum module power consumption Specifies the maximum power consumption + allowable by a module in the slot, in milli-Watts. Presently, modules can + be up to 1W, 1.5W or 2W. + + mod-def0-gpios: + maxItems: 1 + description: + GPIO phandle and a specifier of the MOD-DEF0 (AKA Mod_ABS) module + presence input gpio signal, active (module absent) high. Must not be + present for SFF modules + + los-gpios: + maxItems: 1 + description: + GPIO phandle and a specifier of the Receiver Loss of Signal Indication + input gpio signal, active (signal lost) high + + tx-fault-gpios: + maxItems: 1 + description: + GPIO phandle and a specifier of the Module Transmitter Fault input gpio + signal, active (fault condition) high + + tx-disable-gpios: + maxItems: 1 + description: + GPIO phandle and a specifier of the Transmitter Disable output gpio + signal, active (Tx disable) high + + rate-select0-gpios: + maxItems: 1 + description: + GPIO phandle and a specifier of the Rx Signaling Rate Select (AKA RS0) + output gpio signal, low - low Rx rate, high - high Rx rate Must not be + present for SFF modules + + rate-select1-gpios: + maxItems: 1 + description: + GPIO phandle and a specifier of the Tx Signaling Rate Select (AKA RS1) + output gpio signal (SFP+ only), low - low Tx rate, high - high Tx rate. Must + not be present for SFF modules + +allOf: + - if: + properties: + compatible: + contains: + const: sff,sff + then: + properties: + mod-def0-gpios: false + rate-select0-gpios: false + rate-select1-gpios: false + +required: + - compatible + - i2c-bus + +additionalProperties: false + +examples: + - | # Direct serdes to SFP connection + #include + + sfp1: sfp { + compatible = "sff,sfp"; + i2c-bus = <&sfp_1g_i2c>; + los-gpios = <&cpm_gpio2 22 GPIO_ACTIVE_HIGH>; + mod-def0-gpios = <&cpm_gpio2 21 GPIO_ACTIVE_LOW>; + maximum-power-milliwatt = <1000>; + pinctrl-names = "default"; + pinctrl-0 = <&cpm_sfp_1g_pins &cps_sfp_1g_pins>; + tx-disable-gpios = <&cps_gpio1 24 GPIO_ACTIVE_HIGH>; + tx-fault-gpios = <&cpm_gpio2 19 GPIO_ACTIVE_HIGH>; + }; + + ethernet { + phy-names = "comphy"; + phys = <&cps_comphy5 0>; + sfp = <&sfp1>; + }; + + - | # Serdes to PHY to SFP connection + #include + #include + + sfp2: sfp { + compatible = "sff,sfp"; + i2c-bus = <&sfp_i2c>; + los-gpios = <&cps_gpio1 28 GPIO_ACTIVE_HIGH>; + mod-def0-gpios = <&cps_gpio1 27 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&cps_sfpp0_pins>; + tx-disable-gpios = <&cps_gpio1 29 GPIO_ACTIVE_HIGH>; + tx-fault-gpios = <&cps_gpio1 26 GPIO_ACTIVE_HIGH>; + }; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + phy: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c45"; + pinctrl-names = "default"; + pinctrl-0 = <&cpm_phy0_pins &cps_phy0_pins>; + reg = <0>; + interrupt = <&cpm_gpio2 18 IRQ_TYPE_EDGE_FALLING>; + sfp = <&sfp2>; + }; + }; + + ethernet { + phy = <&phy>; + phy-mode = "10gbase-kr"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml index 55b16e06e..313a15331 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml @@ -1,190 +1,190 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (C) 2022 StarFive Technology Co., Ltd. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/starfive,jh7110-dwmac.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: StarFive JH7110 DWMAC glue layer - -maintainers: - - Emil Renner Berthing - - Samin Guo - -select: - properties: - compatible: - contains: - enum: - - starfive,jh7100-dwmac - - starfive,jh7110-dwmac - required: - - compatible - -properties: - compatible: - oneOf: - - items: - - const: starfive,jh7100-dwmac - - const: snps,dwmac - - items: - - const: starfive,jh7110-dwmac - - const: snps,dwmac-5.20 - - items: - - const: starfive,jh8100-dwmac - - const: starfive,jh7110-dwmac - - const: snps,dwmac-5.20 - - reg: - maxItems: 1 - - clocks: - items: - - description: GMAC main clock - - description: GMAC AHB clock - - description: PTP clock - - description: TX clock - - description: GTX clock - - clock-names: - items: - - const: stmmaceth - - const: pclk - - const: ptp_ref - - const: tx - - const: gtx - - starfive,tx-use-rgmii-clk: - description: - Tx clock is provided by external rgmii clock. - type: boolean - - starfive,syscon: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - - items: - - description: phandle to syscon that configures phy mode - - description: Offset of phy mode selection - - description: Shift of phy mode selection - description: - A phandle to syscon with two arguments that configure phy mode. - The argument one is the offset of phy mode selection, the - argument two is the shift of phy mode selection. - -required: - - compatible - - reg - - clocks - - clock-names - - interrupts - - interrupt-names - - resets - - reset-names - -allOf: - - $ref: snps,dwmac.yaml# - - - if: - properties: - compatible: - contains: - const: starfive,jh7100-dwmac - then: - properties: - interrupts: - minItems: 2 - maxItems: 2 - - interrupt-names: - minItems: 2 - maxItems: 2 - - resets: - maxItems: 1 - - reset-names: - const: ahb - - - if: - properties: - compatible: - contains: - const: starfive,jh7110-dwmac - then: - properties: - interrupts: - minItems: 3 - maxItems: 3 - - interrupt-names: - minItems: 3 - maxItems: 3 - - if: - properties: - compatible: - contains: - const: starfive,jh8100-dwmac - then: - properties: - resets: - maxItems: 1 - - reset-names: - const: stmmaceth - else: - properties: - resets: - minItems: 2 - - reset-names: - minItems: 2 - -unevaluatedProperties: false - -examples: - - | - ethernet@16030000 { - compatible = "starfive,jh7110-dwmac", "snps,dwmac-5.20"; - reg = <0x16030000 0x10000>; - clocks = <&clk 3>, <&clk 2>, <&clk 109>, - <&clk 6>, <&clk 111>; - clock-names = "stmmaceth", "pclk", "ptp_ref", - "tx", "gtx"; - resets = <&rst 1>, <&rst 2>; - reset-names = "stmmaceth", "ahb"; - interrupts = <7>, <6>, <5>; - interrupt-names = "macirq", "eth_wake_irq", "eth_lpi"; - phy-mode = "rgmii-id"; - snps,multicast-filter-bins = <64>; - snps,perfect-filter-entries = <8>; - rx-fifo-depth = <2048>; - tx-fifo-depth = <2048>; - snps,fixed-burst; - snps,no-pbl-x8; - snps,tso; - snps,force_thresh_dma_mode; - snps,axi-config = <&stmmac_axi_setup>; - snps,en-tx-lpi-clockgating; - snps,txpbl = <16>; - snps,rxpbl = <16>; - starfive,syscon = <&aon_syscon 0xc 0x12>; - phy-handle = <&phy0>; - - mdio { - #address-cells = <1>; - #size-cells = <0>; - compatible = "snps,dwmac-mdio"; - - phy0: ethernet-phy@0 { - reg = <0>; - }; - }; - - stmmac_axi_setup: stmmac-axi-config { - snps,lpi_en; - snps,wr_osr_lmt = <4>; - snps,rd_osr_lmt = <4>; - snps,blen = <256 128 64 32 0 0 0>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2022 StarFive Technology Co., Ltd. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/starfive,jh7110-dwmac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7110 DWMAC glue layer + +maintainers: + - Emil Renner Berthing + - Samin Guo + +select: + properties: + compatible: + contains: + enum: + - starfive,jh7100-dwmac + - starfive,jh7110-dwmac + required: + - compatible + +properties: + compatible: + oneOf: + - items: + - const: starfive,jh7100-dwmac + - const: snps,dwmac + - items: + - const: starfive,jh7110-dwmac + - const: snps,dwmac-5.20 + - items: + - const: starfive,jh8100-dwmac + - const: starfive,jh7110-dwmac + - const: snps,dwmac-5.20 + + reg: + maxItems: 1 + + clocks: + items: + - description: GMAC main clock + - description: GMAC AHB clock + - description: PTP clock + - description: TX clock + - description: GTX clock + + clock-names: + items: + - const: stmmaceth + - const: pclk + - const: ptp_ref + - const: tx + - const: gtx + + starfive,tx-use-rgmii-clk: + description: + Tx clock is provided by external rgmii clock. + type: boolean + + starfive,syscon: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to syscon that configures phy mode + - description: Offset of phy mode selection + - description: Shift of phy mode selection + description: + A phandle to syscon with two arguments that configure phy mode. + The argument one is the offset of phy mode selection, the + argument two is the shift of phy mode selection. + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - interrupt-names + - resets + - reset-names + +allOf: + - $ref: snps,dwmac.yaml# + + - if: + properties: + compatible: + contains: + const: starfive,jh7100-dwmac + then: + properties: + interrupts: + minItems: 2 + maxItems: 2 + + interrupt-names: + minItems: 2 + maxItems: 2 + + resets: + maxItems: 1 + + reset-names: + const: ahb + + - if: + properties: + compatible: + contains: + const: starfive,jh7110-dwmac + then: + properties: + interrupts: + minItems: 3 + maxItems: 3 + + interrupt-names: + minItems: 3 + maxItems: 3 + + if: + properties: + compatible: + contains: + const: starfive,jh8100-dwmac + then: + properties: + resets: + maxItems: 1 + + reset-names: + const: stmmaceth + else: + properties: + resets: + minItems: 2 + + reset-names: + minItems: 2 + +unevaluatedProperties: false + +examples: + - | + ethernet@16030000 { + compatible = "starfive,jh7110-dwmac", "snps,dwmac-5.20"; + reg = <0x16030000 0x10000>; + clocks = <&clk 3>, <&clk 2>, <&clk 109>, + <&clk 6>, <&clk 111>; + clock-names = "stmmaceth", "pclk", "ptp_ref", + "tx", "gtx"; + resets = <&rst 1>, <&rst 2>; + reset-names = "stmmaceth", "ahb"; + interrupts = <7>, <6>, <5>; + interrupt-names = "macirq", "eth_wake_irq", "eth_lpi"; + phy-mode = "rgmii-id"; + snps,multicast-filter-bins = <64>; + snps,perfect-filter-entries = <8>; + rx-fifo-depth = <2048>; + tx-fifo-depth = <2048>; + snps,fixed-burst; + snps,no-pbl-x8; + snps,tso; + snps,force_thresh_dma_mode; + snps,axi-config = <&stmmac_axi_setup>; + snps,en-tx-lpi-clockgating; + snps,txpbl = <16>; + snps,rxpbl = <16>; + starfive,syscon = <&aon_syscon 0xc 0x12>; + phy-handle = <&phy0>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + + phy0: ethernet-phy@0 { + reg = <0>; + }; + }; + + stmmac_axi_setup: stmmac-axi-config { + snps,lpi_en; + snps,wr_osr_lmt = <4>; + snps,rd_osr_lmt = <4>; + snps,blen = <256 128 64 32 0 0 0>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/ti,dp83822.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/ti,dp83822.yaml index 8c426dd5e..784866ea3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/ti,dp83822.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/ti,dp83822.yaml @@ -1,116 +1,116 @@ -# SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) -# Copyright (C) 2020 Texas Instruments Incorporated -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/ti,dp83822.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: TI DP83822 ethernet PHY - -maintainers: - - Andrew Davis - -description: | - The DP83822 is a low-power, single-port, 10/100 Mbps Ethernet PHY. It - provides all of the physical layer functions needed to transmit and receive - data over standard, twisted-pair cables or to connect to an external, - fiber-optic transceiver. Additionally, the DP83822 provides flexibility to - connect to a MAC through a standard MII, RMII, or RGMII interface - - Specifications about the Ethernet PHY can be found at: - http://www.ti.com/lit/ds/symlink/dp83822i.pdf - -allOf: - - $ref: ethernet-phy.yaml# - -properties: - reg: - maxItems: 1 - - ti,link-loss-low: - type: boolean - description: | - DP83822 PHY in Fiber mode only. - Sets the DP83822 to detect a link drop condition when the signal goes - high. If not set then link drop will occur when the signal goes low. - This property is only applicable if the fiber mode support is strapped - to on. - - ti,fiber-mode: - type: boolean - description: | - DP83822 PHY only. - If present the DP83822 PHY is configured to operate in fiber mode - Fiber mode support can also be strapped. If the strap pin is not set - correctly or not set at all then this boolean can be used to enable it. - If the fiber mode is not strapped then signal detection for the PHY - is disabled. - In fiber mode, auto-negotiation is disabled and the PHY can only work in - 100base-fx (full and half duplex) modes. - - rx-internal-delay-ps: - description: | - DP83822 PHY only. - Setting this property to a non-zero number sets the RX internal delay - for the PHY. The internal delay for the PHY is fixed to 3.5ns relative - to receive data. - - tx-internal-delay-ps: - description: | - DP83822 PHY only. - Setting this property to a non-zero number sets the TX internal delay - for the PHY. The internal delay for the PHY is fixed to 3.5ns relative - to transmit data. - - ti,cfg-dac-minus-one-bp: - description: | - DP83826 PHY only. - Sets the voltage ratio (with respect to the nominal value) - of the logical level -1 for the MLT-3 encoded TX data. - enum: [5000, 5625, 6250, 6875, 7500, 8125, 8750, 9375, 10000, - 10625, 11250, 11875, 12500, 13125, 13750, 14375, 15000] - default: 10000 - - ti,cfg-dac-plus-one-bp: - description: | - DP83826 PHY only. - Sets the voltage ratio (with respect to the nominal value) - of the logical level +1 for the MLT-3 encoded TX data. - enum: [5000, 5625, 6250, 6875, 7500, 8125, 8750, 9375, 10000, - 10625, 11250, 11875, 12500, 13125, 13750, 14375, 15000] - default: 10000 - - ti,rmii-mode: - description: | - If present, select the RMII operation mode. Two modes are - available: - - RMII master, where the PHY outputs a 50MHz reference clock which can - be connected to the MAC. - - RMII slave, where the PHY expects a 50MHz reference clock input - shared with the MAC. - The RMII operation mode can also be configured by its straps. - If the strap pin is not set correctly or not set at all, then this can be - used to configure it. - $ref: /schemas/types.yaml#/definitions/string - enum: - - master - - slave - -required: - - reg - -unevaluatedProperties: false - -examples: - - | - mdio0 { - #address-cells = <1>; - #size-cells = <0>; - ethphy0: ethernet-phy@0 { - reg = <0>; - rx-internal-delay-ps = <1>; - tx-internal-delay-ps = <1>; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) +# Copyright (C) 2020 Texas Instruments Incorporated +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/ti,dp83822.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI DP83822 ethernet PHY + +maintainers: + - Andrew Davis + +description: | + The DP83822 is a low-power, single-port, 10/100 Mbps Ethernet PHY. It + provides all of the physical layer functions needed to transmit and receive + data over standard, twisted-pair cables or to connect to an external, + fiber-optic transceiver. Additionally, the DP83822 provides flexibility to + connect to a MAC through a standard MII, RMII, or RGMII interface + + Specifications about the Ethernet PHY can be found at: + http://www.ti.com/lit/ds/symlink/dp83822i.pdf + +allOf: + - $ref: ethernet-phy.yaml# + +properties: + reg: + maxItems: 1 + + ti,link-loss-low: + type: boolean + description: | + DP83822 PHY in Fiber mode only. + Sets the DP83822 to detect a link drop condition when the signal goes + high. If not set then link drop will occur when the signal goes low. + This property is only applicable if the fiber mode support is strapped + to on. + + ti,fiber-mode: + type: boolean + description: | + DP83822 PHY only. + If present the DP83822 PHY is configured to operate in fiber mode + Fiber mode support can also be strapped. If the strap pin is not set + correctly or not set at all then this boolean can be used to enable it. + If the fiber mode is not strapped then signal detection for the PHY + is disabled. + In fiber mode, auto-negotiation is disabled and the PHY can only work in + 100base-fx (full and half duplex) modes. + + rx-internal-delay-ps: + description: | + DP83822 PHY only. + Setting this property to a non-zero number sets the RX internal delay + for the PHY. The internal delay for the PHY is fixed to 3.5ns relative + to receive data. + + tx-internal-delay-ps: + description: | + DP83822 PHY only. + Setting this property to a non-zero number sets the TX internal delay + for the PHY. The internal delay for the PHY is fixed to 3.5ns relative + to transmit data. + + ti,cfg-dac-minus-one-bp: + description: | + DP83826 PHY only. + Sets the voltage ratio (with respect to the nominal value) + of the logical level -1 for the MLT-3 encoded TX data. + enum: [5000, 5625, 6250, 6875, 7500, 8125, 8750, 9375, 10000, + 10625, 11250, 11875, 12500, 13125, 13750, 14375, 15000] + default: 10000 + + ti,cfg-dac-plus-one-bp: + description: | + DP83826 PHY only. + Sets the voltage ratio (with respect to the nominal value) + of the logical level +1 for the MLT-3 encoded TX data. + enum: [5000, 5625, 6250, 6875, 7500, 8125, 8750, 9375, 10000, + 10625, 11250, 11875, 12500, 13125, 13750, 14375, 15000] + default: 10000 + + ti,rmii-mode: + description: | + If present, select the RMII operation mode. Two modes are + available: + - RMII master, where the PHY outputs a 50MHz reference clock which can + be connected to the MAC. + - RMII slave, where the PHY expects a 50MHz reference clock input + shared with the MAC. + The RMII operation mode can also be configured by its straps. + If the strap pin is not set correctly or not set at all, then this can be + used to configure it. + $ref: /schemas/types.yaml#/definitions/string + enum: + - master + - slave + +required: + - reg + +unevaluatedProperties: false + +examples: + - | + mdio0 { + #address-cells = <1>; + #size-cells = <0>; + ethphy0: ethernet-phy@0 { + reg = <0>; + rx-internal-delay-ps = <1>; + tx-internal-delay-ps = <1>; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml index 0b0ee481c..388869227 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml @@ -1,153 +1,153 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/ti,k3-am654-cpts.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: The TI AM654x/J721E Common Platform Time Sync (CPTS) module - -maintainers: - - Siddharth Vadapalli - - Roger Quadros - -description: |+ - The TI AM654x/J721E CPTS module is used to facilitate host control of time - sync operations. - Main features of CPTS module are - - selection of multiple external clock sources - - Software control of time sync events via interrupt or polling - - 64-bit timestamp mode in ns with PPM and nudge adjustment. - - hardware timestamp push inputs (HWx_TS_PUSH) - - timestamp counter compare output (TS_COMP) - - timestamp counter bit output (TS_SYNC) - - periodic Generator function outputs (TS_GENFx) - - Ethernet Enhanced Scheduled Traffic Operations (CPTS_ESTFn) (TSN) - - external hardware timestamp push inputs (HWx_TS_PUSH) timestamping - - Depending on integration it enables compliance with the IEEE 1588-2008 - standard for a precision clock synchronization protocol, Ethernet Enhanced - Scheduled Traffic Operations (CPTS_ESTFn) and PCIe Subsystem Precision Time - Measurement (PTM). - - TI AM654x/J721E SoCs has several similar CPTS modules integrated into the - different parts of the system which could be synchronized with each other - - Main CPTS - - MCU CPSW CPTS with IEEE 1588-2008 support - - PCIe subsystem CPTS for PTM support - - Depending on CPTS module integration and when CPTS is integral part of - another module (MCU CPSW for example) "compatible" and "reg" can - be omitted - parent module is fully responsible for CPTS enabling and - configuration. - -properties: - $nodename: - pattern: "^cpts@[0-9a-f]+$" - - compatible: - enum: - - ti,am65-cpts - - ti,j721e-cpts - - reg: - maxItems: 1 - description: - The physical base address and size of CPTS IO range - - reg-names: - items: - - const: cpts - - clocks: - maxItems: 1 - description: CPTS reference clock - - clock-names: - items: - - const: cpts - - interrupts: - items: - - description: CPTS events interrupt - - interrupt-names: - items: - - const: cpts - - assigned-clock-parents: true - - assigned-clocks: true - - power-domains: - maxItems: 1 - - ti,cpts-ext-ts-inputs: - $ref: /schemas/types.yaml#/definitions/uint32 - maximum: 8 - description: - Number of hardware timestamp push inputs (HWx_TS_PUSH) - - ti,cpts-periodic-outputs: - $ref: /schemas/types.yaml#/definitions/uint32 - maximum: 8 - description: - Number of timestamp Generator function outputs (TS_GENFx) - - ti,pps: - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 2 - maxItems: 2 - description: | - The pair of HWx_TS_PUSH input and TS_GENFy output indexes used for - PPS events generation. Platform/board specific. - - refclk-mux: - type: object - additionalProperties: false - description: CPTS reference clock multiplexer clock - properties: - '#clock-cells': - const: 0 - - clocks: - maxItems: 8 - - required: - - clocks - -required: - - compatible - - reg - - clocks - - clock-names - - interrupts - - interrupt-names - -additionalProperties: false - -examples: - - | - #include - #include - - cpts@310d0000 { - compatible = "ti,am65-cpts"; - reg = <0x310d0000 0x400>; - reg-names = "cpts"; - clocks = <&main_cpts_mux>; - clock-names = "cpts"; - interrupts-extended = <&k3_irq 163 0 IRQ_TYPE_LEVEL_HIGH>; - interrupt-names = "cpts"; - ti,cpts-periodic-outputs = <6>; - ti,cpts-ext-ts-inputs = <8>; - - main_cpts_mux: refclk-mux { - #clock-cells = <0>; - clocks = <&k3_clks 118 5>, <&k3_clks 118 11>, - <&k3_clks 157 91>, <&k3_clks 157 77>, - <&k3_clks 157 102>, <&k3_clks 157 80>, - <&k3_clks 120 3>, <&k3_clks 121 3>; - assigned-clocks = <&main_cpts_mux>; - assigned-clock-parents = <&k3_clks 118 11>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/ti,k3-am654-cpts.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: The TI AM654x/J721E Common Platform Time Sync (CPTS) module + +maintainers: + - Siddharth Vadapalli + - Roger Quadros + +description: |+ + The TI AM654x/J721E CPTS module is used to facilitate host control of time + sync operations. + Main features of CPTS module are + - selection of multiple external clock sources + - Software control of time sync events via interrupt or polling + - 64-bit timestamp mode in ns with PPM and nudge adjustment. + - hardware timestamp push inputs (HWx_TS_PUSH) + - timestamp counter compare output (TS_COMP) + - timestamp counter bit output (TS_SYNC) + - periodic Generator function outputs (TS_GENFx) + - Ethernet Enhanced Scheduled Traffic Operations (CPTS_ESTFn) (TSN) + - external hardware timestamp push inputs (HWx_TS_PUSH) timestamping + + Depending on integration it enables compliance with the IEEE 1588-2008 + standard for a precision clock synchronization protocol, Ethernet Enhanced + Scheduled Traffic Operations (CPTS_ESTFn) and PCIe Subsystem Precision Time + Measurement (PTM). + + TI AM654x/J721E SoCs has several similar CPTS modules integrated into the + different parts of the system which could be synchronized with each other + - Main CPTS + - MCU CPSW CPTS with IEEE 1588-2008 support + - PCIe subsystem CPTS for PTM support + + Depending on CPTS module integration and when CPTS is integral part of + another module (MCU CPSW for example) "compatible" and "reg" can + be omitted - parent module is fully responsible for CPTS enabling and + configuration. + +properties: + $nodename: + pattern: "^cpts@[0-9a-f]+$" + + compatible: + enum: + - ti,am65-cpts + - ti,j721e-cpts + + reg: + maxItems: 1 + description: + The physical base address and size of CPTS IO range + + reg-names: + items: + - const: cpts + + clocks: + maxItems: 1 + description: CPTS reference clock + + clock-names: + items: + - const: cpts + + interrupts: + items: + - description: CPTS events interrupt + + interrupt-names: + items: + - const: cpts + + assigned-clock-parents: true + + assigned-clocks: true + + power-domains: + maxItems: 1 + + ti,cpts-ext-ts-inputs: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 8 + description: + Number of hardware timestamp push inputs (HWx_TS_PUSH) + + ti,cpts-periodic-outputs: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 8 + description: + Number of timestamp Generator function outputs (TS_GENFx) + + ti,pps: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 2 + maxItems: 2 + description: | + The pair of HWx_TS_PUSH input and TS_GENFy output indexes used for + PPS events generation. Platform/board specific. + + refclk-mux: + type: object + additionalProperties: false + description: CPTS reference clock multiplexer clock + properties: + '#clock-cells': + const: 0 + + clocks: + maxItems: 8 + + required: + - clocks + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - interrupt-names + +additionalProperties: false + +examples: + - | + #include + #include + + cpts@310d0000 { + compatible = "ti,am65-cpts"; + reg = <0x310d0000 0x400>; + reg-names = "cpts"; + clocks = <&main_cpts_mux>; + clock-names = "cpts"; + interrupts-extended = <&k3_irq 163 0 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "cpts"; + ti,cpts-periodic-outputs = <6>; + ti,cpts-ext-ts-inputs = <8>; + + main_cpts_mux: refclk-mux { + #clock-cells = <0>; + clocks = <&k3_clks 118 5>, <&k3_clks 118 11>, + <&k3_clks 157 91>, <&k3_clks 157 77>, + <&k3_clks 157 102>, <&k3_clks 157 80>, + <&k3_clks 120 3>, <&k3_clks 121 3>; + assigned-clocks = <&main_cpts_mux>; + assigned-clock-parents = <&k3_clks 118 11>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/wireless/silabs,wfx.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/wireless/silabs,wfx.yaml index 408d1f937..84e5659e5 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/wireless/silabs,wfx.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/net/wireless/silabs,wfx.yaml @@ -1,132 +1,132 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (c) 2020, Silicon Laboratories, Inc. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/net/wireless/silabs,wfx.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Silicon Labs WFxxx - -maintainers: - - Jérôme Pouiller - -description: > - Support for the Wifi chip WFxxx from Silicon Labs. Currently, the only device - from the WFxxx series is the WF200 described here: - https://www.silabs.com/documents/public/data-sheets/wf200-datasheet.pdf - - The WF200 can be connected via SPI or via SDIO. - - For SDIO: - - Declaring the WFxxx chip in device tree is mandatory (usually, the VID/PID is - sufficient for the SDIO devices). - - It is recommended to declare a mmc-pwrseq on SDIO host above WFx. Without - it, you may encounter issues during reboot. The mmc-pwrseq should be - compatible with mmc-pwrseq-simple. Please consult - Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.yaml for more - information. - -properties: - compatible: - items: - - enum: - - prt,prtt1c-wfm200 # Protonic PRTT1C Board - - silabs,brd4001a # WGM160P Evaluation Board - - silabs,brd8022a # WF200 Evaluation Board - - silabs,brd8023a # WFM200 Evaluation Board - - const: silabs,wf200 # Chip alone without antenna - - reg: - description: - When used on SDIO bus, must be set to 1. When used on SPI bus, it is - the chip select address of the device as defined in the SPI devices - bindings. - maxItems: 1 - - interrupts: - description: The interrupt line. Should be IRQ_TYPE_EDGE_RISING. When SPI is - used, this property is required. When SDIO is used, the "in-band" - interrupt provided by the SDIO bus is used unless an interrupt is defined - in the Device Tree. - maxItems: 1 - - reset-gpios: - description: (SPI only) Phandle of gpio that will be used to reset chip - during probe. Without this property, you may encounter issues with warm - boot. - - For SDIO, the reset gpio should declared using a mmc-pwrseq. - maxItems: 1 - - wakeup-gpios: - description: Phandle of gpio that will be used to wake-up chip. Without this - property, driver will disable most of power saving features. - maxItems: 1 - - silabs,antenna-config-file: - $ref: /schemas/types.yaml#/definitions/string - description: Use an alternative file for antenna configuration (aka - "Platform Data Set" in Silabs jargon). Default depends of "compatible" - string. For "silabs,wf200", the default is 'wf200.pds'. - - local-mac-address: true - - mac-address: true - -required: - - compatible - - reg - -allOf: - - $ref: /schemas/spi/spi-peripheral-props.yaml# - -unevaluatedProperties: false - -examples: - - | - #include - #include - - spi { - #address-cells = <1>; - #size-cells = <0>; - - wifi@0 { - compatible = "silabs,brd8022a", "silabs,wf200"; - pinctrl-names = "default"; - pinctrl-0 = <&wfx_irq &wfx_gpios>; - reg = <0>; - interrupts-extended = <&gpio 16 IRQ_TYPE_EDGE_RISING>; - wakeup-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; - reset-gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - spi-max-frequency = <42000000>; - }; - }; - - - | - #include - #include - - wfx_pwrseq: wfx_pwrseq { - compatible = "mmc-pwrseq-simple"; - pinctrl-names = "default"; - pinctrl-0 = <&wfx_reset>; - reset-gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - }; - - mmc { - mmc-pwrseq = <&wfx_pwrseq>; - #address-cells = <1>; - #size-cells = <0>; - - wifi@1 { - compatible = "silabs,brd8022a", "silabs,wf200"; - pinctrl-names = "default"; - pinctrl-0 = <&wfx_wakeup>; - reg = <1>; - wakeup-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (c) 2020, Silicon Laboratories, Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/wireless/silabs,wfx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Silicon Labs WFxxx + +maintainers: + - Jérôme Pouiller + +description: > + Support for the Wifi chip WFxxx from Silicon Labs. Currently, the only device + from the WFxxx series is the WF200 described here: + https://www.silabs.com/documents/public/data-sheets/wf200-datasheet.pdf + + The WF200 can be connected via SPI or via SDIO. + + For SDIO: + + Declaring the WFxxx chip in device tree is mandatory (usually, the VID/PID is + sufficient for the SDIO devices). + + It is recommended to declare a mmc-pwrseq on SDIO host above WFx. Without + it, you may encounter issues during reboot. The mmc-pwrseq should be + compatible with mmc-pwrseq-simple. Please consult + Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.yaml for more + information. + +properties: + compatible: + items: + - enum: + - prt,prtt1c-wfm200 # Protonic PRTT1C Board + - silabs,brd4001a # WGM160P Evaluation Board + - silabs,brd8022a # WF200 Evaluation Board + - silabs,brd8023a # WFM200 Evaluation Board + - const: silabs,wf200 # Chip alone without antenna + + reg: + description: + When used on SDIO bus, must be set to 1. When used on SPI bus, it is + the chip select address of the device as defined in the SPI devices + bindings. + maxItems: 1 + + interrupts: + description: The interrupt line. Should be IRQ_TYPE_EDGE_RISING. When SPI is + used, this property is required. When SDIO is used, the "in-band" + interrupt provided by the SDIO bus is used unless an interrupt is defined + in the Device Tree. + maxItems: 1 + + reset-gpios: + description: (SPI only) Phandle of gpio that will be used to reset chip + during probe. Without this property, you may encounter issues with warm + boot. + + For SDIO, the reset gpio should declared using a mmc-pwrseq. + maxItems: 1 + + wakeup-gpios: + description: Phandle of gpio that will be used to wake-up chip. Without this + property, driver will disable most of power saving features. + maxItems: 1 + + silabs,antenna-config-file: + $ref: /schemas/types.yaml#/definitions/string + description: Use an alternative file for antenna configuration (aka + "Platform Data Set" in Silabs jargon). Default depends of "compatible" + string. For "silabs,wf200", the default is 'wf200.pds'. + + local-mac-address: true + + mac-address: true + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + wifi@0 { + compatible = "silabs,brd8022a", "silabs,wf200"; + pinctrl-names = "default"; + pinctrl-0 = <&wfx_irq &wfx_gpios>; + reg = <0>; + interrupts-extended = <&gpio 16 IRQ_TYPE_EDGE_RISING>; + wakeup-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + spi-max-frequency = <42000000>; + }; + }; + + - | + #include + #include + + wfx_pwrseq: wfx_pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&wfx_reset>; + reset-gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + }; + + mmc { + mmc-pwrseq = <&wfx_pwrseq>; + #address-cells = <1>; + #size-cells = <0>; + + wifi@1 { + compatible = "silabs,brd8022a", "silabs,wf200"; + pinctrl-names = "default"; + pinctrl-0 = <&wfx_wakeup>; + reg = <1>; + wakeup-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml index ef060383c..ec5e424bb 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml @@ -1,134 +1,134 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/opp/allwinner,sun50i-h6-operating-points.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Allwinner H6 CPU OPP - -maintainers: - - Chen-Yu Tsai - - Maxime Ripard - -description: | - For some SoCs, the CPU frequency subset and voltage value of each - OPP varies based on the silicon variant in use. Allwinner Process - Voltage Scaling Tables define the voltage and frequency values based - on the speedbin blown in the efuse combination. - -allOf: - - $ref: opp-v2-base.yaml# - -properties: - compatible: - enum: - - allwinner,sun50i-h6-operating-points - - allwinner,sun50i-h616-operating-points - - nvmem-cells: - description: | - A phandle pointing to a nvmem-cells node representing the efuse - register that has information about the speedbin that is used - to select the right frequency/voltage value pair. Please refer - to the nvmem-cells bindings in - Documentation/devicetree/bindings/nvmem/nvmem.yaml and also the - examples below. - - opp-shared: true - -required: - - compatible - - nvmem-cells - -patternProperties: - "^opp-[0-9]+$": - type: object - - properties: - opp-hz: true - clock-latency-ns: true - opp-microvolt: true - opp-supported-hw: - maxItems: 1 - description: - A single 32 bit bitmap value, representing compatible HW, one - bit per speed bin index. - - patternProperties: - "^opp-microvolt-speed[0-9]$": true - - required: - - opp-hz - - unevaluatedProperties: false - -additionalProperties: false - -examples: - - | - cpu_opp_table: opp-table { - compatible = "allwinner,sun50i-h6-operating-points"; - nvmem-cells = <&speedbin_efuse>; - opp-shared; - - opp-480000000 { - clock-latency-ns = <244144>; /* 8 32k periods */ - opp-hz = /bits/ 64 <480000000>; - - opp-microvolt-speed0 = <880000>; - opp-microvolt-speed1 = <820000>; - opp-microvolt-speed2 = <800000>; - }; - - opp-1080000000 { - clock-latency-ns = <244144>; /* 8 32k periods */ - opp-hz = /bits/ 64 <1080000000>; - - opp-microvolt-speed0 = <1060000>; - opp-microvolt-speed1 = <880000>; - opp-microvolt-speed2 = <840000>; - }; - - opp-1488000000 { - clock-latency-ns = <244144>; /* 8 32k periods */ - opp-hz = /bits/ 64 <1488000000>; - - opp-microvolt-speed0 = <1160000>; - opp-microvolt-speed1 = <1000000>; - opp-microvolt-speed2 = <960000>; - }; - }; - - - | - opp-table { - compatible = "allwinner,sun50i-h616-operating-points"; - nvmem-cells = <&speedbin_efuse>; - opp-shared; - - opp-480000000 { - clock-latency-ns = <244144>; /* 8 32k periods */ - opp-hz = /bits/ 64 <480000000>; - - opp-microvolt = <900000>; - opp-supported-hw = <0x1f>; - }; - - opp-792000000 { - clock-latency-ns = <244144>; /* 8 32k periods */ - opp-hz = /bits/ 64 <792000000>; - - opp-microvolt-speed1 = <900000>; - opp-microvolt-speed4 = <940000>; - opp-supported-hw = <0x12>; - }; - - opp-1512000000 { - clock-latency-ns = <244144>; /* 8 32k periods */ - opp-hz = /bits/ 64 <1512000000>; - - opp-microvolt = <1100000>; - opp-supported-hw = <0x0a>; - }; - }; - -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/opp/allwinner,sun50i-h6-operating-points.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner H6 CPU OPP + +maintainers: + - Chen-Yu Tsai + - Maxime Ripard + +description: | + For some SoCs, the CPU frequency subset and voltage value of each + OPP varies based on the silicon variant in use. Allwinner Process + Voltage Scaling Tables define the voltage and frequency values based + on the speedbin blown in the efuse combination. + +allOf: + - $ref: opp-v2-base.yaml# + +properties: + compatible: + enum: + - allwinner,sun50i-h6-operating-points + - allwinner,sun50i-h616-operating-points + + nvmem-cells: + description: | + A phandle pointing to a nvmem-cells node representing the efuse + register that has information about the speedbin that is used + to select the right frequency/voltage value pair. Please refer + to the nvmem-cells bindings in + Documentation/devicetree/bindings/nvmem/nvmem.yaml and also the + examples below. + + opp-shared: true + +required: + - compatible + - nvmem-cells + +patternProperties: + "^opp-[0-9]+$": + type: object + + properties: + opp-hz: true + clock-latency-ns: true + opp-microvolt: true + opp-supported-hw: + maxItems: 1 + description: + A single 32 bit bitmap value, representing compatible HW, one + bit per speed bin index. + + patternProperties: + "^opp-microvolt-speed[0-9]$": true + + required: + - opp-hz + + unevaluatedProperties: false + +additionalProperties: false + +examples: + - | + cpu_opp_table: opp-table { + compatible = "allwinner,sun50i-h6-operating-points"; + nvmem-cells = <&speedbin_efuse>; + opp-shared; + + opp-480000000 { + clock-latency-ns = <244144>; /* 8 32k periods */ + opp-hz = /bits/ 64 <480000000>; + + opp-microvolt-speed0 = <880000>; + opp-microvolt-speed1 = <820000>; + opp-microvolt-speed2 = <800000>; + }; + + opp-1080000000 { + clock-latency-ns = <244144>; /* 8 32k periods */ + opp-hz = /bits/ 64 <1080000000>; + + opp-microvolt-speed0 = <1060000>; + opp-microvolt-speed1 = <880000>; + opp-microvolt-speed2 = <840000>; + }; + + opp-1488000000 { + clock-latency-ns = <244144>; /* 8 32k periods */ + opp-hz = /bits/ 64 <1488000000>; + + opp-microvolt-speed0 = <1160000>; + opp-microvolt-speed1 = <1000000>; + opp-microvolt-speed2 = <960000>; + }; + }; + + - | + opp-table { + compatible = "allwinner,sun50i-h616-operating-points"; + nvmem-cells = <&speedbin_efuse>; + opp-shared; + + opp-480000000 { + clock-latency-ns = <244144>; /* 8 32k periods */ + opp-hz = /bits/ 64 <480000000>; + + opp-microvolt = <900000>; + opp-supported-hw = <0x1f>; + }; + + opp-792000000 { + clock-latency-ns = <244144>; /* 8 32k periods */ + opp-hz = /bits/ 64 <792000000>; + + opp-microvolt-speed1 = <900000>; + opp-microvolt-speed4 = <940000>; + opp-supported-hw = <0x12>; + }; + + opp-1512000000 { + clock-latency-ns = <244144>; /* 8 32k periods */ + opp-hz = /bits/ 64 <1512000000>; + + opp-microvolt = <1100000>; + opp-supported-hw = <0x0a>; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/apple,pcie.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/apple,pcie.yaml index 814e21ec8..c8775f9cb 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/apple,pcie.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/apple,pcie.yaml @@ -1,175 +1,175 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pci/apple,pcie.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Apple PCIe host controller - -maintainers: - - Mark Kettenis - -description: | - The Apple PCIe host controller is a PCIe host controller with - multiple root ports present in Apple ARM SoC platforms, including - various iPhone and iPad devices and the "Apple Silicon" Macs. - The controller incorporates Synopsys DesigWare PCIe logic to - implements its root ports. But the ATU found on most DesignWare - PCIe host bridges is absent. - - All root ports share a single ECAM space, but separate GPIOs are - used to take the PCI devices on those ports out of reset. Therefore - the standard "reset-gpios" and "max-link-speed" properties appear on - the child nodes that represent the PCI bridges that correspond to - the individual root ports. - - MSIs are handled by the PCIe controller and translated into regular - interrupts. A range of 32 MSIs is provided. These 32 MSIs can be - distributed over the root ports as the OS sees fit by programming - the PCIe controller's port registers. - -properties: - compatible: - items: - - enum: - - apple,t8103-pcie - - apple,t8112-pcie - - apple,t6000-pcie - - const: apple,pcie - - reg: - minItems: 3 - maxItems: 6 - - reg-names: - minItems: 3 - items: - - const: config - - const: rc - - const: port0 - - const: port1 - - const: port2 - - const: port3 - - ranges: - minItems: 2 - maxItems: 2 - - interrupts: - description: - Interrupt specifiers, one for each root port. - minItems: 1 - maxItems: 4 - - msi-parent: true - - msi-ranges: - maxItems: 1 - - iommu-map: true - iommu-map-mask: true - - power-domains: - maxItems: 1 - -required: - - compatible - - reg - - reg-names - - bus-range - - interrupts - - msi-controller - - msi-parent - - msi-ranges - -unevaluatedProperties: false - -allOf: - - $ref: /schemas/pci/pci-host-bridge.yaml# - - $ref: /schemas/interrupt-controller/msi-controller.yaml# - - if: - properties: - compatible: - contains: - const: apple,t8103-pcie - then: - properties: - reg: - maxItems: 5 - interrupts: - maxItems: 3 - -examples: - - | - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - - pcie0: pcie@690000000 { - compatible = "apple,t8103-pcie", "apple,pcie"; - device_type = "pci"; - - reg = <0x6 0x90000000 0x0 0x1000000>, - <0x6 0x80000000 0x0 0x100000>, - <0x6 0x81000000 0x0 0x4000>, - <0x6 0x82000000 0x0 0x4000>, - <0x6 0x83000000 0x0 0x4000>; - reg-names = "config", "rc", "port0", "port1", "port2"; - - interrupt-parent = <&aic>; - interrupts = , - , - ; - - msi-controller; - msi-parent = <&pcie0>; - msi-ranges = <&aic AIC_IRQ 704 IRQ_TYPE_EDGE_RISING 32>; - - iommu-map = <0x100 &dart0 1 1>, - <0x200 &dart1 1 1>, - <0x300 &dart2 1 1>; - iommu-map-mask = <0xff00>; - - bus-range = <0 3>; - #address-cells = <3>; - #size-cells = <2>; - ranges = <0x43000000 0x6 0xa0000000 0x6 0xa0000000 0x0 0x20000000>, - <0x02000000 0x0 0xc0000000 0x6 0xc0000000 0x0 0x40000000>; - - power-domains = <&ps_apcie_gp>; - pinctrl-0 = <&pcie_pins>; - pinctrl-names = "default"; - - pci@0,0 { - device_type = "pci"; - reg = <0x0 0x0 0x0 0x0 0x0>; - reset-gpios = <&pinctrl_ap 152 0>; - - #address-cells = <3>; - #size-cells = <2>; - ranges; - }; - - pci@1,0 { - device_type = "pci"; - reg = <0x800 0x0 0x0 0x0 0x0>; - reset-gpios = <&pinctrl_ap 153 0>; - - #address-cells = <3>; - #size-cells = <2>; - ranges; - }; - - pci@2,0 { - device_type = "pci"; - reg = <0x1000 0x0 0x0 0x0 0x0>; - reset-gpios = <&pinctrl_ap 33 0>; - - #address-cells = <3>; - #size-cells = <2>; - ranges; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/apple,pcie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple PCIe host controller + +maintainers: + - Mark Kettenis + +description: | + The Apple PCIe host controller is a PCIe host controller with + multiple root ports present in Apple ARM SoC platforms, including + various iPhone and iPad devices and the "Apple Silicon" Macs. + The controller incorporates Synopsys DesigWare PCIe logic to + implements its root ports. But the ATU found on most DesignWare + PCIe host bridges is absent. + + All root ports share a single ECAM space, but separate GPIOs are + used to take the PCI devices on those ports out of reset. Therefore + the standard "reset-gpios" and "max-link-speed" properties appear on + the child nodes that represent the PCI bridges that correspond to + the individual root ports. + + MSIs are handled by the PCIe controller and translated into regular + interrupts. A range of 32 MSIs is provided. These 32 MSIs can be + distributed over the root ports as the OS sees fit by programming + the PCIe controller's port registers. + +properties: + compatible: + items: + - enum: + - apple,t8103-pcie + - apple,t8112-pcie + - apple,t6000-pcie + - const: apple,pcie + + reg: + minItems: 3 + maxItems: 6 + + reg-names: + minItems: 3 + items: + - const: config + - const: rc + - const: port0 + - const: port1 + - const: port2 + - const: port3 + + ranges: + minItems: 2 + maxItems: 2 + + interrupts: + description: + Interrupt specifiers, one for each root port. + minItems: 1 + maxItems: 4 + + msi-parent: true + + msi-ranges: + maxItems: 1 + + iommu-map: true + iommu-map-mask: true + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - reg-names + - bus-range + - interrupts + - msi-controller + - msi-parent + - msi-ranges + +unevaluatedProperties: false + +allOf: + - $ref: /schemas/pci/pci-host-bridge.yaml# + - $ref: /schemas/interrupt-controller/msi-controller.yaml# + - if: + properties: + compatible: + contains: + const: apple,t8103-pcie + then: + properties: + reg: + maxItems: 5 + interrupts: + maxItems: 3 + +examples: + - | + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + pcie0: pcie@690000000 { + compatible = "apple,t8103-pcie", "apple,pcie"; + device_type = "pci"; + + reg = <0x6 0x90000000 0x0 0x1000000>, + <0x6 0x80000000 0x0 0x100000>, + <0x6 0x81000000 0x0 0x4000>, + <0x6 0x82000000 0x0 0x4000>, + <0x6 0x83000000 0x0 0x4000>; + reg-names = "config", "rc", "port0", "port1", "port2"; + + interrupt-parent = <&aic>; + interrupts = , + , + ; + + msi-controller; + msi-parent = <&pcie0>; + msi-ranges = <&aic AIC_IRQ 704 IRQ_TYPE_EDGE_RISING 32>; + + iommu-map = <0x100 &dart0 1 1>, + <0x200 &dart1 1 1>, + <0x300 &dart2 1 1>; + iommu-map-mask = <0xff00>; + + bus-range = <0 3>; + #address-cells = <3>; + #size-cells = <2>; + ranges = <0x43000000 0x6 0xa0000000 0x6 0xa0000000 0x0 0x20000000>, + <0x02000000 0x0 0xc0000000 0x6 0xc0000000 0x0 0x40000000>; + + power-domains = <&ps_apcie_gp>; + pinctrl-0 = <&pcie_pins>; + pinctrl-names = "default"; + + pci@0,0 { + device_type = "pci"; + reg = <0x0 0x0 0x0 0x0 0x0>; + reset-gpios = <&pinctrl_ap 152 0>; + + #address-cells = <3>; + #size-cells = <2>; + ranges; + }; + + pci@1,0 { + device_type = "pci"; + reg = <0x800 0x0 0x0 0x0 0x0>; + reset-gpios = <&pinctrl_ap 153 0>; + + #address-cells = <3>; + #size-cells = <2>; + ranges; + }; + + pci@2,0 { + device_type = "pci"; + reg = <0x1000 0x0 0x0 0x0 0x0>; + reset-gpios = <&pinctrl_ap 33 0>; + + #address-cells = <3>; + #size-cells = <2>; + ranges; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.yaml index 010593cad..5434c144d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.yaml @@ -1,173 +1,173 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pci/brcm,iproc-pcie.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Broadcom iProc PCIe controller with the platform bus interface - -maintainers: - - Ray Jui - - Scott Branden - -allOf: - - $ref: /schemas/pci/pci-host-bridge.yaml# - -properties: - compatible: - items: - - enum: - # for the first generation of PAXB based controller, used in SoCs - # including NSP, Cygnus, NS2, and Pegasus - - brcm,iproc-pcie - # for the second generation of PAXB-based controllers, used in - # Stingray - - brcm,iproc-pcie-paxb-v2 - # For the first generation of PAXC based controller, used in NS2 - - brcm,iproc-pcie-paxc - # For the second generation of PAXC based controller, used in Stingray - - brcm,iproc-pcie-paxc-v2 - - reg: - maxItems: 1 - description: > - Base address and length of the PCIe controller I/O register space - - ranges: - minItems: 1 - maxItems: 2 - description: > - Ranges for the PCI memory and I/O regions - - phys: - maxItems: 1 - - phy-names: - items: - - const: pcie-phy - - dma-coherent: true - - brcm,pcie-ob: - type: boolean - description: > - Some iProc SoCs do not have the outbound address mapping done by the - ASIC after power on reset. In this case, SW needs to configure it - - brcm,pcie-ob-axi-offset: - $ref: /schemas/types.yaml#/definitions/uint32 - description: > - The offset from the AXI address to the internal address used by the - iProc PCIe core (not the PCIe address) - - msi: - type: object - $ref: /schemas/interrupt-controller/msi-controller.yaml# - unevaluatedProperties: false - - properties: - compatible: - items: - - const: brcm,iproc-msi - - interrupts: - maxItems: 4 - - brcm,pcie-msi-inten: - type: boolean - description: - Needs to be present for some older iProc platforms that require the - interrupt enable registers to be set explicitly to enable MSI - - msi-parent: true - -dependencies: - brcm,pcie-ob-axi-offset: ["brcm,pcie-ob"] - brcm,pcie-msi-inten: [msi-controller] - -required: - - compatible - - reg - - ranges - -if: - properties: - compatible: - contains: - enum: - - brcm,iproc-pcie -then: - required: - - interrupt-map - - interrupt-map-mask - -unevaluatedProperties: false - -examples: - - | - #include - - gic: interrupt-controller { - interrupt-controller; - #interrupt-cells = <3>; - }; - - pcie@18012000 { - compatible = "brcm,iproc-pcie"; - reg = <0x18012000 0x1000>; - - #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 100 IRQ_TYPE_NONE>; - - linux,pci-domain = <0>; - - bus-range = <0x00 0xff>; - - #address-cells = <3>; - #size-cells = <2>; - device_type = "pci"; - ranges = <0x81000000 0 0 0x28000000 0 0x00010000>, - <0x82000000 0 0x20000000 0x20000000 0 0x04000000>; - - phys = <&phy 0 5>; - phy-names = "pcie-phy"; - - brcm,pcie-ob; - brcm,pcie-ob-axi-offset = <0x00000000>; - - msi-parent = <&msi0>; - - /* iProc event queue based MSI */ - msi0: msi { - compatible = "brcm,iproc-msi"; - msi-controller; - interrupt-parent = <&gic>; - interrupts = , - , - , - ; - }; - }; - - | - pcie@18013000 { - compatible = "brcm,iproc-pcie"; - reg = <0x18013000 0x1000>; - - #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 106 IRQ_TYPE_NONE>; - - linux,pci-domain = <1>; - - bus-range = <0x00 0xff>; - - #address-cells = <3>; - #size-cells = <2>; - device_type = "pci"; - ranges = <0x81000000 0 0 0x48000000 0 0x00010000>, - <0x82000000 0 0x40000000 0x40000000 0 0x04000000>; - - phys = <&phy 1 6>; - phy-names = "pcie-phy"; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/brcm,iproc-pcie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom iProc PCIe controller with the platform bus interface + +maintainers: + - Ray Jui + - Scott Branden + +allOf: + - $ref: /schemas/pci/pci-host-bridge.yaml# + +properties: + compatible: + items: + - enum: + # for the first generation of PAXB based controller, used in SoCs + # including NSP, Cygnus, NS2, and Pegasus + - brcm,iproc-pcie + # for the second generation of PAXB-based controllers, used in + # Stingray + - brcm,iproc-pcie-paxb-v2 + # For the first generation of PAXC based controller, used in NS2 + - brcm,iproc-pcie-paxc + # For the second generation of PAXC based controller, used in Stingray + - brcm,iproc-pcie-paxc-v2 + + reg: + maxItems: 1 + description: > + Base address and length of the PCIe controller I/O register space + + ranges: + minItems: 1 + maxItems: 2 + description: > + Ranges for the PCI memory and I/O regions + + phys: + maxItems: 1 + + phy-names: + items: + - const: pcie-phy + + dma-coherent: true + + brcm,pcie-ob: + type: boolean + description: > + Some iProc SoCs do not have the outbound address mapping done by the + ASIC after power on reset. In this case, SW needs to configure it + + brcm,pcie-ob-axi-offset: + $ref: /schemas/types.yaml#/definitions/uint32 + description: > + The offset from the AXI address to the internal address used by the + iProc PCIe core (not the PCIe address) + + msi: + type: object + $ref: /schemas/interrupt-controller/msi-controller.yaml# + unevaluatedProperties: false + + properties: + compatible: + items: + - const: brcm,iproc-msi + + interrupts: + maxItems: 4 + + brcm,pcie-msi-inten: + type: boolean + description: + Needs to be present for some older iProc platforms that require the + interrupt enable registers to be set explicitly to enable MSI + + msi-parent: true + +dependencies: + brcm,pcie-ob-axi-offset: ["brcm,pcie-ob"] + brcm,pcie-msi-inten: [msi-controller] + +required: + - compatible + - reg + - ranges + +if: + properties: + compatible: + contains: + enum: + - brcm,iproc-pcie +then: + required: + - interrupt-map + - interrupt-map-mask + +unevaluatedProperties: false + +examples: + - | + #include + + gic: interrupt-controller { + interrupt-controller; + #interrupt-cells = <3>; + }; + + pcie@18012000 { + compatible = "brcm,iproc-pcie"; + reg = <0x18012000 0x1000>; + + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 100 IRQ_TYPE_NONE>; + + linux,pci-domain = <0>; + + bus-range = <0x00 0xff>; + + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges = <0x81000000 0 0 0x28000000 0 0x00010000>, + <0x82000000 0 0x20000000 0x20000000 0 0x04000000>; + + phys = <&phy 0 5>; + phy-names = "pcie-phy"; + + brcm,pcie-ob; + brcm,pcie-ob-axi-offset = <0x00000000>; + + msi-parent = <&msi0>; + + /* iProc event queue based MSI */ + msi0: msi { + compatible = "brcm,iproc-msi"; + msi-controller; + interrupt-parent = <&gic>; + interrupts = , + , + , + ; + }; + }; + - | + pcie@18013000 { + compatible = "brcm,iproc-pcie"; + reg = <0x18013000 0x1000>; + + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 106 IRQ_TYPE_NONE>; + + linux,pci-domain = <1>; + + bus-range = <0x00 0xff>; + + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges = <0x81000000 0 0 0x48000000 0 0x00010000>, + <0x82000000 0 0x40000000 0x40000000 0 0x04000000>; + + phys = <&phy 1 6>; + phy-names = "pcie-phy"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml index 1dd6d8071..84ca12e8b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml @@ -1,158 +1,158 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pci/fsl,imx6q-pcie-ep.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale i.MX6 PCIe Endpoint controller - -maintainers: - - Lucas Stach - - Richard Zhu - -description: |+ - This PCIe controller is based on the Synopsys DesignWare PCIe IP and - thus inherits all the common properties defined in snps,dw-pcie-ep.yaml. - The controller instances are dual mode where in they can work either in - Root Port mode or Endpoint mode but one at a time. - -properties: - compatible: - enum: - - fsl,imx8mm-pcie-ep - - fsl,imx8mq-pcie-ep - - fsl,imx8mp-pcie-ep - - fsl,imx95-pcie-ep - - clocks: - minItems: 3 - items: - - description: PCIe bridge clock. - - description: PCIe bus clock. - - description: PCIe PHY clock. - - description: Additional required clock entry for imx6sx-pcie, - imx6sx-pcie-ep, imx8mq-pcie, imx8mq-pcie-ep. - - clock-names: - minItems: 3 - maxItems: 4 - - interrupts: - items: - - description: builtin eDMA interrupter. - - interrupt-names: - items: - - const: dma - -required: - - compatible - - reg - - reg-names - - interrupts - - interrupt-names - -allOf: - - $ref: /schemas/pci/snps,dw-pcie-ep.yaml# - - $ref: /schemas/pci/fsl,imx6q-pcie-common.yaml# - - if: - properties: - compatible: - enum: - - fsl,imx8mm-pcie-ep - - fsl,imx8mq-pcie-ep - - fsl,imx8mp-pcie-ep - then: - properties: - reg: - minItems: 4 - maxItems: 4 - reg-names: - items: - - const: dbi - - const: addr_space - - const: dbi2 - - const: atu - - - if: - properties: - compatible: - enum: - - fsl,imx95-pcie-ep - then: - properties: - reg: - minItems: 6 - maxItems: 6 - reg-names: - items: - - const: dbi - - const: atu - - const: dbi2 - - const: app - - const: dma - - const: addr_space - - - if: - properties: - compatible: - enum: - - fsl,imx8mq-pcie-ep - - fsl,imx95-pcie-ep - then: - properties: - clocks: - minItems: 4 - clock-names: - items: - - const: pcie - - const: pcie_bus - - const: pcie_phy - - const: pcie_aux - else: - properties: - clocks: - maxItems: 3 - clock-names: - items: - - const: pcie - - const: pcie_bus - - const: pcie_aux - - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - #include - - pcie_ep: pcie-ep@33800000 { - compatible = "fsl,imx8mp-pcie-ep"; - reg = <0x33800000 0x100000>, - <0x18000000 0x8000000>, - <0x33900000 0x100000>, - <0x33b00000 0x100000>; - reg-names = "dbi", "addr_space", "dbi2", "atu"; - clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, - <&clk IMX8MP_CLK_HSIO_AXI>, - <&clk IMX8MP_CLK_PCIE_ROOT>; - clock-names = "pcie", "pcie_bus", "pcie_aux"; - assigned-clocks = <&clk IMX8MP_CLK_PCIE_AUX>; - assigned-clock-rates = <10000000>; - assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_50M>; - num-lanes = <1>; - interrupts = ; /* eDMA */ - interrupt-names = "dma"; - fsl,max-link-speed = <3>; - power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_PCIE>; - resets = <&src IMX8MP_RESET_PCIE_CTRL_APPS_EN>, - <&src IMX8MP_RESET_PCIE_CTRL_APPS_TURNOFF>; - reset-names = "apps", "turnoff"; - phys = <&pcie_phy>; - phy-names = "pcie-phy"; - num-ib-windows = <4>; - num-ob-windows = <4>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/fsl,imx6q-pcie-ep.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX6 PCIe Endpoint controller + +maintainers: + - Lucas Stach + - Richard Zhu + +description: |+ + This PCIe controller is based on the Synopsys DesignWare PCIe IP and + thus inherits all the common properties defined in snps,dw-pcie-ep.yaml. + The controller instances are dual mode where in they can work either in + Root Port mode or Endpoint mode but one at a time. + +properties: + compatible: + enum: + - fsl,imx8mm-pcie-ep + - fsl,imx8mq-pcie-ep + - fsl,imx8mp-pcie-ep + - fsl,imx95-pcie-ep + + clocks: + minItems: 3 + items: + - description: PCIe bridge clock. + - description: PCIe bus clock. + - description: PCIe PHY clock. + - description: Additional required clock entry for imx6sx-pcie, + imx6sx-pcie-ep, imx8mq-pcie, imx8mq-pcie-ep. + + clock-names: + minItems: 3 + maxItems: 4 + + interrupts: + items: + - description: builtin eDMA interrupter. + + interrupt-names: + items: + - const: dma + +required: + - compatible + - reg + - reg-names + - interrupts + - interrupt-names + +allOf: + - $ref: /schemas/pci/snps,dw-pcie-ep.yaml# + - $ref: /schemas/pci/fsl,imx6q-pcie-common.yaml# + - if: + properties: + compatible: + enum: + - fsl,imx8mm-pcie-ep + - fsl,imx8mq-pcie-ep + - fsl,imx8mp-pcie-ep + then: + properties: + reg: + minItems: 4 + maxItems: 4 + reg-names: + items: + - const: dbi + - const: addr_space + - const: dbi2 + - const: atu + + - if: + properties: + compatible: + enum: + - fsl,imx95-pcie-ep + then: + properties: + reg: + minItems: 6 + maxItems: 6 + reg-names: + items: + - const: dbi + - const: atu + - const: dbi2 + - const: app + - const: dma + - const: addr_space + + - if: + properties: + compatible: + enum: + - fsl,imx8mq-pcie-ep + - fsl,imx95-pcie-ep + then: + properties: + clocks: + minItems: 4 + clock-names: + items: + - const: pcie + - const: pcie_bus + - const: pcie_phy + - const: pcie_aux + else: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: pcie + - const: pcie_bus + - const: pcie_aux + + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + + pcie_ep: pcie-ep@33800000 { + compatible = "fsl,imx8mp-pcie-ep"; + reg = <0x33800000 0x100000>, + <0x18000000 0x8000000>, + <0x33900000 0x100000>, + <0x33b00000 0x100000>; + reg-names = "dbi", "addr_space", "dbi2", "atu"; + clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, + <&clk IMX8MP_CLK_HSIO_AXI>, + <&clk IMX8MP_CLK_PCIE_ROOT>; + clock-names = "pcie", "pcie_bus", "pcie_aux"; + assigned-clocks = <&clk IMX8MP_CLK_PCIE_AUX>; + assigned-clock-rates = <10000000>; + assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_50M>; + num-lanes = <1>; + interrupts = ; /* eDMA */ + interrupt-names = "dma"; + fsl,max-link-speed = <3>; + power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_PCIE>; + resets = <&src IMX8MP_RESET_PCIE_CTRL_APPS_EN>, + <&src IMX8MP_RESET_PCIE_CTRL_APPS_TURNOFF>; + reset-names = "apps", "turnoff"; + phys = <&pcie_phy>; + phy-names = "pcie-phy"; + num-ib-windows = <4>; + num-ob-windows = <4>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/pci-iommu.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/pci-iommu.txt index 787f3ba47..0def586fd 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/pci-iommu.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/pci-iommu.txt @@ -1,171 +1,171 @@ -This document describes the generic device tree binding for describing the -relationship between PCI(e) devices and IOMMU(s). - -Each PCI(e) device under a root complex is uniquely identified by its Requester -ID (AKA RID). A Requester ID is a triplet of a Bus number, Device number, and -Function number. - -For the purpose of this document, when treated as a numeric value, a RID is -formatted such that: - -* Bits [15:8] are the Bus number. -* Bits [7:3] are the Device number. -* Bits [2:0] are the Function number. -* Any other bits required for padding must be zero. - -IOMMUs may distinguish PCI devices through sideband data derived from the -Requester ID. While a given PCI device can only master through one IOMMU, a -root complex may split masters across a set of IOMMUs (e.g. with one IOMMU per -bus). - -The generic 'iommus' property is insufficient to describe this relationship, -and a mechanism is required to map from a PCI device to its IOMMU and sideband -data. - -For generic IOMMU bindings, see -Documentation/devicetree/bindings/iommu/iommu.txt. - - -PCI root complex -================ - -Optional properties -------------------- - -- iommu-map: Maps a Requester ID to an IOMMU and associated IOMMU specifier - data. - - The property is an arbitrary number of tuples of - (rid-base,iommu,iommu-base,length). - - Any RID r in the interval [rid-base, rid-base + length) is associated with - the listed IOMMU, with the IOMMU specifier (r - rid-base + iommu-base). - -- iommu-map-mask: A mask to be applied to each Requester ID prior to being - mapped to an IOMMU specifier per the iommu-map property. - - -Example (1) -=========== - -/ { - #address-cells = <1>; - #size-cells = <1>; - - iommu: iommu@a { - reg = <0xa 0x1>; - compatible = "vendor,some-iommu"; - #iommu-cells = <1>; - }; - - pci: pci@f { - reg = <0xf 0x1>; - compatible = "vendor,pcie-root-complex"; - device_type = "pci"; - - /* - * The sideband data provided to the IOMMU is the RID, - * identity-mapped. - */ - iommu-map = <0x0 &iommu 0x0 0x10000>; - }; -}; - - -Example (2) -=========== - -/ { - #address-cells = <1>; - #size-cells = <1>; - - iommu: iommu@a { - reg = <0xa 0x1>; - compatible = "vendor,some-iommu"; - #iommu-cells = <1>; - }; - - pci: pci@f { - reg = <0xf 0x1>; - compatible = "vendor,pcie-root-complex"; - device_type = "pci"; - - /* - * The sideband data provided to the IOMMU is the RID with the - * function bits masked out. - */ - iommu-map = <0x0 &iommu 0x0 0x10000>; - iommu-map-mask = <0xfff8>; - }; -}; - - -Example (3) -=========== - -/ { - #address-cells = <1>; - #size-cells = <1>; - - iommu: iommu@a { - reg = <0xa 0x1>; - compatible = "vendor,some-iommu"; - #iommu-cells = <1>; - }; - - pci: pci@f { - reg = <0xf 0x1>; - compatible = "vendor,pcie-root-complex"; - device_type = "pci"; - - /* - * The sideband data provided to the IOMMU is the RID, - * but the high bits of the bus number are flipped. - */ - iommu-map = <0x0000 &iommu 0x8000 0x8000>, - <0x8000 &iommu 0x0000 0x8000>; - }; -}; - - -Example (4) -=========== - -/ { - #address-cells = <1>; - #size-cells = <1>; - - iommu_a: iommu@a { - reg = <0xa 0x1>; - compatible = "vendor,some-iommu"; - #iommu-cells = <1>; - }; - - iommu_b: iommu@b { - reg = <0xb 0x1>; - compatible = "vendor,some-iommu"; - #iommu-cells = <1>; - }; - - iommu_c: iommu@c { - reg = <0xc 0x1>; - compatible = "vendor,some-iommu"; - #iommu-cells = <1>; - }; - - pci: pci@f { - reg = <0xf 0x1>; - compatible = "vendor,pcie-root-complex"; - device_type = "pci"; - - /* - * Devices with bus number 0-127 are mastered via IOMMU - * a, with sideband data being RID[14:0]. - * Devices with bus number 128-255 are mastered via - * IOMMU b, with sideband data being RID[14:0]. - * No devices master via IOMMU c. - */ - iommu-map = <0x0000 &iommu_a 0x0000 0x8000>, - <0x8000 &iommu_b 0x0000 0x8000>; - }; -}; +This document describes the generic device tree binding for describing the +relationship between PCI(e) devices and IOMMU(s). + +Each PCI(e) device under a root complex is uniquely identified by its Requester +ID (AKA RID). A Requester ID is a triplet of a Bus number, Device number, and +Function number. + +For the purpose of this document, when treated as a numeric value, a RID is +formatted such that: + +* Bits [15:8] are the Bus number. +* Bits [7:3] are the Device number. +* Bits [2:0] are the Function number. +* Any other bits required for padding must be zero. + +IOMMUs may distinguish PCI devices through sideband data derived from the +Requester ID. While a given PCI device can only master through one IOMMU, a +root complex may split masters across a set of IOMMUs (e.g. with one IOMMU per +bus). + +The generic 'iommus' property is insufficient to describe this relationship, +and a mechanism is required to map from a PCI device to its IOMMU and sideband +data. + +For generic IOMMU bindings, see +Documentation/devicetree/bindings/iommu/iommu.txt. + + +PCI root complex +================ + +Optional properties +------------------- + +- iommu-map: Maps a Requester ID to an IOMMU and associated IOMMU specifier + data. + + The property is an arbitrary number of tuples of + (rid-base,iommu,iommu-base,length). + + Any RID r in the interval [rid-base, rid-base + length) is associated with + the listed IOMMU, with the IOMMU specifier (r - rid-base + iommu-base). + +- iommu-map-mask: A mask to be applied to each Requester ID prior to being + mapped to an IOMMU specifier per the iommu-map property. + + +Example (1) +=========== + +/ { + #address-cells = <1>; + #size-cells = <1>; + + iommu: iommu@a { + reg = <0xa 0x1>; + compatible = "vendor,some-iommu"; + #iommu-cells = <1>; + }; + + pci: pci@f { + reg = <0xf 0x1>; + compatible = "vendor,pcie-root-complex"; + device_type = "pci"; + + /* + * The sideband data provided to the IOMMU is the RID, + * identity-mapped. + */ + iommu-map = <0x0 &iommu 0x0 0x10000>; + }; +}; + + +Example (2) +=========== + +/ { + #address-cells = <1>; + #size-cells = <1>; + + iommu: iommu@a { + reg = <0xa 0x1>; + compatible = "vendor,some-iommu"; + #iommu-cells = <1>; + }; + + pci: pci@f { + reg = <0xf 0x1>; + compatible = "vendor,pcie-root-complex"; + device_type = "pci"; + + /* + * The sideband data provided to the IOMMU is the RID with the + * function bits masked out. + */ + iommu-map = <0x0 &iommu 0x0 0x10000>; + iommu-map-mask = <0xfff8>; + }; +}; + + +Example (3) +=========== + +/ { + #address-cells = <1>; + #size-cells = <1>; + + iommu: iommu@a { + reg = <0xa 0x1>; + compatible = "vendor,some-iommu"; + #iommu-cells = <1>; + }; + + pci: pci@f { + reg = <0xf 0x1>; + compatible = "vendor,pcie-root-complex"; + device_type = "pci"; + + /* + * The sideband data provided to the IOMMU is the RID, + * but the high bits of the bus number are flipped. + */ + iommu-map = <0x0000 &iommu 0x8000 0x8000>, + <0x8000 &iommu 0x0000 0x8000>; + }; +}; + + +Example (4) +=========== + +/ { + #address-cells = <1>; + #size-cells = <1>; + + iommu_a: iommu@a { + reg = <0xa 0x1>; + compatible = "vendor,some-iommu"; + #iommu-cells = <1>; + }; + + iommu_b: iommu@b { + reg = <0xb 0x1>; + compatible = "vendor,some-iommu"; + #iommu-cells = <1>; + }; + + iommu_c: iommu@c { + reg = <0xc 0x1>; + compatible = "vendor,some-iommu"; + #iommu-cells = <1>; + }; + + pci: pci@f { + reg = <0xf 0x1>; + compatible = "vendor,pcie-root-complex"; + device_type = "pci"; + + /* + * Devices with bus number 0-127 are mastered via IOMMU + * a, with sideband data being RID[14:0]. + * Devices with bus number 128-255 are mastered via + * IOMMU b, with sideband data being RID[14:0]. + * No devices master via IOMMU c. + */ + iommu-map = <0x0000 &iommu_a 0x0000 0x8000>, + <0x8000 &iommu_b 0x0000 0x8000>; + }; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/pci.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/pci.txt index 8ccea52ff..6a8f2874a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/pci.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/pci.txt @@ -1,84 +1,84 @@ -PCI bus bridges have standardized Device Tree bindings: - -PCI Bus Binding to: IEEE Std 1275-1994 -https://www.devicetree.org/open-firmware/bindings/pci/pci2_1.pdf - -And for the interrupt mapping part: - -Open Firmware Recommended Practice: Interrupt Mapping -https://www.devicetree.org/open-firmware/practice/imap/imap0_9d.pdf - -Additionally to the properties specified in the above standards a host bridge -driver implementation may support the following properties: - -- linux,pci-domain: - If present this property assigns a fixed PCI domain number to a host bridge, - otherwise an unstable (across boots) unique number will be assigned. - It is required to either not set this property at all or set it for all - host bridges in the system, otherwise potentially conflicting domain numbers - may be assigned to root buses behind different host bridges. The domain - number for each host bridge in the system must be unique. -- max-link-speed: - If present this property specifies PCI gen for link capability. Host - drivers could add this as a strategy to avoid unnecessary operation for - unsupported link speed, for instance, trying to do training for - unsupported link speed, etc. Must be '4' for gen4, '3' for gen3, '2' - for gen2, and '1' for gen1. Any other values are invalid. -- reset-gpios: - If present this property specifies PERST# GPIO. Host drivers can parse the - GPIO and apply fundamental reset to endpoints. -- supports-clkreq: - If present this property specifies that CLKREQ signal routing exists from - root port to downstream device and host bridge drivers can do programming - which depends on CLKREQ signal existence. For example, programming root port - not to advertise ASPM L1 Sub-States support if there is no CLKREQ signal. - -PCI-PCI Bridge properties -------------------------- - -PCIe root ports and switch ports may be described explicitly in the device -tree, as children of the host bridge node. Even though those devices are -discoverable by probing, it might be necessary to describe properties that -aren't provided by standard PCIe capabilities. - -Required properties: - -- reg: - Identifies the PCI-PCI bridge. As defined in the IEEE Std 1275-1994 - document, it is a five-cell address encoded as (phys.hi phys.mid - phys.lo size.hi size.lo). phys.hi should contain the device's BDF as - 0b00000000 bbbbbbbb dddddfff 00000000. The other cells should be zero. - - The bus number is defined by firmware, through the standard bridge - configuration mechanism. If this port is a switch port, then firmware - allocates the bus number and writes it into the Secondary Bus Number - register of the bridge directly above this port. Otherwise, the bus - number of a root port is the first number in the bus-range property, - defaulting to zero. - - If firmware leaves the ARI Forwarding Enable bit set in the bridge - above this port, then phys.hi contains the 8-bit function number as - 0b00000000 bbbbbbbb ffffffff 00000000. Note that the PCIe specification - recommends that firmware only leaves ARI enabled when it knows that the - OS is ARI-aware. - -Optional properties: - -- external-facing: - When present, the port is external-facing. All bridges and endpoints - downstream of this port are external to the machine. The OS can, for - example, use this information to identify devices that cannot be - trusted with relaxed DMA protection, as users could easily attach - malicious devices to this port. - -Example: - -pcie@10000000 { - compatible = "pci-host-ecam-generic"; - ... - pcie@0008 { - /* Root port 00:01.0 is external-facing */ - reg = <0x00000800 0 0 0 0>; - external-facing; - }; -}; +PCI bus bridges have standardized Device Tree bindings: + +PCI Bus Binding to: IEEE Std 1275-1994 +https://www.devicetree.org/open-firmware/bindings/pci/pci2_1.pdf + +And for the interrupt mapping part: + +Open Firmware Recommended Practice: Interrupt Mapping +https://www.devicetree.org/open-firmware/practice/imap/imap0_9d.pdf + +Additionally to the properties specified in the above standards a host bridge +driver implementation may support the following properties: + +- linux,pci-domain: + If present this property assigns a fixed PCI domain number to a host bridge, + otherwise an unstable (across boots) unique number will be assigned. + It is required to either not set this property at all or set it for all + host bridges in the system, otherwise potentially conflicting domain numbers + may be assigned to root buses behind different host bridges. The domain + number for each host bridge in the system must be unique. +- max-link-speed: + If present this property specifies PCI gen for link capability. Host + drivers could add this as a strategy to avoid unnecessary operation for + unsupported link speed, for instance, trying to do training for + unsupported link speed, etc. Must be '4' for gen4, '3' for gen3, '2' + for gen2, and '1' for gen1. Any other values are invalid. +- reset-gpios: + If present this property specifies PERST# GPIO. Host drivers can parse the + GPIO and apply fundamental reset to endpoints. +- supports-clkreq: + If present this property specifies that CLKREQ signal routing exists from + root port to downstream device and host bridge drivers can do programming + which depends on CLKREQ signal existence. For example, programming root port + not to advertise ASPM L1 Sub-States support if there is no CLKREQ signal. + +PCI-PCI Bridge properties +------------------------- + +PCIe root ports and switch ports may be described explicitly in the device +tree, as children of the host bridge node. Even though those devices are +discoverable by probing, it might be necessary to describe properties that +aren't provided by standard PCIe capabilities. + +Required properties: + +- reg: + Identifies the PCI-PCI bridge. As defined in the IEEE Std 1275-1994 + document, it is a five-cell address encoded as (phys.hi phys.mid + phys.lo size.hi size.lo). phys.hi should contain the device's BDF as + 0b00000000 bbbbbbbb dddddfff 00000000. The other cells should be zero. + + The bus number is defined by firmware, through the standard bridge + configuration mechanism. If this port is a switch port, then firmware + allocates the bus number and writes it into the Secondary Bus Number + register of the bridge directly above this port. Otherwise, the bus + number of a root port is the first number in the bus-range property, + defaulting to zero. + + If firmware leaves the ARI Forwarding Enable bit set in the bridge + above this port, then phys.hi contains the 8-bit function number as + 0b00000000 bbbbbbbb ffffffff 00000000. Note that the PCIe specification + recommends that firmware only leaves ARI enabled when it knows that the + OS is ARI-aware. + +Optional properties: + +- external-facing: + When present, the port is external-facing. All bridges and endpoints + downstream of this port are external to the machine. The OS can, for + example, use this information to identify devices that cannot be + trusted with relaxed DMA protection, as users could easily attach + malicious devices to this port. + +Example: + +pcie@10000000 { + compatible = "pci-host-ecam-generic"; + ... + pcie@0008 { + /* Root port 00:01.0 is external-facing */ + reg = <0x00000800 0 0 0 0>; + external-facing; + }; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rcar-gen4-pci-host.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rcar-gen4-pci-host.yaml index ee8a2bd4d..bb3f843c5 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rcar-gen4-pci-host.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rcar-gen4-pci-host.yaml @@ -1,130 +1,130 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (C) 2022-2023 Renesas Electronics Corp. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pci/rcar-gen4-pci-host.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas R-Car Gen4 PCIe Host - -maintainers: - - Yoshihiro Shimoda - -allOf: - - $ref: snps,dw-pcie.yaml# - -properties: - compatible: - items: - - enum: - - renesas,r8a779f0-pcie # R-Car S4-8 - - renesas,r8a779g0-pcie # R-Car V4H - - renesas,r8a779h0-pcie # R-Car V4M - - const: renesas,rcar-gen4-pcie # R-Car Gen4 - - reg: - maxItems: 7 - - reg-names: - items: - - const: dbi - - const: dbi2 - - const: atu - - const: dma - - const: app - - const: phy - - const: config - - interrupts: - maxItems: 4 - - interrupt-names: - items: - - const: msi - - const: dma - - const: sft_ce - - const: app - - clocks: - maxItems: 2 - - clock-names: - items: - - const: core - - const: ref - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - reset-names: - items: - - const: pwr - - max-link-speed: - maximum: 4 - - num-lanes: - maximum: 4 - -required: - - compatible - - reg - - reg-names - - interrupts - - interrupt-names - - clocks - - clock-names - - power-domains - - resets - - reset-names - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - - pcie: pcie@e65d0000 { - compatible = "renesas,r8a779f0-pcie", "renesas,rcar-gen4-pcie"; - reg = <0 0xe65d0000 0 0x1000>, <0 0xe65d2000 0 0x0800>, - <0 0xe65d3000 0 0x2000>, <0 0xe65d5000 0 0x1200>, - <0 0xe65d6200 0 0x0e00>, <0 0xe65d7000 0 0x0400>, - <0 0xfe000000 0 0x400000>; - reg-names = "dbi", "dbi2", "atu", "dma", "app", "phy", "config"; - interrupts = , - , - , - ; - interrupt-names = "msi", "dma", "sft_ce", "app"; - clocks = <&cpg CPG_MOD 624>, <&pcie0_clkref>; - clock-names = "core", "ref"; - power-domains = <&sysc R8A779F0_PD_ALWAYS_ON>; - resets = <&cpg 624>; - reset-names = "pwr"; - max-link-speed = <4>; - num-lanes = <2>; - #address-cells = <3>; - #size-cells = <2>; - bus-range = <0x00 0xff>; - device_type = "pci"; - ranges = <0x01000000 0 0x00000000 0 0xfe000000 0 0x00400000>, - <0x02000000 0 0x30000000 0 0x30000000 0 0x10000000>; - dma-ranges = <0x42000000 0 0x00000000 0 0x00000000 1 0x00000000>; - #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 7>; - interrupt-map = <0 0 0 1 &gic GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH>, - <0 0 0 2 &gic GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH>, - <0 0 0 3 &gic GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH>, - <0 0 0 4 &gic GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH>; - snps,enable-cdm-check; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2022-2023 Renesas Electronics Corp. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/rcar-gen4-pci-host.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas R-Car Gen4 PCIe Host + +maintainers: + - Yoshihiro Shimoda + +allOf: + - $ref: snps,dw-pcie.yaml# + +properties: + compatible: + items: + - enum: + - renesas,r8a779f0-pcie # R-Car S4-8 + - renesas,r8a779g0-pcie # R-Car V4H + - renesas,r8a779h0-pcie # R-Car V4M + - const: renesas,rcar-gen4-pcie # R-Car Gen4 + + reg: + maxItems: 7 + + reg-names: + items: + - const: dbi + - const: dbi2 + - const: atu + - const: dma + - const: app + - const: phy + - const: config + + interrupts: + maxItems: 4 + + interrupt-names: + items: + - const: msi + - const: dma + - const: sft_ce + - const: app + + clocks: + maxItems: 2 + + clock-names: + items: + - const: core + - const: ref + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + reset-names: + items: + - const: pwr + + max-link-speed: + maximum: 4 + + num-lanes: + maximum: 4 + +required: + - compatible + - reg + - reg-names + - interrupts + - interrupt-names + - clocks + - clock-names + - power-domains + - resets + - reset-names + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + pcie: pcie@e65d0000 { + compatible = "renesas,r8a779f0-pcie", "renesas,rcar-gen4-pcie"; + reg = <0 0xe65d0000 0 0x1000>, <0 0xe65d2000 0 0x0800>, + <0 0xe65d3000 0 0x2000>, <0 0xe65d5000 0 0x1200>, + <0 0xe65d6200 0 0x0e00>, <0 0xe65d7000 0 0x0400>, + <0 0xfe000000 0 0x400000>; + reg-names = "dbi", "dbi2", "atu", "dma", "app", "phy", "config"; + interrupts = , + , + , + ; + interrupt-names = "msi", "dma", "sft_ce", "app"; + clocks = <&cpg CPG_MOD 624>, <&pcie0_clkref>; + clock-names = "core", "ref"; + power-domains = <&sysc R8A779F0_PD_ALWAYS_ON>; + resets = <&cpg 624>; + reset-names = "pwr"; + max-link-speed = <4>; + num-lanes = <2>; + #address-cells = <3>; + #size-cells = <2>; + bus-range = <0x00 0xff>; + device_type = "pci"; + ranges = <0x01000000 0 0x00000000 0 0xfe000000 0 0x00400000>, + <0x02000000 0 0x30000000 0 0x30000000 0 0x10000000>; + dma-ranges = <0x42000000 0 0x00000000 0 0x00000000 1 0x00000000>; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &gic GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 2 &gic GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 3 &gic GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 4 &gic GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH>; + snps,enable-cdm-check; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rcar-pci-host.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rcar-pci-host.yaml index b6a7034f1..666f013e3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rcar-pci-host.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rcar-pci-host.yaml @@ -1,139 +1,139 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (C) 2020 Renesas Electronics Corp. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pci/rcar-pci-host.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas R-Car PCIe Host - -maintainers: - - Marek Vasut - - Yoshihiro Shimoda - -allOf: - - $ref: /schemas/pci/pci-host-bridge.yaml# - -properties: - compatible: - oneOf: - - const: renesas,pcie-r8a7779 # R-Car H1 - - items: - - enum: - - renesas,pcie-r8a7742 # RZ/G1H - - renesas,pcie-r8a7743 # RZ/G1M - - renesas,pcie-r8a7744 # RZ/G1N - - renesas,pcie-r8a7790 # R-Car H2 - - renesas,pcie-r8a7791 # R-Car M2-W - - renesas,pcie-r8a7793 # R-Car M2-N - - const: renesas,pcie-rcar-gen2 # R-Car Gen2 and RZ/G1 - - items: - - enum: - - renesas,pcie-r8a774a1 # RZ/G2M - - renesas,pcie-r8a774b1 # RZ/G2N - - renesas,pcie-r8a774c0 # RZ/G2E - - renesas,pcie-r8a774e1 # RZ/G2H - - renesas,pcie-r8a7795 # R-Car H3 - - renesas,pcie-r8a7796 # R-Car M3-W - - renesas,pcie-r8a77961 # R-Car M3-W+ - - renesas,pcie-r8a77965 # R-Car M3-N - - renesas,pcie-r8a77980 # R-Car V3H - - renesas,pcie-r8a77990 # R-Car E3 - - const: renesas,pcie-rcar-gen3 # R-Car Gen3 and RZ/G2 - - reg: - maxItems: 1 - - interrupts: - minItems: 3 - maxItems: 3 - - clocks: - maxItems: 2 - - clock-names: - items: - - const: pcie - - const: pcie_bus - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - phys: - maxItems: 1 - - phy-names: - const: pcie - - vpcie1v5-supply: - description: The 1.5v regulator to use for PCIe. - - vpcie3v3-supply: - description: The 3.3v regulator to use for PCIe. - - vpcie12v-supply: - description: The 12v regulator to use for PCIe. - - iommu-map: true - iommu-map-mask: true - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - - power-domains - -if: - not: - properties: - compatible: - contains: - const: renesas,pcie-r8a7779 -then: - required: - - resets - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - - pcie: pcie@fe000000 { - compatible = "renesas,pcie-r8a7791", "renesas,pcie-rcar-gen2"; - reg = <0 0xfe000000 0 0x80000>; - #address-cells = <3>; - #size-cells = <2>; - bus-range = <0x00 0xff>; - device_type = "pci"; - ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000>, - <0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000>, - <0x02000000 0 0x30000000 0 0x30000000 0 0x08000000>, - <0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>; - dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x40000000>, - <0x42000000 2 0x00000000 2 0x00000000 0 0x40000000>; - interrupts = , - , - ; - #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&cpg CPG_MOD 319>, <&pcie_bus_clk>; - clock-names = "pcie", "pcie_bus"; - power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; - resets = <&cpg 319>; - vpcie3v3-supply = <&pcie_3v3>; - vpcie12v-supply = <&pcie_12v>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2020 Renesas Electronics Corp. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/rcar-pci-host.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas R-Car PCIe Host + +maintainers: + - Marek Vasut + - Yoshihiro Shimoda + +allOf: + - $ref: /schemas/pci/pci-host-bridge.yaml# + +properties: + compatible: + oneOf: + - const: renesas,pcie-r8a7779 # R-Car H1 + - items: + - enum: + - renesas,pcie-r8a7742 # RZ/G1H + - renesas,pcie-r8a7743 # RZ/G1M + - renesas,pcie-r8a7744 # RZ/G1N + - renesas,pcie-r8a7790 # R-Car H2 + - renesas,pcie-r8a7791 # R-Car M2-W + - renesas,pcie-r8a7793 # R-Car M2-N + - const: renesas,pcie-rcar-gen2 # R-Car Gen2 and RZ/G1 + - items: + - enum: + - renesas,pcie-r8a774a1 # RZ/G2M + - renesas,pcie-r8a774b1 # RZ/G2N + - renesas,pcie-r8a774c0 # RZ/G2E + - renesas,pcie-r8a774e1 # RZ/G2H + - renesas,pcie-r8a7795 # R-Car H3 + - renesas,pcie-r8a7796 # R-Car M3-W + - renesas,pcie-r8a77961 # R-Car M3-W+ + - renesas,pcie-r8a77965 # R-Car M3-N + - renesas,pcie-r8a77980 # R-Car V3H + - renesas,pcie-r8a77990 # R-Car E3 + - const: renesas,pcie-rcar-gen3 # R-Car Gen3 and RZ/G2 + + reg: + maxItems: 1 + + interrupts: + minItems: 3 + maxItems: 3 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: pcie + - const: pcie_bus + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + phys: + maxItems: 1 + + phy-names: + const: pcie + + vpcie1v5-supply: + description: The 1.5v regulator to use for PCIe. + + vpcie3v3-supply: + description: The 3.3v regulator to use for PCIe. + + vpcie12v-supply: + description: The 12v regulator to use for PCIe. + + iommu-map: true + iommu-map-mask: true + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - power-domains + +if: + not: + properties: + compatible: + contains: + const: renesas,pcie-r8a7779 +then: + required: + - resets + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + pcie: pcie@fe000000 { + compatible = "renesas,pcie-r8a7791", "renesas,pcie-rcar-gen2"; + reg = <0 0xfe000000 0 0x80000>; + #address-cells = <3>; + #size-cells = <2>; + bus-range = <0x00 0xff>; + device_type = "pci"; + ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000>, + <0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000>, + <0x02000000 0 0x30000000 0 0x30000000 0 0x08000000>, + <0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>; + dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x40000000>, + <0x42000000 2 0x00000000 2 0x00000000 0 0x40000000>; + interrupts = , + , + ; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 319>, <&pcie_bus_clk>; + clock-names = "pcie", "pcie_bus"; + power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; + resets = <&cpg 319>; + vpcie3v3-supply = <&pcie_3v3>; + vpcie12v-supply = <&pcie_12v>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rockchip,rk3399-pcie.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rockchip,rk3399-pcie.yaml index 138d04e88..720a5f945 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rockchip,rk3399-pcie.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rockchip,rk3399-pcie.yaml @@ -1,133 +1,133 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pci/rockchip,rk3399-pcie.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Rockchip AXI PCIe Root Port Bridge Host - -maintainers: - - Shawn Lin - -allOf: - - $ref: /schemas/pci/pci-host-bridge.yaml# - - $ref: rockchip,rk3399-pcie-common.yaml# - -properties: - compatible: - const: rockchip,rk3399-pcie - - reg: true - - reg-names: - items: - - const: axi-base - - const: apb-base - - interrupts: - maxItems: 3 - - interrupt-names: - items: - - const: sys - - const: legacy - - const: client - - aspm-no-l0s: - description: This property is needed if using 24MHz OSC for RC's PHY. - - ep-gpios: - maxItems: 1 - description: pre-reset GPIO - - vpcie12v-supply: - description: The 12v regulator to use for PCIe. - - vpcie3v3-supply: - description: The 3.3v regulator to use for PCIe. - - vpcie1v8-supply: - description: The 1.8v regulator to use for PCIe. - - vpcie0v9-supply: - description: The 0.9v regulator to use for PCIe. - - interrupt-controller: - type: object - additionalProperties: false - - properties: - '#address-cells': - const: 0 - - '#interrupt-cells': - const: 1 - - interrupt-controller: true - -required: - - ranges - - "#interrupt-cells" - - interrupts - - interrupt-controller - - interrupt-map - - interrupt-map-mask - - msi-map - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - - bus { - #address-cells = <2>; - #size-cells = <2>; - - pcie@f8000000 { - compatible = "rockchip,rk3399-pcie"; - device_type = "pci"; - #address-cells = <3>; - #size-cells = <2>; - clocks = <&cru ACLK_PCIE>, <&cru ACLK_PERF_PCIE>, - <&cru PCLK_PCIE>, <&cru SCLK_PCIE_PM>; - clock-names = "aclk", "aclk-perf", - "hclk", "pm"; - interrupts = , - , - ; - interrupt-names = "sys", "legacy", "client"; - ep-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>; - ranges = <0x83000000 0x0 0xfa000000 0x0 0xfa000000 0x0 0x600000 - 0x81000000 0x0 0xfa600000 0x0 0xfa600000 0x0 0x100000>; - num-lanes = <4>; - msi-map = <0x0 &its 0x0 0x1000>; - reg = <0x0 0xf8000000 0x0 0x2000000>, <0x0 0xfd000000 0x0 0x1000000>; - reg-names = "axi-base", "apb-base"; - resets = <&cru SRST_PCIE_CORE>, <&cru SRST_PCIE_MGMT>, - <&cru SRST_PCIE_MGMT_STICKY>, <&cru SRST_PCIE_PIPE> , - <&cru SRST_PCIE_PM>, <&cru SRST_P_PCIE>, <&cru SRST_A_PCIE>; - reset-names = "core", "mgmt", "mgmt-sticky", "pipe", - "pm", "pclk", "aclk"; - /* deprecated legacy PHY model */ - phys = <&pcie_phy>; - phy-names = "pcie-phy"; - pinctrl-names = "default"; - pinctrl-0 = <&pcie_clkreq>; - #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 7>; - interrupt-map = <0 0 0 1 &pcie0_intc 0>, - <0 0 0 2 &pcie0_intc 1>, - <0 0 0 3 &pcie0_intc 2>, - <0 0 0 4 &pcie0_intc 3>; - - pcie0_intc: interrupt-controller { - interrupt-controller; - #address-cells = <0>; - #interrupt-cells = <1>; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/rockchip,rk3399-pcie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip AXI PCIe Root Port Bridge Host + +maintainers: + - Shawn Lin + +allOf: + - $ref: /schemas/pci/pci-host-bridge.yaml# + - $ref: rockchip,rk3399-pcie-common.yaml# + +properties: + compatible: + const: rockchip,rk3399-pcie + + reg: true + + reg-names: + items: + - const: axi-base + - const: apb-base + + interrupts: + maxItems: 3 + + interrupt-names: + items: + - const: sys + - const: legacy + - const: client + + aspm-no-l0s: + description: This property is needed if using 24MHz OSC for RC's PHY. + + ep-gpios: + maxItems: 1 + description: pre-reset GPIO + + vpcie12v-supply: + description: The 12v regulator to use for PCIe. + + vpcie3v3-supply: + description: The 3.3v regulator to use for PCIe. + + vpcie1v8-supply: + description: The 1.8v regulator to use for PCIe. + + vpcie0v9-supply: + description: The 0.9v regulator to use for PCIe. + + interrupt-controller: + type: object + additionalProperties: false + + properties: + '#address-cells': + const: 0 + + '#interrupt-cells': + const: 1 + + interrupt-controller: true + +required: + - ranges + - "#interrupt-cells" + - interrupts + - interrupt-controller + - interrupt-map + - interrupt-map-mask + - msi-map + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + bus { + #address-cells = <2>; + #size-cells = <2>; + + pcie@f8000000 { + compatible = "rockchip,rk3399-pcie"; + device_type = "pci"; + #address-cells = <3>; + #size-cells = <2>; + clocks = <&cru ACLK_PCIE>, <&cru ACLK_PERF_PCIE>, + <&cru PCLK_PCIE>, <&cru SCLK_PCIE_PM>; + clock-names = "aclk", "aclk-perf", + "hclk", "pm"; + interrupts = , + , + ; + interrupt-names = "sys", "legacy", "client"; + ep-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>; + ranges = <0x83000000 0x0 0xfa000000 0x0 0xfa000000 0x0 0x600000 + 0x81000000 0x0 0xfa600000 0x0 0xfa600000 0x0 0x100000>; + num-lanes = <4>; + msi-map = <0x0 &its 0x0 0x1000>; + reg = <0x0 0xf8000000 0x0 0x2000000>, <0x0 0xfd000000 0x0 0x1000000>; + reg-names = "axi-base", "apb-base"; + resets = <&cru SRST_PCIE_CORE>, <&cru SRST_PCIE_MGMT>, + <&cru SRST_PCIE_MGMT_STICKY>, <&cru SRST_PCIE_PIPE> , + <&cru SRST_PCIE_PM>, <&cru SRST_P_PCIE>, <&cru SRST_A_PCIE>; + reset-names = "core", "mgmt", "mgmt-sticky", "pipe", + "pm", "pclk", "aclk"; + /* deprecated legacy PHY model */ + phys = <&pcie_phy>; + phy-names = "pcie-phy"; + pinctrl-names = "default"; + pinctrl-0 = <&pcie_clkreq>; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie0_intc 0>, + <0 0 0 2 &pcie0_intc 1>, + <0 0 0 3 &pcie0_intc 2>, + <0 0 0 4 &pcie0_intc 3>; + + pcie0_intc: interrupt-controller { + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml index 1021493f2..cc9adfc76 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml @@ -1,126 +1,126 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pci/rockchip-dw-pcie-common.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: DesignWare based PCIe RC/EP controller on Rockchip SoCs - -maintainers: - - Shawn Lin - - Simon Xue - - Heiko Stuebner - -description: |+ - Generic properties for the DesignWare based PCIe RC/EP controller on Rockchip - SoCs. - -properties: - clocks: - minItems: 5 - items: - - description: AHB clock for PCIe master - - description: AHB clock for PCIe slave - - description: AHB clock for PCIe dbi - - description: APB clock for PCIe - - description: Auxiliary clock for PCIe - - description: PIPE clock - - description: Reference clock for PCIe - - clock-names: - minItems: 5 - items: - - const: aclk_mst - - const: aclk_slv - - const: aclk_dbi - - const: pclk - - const: aux - - const: pipe - - const: ref - - interrupts: - minItems: 5 - items: - - description: - Combined system interrupt, which is used to signal the following - interrupts - phy_link_up, dll_link_up, link_req_rst_not, hp_pme, - hp, hp_msi, link_auto_bw, link_auto_bw_msi, bw_mgt, bw_mgt_msi, - edma_wr, edma_rd, dpa_sub_upd, rbar_update, link_eq_req, ep_elbi_app - - description: - Combined PM interrupt, which is used to signal the following - interrupts - linkst_in_l1sub, linkst_in_l1, linkst_in_l2, - linkst_in_l0s, linkst_out_l1sub, linkst_out_l1, linkst_out_l2, - linkst_out_l0s, pm_dstate_update - - description: - Combined message interrupt, which is used to signal the following - interrupts - ven_msg, unlock_msg, ltr_msg, cfg_pme, cfg_pme_msi, - pm_pme, pm_to_ack, pm_turnoff, obff_idle, obff_obff, obff_cpu_active - - description: - Combined legacy interrupt, which is used to signal the following - interrupts - inta, intb, intc, intd, tx_inta, tx_intb, tx_intc, - tx_intd - - description: - Combined error interrupt, which is used to signal the following - interrupts - aer_rc_err, aer_rc_err_msi, rx_cpl_timeout, - tx_cpl_timeout, cor_err_sent, nf_err_sent, f_err_sent, cor_err_rx, - nf_err_rx, f_err_rx, radm_qoverflow - - description: - eDMA write channel 0 interrupt - - description: - eDMA write channel 1 interrupt - - description: - eDMA read channel 0 interrupt - - description: - eDMA read channel 1 interrupt - - interrupt-names: - minItems: 5 - items: - - const: sys - - const: pmc - - const: msg - - const: legacy - - const: err - - const: dma0 - - const: dma1 - - const: dma2 - - const: dma3 - - num-lanes: true - - phys: - maxItems: 1 - - phy-names: - const: pcie-phy - - power-domains: - maxItems: 1 - - resets: - minItems: 1 - maxItems: 2 - - reset-names: - oneOf: - - const: pipe - - items: - - const: pwr - - const: pipe - -required: - - compatible - - reg - - reg-names - - clocks - - clock-names - - num-lanes - - phys - - phy-names - - power-domains - - resets - - reset-names - -additionalProperties: true - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/rockchip-dw-pcie-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DesignWare based PCIe RC/EP controller on Rockchip SoCs + +maintainers: + - Shawn Lin + - Simon Xue + - Heiko Stuebner + +description: |+ + Generic properties for the DesignWare based PCIe RC/EP controller on Rockchip + SoCs. + +properties: + clocks: + minItems: 5 + items: + - description: AHB clock for PCIe master + - description: AHB clock for PCIe slave + - description: AHB clock for PCIe dbi + - description: APB clock for PCIe + - description: Auxiliary clock for PCIe + - description: PIPE clock + - description: Reference clock for PCIe + + clock-names: + minItems: 5 + items: + - const: aclk_mst + - const: aclk_slv + - const: aclk_dbi + - const: pclk + - const: aux + - const: pipe + - const: ref + + interrupts: + minItems: 5 + items: + - description: + Combined system interrupt, which is used to signal the following + interrupts - phy_link_up, dll_link_up, link_req_rst_not, hp_pme, + hp, hp_msi, link_auto_bw, link_auto_bw_msi, bw_mgt, bw_mgt_msi, + edma_wr, edma_rd, dpa_sub_upd, rbar_update, link_eq_req, ep_elbi_app + - description: + Combined PM interrupt, which is used to signal the following + interrupts - linkst_in_l1sub, linkst_in_l1, linkst_in_l2, + linkst_in_l0s, linkst_out_l1sub, linkst_out_l1, linkst_out_l2, + linkst_out_l0s, pm_dstate_update + - description: + Combined message interrupt, which is used to signal the following + interrupts - ven_msg, unlock_msg, ltr_msg, cfg_pme, cfg_pme_msi, + pm_pme, pm_to_ack, pm_turnoff, obff_idle, obff_obff, obff_cpu_active + - description: + Combined legacy interrupt, which is used to signal the following + interrupts - inta, intb, intc, intd, tx_inta, tx_intb, tx_intc, + tx_intd + - description: + Combined error interrupt, which is used to signal the following + interrupts - aer_rc_err, aer_rc_err_msi, rx_cpl_timeout, + tx_cpl_timeout, cor_err_sent, nf_err_sent, f_err_sent, cor_err_rx, + nf_err_rx, f_err_rx, radm_qoverflow + - description: + eDMA write channel 0 interrupt + - description: + eDMA write channel 1 interrupt + - description: + eDMA read channel 0 interrupt + - description: + eDMA read channel 1 interrupt + + interrupt-names: + minItems: 5 + items: + - const: sys + - const: pmc + - const: msg + - const: legacy + - const: err + - const: dma0 + - const: dma1 + - const: dma2 + - const: dma3 + + num-lanes: true + + phys: + maxItems: 1 + + phy-names: + const: pcie-phy + + power-domains: + maxItems: 1 + + resets: + minItems: 1 + maxItems: 2 + + reset-names: + oneOf: + - const: pipe + - items: + - const: pwr + - const: pipe + +required: + - compatible + - reg + - reg-names + - clocks + - clock-names + - num-lanes + - phys + - phy-names + - power-domains + - resets + - reset-names + +additionalProperties: true + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-ep.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-ep.yaml index 33fb5cb7b..f2d1137af 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-ep.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rockchip-dw-pcie-ep.yaml @@ -1,95 +1,95 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pci/rockchip-dw-pcie-ep.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: DesignWare based PCIe Endpoint controller on Rockchip SoCs - -maintainers: - - Niklas Cassel - -description: |+ - RK3588 SoC PCIe Endpoint controller is based on the Synopsys DesignWare - PCIe IP and thus inherits all the common properties defined in - snps,dw-pcie-ep.yaml. - -allOf: - - $ref: /schemas/pci/snps,dw-pcie-ep.yaml# - - $ref: /schemas/pci/rockchip-dw-pcie-common.yaml# - -properties: - compatible: - enum: - - rockchip,rk3568-pcie-ep - - rockchip,rk3588-pcie-ep - - reg: - items: - - description: Data Bus Interface (DBI) registers - - description: Data Bus Interface (DBI) shadow registers - - description: Rockchip designed configuration registers - - description: Memory region used to map remote RC address space - - description: Internal Address Translation Unit (iATU) registers - - reg-names: - items: - - const: dbi - - const: dbi2 - - const: apb - - const: addr_space - - const: atu - -required: - - interrupts - - interrupt-names - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - #include - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - - pcie3x4_ep: pcie-ep@fe150000 { - compatible = "rockchip,rk3588-pcie-ep"; - reg = <0xa 0x40000000 0x0 0x00100000>, - <0xa 0x40100000 0x0 0x00100000>, - <0x0 0xfe150000 0x0 0x00010000>, - <0x9 0x00000000 0x0 0x40000000>, - <0xa 0x40300000 0x0 0x00100000>; - reg-names = "dbi", "dbi2", "apb", "addr_space", "atu"; - clocks = <&cru ACLK_PCIE_4L_MSTR>, <&cru ACLK_PCIE_4L_SLV>, - <&cru ACLK_PCIE_4L_DBI>, <&cru PCLK_PCIE_4L>, - <&cru CLK_PCIE_AUX0>, <&cru CLK_PCIE4L_PIPE>; - clock-names = "aclk_mst", "aclk_slv", - "aclk_dbi", "pclk", - "aux", "pipe"; - interrupts = , - , - , - , - , - , - , - , - ; - interrupt-names = "sys", "pmc", "msg", "legacy", "err", - "dma0", "dma1", "dma2", "dma3"; - max-link-speed = <3>; - num-lanes = <4>; - phys = <&pcie30phy>; - phy-names = "pcie-phy"; - power-domains = <&power RK3588_PD_PCIE>; - resets = <&cru SRST_PCIE0_POWER_UP>, <&cru SRST_P_PCIE0>; - reset-names = "pwr", "pipe"; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/rockchip-dw-pcie-ep.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DesignWare based PCIe Endpoint controller on Rockchip SoCs + +maintainers: + - Niklas Cassel + +description: |+ + RK3588 SoC PCIe Endpoint controller is based on the Synopsys DesignWare + PCIe IP and thus inherits all the common properties defined in + snps,dw-pcie-ep.yaml. + +allOf: + - $ref: /schemas/pci/snps,dw-pcie-ep.yaml# + - $ref: /schemas/pci/rockchip-dw-pcie-common.yaml# + +properties: + compatible: + enum: + - rockchip,rk3568-pcie-ep + - rockchip,rk3588-pcie-ep + + reg: + items: + - description: Data Bus Interface (DBI) registers + - description: Data Bus Interface (DBI) shadow registers + - description: Rockchip designed configuration registers + - description: Memory region used to map remote RC address space + - description: Internal Address Translation Unit (iATU) registers + + reg-names: + items: + - const: dbi + - const: dbi2 + - const: apb + - const: addr_space + - const: atu + +required: + - interrupts + - interrupt-names + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + pcie3x4_ep: pcie-ep@fe150000 { + compatible = "rockchip,rk3588-pcie-ep"; + reg = <0xa 0x40000000 0x0 0x00100000>, + <0xa 0x40100000 0x0 0x00100000>, + <0x0 0xfe150000 0x0 0x00010000>, + <0x9 0x00000000 0x0 0x40000000>, + <0xa 0x40300000 0x0 0x00100000>; + reg-names = "dbi", "dbi2", "apb", "addr_space", "atu"; + clocks = <&cru ACLK_PCIE_4L_MSTR>, <&cru ACLK_PCIE_4L_SLV>, + <&cru ACLK_PCIE_4L_DBI>, <&cru PCLK_PCIE_4L>, + <&cru CLK_PCIE_AUX0>, <&cru CLK_PCIE4L_PIPE>; + clock-names = "aclk_mst", "aclk_slv", + "aclk_dbi", "pclk", + "aux", "pipe"; + interrupts = , + , + , + , + , + , + , + , + ; + interrupt-names = "sys", "pmc", "msg", "legacy", "err", + "dma0", "dma1", "dma2", "dma3"; + max-link-speed = <3>; + num-lanes = <4>; + phys = <&pcie30phy>; + phy-names = "pcie-phy"; + power-domains = <&power RK3588_PD_PCIE>; + resets = <&cru SRST_PCIE0_POWER_UP>, <&cru SRST_P_PCIE0>; + reset-names = "pwr", "pipe"; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml index 6fedb72af..550d8a684 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml @@ -1,130 +1,130 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pci/rockchip-dw-pcie.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: DesignWare based PCIe Root Complex controller on Rockchip SoCs - -maintainers: - - Shawn Lin - - Simon Xue - - Heiko Stuebner - -description: |+ - RK3568 SoC PCIe Root Complex controller is based on the Synopsys DesignWare - PCIe IP and thus inherits all the common properties defined in - snps,dw-pcie.yaml. - -allOf: - - $ref: /schemas/pci/snps,dw-pcie.yaml# - - $ref: /schemas/pci/rockchip-dw-pcie-common.yaml# - -properties: - compatible: - oneOf: - - const: rockchip,rk3568-pcie - - items: - - enum: - - rockchip,rk3588-pcie - - const: rockchip,rk3568-pcie - - reg: - items: - - description: Data Bus Interface (DBI) registers - - description: Rockchip designed configuration registers - - description: Config registers - - reg-names: - items: - - const: dbi - - const: apb - - const: config - - legacy-interrupt-controller: - description: Interrupt controller node for handling legacy PCI interrupts. - type: object - additionalProperties: false - properties: - "#address-cells": - const: 0 - - "#interrupt-cells": - const: 1 - - interrupt-controller: true - - interrupts: - items: - - description: combined legacy interrupt - required: - - "#address-cells" - - "#interrupt-cells" - - interrupt-controller - - interrupts - - msi-map: true - - ranges: - minItems: 2 - maxItems: 3 - - vpcie3v3-supply: true - -required: - - msi-map - -unevaluatedProperties: false - -examples: - - | - #include - - bus { - #address-cells = <2>; - #size-cells = <2>; - - pcie3x2: pcie@fe280000 { - compatible = "rockchip,rk3568-pcie"; - reg = <0x3 0xc0800000 0x0 0x390000>, - <0x0 0xfe280000 0x0 0x10000>, - <0x3 0x80000000 0x0 0x100000>; - reg-names = "dbi", "apb", "config"; - bus-range = <0x20 0x2f>; - clocks = <&cru 143>, <&cru 144>, - <&cru 145>, <&cru 146>, - <&cru 147>; - clock-names = "aclk_mst", "aclk_slv", - "aclk_dbi", "pclk", - "aux"; - device_type = "pci"; - interrupts = , - , - , - , - ; - interrupt-names = "sys", "pmc", "msg", "legacy", "err"; - linux,pci-domain = <2>; - max-link-speed = <2>; - msi-map = <0x2000 &its 0x2000 0x1000>; - num-lanes = <2>; - phys = <&pcie30phy>; - phy-names = "pcie-phy"; - power-domains = <&power 15>; - ranges = <0x81000000 0x0 0x80800000 0x3 0x80800000 0x0 0x100000>, - <0x83000000 0x0 0x80900000 0x3 0x80900000 0x0 0x3f700000>; - resets = <&cru 193>; - reset-names = "pipe"; - #address-cells = <3>; - #size-cells = <2>; - - legacy-interrupt-controller { - interrupt-controller; - #address-cells = <0>; - #interrupt-cells = <1>; - interrupt-parent = <&gic>; - interrupts = ; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/rockchip-dw-pcie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DesignWare based PCIe Root Complex controller on Rockchip SoCs + +maintainers: + - Shawn Lin + - Simon Xue + - Heiko Stuebner + +description: |+ + RK3568 SoC PCIe Root Complex controller is based on the Synopsys DesignWare + PCIe IP and thus inherits all the common properties defined in + snps,dw-pcie.yaml. + +allOf: + - $ref: /schemas/pci/snps,dw-pcie.yaml# + - $ref: /schemas/pci/rockchip-dw-pcie-common.yaml# + +properties: + compatible: + oneOf: + - const: rockchip,rk3568-pcie + - items: + - enum: + - rockchip,rk3588-pcie + - const: rockchip,rk3568-pcie + + reg: + items: + - description: Data Bus Interface (DBI) registers + - description: Rockchip designed configuration registers + - description: Config registers + + reg-names: + items: + - const: dbi + - const: apb + - const: config + + legacy-interrupt-controller: + description: Interrupt controller node for handling legacy PCI interrupts. + type: object + additionalProperties: false + properties: + "#address-cells": + const: 0 + + "#interrupt-cells": + const: 1 + + interrupt-controller: true + + interrupts: + items: + - description: combined legacy interrupt + required: + - "#address-cells" + - "#interrupt-cells" + - interrupt-controller + - interrupts + + msi-map: true + + ranges: + minItems: 2 + maxItems: 3 + + vpcie3v3-supply: true + +required: + - msi-map + +unevaluatedProperties: false + +examples: + - | + #include + + bus { + #address-cells = <2>; + #size-cells = <2>; + + pcie3x2: pcie@fe280000 { + compatible = "rockchip,rk3568-pcie"; + reg = <0x3 0xc0800000 0x0 0x390000>, + <0x0 0xfe280000 0x0 0x10000>, + <0x3 0x80000000 0x0 0x100000>; + reg-names = "dbi", "apb", "config"; + bus-range = <0x20 0x2f>; + clocks = <&cru 143>, <&cru 144>, + <&cru 145>, <&cru 146>, + <&cru 147>; + clock-names = "aclk_mst", "aclk_slv", + "aclk_dbi", "pclk", + "aux"; + device_type = "pci"; + interrupts = , + , + , + , + ; + interrupt-names = "sys", "pmc", "msg", "legacy", "err"; + linux,pci-domain = <2>; + max-link-speed = <2>; + msi-map = <0x2000 &its 0x2000 0x1000>; + num-lanes = <2>; + phys = <&pcie30phy>; + phy-names = "pcie-phy"; + power-domains = <&power 15>; + ranges = <0x81000000 0x0 0x80800000 0x3 0x80800000 0x0 0x100000>, + <0x83000000 0x0 0x80900000 0x3 0x80900000 0x0 0x3f700000>; + resets = <&cru 193>; + reset-names = "pipe"; + #address-cells = <3>; + #size-cells = <2>; + + legacy-interrupt-controller { + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-parent = <&gic>; + interrupts = ; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/starfive,jh7110-pcie.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/starfive,jh7110-pcie.yaml index 50e1b3730..67151aaa3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/starfive,jh7110-pcie.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/starfive,jh7110-pcie.yaml @@ -1,120 +1,120 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pci/starfive,jh7110-pcie.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: StarFive JH7110 PCIe host controller - -maintainers: - - Kevin Xie - -allOf: - - $ref: plda,xpressrich3-axi-common.yaml# - -properties: - compatible: - const: starfive,jh7110-pcie - - clocks: - items: - - description: NOC bus clock - - description: Transport layer clock - - description: AXI MST0 clock - - description: APB clock - - clock-names: - items: - - const: noc - - const: tl - - const: axi_mst0 - - const: apb - - resets: - items: - - description: AXI MST0 reset - - description: AXI SLAVE0 reset - - description: AXI SLAVE reset - - description: PCIE BRIDGE reset - - description: PCIE CORE reset - - description: PCIE APB reset - - reset-names: - items: - - const: mst0 - - const: slv0 - - const: slv - - const: brg - - const: core - - const: apb - - starfive,stg-syscon: - $ref: /schemas/types.yaml#/definitions/phandle-array - description: - The phandle to System Register Controller syscon node. - - perst-gpios: - description: GPIO controlled connection to PERST# signal - maxItems: 1 - - phys: - description: - Specified PHY is attached to PCIe controller. - maxItems: 1 - -required: - - clocks - - resets - - starfive,stg-syscon - -unevaluatedProperties: false - -examples: - - | - #include - soc { - #address-cells = <2>; - #size-cells = <2>; - - pcie@940000000 { - compatible = "starfive,jh7110-pcie"; - reg = <0x9 0x40000000 0x0 0x10000000>, - <0x0 0x2b000000 0x0 0x1000000>; - reg-names = "cfg", "apb"; - #address-cells = <3>; - #size-cells = <2>; - #interrupt-cells = <1>; - device_type = "pci"; - ranges = <0x82000000 0x0 0x30000000 0x0 0x30000000 0x0 0x08000000>, - <0xc3000000 0x9 0x00000000 0x9 0x00000000 0x0 0x40000000>; - starfive,stg-syscon = <&stg_syscon>; - bus-range = <0x0 0xff>; - interrupt-parent = <&plic>; - interrupts = <56>; - interrupt-map-mask = <0x0 0x0 0x0 0x7>; - interrupt-map = <0x0 0x0 0x0 0x1 &pcie_intc0 0x1>, - <0x0 0x0 0x0 0x2 &pcie_intc0 0x2>, - <0x0 0x0 0x0 0x3 &pcie_intc0 0x3>, - <0x0 0x0 0x0 0x4 &pcie_intc0 0x4>; - msi-controller; - clocks = <&syscrg 86>, - <&stgcrg 10>, - <&stgcrg 8>, - <&stgcrg 9>; - clock-names = "noc", "tl", "axi_mst0", "apb"; - resets = <&stgcrg 11>, - <&stgcrg 12>, - <&stgcrg 13>, - <&stgcrg 14>, - <&stgcrg 15>, - <&stgcrg 16>; - perst-gpios = <&gpios 26 GPIO_ACTIVE_LOW>; - phys = <&pciephy0>; - - pcie_intc0: interrupt-controller { - #address-cells = <0>; - #interrupt-cells = <1>; - interrupt-controller; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/starfive,jh7110-pcie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7110 PCIe host controller + +maintainers: + - Kevin Xie + +allOf: + - $ref: plda,xpressrich3-axi-common.yaml# + +properties: + compatible: + const: starfive,jh7110-pcie + + clocks: + items: + - description: NOC bus clock + - description: Transport layer clock + - description: AXI MST0 clock + - description: APB clock + + clock-names: + items: + - const: noc + - const: tl + - const: axi_mst0 + - const: apb + + resets: + items: + - description: AXI MST0 reset + - description: AXI SLAVE0 reset + - description: AXI SLAVE reset + - description: PCIE BRIDGE reset + - description: PCIE CORE reset + - description: PCIE APB reset + + reset-names: + items: + - const: mst0 + - const: slv0 + - const: slv + - const: brg + - const: core + - const: apb + + starfive,stg-syscon: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + The phandle to System Register Controller syscon node. + + perst-gpios: + description: GPIO controlled connection to PERST# signal + maxItems: 1 + + phys: + description: + Specified PHY is attached to PCIe controller. + maxItems: 1 + +required: + - clocks + - resets + - starfive,stg-syscon + +unevaluatedProperties: false + +examples: + - | + #include + soc { + #address-cells = <2>; + #size-cells = <2>; + + pcie@940000000 { + compatible = "starfive,jh7110-pcie"; + reg = <0x9 0x40000000 0x0 0x10000000>, + <0x0 0x2b000000 0x0 0x1000000>; + reg-names = "cfg", "apb"; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + device_type = "pci"; + ranges = <0x82000000 0x0 0x30000000 0x0 0x30000000 0x0 0x08000000>, + <0xc3000000 0x9 0x00000000 0x9 0x00000000 0x0 0x40000000>; + starfive,stg-syscon = <&stg_syscon>; + bus-range = <0x0 0xff>; + interrupt-parent = <&plic>; + interrupts = <56>; + interrupt-map-mask = <0x0 0x0 0x0 0x7>; + interrupt-map = <0x0 0x0 0x0 0x1 &pcie_intc0 0x1>, + <0x0 0x0 0x0 0x2 &pcie_intc0 0x2>, + <0x0 0x0 0x0 0x3 &pcie_intc0 0x3>, + <0x0 0x0 0x0 0x4 &pcie_intc0 0x4>; + msi-controller; + clocks = <&syscrg 86>, + <&stgcrg 10>, + <&stgcrg 8>, + <&stgcrg 9>; + clock-names = "noc", "tl", "axi_mst0", "apb"; + resets = <&stgcrg 11>, + <&stgcrg 12>, + <&stgcrg 13>, + <&stgcrg 14>, + <&stgcrg 15>, + <&stgcrg 16>; + perst-gpios = <&gpios 26 GPIO_ACTIVE_LOW>; + phys = <&pciephy0>; + + pcie_intc0: interrupt-controller { + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/ti-pci.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/ti-pci.txt index 1252f0aad..8147e3e3e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/ti-pci.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/ti-pci.txt @@ -1,102 +1,102 @@ -TI PCI Controllers - -PCIe DesignWare Controller - - compatible: Should be "ti,dra7-pcie" for RC (deprecated) - Should be "ti,dra7-pcie-ep" for EP (deprecated) - Should be "ti,dra746-pcie-rc" for dra74x/dra76 in RC mode - Should be "ti,dra746-pcie-ep" for dra74x/dra76 in EP mode - Should be "ti,dra726-pcie-rc" for dra72x in RC mode - Should be "ti,dra726-pcie-ep" for dra72x in EP mode - - phys : list of PHY specifiers (used by generic PHY framework) - - phy-names : must be "pcie-phy0", "pcie-phy1", "pcie-phyN".. based on the - number of PHYs as specified in *phys* property. - - ti,hwmods : Name of the hwmod associated to the pcie, "pcie", - where is the instance number of the pcie from the HW spec. - - num-lanes as specified in ../snps,dw-pcie.yaml - - ti,syscon-lane-sel : phandle/offset pair. Phandle to the system control - module and the register offset to specify lane - selection. - -HOST MODE -========= - - reg : Two register ranges as listed in the reg-names property - - reg-names : The first entry must be "ti-conf" for the TI-specific registers - The second entry must be "rc-dbics" for the DesignWare PCIe - registers - The third entry must be "config" for the PCIe configuration space - - interrupts : Two interrupt entries must be specified. The first one is for - main interrupt line and the second for MSI interrupt line. - - #address-cells, - #size-cells, - #interrupt-cells, - device_type, - ranges, - interrupt-map-mask, - interrupt-map : as specified in ../snps,dw-pcie.yaml - - ti,syscon-unaligned-access: phandle to the syscon DT node. The 1st argument - should contain the register offset within syscon - and the 2nd argument should contain the bit field - for setting the bit to enable unaligned - access. - -DEVICE MODE -=========== - - reg : Four register ranges as listed in the reg-names property - - reg-names : "ti-conf" for the TI-specific registers - "ep_dbics" for the standard configuration registers as - they are locally accessed within the DIF CS space - "ep_dbics2" for the standard configuration registers as - they are locally accessed within the DIF CS2 space - "addr_space" used to map remote RC address space - - interrupts : one interrupt entries must be specified for main interrupt. - - num-ib-windows : number of inbound address translation windows - - num-ob-windows : number of outbound address translation windows - - ti,syscon-unaligned-access: phandle to the syscon DT node. The 1st argument - should contain the register offset within syscon - and the 2nd argument should contain the bit field - for setting the bit to enable unaligned - access. - -Optional Property: - - gpios : Should be added if a GPIO line is required to drive PERST# line - -NOTE: Two DT nodes may be added for each PCI controller; one for host -mode and another for device mode. So in order for PCI to -work in host mode, EP mode DT node should be disabled and in order to PCI to -work in EP mode, host mode DT node should be disabled. Host mode and EP -mode are mutually exclusive. - -Example: -axi { - compatible = "simple-bus"; - #size-cells = <1>; - #address-cells = <1>; - ranges = <0x51000000 0x51000000 0x3000 - 0x0 0x20000000 0x10000000>; - pcie@51000000 { - compatible = "ti,dra7-pcie"; - reg = <0x51000000 0x2000>, <0x51002000 0x14c>, <0x1000 0x2000>; - reg-names = "rc_dbics", "ti_conf", "config"; - interrupts = <0 232 0x4>, <0 233 0x4>; - #address-cells = <3>; - #size-cells = <2>; - device_type = "pci"; - ranges = <0x81000000 0 0 0x03000 0 0x00010000 - 0x82000000 0 0x20013000 0x13000 0 0xffed000>; - #interrupt-cells = <1>; - num-lanes = <1>; - ti,hwmods = "pcie1"; - phys = <&pcie1_phy>; - phy-names = "pcie-phy0"; - interrupt-map-mask = <0 0 0 7>; - interrupt-map = <0 0 0 1 &pcie_intc 1>, - <0 0 0 2 &pcie_intc 2>, - <0 0 0 3 &pcie_intc 3>, - <0 0 0 4 &pcie_intc 4>; - pcie_intc: interrupt-controller { - interrupt-controller; - #address-cells = <0>; - #interrupt-cells = <1>; - }; - }; -}; +TI PCI Controllers + +PCIe DesignWare Controller + - compatible: Should be "ti,dra7-pcie" for RC (deprecated) + Should be "ti,dra7-pcie-ep" for EP (deprecated) + Should be "ti,dra746-pcie-rc" for dra74x/dra76 in RC mode + Should be "ti,dra746-pcie-ep" for dra74x/dra76 in EP mode + Should be "ti,dra726-pcie-rc" for dra72x in RC mode + Should be "ti,dra726-pcie-ep" for dra72x in EP mode + - phys : list of PHY specifiers (used by generic PHY framework) + - phy-names : must be "pcie-phy0", "pcie-phy1", "pcie-phyN".. based on the + number of PHYs as specified in *phys* property. + - ti,hwmods : Name of the hwmod associated to the pcie, "pcie", + where is the instance number of the pcie from the HW spec. + - num-lanes as specified in ../snps,dw-pcie.yaml + - ti,syscon-lane-sel : phandle/offset pair. Phandle to the system control + module and the register offset to specify lane + selection. + +HOST MODE +========= + - reg : Two register ranges as listed in the reg-names property + - reg-names : The first entry must be "ti-conf" for the TI-specific registers + The second entry must be "rc-dbics" for the DesignWare PCIe + registers + The third entry must be "config" for the PCIe configuration space + - interrupts : Two interrupt entries must be specified. The first one is for + main interrupt line and the second for MSI interrupt line. + - #address-cells, + #size-cells, + #interrupt-cells, + device_type, + ranges, + interrupt-map-mask, + interrupt-map : as specified in ../snps,dw-pcie.yaml + - ti,syscon-unaligned-access: phandle to the syscon DT node. The 1st argument + should contain the register offset within syscon + and the 2nd argument should contain the bit field + for setting the bit to enable unaligned + access. + +DEVICE MODE +=========== + - reg : Four register ranges as listed in the reg-names property + - reg-names : "ti-conf" for the TI-specific registers + "ep_dbics" for the standard configuration registers as + they are locally accessed within the DIF CS space + "ep_dbics2" for the standard configuration registers as + they are locally accessed within the DIF CS2 space + "addr_space" used to map remote RC address space + - interrupts : one interrupt entries must be specified for main interrupt. + - num-ib-windows : number of inbound address translation windows + - num-ob-windows : number of outbound address translation windows + - ti,syscon-unaligned-access: phandle to the syscon DT node. The 1st argument + should contain the register offset within syscon + and the 2nd argument should contain the bit field + for setting the bit to enable unaligned + access. + +Optional Property: + - gpios : Should be added if a GPIO line is required to drive PERST# line + +NOTE: Two DT nodes may be added for each PCI controller; one for host +mode and another for device mode. So in order for PCI to +work in host mode, EP mode DT node should be disabled and in order to PCI to +work in EP mode, host mode DT node should be disabled. Host mode and EP +mode are mutually exclusive. + +Example: +axi { + compatible = "simple-bus"; + #size-cells = <1>; + #address-cells = <1>; + ranges = <0x51000000 0x51000000 0x3000 + 0x0 0x20000000 0x10000000>; + pcie@51000000 { + compatible = "ti,dra7-pcie"; + reg = <0x51000000 0x2000>, <0x51002000 0x14c>, <0x1000 0x2000>; + reg-names = "rc_dbics", "ti_conf", "config"; + interrupts = <0 232 0x4>, <0 233 0x4>; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges = <0x81000000 0 0 0x03000 0 0x00010000 + 0x82000000 0 0x20013000 0x13000 0 0xffed000>; + #interrupt-cells = <1>; + num-lanes = <1>; + ti,hwmods = "pcie1"; + phys = <&pcie1_phy>; + phy-names = "pcie-phy0"; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie_intc 1>, + <0 0 0 2 &pcie_intc 2>, + <0 0 0 3 &pcie_intc 3>, + <0 0 0 4 &pcie_intc 4>; + pcie_intc: interrupt-controller { + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + }; + }; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml index 735631ca6..9de3c09ef 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml @@ -1,156 +1,156 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pci/xlnx,nwl-pcie.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Xilinx NWL PCIe Root Port Bridge - -maintainers: - - Thippeswamy Havalige - -allOf: - - $ref: /schemas/pci/pci-host-bridge.yaml# - - $ref: /schemas/interrupt-controller/msi-controller.yaml# - -properties: - compatible: - const: xlnx,nwl-pcie-2.11 - - reg: - items: - - description: PCIe bridge registers location. - - description: PCIe Controller registers location. - - description: PCIe Configuration space region. - - reg-names: - items: - - const: breg - - const: pcireg - - const: cfg - - interrupts: - items: - - description: interrupt asserted when miscellaneous interrupt is received - - description: unused interrupt(dummy) - - description: interrupt asserted when a legacy interrupt is received - - description: msi1 interrupt asserted when an MSI is received - - description: msi0 interrupt asserted when an MSI is received - - interrupt-names: - items: - - const: misc - - const: dummy - - const: intx - - const: msi1 - - const: msi0 - - interrupt-map-mask: - items: - - const: 0 - - const: 0 - - const: 0 - - const: 7 - - "#interrupt-cells": - const: 1 - - msi-parent: - description: MSI controller the device is capable of using. - - interrupt-map: - maxItems: 4 - - phys: - minItems: 1 - maxItems: 4 - description: One phy per logical lane, in order - - power-domains: - maxItems: 1 - - iommus: - maxItems: 1 - - dma-coherent: - description: optional, only needed if DMA operations are coherent. - - clocks: - maxItems: 1 - description: optional, input clock specifier. - - legacy-interrupt-controller: - description: Interrupt controller node for handling legacy PCI interrupts. - type: object - properties: - "#address-cells": - const: 0 - - "#interrupt-cells": - const: 1 - - interrupt-controller: true - - required: - - "#address-cells" - - "#interrupt-cells" - - interrupt-controller - - additionalProperties: false - -required: - - compatible - - reg - - reg-names - - interrupts - - "#interrupt-cells" - - interrupt-map - - interrupt-map-mask - - msi-controller - - power-domains - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - #include - soc { - #address-cells = <2>; - #size-cells = <2>; - nwl_pcie: pcie@fd0e0000 { - compatible = "xlnx,nwl-pcie-2.11"; - reg = <0x0 0xfd0e0000 0x0 0x1000>, - <0x0 0xfd480000 0x0 0x1000>, - <0x80 0x00000000 0x0 0x10000000>; - reg-names = "breg", "pcireg", "cfg"; - ranges = <0x02000000 0x0 0xe0000000 0x0 0xe0000000 0x0 0x10000000>, - <0x43000000 0x00000006 0x0 0x00000006 0x0 0x00000002 0x0>; - #address-cells = <3>; - #size-cells = <2>; - #interrupt-cells = <1>; - msi-controller; - device_type = "pci"; - interrupt-parent = <&gic>; - interrupts = , , - , , - ; - interrupt-names = "misc", "dummy", "intx", "msi1", "msi0"; - interrupt-map-mask = <0x0 0x0 0x0 0x7>; - interrupt-map = <0x0 0x0 0x0 0x1 &pcie_intc 0x1>, - <0x0 0x0 0x0 0x2 &pcie_intc 0x2>, - <0x0 0x0 0x0 0x3 &pcie_intc 0x3>, - <0x0 0x0 0x0 0x4 &pcie_intc 0x4>; - msi-parent = <&nwl_pcie>; - phys = <&psgtr 0 PHY_TYPE_PCIE 0 0>; - power-domains = <&zynqmp_firmware PD_PCIE>; - iommus = <&smmu 0x4d0>; - pcie_intc: legacy-interrupt-controller { - interrupt-controller; - #address-cells = <0>; - #interrupt-cells = <1>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/xlnx,nwl-pcie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx NWL PCIe Root Port Bridge + +maintainers: + - Thippeswamy Havalige + +allOf: + - $ref: /schemas/pci/pci-host-bridge.yaml# + - $ref: /schemas/interrupt-controller/msi-controller.yaml# + +properties: + compatible: + const: xlnx,nwl-pcie-2.11 + + reg: + items: + - description: PCIe bridge registers location. + - description: PCIe Controller registers location. + - description: PCIe Configuration space region. + + reg-names: + items: + - const: breg + - const: pcireg + - const: cfg + + interrupts: + items: + - description: interrupt asserted when miscellaneous interrupt is received + - description: unused interrupt(dummy) + - description: interrupt asserted when a legacy interrupt is received + - description: msi1 interrupt asserted when an MSI is received + - description: msi0 interrupt asserted when an MSI is received + + interrupt-names: + items: + - const: misc + - const: dummy + - const: intx + - const: msi1 + - const: msi0 + + interrupt-map-mask: + items: + - const: 0 + - const: 0 + - const: 0 + - const: 7 + + "#interrupt-cells": + const: 1 + + msi-parent: + description: MSI controller the device is capable of using. + + interrupt-map: + maxItems: 4 + + phys: + minItems: 1 + maxItems: 4 + description: One phy per logical lane, in order + + power-domains: + maxItems: 1 + + iommus: + maxItems: 1 + + dma-coherent: + description: optional, only needed if DMA operations are coherent. + + clocks: + maxItems: 1 + description: optional, input clock specifier. + + legacy-interrupt-controller: + description: Interrupt controller node for handling legacy PCI interrupts. + type: object + properties: + "#address-cells": + const: 0 + + "#interrupt-cells": + const: 1 + + interrupt-controller: true + + required: + - "#address-cells" + - "#interrupt-cells" + - interrupt-controller + + additionalProperties: false + +required: + - compatible + - reg + - reg-names + - interrupts + - "#interrupt-cells" + - interrupt-map + - interrupt-map-mask + - msi-controller + - power-domains + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + soc { + #address-cells = <2>; + #size-cells = <2>; + nwl_pcie: pcie@fd0e0000 { + compatible = "xlnx,nwl-pcie-2.11"; + reg = <0x0 0xfd0e0000 0x0 0x1000>, + <0x0 0xfd480000 0x0 0x1000>, + <0x80 0x00000000 0x0 0x10000000>; + reg-names = "breg", "pcireg", "cfg"; + ranges = <0x02000000 0x0 0xe0000000 0x0 0xe0000000 0x0 0x10000000>, + <0x43000000 0x00000006 0x0 0x00000006 0x0 0x00000002 0x0>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + msi-controller; + device_type = "pci"; + interrupt-parent = <&gic>; + interrupts = , , + , , + ; + interrupt-names = "misc", "dummy", "intx", "msi1", "msi0"; + interrupt-map-mask = <0x0 0x0 0x0 0x7>; + interrupt-map = <0x0 0x0 0x0 0x1 &pcie_intc 0x1>, + <0x0 0x0 0x0 0x2 &pcie_intc 0x2>, + <0x0 0x0 0x0 0x3 &pcie_intc 0x3>, + <0x0 0x0 0x0 0x4 &pcie_intc 0x4>; + msi-parent = <&nwl_pcie>; + phys = <&psgtr 0 PHY_TYPE_PCIE 0 0>; + power-domains = <&zynqmp_firmware PD_PCIE>; + iommus = <&smmu 0x4d0>; + pcie_intc: legacy-interrupt-controller { + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/xlnx,xdma-host.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/xlnx,xdma-host.yaml index 75923e0f9..f1efd919c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/xlnx,xdma-host.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pci/xlnx,xdma-host.yaml @@ -1,146 +1,146 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pci/xlnx,xdma-host.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Xilinx XDMA PL PCIe Root Port Bridge - -maintainers: - - Thippeswamy Havalige - -allOf: - - $ref: /schemas/pci/pci-host-bridge.yaml# - -properties: - compatible: - enum: - - xlnx,xdma-host-3.00 - - xlnx,qdma-host-3.00 - - reg: - items: - - description: configuration region and XDMA bridge register. - - description: QDMA bridge register. - minItems: 1 - - reg-names: - items: - - const: cfg - - const: breg - minItems: 1 - - ranges: - maxItems: 2 - - interrupts: - items: - - description: interrupt asserted when miscellaneous interrupt is received. - - description: msi0 interrupt asserted when an MSI is received. - - description: msi1 interrupt asserted when an MSI is received. - - interrupt-names: - items: - - const: misc - - const: msi0 - - const: msi1 - - interrupt-map-mask: - items: - - const: 0 - - const: 0 - - const: 0 - - const: 7 - - interrupt-map: - maxItems: 4 - - "#interrupt-cells": - const: 1 - - interrupt-controller: - description: identifies the node as an interrupt controller - type: object - properties: - interrupt-controller: true - - "#address-cells": - const: 0 - - "#interrupt-cells": - const: 1 - - required: - - interrupt-controller - - "#address-cells" - - "#interrupt-cells" - - additionalProperties: false - -required: - - compatible - - reg - - ranges - - interrupts - - interrupt-map - - interrupt-map-mask - - "#interrupt-cells" - - interrupt-controller - -if: - properties: - compatible: - contains: - enum: - - xlnx,qdma-host-3.00 -then: - properties: - reg: - minItems: 2 - reg-names: - minItems: 2 - required: - - reg-names -else: - properties: - reg: - maxItems: 1 - reg-names: - maxItems: 1 - -unevaluatedProperties: false - -examples: - - - | - #include - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - pcie@a0000000 { - compatible = "xlnx,xdma-host-3.00"; - reg = <0x0 0xa0000000 0x0 0x10000000>; - ranges = <0x2000000 0x0 0xb0000000 0x0 0xb0000000 0x0 0x1000000>, - <0x43000000 0x5 0x0 0x5 0x0 0x0 0x1000000>; - #address-cells = <3>; - #size-cells = <2>; - #interrupt-cells = <1>; - device_type = "pci"; - interrupt-parent = <&gic>; - interrupts = , , - ; - interrupt-names = "misc", "msi0", "msi1"; - interrupt-map-mask = <0x0 0x0 0x0 0x7>; - interrupt-map = <0 0 0 1 &pcie_intc_0 0>, - <0 0 0 2 &pcie_intc_0 1>, - <0 0 0 3 &pcie_intc_0 2>, - <0 0 0 4 &pcie_intc_0 3>; - pcie_intc_0: interrupt-controller { - #address-cells = <0>; - #interrupt-cells = <1>; - interrupt-controller; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/xlnx,xdma-host.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx XDMA PL PCIe Root Port Bridge + +maintainers: + - Thippeswamy Havalige + +allOf: + - $ref: /schemas/pci/pci-host-bridge.yaml# + +properties: + compatible: + enum: + - xlnx,xdma-host-3.00 + - xlnx,qdma-host-3.00 + + reg: + items: + - description: configuration region and XDMA bridge register. + - description: QDMA bridge register. + minItems: 1 + + reg-names: + items: + - const: cfg + - const: breg + minItems: 1 + + ranges: + maxItems: 2 + + interrupts: + items: + - description: interrupt asserted when miscellaneous interrupt is received. + - description: msi0 interrupt asserted when an MSI is received. + - description: msi1 interrupt asserted when an MSI is received. + + interrupt-names: + items: + - const: misc + - const: msi0 + - const: msi1 + + interrupt-map-mask: + items: + - const: 0 + - const: 0 + - const: 0 + - const: 7 + + interrupt-map: + maxItems: 4 + + "#interrupt-cells": + const: 1 + + interrupt-controller: + description: identifies the node as an interrupt controller + type: object + properties: + interrupt-controller: true + + "#address-cells": + const: 0 + + "#interrupt-cells": + const: 1 + + required: + - interrupt-controller + - "#address-cells" + - "#interrupt-cells" + + additionalProperties: false + +required: + - compatible + - reg + - ranges + - interrupts + - interrupt-map + - interrupt-map-mask + - "#interrupt-cells" + - interrupt-controller + +if: + properties: + compatible: + contains: + enum: + - xlnx,qdma-host-3.00 +then: + properties: + reg: + minItems: 2 + reg-names: + minItems: 2 + required: + - reg-names +else: + properties: + reg: + maxItems: 1 + reg-names: + maxItems: 1 + +unevaluatedProperties: false + +examples: + + - | + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + pcie@a0000000 { + compatible = "xlnx,xdma-host-3.00"; + reg = <0x0 0xa0000000 0x0 0x10000000>; + ranges = <0x2000000 0x0 0xb0000000 0x0 0xb0000000 0x0 0x1000000>, + <0x43000000 0x5 0x0 0x5 0x0 0x0 0x1000000>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + device_type = "pci"; + interrupt-parent = <&gic>; + interrupts = , , + ; + interrupt-names = "misc", "msi0", "msi1"; + interrupt-map-mask = <0x0 0x0 0x0 0x7>; + interrupt-map = <0 0 0 1 &pcie_intc_0 0>, + <0 0 0 2 &pcie_intc_0 1>, + <0 0 0 3 &pcie_intc_0 2>, + <0 0 0 4 &pcie_intc_0 3>; + pcie_intc_0: interrupt-controller { + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/allwinner,sun8i-h3-usb-phy.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/allwinner,sun8i-h3-usb-phy.yaml index 0fd21c2be..2df012d13 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/allwinner,sun8i-h3-usb-phy.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/allwinner,sun8i-h3-usb-phy.yaml @@ -1,167 +1,167 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/phy/allwinner,sun8i-h3-usb-phy.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Allwinner H3 USB PHY - -maintainers: - - Chen-Yu Tsai - - Maxime Ripard - -properties: - "#phy-cells": - const: 1 - - compatible: - enum: - - allwinner,sun8i-h3-usb-phy - - allwinner,sun50i-h616-usb-phy - - reg: - items: - - description: PHY Control registers - - description: PHY PMU0 registers - - description: PHY PMU1 registers - - description: PHY PMU2 registers - - description: PHY PMU3 registers - - reg-names: - items: - - const: phy_ctrl - - const: pmu0 - - const: pmu1 - - const: pmu2 - - const: pmu3 - - clocks: - minItems: 4 - items: - - description: USB OTG PHY bus clock - - description: USB Host 0 PHY bus clock - - description: USB Host 1 PHY bus clock - - description: USB Host 2 PHY bus clock - - description: PMU clock for host port 2 - - clock-names: - minItems: 4 - items: - - const: usb0_phy - - const: usb1_phy - - const: usb2_phy - - const: usb3_phy - - const: pmu2_clk - - resets: - items: - - description: USB OTG reset - - description: USB Host 1 Controller reset - - description: USB Host 2 Controller reset - - description: USB Host 3 Controller reset - - reset-names: - items: - - const: usb0_reset - - const: usb1_reset - - const: usb2_reset - - const: usb3_reset - - usb0_id_det-gpios: - maxItems: 1 - description: GPIO to the USB OTG ID pin - - usb0_vbus_det-gpios: - maxItems: 1 - description: GPIO to the USB OTG VBUS detect pin - - usb0_vbus_power-supply: - description: Power supply to detect the USB OTG VBUS - - usb0_vbus-supply: - description: Regulator controlling USB OTG VBUS - - usb1_vbus-supply: - description: Regulator controlling USB1 Host controller - - usb2_vbus-supply: - description: Regulator controlling USB2 Host controller - - usb3_vbus-supply: - description: Regulator controlling USB3 Host controller - -required: - - "#phy-cells" - - compatible - - clocks - - clock-names - - reg - - reg-names - - resets - - reset-names - -allOf: - - if: - properties: - compatible: - contains: - enum: - - allwinner,sun50i-h616-usb-phy - then: - properties: - clocks: - minItems: 5 - - clock-names: - minItems: 5 - else: - properties: - clocks: - maxItems: 4 - - clock-names: - maxItems: 4 - -additionalProperties: false - -examples: - - | - #include - #include - #include - - phy@1c19400 { - #phy-cells = <1>; - compatible = "allwinner,sun8i-h3-usb-phy"; - reg = <0x01c19400 0x2c>, - <0x01c1a800 0x4>, - <0x01c1b800 0x4>, - <0x01c1c800 0x4>, - <0x01c1d800 0x4>; - reg-names = "phy_ctrl", - "pmu0", - "pmu1", - "pmu2", - "pmu3"; - clocks = <&ccu CLK_USB_PHY0>, - <&ccu CLK_USB_PHY1>, - <&ccu CLK_USB_PHY2>, - <&ccu CLK_USB_PHY3>; - clock-names = "usb0_phy", - "usb1_phy", - "usb2_phy", - "usb3_phy"; - resets = <&ccu RST_USB_PHY0>, - <&ccu RST_USB_PHY1>, - <&ccu RST_USB_PHY2>, - <&ccu RST_USB_PHY3>; - reset-names = "usb0_reset", - "usb1_reset", - "usb2_reset", - "usb3_reset"; - usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */ - usb0_vbus-supply = <®_usb0_vbus>; - usb1_vbus-supply = <®_usb1_vbus>; - usb2_vbus-supply = <®_usb2_vbus>; - usb3_vbus-supply = <®_usb3_vbus>; - }; +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/allwinner,sun8i-h3-usb-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner H3 USB PHY + +maintainers: + - Chen-Yu Tsai + - Maxime Ripard + +properties: + "#phy-cells": + const: 1 + + compatible: + enum: + - allwinner,sun8i-h3-usb-phy + - allwinner,sun50i-h616-usb-phy + + reg: + items: + - description: PHY Control registers + - description: PHY PMU0 registers + - description: PHY PMU1 registers + - description: PHY PMU2 registers + - description: PHY PMU3 registers + + reg-names: + items: + - const: phy_ctrl + - const: pmu0 + - const: pmu1 + - const: pmu2 + - const: pmu3 + + clocks: + minItems: 4 + items: + - description: USB OTG PHY bus clock + - description: USB Host 0 PHY bus clock + - description: USB Host 1 PHY bus clock + - description: USB Host 2 PHY bus clock + - description: PMU clock for host port 2 + + clock-names: + minItems: 4 + items: + - const: usb0_phy + - const: usb1_phy + - const: usb2_phy + - const: usb3_phy + - const: pmu2_clk + + resets: + items: + - description: USB OTG reset + - description: USB Host 1 Controller reset + - description: USB Host 2 Controller reset + - description: USB Host 3 Controller reset + + reset-names: + items: + - const: usb0_reset + - const: usb1_reset + - const: usb2_reset + - const: usb3_reset + + usb0_id_det-gpios: + maxItems: 1 + description: GPIO to the USB OTG ID pin + + usb0_vbus_det-gpios: + maxItems: 1 + description: GPIO to the USB OTG VBUS detect pin + + usb0_vbus_power-supply: + description: Power supply to detect the USB OTG VBUS + + usb0_vbus-supply: + description: Regulator controlling USB OTG VBUS + + usb1_vbus-supply: + description: Regulator controlling USB1 Host controller + + usb2_vbus-supply: + description: Regulator controlling USB2 Host controller + + usb3_vbus-supply: + description: Regulator controlling USB3 Host controller + +required: + - "#phy-cells" + - compatible + - clocks + - clock-names + - reg + - reg-names + - resets + - reset-names + +allOf: + - if: + properties: + compatible: + contains: + enum: + - allwinner,sun50i-h616-usb-phy + then: + properties: + clocks: + minItems: 5 + + clock-names: + minItems: 5 + else: + properties: + clocks: + maxItems: 4 + + clock-names: + maxItems: 4 + +additionalProperties: false + +examples: + - | + #include + #include + #include + + phy@1c19400 { + #phy-cells = <1>; + compatible = "allwinner,sun8i-h3-usb-phy"; + reg = <0x01c19400 0x2c>, + <0x01c1a800 0x4>, + <0x01c1b800 0x4>, + <0x01c1c800 0x4>, + <0x01c1d800 0x4>; + reg-names = "phy_ctrl", + "pmu0", + "pmu1", + "pmu2", + "pmu3"; + clocks = <&ccu CLK_USB_PHY0>, + <&ccu CLK_USB_PHY1>, + <&ccu CLK_USB_PHY2>, + <&ccu CLK_USB_PHY3>; + clock-names = "usb0_phy", + "usb1_phy", + "usb2_phy", + "usb3_phy"; + resets = <&ccu RST_USB_PHY0>, + <&ccu RST_USB_PHY1>, + <&ccu RST_USB_PHY2>, + <&ccu RST_USB_PHY3>; + reset-names = "usb0_reset", + "usb1_reset", + "usb2_reset", + "usb3_reset"; + usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */ + usb0_vbus-supply = <®_usb0_vbus>; + usb1_vbus-supply = <®_usb1_vbus>; + usb2_vbus-supply = <®_usb2_vbus>; + usb3_vbus-supply = <®_usb3_vbus>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/brcm,brcmstb-usb-phy.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/brcm,brcmstb-usb-phy.yaml index 69d7cef46..580fbe37b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/brcm,brcmstb-usb-phy.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/brcm,brcmstb-usb-phy.yaml @@ -1,196 +1,196 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/phy/brcm,brcmstb-usb-phy.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Broadcom STB USB PHY - -description: Broadcom's PHY that handles EHCI/OHCI and/or XHCI - -maintainers: - - Al Cooper - - Rafał Miłecki - -properties: - compatible: - enum: - - brcm,bcm4908-usb-phy - - brcm,bcm7211-usb-phy - - brcm,bcm7216-usb-phy - - brcm,brcmstb-usb-phy - - reg: - minItems: 1 - items: - - description: the base CTRL register - - description: XHCI EC register - - description: XHCI GBL register - - description: USB PHY register - - description: USB MDIO register - - description: BDC register - - reg-names: - minItems: 1 - items: - - const: ctrl - - const: xhci_ec - - const: xhci_gbl - - const: usb_phy - - const: usb_mdio - - const: bdc_ec - - power-domains: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 2 - - clock-names: - minItems: 1 - items: - - const: sw_usb - - const: sw_usb3 - - interrupts: - description: wakeup interrupt - - interrupt-names: - const: wake - - brcm,ipp: - $ref: /schemas/types.yaml#/definitions/uint32 - description: Invert Port Power - minimum: 0 - maximum: 1 - - brcm,ioc: - $ref: /schemas/types.yaml#/definitions/uint32 - description: Invert Over Current detection - minimum: 0 - maximum: 1 - - dr_mode: - description: PHY Device mode. If this property is not defined, the PHY will - default to "host" mode. - enum: - - host - - peripheral - - drd - - typec-pd - - brcm,syscon-piarbctl: - description: phandle to syscon for handling config registers - $ref: /schemas/types.yaml#/definitions/phandle - - brcm,has-xhci: - description: Indicates the PHY has an XHCI PHY. - type: boolean - - brcm,has-eohci: - description: Indicates the PHY has an EHCI/OHCI PHY. - type: boolean - - "#phy-cells": - description: | - Cell allows setting the type of the PHY. Possible values are: - - PHY_TYPE_USB2 for USB1.1/2.0 PHY - - PHY_TYPE_USB3 for USB3.x PHY - const: 1 - -required: - - reg - - "#phy-cells" - -anyOf: - - required: - - brcm,has-xhci - - required: - - brcm,has-eohci - -allOf: - - if: - properties: - compatible: - contains: - enum: - - brcm,bcm4908-usb-phy - - brcm,brcmstb-usb-phy - then: - properties: - reg: - minItems: 1 - maxItems: 2 - - if: - properties: - compatible: - contains: - const: brcm,bcm7211-usb-phy - then: - properties: - reg: - minItems: 5 - maxItems: 6 - reg-names: - minItems: 5 - maxItems: 6 - - if: - properties: - compatible: - contains: - const: brcm,bcm7216-usb-phy - then: - properties: - reg: - minItems: 3 - maxItems: 3 - reg-names: - minItems: 3 - maxItems: 3 - -additionalProperties: false - -examples: - - | - #include - - usb-phy@f0470200 { - compatible = "brcm,brcmstb-usb-phy"; - reg = <0xf0470200 0xb8>, - <0xf0471940 0x6c0>; - #phy-cells = <1>; - dr_mode = "host"; - brcm,ioc = <1>; - brcm,ipp = <1>; - brcm,has-xhci; - brcm,has-eohci; - clocks = <&usb20>, <&usb30>; - clock-names = "sw_usb", "sw_usb3"; - }; - - | - #include - - usb-phy@29f0200 { - compatible = "brcm,bcm7211-usb-phy"; - reg = <0x29f0200 0x200>, - <0x29c0880 0x30>, - <0x29cc100 0x534>, - <0x2808000 0x24>, - <0x2980080 0x8>; - reg-names = "ctrl", - "xhci_ec", - "xhci_gbl", - "usb_phy", - "usb_mdio"; - brcm,ioc = <0x0>; - brcm,ipp = <0x0>; - interrupts = <0x30>; - interrupt-parent = <&vpu_intr1_nosec_intc>; - interrupt-names = "wake"; - #phy-cells = <0x1>; - brcm,has-xhci; - brcm,syscon-piarbctl = <&syscon_piarbctl>; - clocks = <&scmi_clk 256>; - clock-names = "sw_usb"; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/brcm,brcmstb-usb-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom STB USB PHY + +description: Broadcom's PHY that handles EHCI/OHCI and/or XHCI + +maintainers: + - Al Cooper + - Rafał Miłecki + +properties: + compatible: + enum: + - brcm,bcm4908-usb-phy + - brcm,bcm7211-usb-phy + - brcm,bcm7216-usb-phy + - brcm,brcmstb-usb-phy + + reg: + minItems: 1 + items: + - description: the base CTRL register + - description: XHCI EC register + - description: XHCI GBL register + - description: USB PHY register + - description: USB MDIO register + - description: BDC register + + reg-names: + minItems: 1 + items: + - const: ctrl + - const: xhci_ec + - const: xhci_gbl + - const: usb_phy + - const: usb_mdio + - const: bdc_ec + + power-domains: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + items: + - const: sw_usb + - const: sw_usb3 + + interrupts: + description: wakeup interrupt + + interrupt-names: + const: wake + + brcm,ipp: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Invert Port Power + minimum: 0 + maximum: 1 + + brcm,ioc: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Invert Over Current detection + minimum: 0 + maximum: 1 + + dr_mode: + description: PHY Device mode. If this property is not defined, the PHY will + default to "host" mode. + enum: + - host + - peripheral + - drd + - typec-pd + + brcm,syscon-piarbctl: + description: phandle to syscon for handling config registers + $ref: /schemas/types.yaml#/definitions/phandle + + brcm,has-xhci: + description: Indicates the PHY has an XHCI PHY. + type: boolean + + brcm,has-eohci: + description: Indicates the PHY has an EHCI/OHCI PHY. + type: boolean + + "#phy-cells": + description: | + Cell allows setting the type of the PHY. Possible values are: + - PHY_TYPE_USB2 for USB1.1/2.0 PHY + - PHY_TYPE_USB3 for USB3.x PHY + const: 1 + +required: + - reg + - "#phy-cells" + +anyOf: + - required: + - brcm,has-xhci + - required: + - brcm,has-eohci + +allOf: + - if: + properties: + compatible: + contains: + enum: + - brcm,bcm4908-usb-phy + - brcm,brcmstb-usb-phy + then: + properties: + reg: + minItems: 1 + maxItems: 2 + - if: + properties: + compatible: + contains: + const: brcm,bcm7211-usb-phy + then: + properties: + reg: + minItems: 5 + maxItems: 6 + reg-names: + minItems: 5 + maxItems: 6 + - if: + properties: + compatible: + contains: + const: brcm,bcm7216-usb-phy + then: + properties: + reg: + minItems: 3 + maxItems: 3 + reg-names: + minItems: 3 + maxItems: 3 + +additionalProperties: false + +examples: + - | + #include + + usb-phy@f0470200 { + compatible = "brcm,brcmstb-usb-phy"; + reg = <0xf0470200 0xb8>, + <0xf0471940 0x6c0>; + #phy-cells = <1>; + dr_mode = "host"; + brcm,ioc = <1>; + brcm,ipp = <1>; + brcm,has-xhci; + brcm,has-eohci; + clocks = <&usb20>, <&usb30>; + clock-names = "sw_usb", "sw_usb3"; + }; + - | + #include + + usb-phy@29f0200 { + compatible = "brcm,bcm7211-usb-phy"; + reg = <0x29f0200 0x200>, + <0x29c0880 0x30>, + <0x29cc100 0x534>, + <0x2808000 0x24>, + <0x2980080 0x8>; + reg-names = "ctrl", + "xhci_ec", + "xhci_gbl", + "usb_phy", + "usb_mdio"; + brcm,ioc = <0x0>; + brcm,ipp = <0x0>; + interrupts = <0x30>; + interrupt-parent = <&vpu_intr1_nosec_intc>; + interrupt-names = "wake"; + #phy-cells = <0x1>; + brcm,has-xhci; + brcm,syscon-piarbctl = <&syscon_piarbctl>; + clocks = <&scmi_clk 256>; + clock-names = "sw_usb"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/fsl,mxs-usbphy.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/fsl,mxs-usbphy.yaml index 1eaf82dd2..ce665a277 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/fsl,mxs-usbphy.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/fsl,mxs-usbphy.yaml @@ -1,145 +1,145 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/phy/fsl,mxs-usbphy.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale MXS USB Phy Device - -maintainers: - - Xu Yang - -properties: - compatible: - oneOf: - - enum: - - fsl,imx23-usbphy - - fsl,imx7ulp-usbphy - - fsl,vf610-usbphy - - items: - - enum: - - fsl,imx28-usbphy - - fsl,imx6ul-usbphy - - fsl,imx6sl-usbphy - - fsl,imx6sx-usbphy - - fsl,imx6q-usbphy - - const: fsl,imx23-usbphy - - items: - - const: fsl,imx6sll-usbphy - - const: fsl,imx6ul-usbphy - - const: fsl,imx23-usbphy - - items: - - enum: - - fsl,imx8dxl-usbphy - - fsl,imx8qm-usbphy - - fsl,imx8ulp-usbphy - - const: fsl,imx7ulp-usbphy - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - maxItems: 1 - - '#phy-cells': - const: 0 - - power-domains: - maxItems: 1 - - fsl,anatop: - description: - phandle for anatop register, it is only for imx6 SoC series. - $ref: /schemas/types.yaml#/definitions/phandle - - phy-3p0-supply: - description: - One of USB PHY's power supply. Can be used to keep a good signal - quality. - - fsl,tx-cal-45-dn-ohms: - description: - Resistance (in ohms) of switchable high-speed trimming resistor - connected in parallel with the 45 ohm resistor that terminates - the DN output signal. - minimum: 35 - maximum: 54 - default: 45 - - fsl,tx-cal-45-dp-ohms: - description: - Resistance (in ohms) of switchable high-speed trimming resistor - connected in parallel with the 45 ohm resistor that terminates - the DP output signal. - minimum: 35 - maximum: 54 - default: 45 - - fsl,tx-d-cal: - description: - Current trimming value (as a percentage) of the 17.78 mA TX - reference current. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 79 - maximum: 119 - default: 100 - - nxp,sim: - description: - The system integration module (SIM) provides system control and chip - configuration registers. - $ref: /schemas/types.yaml#/definitions/phandle - -required: - - compatible - - reg - - clocks - -allOf: - - if: - properties: - compatible: - oneOf: - - enum: - - fsl,imx6q-usbphy - - fsl,imx6sl-usbphy - - fsl,imx6sx-usbphy - - fsl,imx6sll-usbphy - - fsl,vf610-usbphy - - items: - - const: fsl,imx6ul-usbphy - - const: fsl,imx23-usbphy - then: - required: - - fsl,anatop - - - if: - properties: - compatible: - const: fsl,imx7ulp-usbphy - then: - required: - - nxp,sim - else: - properties: - nxp,sim: false - -additionalProperties: false - -examples: - - | - #include - #include - - usbphy1: usb-phy@20c9000 { - compatible = "fsl,imx6q-usbphy", "fsl,imx23-usbphy"; - reg = <0x020c9000 0x1000>; - clocks = <&clks IMX6QDL_CLK_USBPHY1>; - interrupts = ; - fsl,anatop = <&anatop>; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/fsl,mxs-usbphy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale MXS USB Phy Device + +maintainers: + - Xu Yang + +properties: + compatible: + oneOf: + - enum: + - fsl,imx23-usbphy + - fsl,imx7ulp-usbphy + - fsl,vf610-usbphy + - items: + - enum: + - fsl,imx28-usbphy + - fsl,imx6ul-usbphy + - fsl,imx6sl-usbphy + - fsl,imx6sx-usbphy + - fsl,imx6q-usbphy + - const: fsl,imx23-usbphy + - items: + - const: fsl,imx6sll-usbphy + - const: fsl,imx6ul-usbphy + - const: fsl,imx23-usbphy + - items: + - enum: + - fsl,imx8dxl-usbphy + - fsl,imx8qm-usbphy + - fsl,imx8ulp-usbphy + - const: fsl,imx7ulp-usbphy + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + '#phy-cells': + const: 0 + + power-domains: + maxItems: 1 + + fsl,anatop: + description: + phandle for anatop register, it is only for imx6 SoC series. + $ref: /schemas/types.yaml#/definitions/phandle + + phy-3p0-supply: + description: + One of USB PHY's power supply. Can be used to keep a good signal + quality. + + fsl,tx-cal-45-dn-ohms: + description: + Resistance (in ohms) of switchable high-speed trimming resistor + connected in parallel with the 45 ohm resistor that terminates + the DN output signal. + minimum: 35 + maximum: 54 + default: 45 + + fsl,tx-cal-45-dp-ohms: + description: + Resistance (in ohms) of switchable high-speed trimming resistor + connected in parallel with the 45 ohm resistor that terminates + the DP output signal. + minimum: 35 + maximum: 54 + default: 45 + + fsl,tx-d-cal: + description: + Current trimming value (as a percentage) of the 17.78 mA TX + reference current. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 79 + maximum: 119 + default: 100 + + nxp,sim: + description: + The system integration module (SIM) provides system control and chip + configuration registers. + $ref: /schemas/types.yaml#/definitions/phandle + +required: + - compatible + - reg + - clocks + +allOf: + - if: + properties: + compatible: + oneOf: + - enum: + - fsl,imx6q-usbphy + - fsl,imx6sl-usbphy + - fsl,imx6sx-usbphy + - fsl,imx6sll-usbphy + - fsl,vf610-usbphy + - items: + - const: fsl,imx6ul-usbphy + - const: fsl,imx23-usbphy + then: + required: + - fsl,anatop + + - if: + properties: + compatible: + const: fsl,imx7ulp-usbphy + then: + required: + - nxp,sim + else: + properties: + nxp,sim: false + +additionalProperties: false + +examples: + - | + #include + #include + + usbphy1: usb-phy@20c9000 { + compatible = "fsl,imx6q-usbphy", "fsl,imx23-usbphy"; + reg = <0x020c9000 0x1000>; + clocks = <&clks IMX6QDL_CLK_USBPHY1>; + interrupts = ; + fsl,anatop = <&anatop>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/phy-cadence-sierra.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/phy-cadence-sierra.yaml index 81ca395d1..37f028f7a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/phy-cadence-sierra.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/phy-cadence-sierra.yaml @@ -1,166 +1,166 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/phy/phy-cadence-sierra.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Cadence Sierra PHY - -description: - This binding describes the Cadence Sierra PHY. Sierra PHY supports multilink - multiprotocol combinations including protocols such as PCIe, USB etc. - -maintainers: - - Swapnil Jakhade - - Yuti Amonkar - -properties: - compatible: - enum: - - cdns,sierra-phy-t0 - - ti,sierra-phy-t0 - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - - '#clock-cells': - const: 1 - - resets: - minItems: 1 - items: - - description: Sierra PHY reset. - - description: Sierra APB reset. This is optional. - - reset-names: - minItems: 1 - items: - - const: sierra_reset - - const: sierra_apb - - reg: - maxItems: 1 - description: - Offset of the Sierra PHY configuration registers. - - reg-names: - const: serdes - - clocks: - minItems: 2 - maxItems: 4 - - clock-names: - minItems: 2 - items: - - const: cmn_refclk_dig_div - - const: cmn_refclk1_dig_div - - const: pll0_refclk - - const: pll1_refclk - - cdns,autoconf: - type: boolean - description: - A boolean property whose presence indicates that the PHY registers will be - configured by hardware. If not present, all sub-node optional properties - must be provided. - -patternProperties: - '^phy@[0-9a-f]$': - type: object - description: - Each group of PHY lanes with a single master lane should be represented as - a sub-node. Note that the actual configuration of each lane is determined - by hardware strapping, and must match the configuration specified here. - properties: - reg: - description: - The master lane number. This is the lowest numbered lane in the lane group. - minimum: 0 - maximum: 15 - - resets: - minItems: 1 - maxItems: 4 - description: - Contains list of resets, one per lane, to get all the link lanes out of reset. - - "#phy-cells": - const: 0 - - cdns,phy-type: - description: - Specifies the type of PHY for which the group of PHY lanes is used. - Refer include/dt-bindings/phy/phy.h. Constants from the header should be used. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [2, 4] - - cdns,num-lanes: - description: - Number of lanes in this group. The group is made up of consecutive lanes. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 1 - maximum: 16 - - cdns,ssc-mode: - description: - Specifies the Spread Spectrum Clocking mode used. It can be NO_SSC, - EXTERNAL_SSC or INTERNAL_SSC. - Refer include/dt-bindings/phy/phy-cadence.h for the constants to be used. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1, 2] - default: 1 - - required: - - reg - - resets - - "#phy-cells" - - additionalProperties: false - -required: - - compatible - - "#address-cells" - - "#size-cells" - - reg - - resets - - reset-names - -additionalProperties: false - -examples: - - | - #include - - bus { - #address-cells = <2>; - #size-cells = <2>; - - sierra-phy@fd240000 { - compatible = "cdns,sierra-phy-t0"; - reg = <0x0 0xfd240000 0x0 0x40000>; - resets = <&phyrst 0>, <&phyrst 1>; - reset-names = "sierra_reset", "sierra_apb"; - clocks = <&cmn_refclk_dig_div>, <&cmn_refclk1_dig_div>; - clock-names = "cmn_refclk_dig_div", "cmn_refclk1_dig_div"; - #address-cells = <1>; - #size-cells = <0>; - pcie0_phy0: phy@0 { - reg = <0>; - resets = <&phyrst 2>; - cdns,num-lanes = <2>; - #phy-cells = <0>; - cdns,phy-type = ; - }; - pcie0_phy1: phy@2 { - reg = <2>; - resets = <&phyrst 4>; - cdns,num-lanes = <1>; - #phy-cells = <0>; - cdns,phy-type = ; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/phy-cadence-sierra.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cadence Sierra PHY + +description: + This binding describes the Cadence Sierra PHY. Sierra PHY supports multilink + multiprotocol combinations including protocols such as PCIe, USB etc. + +maintainers: + - Swapnil Jakhade + - Yuti Amonkar + +properties: + compatible: + enum: + - cdns,sierra-phy-t0 + - ti,sierra-phy-t0 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + '#clock-cells': + const: 1 + + resets: + minItems: 1 + items: + - description: Sierra PHY reset. + - description: Sierra APB reset. This is optional. + + reset-names: + minItems: 1 + items: + - const: sierra_reset + - const: sierra_apb + + reg: + maxItems: 1 + description: + Offset of the Sierra PHY configuration registers. + + reg-names: + const: serdes + + clocks: + minItems: 2 + maxItems: 4 + + clock-names: + minItems: 2 + items: + - const: cmn_refclk_dig_div + - const: cmn_refclk1_dig_div + - const: pll0_refclk + - const: pll1_refclk + + cdns,autoconf: + type: boolean + description: + A boolean property whose presence indicates that the PHY registers will be + configured by hardware. If not present, all sub-node optional properties + must be provided. + +patternProperties: + '^phy@[0-9a-f]$': + type: object + description: + Each group of PHY lanes with a single master lane should be represented as + a sub-node. Note that the actual configuration of each lane is determined + by hardware strapping, and must match the configuration specified here. + properties: + reg: + description: + The master lane number. This is the lowest numbered lane in the lane group. + minimum: 0 + maximum: 15 + + resets: + minItems: 1 + maxItems: 4 + description: + Contains list of resets, one per lane, to get all the link lanes out of reset. + + "#phy-cells": + const: 0 + + cdns,phy-type: + description: + Specifies the type of PHY for which the group of PHY lanes is used. + Refer include/dt-bindings/phy/phy.h. Constants from the header should be used. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [2, 4] + + cdns,num-lanes: + description: + Number of lanes in this group. The group is made up of consecutive lanes. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + maximum: 16 + + cdns,ssc-mode: + description: + Specifies the Spread Spectrum Clocking mode used. It can be NO_SSC, + EXTERNAL_SSC or INTERNAL_SSC. + Refer include/dt-bindings/phy/phy-cadence.h for the constants to be used. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2] + default: 1 + + required: + - reg + - resets + - "#phy-cells" + + additionalProperties: false + +required: + - compatible + - "#address-cells" + - "#size-cells" + - reg + - resets + - reset-names + +additionalProperties: false + +examples: + - | + #include + + bus { + #address-cells = <2>; + #size-cells = <2>; + + sierra-phy@fd240000 { + compatible = "cdns,sierra-phy-t0"; + reg = <0x0 0xfd240000 0x0 0x40000>; + resets = <&phyrst 0>, <&phyrst 1>; + reset-names = "sierra_reset", "sierra_apb"; + clocks = <&cmn_refclk_dig_div>, <&cmn_refclk1_dig_div>; + clock-names = "cmn_refclk_dig_div", "cmn_refclk1_dig_div"; + #address-cells = <1>; + #size-cells = <0>; + pcie0_phy0: phy@0 { + reg = <0>; + resets = <&phyrst 2>; + cdns,num-lanes = <2>; + #phy-cells = <0>; + cdns,phy-type = ; + }; + pcie0_phy1: phy@2 { + reg = <2>; + resets = <&phyrst 4>; + cdns,num-lanes = <1>; + #phy-cells = <0>; + cdns,phy-type = ; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/phy-miphy28lp.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/phy-miphy28lp.txt index 3429a5bda..89caa885d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/phy-miphy28lp.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/phy-miphy28lp.txt @@ -1,117 +1,117 @@ -STMicroelectronics STi MIPHY28LP PHY binding -============================================ - -This binding describes a miphy device that is used to control PHY hardware -for SATA, PCIe or USB3. - -Required properties (controller (parent) node): -- compatible : Should be "st,miphy28lp-phy". -- st,syscfg : Should be a phandle of the system configuration register group - which contain the SATA, PCIe or USB3 mode setting bits. - -Required nodes : A sub-node is required for each channel the controller - provides. Address range information including the usual - 'reg' and 'reg-names' properties are used inside these - nodes to describe the controller's topology. These nodes - are translated by the driver's .xlate() function. - -Required properties (port (child) node): -- #phy-cells : Should be 1 (See second example) - Cell after port phandle is device type from: - - PHY_TYPE_SATA - - PHY_TYPE_PCI - - PHY_TYPE_USB3 -- reg : Address and length of the register set for the device. -- reg-names : The names of the register addresses corresponding to the registers - filled in "reg". It can also contain the offset of the system configuration - registers used as glue-logic to setup the device for SATA/PCIe or USB3 - devices. -- st,syscfg : Offset of the parent configuration register. -- resets : phandle to the parent reset controller. -- reset-names : Associated name must be "miphy-sw-rst". - -Optional properties (port (child) node): -- st,osc-rdy : to check the MIPHY0_OSC_RDY status in the glue-logic. This - is not available in all the MiPHY. For example, for STiH407, only the - MiPHY0 has this bit. -- st,osc-force-ext : to select the external oscillator. This can change from - different MiPHY inside the same SoC. -- st,sata_gen : to select which SATA_SPDMODE has to be set in the SATA system config - register. -- st,px_rx_pol_inv : to invert polarity of RXn/RXp (respectively negative line and positive - line). -- st,scc-on : enable ssc to reduce effects of EMI (only for sata or PCIe). -- st,tx-impedance-comp : to compensate tx impedance avoiding out of range values. - -example: - - miphy28lp_phy: miphy28lp@9b22000 { - compatible = "st,miphy28lp-phy"; - st,syscfg = <&syscfg_core>; - #address-cells = <1>; - #size-cells = <1>; - ranges; - - phy_port0: port@9b22000 { - reg = <0x9b22000 0xff>, - <0x9b09000 0xff>, - <0x9b04000 0xff>; - reg-names = "sata-up", - "pcie-up", - "pipew"; - - st,syscfg = <0x114 0x818 0xe0 0xec>; - #phy-cells = <1>; - st,osc-rdy; - reset-names = "miphy-sw-rst"; - resets = <&softreset STIH407_MIPHY0_SOFTRESET>; - }; - - phy_port1: port@9b2a000 { - reg = <0x9b2a000 0xff>, - <0x9b19000 0xff>, - <0x9b14000 0xff>; - reg-names = "sata-up", - "pcie-up", - "pipew"; - - st,syscfg = <0x118 0x81c 0xe4 0xf0>; - - #phy-cells = <1>; - st,osc-force-ext; - reset-names = "miphy-sw-rst"; - resets = <&softreset STIH407_MIPHY1_SOFTRESET>; - }; - - phy_port2: port@8f95000 { - reg = <0x8f95000 0xff>, - <0x8f90000 0xff>; - reg-names = "pipew", - "usb3-up"; - - st,syscfg = <0x11c 0x820>; - - #phy-cells = <1>; - reset-names = "miphy-sw-rst"; - resets = <&softreset STIH407_MIPHY2_SOFTRESET>; - }; - }; - - -Specifying phy control of devices -================================= - -Device nodes should specify the configuration required in their "phys" -property, containing a phandle to the miphy device node and an index -specifying which configuration to use, as described in phy-bindings.txt. - -example: - sata0: sata@9b20000 { - ... - phys = <&phy_port0 PHY_TYPE_SATA>; - ... - }; - -Macro definitions for the supported miphy configuration can be found in: - -include/dt-bindings/phy/phy.h +STMicroelectronics STi MIPHY28LP PHY binding +============================================ + +This binding describes a miphy device that is used to control PHY hardware +for SATA, PCIe or USB3. + +Required properties (controller (parent) node): +- compatible : Should be "st,miphy28lp-phy". +- st,syscfg : Should be a phandle of the system configuration register group + which contain the SATA, PCIe or USB3 mode setting bits. + +Required nodes : A sub-node is required for each channel the controller + provides. Address range information including the usual + 'reg' and 'reg-names' properties are used inside these + nodes to describe the controller's topology. These nodes + are translated by the driver's .xlate() function. + +Required properties (port (child) node): +- #phy-cells : Should be 1 (See second example) + Cell after port phandle is device type from: + - PHY_TYPE_SATA + - PHY_TYPE_PCI + - PHY_TYPE_USB3 +- reg : Address and length of the register set for the device. +- reg-names : The names of the register addresses corresponding to the registers + filled in "reg". It can also contain the offset of the system configuration + registers used as glue-logic to setup the device for SATA/PCIe or USB3 + devices. +- st,syscfg : Offset of the parent configuration register. +- resets : phandle to the parent reset controller. +- reset-names : Associated name must be "miphy-sw-rst". + +Optional properties (port (child) node): +- st,osc-rdy : to check the MIPHY0_OSC_RDY status in the glue-logic. This + is not available in all the MiPHY. For example, for STiH407, only the + MiPHY0 has this bit. +- st,osc-force-ext : to select the external oscillator. This can change from + different MiPHY inside the same SoC. +- st,sata_gen : to select which SATA_SPDMODE has to be set in the SATA system config + register. +- st,px_rx_pol_inv : to invert polarity of RXn/RXp (respectively negative line and positive + line). +- st,scc-on : enable ssc to reduce effects of EMI (only for sata or PCIe). +- st,tx-impedance-comp : to compensate tx impedance avoiding out of range values. + +example: + + miphy28lp_phy: miphy28lp@9b22000 { + compatible = "st,miphy28lp-phy"; + st,syscfg = <&syscfg_core>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + phy_port0: port@9b22000 { + reg = <0x9b22000 0xff>, + <0x9b09000 0xff>, + <0x9b04000 0xff>; + reg-names = "sata-up", + "pcie-up", + "pipew"; + + st,syscfg = <0x114 0x818 0xe0 0xec>; + #phy-cells = <1>; + st,osc-rdy; + reset-names = "miphy-sw-rst"; + resets = <&softreset STIH407_MIPHY0_SOFTRESET>; + }; + + phy_port1: port@9b2a000 { + reg = <0x9b2a000 0xff>, + <0x9b19000 0xff>, + <0x9b14000 0xff>; + reg-names = "sata-up", + "pcie-up", + "pipew"; + + st,syscfg = <0x118 0x81c 0xe4 0xf0>; + + #phy-cells = <1>; + st,osc-force-ext; + reset-names = "miphy-sw-rst"; + resets = <&softreset STIH407_MIPHY1_SOFTRESET>; + }; + + phy_port2: port@8f95000 { + reg = <0x8f95000 0xff>, + <0x8f90000 0xff>; + reg-names = "pipew", + "usb3-up"; + + st,syscfg = <0x11c 0x820>; + + #phy-cells = <1>; + reset-names = "miphy-sw-rst"; + resets = <&softreset STIH407_MIPHY2_SOFTRESET>; + }; + }; + + +Specifying phy control of devices +================================= + +Device nodes should specify the configuration required in their "phys" +property, containing a phandle to the miphy device node and an index +specifying which configuration to use, as described in phy-bindings.txt. + +example: + sata0: sata@9b20000 { + ... + phys = <&phy_port0 PHY_TYPE_SATA>; + ... + }; + +Macro definitions for the supported miphy configuration can be found in: + +include/dt-bindings/phy/phy.h diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml index 38e6c3c6a..d3cd79978 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/phy-rockchip-naneng-combphy.yaml @@ -1,142 +1,142 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/phy/phy-rockchip-naneng-combphy.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Rockchip SoC Naneng Combo Phy - -maintainers: - - Heiko Stuebner - -properties: - compatible: - enum: - - rockchip,rk3568-naneng-combphy - - rockchip,rk3588-naneng-combphy - - reg: - maxItems: 1 - - clocks: - items: - - description: reference clock - - description: apb clock - - description: pipe clock - - clock-names: - items: - - const: ref - - const: apb - - const: pipe - - resets: - minItems: 1 - maxItems: 2 - - reset-names: - minItems: 1 - items: - - const: phy - - const: apb - - rockchip,enable-ssc: - type: boolean - description: - The option SSC can be enabled for U3, SATA and PCIE. - Most commercially available platforms use SSC to reduce EMI. - - rockchip,ext-refclk: - type: boolean - description: - Many PCIe connections, especially backplane connections, - require a synchronous reference clock between the two link partners. - To achieve this a common clock source, referred to as REFCLK in - the PCI Express Card Electromechanical Specification, - should be used by both ends of the PCIe link. - In PCIe mode one can choose to use an internal or an external reference - clock. - By default the internal clock is selected. The PCIe PHY provides a 100MHz - differential clock output(optional with SSC) for system applications. - When selecting this option an externally 100MHz differential - reference clock needs to be provided to the PCIe PHY. - - rockchip,pipe-grf: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Some additional phy settings are accessed through GRF regs. - - rockchip,pipe-phy-grf: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Some additional pipe settings are accessed through GRF regs. - - "#phy-cells": - const: 1 - -required: - - compatible - - reg - - clocks - - clock-names - - resets - - rockchip,pipe-grf - - rockchip,pipe-phy-grf - - "#phy-cells" - -allOf: - - if: - properties: - compatible: - contains: - const: rockchip,rk3568-naneng-combphy - then: - properties: - resets: - maxItems: 1 - reset-names: - maxItems: 1 - - if: - properties: - compatible: - contains: - const: rockchip,rk3588-naneng-combphy - then: - properties: - resets: - minItems: 2 - reset-names: - minItems: 2 - required: - - reset-names - -additionalProperties: false - -examples: - - | - #include - - pipegrf: syscon@fdc50000 { - compatible = "rockchip,rk3568-pipe-grf", "syscon"; - reg = <0xfdc50000 0x1000>; - }; - - pipe_phy_grf0: syscon@fdc70000 { - compatible = "rockchip,rk3568-pipe-phy-grf", "syscon"; - reg = <0xfdc70000 0x1000>; - }; - - combphy0: phy@fe820000 { - compatible = "rockchip,rk3568-naneng-combphy"; - reg = <0xfe820000 0x100>; - clocks = <&pmucru CLK_PCIEPHY0_REF>, - <&cru PCLK_PIPEPHY0>, - <&cru PCLK_PIPE>; - clock-names = "ref", "apb", "pipe"; - assigned-clocks = <&pmucru CLK_PCIEPHY0_REF>; - assigned-clock-rates = <100000000>; - resets = <&cru SRST_PIPEPHY0>; - rockchip,pipe-grf = <&pipegrf>; - rockchip,pipe-phy-grf = <&pipe_phy_grf0>; - #phy-cells = <1>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/phy-rockchip-naneng-combphy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip SoC Naneng Combo Phy + +maintainers: + - Heiko Stuebner + +properties: + compatible: + enum: + - rockchip,rk3568-naneng-combphy + - rockchip,rk3588-naneng-combphy + + reg: + maxItems: 1 + + clocks: + items: + - description: reference clock + - description: apb clock + - description: pipe clock + + clock-names: + items: + - const: ref + - const: apb + - const: pipe + + resets: + minItems: 1 + maxItems: 2 + + reset-names: + minItems: 1 + items: + - const: phy + - const: apb + + rockchip,enable-ssc: + type: boolean + description: + The option SSC can be enabled for U3, SATA and PCIE. + Most commercially available platforms use SSC to reduce EMI. + + rockchip,ext-refclk: + type: boolean + description: + Many PCIe connections, especially backplane connections, + require a synchronous reference clock between the two link partners. + To achieve this a common clock source, referred to as REFCLK in + the PCI Express Card Electromechanical Specification, + should be used by both ends of the PCIe link. + In PCIe mode one can choose to use an internal or an external reference + clock. + By default the internal clock is selected. The PCIe PHY provides a 100MHz + differential clock output(optional with SSC) for system applications. + When selecting this option an externally 100MHz differential + reference clock needs to be provided to the PCIe PHY. + + rockchip,pipe-grf: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Some additional phy settings are accessed through GRF regs. + + rockchip,pipe-phy-grf: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Some additional pipe settings are accessed through GRF regs. + + "#phy-cells": + const: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - rockchip,pipe-grf + - rockchip,pipe-phy-grf + - "#phy-cells" + +allOf: + - if: + properties: + compatible: + contains: + const: rockchip,rk3568-naneng-combphy + then: + properties: + resets: + maxItems: 1 + reset-names: + maxItems: 1 + - if: + properties: + compatible: + contains: + const: rockchip,rk3588-naneng-combphy + then: + properties: + resets: + minItems: 2 + reset-names: + minItems: 2 + required: + - reset-names + +additionalProperties: false + +examples: + - | + #include + + pipegrf: syscon@fdc50000 { + compatible = "rockchip,rk3568-pipe-grf", "syscon"; + reg = <0xfdc50000 0x1000>; + }; + + pipe_phy_grf0: syscon@fdc70000 { + compatible = "rockchip,rk3568-pipe-phy-grf", "syscon"; + reg = <0xfdc70000 0x1000>; + }; + + combphy0: phy@fe820000 { + compatible = "rockchip,rk3568-naneng-combphy"; + reg = <0xfe820000 0x100>; + clocks = <&pmucru CLK_PCIEPHY0_REF>, + <&cru PCLK_PIPEPHY0>, + <&cru PCLK_PIPE>; + clock-names = "ref", "apb", "pipe"; + assigned-clocks = <&pmucru CLK_PCIEPHY0_REF>; + assigned-clock-rates = <100000000>; + resets = <&cru SRST_PIPEPHY0>; + rockchip,pipe-grf = <&pipegrf>; + rockchip,pipe-phy-grf = <&pipe_phy_grf0>; + #phy-cells = <1>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/phy-rockchip-usbdp.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/phy-rockchip-usbdp.yaml index 656a7bb86..1f1f8863b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/phy-rockchip-usbdp.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/phy-rockchip-usbdp.yaml @@ -1,148 +1,148 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/phy/phy-rockchip-usbdp.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Rockchip USBDP Combo PHY with Samsung IP block - -maintainers: - - Frank Wang - - Zhang Yubing - -properties: - compatible: - enum: - - rockchip,rk3588-usbdp-phy - - reg: - maxItems: 1 - - "#phy-cells": - description: | - Cell allows setting the type of the PHY. Possible values are: - - PHY_TYPE_USB3 - - PHY_TYPE_DP - const: 1 - - clocks: - maxItems: 4 - - clock-names: - items: - - const: refclk - - const: immortal - - const: pclk - - const: utmi - - resets: - maxItems: 5 - - reset-names: - items: - - const: init - - const: cmn - - const: lane - - const: pcs_apb - - const: pma_apb - - rockchip,dp-lane-mux: - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 2 - maxItems: 4 - items: - maximum: 3 - description: - An array of physical Type-C lanes indexes. Position of an entry - determines the DisplayPort (DP) lane index, while the value of an entry - indicates physical Type-C lane. The supported DP lanes number are 2 or 4. - e.g. for 2 lanes DP lanes map, we could have "rockchip,dp-lane-mux = <2, - 3>;", assuming DP lane0 on Type-C phy lane2, DP lane1 on Type-C phy - lane3. For 4 lanes DP lanes map, we could have "rockchip,dp-lane-mux = - <0, 1, 2, 3>;", assuming DP lane0 on Type-C phy lane0, DP lane1 on Type-C - phy lane1, DP lane2 on Type-C phy lane2, DP lane3 on Type-C phy lane3. If - DP lanes are mapped by DisplayPort Alt mode, this property is not needed. - - rockchip,u2phy-grf: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Phandle to the syscon managing the 'usb2 phy general register files'. - - rockchip,usb-grf: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Phandle to the syscon managing the 'usb general register files'. - - rockchip,usbdpphy-grf: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Phandle to the syscon managing the 'usbdp phy general register files'. - - rockchip,vo-grf: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Phandle to the syscon managing the 'video output general register files'. - When select the DP lane mapping will request its phandle. - - sbu1-dc-gpios: - description: - GPIO connected to the SBU1 line of the USB-C connector via a big resistor - (~100K) to apply a DC offset for signalling the connector orientation. - maxItems: 1 - - sbu2-dc-gpios: - description: - GPIO connected to the SBU2 line of the USB-C connector via a big resistor - (~100K) to apply a DC offset for signalling the connector orientation. - maxItems: 1 - - orientation-switch: - description: Flag the port as possible handler of orientation switching - type: boolean - - mode-switch: - description: Flag the port as possible handler of altmode switching - type: boolean - - port: - $ref: /schemas/graph.yaml#/properties/port - description: - A port node to link the PHY to a TypeC controller for the purpose of - handling orientation switching. - -required: - - compatible - - reg - - clocks - - clock-names - - resets - - reset-names - - "#phy-cells" - -additionalProperties: false - -examples: - - | - #include - #include - - usbdp_phy0: phy@fed80000 { - compatible = "rockchip,rk3588-usbdp-phy"; - reg = <0xfed80000 0x10000>; - #phy-cells = <1>; - clocks = <&cru CLK_USBDPPHY_MIPIDCPPHY_REF>, - <&cru CLK_USBDP_PHY0_IMMORTAL>, - <&cru PCLK_USBDPPHY0>, - <&u2phy0>; - clock-names = "refclk", "immortal", "pclk", "utmi"; - resets = <&cru SRST_USBDP_COMBO_PHY0_INIT>, - <&cru SRST_USBDP_COMBO_PHY0_CMN>, - <&cru SRST_USBDP_COMBO_PHY0_LANE>, - <&cru SRST_USBDP_COMBO_PHY0_PCS>, - <&cru SRST_P_USBDPPHY0>; - reset-names = "init", "cmn", "lane", "pcs_apb", "pma_apb"; - rockchip,u2phy-grf = <&usb2phy0_grf>; - rockchip,usb-grf = <&usb_grf>; - rockchip,usbdpphy-grf = <&usbdpphy0_grf>; - rockchip,vo-grf = <&vo0_grf>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/phy-rockchip-usbdp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip USBDP Combo PHY with Samsung IP block + +maintainers: + - Frank Wang + - Zhang Yubing + +properties: + compatible: + enum: + - rockchip,rk3588-usbdp-phy + + reg: + maxItems: 1 + + "#phy-cells": + description: | + Cell allows setting the type of the PHY. Possible values are: + - PHY_TYPE_USB3 + - PHY_TYPE_DP + const: 1 + + clocks: + maxItems: 4 + + clock-names: + items: + - const: refclk + - const: immortal + - const: pclk + - const: utmi + + resets: + maxItems: 5 + + reset-names: + items: + - const: init + - const: cmn + - const: lane + - const: pcs_apb + - const: pma_apb + + rockchip,dp-lane-mux: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 2 + maxItems: 4 + items: + maximum: 3 + description: + An array of physical Type-C lanes indexes. Position of an entry + determines the DisplayPort (DP) lane index, while the value of an entry + indicates physical Type-C lane. The supported DP lanes number are 2 or 4. + e.g. for 2 lanes DP lanes map, we could have "rockchip,dp-lane-mux = <2, + 3>;", assuming DP lane0 on Type-C phy lane2, DP lane1 on Type-C phy + lane3. For 4 lanes DP lanes map, we could have "rockchip,dp-lane-mux = + <0, 1, 2, 3>;", assuming DP lane0 on Type-C phy lane0, DP lane1 on Type-C + phy lane1, DP lane2 on Type-C phy lane2, DP lane3 on Type-C phy lane3. If + DP lanes are mapped by DisplayPort Alt mode, this property is not needed. + + rockchip,u2phy-grf: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the syscon managing the 'usb2 phy general register files'. + + rockchip,usb-grf: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the syscon managing the 'usb general register files'. + + rockchip,usbdpphy-grf: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the syscon managing the 'usbdp phy general register files'. + + rockchip,vo-grf: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the syscon managing the 'video output general register files'. + When select the DP lane mapping will request its phandle. + + sbu1-dc-gpios: + description: + GPIO connected to the SBU1 line of the USB-C connector via a big resistor + (~100K) to apply a DC offset for signalling the connector orientation. + maxItems: 1 + + sbu2-dc-gpios: + description: + GPIO connected to the SBU2 line of the USB-C connector via a big resistor + (~100K) to apply a DC offset for signalling the connector orientation. + maxItems: 1 + + orientation-switch: + description: Flag the port as possible handler of orientation switching + type: boolean + + mode-switch: + description: Flag the port as possible handler of altmode switching + type: boolean + + port: + $ref: /schemas/graph.yaml#/properties/port + description: + A port node to link the PHY to a TypeC controller for the purpose of + handling orientation switching. + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - reset-names + - "#phy-cells" + +additionalProperties: false + +examples: + - | + #include + #include + + usbdp_phy0: phy@fed80000 { + compatible = "rockchip,rk3588-usbdp-phy"; + reg = <0xfed80000 0x10000>; + #phy-cells = <1>; + clocks = <&cru CLK_USBDPPHY_MIPIDCPPHY_REF>, + <&cru CLK_USBDP_PHY0_IMMORTAL>, + <&cru PCLK_USBDPPHY0>, + <&u2phy0>; + clock-names = "refclk", "immortal", "pclk", "utmi"; + resets = <&cru SRST_USBDP_COMBO_PHY0_INIT>, + <&cru SRST_USBDP_COMBO_PHY0_CMN>, + <&cru SRST_USBDP_COMBO_PHY0_LANE>, + <&cru SRST_USBDP_COMBO_PHY0_PCS>, + <&cru SRST_P_USBDPPHY0>; + reset-names = "init", "cmn", "lane", "pcs_apb", "pma_apb"; + rockchip,u2phy-grf = <&usb2phy0_grf>; + rockchip,usb-grf = <&usb_grf>; + rockchip,usbdpphy-grf = <&usbdpphy0_grf>; + rockchip,vo-grf = <&vo0_grf>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml index fe6db6ab3..4e710ef75 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml @@ -1,189 +1,189 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/phy/qcom,msm8996-qmp-pcie-phy.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm QMP PHY controller (MSM8996 PCIe) - -maintainers: - - Vinod Koul - -description: - QMP PHY controller supports physical layer functionality for a number of - controllers on Qualcomm chipsets, such as, PCIe, UFS, and USB. - -properties: - compatible: - const: qcom,msm8996-qmp-pcie-phy - - reg: - items: - - description: serdes - - "#address-cells": - enum: [ 1, 2 ] - - "#size-cells": - enum: [ 1, 2 ] - - ranges: true - - clocks: - maxItems: 3 - - clock-names: - items: - - const: aux - - const: cfg_ahb - - const: ref - - resets: - maxItems: 3 - - reset-names: - items: - - const: phy - - const: common - - const: cfg - - vdda-phy-supply: true - - vdda-pll-supply: true - - vddp-ref-clk-supply: true - -patternProperties: - "^phy@[0-9a-f]+$": - type: object - description: one child node per PHY provided by this block - properties: - reg: - items: - - description: TX - - description: RX - - description: PCS - - clocks: - items: - - description: PIPE clock - - clock-names: - deprecated: true - items: - - enum: - - pipe0 - - pipe1 - - pipe2 - - resets: - items: - - description: PHY reset - - reset-names: - deprecated: true - items: - - enum: - - lane0 - - lane1 - - lane2 - - "#clock-cells": - const: 0 - - clock-output-names: - maxItems: 1 - - "#phy-cells": - const: 0 - - required: - - reg - - clocks - - resets - - "#clock-cells" - - clock-output-names - - "#phy-cells" - - additionalProperties: false - -required: - - compatible - - reg - - "#address-cells" - - "#size-cells" - - ranges - - clocks - - clock-names - - resets - - reset-names - - vdda-phy-supply - - vdda-pll-supply - -additionalProperties: false - -examples: - - | - #include - pcie_phy: phy-wrapper@34000 { - compatible = "qcom,msm8996-qmp-pcie-phy"; - reg = <0x34000 0x488>; - #address-cells = <1>; - #size-cells = <1>; - ranges = <0x0 0x34000 0x4000>; - - clocks = <&gcc GCC_PCIE_PHY_AUX_CLK>, - <&gcc GCC_PCIE_PHY_CFG_AHB_CLK>, - <&gcc GCC_PCIE_CLKREF_CLK>; - clock-names = "aux", "cfg_ahb", "ref"; - - resets = <&gcc GCC_PCIE_PHY_BCR>, - <&gcc GCC_PCIE_PHY_COM_BCR>, - <&gcc GCC_PCIE_PHY_COM_NOCSR_BCR>; - reset-names = "phy", "common", "cfg"; - - vdda-phy-supply = <&vreg_l28a_0p925>; - vdda-pll-supply = <&vreg_l12a_1p8>; - - pciephy_0: phy@1000 { - reg = <0x1000 0x130>, - <0x1200 0x200>, - <0x1400 0x1dc>; - - clocks = <&gcc GCC_PCIE_0_PIPE_CLK>; - resets = <&gcc GCC_PCIE_0_PHY_BCR>; - - #clock-cells = <0>; - clock-output-names = "pcie_0_pipe_clk_src"; - - #phy-cells = <0>; - }; - - pciephy_1: phy@2000 { - reg = <0x2000 0x130>, - <0x2200 0x200>, - <0x2400 0x1dc>; - - clocks = <&gcc GCC_PCIE_1_PIPE_CLK>; - resets = <&gcc GCC_PCIE_1_PHY_BCR>; - - #clock-cells = <0>; - clock-output-names = "pcie_1_pipe_clk_src"; - - #phy-cells = <0>; - }; - - pciephy_2: phy@3000 { - reg = <0x3000 0x130>, - <0x3200 0x200>, - <0x3400 0x1dc>; - - clocks = <&gcc GCC_PCIE_2_PIPE_CLK>; - resets = <&gcc GCC_PCIE_2_PHY_BCR>; - - #clock-cells = <0>; - clock-output-names = "pcie_2_pipe_clk_src"; - - #phy-cells = <0>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/qcom,msm8996-qmp-pcie-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm QMP PHY controller (MSM8996 PCIe) + +maintainers: + - Vinod Koul + +description: + QMP PHY controller supports physical layer functionality for a number of + controllers on Qualcomm chipsets, such as, PCIe, UFS, and USB. + +properties: + compatible: + const: qcom,msm8996-qmp-pcie-phy + + reg: + items: + - description: serdes + + "#address-cells": + enum: [ 1, 2 ] + + "#size-cells": + enum: [ 1, 2 ] + + ranges: true + + clocks: + maxItems: 3 + + clock-names: + items: + - const: aux + - const: cfg_ahb + - const: ref + + resets: + maxItems: 3 + + reset-names: + items: + - const: phy + - const: common + - const: cfg + + vdda-phy-supply: true + + vdda-pll-supply: true + + vddp-ref-clk-supply: true + +patternProperties: + "^phy@[0-9a-f]+$": + type: object + description: one child node per PHY provided by this block + properties: + reg: + items: + - description: TX + - description: RX + - description: PCS + + clocks: + items: + - description: PIPE clock + + clock-names: + deprecated: true + items: + - enum: + - pipe0 + - pipe1 + - pipe2 + + resets: + items: + - description: PHY reset + + reset-names: + deprecated: true + items: + - enum: + - lane0 + - lane1 + - lane2 + + "#clock-cells": + const: 0 + + clock-output-names: + maxItems: 1 + + "#phy-cells": + const: 0 + + required: + - reg + - clocks + - resets + - "#clock-cells" + - clock-output-names + - "#phy-cells" + + additionalProperties: false + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - ranges + - clocks + - clock-names + - resets + - reset-names + - vdda-phy-supply + - vdda-pll-supply + +additionalProperties: false + +examples: + - | + #include + pcie_phy: phy-wrapper@34000 { + compatible = "qcom,msm8996-qmp-pcie-phy"; + reg = <0x34000 0x488>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x34000 0x4000>; + + clocks = <&gcc GCC_PCIE_PHY_AUX_CLK>, + <&gcc GCC_PCIE_PHY_CFG_AHB_CLK>, + <&gcc GCC_PCIE_CLKREF_CLK>; + clock-names = "aux", "cfg_ahb", "ref"; + + resets = <&gcc GCC_PCIE_PHY_BCR>, + <&gcc GCC_PCIE_PHY_COM_BCR>, + <&gcc GCC_PCIE_PHY_COM_NOCSR_BCR>; + reset-names = "phy", "common", "cfg"; + + vdda-phy-supply = <&vreg_l28a_0p925>; + vdda-pll-supply = <&vreg_l12a_1p8>; + + pciephy_0: phy@1000 { + reg = <0x1000 0x130>, + <0x1200 0x200>, + <0x1400 0x1dc>; + + clocks = <&gcc GCC_PCIE_0_PIPE_CLK>; + resets = <&gcc GCC_PCIE_0_PHY_BCR>; + + #clock-cells = <0>; + clock-output-names = "pcie_0_pipe_clk_src"; + + #phy-cells = <0>; + }; + + pciephy_1: phy@2000 { + reg = <0x2000 0x130>, + <0x2200 0x200>, + <0x2400 0x1dc>; + + clocks = <&gcc GCC_PCIE_1_PIPE_CLK>; + resets = <&gcc GCC_PCIE_1_PHY_BCR>; + + #clock-cells = <0>; + clock-output-names = "pcie_1_pipe_clk_src"; + + #phy-cells = <0>; + }; + + pciephy_2: phy@3000 { + reg = <0x3000 0x130>, + <0x3200 0x200>, + <0x3400 0x1dc>; + + clocks = <&gcc GCC_PCIE_2_PIPE_CLK>; + resets = <&gcc GCC_PCIE_2_PHY_BCR>; + + #clock-cells = <0>; + clock-output-names = "pcie_2_pipe_clk_src"; + + #phy-cells = <0>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/qcom,msm8998-qmp-usb3-phy.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/qcom,msm8998-qmp-usb3-phy.yaml index d58bdea93..f1f4e4f83 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/qcom,msm8998-qmp-usb3-phy.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/qcom,msm8998-qmp-usb3-phy.yaml @@ -1,184 +1,184 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/phy/qcom,msm8998-qmp-usb3-phy.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm QMP PHY controller (USB, MSM8998) - -maintainers: - - Vinod Koul - -description: - The QMP PHY controller supports physical layer functionality for USB-C on - several Qualcomm chipsets. - -properties: - compatible: - enum: - - qcom,msm8998-qmp-usb3-phy - - qcom,qcm2290-qmp-usb3-phy - - qcom,sdm660-qmp-usb3-phy - - qcom,sm6115-qmp-usb3-phy - - reg: - maxItems: 1 - - clocks: - maxItems: 4 - - clock-names: - maxItems: 4 - - resets: - maxItems: 2 - - reset-names: - items: - - const: phy - - const: phy_phy - - vdda-phy-supply: true - - vdda-pll-supply: true - - "#clock-cells": - const: 0 - - clock-output-names: - maxItems: 1 - - "#phy-cells": - const: 0 - - orientation-switch: - description: - Flag the PHY as possible handler of USB Type-C orientation switching - type: boolean - - qcom,tcsr-reg: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - - items: - - description: phandle to TCSR hardware block - - description: offset of the VLS CLAMP register - description: Clamp register present in the TCSR - - ports: - $ref: /schemas/graph.yaml#/properties/ports - properties: - port@0: - $ref: /schemas/graph.yaml#/properties/port - description: Output endpoint of the PHY - - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: Incoming endpoint from the USB controller - -required: - - compatible - - reg - - clocks - - clock-names - - resets - - reset-names - - vdda-phy-supply - - vdda-pll-supply - - "#clock-cells" - - clock-output-names - - "#phy-cells" - - qcom,tcsr-reg - -allOf: - - if: - properties: - compatible: - contains: - enum: - - qcom,msm8998-qmp-usb3-phy - - qcom,sdm660-qmp-usb3-phy - then: - properties: - clocks: - maxItems: 4 - clock-names: - items: - - const: aux - - const: ref - - const: cfg_ahb - - const: pipe - - - if: - properties: - compatible: - contains: - enum: - - qcom,qcm2290-qmp-usb3-phy - - qcom,sm6115-qmp-usb3-phy - then: - properties: - clocks: - maxItems: 4 - clock-names: - items: - - const: cfg_ahb - - const: ref - - const: com_aux - - const: pipe - -additionalProperties: false - -examples: - - | - #include - #include - - phy@c010000 { - compatible = "qcom,msm8998-qmp-usb3-phy"; - reg = <0x0c010000 0x1000>; - - clocks = <&gcc GCC_USB3_PHY_AUX_CLK>, - <&gcc GCC_USB3_CLKREF_CLK>, - <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>, - <&gcc GCC_USB3_PHY_PIPE_CLK>; - clock-names = "aux", - "ref", - "cfg_ahb", - "pipe"; - clock-output-names = "usb3_phy_pipe_clk_src"; - #clock-cells = <0>; - #phy-cells = <0>; - - resets = <&gcc GCC_USB3_PHY_BCR>, - <&gcc GCC_USB3PHY_PHY_BCR>; - reset-names = "phy", - "phy_phy"; - - vdda-phy-supply = <&vreg_l1a_0p875>; - vdda-pll-supply = <&vreg_l2a_1p2>; - - orientation-switch; - - qcom,tcsr-reg = <&tcsr_regs_1 0x6b244>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - - endpoint { - remote-endpoint = <&pmic_typec_mux_in>; - }; - }; - - port@1 { - reg = <1>; - - endpoint { - remote-endpoint = <&usb_dwc3_ss>; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/qcom,msm8998-qmp-usb3-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm QMP PHY controller (USB, MSM8998) + +maintainers: + - Vinod Koul + +description: + The QMP PHY controller supports physical layer functionality for USB-C on + several Qualcomm chipsets. + +properties: + compatible: + enum: + - qcom,msm8998-qmp-usb3-phy + - qcom,qcm2290-qmp-usb3-phy + - qcom,sdm660-qmp-usb3-phy + - qcom,sm6115-qmp-usb3-phy + + reg: + maxItems: 1 + + clocks: + maxItems: 4 + + clock-names: + maxItems: 4 + + resets: + maxItems: 2 + + reset-names: + items: + - const: phy + - const: phy_phy + + vdda-phy-supply: true + + vdda-pll-supply: true + + "#clock-cells": + const: 0 + + clock-output-names: + maxItems: 1 + + "#phy-cells": + const: 0 + + orientation-switch: + description: + Flag the PHY as possible handler of USB Type-C orientation switching + type: boolean + + qcom,tcsr-reg: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to TCSR hardware block + - description: offset of the VLS CLAMP register + description: Clamp register present in the TCSR + + ports: + $ref: /schemas/graph.yaml#/properties/ports + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Output endpoint of the PHY + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Incoming endpoint from the USB controller + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - reset-names + - vdda-phy-supply + - vdda-pll-supply + - "#clock-cells" + - clock-output-names + - "#phy-cells" + - qcom,tcsr-reg + +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8998-qmp-usb3-phy + - qcom,sdm660-qmp-usb3-phy + then: + properties: + clocks: + maxItems: 4 + clock-names: + items: + - const: aux + - const: ref + - const: cfg_ahb + - const: pipe + + - if: + properties: + compatible: + contains: + enum: + - qcom,qcm2290-qmp-usb3-phy + - qcom,sm6115-qmp-usb3-phy + then: + properties: + clocks: + maxItems: 4 + clock-names: + items: + - const: cfg_ahb + - const: ref + - const: com_aux + - const: pipe + +additionalProperties: false + +examples: + - | + #include + #include + + phy@c010000 { + compatible = "qcom,msm8998-qmp-usb3-phy"; + reg = <0x0c010000 0x1000>; + + clocks = <&gcc GCC_USB3_PHY_AUX_CLK>, + <&gcc GCC_USB3_CLKREF_CLK>, + <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>, + <&gcc GCC_USB3_PHY_PIPE_CLK>; + clock-names = "aux", + "ref", + "cfg_ahb", + "pipe"; + clock-output-names = "usb3_phy_pipe_clk_src"; + #clock-cells = <0>; + #phy-cells = <0>; + + resets = <&gcc GCC_USB3_PHY_BCR>, + <&gcc GCC_USB3PHY_PHY_BCR>; + reset-names = "phy", + "phy_phy"; + + vdda-phy-supply = <&vreg_l1a_0p875>; + vdda-pll-supply = <&vreg_l2a_1p2>; + + orientation-switch; + + qcom,tcsr-reg = <&tcsr_regs_1 0x6b244>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + endpoint { + remote-endpoint = <&pmic_typec_mux_in>; + }; + }; + + port@1 { + reg = <1>; + + endpoint { + remote-endpoint = <&usb_dwc3_ss>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml index 61523b9b5..f9cfbd0b2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml @@ -1,172 +1,172 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/phy/qcom,sc8280xp-qmp-ufs-phy.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm QMP PHY controller (UFS, SC8280XP) - -maintainers: - - Vinod Koul - -description: - The QMP PHY controller supports physical layer functionality for a number of - controllers on Qualcomm chipsets, such as, PCIe, UFS, and USB. - -properties: - compatible: - enum: - - qcom,msm8996-qmp-ufs-phy - - qcom,msm8998-qmp-ufs-phy - - qcom,sa8775p-qmp-ufs-phy - - qcom,sc7180-qmp-ufs-phy - - qcom,sc7280-qmp-ufs-phy - - qcom,sc8180x-qmp-ufs-phy - - qcom,sc8280xp-qmp-ufs-phy - - qcom,sdm845-qmp-ufs-phy - - qcom,sm6115-qmp-ufs-phy - - qcom,sm6125-qmp-ufs-phy - - qcom,sm6350-qmp-ufs-phy - - qcom,sm7150-qmp-ufs-phy - - qcom,sm8150-qmp-ufs-phy - - qcom,sm8250-qmp-ufs-phy - - qcom,sm8350-qmp-ufs-phy - - qcom,sm8450-qmp-ufs-phy - - qcom,sm8475-qmp-ufs-phy - - qcom,sm8550-qmp-ufs-phy - - qcom,sm8650-qmp-ufs-phy - - reg: - maxItems: 1 - - clocks: - minItems: 2 - maxItems: 3 - - clock-names: - minItems: 2 - maxItems: 3 - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - reset-names: - items: - - const: ufsphy - - vdda-phy-supply: true - - vdda-pll-supply: true - - "#clock-cells": - const: 1 - - "#phy-cells": - const: 0 - -required: - - compatible - - reg - - clocks - - clock-names - - resets - - reset-names - - vdda-phy-supply - - vdda-pll-supply - - "#phy-cells" - -allOf: - - if: - properties: - compatible: - contains: - enum: - - qcom,msm8998-qmp-ufs-phy - - qcom,sa8775p-qmp-ufs-phy - - qcom,sc7180-qmp-ufs-phy - - qcom,sc7280-qmp-ufs-phy - - qcom,sc8180x-qmp-ufs-phy - - qcom,sc8280xp-qmp-ufs-phy - - qcom,sdm845-qmp-ufs-phy - - qcom,sm6115-qmp-ufs-phy - - qcom,sm6125-qmp-ufs-phy - - qcom,sm6350-qmp-ufs-phy - - qcom,sm7150-qmp-ufs-phy - - qcom,sm8150-qmp-ufs-phy - - qcom,sm8250-qmp-ufs-phy - - qcom,sm8350-qmp-ufs-phy - - qcom,sm8450-qmp-ufs-phy - - qcom,sm8475-qmp-ufs-phy - - qcom,sm8550-qmp-ufs-phy - - qcom,sm8650-qmp-ufs-phy - then: - properties: - clocks: - minItems: 3 - maxItems: 3 - clock-names: - items: - - const: ref - - const: ref_aux - - const: qref - - - if: - properties: - compatible: - contains: - enum: - - qcom,msm8996-qmp-ufs-phy - then: - properties: - clocks: - minItems: 2 - maxItems: 2 - clock-names: - items: - - const: ref - - const: qref - - - if: - properties: - compatible: - contains: - enum: - - qcom,msm8996-qmp-ufs-phy - - qcom,msm8998-qmp-ufs-phy - then: - properties: - power-domains: - false - else: - required: - - power-domains - -additionalProperties: false - -examples: - - | - #include - #include - - ufs_mem_phy: phy@1d87000 { - compatible = "qcom,sc8280xp-qmp-ufs-phy"; - reg = <0x01d87000 0x1000>; - - clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_UFS_PHY_PHY_AUX_CLK>, - <&gcc GCC_UFS_REF_CLKREF_CLK>; - - clock-names = "ref", "ref_aux", "qref"; - - power-domains = <&gcc UFS_PHY_GDSC>; - - resets = <&ufs_mem_hc 0>; - reset-names = "ufsphy"; - - vdda-phy-supply = <&vreg_l6b>; - vdda-pll-supply = <&vreg_l3b>; - - #phy-cells = <0>; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/qcom,sc8280xp-qmp-ufs-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm QMP PHY controller (UFS, SC8280XP) + +maintainers: + - Vinod Koul + +description: + The QMP PHY controller supports physical layer functionality for a number of + controllers on Qualcomm chipsets, such as, PCIe, UFS, and USB. + +properties: + compatible: + enum: + - qcom,msm8996-qmp-ufs-phy + - qcom,msm8998-qmp-ufs-phy + - qcom,sa8775p-qmp-ufs-phy + - qcom,sc7180-qmp-ufs-phy + - qcom,sc7280-qmp-ufs-phy + - qcom,sc8180x-qmp-ufs-phy + - qcom,sc8280xp-qmp-ufs-phy + - qcom,sdm845-qmp-ufs-phy + - qcom,sm6115-qmp-ufs-phy + - qcom,sm6125-qmp-ufs-phy + - qcom,sm6350-qmp-ufs-phy + - qcom,sm7150-qmp-ufs-phy + - qcom,sm8150-qmp-ufs-phy + - qcom,sm8250-qmp-ufs-phy + - qcom,sm8350-qmp-ufs-phy + - qcom,sm8450-qmp-ufs-phy + - qcom,sm8475-qmp-ufs-phy + - qcom,sm8550-qmp-ufs-phy + - qcom,sm8650-qmp-ufs-phy + + reg: + maxItems: 1 + + clocks: + minItems: 2 + maxItems: 3 + + clock-names: + minItems: 2 + maxItems: 3 + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + reset-names: + items: + - const: ufsphy + + vdda-phy-supply: true + + vdda-pll-supply: true + + "#clock-cells": + const: 1 + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - reset-names + - vdda-phy-supply + - vdda-pll-supply + - "#phy-cells" + +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8998-qmp-ufs-phy + - qcom,sa8775p-qmp-ufs-phy + - qcom,sc7180-qmp-ufs-phy + - qcom,sc7280-qmp-ufs-phy + - qcom,sc8180x-qmp-ufs-phy + - qcom,sc8280xp-qmp-ufs-phy + - qcom,sdm845-qmp-ufs-phy + - qcom,sm6115-qmp-ufs-phy + - qcom,sm6125-qmp-ufs-phy + - qcom,sm6350-qmp-ufs-phy + - qcom,sm7150-qmp-ufs-phy + - qcom,sm8150-qmp-ufs-phy + - qcom,sm8250-qmp-ufs-phy + - qcom,sm8350-qmp-ufs-phy + - qcom,sm8450-qmp-ufs-phy + - qcom,sm8475-qmp-ufs-phy + - qcom,sm8550-qmp-ufs-phy + - qcom,sm8650-qmp-ufs-phy + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + items: + - const: ref + - const: ref_aux + - const: qref + + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8996-qmp-ufs-phy + then: + properties: + clocks: + minItems: 2 + maxItems: 2 + clock-names: + items: + - const: ref + - const: qref + + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8996-qmp-ufs-phy + - qcom,msm8998-qmp-ufs-phy + then: + properties: + power-domains: + false + else: + required: + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + + ufs_mem_phy: phy@1d87000 { + compatible = "qcom,sc8280xp-qmp-ufs-phy"; + reg = <0x01d87000 0x1000>; + + clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_UFS_PHY_PHY_AUX_CLK>, + <&gcc GCC_UFS_REF_CLKREF_CLK>; + + clock-names = "ref", "ref_aux", "qref"; + + power-domains = <&gcc UFS_PHY_GDSC>; + + resets = <&ufs_mem_hc 0>; + reset-names = "ufsphy"; + + vdda-phy-supply = <&vreg_l6b>; + vdda-pll-supply = <&vreg_l3b>; + + #phy-cells = <0>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml index 03b551c4f..2d0d7e9e6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml @@ -1,200 +1,200 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm QMP USB4-USB3-DP PHY controller (SC8280XP) - -maintainers: - - Vinod Koul - -description: - The QMP PHY controller supports physical layer functionality for a number of - controllers on Qualcomm chipsets, such as, PCIe, UFS and USB. - -properties: - compatible: - enum: - - qcom,sc7180-qmp-usb3-dp-phy - - qcom,sc7280-qmp-usb3-dp-phy - - qcom,sc8180x-qmp-usb3-dp-phy - - qcom,sc8280xp-qmp-usb43dp-phy - - qcom,sdm845-qmp-usb3-dp-phy - - qcom,sm6350-qmp-usb3-dp-phy - - qcom,sm8150-qmp-usb3-dp-phy - - qcom,sm8250-qmp-usb3-dp-phy - - qcom,sm8350-qmp-usb3-dp-phy - - qcom,sm8450-qmp-usb3-dp-phy - - qcom,sm8550-qmp-usb3-dp-phy - - qcom,sm8650-qmp-usb3-dp-phy - - qcom,x1e80100-qmp-usb3-dp-phy - - reg: - maxItems: 1 - - clocks: - minItems: 4 - maxItems: 5 - - clock-names: - minItems: 4 - items: - - const: aux - - const: ref - - const: com_aux - - const: usb3_pipe - - const: cfg_ahb - - power-domains: - maxItems: 1 - - resets: - maxItems: 2 - - reset-names: - items: - - const: phy - - const: common - - vdda-phy-supply: true - - vdda-pll-supply: true - - "#clock-cells": - const: 1 - description: - See include/dt-bindings/phy/phy-qcom-qmp.h - - "#phy-cells": - const: 1 - description: - See include/dt-bindings/phy/phy-qcom-qmp.h - - orientation-switch: - description: - Flag the PHY as possible handler of USB Type-C orientation switching - type: boolean - - ports: - $ref: /schemas/graph.yaml#/properties/ports - properties: - port@0: - $ref: /schemas/graph.yaml#/properties/port - description: Output endpoint of the PHY - - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: Incoming endpoint from the USB controller - - port@2: - $ref: /schemas/graph.yaml#/properties/port - description: Incoming endpoint from the DisplayPort controller - -required: - - compatible - - reg - - clocks - - clock-names - - resets - - reset-names - - vdda-phy-supply - - vdda-pll-supply - - "#clock-cells" - - "#phy-cells" - -allOf: - - if: - properties: - compatible: - enum: - - qcom,sc7180-qmp-usb3-dp-phy - - qcom,sdm845-qmp-usb3-dp-phy - then: - properties: - clocks: - maxItems: 5 - clock-names: - maxItems: 5 - else: - properties: - clocks: - maxItems: 4 - clock-names: - maxItems: 4 - - - if: - properties: - compatible: - enum: - - qcom,sc8280xp-qmp-usb43dp-phy - - qcom,sm6350-qmp-usb3-dp-phy - - qcom,sm8550-qmp-usb3-dp-phy - - qcom,sm8650-qmp-usb3-dp-phy - - qcom,x1e80100-qmp-usb3-dp-phy - then: - required: - - power-domains - else: - properties: - power-domains: false - -additionalProperties: false - -examples: - - | - #include - - phy@88eb000 { - compatible = "qcom,sc8280xp-qmp-usb43dp-phy"; - reg = <0x088eb000 0x4000>; - - clocks = <&gcc GCC_USB3_PRIM_PHY_AUX_CLK>, - <&gcc GCC_USB4_EUD_CLKREF_CLK>, - <&gcc GCC_USB3_PRIM_PHY_COM_AUX_CLK>, - <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>; - clock-names = "aux", "ref", "com_aux", "usb3_pipe"; - - power-domains = <&gcc USB30_PRIM_GDSC>; - - resets = <&gcc GCC_USB3_PHY_PRIM_BCR>, - <&gcc GCC_USB4_DP_PHY_PRIM_BCR>; - reset-names = "phy", "common"; - - vdda-phy-supply = <&vreg_l9d>; - vdda-pll-supply = <&vreg_l4d>; - - orientation-switch; - - #clock-cells = <1>; - #phy-cells = <1>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - - endpoint { - remote-endpoint = <&typec_connector_ss>; - }; - }; - - port@1 { - reg = <1>; - - endpoint { - remote-endpoint = <&dwc3_ss_out>; - }; - }; - - port@2 { - reg = <2>; - - endpoint { - remote-endpoint = <&mdss_dp_out>; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm QMP USB4-USB3-DP PHY controller (SC8280XP) + +maintainers: + - Vinod Koul + +description: + The QMP PHY controller supports physical layer functionality for a number of + controllers on Qualcomm chipsets, such as, PCIe, UFS and USB. + +properties: + compatible: + enum: + - qcom,sc7180-qmp-usb3-dp-phy + - qcom,sc7280-qmp-usb3-dp-phy + - qcom,sc8180x-qmp-usb3-dp-phy + - qcom,sc8280xp-qmp-usb43dp-phy + - qcom,sdm845-qmp-usb3-dp-phy + - qcom,sm6350-qmp-usb3-dp-phy + - qcom,sm8150-qmp-usb3-dp-phy + - qcom,sm8250-qmp-usb3-dp-phy + - qcom,sm8350-qmp-usb3-dp-phy + - qcom,sm8450-qmp-usb3-dp-phy + - qcom,sm8550-qmp-usb3-dp-phy + - qcom,sm8650-qmp-usb3-dp-phy + - qcom,x1e80100-qmp-usb3-dp-phy + + reg: + maxItems: 1 + + clocks: + minItems: 4 + maxItems: 5 + + clock-names: + minItems: 4 + items: + - const: aux + - const: ref + - const: com_aux + - const: usb3_pipe + - const: cfg_ahb + + power-domains: + maxItems: 1 + + resets: + maxItems: 2 + + reset-names: + items: + - const: phy + - const: common + + vdda-phy-supply: true + + vdda-pll-supply: true + + "#clock-cells": + const: 1 + description: + See include/dt-bindings/phy/phy-qcom-qmp.h + + "#phy-cells": + const: 1 + description: + See include/dt-bindings/phy/phy-qcom-qmp.h + + orientation-switch: + description: + Flag the PHY as possible handler of USB Type-C orientation switching + type: boolean + + ports: + $ref: /schemas/graph.yaml#/properties/ports + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Output endpoint of the PHY + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Incoming endpoint from the USB controller + + port@2: + $ref: /schemas/graph.yaml#/properties/port + description: Incoming endpoint from the DisplayPort controller + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - reset-names + - vdda-phy-supply + - vdda-pll-supply + - "#clock-cells" + - "#phy-cells" + +allOf: + - if: + properties: + compatible: + enum: + - qcom,sc7180-qmp-usb3-dp-phy + - qcom,sdm845-qmp-usb3-dp-phy + then: + properties: + clocks: + maxItems: 5 + clock-names: + maxItems: 5 + else: + properties: + clocks: + maxItems: 4 + clock-names: + maxItems: 4 + + - if: + properties: + compatible: + enum: + - qcom,sc8280xp-qmp-usb43dp-phy + - qcom,sm6350-qmp-usb3-dp-phy + - qcom,sm8550-qmp-usb3-dp-phy + - qcom,sm8650-qmp-usb3-dp-phy + - qcom,x1e80100-qmp-usb3-dp-phy + then: + required: + - power-domains + else: + properties: + power-domains: false + +additionalProperties: false + +examples: + - | + #include + + phy@88eb000 { + compatible = "qcom,sc8280xp-qmp-usb43dp-phy"; + reg = <0x088eb000 0x4000>; + + clocks = <&gcc GCC_USB3_PRIM_PHY_AUX_CLK>, + <&gcc GCC_USB4_EUD_CLKREF_CLK>, + <&gcc GCC_USB3_PRIM_PHY_COM_AUX_CLK>, + <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>; + clock-names = "aux", "ref", "com_aux", "usb3_pipe"; + + power-domains = <&gcc USB30_PRIM_GDSC>; + + resets = <&gcc GCC_USB3_PHY_PRIM_BCR>, + <&gcc GCC_USB4_DP_PHY_PRIM_BCR>; + reset-names = "phy", "common"; + + vdda-phy-supply = <&vreg_l9d>; + vdda-pll-supply = <&vreg_l4d>; + + orientation-switch; + + #clock-cells = <1>; + #phy-cells = <1>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + endpoint { + remote-endpoint = <&typec_connector_ss>; + }; + }; + + port@1 { + reg = <1>; + + endpoint { + remote-endpoint = <&dwc3_ss_out>; + }; + }; + + port@2 { + reg = <2>; + + endpoint { + remote-endpoint = <&mdss_dp_out>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml index 53e280782..af275cea3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml @@ -1,134 +1,134 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/phy/renesas,usb2-phy.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas R-Car generation 3 USB 2.0 PHY - -maintainers: - - Yoshihiro Shimoda - -properties: - compatible: - oneOf: - - items: - - enum: - - renesas,usb2-phy-r8a77470 # RZ/G1C - - renesas,usb2-phy-r9a08g045 # RZ/G3S - - - items: - - enum: - - renesas,usb2-phy-r7s9210 # RZ/A2 - - renesas,usb2-phy-r8a774a1 # RZ/G2M - - renesas,usb2-phy-r8a774b1 # RZ/G2N - - renesas,usb2-phy-r8a774c0 # RZ/G2E - - renesas,usb2-phy-r8a774e1 # RZ/G2H - - renesas,usb2-phy-r8a7795 # R-Car H3 - - renesas,usb2-phy-r8a7796 # R-Car M3-W - - renesas,usb2-phy-r8a77961 # R-Car M3-W+ - - renesas,usb2-phy-r8a77965 # R-Car M3-N - - renesas,usb2-phy-r8a77990 # R-Car E3 - - renesas,usb2-phy-r8a77995 # R-Car D3 - - const: renesas,rcar-gen3-usb2-phy - - - items: - - enum: - - renesas,usb2-phy-r9a07g043 # RZ/G2UL - - renesas,usb2-phy-r9a07g044 # RZ/G2{L,LC} - - renesas,usb2-phy-r9a07g054 # RZ/V2L - - const: renesas,rzg2l-usb2-phy - - reg: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 2 - - clock-names: - minItems: 1 - items: - - const: fck - - const: usb_x1 - - '#phy-cells': - enum: [0, 1] # and 0 is deprecated. - description: | - The phandle's argument in the PHY specifier is the INT_STATUS bit of - controller. - - 1 = USBH_INTA (OHCI) - - 2 = USBH_INTB (EHCI) - - 3 = UCOM_INT (OTG and BC) - - interrupts: - maxItems: 1 - - power-domains: - maxItems: 1 - - resets: - minItems: 1 - items: - - description: reset of USB 2.0 host side - - description: reset of USB 2.0 peripheral side - - vbus-supply: - description: | - Phandle to a regulator that provides power to the VBUS. This regulator - will be managed during the PHY power on/off sequence. - - renesas,no-otg-pins: - $ref: /schemas/types.yaml#/definitions/flag - description: | - specify when a board does not provide proper otg pins. - - dr_mode: true - -if: - properties: - compatible: - contains: - const: renesas,usb2-phy-r7s9210 -then: - required: - - clock-names - -required: - - compatible - - reg - - clocks - - '#phy-cells' - -allOf: - - if: - properties: - compatible: - contains: - const: renesas,rzg2l-usb2-phy - then: - required: - - resets - -additionalProperties: false - -examples: - - | - #include - #include - #include - - usb-phy@ee080200 { - compatible = "renesas,usb2-phy-r8a7795", "renesas,rcar-gen3-usb2-phy"; - reg = <0xee080200 0x700>; - interrupts = ; - clocks = <&cpg CPG_MOD 703>; - #phy-cells = <1>; - }; - - usb-phy@ee0a0200 { - compatible = "renesas,usb2-phy-r8a7795", "renesas,rcar-gen3-usb2-phy"; - reg = <0xee0a0200 0x700>; - clocks = <&cpg CPG_MOD 702>; - #phy-cells = <1>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/renesas,usb2-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas R-Car generation 3 USB 2.0 PHY + +maintainers: + - Yoshihiro Shimoda + +properties: + compatible: + oneOf: + - items: + - enum: + - renesas,usb2-phy-r8a77470 # RZ/G1C + - renesas,usb2-phy-r9a08g045 # RZ/G3S + + - items: + - enum: + - renesas,usb2-phy-r7s9210 # RZ/A2 + - renesas,usb2-phy-r8a774a1 # RZ/G2M + - renesas,usb2-phy-r8a774b1 # RZ/G2N + - renesas,usb2-phy-r8a774c0 # RZ/G2E + - renesas,usb2-phy-r8a774e1 # RZ/G2H + - renesas,usb2-phy-r8a7795 # R-Car H3 + - renesas,usb2-phy-r8a7796 # R-Car M3-W + - renesas,usb2-phy-r8a77961 # R-Car M3-W+ + - renesas,usb2-phy-r8a77965 # R-Car M3-N + - renesas,usb2-phy-r8a77990 # R-Car E3 + - renesas,usb2-phy-r8a77995 # R-Car D3 + - const: renesas,rcar-gen3-usb2-phy + + - items: + - enum: + - renesas,usb2-phy-r9a07g043 # RZ/G2UL + - renesas,usb2-phy-r9a07g044 # RZ/G2{L,LC} + - renesas,usb2-phy-r9a07g054 # RZ/V2L + - const: renesas,rzg2l-usb2-phy + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + items: + - const: fck + - const: usb_x1 + + '#phy-cells': + enum: [0, 1] # and 0 is deprecated. + description: | + The phandle's argument in the PHY specifier is the INT_STATUS bit of + controller. + - 1 = USBH_INTA (OHCI) + - 2 = USBH_INTB (EHCI) + - 3 = UCOM_INT (OTG and BC) + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 1 + + resets: + minItems: 1 + items: + - description: reset of USB 2.0 host side + - description: reset of USB 2.0 peripheral side + + vbus-supply: + description: | + Phandle to a regulator that provides power to the VBUS. This regulator + will be managed during the PHY power on/off sequence. + + renesas,no-otg-pins: + $ref: /schemas/types.yaml#/definitions/flag + description: | + specify when a board does not provide proper otg pins. + + dr_mode: true + +if: + properties: + compatible: + contains: + const: renesas,usb2-phy-r7s9210 +then: + required: + - clock-names + +required: + - compatible + - reg + - clocks + - '#phy-cells' + +allOf: + - if: + properties: + compatible: + contains: + const: renesas,rzg2l-usb2-phy + then: + required: + - resets + +additionalProperties: false + +examples: + - | + #include + #include + #include + + usb-phy@ee080200 { + compatible = "renesas,usb2-phy-r8a7795", "renesas,rcar-gen3-usb2-phy"; + reg = <0xee080200 0x700>; + interrupts = ; + clocks = <&cpg CPG_MOD 703>; + #phy-cells = <1>; + }; + + usb-phy@ee0a0200 { + compatible = "renesas,usb2-phy-r8a7795", "renesas,rcar-gen3-usb2-phy"; + reg = <0xee0a0200 0x700>; + clocks = <&cpg CPG_MOD 702>; + #phy-cells = <1>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/rockchip,inno-usb2phy.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/rockchip,inno-usb2phy.yaml index 8e8cf6d03..525441313 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/rockchip,inno-usb2phy.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/rockchip,inno-usb2phy.yaml @@ -1,203 +1,203 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/phy/rockchip,inno-usb2phy.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Rockchip USB2.0 phy with inno IP block - -maintainers: - - Heiko Stuebner - -properties: - compatible: - enum: - - rockchip,px30-usb2phy - - rockchip,rk3128-usb2phy - - rockchip,rk3228-usb2phy - - rockchip,rk3308-usb2phy - - rockchip,rk3328-usb2phy - - rockchip,rk3366-usb2phy - - rockchip,rk3399-usb2phy - - rockchip,rk3568-usb2phy - - rockchip,rk3588-usb2phy - - rockchip,rv1108-usb2phy - - reg: - maxItems: 1 - - clock-output-names: - description: - The usb 480m output clock name. - - "#clock-cells": - const: 0 - - clocks: - maxItems: 1 - - clock-names: - const: phyclk - - assigned-clocks: - description: - Phandle of the usb 480m clock. - - assigned-clock-parents: - description: - Parent of the usb 480m clock. - Select between usb-phy output 480m and xin24m. - Refer to clk/clock-bindings.txt for generic clock consumer properties. - - extcon: - description: - Phandle to the extcon device providing the cable state for the otg phy. - - interrupts: - description: Muxed interrupt for both ports - maxItems: 1 - - resets: - maxItems: 2 - - reset-names: - items: - - const: phy - - const: apb - - rockchip,usbgrf: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Phandle to the syscon managing the 'usb general register files'. - When set the driver will request its phandle as one companion-grf - for some special SoCs (e.g rv1108). - - host-port: - type: object - additionalProperties: false - - properties: - "#phy-cells": - const: 0 - - interrupts: - description: host linestate interrupt - maxItems: 1 - - interrupt-names: - const: linestate - - phy-supply: - description: - Phandle to a regulator that provides power to VBUS. - See ./phy-bindings.txt for details. - - required: - - "#phy-cells" - - otg-port: - type: object - additionalProperties: false - - properties: - "#phy-cells": - const: 0 - - interrupts: - minItems: 1 - maxItems: 3 - - interrupt-names: - oneOf: - - const: linestate - - const: otg-mux - - items: - - const: otg-bvalid - - const: otg-id - - const: linestate - - phy-supply: - description: - Phandle to a regulator that provides power to VBUS. - See ./phy-bindings.txt for details. - - required: - - "#phy-cells" - -required: - - compatible - - reg - - clock-output-names - - "#clock-cells" - -anyOf: - - required: - - otg-port - - required: - - host-port - -allOf: - - if: - properties: - compatible: - contains: - enum: - - rockchip,rk3568-usb2phy - - rockchip,rk3588-usb2phy - - then: - properties: - host-port: - properties: - interrupts: false - - otg-port: - properties: - interrupts: false - - required: - - interrupts - - else: - properties: - interrupts: false - - host-port: - required: - - interrupts - - interrupt-names - - otg-port: - required: - - interrupts - - interrupt-names - -additionalProperties: false - -examples: - - | - #include - #include - #include - u2phy0: usb2phy@e450 { - compatible = "rockchip,rk3399-usb2phy"; - reg = <0xe450 0x10>; - clocks = <&cru SCLK_USB2PHY0_REF>; - clock-names = "phyclk"; - clock-output-names = "clk_usbphy0_480m"; - #clock-cells = <0>; - - u2phy0_host: host-port { - interrupts = ; - interrupt-names = "linestate"; - #phy-cells = <0>; - }; - - u2phy0_otg: otg-port { - interrupts = , - , - ; - interrupt-names = "otg-bvalid", "otg-id", "linestate"; - #phy-cells = <0>; - }; - }; +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/rockchip,inno-usb2phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip USB2.0 phy with inno IP block + +maintainers: + - Heiko Stuebner + +properties: + compatible: + enum: + - rockchip,px30-usb2phy + - rockchip,rk3128-usb2phy + - rockchip,rk3228-usb2phy + - rockchip,rk3308-usb2phy + - rockchip,rk3328-usb2phy + - rockchip,rk3366-usb2phy + - rockchip,rk3399-usb2phy + - rockchip,rk3568-usb2phy + - rockchip,rk3588-usb2phy + - rockchip,rv1108-usb2phy + + reg: + maxItems: 1 + + clock-output-names: + description: + The usb 480m output clock name. + + "#clock-cells": + const: 0 + + clocks: + maxItems: 1 + + clock-names: + const: phyclk + + assigned-clocks: + description: + Phandle of the usb 480m clock. + + assigned-clock-parents: + description: + Parent of the usb 480m clock. + Select between usb-phy output 480m and xin24m. + Refer to clk/clock-bindings.txt for generic clock consumer properties. + + extcon: + description: + Phandle to the extcon device providing the cable state for the otg phy. + + interrupts: + description: Muxed interrupt for both ports + maxItems: 1 + + resets: + maxItems: 2 + + reset-names: + items: + - const: phy + - const: apb + + rockchip,usbgrf: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the syscon managing the 'usb general register files'. + When set the driver will request its phandle as one companion-grf + for some special SoCs (e.g rv1108). + + host-port: + type: object + additionalProperties: false + + properties: + "#phy-cells": + const: 0 + + interrupts: + description: host linestate interrupt + maxItems: 1 + + interrupt-names: + const: linestate + + phy-supply: + description: + Phandle to a regulator that provides power to VBUS. + See ./phy-bindings.txt for details. + + required: + - "#phy-cells" + + otg-port: + type: object + additionalProperties: false + + properties: + "#phy-cells": + const: 0 + + interrupts: + minItems: 1 + maxItems: 3 + + interrupt-names: + oneOf: + - const: linestate + - const: otg-mux + - items: + - const: otg-bvalid + - const: otg-id + - const: linestate + + phy-supply: + description: + Phandle to a regulator that provides power to VBUS. + See ./phy-bindings.txt for details. + + required: + - "#phy-cells" + +required: + - compatible + - reg + - clock-output-names + - "#clock-cells" + +anyOf: + - required: + - otg-port + - required: + - host-port + +allOf: + - if: + properties: + compatible: + contains: + enum: + - rockchip,rk3568-usb2phy + - rockchip,rk3588-usb2phy + + then: + properties: + host-port: + properties: + interrupts: false + + otg-port: + properties: + interrupts: false + + required: + - interrupts + + else: + properties: + interrupts: false + + host-port: + required: + - interrupts + - interrupt-names + + otg-port: + required: + - interrupts + - interrupt-names + +additionalProperties: false + +examples: + - | + #include + #include + #include + u2phy0: usb2phy@e450 { + compatible = "rockchip,rk3399-usb2phy"; + reg = <0xe450 0x10>; + clocks = <&cru SCLK_USB2PHY0_REF>; + clock-names = "phyclk"; + clock-output-names = "clk_usbphy0_480m"; + #clock-cells = <0>; + + u2phy0_host: host-port { + interrupts = ; + interrupt-names = "linestate"; + #phy-cells = <0>; + }; + + u2phy0_otg: otg-port { + interrupts = , + , + ; + interrupt-names = "otg-bvalid", "otg-id", "linestate"; + #phy-cells = <0>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/socionext,uniphier-usb3hs-phy.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/socionext,uniphier-usb3hs-phy.yaml index 58fe48dd2..25c4159f8 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/socionext,uniphier-usb3hs-phy.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/socionext,uniphier-usb3hs-phy.yaml @@ -1,163 +1,163 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/phy/socionext,uniphier-usb3hs-phy.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Socionext UniPhier USB3 High-Speed (HS) PHY - -description: | - This describes the devicetree bindings for PHY interfaces built into - USB3 controller implemented on Socionext UniPhier SoCs. - Although the controller includes High-Speed PHY and Super-Speed PHY, - this describes about High-Speed PHY. - -maintainers: - - Kunihiko Hayashi - -properties: - compatible: - enum: - - socionext,uniphier-pro5-usb3-hsphy - - socionext,uniphier-pxs2-usb3-hsphy - - socionext,uniphier-ld20-usb3-hsphy - - socionext,uniphier-pxs3-usb3-hsphy - - socionext,uniphier-nx1-usb3-hsphy - - reg: - maxItems: 1 - - "#phy-cells": - const: 0 - - clocks: - minItems: 2 - maxItems: 3 - - clock-names: - minItems: 2 - maxItems: 3 - - resets: - maxItems: 2 - - reset-names: - maxItems: 2 - - vbus-supply: - description: A phandle to the regulator for USB VBUS - - nvmem-cells: - maxItems: 3 - description: - Phandles to nvmem cell that contains the trimming data. - Available only for HS-PHY implemented on LD20 and PXs3, and - if unspecified, default value is used. - - nvmem-cell-names: - items: - - const: rterm - - const: sel_t - - const: hs_i - description: - Should be the following names, which correspond to each nvmem-cells. - All of the 3 parameters associated with the above names are - required for each port, if any one is omitted, the trimming data - of the port will not be set at all. - -allOf: - - if: - properties: - compatible: - contains: - const: socionext,uniphier-pro5-usb3-hsphy - then: - properties: - clocks: - minItems: 2 - maxItems: 2 - clock-names: - items: - - const: gio - - const: link - resets: - minItems: 2 - maxItems: 2 - reset-names: - items: - - const: gio - - const: link - - if: - properties: - compatible: - contains: - enum: - - socionext,uniphier-pxs2-usb3-hsphy - - socionext,uniphier-ld20-usb3-hsphy - then: - properties: - clocks: - minItems: 2 - maxItems: 2 - clock-names: - items: - - const: link - - const: phy - resets: - minItems: 2 - maxItems: 2 - reset-names: - items: - - const: link - - const: phy - - if: - properties: - compatible: - contains: - enum: - - socionext,uniphier-pxs3-usb3-hsphy - - socionext,uniphier-nx1-usb3-hsphy - then: - properties: - clocks: - minItems: 2 - maxItems: 3 - clock-names: - minItems: 2 - items: - - const: link - - const: phy - - const: phy-ext - resets: - minItems: 2 - maxItems: 2 - reset-names: - items: - - const: link - - const: phy - -required: - - compatible - - reg - - "#phy-cells" - - clocks - - clock-names - - resets - - reset-names - -additionalProperties: false - -examples: - - | - usb_hsphy0: phy@200 { - compatible = "socionext,uniphier-ld20-usb3-hsphy"; - reg = <0x200 0x10>; - #phy-cells = <0>; - clock-names = "link", "phy"; - clocks = <&sys_clk 14>, <&sys_clk 16>; - reset-names = "link", "phy"; - resets = <&sys_rst 14>, <&sys_rst 16>; - vbus-supply = <&usb_vbus0>; - nvmem-cell-names = "rterm", "sel_t", "hs_i"; - nvmem-cells = <&usb_rterm0>, <&usb_sel_t0>, <&usb_hs_i0>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/socionext,uniphier-usb3hs-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Socionext UniPhier USB3 High-Speed (HS) PHY + +description: | + This describes the devicetree bindings for PHY interfaces built into + USB3 controller implemented on Socionext UniPhier SoCs. + Although the controller includes High-Speed PHY and Super-Speed PHY, + this describes about High-Speed PHY. + +maintainers: + - Kunihiko Hayashi + +properties: + compatible: + enum: + - socionext,uniphier-pro5-usb3-hsphy + - socionext,uniphier-pxs2-usb3-hsphy + - socionext,uniphier-ld20-usb3-hsphy + - socionext,uniphier-pxs3-usb3-hsphy + - socionext,uniphier-nx1-usb3-hsphy + + reg: + maxItems: 1 + + "#phy-cells": + const: 0 + + clocks: + minItems: 2 + maxItems: 3 + + clock-names: + minItems: 2 + maxItems: 3 + + resets: + maxItems: 2 + + reset-names: + maxItems: 2 + + vbus-supply: + description: A phandle to the regulator for USB VBUS + + nvmem-cells: + maxItems: 3 + description: + Phandles to nvmem cell that contains the trimming data. + Available only for HS-PHY implemented on LD20 and PXs3, and + if unspecified, default value is used. + + nvmem-cell-names: + items: + - const: rterm + - const: sel_t + - const: hs_i + description: + Should be the following names, which correspond to each nvmem-cells. + All of the 3 parameters associated with the above names are + required for each port, if any one is omitted, the trimming data + of the port will not be set at all. + +allOf: + - if: + properties: + compatible: + contains: + const: socionext,uniphier-pro5-usb3-hsphy + then: + properties: + clocks: + minItems: 2 + maxItems: 2 + clock-names: + items: + - const: gio + - const: link + resets: + minItems: 2 + maxItems: 2 + reset-names: + items: + - const: gio + - const: link + - if: + properties: + compatible: + contains: + enum: + - socionext,uniphier-pxs2-usb3-hsphy + - socionext,uniphier-ld20-usb3-hsphy + then: + properties: + clocks: + minItems: 2 + maxItems: 2 + clock-names: + items: + - const: link + - const: phy + resets: + minItems: 2 + maxItems: 2 + reset-names: + items: + - const: link + - const: phy + - if: + properties: + compatible: + contains: + enum: + - socionext,uniphier-pxs3-usb3-hsphy + - socionext,uniphier-nx1-usb3-hsphy + then: + properties: + clocks: + minItems: 2 + maxItems: 3 + clock-names: + minItems: 2 + items: + - const: link + - const: phy + - const: phy-ext + resets: + minItems: 2 + maxItems: 2 + reset-names: + items: + - const: link + - const: phy + +required: + - compatible + - reg + - "#phy-cells" + - clocks + - clock-names + - resets + - reset-names + +additionalProperties: false + +examples: + - | + usb_hsphy0: phy@200 { + compatible = "socionext,uniphier-ld20-usb3-hsphy"; + reg = <0x200 0x10>; + #phy-cells = <0>; + clock-names = "link", "phy"; + clocks = <&sys_clk 14>, <&sys_clk 16>; + reset-names = "link", "phy"; + resets = <&sys_rst 14>, <&sys_rst 16>; + vbus-supply = <&usb_vbus0>; + nvmem-cell-names = "rterm", "sel_t", "hs_i"; + nvmem-cells = <&usb_rterm0>, <&usb_sel_t0>, <&usb_hs_i0>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/ti-phy.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/ti-phy.txt index dc3aa3913..7c7936b89 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/ti-phy.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/phy/ti-phy.txt @@ -1,98 +1,98 @@ -TI PHY: DT DOCUMENTATION FOR PHYs in TI PLATFORMs - -OMAP CONTROL PHY - -Required properties: - - compatible: Should be one of - "ti,control-phy-otghs" - if it has otghs_control mailbox register as on OMAP4. - "ti,control-phy-usb2" - if it has Power down bit in control_dev_conf register - e.g. USB2_PHY on OMAP5. - "ti,control-phy-pipe3" - if it has DPLL and individual Rx & Tx power control - e.g. USB3 PHY and SATA PHY on OMAP5. - "ti,control-phy-pcie" - for pcie to support external clock for pcie and to - set PCS delay value. - e.g. PCIE PHY in DRA7x - "ti,control-phy-usb2-dra7" - if it has power down register like USB2 PHY on - DRA7 platform. - "ti,control-phy-usb2-am437" - if it has power down register like USB2 PHY on - AM437 platform. - - reg : register ranges as listed in the reg-names property - - reg-names: "otghs_control" for control-phy-otghs - "power", "pcie_pcs" and "control_sma" for control-phy-pcie - "power" for all other types - -omap_control_usb: omap-control-usb@4a002300 { - compatible = "ti,control-phy-otghs"; - reg = <0x4a00233c 0x4>; - reg-names = "otghs_control"; -}; - -TI PIPE3 PHY - -Required properties: - - compatible: Should be "ti,phy-usb3", "ti,phy-pipe3-sata" or - "ti,phy-pipe3-pcie. "ti,omap-usb3" is deprecated. - - reg : Address and length of the register set for the device. - - reg-names: The names of the register addresses corresponding to the registers - filled in "reg". - - #phy-cells: determine the number of cells that should be given in the - phandle while referencing this phy. - - clocks: a list of phandles and clock-specifier pairs, one for each entry in - clock-names. - - clock-names: should include: - * "wkupclk" - wakeup clock. - * "sysclk" - system clock. - * "refclk" - reference clock. - * "dpll_ref" - external dpll ref clk - * "dpll_ref_m2" - external dpll ref clk - * "phy-div" - divider for apll - * "div-clk" - apll clock - -Optional properties: - - id: If there are multiple instance of the same type, in order to - differentiate between each instance "id" can be used (e.g., multi-lane PCIe - PHY). If "id" is not provided, it is set to default value of '1'. - - syscon-pllreset: Handle to system control region that contains the - CTRL_CORE_SMA_SW_0 register and register offset to the CTRL_CORE_SMA_SW_0 - register that contains the SATA_PLL_SOFT_RESET bit. Only valid for sata_phy. - - syscon-pcs : phandle/offset pair. Phandle to the system control module and the - register offset to write the PCS delay value. - -Deprecated properties: - - ctrl-module : phandle of the control module used by PHY driver to power on - the PHY. - -Recommended properties: - - syscon-phy-power : phandle/offset pair. Phandle to the system control - module and the register offset to power on/off the PHY. - -This is usually a subnode of ocp2scp to which it is connected. - -usb3phy@4a084400 { - compatible = "ti,phy-usb3"; - reg = <0x4a084400 0x80>, - <0x4a084800 0x64>, - <0x4a084c00 0x40>; - reg-names = "phy_rx", "phy_tx", "pll_ctrl"; - ctrl-module = <&omap_control_usb>; - #phy-cells = <0>; - clocks = <&usb_phy_cm_clk32k>, - <&sys_clkin>, - <&usb_otg_ss_refclk960m>; - clock-names = "wkupclk", - "sysclk", - "refclk"; -}; - -sata_phy: phy@4a096000 { - compatible = "ti,phy-pipe3-sata"; - reg = <0x4A096000 0x80>, /* phy_rx */ - <0x4A096400 0x64>, /* phy_tx */ - <0x4A096800 0x40>; /* pll_ctrl */ - reg-names = "phy_rx", "phy_tx", "pll_ctrl"; - ctrl-module = <&omap_control_sata>; - clocks = <&sys_clkin1>, <&sata_ref_clk>; - clock-names = "sysclk", "refclk"; - syscon-pllreset = <&scm_conf 0x3fc>; - #phy-cells = <0>; -}; +TI PHY: DT DOCUMENTATION FOR PHYs in TI PLATFORMs + +OMAP CONTROL PHY + +Required properties: + - compatible: Should be one of + "ti,control-phy-otghs" - if it has otghs_control mailbox register as on OMAP4. + "ti,control-phy-usb2" - if it has Power down bit in control_dev_conf register + e.g. USB2_PHY on OMAP5. + "ti,control-phy-pipe3" - if it has DPLL and individual Rx & Tx power control + e.g. USB3 PHY and SATA PHY on OMAP5. + "ti,control-phy-pcie" - for pcie to support external clock for pcie and to + set PCS delay value. + e.g. PCIE PHY in DRA7x + "ti,control-phy-usb2-dra7" - if it has power down register like USB2 PHY on + DRA7 platform. + "ti,control-phy-usb2-am437" - if it has power down register like USB2 PHY on + AM437 platform. + - reg : register ranges as listed in the reg-names property + - reg-names: "otghs_control" for control-phy-otghs + "power", "pcie_pcs" and "control_sma" for control-phy-pcie + "power" for all other types + +omap_control_usb: omap-control-usb@4a002300 { + compatible = "ti,control-phy-otghs"; + reg = <0x4a00233c 0x4>; + reg-names = "otghs_control"; +}; + +TI PIPE3 PHY + +Required properties: + - compatible: Should be "ti,phy-usb3", "ti,phy-pipe3-sata" or + "ti,phy-pipe3-pcie. "ti,omap-usb3" is deprecated. + - reg : Address and length of the register set for the device. + - reg-names: The names of the register addresses corresponding to the registers + filled in "reg". + - #phy-cells: determine the number of cells that should be given in the + phandle while referencing this phy. + - clocks: a list of phandles and clock-specifier pairs, one for each entry in + clock-names. + - clock-names: should include: + * "wkupclk" - wakeup clock. + * "sysclk" - system clock. + * "refclk" - reference clock. + * "dpll_ref" - external dpll ref clk + * "dpll_ref_m2" - external dpll ref clk + * "phy-div" - divider for apll + * "div-clk" - apll clock + +Optional properties: + - id: If there are multiple instance of the same type, in order to + differentiate between each instance "id" can be used (e.g., multi-lane PCIe + PHY). If "id" is not provided, it is set to default value of '1'. + - syscon-pllreset: Handle to system control region that contains the + CTRL_CORE_SMA_SW_0 register and register offset to the CTRL_CORE_SMA_SW_0 + register that contains the SATA_PLL_SOFT_RESET bit. Only valid for sata_phy. + - syscon-pcs : phandle/offset pair. Phandle to the system control module and the + register offset to write the PCS delay value. + +Deprecated properties: + - ctrl-module : phandle of the control module used by PHY driver to power on + the PHY. + +Recommended properties: + - syscon-phy-power : phandle/offset pair. Phandle to the system control + module and the register offset to power on/off the PHY. + +This is usually a subnode of ocp2scp to which it is connected. + +usb3phy@4a084400 { + compatible = "ti,phy-usb3"; + reg = <0x4a084400 0x80>, + <0x4a084800 0x64>, + <0x4a084c00 0x40>; + reg-names = "phy_rx", "phy_tx", "pll_ctrl"; + ctrl-module = <&omap_control_usb>; + #phy-cells = <0>; + clocks = <&usb_phy_cm_clk32k>, + <&sys_clkin>, + <&usb_otg_ss_refclk960m>; + clock-names = "wkupclk", + "sysclk", + "refclk"; +}; + +sata_phy: phy@4a096000 { + compatible = "ti,phy-pipe3-sata"; + reg = <0x4A096000 0x80>, /* phy_rx */ + <0x4A096400 0x64>, /* phy_tx */ + <0x4A096800 0x40>; /* pll_ctrl */ + reg-names = "phy_rx", "phy_tx", "pll_ctrl"; + ctrl-module = <&omap_control_sata>; + clocks = <&sys_clkin1>, <&sata_ref_clk>; + clock-names = "sysclk", "refclk"; + syscon-pllreset = <&scm_conf 0x3fc>; + #phy-cells = <0>; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/aspeed,ast2400-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/aspeed,ast2400-pinctrl.yaml index a3be0cc30..23ed9a8b6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/aspeed,ast2400-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/aspeed,ast2400-pinctrl.yaml @@ -1,223 +1,223 @@ -# SPDX-License-Identifier: GPL-2.0-or-later -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/aspeed,ast2400-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ASPEED AST2400 Pin Controller - -maintainers: - - Andrew Jeffery - -description: |+ - The pin controller node should be the child of a syscon node with the - required property: - - - compatible: Should be one of the following: - "aspeed,ast2400-scu", "syscon", "simple-mfd" - - Refer to the bindings described in - Documentation/devicetree/bindings/mfd/syscon.yaml - -properties: - compatible: - const: aspeed,ast2400-pinctrl - reg: - maxItems: 2 - -additionalProperties: - $ref: pinmux-node.yaml# - additionalProperties: false - - properties: - pins: true - bias-disable: true - - patternProperties: - "^function|groups$": - enum: - - ACPI - - ADC0 - - ADC1 - - ADC10 - - ADC11 - - ADC12 - - ADC13 - - ADC14 - - ADC15 - - ADC2 - - ADC3 - - ADC4 - - ADC5 - - ADC6 - - ADC7 - - ADC8 - - ADC9 - - BMCINT - - DDCCLK - - DDCDAT - - EXTRST - - FLACK - - FLBUSY - - FLWP - - GPID - - GPID0 - - GPID2 - - GPID4 - - GPID6 - - GPIE0 - - GPIE2 - - GPIE4 - - GPIE6 - - I2C10 - - I2C11 - - I2C12 - - I2C13 - - I2C14 - - I2C3 - - I2C4 - - I2C5 - - I2C6 - - I2C7 - - I2C8 - - I2C9 - - LPCPD - - LPCPME - - LPCRST - - LPCSMI - - MAC1LINK - - MAC2LINK - - MDIO1 - - MDIO2 - - NCTS1 - - NCTS2 - - NCTS3 - - NCTS4 - - NDCD1 - - NDCD2 - - NDCD3 - - NDCD4 - - NDSR1 - - NDSR2 - - NDSR3 - - NDSR4 - - NDTR1 - - NDTR2 - - NDTR3 - - NDTR4 - - NDTS4 - - NRI1 - - NRI2 - - NRI3 - - NRI4 - - NRTS1 - - NRTS2 - - NRTS3 - - OSCCLK - - PWM0 - - PWM1 - - PWM2 - - PWM3 - - PWM4 - - PWM5 - - PWM6 - - PWM7 - - RGMII1 - - RGMII2 - - RMII1 - - RMII2 - - ROM16 - - ROM8 - - ROMCS1 - - ROMCS2 - - ROMCS3 - - ROMCS4 - - RXD1 - - RXD2 - - RXD3 - - RXD4 - - SALT1 - - SALT2 - - SALT3 - - SALT4 - - SD1 - - SD2 - - SGPMCK - - SGPMI - - SGPMLD - - SGPMO - - SGPSCK - - SGPSI0 - - SGPSI1 - - SGPSLD - - SIOONCTRL - - SIOPBI - - SIOPBO - - SIOPWREQ - - SIOPWRGD - - SIOS3 - - SIOS5 - - SIOSCI - - SPI1 - - SPI1DEBUG - - SPI1PASSTHRU - - SPICS1 - - TIMER3 - - TIMER4 - - TIMER5 - - TIMER6 - - TIMER7 - - TIMER8 - - TXD1 - - TXD2 - - TXD3 - - TXD4 - - UART6 - - USB11D1 - - USB11H2 - - USB2D1 - - USB2H1 - - USBCKI - - VGABIOS_ROM - - VGAHS - - VGAVS - - VPI18 - - VPI24 - - VPI30 - - VPO12 - - VPO24 - - WDTRST1 - - WDTRST2 - -allOf: - - $ref: pinctrl.yaml# - -required: - - compatible - -examples: - - | - syscon: scu@1e6e2000 { - compatible = "aspeed,ast2400-scu", "syscon", "simple-mfd"; - reg = <0x1e6e2000 0x1a8>; - #clock-cells = <1>; - #reset-cells = <1>; - - #address-cells = <1>; - #size-cells = <1>; - ranges = <0x0 0x1e6e2000 0x1000>; - - pinctrl: pinctrl { - compatible = "aspeed,ast2400-pinctrl"; - - pinctrl_i2c3_default: i2c3_default { - function = "I2C3"; - groups = "I2C3"; - }; - - pinctrl_gpioh0_unbiased_default: gpioh0 { - pins = "A8"; - bias-disable; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-or-later +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/aspeed,ast2400-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ASPEED AST2400 Pin Controller + +maintainers: + - Andrew Jeffery + +description: |+ + The pin controller node should be the child of a syscon node with the + required property: + + - compatible: Should be one of the following: + "aspeed,ast2400-scu", "syscon", "simple-mfd" + + Refer to the bindings described in + Documentation/devicetree/bindings/mfd/syscon.yaml + +properties: + compatible: + const: aspeed,ast2400-pinctrl + reg: + maxItems: 2 + +additionalProperties: + $ref: pinmux-node.yaml# + additionalProperties: false + + properties: + pins: true + bias-disable: true + + patternProperties: + "^function|groups$": + enum: + - ACPI + - ADC0 + - ADC1 + - ADC10 + - ADC11 + - ADC12 + - ADC13 + - ADC14 + - ADC15 + - ADC2 + - ADC3 + - ADC4 + - ADC5 + - ADC6 + - ADC7 + - ADC8 + - ADC9 + - BMCINT + - DDCCLK + - DDCDAT + - EXTRST + - FLACK + - FLBUSY + - FLWP + - GPID + - GPID0 + - GPID2 + - GPID4 + - GPID6 + - GPIE0 + - GPIE2 + - GPIE4 + - GPIE6 + - I2C10 + - I2C11 + - I2C12 + - I2C13 + - I2C14 + - I2C3 + - I2C4 + - I2C5 + - I2C6 + - I2C7 + - I2C8 + - I2C9 + - LPCPD + - LPCPME + - LPCRST + - LPCSMI + - MAC1LINK + - MAC2LINK + - MDIO1 + - MDIO2 + - NCTS1 + - NCTS2 + - NCTS3 + - NCTS4 + - NDCD1 + - NDCD2 + - NDCD3 + - NDCD4 + - NDSR1 + - NDSR2 + - NDSR3 + - NDSR4 + - NDTR1 + - NDTR2 + - NDTR3 + - NDTR4 + - NDTS4 + - NRI1 + - NRI2 + - NRI3 + - NRI4 + - NRTS1 + - NRTS2 + - NRTS3 + - OSCCLK + - PWM0 + - PWM1 + - PWM2 + - PWM3 + - PWM4 + - PWM5 + - PWM6 + - PWM7 + - RGMII1 + - RGMII2 + - RMII1 + - RMII2 + - ROM16 + - ROM8 + - ROMCS1 + - ROMCS2 + - ROMCS3 + - ROMCS4 + - RXD1 + - RXD2 + - RXD3 + - RXD4 + - SALT1 + - SALT2 + - SALT3 + - SALT4 + - SD1 + - SD2 + - SGPMCK + - SGPMI + - SGPMLD + - SGPMO + - SGPSCK + - SGPSI0 + - SGPSI1 + - SGPSLD + - SIOONCTRL + - SIOPBI + - SIOPBO + - SIOPWREQ + - SIOPWRGD + - SIOS3 + - SIOS5 + - SIOSCI + - SPI1 + - SPI1DEBUG + - SPI1PASSTHRU + - SPICS1 + - TIMER3 + - TIMER4 + - TIMER5 + - TIMER6 + - TIMER7 + - TIMER8 + - TXD1 + - TXD2 + - TXD3 + - TXD4 + - UART6 + - USB11D1 + - USB11H2 + - USB2D1 + - USB2H1 + - USBCKI + - VGABIOS_ROM + - VGAHS + - VGAVS + - VPI18 + - VPI24 + - VPI30 + - VPO12 + - VPO24 + - WDTRST1 + - WDTRST2 + +allOf: + - $ref: pinctrl.yaml# + +required: + - compatible + +examples: + - | + syscon: scu@1e6e2000 { + compatible = "aspeed,ast2400-scu", "syscon", "simple-mfd"; + reg = <0x1e6e2000 0x1a8>; + #clock-cells = <1>; + #reset-cells = <1>; + + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x1e6e2000 0x1000>; + + pinctrl: pinctrl { + compatible = "aspeed,ast2400-pinctrl"; + + pinctrl_i2c3_default: i2c3_default { + function = "I2C3"; + groups = "I2C3"; + }; + + pinctrl_gpioh0_unbiased_default: gpioh0 { + pins = "A8"; + bias-disable; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/awinic,aw9523-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/awinic,aw9523-pinctrl.yaml index bdd80ca66..98c310a3c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/awinic,aw9523-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/awinic,aw9523-pinctrl.yaml @@ -1,139 +1,139 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/awinic,aw9523-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Awinic AW9523/AW9523B I2C GPIO Expander - -maintainers: - - AngeloGioacchino Del Regno - -description: | - The Awinic AW9523/AW9523B I2C GPIO Expander featuring 16 multi-function - I/O, 256 steps PWM mode and interrupt support. - -properties: - compatible: - const: awinic,aw9523-pinctrl - - reg: - maxItems: 1 - - '#gpio-cells': - description: | - Specifying the pin number and flags, as defined in - include/dt-bindings/gpio/gpio.h - const: 2 - - gpio-controller: true - - gpio-ranges: - maxItems: 1 - - interrupt-controller: true - - interrupts: - maxItems: 1 - description: Specifies the INTN pin IRQ. - - '#interrupt-cells': - description: - Specifies the PIN numbers and Flags, as defined in defined in - include/dt-bindings/interrupt-controller/irq.h - const: 2 - - reset-gpios: - maxItems: 1 - -# PIN CONFIGURATION NODES -patternProperties: - '-pins$': - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: /schemas/pinctrl/pincfg-node.yaml - - properties: - pins: - description: - List of gpio pins affected by the properties specified in - this subnode. - items: - pattern: "^gpio([0-9]|1[0-5])$" - minItems: 1 - maxItems: 16 - - function: - description: - Specify the alternative function to be configured for the - specified pins. - - enum: [ gpio, pwm ] - - bias-disable: true - bias-pull-down: true - bias-pull-up: true - drive-open-drain: true - drive-push-pull: true - input-enable: true - input-disable: true - output-high: true - output-low: true - - required: - - pins - - function - - additionalProperties: false - -required: - - compatible - - reg - - gpio-controller - - '#gpio-cells' - - gpio-ranges - -additionalProperties: false - -examples: - # Example configuration to drive pins for a keyboard matrix - - | - #include - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - aw9523: gpio-expander@58 { - compatible = "awinic,aw9523-pinctrl"; - reg = <0x58>; - interrupt-parent = <&tlmm>; - interrupts = <50 IRQ_TYPE_EDGE_FALLING>; - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&tlmm 0 0 16>; - interrupt-controller; - #interrupt-cells = <2>; - reset-gpios = <&tlmm 51 GPIO_ACTIVE_HIGH>; - - keyboard-matrix-col-pins { - pins = "gpio8", "gpio9", "gpio10", "gpio11", - "gpio12", "gpio13", "gpio14", "gpio15"; - function = "gpio"; - input-disable; - output-low; - }; - - keyboard-matrix-row-pins { - pins = "gpio0", "gpio1", "gpio2", "gpio3", - "gpio4", "gpio5", "gpio6", "gpio7"; - function = "gpio"; - bias-pull-up; - drive-open-drain; - input-enable; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/awinic,aw9523-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Awinic AW9523/AW9523B I2C GPIO Expander + +maintainers: + - AngeloGioacchino Del Regno + +description: | + The Awinic AW9523/AW9523B I2C GPIO Expander featuring 16 multi-function + I/O, 256 steps PWM mode and interrupt support. + +properties: + compatible: + const: awinic,aw9523-pinctrl + + reg: + maxItems: 1 + + '#gpio-cells': + description: | + Specifying the pin number and flags, as defined in + include/dt-bindings/gpio/gpio.h + const: 2 + + gpio-controller: true + + gpio-ranges: + maxItems: 1 + + interrupt-controller: true + + interrupts: + maxItems: 1 + description: Specifies the INTN pin IRQ. + + '#interrupt-cells': + description: + Specifies the PIN numbers and Flags, as defined in defined in + include/dt-bindings/interrupt-controller/irq.h + const: 2 + + reset-gpios: + maxItems: 1 + +# PIN CONFIGURATION NODES +patternProperties: + '-pins$': + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: /schemas/pinctrl/pincfg-node.yaml + + properties: + pins: + description: + List of gpio pins affected by the properties specified in + this subnode. + items: + pattern: "^gpio([0-9]|1[0-5])$" + minItems: 1 + maxItems: 16 + + function: + description: + Specify the alternative function to be configured for the + specified pins. + + enum: [ gpio, pwm ] + + bias-disable: true + bias-pull-down: true + bias-pull-up: true + drive-open-drain: true + drive-push-pull: true + input-enable: true + input-disable: true + output-high: true + output-low: true + + required: + - pins + - function + + additionalProperties: false + +required: + - compatible + - reg + - gpio-controller + - '#gpio-cells' + - gpio-ranges + +additionalProperties: false + +examples: + # Example configuration to drive pins for a keyboard matrix + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + aw9523: gpio-expander@58 { + compatible = "awinic,aw9523-pinctrl"; + reg = <0x58>; + interrupt-parent = <&tlmm>; + interrupts = <50 IRQ_TYPE_EDGE_FALLING>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&tlmm 0 0 16>; + interrupt-controller; + #interrupt-cells = <2>; + reset-gpios = <&tlmm 51 GPIO_ACTIVE_HIGH>; + + keyboard-matrix-col-pins { + pins = "gpio8", "gpio9", "gpio10", "gpio11", + "gpio12", "gpio13", "gpio14", "gpio15"; + function = "gpio"; + input-disable; + output-low; + }; + + keyboard-matrix-row-pins { + pins = "gpio0", "gpio1", "gpio2", "gpio3", + "gpio4", "gpio5", "gpio6", "gpio7"; + function = "gpio"; + bias-pull-up; + drive-open-drain; + input-enable; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/brcm,bcm2835-gpio.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/brcm,bcm2835-gpio.txt index 79fcf08a5..5682b2010 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/brcm,bcm2835-gpio.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/brcm,bcm2835-gpio.txt @@ -1,99 +1,99 @@ -Broadcom BCM2835 GPIO (and pinmux) controller - -The BCM2835 GPIO module is a combined GPIO controller, (GPIO) interrupt -controller, and pinmux/control device. - -Required properties: -- compatible: "brcm,bcm2835-gpio" -- compatible: should be one of: - "brcm,bcm2835-gpio" - BCM2835 compatible pinctrl - "brcm,bcm7211-gpio" - BCM7211 compatible pinctrl - "brcm,bcm2711-gpio" - BCM2711 compatible pinctrl - "brcm,bcm7211-gpio" - BCM7211 compatible pinctrl -- reg: Should contain the physical address of the GPIO module's registers. -- gpio-controller: Marks the device node as a GPIO controller. -- #gpio-cells : Should be two. The first cell is the pin number and the - second cell is used to specify optional parameters: - - bit 0 specifies polarity (0 for normal, 1 for inverted) -- interrupts : The interrupt outputs from the controller. One interrupt per - individual bank followed by the "all banks" interrupt. For BCM7211, an - additional set of per-bank interrupt line and an "all banks" wake-up - interrupt may be specified. -- interrupt-controller: Marks the device node as an interrupt controller. -- #interrupt-cells : Should be 2. - The first cell is the GPIO number. - The second cell is used to specify flags: - bits[3:0] trigger type and level flags: - 1 = low-to-high edge triggered. - 2 = high-to-low edge triggered. - 4 = active high level-sensitive. - 8 = active low level-sensitive. - Valid combinations are 1, 2, 3, 4, 8. - -Please refer to ../gpio/gpio.txt for a general description of GPIO bindings. - -Please refer to pinctrl-bindings.txt in this directory for details of the -common pinctrl bindings used by client devices, including the meaning of the -phrase "pin configuration node". - -Each pin configuration node lists the pin(s) to which it applies, and one or -more of the mux function to select on those pin(s), and pull-up/down -configuration. Each subnode only affects those parameters that are explicitly -listed. In other words, a subnode that lists only a mux function implies no -information about any pull configuration. Similarly, a subnode that lists only -a pul parameter implies no information about the mux function. - -The BCM2835 pin configuration and multiplexing supports the generic bindings. -For details on each properties, you can refer to ./pinctrl-bindings.txt. - -Required sub-node properties: - - pins - - function - -Optional sub-node properties: - - bias-disable - - bias-pull-up - - bias-pull-down - - output-high - - output-low - -Legacy pin configuration and multiplexing binding: -*** (Its use is deprecated, use generic multiplexing and configuration -bindings instead) - -Required subnode-properties: -- brcm,pins: An array of cells. Each cell contains the ID of a pin. Valid IDs - are the integer GPIO IDs; 0==GPIO0, 1==GPIO1, ... 53==GPIO53. - -Optional subnode-properties: -- brcm,function: Integer, containing the function to mux to the pin(s): - 0: GPIO in - 1: GPIO out - 2: alt5 - 3: alt4 - 4: alt0 - 5: alt1 - 6: alt2 - 7: alt3 -- brcm,pull: Integer, representing the pull-down/up to apply to the pin(s): - 0: none - 1: down - 2: up - -Each of brcm,function and brcm,pull may contain either a single value which -will be applied to all pins in brcm,pins, or 1 value for each entry in -brcm,pins. - -Example: - - gpio: gpio { - compatible = "brcm,bcm2835-gpio"; - reg = <0x2200000 0xb4>; - interrupts = <2 17>, <2 19>, <2 18>, <2 20>; - - gpio-controller; - #gpio-cells = <2>; - - interrupt-controller; - #interrupt-cells = <2>; - }; +Broadcom BCM2835 GPIO (and pinmux) controller + +The BCM2835 GPIO module is a combined GPIO controller, (GPIO) interrupt +controller, and pinmux/control device. + +Required properties: +- compatible: "brcm,bcm2835-gpio" +- compatible: should be one of: + "brcm,bcm2835-gpio" - BCM2835 compatible pinctrl + "brcm,bcm7211-gpio" - BCM7211 compatible pinctrl + "brcm,bcm2711-gpio" - BCM2711 compatible pinctrl + "brcm,bcm7211-gpio" - BCM7211 compatible pinctrl +- reg: Should contain the physical address of the GPIO module's registers. +- gpio-controller: Marks the device node as a GPIO controller. +- #gpio-cells : Should be two. The first cell is the pin number and the + second cell is used to specify optional parameters: + - bit 0 specifies polarity (0 for normal, 1 for inverted) +- interrupts : The interrupt outputs from the controller. One interrupt per + individual bank followed by the "all banks" interrupt. For BCM7211, an + additional set of per-bank interrupt line and an "all banks" wake-up + interrupt may be specified. +- interrupt-controller: Marks the device node as an interrupt controller. +- #interrupt-cells : Should be 2. + The first cell is the GPIO number. + The second cell is used to specify flags: + bits[3:0] trigger type and level flags: + 1 = low-to-high edge triggered. + 2 = high-to-low edge triggered. + 4 = active high level-sensitive. + 8 = active low level-sensitive. + Valid combinations are 1, 2, 3, 4, 8. + +Please refer to ../gpio/gpio.txt for a general description of GPIO bindings. + +Please refer to pinctrl-bindings.txt in this directory for details of the +common pinctrl bindings used by client devices, including the meaning of the +phrase "pin configuration node". + +Each pin configuration node lists the pin(s) to which it applies, and one or +more of the mux function to select on those pin(s), and pull-up/down +configuration. Each subnode only affects those parameters that are explicitly +listed. In other words, a subnode that lists only a mux function implies no +information about any pull configuration. Similarly, a subnode that lists only +a pul parameter implies no information about the mux function. + +The BCM2835 pin configuration and multiplexing supports the generic bindings. +For details on each properties, you can refer to ./pinctrl-bindings.txt. + +Required sub-node properties: + - pins + - function + +Optional sub-node properties: + - bias-disable + - bias-pull-up + - bias-pull-down + - output-high + - output-low + +Legacy pin configuration and multiplexing binding: +*** (Its use is deprecated, use generic multiplexing and configuration +bindings instead) + +Required subnode-properties: +- brcm,pins: An array of cells. Each cell contains the ID of a pin. Valid IDs + are the integer GPIO IDs; 0==GPIO0, 1==GPIO1, ... 53==GPIO53. + +Optional subnode-properties: +- brcm,function: Integer, containing the function to mux to the pin(s): + 0: GPIO in + 1: GPIO out + 2: alt5 + 3: alt4 + 4: alt0 + 5: alt1 + 6: alt2 + 7: alt3 +- brcm,pull: Integer, representing the pull-down/up to apply to the pin(s): + 0: none + 1: down + 2: up + +Each of brcm,function and brcm,pull may contain either a single value which +will be applied to all pins in brcm,pins, or 1 value for each entry in +brcm,pins. + +Example: + + gpio: gpio { + compatible = "brcm,bcm2835-gpio"; + reg = <0x2200000 0xb4>; + interrupts = <2 17>, <2 19>, <2 18>, <2 20>; + + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml index e79a8e0c5..62890a0ae 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml @@ -1,151 +1,151 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/brcm,bcm6318-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Broadcom BCM6318 pin controller - -maintainers: - - Álvaro Fernández Rojas - - Jonas Gorski - -description: - Bindings for Broadcom's BCM6318 memory-mapped pin controller. - -properties: - compatible: - const: brcm,bcm6318-pinctrl - - reg: - maxItems: 2 - -patternProperties: - '-pins$': - type: object - $ref: pinmux-node.yaml# - additionalProperties: false - - properties: - function: - enum: [ ephy0_spd_led, ephy1_spd_led, ephy2_spd_led, ephy3_spd_led, - ephy0_act_led, ephy1_act_led, ephy2_act_led, ephy3_act_led, - serial_led_data, serial_led_clk, inet_act_led, inet_fail_led, - dsl_led, post_fail_led, wlan_wps_led, usb_pwron, - usb_device_led, usb_active ] - - pins: - enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7, - gpio8, gpio9, gpio10, gpio11, gpio12, gpio13, gpio40 ] - - patternProperties: - '-pins$': - $ref: '#/patternProperties/-pins$' - -allOf: - - $ref: pinctrl.yaml# - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - pinctrl@18 { - compatible = "brcm,bcm6318-pinctrl"; - reg = <0x18 0x10>, <0x54 0x18>; - - pinctrl_ephy0_spd_led: ephy0_spd_led-pins { - function = "ephy0_spd_led"; - pins = "gpio0"; - }; - - pinctrl_ephy1_spd_led: ephy1_spd_led-pins { - function = "ephy1_spd_led"; - pins = "gpio1"; - }; - - pinctrl_ephy2_spd_led: ephy2_spd_led-pins { - function = "ephy2_spd_led"; - pins = "gpio2"; - }; - - pinctrl_ephy3_spd_led: ephy3_spd_led-pins { - function = "ephy3_spd_led"; - pins = "gpio3"; - }; - - pinctrl_ephy0_act_led: ephy0_act_led-pins { - function = "ephy0_act_led"; - pins = "gpio4"; - }; - - pinctrl_ephy1_act_led: ephy1_act_led-pins { - function = "ephy1_act_led"; - pins = "gpio5"; - }; - - pinctrl_ephy2_act_led: ephy2_act_led-pins { - function = "ephy2_act_led"; - pins = "gpio6"; - }; - - pinctrl_ephy3_act_led: ephy3_act_led-pins { - function = "ephy3_act_led"; - pins = "gpio7"; - }; - - pinctrl_serial_led: serial_led-pins { - pinctrl_serial_led_data: serial_led_data-pins { - function = "serial_led_data"; - pins = "gpio6"; - }; - - pinctrl_serial_led_clk: serial_led_clk-pins { - function = "serial_led_clk"; - pins = "gpio7"; - }; - }; - - pinctrl_inet_act_led: inet_act_led-pins { - function = "inet_act_led"; - pins = "gpio8"; - }; - - pinctrl_inet_fail_led: inet_fail_led-pins { - function = "inet_fail_led"; - pins = "gpio9"; - }; - - pinctrl_dsl_led: dsl_led-pins { - function = "dsl_led"; - pins = "gpio10"; - }; - - pinctrl_post_fail_led: post_fail_led-pins { - function = "post_fail_led"; - pins = "gpio11"; - }; - - pinctrl_wlan_wps_led: wlan_wps_led-pins { - function = "wlan_wps_led"; - pins = "gpio12"; - }; - - pinctrl_usb_pwron: usb_pwron-pins { - function = "usb_pwron"; - pins = "gpio13"; - }; - - pinctrl_usb_device_led: usb_device_led-pins { - function = "usb_device_led"; - pins = "gpio13"; - }; - - pinctrl_usb_active: usb_active-pins { - function = "usb_active"; - pins = "gpio40"; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/brcm,bcm6318-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM6318 pin controller + +maintainers: + - Álvaro Fernández Rojas + - Jonas Gorski + +description: + Bindings for Broadcom's BCM6318 memory-mapped pin controller. + +properties: + compatible: + const: brcm,bcm6318-pinctrl + + reg: + maxItems: 2 + +patternProperties: + '-pins$': + type: object + $ref: pinmux-node.yaml# + additionalProperties: false + + properties: + function: + enum: [ ephy0_spd_led, ephy1_spd_led, ephy2_spd_led, ephy3_spd_led, + ephy0_act_led, ephy1_act_led, ephy2_act_led, ephy3_act_led, + serial_led_data, serial_led_clk, inet_act_led, inet_fail_led, + dsl_led, post_fail_led, wlan_wps_led, usb_pwron, + usb_device_led, usb_active ] + + pins: + enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7, + gpio8, gpio9, gpio10, gpio11, gpio12, gpio13, gpio40 ] + + patternProperties: + '-pins$': + $ref: '#/patternProperties/-pins$' + +allOf: + - $ref: pinctrl.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pinctrl@18 { + compatible = "brcm,bcm6318-pinctrl"; + reg = <0x18 0x10>, <0x54 0x18>; + + pinctrl_ephy0_spd_led: ephy0_spd_led-pins { + function = "ephy0_spd_led"; + pins = "gpio0"; + }; + + pinctrl_ephy1_spd_led: ephy1_spd_led-pins { + function = "ephy1_spd_led"; + pins = "gpio1"; + }; + + pinctrl_ephy2_spd_led: ephy2_spd_led-pins { + function = "ephy2_spd_led"; + pins = "gpio2"; + }; + + pinctrl_ephy3_spd_led: ephy3_spd_led-pins { + function = "ephy3_spd_led"; + pins = "gpio3"; + }; + + pinctrl_ephy0_act_led: ephy0_act_led-pins { + function = "ephy0_act_led"; + pins = "gpio4"; + }; + + pinctrl_ephy1_act_led: ephy1_act_led-pins { + function = "ephy1_act_led"; + pins = "gpio5"; + }; + + pinctrl_ephy2_act_led: ephy2_act_led-pins { + function = "ephy2_act_led"; + pins = "gpio6"; + }; + + pinctrl_ephy3_act_led: ephy3_act_led-pins { + function = "ephy3_act_led"; + pins = "gpio7"; + }; + + pinctrl_serial_led: serial_led-pins { + pinctrl_serial_led_data: serial_led_data-pins { + function = "serial_led_data"; + pins = "gpio6"; + }; + + pinctrl_serial_led_clk: serial_led_clk-pins { + function = "serial_led_clk"; + pins = "gpio7"; + }; + }; + + pinctrl_inet_act_led: inet_act_led-pins { + function = "inet_act_led"; + pins = "gpio8"; + }; + + pinctrl_inet_fail_led: inet_fail_led-pins { + function = "inet_fail_led"; + pins = "gpio9"; + }; + + pinctrl_dsl_led: dsl_led-pins { + function = "dsl_led"; + pins = "gpio10"; + }; + + pinctrl_post_fail_led: post_fail_led-pins { + function = "post_fail_led"; + pins = "gpio11"; + }; + + pinctrl_wlan_wps_led: wlan_wps_led-pins { + function = "wlan_wps_led"; + pins = "gpio12"; + }; + + pinctrl_usb_pwron: usb_pwron-pins { + function = "usb_pwron"; + pins = "gpio13"; + }; + + pinctrl_usb_device_led: usb_device_led-pins { + function = "usb_device_led"; + pins = "gpio13"; + }; + + pinctrl_usb_active: usb_active-pins { + function = "usb_active"; + pins = "gpio40"; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/brcm,bcm63268-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/brcm,bcm63268-pinctrl.yaml index 6b766571a..7cc0e1650 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/brcm,bcm63268-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/brcm,bcm63268-pinctrl.yaml @@ -1,172 +1,172 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/brcm,bcm63268-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Broadcom BCM63268 pin controller - -maintainers: - - Álvaro Fernández Rojas - - Jonas Gorski - -description: - Bindings for Broadcom's BCM63268 memory-mapped pin controller. - -properties: - compatible: - const: brcm,bcm63268-pinctrl - - reg: - maxItems: 3 - -patternProperties: - '-pins$': - type: object - $ref: pinmux-node.yaml# - unevaluatedProperties: false - - properties: - function: - enum: [ serial_led_clk, serial_led_data, hsspi_cs4, hsspi_cs5, - hsspi_cs6, hsspi_cs7, adsl_spi_miso, adsl_spi_mosi, - vreq_clk, pcie_clkreq_b, robosw_led_clk, robosw_led_data, - nand, gpio35_alt, dectpd, vdsl_phy_override_0, - vdsl_phy_override_1, vdsl_phy_override_2, - vdsl_phy_override_3, dsl_gpio8, dsl_gpio9 ] - - pins: - enum: [ gpio0, gpio1, gpio16, gpio17, gpio8, gpio9, gpio18, gpio19, - gpio22, gpio23, gpio30, gpio31, nand_grp, gpio35, - dectpd_grp, vdsl_phy_override_0_grp, - vdsl_phy_override_1_grp, vdsl_phy_override_2_grp, - vdsl_phy_override_3_grp, dsl_gpio8, dsl_gpio9 ] - - patternProperties: - '-pins$': - $ref: '#/patternProperties/-pins$' - -allOf: - - $ref: pinctrl.yaml# - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - pinctrl@10 { - compatible = "brcm,bcm63268-pinctrl"; - reg = <0x10 0x4>, <0x18 0x8>, <0x38 0x4>; - - pinctrl_serial_led: serial_led-pins { - pinctrl_serial_led_clk: serial_led_clk-pins { - function = "serial_led_clk"; - pins = "gpio0"; - }; - - pinctrl_serial_led_data: serial_led_data-pins { - function = "serial_led_data"; - pins = "gpio1"; - }; - }; - - pinctrl_hsspi_cs4: hsspi_cs4-pins { - function = "hsspi_cs4"; - pins = "gpio16"; - }; - - pinctrl_hsspi_cs5: hsspi_cs5-pins { - function = "hsspi_cs5"; - pins = "gpio17"; - }; - - pinctrl_hsspi_cs6: hsspi_cs6-pins { - function = "hsspi_cs6"; - pins = "gpio8"; - }; - - pinctrl_hsspi_cs7: hsspi_cs7-pins { - function = "hsspi_cs7"; - pins = "gpio9"; - }; - - pinctrl_adsl_spi: adsl_spi-pins { - pinctrl_adsl_spi_miso: adsl_spi_miso-pins { - function = "adsl_spi_miso"; - pins = "gpio18"; - }; - - pinctrl_adsl_spi_mosi: adsl_spi_mosi-pins { - function = "adsl_spi_mosi"; - pins = "gpio19"; - }; - }; - - pinctrl_vreq_clk: vreq_clk-pins { - function = "vreq_clk"; - pins = "gpio22"; - }; - - pinctrl_pcie_clkreq_b: pcie_clkreq_b-pins { - function = "pcie_clkreq_b"; - pins = "gpio23"; - }; - - pinctrl_robosw_led_clk: robosw_led_clk-pins { - function = "robosw_led_clk"; - pins = "gpio30"; - }; - - pinctrl_robosw_led_data: robosw_led_data-pins { - function = "robosw_led_data"; - pins = "gpio31"; - }; - - pinctrl_nand: nand-pins { - function = "nand"; - pins = "nand_grp"; - }; - - pinctrl_gpio35_alt: gpio35_alt-pins { - function = "gpio35_alt"; - pins = "gpio35"; - }; - - pinctrl_dectpd: dectpd-pins { - function = "dectpd"; - pins = "dectpd_grp"; - }; - - pinctrl_vdsl_phy_override_0: vdsl_phy_override_0-pins { - function = "vdsl_phy_override_0"; - pins = "vdsl_phy_override_0_grp"; - }; - - pinctrl_vdsl_phy_override_1: vdsl_phy_override_1-pins { - function = "vdsl_phy_override_1"; - pins = "vdsl_phy_override_1_grp"; - }; - - pinctrl_vdsl_phy_override_2: vdsl_phy_override_2-pins { - function = "vdsl_phy_override_2"; - pins = "vdsl_phy_override_2_grp"; - }; - - pinctrl_vdsl_phy_override_3: vdsl_phy_override_3-pins { - function = "vdsl_phy_override_3"; - pins = "vdsl_phy_override_3_grp"; - }; - - pinctrl_dsl_gpio8: dsl_gpio8-pins { - function = "dsl_gpio8"; - pins = "dsl_gpio8"; - }; - - pinctrl_dsl_gpio9: dsl_gpio9-pins { - function = "dsl_gpio9"; - pins = "dsl_gpio9"; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/brcm,bcm63268-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM63268 pin controller + +maintainers: + - Álvaro Fernández Rojas + - Jonas Gorski + +description: + Bindings for Broadcom's BCM63268 memory-mapped pin controller. + +properties: + compatible: + const: brcm,bcm63268-pinctrl + + reg: + maxItems: 3 + +patternProperties: + '-pins$': + type: object + $ref: pinmux-node.yaml# + unevaluatedProperties: false + + properties: + function: + enum: [ serial_led_clk, serial_led_data, hsspi_cs4, hsspi_cs5, + hsspi_cs6, hsspi_cs7, adsl_spi_miso, adsl_spi_mosi, + vreq_clk, pcie_clkreq_b, robosw_led_clk, robosw_led_data, + nand, gpio35_alt, dectpd, vdsl_phy_override_0, + vdsl_phy_override_1, vdsl_phy_override_2, + vdsl_phy_override_3, dsl_gpio8, dsl_gpio9 ] + + pins: + enum: [ gpio0, gpio1, gpio16, gpio17, gpio8, gpio9, gpio18, gpio19, + gpio22, gpio23, gpio30, gpio31, nand_grp, gpio35, + dectpd_grp, vdsl_phy_override_0_grp, + vdsl_phy_override_1_grp, vdsl_phy_override_2_grp, + vdsl_phy_override_3_grp, dsl_gpio8, dsl_gpio9 ] + + patternProperties: + '-pins$': + $ref: '#/patternProperties/-pins$' + +allOf: + - $ref: pinctrl.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pinctrl@10 { + compatible = "brcm,bcm63268-pinctrl"; + reg = <0x10 0x4>, <0x18 0x8>, <0x38 0x4>; + + pinctrl_serial_led: serial_led-pins { + pinctrl_serial_led_clk: serial_led_clk-pins { + function = "serial_led_clk"; + pins = "gpio0"; + }; + + pinctrl_serial_led_data: serial_led_data-pins { + function = "serial_led_data"; + pins = "gpio1"; + }; + }; + + pinctrl_hsspi_cs4: hsspi_cs4-pins { + function = "hsspi_cs4"; + pins = "gpio16"; + }; + + pinctrl_hsspi_cs5: hsspi_cs5-pins { + function = "hsspi_cs5"; + pins = "gpio17"; + }; + + pinctrl_hsspi_cs6: hsspi_cs6-pins { + function = "hsspi_cs6"; + pins = "gpio8"; + }; + + pinctrl_hsspi_cs7: hsspi_cs7-pins { + function = "hsspi_cs7"; + pins = "gpio9"; + }; + + pinctrl_adsl_spi: adsl_spi-pins { + pinctrl_adsl_spi_miso: adsl_spi_miso-pins { + function = "adsl_spi_miso"; + pins = "gpio18"; + }; + + pinctrl_adsl_spi_mosi: adsl_spi_mosi-pins { + function = "adsl_spi_mosi"; + pins = "gpio19"; + }; + }; + + pinctrl_vreq_clk: vreq_clk-pins { + function = "vreq_clk"; + pins = "gpio22"; + }; + + pinctrl_pcie_clkreq_b: pcie_clkreq_b-pins { + function = "pcie_clkreq_b"; + pins = "gpio23"; + }; + + pinctrl_robosw_led_clk: robosw_led_clk-pins { + function = "robosw_led_clk"; + pins = "gpio30"; + }; + + pinctrl_robosw_led_data: robosw_led_data-pins { + function = "robosw_led_data"; + pins = "gpio31"; + }; + + pinctrl_nand: nand-pins { + function = "nand"; + pins = "nand_grp"; + }; + + pinctrl_gpio35_alt: gpio35_alt-pins { + function = "gpio35_alt"; + pins = "gpio35"; + }; + + pinctrl_dectpd: dectpd-pins { + function = "dectpd"; + pins = "dectpd_grp"; + }; + + pinctrl_vdsl_phy_override_0: vdsl_phy_override_0-pins { + function = "vdsl_phy_override_0"; + pins = "vdsl_phy_override_0_grp"; + }; + + pinctrl_vdsl_phy_override_1: vdsl_phy_override_1-pins { + function = "vdsl_phy_override_1"; + pins = "vdsl_phy_override_1_grp"; + }; + + pinctrl_vdsl_phy_override_2: vdsl_phy_override_2-pins { + function = "vdsl_phy_override_2"; + pins = "vdsl_phy_override_2_grp"; + }; + + pinctrl_vdsl_phy_override_3: vdsl_phy_override_3-pins { + function = "vdsl_phy_override_3"; + pins = "vdsl_phy_override_3_grp"; + }; + + pinctrl_dsl_gpio8: dsl_gpio8-pins { + function = "dsl_gpio8"; + pins = "dsl_gpio8"; + }; + + pinctrl_dsl_gpio9: dsl_gpio9-pins { + function = "dsl_gpio9"; + pins = "dsl_gpio9"; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml index 5d4fe1836..482acda88 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml @@ -1,114 +1,114 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/cirrus,madera.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Cirrus Logic Madera class audio CODECs pinctrl driver - -maintainers: - - patches@opensource.cirrus.com - -description: | - The Cirrus Logic Madera codecs provide a number of GPIO functions for - interfacing to external hardware and to provide logic outputs to other devices. - Certain groups of GPIO pins also have an alternate function, normally as an - audio interface. - - The set of available GPIOs, functions and alternate function groups differs - between CODECs so refer to the datasheet for the CODEC for further information - on what is supported on that device. - - The properties for this driver exist within the parent MFD driver node. - - See also the core bindings for the parent MFD driver: - - Documentation/devicetree/bindings/mfd/cirrus,madera.yaml - - And the generic pinmix bindings: - - Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt - -properties: - pin-settings: - description: - One subnode is required to contain the default settings. It - contains an arbitrary number of configuration subnodes, one for - each group or pin configuration you want to apply as a default. - type: object - patternProperties: - '-pins$': - type: object - allOf: - - $ref: pincfg-node.yaml# - - $ref: pinmux-node.yaml# - properties: - groups: - description: - Name of one pin group to configure. - enum: [ aif1, aif2, aif3, aif4, mif1, mif2, mif3, pdmspk1, - pdmspk2, dmic4, dmic5, dmic6, gpio1, gpio2, gpio3, - gpio4, gpio5, gpio6, gpio7, gpio8, gpio9, - gpio10, gpio11, gpio12, gpio13, gpio14, gpio15, - gpio16, gpio17, gpio18, gpio19, gpio20, gpio21, - gpio22, gpio23, gpio24, gpio25, gpio26, gpio27, - gpio28, gpio29, gpio30, gpio31, gpio32, gpio33, - gpio34, gpio35, gpio36, gpio37, gpio38, gpio39 ] - - function: - description: - Name of function to assign to this group. - enum: [ aif1, aif2, aif3, aif4, mif1, mif2, mif3, - pdmspk1, pdmspk2, dmic3, dmic4, dmic5, - dmic6, io, dsp-gpio, irq1, irq2, fll1-clk, - fll1-lock, fll2-clk, fll2-lock, fll3-clk, - fll3-lock, fllao-clk, fllao-lock, opclk, - opclk-async, pwm1, pwm2, spdif, asrc1-in1-lock, - asrc1-in2-lock, asrc2-in1-lock, asrc2-in2-lock, - spkl-short-circuit, spkr-short-circuit, - spk-shutdown, spk-overheat-shutdown, - spk-overheat-warn, timer1-sts, timer2-sts, - timer3-sts, timer4-sts, timer5-sts, timer6-sts, - timer7-sts, timer8-sts, log1-fifo-ne, - log2-fifo-ne, log3-fifo-ne, log4-fifo-ne, - log5-fifo-ne, log6-fifo-ne, log7-fifo-ne, - log8-fifo-ne ] - - bias-disable: true - - bias-bus-hold: true - - bias-pull-up: true - - bias-pull-down: true - - drive-push-pull: true - - drive-open-drain: true - - drive-strength: - enum: [ 4, 8 ] - - input-schmitt-enable: true - - input-schmitt-disable: true - - input-debounce: - maxItems: 1 - - output-low: true - - output-high: true - - additionalProperties: false - - required: - - groups - - additionalProperties: false - -required: - - pinctrl-0 - - pinctrl-names - -additionalProperties: true +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/cirrus,madera.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus Logic Madera class audio CODECs pinctrl driver + +maintainers: + - patches@opensource.cirrus.com + +description: | + The Cirrus Logic Madera codecs provide a number of GPIO functions for + interfacing to external hardware and to provide logic outputs to other devices. + Certain groups of GPIO pins also have an alternate function, normally as an + audio interface. + + The set of available GPIOs, functions and alternate function groups differs + between CODECs so refer to the datasheet for the CODEC for further information + on what is supported on that device. + + The properties for this driver exist within the parent MFD driver node. + + See also the core bindings for the parent MFD driver: + + Documentation/devicetree/bindings/mfd/cirrus,madera.yaml + + And the generic pinmix bindings: + + Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt + +properties: + pin-settings: + description: + One subnode is required to contain the default settings. It + contains an arbitrary number of configuration subnodes, one for + each group or pin configuration you want to apply as a default. + type: object + patternProperties: + '-pins$': + type: object + allOf: + - $ref: pincfg-node.yaml# + - $ref: pinmux-node.yaml# + properties: + groups: + description: + Name of one pin group to configure. + enum: [ aif1, aif2, aif3, aif4, mif1, mif2, mif3, pdmspk1, + pdmspk2, dmic4, dmic5, dmic6, gpio1, gpio2, gpio3, + gpio4, gpio5, gpio6, gpio7, gpio8, gpio9, + gpio10, gpio11, gpio12, gpio13, gpio14, gpio15, + gpio16, gpio17, gpio18, gpio19, gpio20, gpio21, + gpio22, gpio23, gpio24, gpio25, gpio26, gpio27, + gpio28, gpio29, gpio30, gpio31, gpio32, gpio33, + gpio34, gpio35, gpio36, gpio37, gpio38, gpio39 ] + + function: + description: + Name of function to assign to this group. + enum: [ aif1, aif2, aif3, aif4, mif1, mif2, mif3, + pdmspk1, pdmspk2, dmic3, dmic4, dmic5, + dmic6, io, dsp-gpio, irq1, irq2, fll1-clk, + fll1-lock, fll2-clk, fll2-lock, fll3-clk, + fll3-lock, fllao-clk, fllao-lock, opclk, + opclk-async, pwm1, pwm2, spdif, asrc1-in1-lock, + asrc1-in2-lock, asrc2-in1-lock, asrc2-in2-lock, + spkl-short-circuit, spkr-short-circuit, + spk-shutdown, spk-overheat-shutdown, + spk-overheat-warn, timer1-sts, timer2-sts, + timer3-sts, timer4-sts, timer5-sts, timer6-sts, + timer7-sts, timer8-sts, log1-fifo-ne, + log2-fifo-ne, log3-fifo-ne, log4-fifo-ne, + log5-fifo-ne, log6-fifo-ne, log7-fifo-ne, + log8-fifo-ne ] + + bias-disable: true + + bias-bus-hold: true + + bias-pull-up: true + + bias-pull-down: true + + drive-push-pull: true + + drive-open-drain: true + + drive-strength: + enum: [ 4, 8 ] + + input-schmitt-enable: true + + input-schmitt-disable: true + + input-debounce: + maxItems: 1 + + output-low: true + + output-high: true + + additionalProperties: false + + required: + - groups + + additionalProperties: false + +required: + - pinctrl-0 + - pinctrl-names + +additionalProperties: true diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml index e2c530248..700ac86c2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml @@ -1,158 +1,158 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/cypress,cy8c95x0.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Cypress CY8C95X0 I2C GPIO expander - -maintainers: - - Patrick Rudolph - -description: | - This supports the 20/40/60 pin Cypress CYC95x0 GPIO I2C expanders. - Pin function configuration is performed on a per-pin basis. - -properties: - compatible: - enum: - - cypress,cy8c9520 - - cypress,cy8c9540 - - cypress,cy8c9560 - - reg: - maxItems: 1 - - gpio-controller: true - - '#gpio-cells': - description: - The first cell is the GPIO number and the second cell specifies GPIO - flags, as defined in . - const: 2 - - interrupts: - maxItems: 1 - - interrupt-controller: true - - '#interrupt-cells': - const: 2 - - gpio-line-names: true - - gpio-ranges: - maxItems: 1 - - gpio-reserved-ranges: - minItems: 1 - maxItems: 60 - - vdd-supply: - description: - Optional power supply. - - reset-gpios: - description: GPIO connected to the XRES pin - maxItems: 1 - -patternProperties: - '-pins$': - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: pincfg-node.yaml# - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - pattern: '^gp([0-7][0-7])$' - minItems: 1 - maxItems: 60 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - enum: [ gpio, pwm ] - - bias-pull-down: true - - bias-pull-up: true - - bias-disable: true - - input-enable: true - - output-high: true - - output-low: true - - drive-push-pull: true - - drive-open-drain: true - - drive-open-source: true - - required: - - pins - - function - - additionalProperties: false - -required: - - compatible - - reg - - interrupts - - interrupt-controller - - '#interrupt-cells' - - gpio-controller - - '#gpio-cells' - -additionalProperties: false - -allOf: - - $ref: pinctrl.yaml# - -examples: - - | - #include - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - pinctrl@20 { - compatible = "cypress,cy8c9520"; - reg = <0x20>; - gpio-controller; - #gpio-cells = <2>; - #interrupt-cells = <2>; - interrupts = ; - interrupt-controller; - vdd-supply = <&p3v3>; - gpio-reserved-ranges = <1 2>, <6 1>, <10 1>, <15 1>; - - pinctrl-0 = <&U62160_pins>, <&U62160_ipins>; - pinctrl-names = "default"; - - U62160_pins: cfg-pins { - pins = "gp03", "gp16", "gp20", "gp50", "gp51"; - function = "gpio"; - input-enable; - bias-pull-up; - }; - - U62160_ipins: icfg-pins { - pins = "gp04", "gp17", "gp21", "gp52", "gp53"; - function = "gpio"; - input-enable; - bias-pull-up; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/cypress,cy8c95x0.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cypress CY8C95X0 I2C GPIO expander + +maintainers: + - Patrick Rudolph + +description: | + This supports the 20/40/60 pin Cypress CYC95x0 GPIO I2C expanders. + Pin function configuration is performed on a per-pin basis. + +properties: + compatible: + enum: + - cypress,cy8c9520 + - cypress,cy8c9540 + - cypress,cy8c9560 + + reg: + maxItems: 1 + + gpio-controller: true + + '#gpio-cells': + description: + The first cell is the GPIO number and the second cell specifies GPIO + flags, as defined in . + const: 2 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + + gpio-line-names: true + + gpio-ranges: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 60 + + vdd-supply: + description: + Optional power supply. + + reset-gpios: + description: GPIO connected to the XRES pin + maxItems: 1 + +patternProperties: + '-pins$': + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: pincfg-node.yaml# + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + pattern: '^gp([0-7][0-7])$' + minItems: 1 + maxItems: 60 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + enum: [ gpio, pwm ] + + bias-pull-down: true + + bias-pull-up: true + + bias-disable: true + + input-enable: true + + output-high: true + + output-low: true + + drive-push-pull: true + + drive-open-drain: true + + drive-open-source: true + + required: + - pins + - function + + additionalProperties: false + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - '#interrupt-cells' + - gpio-controller + - '#gpio-cells' + +additionalProperties: false + +allOf: + - $ref: pinctrl.yaml# + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pinctrl@20 { + compatible = "cypress,cy8c9520"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + #interrupt-cells = <2>; + interrupts = ; + interrupt-controller; + vdd-supply = <&p3v3>; + gpio-reserved-ranges = <1 2>, <6 1>, <10 1>, <15 1>; + + pinctrl-0 = <&U62160_pins>, <&U62160_ipins>; + pinctrl-names = "default"; + + U62160_pins: cfg-pins { + pins = "gp03", "gp16", "gp20", "gp50", "gp51"; + function = "gpio"; + input-enable; + bias-pull-up; + }; + + U62160_ipins: icfg-pins { + pins = "gp04", "gp17", "gp21", "gp52", "gp53"; + function = "gpio"; + input-enable; + bias-pull-up; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt index 8cf6d93d3..a1050b598 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt @@ -1,93 +1,93 @@ -* Freescale IOMUX Controller (IOMUXC) for i.MX - -The IOMUX Controller (IOMUXC), together with the IOMUX, enables the IC -to share one PAD to several functional blocks. The sharing is done by -multiplexing the PAD input/output signals. For each PAD there are up to -8 muxing options (called ALT modes). Since different modules require -different PAD settings (like pull up, keeper, etc) the IOMUXC controls -also the PAD settings parameters. - -Please refer to pinctrl-bindings.txt in this directory for details of the -common pinctrl bindings used by client devices, including the meaning of the -phrase "pin configuration node". - -Freescale IMX pin configuration node is a node of a group of pins which can be -used for a specific device or function. This node represents both mux and config -of the pins in that group. The 'mux' selects the function mode(also named mux -mode) this pin can work on and the 'config' configures various pad settings -such as pull-up, open drain, drive strength, etc. - -Required properties for iomux controller: -- compatible: "fsl,-iomuxc" - Please refer to each fsl,-pinctrl.txt binding doc for supported SoCs. - -Required properties for pin configuration node: -- fsl,pins: each entry consists of 6 integers and represents the mux and config - setting for one pin. The first 5 integers are specified using a PIN_FUNC_ID macro, which can be found in - imx*-pinfunc.h under device tree source folder. The last integer CONFIG is - the pad setting value like pull-up on this pin. And that's why fsl,pins entry - looks like in the example below. - -Bits used for CONFIG: -NO_PAD_CTL(1 << 31): indicate this pin does not need config. - -SION(1 << 30): Software Input On Field. -Force the selected mux mode input path no matter of MUX_MODE functionality. -By default the input path is determined by functionality of the selected -mux mode (regular). - -Other bits are used for PAD setting. -Please refer to each fsl,-pinctrl,txt binding doc for SoC specific part -of bits definitions. - -NOTE: -Some requirements for using fsl,imx-pinctrl binding: -1. We have pin function node defined under iomux controller node to represent - what pinmux functions this SoC supports. -2. The pin configuration node intends to work on a specific function should - to be defined under that specific function node. - The function node's name should represent well about what function - this group of pins in this pin configuration node are working on. -3. The driver can use the function node's name and pin configuration node's - name describe the pin function and group hierarchy. - For example, Linux IMX pinctrl driver takes the function node's name - as the function name and pin configuration node's name as group name to - create the map table. -4. Each pin configuration node should have a phandle, devices can set pins - configurations by referring to the phandle of that pin configuration node. - -Examples: -usdhc@219c000 { /* uSDHC4 */ - non-removable; - vmmc-supply = <®_3p3v>; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_usdhc4_1>; -}; - -iomuxc@20e0000 { - compatible = "fsl,imx6q-iomuxc"; - reg = <0x020e0000 0x4000>; - - /* shared pinctrl settings */ - usdhc4 { - pinctrl_usdhc4_1: usdhc4grp-1 { - fsl,pins = < - MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059 - MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059 - MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059 - MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059 - MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059 - MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059 - MX6QDL_PAD_SD4_DAT4__SD4_DATA4 0x17059 - MX6QDL_PAD_SD4_DAT5__SD4_DATA5 0x17059 - MX6QDL_PAD_SD4_DAT6__SD4_DATA6 0x17059 - MX6QDL_PAD_SD4_DAT7__SD4_DATA7 0x17059 - >; - }; - .... -}; -Refer to the IOMUXC controller chapter in imx6q datasheet, -0x17059 means enable hysteresis, 47KOhm Pull Up, 50Mhz speed, -80Ohm driver strength and Fast Slew Rate. -User should refer to each SoC spec to set the correct value. +* Freescale IOMUX Controller (IOMUXC) for i.MX + +The IOMUX Controller (IOMUXC), together with the IOMUX, enables the IC +to share one PAD to several functional blocks. The sharing is done by +multiplexing the PAD input/output signals. For each PAD there are up to +8 muxing options (called ALT modes). Since different modules require +different PAD settings (like pull up, keeper, etc) the IOMUXC controls +also the PAD settings parameters. + +Please refer to pinctrl-bindings.txt in this directory for details of the +common pinctrl bindings used by client devices, including the meaning of the +phrase "pin configuration node". + +Freescale IMX pin configuration node is a node of a group of pins which can be +used for a specific device or function. This node represents both mux and config +of the pins in that group. The 'mux' selects the function mode(also named mux +mode) this pin can work on and the 'config' configures various pad settings +such as pull-up, open drain, drive strength, etc. + +Required properties for iomux controller: +- compatible: "fsl,-iomuxc" + Please refer to each fsl,-pinctrl.txt binding doc for supported SoCs. + +Required properties for pin configuration node: +- fsl,pins: each entry consists of 6 integers and represents the mux and config + setting for one pin. The first 5 integers are specified using a PIN_FUNC_ID macro, which can be found in + imx*-pinfunc.h under device tree source folder. The last integer CONFIG is + the pad setting value like pull-up on this pin. And that's why fsl,pins entry + looks like in the example below. + +Bits used for CONFIG: +NO_PAD_CTL(1 << 31): indicate this pin does not need config. + +SION(1 << 30): Software Input On Field. +Force the selected mux mode input path no matter of MUX_MODE functionality. +By default the input path is determined by functionality of the selected +mux mode (regular). + +Other bits are used for PAD setting. +Please refer to each fsl,-pinctrl,txt binding doc for SoC specific part +of bits definitions. + +NOTE: +Some requirements for using fsl,imx-pinctrl binding: +1. We have pin function node defined under iomux controller node to represent + what pinmux functions this SoC supports. +2. The pin configuration node intends to work on a specific function should + to be defined under that specific function node. + The function node's name should represent well about what function + this group of pins in this pin configuration node are working on. +3. The driver can use the function node's name and pin configuration node's + name describe the pin function and group hierarchy. + For example, Linux IMX pinctrl driver takes the function node's name + as the function name and pin configuration node's name as group name to + create the map table. +4. Each pin configuration node should have a phandle, devices can set pins + configurations by referring to the phandle of that pin configuration node. + +Examples: +usdhc@219c000 { /* uSDHC4 */ + non-removable; + vmmc-supply = <®_3p3v>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc4_1>; +}; + +iomuxc@20e0000 { + compatible = "fsl,imx6q-iomuxc"; + reg = <0x020e0000 0x4000>; + + /* shared pinctrl settings */ + usdhc4 { + pinctrl_usdhc4_1: usdhc4grp-1 { + fsl,pins = < + MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059 + MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059 + MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059 + MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059 + MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059 + MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059 + MX6QDL_PAD_SD4_DAT4__SD4_DATA4 0x17059 + MX6QDL_PAD_SD4_DAT5__SD4_DATA5 0x17059 + MX6QDL_PAD_SD4_DAT6__SD4_DATA6 0x17059 + MX6QDL_PAD_SD4_DAT7__SD4_DATA7 0x17059 + >; + }; + .... +}; +Refer to the IOMUXC controller chapter in imx6q datasheet, +0x17059 means enable hysteresis, 47KOhm Pull Up, 50Mhz speed, +80Ohm driver strength and Fast Slew Rate. +User should refer to each SoC spec to set the correct value. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/fsl,imx6ul-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/fsl,imx6ul-pinctrl.yaml index a31f60032..906b264a9 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/fsl,imx6ul-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/fsl,imx6ul-pinctrl.yaml @@ -1,116 +1,116 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/fsl,imx6ul-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale IMX6UL IOMUX Controller - -maintainers: - - Dong Aisheng - -description: - Please refer to fsl,imx-pinctrl.txt and pinctrl-bindings.txt in this directory - for common binding part and usage. - -allOf: - - $ref: pinctrl.yaml# - -properties: - compatible: - enum: - - fsl,imx6ul-iomuxc - - fsl,imx6ull-iomuxc-snvs - - reg: - maxItems: 1 - -# Client device subnode's properties -patternProperties: - 'grp$': - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - - properties: - fsl,pins: - description: - each entry consists of 6 integers and represents the mux and config - setting for one pin. The first 5 integers are specified using a PIN_FUNC_ID macro, which can - be found in . The last integer - CONFIG is the pad setting value like pull-up on this pin. Please - refer to i.MX6UL Reference Manual for detailed CONFIG settings. - $ref: /schemas/types.yaml#/definitions/uint32-matrix - items: - items: - - description: | - "mux_reg" indicates the offset of mux register. - - description: | - "conf_reg" indicates the offset of pad configuration register. - - description: | - "input_reg" indicates the offset of select input register. - - description: | - "mux_val" indicates the mux value to be applied. - - description: | - "input_val" indicates the select input value to be applied. - - description: | - "pad_setting" indicates the pad configuration value to be applied: - PAD_CTL_HYS (1 << 16) - PAD_CTL_PUS_100K_DOWN (0 << 14) - PAD_CTL_PUS_47K_UP (1 << 14) - PAD_CTL_PUS_100K_UP (2 << 14) - PAD_CTL_PUS_22K_UP (3 << 14) - PAD_CTL_PUE (1 << 13) - PAD_CTL_PKE (1 << 12) - PAD_CTL_ODE (1 << 11) - PAD_CTL_SPEED_LOW (0 << 6) - PAD_CTL_SPEED_MED (1 << 6) - PAD_CTL_SPEED_HIGH (3 << 6) - PAD_CTL_DSE_DISABLE (0 << 3) - PAD_CTL_DSE_260ohm (1 << 3) - PAD_CTL_DSE_130ohm (2 << 3) - PAD_CTL_DSE_87ohm (3 << 3) - PAD_CTL_DSE_65ohm (4 << 3) - PAD_CTL_DSE_52ohm (5 << 3) - PAD_CTL_DSE_43ohm (6 << 3) - PAD_CTL_DSE_37ohm (7 << 3) - PAD_CTL_SRE_FAST (1 << 0) - PAD_CTL_SRE_SLOW (0 << 0) - - required: - - fsl,pins - - additionalProperties: false - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - iomuxc: pinctrl@20e0000 { - compatible = "fsl,imx6ul-iomuxc"; - reg = <0x020e0000 0x4000>; - - mux_uart: uartgrp { - fsl,pins = < - 0x0084 0x0310 0x0000 0 0 0x1b0b1 - 0x0088 0x0314 0x0624 0 3 0x1b0b1 - >; - }; - }; - - | - iomuxc_snvs: pinctrl@2290000 { - compatible = "fsl,imx6ull-iomuxc-snvs"; - reg = <0x02290000 0x4000>; - - pinctrl_snvs_usbc_det: snvsusbcdetgrp { - fsl,pins = < - 0x0010 0x0054 0x0000 0x5 0x0 0x130b0 - >; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/fsl,imx6ul-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale IMX6UL IOMUX Controller + +maintainers: + - Dong Aisheng + +description: + Please refer to fsl,imx-pinctrl.txt and pinctrl-bindings.txt in this directory + for common binding part and usage. + +allOf: + - $ref: pinctrl.yaml# + +properties: + compatible: + enum: + - fsl,imx6ul-iomuxc + - fsl,imx6ull-iomuxc-snvs + + reg: + maxItems: 1 + +# Client device subnode's properties +patternProperties: + 'grp$': + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + + properties: + fsl,pins: + description: + each entry consists of 6 integers and represents the mux and config + setting for one pin. The first 5 integers are specified using a PIN_FUNC_ID macro, which can + be found in . The last integer + CONFIG is the pad setting value like pull-up on this pin. Please + refer to i.MX6UL Reference Manual for detailed CONFIG settings. + $ref: /schemas/types.yaml#/definitions/uint32-matrix + items: + items: + - description: | + "mux_reg" indicates the offset of mux register. + - description: | + "conf_reg" indicates the offset of pad configuration register. + - description: | + "input_reg" indicates the offset of select input register. + - description: | + "mux_val" indicates the mux value to be applied. + - description: | + "input_val" indicates the select input value to be applied. + - description: | + "pad_setting" indicates the pad configuration value to be applied: + PAD_CTL_HYS (1 << 16) + PAD_CTL_PUS_100K_DOWN (0 << 14) + PAD_CTL_PUS_47K_UP (1 << 14) + PAD_CTL_PUS_100K_UP (2 << 14) + PAD_CTL_PUS_22K_UP (3 << 14) + PAD_CTL_PUE (1 << 13) + PAD_CTL_PKE (1 << 12) + PAD_CTL_ODE (1 << 11) + PAD_CTL_SPEED_LOW (0 << 6) + PAD_CTL_SPEED_MED (1 << 6) + PAD_CTL_SPEED_HIGH (3 << 6) + PAD_CTL_DSE_DISABLE (0 << 3) + PAD_CTL_DSE_260ohm (1 << 3) + PAD_CTL_DSE_130ohm (2 << 3) + PAD_CTL_DSE_87ohm (3 << 3) + PAD_CTL_DSE_65ohm (4 << 3) + PAD_CTL_DSE_52ohm (5 << 3) + PAD_CTL_DSE_43ohm (6 << 3) + PAD_CTL_DSE_37ohm (7 << 3) + PAD_CTL_SRE_FAST (1 << 0) + PAD_CTL_SRE_SLOW (0 << 0) + + required: + - fsl,pins + + additionalProperties: false + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + iomuxc: pinctrl@20e0000 { + compatible = "fsl,imx6ul-iomuxc"; + reg = <0x020e0000 0x4000>; + + mux_uart: uartgrp { + fsl,pins = < + 0x0084 0x0310 0x0000 0 0 0x1b0b1 + 0x0088 0x0314 0x0624 0 3 0x1b0b1 + >; + }; + }; + - | + iomuxc_snvs: pinctrl@2290000 { + compatible = "fsl,imx6ull-iomuxc-snvs"; + reg = <0x02290000 0x4000>; + + pinctrl_snvs_usbc_det: snvsusbcdetgrp { + fsl,pins = < + 0x0010 0x0054 0x0000 0x5 0x0 0x130b0 + >; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/intel,pinctrl-keembay.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/intel,pinctrl-keembay.yaml index 5d5992bf7..005d95a9e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/intel,pinctrl-keembay.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/intel,pinctrl-keembay.yaml @@ -1,136 +1,136 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/intel,pinctrl-keembay.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Intel Keem Bay pin controller - -maintainers: - - Lakshmi Sowjanya D - -description: | - Intel Keem Bay SoC integrates a pin controller which enables control - of pin directions, input/output values and configuration - for a total of 80 pins. - -properties: - compatible: - const: intel,keembay-pinctrl - - reg: - maxItems: 2 - - gpio-controller: true - - '#gpio-cells': - const: 2 - - ngpios: - description: The number of GPIOs exposed. - const: 80 - - interrupts: - description: - Specifies the interrupt lines to be used by the controller. - Each interrupt line is shared by upto 4 GPIO lines. - maxItems: 8 - - interrupt-controller: true - - '#interrupt-cells': - const: 2 - -patternProperties: - '^gpio@[0-9a-f]*$': - type: object - additionalProperties: false - - description: - Child nodes can be specified to contain pin configuration information, - which can then be utilized by pinctrl client devices. - The following properties are supported. - - properties: - pins: - description: | - The name(s) of the pins to be configured in the child node. - Supported pin names are "GPIO0" up to "GPIO79". - - bias-disable: true - - bias-pull-down: true - - bias-pull-up: true - - drive-strength: - description: IO pads drive strength in milli Ampere. - enum: [2, 4, 8, 12] - - bias-bus-hold: - type: boolean - - input-schmitt-enable: - type: boolean - - slew-rate: - description: GPIO slew rate control. - 0 - Fast(~100MHz) - 1 - Slow(~50MHz) - enum: [0, 1] - -additionalProperties: false - -required: - - compatible - - reg - - gpio-controller - - ngpios - - '#gpio-cells' - - interrupts - - interrupt-controller - - '#interrupt-cells' - -examples: - - | - #include - #include - // Example 1 - gpio@0 { - compatible = "intel,keembay-pinctrl"; - reg = <0x600b0000 0x88>, - <0x600b0190 0x1ac>; - gpio-controller; - ngpios = <0x50>; - #gpio-cells = <0x2>; - interrupts = , - , - , - , - , - , - , - ; - interrupt-controller; - #interrupt-cells = <2>; - }; - - // Example 2 - gpio@1 { - compatible = "intel,keembay-pinctrl"; - reg = <0x600c0000 0x88>, - <0x600c0190 0x1ac>; - gpio-controller; - ngpios = <0x50>; - #gpio-cells = <0x2>; - interrupts = , - , - , - , - , - , - , - ; - interrupt-controller; - #interrupt-cells = <2>; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/intel,pinctrl-keembay.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Intel Keem Bay pin controller + +maintainers: + - Lakshmi Sowjanya D + +description: | + Intel Keem Bay SoC integrates a pin controller which enables control + of pin directions, input/output values and configuration + for a total of 80 pins. + +properties: + compatible: + const: intel,keembay-pinctrl + + reg: + maxItems: 2 + + gpio-controller: true + + '#gpio-cells': + const: 2 + + ngpios: + description: The number of GPIOs exposed. + const: 80 + + interrupts: + description: + Specifies the interrupt lines to be used by the controller. + Each interrupt line is shared by upto 4 GPIO lines. + maxItems: 8 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + +patternProperties: + '^gpio@[0-9a-f]*$': + type: object + additionalProperties: false + + description: + Child nodes can be specified to contain pin configuration information, + which can then be utilized by pinctrl client devices. + The following properties are supported. + + properties: + pins: + description: | + The name(s) of the pins to be configured in the child node. + Supported pin names are "GPIO0" up to "GPIO79". + + bias-disable: true + + bias-pull-down: true + + bias-pull-up: true + + drive-strength: + description: IO pads drive strength in milli Ampere. + enum: [2, 4, 8, 12] + + bias-bus-hold: + type: boolean + + input-schmitt-enable: + type: boolean + + slew-rate: + description: GPIO slew rate control. + 0 - Fast(~100MHz) + 1 - Slow(~50MHz) + enum: [0, 1] + +additionalProperties: false + +required: + - compatible + - reg + - gpio-controller + - ngpios + - '#gpio-cells' + - interrupts + - interrupt-controller + - '#interrupt-cells' + +examples: + - | + #include + #include + // Example 1 + gpio@0 { + compatible = "intel,keembay-pinctrl"; + reg = <0x600b0000 0x88>, + <0x600b0190 0x1ac>; + gpio-controller; + ngpios = <0x50>; + #gpio-cells = <0x2>; + interrupts = , + , + , + , + , + , + , + ; + interrupt-controller; + #interrupt-cells = <2>; + }; + + // Example 2 + gpio@1 { + compatible = "intel,keembay-pinctrl"; + reg = <0x600c0000 0x88>, + <0x600c0190 0x1ac>; + gpio-controller; + ngpios = <0x50>; + #gpio-cells = <0x2>; + interrupts = , + , + , + , + , + , + , + ; + interrupt-controller; + #interrupt-cells = <2>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/marvell,armada-375-pinctrl.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/marvell,armada-375-pinctrl.txt index 79b73424d..06e5bb036 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/marvell,armada-375-pinctrl.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/marvell,armada-375-pinctrl.txt @@ -1,82 +1,82 @@ -* Marvell Armada 375 SoC pinctrl driver for mpp - -Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding -part and usage. - -Required properties: -- compatible: "marvell,88f6720-pinctrl" -- reg: register specifier of MPP registers - -Available mpp pins/groups and functions: -Note: brackets (x) are not part of the mpp name for marvell,function and given -only for more detailed description in this document. - -name pins functions -================================================================================ -mpp0 0 gpio, dev(ad2), spi0(cs1), spi1(cs1) -mpp1 1 gpio, dev(ad3), spi0(mosi), spi1(mosi) -mpp2 2 gpio, dev(ad4), ptp(evreq), led(c0), audio(sdi) -mpp3 3 gpio, dev(ad5), ptp(trig), led(p3), audio(mclk) -mpp4 4 gpio, dev(ad6), spi0(miso), spi1(miso) -mpp5 5 gpio, dev(ad7), spi0(cs2), spi1(cs2) -mpp6 6 gpio, dev(ad0), led(p1), audio(lrclk) -mpp7 7 gpio, dev(ad1), ptp(clk), led(p2), audio(extclk) -mpp8 8 gpio, dev (bootcs), spi0(cs0), spi1(cs0) -mpp9 9 gpio, spi0(sck), spi1(sck), nand(we) -mpp10 10 gpio, dram(vttctrl), led(c1), nand(re) -mpp11 11 gpio, dev(a0), led(c2), audio(sdo) -mpp12 12 gpio, dev(a1), audio(bclk) -mpp13 13 gpio, dev(ready), pcie0(rstout), pcie1(rstout) -mpp14 14 gpio, i2c0(sda), uart1(txd) -mpp15 15 gpio, i2c0(sck), uart1(rxd) -mpp16 16 gpio, uart0(txd) -mpp17 17 gpio, uart0(rxd) -mpp18 18 gpio, tdm(int) -mpp19 19 gpio, tdm(rst) -mpp20 20 gpio, tdm(pclk) -mpp21 21 gpio, tdm(fsync) -mpp22 22 gpio, tdm(drx) -mpp23 23 gpio, tdm(dtx) -mpp24 24 gpio, led(p0), ge1(rxd0), sd(cmd), uart0(rts) -mpp25 25 gpio, led(p2), ge1(rxd1), sd(d0), uart0(cts) -mpp26 26 gpio, pcie0(clkreq), ge1(rxd2), sd(d2), uart1(rts) -mpp27 27 gpio, pcie1(clkreq), ge1(rxd3), sd(d1), uart1(cts) -mpp28 28 gpio, led(p3), ge1(txctl), sd(clk) -mpp29 29 gpio, pcie1(clkreq), ge1(rxclk), sd(d3) -mpp30 30 gpio, ge1(txd0), spi1(cs0) -mpp31 31 gpio, ge1(txd1), spi1(mosi) -mpp32 32 gpio, ge1(txd2), spi1(sck), ptp(trig) -mpp33 33 gpio, ge1(txd3), spi1(miso) -mpp34 34 gpio, ge1(txclkout), spi1(sck) -mpp35 35 gpio, ge1(rxctl), spi1(cs1), spi0(cs2) -mpp36 36 gpio, pcie0(clkreq) -mpp37 37 gpio, pcie0(clkreq), tdm(int), ge(mdc) -mpp38 38 gpio, pcie1(clkreq), ge(mdio) -mpp39 39 gpio, ref(clkout) -mpp40 40 gpio, uart1(txd) -mpp41 41 gpio, uart1(rxd) -mpp42 42 gpio, spi1(cs2), led(c0) -mpp43 43 gpio, sata0(prsnt), dram(vttctrl) -mpp44 44 gpio, sata0(prsnt) -mpp45 45 gpio, spi0(cs2), pcie0(rstout) -mpp46 46 gpio, led(p0), ge0(txd0), ge1(txd0), dev(we1) -mpp47 47 gpio, led(p1), ge0(txd1), ge1(txd1) -mpp48 48 gpio, led(p2), ge0(txd2), ge1(txd2) -mpp49 49 gpio, led(p3), ge0(txd3), ge1(txd3) -mpp50 50 gpio, led(c0), ge0(rxd0), ge1(rxd0) -mpp51 51 gpio, led(c1), ge0(rxd1), ge1(rxd1) -mpp52 52 gpio, led(c2), ge0(rxd2), ge1(rxd2) -mpp53 53 gpio, pcie1(rstout), ge0(rxd3), ge1(rxd3) -mpp54 54 gpio, pcie0(rstout), ge0(rxctl), ge1(rxctl) -mpp55 55 gpio, ge0(rxclk), ge1(rxclk) -mpp56 56 gpio, ge0(txclkout), ge1(txclkout) -mpp57 57 gpio, ge0(txctl), ge1(txctl), dev(we0) -mpp58 58 gpio, led(c0) -mpp59 59 gpio, led(c1) -mpp60 60 gpio, uart1(txd), led(c2) -mpp61 61 gpio, i2c1(sda), uart1(rxd), spi1(cs2), led(p0) -mpp62 62 gpio, i2c1(sck), led(p1) -mpp63 63 gpio, ptp(trig), led(p2), dev(burst/last) -mpp64 64 gpio, dram(vttctrl), led(p3) -mpp65 65 gpio, sata1(prsnt) -mpp66 66 gpio, ptp(evreq), spi1(cs3) +* Marvell Armada 375 SoC pinctrl driver for mpp + +Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding +part and usage. + +Required properties: +- compatible: "marvell,88f6720-pinctrl" +- reg: register specifier of MPP registers + +Available mpp pins/groups and functions: +Note: brackets (x) are not part of the mpp name for marvell,function and given +only for more detailed description in this document. + +name pins functions +================================================================================ +mpp0 0 gpio, dev(ad2), spi0(cs1), spi1(cs1) +mpp1 1 gpio, dev(ad3), spi0(mosi), spi1(mosi) +mpp2 2 gpio, dev(ad4), ptp(evreq), led(c0), audio(sdi) +mpp3 3 gpio, dev(ad5), ptp(trig), led(p3), audio(mclk) +mpp4 4 gpio, dev(ad6), spi0(miso), spi1(miso) +mpp5 5 gpio, dev(ad7), spi0(cs2), spi1(cs2) +mpp6 6 gpio, dev(ad0), led(p1), audio(lrclk) +mpp7 7 gpio, dev(ad1), ptp(clk), led(p2), audio(extclk) +mpp8 8 gpio, dev (bootcs), spi0(cs0), spi1(cs0) +mpp9 9 gpio, spi0(sck), spi1(sck), nand(we) +mpp10 10 gpio, dram(vttctrl), led(c1), nand(re) +mpp11 11 gpio, dev(a0), led(c2), audio(sdo) +mpp12 12 gpio, dev(a1), audio(bclk) +mpp13 13 gpio, dev(ready), pcie0(rstout), pcie1(rstout) +mpp14 14 gpio, i2c0(sda), uart1(txd) +mpp15 15 gpio, i2c0(sck), uart1(rxd) +mpp16 16 gpio, uart0(txd) +mpp17 17 gpio, uart0(rxd) +mpp18 18 gpio, tdm(int) +mpp19 19 gpio, tdm(rst) +mpp20 20 gpio, tdm(pclk) +mpp21 21 gpio, tdm(fsync) +mpp22 22 gpio, tdm(drx) +mpp23 23 gpio, tdm(dtx) +mpp24 24 gpio, led(p0), ge1(rxd0), sd(cmd), uart0(rts) +mpp25 25 gpio, led(p2), ge1(rxd1), sd(d0), uart0(cts) +mpp26 26 gpio, pcie0(clkreq), ge1(rxd2), sd(d2), uart1(rts) +mpp27 27 gpio, pcie1(clkreq), ge1(rxd3), sd(d1), uart1(cts) +mpp28 28 gpio, led(p3), ge1(txctl), sd(clk) +mpp29 29 gpio, pcie1(clkreq), ge1(rxclk), sd(d3) +mpp30 30 gpio, ge1(txd0), spi1(cs0) +mpp31 31 gpio, ge1(txd1), spi1(mosi) +mpp32 32 gpio, ge1(txd2), spi1(sck), ptp(trig) +mpp33 33 gpio, ge1(txd3), spi1(miso) +mpp34 34 gpio, ge1(txclkout), spi1(sck) +mpp35 35 gpio, ge1(rxctl), spi1(cs1), spi0(cs2) +mpp36 36 gpio, pcie0(clkreq) +mpp37 37 gpio, pcie0(clkreq), tdm(int), ge(mdc) +mpp38 38 gpio, pcie1(clkreq), ge(mdio) +mpp39 39 gpio, ref(clkout) +mpp40 40 gpio, uart1(txd) +mpp41 41 gpio, uart1(rxd) +mpp42 42 gpio, spi1(cs2), led(c0) +mpp43 43 gpio, sata0(prsnt), dram(vttctrl) +mpp44 44 gpio, sata0(prsnt) +mpp45 45 gpio, spi0(cs2), pcie0(rstout) +mpp46 46 gpio, led(p0), ge0(txd0), ge1(txd0), dev(we1) +mpp47 47 gpio, led(p1), ge0(txd1), ge1(txd1) +mpp48 48 gpio, led(p2), ge0(txd2), ge1(txd2) +mpp49 49 gpio, led(p3), ge0(txd3), ge1(txd3) +mpp50 50 gpio, led(c0), ge0(rxd0), ge1(rxd0) +mpp51 51 gpio, led(c1), ge0(rxd1), ge1(rxd1) +mpp52 52 gpio, led(c2), ge0(rxd2), ge1(rxd2) +mpp53 53 gpio, pcie1(rstout), ge0(rxd3), ge1(rxd3) +mpp54 54 gpio, pcie0(rstout), ge0(rxctl), ge1(rxctl) +mpp55 55 gpio, ge0(rxclk), ge1(rxclk) +mpp56 56 gpio, ge0(txclkout), ge1(txclkout) +mpp57 57 gpio, ge0(txctl), ge1(txctl), dev(we0) +mpp58 58 gpio, led(c0) +mpp59 59 gpio, led(c1) +mpp60 60 gpio, uart1(txd), led(c2) +mpp61 61 gpio, i2c1(sda), uart1(rxd), spi1(cs2), led(p0) +mpp62 62 gpio, i2c1(sck), led(p1) +mpp63 63 gpio, ptp(trig), led(p2), dev(burst/last) +mpp64 64 gpio, dram(vttctrl), led(p3) +mpp65 65 gpio, sata1(prsnt) +mpp66 66 gpio, ptp(evreq), spi1(cs3) diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/marvell,armada-37xx-pinctrl.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/marvell,armada-37xx-pinctrl.txt index 5454acfe6..ecec514b3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/marvell,armada-37xx-pinctrl.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/marvell,armada-37xx-pinctrl.txt @@ -1,195 +1,195 @@ -* Marvell Armada 37xx SoC pin and gpio controller - -Each Armada 37xx SoC come with two pin and gpio controller one for the -south bridge and the other for the north bridge. - -Inside this set of register the gpio latch allows exposing some -configuration of the SoC and especially the clock frequency of the -xtal. Hence, this node is a represent as syscon allowing sharing the -register between multiple hardware block. - -GPIO and pin controller: ------------------------- - -Main node: - -Refer to pinctrl-bindings.txt in this directory for details of the -common pinctrl bindings used by client devices, including the meaning -of the phrase "pin configuration node". - -Required properties for pinctrl driver: - -- compatible: "marvell,armada3710-sb-pinctrl", "syscon, "simple-mfd" - for the south bridge - "marvell,armada3710-nb-pinctrl", "syscon, "simple-mfd" - for the north bridge -- reg: The first set of register are for pinctrl/gpio and the second - set for the interrupt controller -- interrupts: list of the interrupt use by the gpio - -Available groups and functions for the North bridge: - -group: jtag - - pins 20-24 - - functions jtag, gpio - -group sdio0 - - pins 8-10 - - functions sdio, gpio - -group emmc_nb - - pins 27-35 - - functions emmc, gpio - -group pwm0 - - pin 11 (GPIO1-11) - - functions pwm, led, gpio - -group pwm1 - - pin 12 - - functions pwm, led, gpio - -group pwm2 - - pin 13 - - functions pwm, led, gpio - -group pwm3 - - pin 14 - - functions pwm, led, gpio - -group pmic1 - - pin 7 - - functions pmic, gpio - -group pmic0 - - pin 6 - - functions pmic, gpio - -group i2c2 - - pins 2-3 - - functions i2c, gpio - -group i2c1 - - pins 0-1 - - functions i2c, gpio - -group spi_cs1 - - pin 17 - - functions spi, gpio - -group spi_cs2 - - pin 18 - - functions spi, gpio - -group spi_cs3 - - pin 19 - - functions spi, gpio - -group onewire - - pin 4 - - functions onewire, gpio - -group uart1 - - pins 25-26 - - functions uart, gpio - -group spi_quad - - pins 15-16 - - functions spi, gpio - -group uart2 - - pins 9-10 and 18-19 - - functions uart, gpio - -Available groups and functions for the South bridge: - -group usb32_drvvbus0 - - pin 36 - - functions drvbus, gpio - -group usb2_drvvbus1 - - pin 37 - - functions drvbus, gpio - -group sdio_sb - - pins 60-65 - - functions sdio, gpio - -group rgmii - - pins 42-53 - - functions mii, gpio - -group pcie1 - - pins 39 - - functions pcie, gpio - -group pcie1_clkreq - - pins 40 - - functions pcie, gpio - -group pcie1_wakeup - - pins 41 - - functions pcie, gpio - -group smi - - pins 54-55 - - functions smi, gpio - -group ptp - - pins 56 - - functions ptp, gpio - -group ptp_clk - - pin 57 - - functions ptp, mii - -group ptp_trig - - pin 58 - - functions ptp, mii - -group mii_col - - pin 59 - - functions mii, mii_err - -GPIO subnode: - -Please refer to gpio.txt in this directory for details of gpio-ranges property -and the common GPIO bindings used by client devices. - -Required properties for gpio driver under the gpio subnode: -- interrupts: List of interrupt specifier for the controllers interrupt. -- gpio-controller: Marks the device node as a gpio controller. -- #gpio-cells: Should be 2. The first cell is the GPIO number and the - second cell specifies GPIO flags, as defined in - . Only the GPIO_ACTIVE_HIGH and - GPIO_ACTIVE_LOW flags are supported. -- gpio-ranges: Range of pins managed by the GPIO controller. - -Xtal Clock bindings for Marvell Armada 37xx SoCs ------------------------------------------------- - -see Documentation/devicetree/bindings/clock/armada3700-xtal-clock.txt - - -Example: -pinctrl_sb: pinctrl-sb@18800 { - compatible = "marvell,armada3710-sb-pinctrl", "syscon", "simple-mfd"; - reg = <0x18800 0x100>, <0x18C00 0x20>; - gpio { - #gpio-cells = <2>; - gpio-ranges = <&pinctrl_sb 0 0 29>; - gpio-controller; - interrupts = - , - , - , - , - ; - }; - - rgmii_pins: mii-pins { - groups = "rgmii"; - function = "mii"; - }; - -}; +* Marvell Armada 37xx SoC pin and gpio controller + +Each Armada 37xx SoC come with two pin and gpio controller one for the +south bridge and the other for the north bridge. + +Inside this set of register the gpio latch allows exposing some +configuration of the SoC and especially the clock frequency of the +xtal. Hence, this node is a represent as syscon allowing sharing the +register between multiple hardware block. + +GPIO and pin controller: +------------------------ + +Main node: + +Refer to pinctrl-bindings.txt in this directory for details of the +common pinctrl bindings used by client devices, including the meaning +of the phrase "pin configuration node". + +Required properties for pinctrl driver: + +- compatible: "marvell,armada3710-sb-pinctrl", "syscon, "simple-mfd" + for the south bridge + "marvell,armada3710-nb-pinctrl", "syscon, "simple-mfd" + for the north bridge +- reg: The first set of register are for pinctrl/gpio and the second + set for the interrupt controller +- interrupts: list of the interrupt use by the gpio + +Available groups and functions for the North bridge: + +group: jtag + - pins 20-24 + - functions jtag, gpio + +group sdio0 + - pins 8-10 + - functions sdio, gpio + +group emmc_nb + - pins 27-35 + - functions emmc, gpio + +group pwm0 + - pin 11 (GPIO1-11) + - functions pwm, led, gpio + +group pwm1 + - pin 12 + - functions pwm, led, gpio + +group pwm2 + - pin 13 + - functions pwm, led, gpio + +group pwm3 + - pin 14 + - functions pwm, led, gpio + +group pmic1 + - pin 7 + - functions pmic, gpio + +group pmic0 + - pin 6 + - functions pmic, gpio + +group i2c2 + - pins 2-3 + - functions i2c, gpio + +group i2c1 + - pins 0-1 + - functions i2c, gpio + +group spi_cs1 + - pin 17 + - functions spi, gpio + +group spi_cs2 + - pin 18 + - functions spi, gpio + +group spi_cs3 + - pin 19 + - functions spi, gpio + +group onewire + - pin 4 + - functions onewire, gpio + +group uart1 + - pins 25-26 + - functions uart, gpio + +group spi_quad + - pins 15-16 + - functions spi, gpio + +group uart2 + - pins 9-10 and 18-19 + - functions uart, gpio + +Available groups and functions for the South bridge: + +group usb32_drvvbus0 + - pin 36 + - functions drvbus, gpio + +group usb2_drvvbus1 + - pin 37 + - functions drvbus, gpio + +group sdio_sb + - pins 60-65 + - functions sdio, gpio + +group rgmii + - pins 42-53 + - functions mii, gpio + +group pcie1 + - pins 39 + - functions pcie, gpio + +group pcie1_clkreq + - pins 40 + - functions pcie, gpio + +group pcie1_wakeup + - pins 41 + - functions pcie, gpio + +group smi + - pins 54-55 + - functions smi, gpio + +group ptp + - pins 56 + - functions ptp, gpio + +group ptp_clk + - pin 57 + - functions ptp, mii + +group ptp_trig + - pin 58 + - functions ptp, mii + +group mii_col + - pin 59 + - functions mii, mii_err + +GPIO subnode: + +Please refer to gpio.txt in this directory for details of gpio-ranges property +and the common GPIO bindings used by client devices. + +Required properties for gpio driver under the gpio subnode: +- interrupts: List of interrupt specifier for the controllers interrupt. +- gpio-controller: Marks the device node as a gpio controller. +- #gpio-cells: Should be 2. The first cell is the GPIO number and the + second cell specifies GPIO flags, as defined in + . Only the GPIO_ACTIVE_HIGH and + GPIO_ACTIVE_LOW flags are supported. +- gpio-ranges: Range of pins managed by the GPIO controller. + +Xtal Clock bindings for Marvell Armada 37xx SoCs +------------------------------------------------ + +see Documentation/devicetree/bindings/clock/armada3700-xtal-clock.txt + + +Example: +pinctrl_sb: pinctrl-sb@18800 { + compatible = "marvell,armada3710-sb-pinctrl", "syscon", "simple-mfd"; + reg = <0x18800 0x100>, <0x18C00 0x20>; + gpio { + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_sb 0 0 29>; + gpio-controller; + interrupts = + , + , + , + , + ; + }; + + rgmii_pins: mii-pins { + groups = "rgmii"; + function = "mii"; + }; + +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/marvell,armada-39x-pinctrl.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/marvell,armada-39x-pinctrl.txt index 056de0ef2..a40b60f1c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/marvell,armada-39x-pinctrl.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/marvell,armada-39x-pinctrl.txt @@ -1,84 +1,84 @@ -* Marvell Armada 39x SoC pinctrl driver for mpp - -Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding -part and usage. - -Required properties: -- compatible: "marvell,88f6920-pinctrl", "marvell,88f6925-pinctrl" or - "marvell,88f6928-pinctrl" depending on the specific variant of the - SoC being used. -- reg: register specifier of MPP registers - -Available mpp pins/groups and functions: -Note: brackets (x) are not part of the mpp name for marvell,function and given -only for more detailed description in this document. - -name pins functions -================================================================================ -mpp0 0 gpio, ua0(rxd) -mpp1 1 gpio, ua0(txd) -mpp2 2 gpio, i2c0(sck) -mpp3 3 gpio, i2c0(sda) -mpp4 4 gpio, ua1(txd), ua0(rts), smi(mdc) -mpp5 5 gpio, ua1(rxd), ua0(cts), smi(mdio) -mpp6 6 gpio, dev(cs3), xsmi(mdio) -mpp7 7 gpio, dev(ad9), xsmi(mdc) -mpp8 8 gpio, dev(ad10), ptp(trig) -mpp9 9 gpio, dev(ad11), ptp(clk) -mpp10 10 gpio, dev(ad12), ptp(evreq) -mpp11 11 gpio, dev(ad13), led(clk) -mpp12 12 gpio, pcie0(rstout), dev(ad14), led(stb) -mpp13 13 gpio, dev(ad15), pcie2(clkreq), led(data) -mpp14 14 gpio, dram(vttctrl), dev(we1), ua1(txd) -mpp15 15 gpio, pcie0(rstout), spi0(mosi), i2c1(sck) -mpp16 16 gpio, dram(deccerr), spi0(miso), pcie0(clkreq), i2c1(sda) -mpp17 17 gpio, ua1(rxd), spi0(sck), sata1(prsnt) [1], sata0(prsnt) [1], smi(mdio) -mpp18 18 gpio, ua1(txd), spi0(cs0), i2c2(sck) -mpp19 19 gpio, sata1(prsnt) [1], ua0(cts), ua1(rxd), i2c2(sda) -mpp20 20 gpio, sata0(prsnt) [1], ua0(rts), ua1(txd), smi(mdc) -mpp21 21 gpio, spi0(cs1), sata0(prsnt) [1], sd0(cmd), dev(bootcs), - sata1(prsnt) [1], ge(rxd0) -mpp22 22 gpio, spi0(mosi), dev(ad0) -mpp23 23 gpio, spi0(sck), dev(ad2) -mpp24 24 gpio, spi0(miso), ua0(cts), ua1(rxd), sd0(d4), dev(ready) -mpp25 25 gpio, spi0(cs0), ua0(rts), ua1(txd), sd0(d5), dev(cs0) -mpp26 26 gpio, spi0(cs2), i2c1(sck), sd0(d6), dev(cs1) -mpp27 27 gpio, spi0(cs3), i2c1(sda), sd0(d7), dev(cs2), ge(txclkout) -mpp28 28 gpio, sd0(clk), dev(ad5), ge(txd0) -mpp29 29 gpio, dev(ale0), ge(txd1) -mpp30 30 gpio, dev(oe), ge(txd2) -mpp31 31 gpio, dev(ale1), ge(txd3) -mpp32 32 gpio, dev(we0), ge(txctl) -mpp33 33 gpio, dram(deccerr), dev(ad3) -mpp34 34 gpio, dev(ad1) -mpp35 35 gpio, ref(clk), dev(a1) -mpp36 36 gpio, dev(a0) -mpp37 37 gpio, sd0(d3), dev(ad8), ge(rxclk) -mpp38 38 gpio, ref(clk), sd0(d0), dev(ad4), ge(rxd1) -mpp39 39 gpio, i2c1(sck), ua0(cts), sd0(d1), dev(a2), ge(rxd2) -mpp40 40 gpio, i2c1(sda), ua0(rts), sd0(d2), dev(ad6), ge(rxd3) -mpp41 41 gpio, ua1(rxd), ua0(cts), spi1(cs3), dev(burst/last), nand(rb0), ge(rxctl) -mpp42 42 gpio, ua1(txd), ua0(rts), dev(ad7) -mpp43 43 gpio, pcie0(clkreq), dram(vttctrl), dram(deccerr), spi1(cs2), dev(clkout), nand(rb1) -mpp44 44 gpio, sata0(prsnt) [1], sata1(prsnt) [1], sata2(prsnt) [2], - sata3(prsnt) [2], led(clk) -mpp45 45 gpio, ref(clk), pcie0(rstout), ua1(rxd) -mpp46 46 gpio, ref(clk), pcie0(rstout), ua1(txd), led(stb) -mpp47 47 gpio, sata0(prsnt) [1], sata1(prsnt) [1], sata2(prsnt) [2], - sata3(prsnt) [2], led(data) -mpp48 48 gpio, sata0(prsnt) [1], dram(vttctrl), tdm(pclk) [2], audio(mclk) [2], sd0(d4), pcie0(clkreq), ua1(txd) -mpp49 49 gpio, sata2(prsnt) [2], sata3(prsnt) [2], tdm(fsync) [2], - audio(lrclk) [2], sd0(d5), ua2(rxd) -mpp50 50 gpio, pcie0(rstout), tdm(drx) [2], audio(extclk) [2], sd0(cmd), ua2(rxd) -mpp51 51 gpio, tdm(dtx) [2], audio(sdo) [2], dram(deccerr), ua2(txd) -mpp52 52 gpio, pcie0(rstout), tdm(int) [2], audio(sdi) [2], sd0(d6), i2c3(sck) -mpp53 53 gpio, sata1(prsnt) [1], sata0(prsnt) [1], tdm(rst) [2], audio(bclk) [2], sd0(d7), i2c3(sda) -mpp54 54 gpio, sata0(prsnt) [1], sata1(prsnt) [1], pcie0(rstout), sd0(d3), ua3(txd) -mpp55 55 gpio, ua1(cts), spi1(cs1), sd0(d0), ua1(rxd), ua3(rxd) -mpp56 56 gpio, ua1(rts), dram(deccerr), spi1(mosi), ua1(txd) -mpp57 57 gpio, spi1(sck), sd0(clk), ua1(txd) -mpp58 58 gpio, i2c1(sck), pcie2(clkreq), spi1(miso), sd0(d1), ua1(rxd) -mpp59 59 gpio, pcie0(rstout), i2c1(sda), spi1(cs0), sd0(d2) - -[1]: only available on 88F6925/88F6928 -[2]: only available on 88F6928 +* Marvell Armada 39x SoC pinctrl driver for mpp + +Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding +part and usage. + +Required properties: +- compatible: "marvell,88f6920-pinctrl", "marvell,88f6925-pinctrl" or + "marvell,88f6928-pinctrl" depending on the specific variant of the + SoC being used. +- reg: register specifier of MPP registers + +Available mpp pins/groups and functions: +Note: brackets (x) are not part of the mpp name for marvell,function and given +only for more detailed description in this document. + +name pins functions +================================================================================ +mpp0 0 gpio, ua0(rxd) +mpp1 1 gpio, ua0(txd) +mpp2 2 gpio, i2c0(sck) +mpp3 3 gpio, i2c0(sda) +mpp4 4 gpio, ua1(txd), ua0(rts), smi(mdc) +mpp5 5 gpio, ua1(rxd), ua0(cts), smi(mdio) +mpp6 6 gpio, dev(cs3), xsmi(mdio) +mpp7 7 gpio, dev(ad9), xsmi(mdc) +mpp8 8 gpio, dev(ad10), ptp(trig) +mpp9 9 gpio, dev(ad11), ptp(clk) +mpp10 10 gpio, dev(ad12), ptp(evreq) +mpp11 11 gpio, dev(ad13), led(clk) +mpp12 12 gpio, pcie0(rstout), dev(ad14), led(stb) +mpp13 13 gpio, dev(ad15), pcie2(clkreq), led(data) +mpp14 14 gpio, dram(vttctrl), dev(we1), ua1(txd) +mpp15 15 gpio, pcie0(rstout), spi0(mosi), i2c1(sck) +mpp16 16 gpio, dram(deccerr), spi0(miso), pcie0(clkreq), i2c1(sda) +mpp17 17 gpio, ua1(rxd), spi0(sck), sata1(prsnt) [1], sata0(prsnt) [1], smi(mdio) +mpp18 18 gpio, ua1(txd), spi0(cs0), i2c2(sck) +mpp19 19 gpio, sata1(prsnt) [1], ua0(cts), ua1(rxd), i2c2(sda) +mpp20 20 gpio, sata0(prsnt) [1], ua0(rts), ua1(txd), smi(mdc) +mpp21 21 gpio, spi0(cs1), sata0(prsnt) [1], sd0(cmd), dev(bootcs), + sata1(prsnt) [1], ge(rxd0) +mpp22 22 gpio, spi0(mosi), dev(ad0) +mpp23 23 gpio, spi0(sck), dev(ad2) +mpp24 24 gpio, spi0(miso), ua0(cts), ua1(rxd), sd0(d4), dev(ready) +mpp25 25 gpio, spi0(cs0), ua0(rts), ua1(txd), sd0(d5), dev(cs0) +mpp26 26 gpio, spi0(cs2), i2c1(sck), sd0(d6), dev(cs1) +mpp27 27 gpio, spi0(cs3), i2c1(sda), sd0(d7), dev(cs2), ge(txclkout) +mpp28 28 gpio, sd0(clk), dev(ad5), ge(txd0) +mpp29 29 gpio, dev(ale0), ge(txd1) +mpp30 30 gpio, dev(oe), ge(txd2) +mpp31 31 gpio, dev(ale1), ge(txd3) +mpp32 32 gpio, dev(we0), ge(txctl) +mpp33 33 gpio, dram(deccerr), dev(ad3) +mpp34 34 gpio, dev(ad1) +mpp35 35 gpio, ref(clk), dev(a1) +mpp36 36 gpio, dev(a0) +mpp37 37 gpio, sd0(d3), dev(ad8), ge(rxclk) +mpp38 38 gpio, ref(clk), sd0(d0), dev(ad4), ge(rxd1) +mpp39 39 gpio, i2c1(sck), ua0(cts), sd0(d1), dev(a2), ge(rxd2) +mpp40 40 gpio, i2c1(sda), ua0(rts), sd0(d2), dev(ad6), ge(rxd3) +mpp41 41 gpio, ua1(rxd), ua0(cts), spi1(cs3), dev(burst/last), nand(rb0), ge(rxctl) +mpp42 42 gpio, ua1(txd), ua0(rts), dev(ad7) +mpp43 43 gpio, pcie0(clkreq), dram(vttctrl), dram(deccerr), spi1(cs2), dev(clkout), nand(rb1) +mpp44 44 gpio, sata0(prsnt) [1], sata1(prsnt) [1], sata2(prsnt) [2], + sata3(prsnt) [2], led(clk) +mpp45 45 gpio, ref(clk), pcie0(rstout), ua1(rxd) +mpp46 46 gpio, ref(clk), pcie0(rstout), ua1(txd), led(stb) +mpp47 47 gpio, sata0(prsnt) [1], sata1(prsnt) [1], sata2(prsnt) [2], + sata3(prsnt) [2], led(data) +mpp48 48 gpio, sata0(prsnt) [1], dram(vttctrl), tdm(pclk) [2], audio(mclk) [2], sd0(d4), pcie0(clkreq), ua1(txd) +mpp49 49 gpio, sata2(prsnt) [2], sata3(prsnt) [2], tdm(fsync) [2], + audio(lrclk) [2], sd0(d5), ua2(rxd) +mpp50 50 gpio, pcie0(rstout), tdm(drx) [2], audio(extclk) [2], sd0(cmd), ua2(rxd) +mpp51 51 gpio, tdm(dtx) [2], audio(sdo) [2], dram(deccerr), ua2(txd) +mpp52 52 gpio, pcie0(rstout), tdm(int) [2], audio(sdi) [2], sd0(d6), i2c3(sck) +mpp53 53 gpio, sata1(prsnt) [1], sata0(prsnt) [1], tdm(rst) [2], audio(bclk) [2], sd0(d7), i2c3(sda) +mpp54 54 gpio, sata0(prsnt) [1], sata1(prsnt) [1], pcie0(rstout), sd0(d3), ua3(txd) +mpp55 55 gpio, ua1(cts), spi1(cs1), sd0(d0), ua1(rxd), ua3(rxd) +mpp56 56 gpio, ua1(rts), dram(deccerr), spi1(mosi), ua1(txd) +mpp57 57 gpio, spi1(sck), sd0(clk), ua1(txd) +mpp58 58 gpio, i2c1(sck), pcie2(clkreq), spi1(miso), sd0(d1), ua1(rxd) +mpp59 59 gpio, pcie0(rstout), i2c1(sda), spi1(cs0), sd0(d2) + +[1]: only available on 88F6925/88F6928 +[2]: only available on 88F6928 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/marvell,orion-pinctrl.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/marvell,orion-pinctrl.txt index c2c1819c9..ec8aa3c69 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/marvell,orion-pinctrl.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/marvell,orion-pinctrl.txt @@ -1,93 +1,93 @@ -* Marvell Orion SoC pinctrl driver for mpp - -Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding -part and usage. - -Required properties: -- compatible: "marvell,88f5181-pinctrl", - "marvell,88f5181l-pinctrl", - "marvell,88f5182-pinctrl", - "marvell,88f5281-pinctrl" - -- reg: two register areas, the first one describing the first two - contiguous MPP registers, and the second one describing the single - final MPP register, separated from the previous one. - -Available mpp pins/groups and functions: -Note: brackets (x) are not part of the mpp name for marvell,function and given -only for more detailed description in this document. - -* Marvell Orion 88f5181l - -name pins functions -================================================================================ -mpp0 0 pcie(rstout), pci(req2), gpio -mpp1 1 gpio, pci(gnt2) -mpp2 2 gpio, pci(req3), pci-1(pme) -mpp3 3 gpio, pci(gnt3) -mpp4 4 gpio, pci(req4) -mpp5 5 gpio, pci(gnt4) -mpp6 6 gpio, pci(req5), pci-1(clk) -mpp7 7 gpio, pci(gnt5), pci-1(clk) -mpp8 8 gpio, ge(col) -mpp9 9 gpio, ge(rxerr) -mpp10 10 gpio, ge(crs) -mpp11 11 gpio, ge(txerr) -mpp12 12 gpio, ge(txd4) -mpp13 13 gpio, ge(txd5) -mpp14 14 gpio, ge(txd6) -mpp15 15 gpio, ge(txd7) -mpp16 16 ge(rxd4) -mpp17 17 ge(rxd5) -mpp18 18 ge(rxd6) -mpp19 19 ge(rxd7) - -* Marvell Orion 88f5182 - -name pins functions -================================================================================ -mpp0 0 pcie(rstout), pci(req2), gpio -mpp1 1 gpio, pci(gnt2) -mpp2 2 gpio, pci(req3), pci-1(pme) -mpp3 3 gpio, pci(gnt3) -mpp4 4 gpio, pci(req4), bootnand(re), sata0(prsnt) -mpp5 5 gpio, pci(gnt4), bootnand(we), sata1(prsnt) -mpp6 6 gpio, pci(req5), nand(re0), sata0(act) -mpp7 7 gpio, pci(gnt5), nand(we0), sata1(act) -mpp8 8 gpio, ge(col) -mpp9 9 gpio, ge(rxerr) -mpp10 10 gpio, ge(crs) -mpp11 11 gpio, ge(txerr) -mpp12 12 gpio, ge(txd4), nand(re1), sata0(ledprsnt) -mpp13 13 gpio, ge(txd5), nand(we1), sata1(ledprsnt) -mpp14 14 gpio, ge(txd6), nand(re2), sata0(ledact) -mpp15 15 gpio, ge(txd7), nand(we2), sata1(ledact) -mpp16 16 uart1(rxd), ge(rxd4), gpio -mpp17 17 uart1(txd), ge(rxd5), gpio -mpp18 18 uart1(cts), ge(rxd6), gpio -mpp19 19 uart1(rts), ge(rxd7), gpio - -* Marvell Orion 88f5281 - -name pins functions -================================================================================ -mpp0 0 pcie(rstout), pci(req2), gpio -mpp1 1 gpio, pci(gnt2) -mpp2 2 gpio, pci(req3), pci(pme) -mpp3 3 gpio, pci(gnt3) -mpp4 4 gpio, pci(req4), bootnand(re) -mpp5 5 gpio, pci(gnt4), bootnand(we) -mpp6 6 gpio, pci(req5), nand(re0) -mpp7 7 gpio, pci(gnt5), nand(we0) -mpp8 8 gpio, ge(col) -mpp9 9 gpio, ge(rxerr) -mpp10 10 gpio, ge(crs) -mpp11 11 gpio, ge(txerr) -mpp12 12 gpio, ge(txd4), nand(re1) -mpp13 13 gpio, ge(txd5), nand(we1) -mpp14 14 gpio, ge(txd6), nand(re2) -mpp15 15 gpio, ge(txd7), nand(we2) -mpp16 16 uart1(rxd), ge(rxd4) -mpp17 17 uart1(txd), ge(rxd5) -mpp18 18 uart1(cts), ge(rxd6) -mpp19 19 uart1(rts), ge(rxd7) +* Marvell Orion SoC pinctrl driver for mpp + +Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding +part and usage. + +Required properties: +- compatible: "marvell,88f5181-pinctrl", + "marvell,88f5181l-pinctrl", + "marvell,88f5182-pinctrl", + "marvell,88f5281-pinctrl" + +- reg: two register areas, the first one describing the first two + contiguous MPP registers, and the second one describing the single + final MPP register, separated from the previous one. + +Available mpp pins/groups and functions: +Note: brackets (x) are not part of the mpp name for marvell,function and given +only for more detailed description in this document. + +* Marvell Orion 88f5181l + +name pins functions +================================================================================ +mpp0 0 pcie(rstout), pci(req2), gpio +mpp1 1 gpio, pci(gnt2) +mpp2 2 gpio, pci(req3), pci-1(pme) +mpp3 3 gpio, pci(gnt3) +mpp4 4 gpio, pci(req4) +mpp5 5 gpio, pci(gnt4) +mpp6 6 gpio, pci(req5), pci-1(clk) +mpp7 7 gpio, pci(gnt5), pci-1(clk) +mpp8 8 gpio, ge(col) +mpp9 9 gpio, ge(rxerr) +mpp10 10 gpio, ge(crs) +mpp11 11 gpio, ge(txerr) +mpp12 12 gpio, ge(txd4) +mpp13 13 gpio, ge(txd5) +mpp14 14 gpio, ge(txd6) +mpp15 15 gpio, ge(txd7) +mpp16 16 ge(rxd4) +mpp17 17 ge(rxd5) +mpp18 18 ge(rxd6) +mpp19 19 ge(rxd7) + +* Marvell Orion 88f5182 + +name pins functions +================================================================================ +mpp0 0 pcie(rstout), pci(req2), gpio +mpp1 1 gpio, pci(gnt2) +mpp2 2 gpio, pci(req3), pci-1(pme) +mpp3 3 gpio, pci(gnt3) +mpp4 4 gpio, pci(req4), bootnand(re), sata0(prsnt) +mpp5 5 gpio, pci(gnt4), bootnand(we), sata1(prsnt) +mpp6 6 gpio, pci(req5), nand(re0), sata0(act) +mpp7 7 gpio, pci(gnt5), nand(we0), sata1(act) +mpp8 8 gpio, ge(col) +mpp9 9 gpio, ge(rxerr) +mpp10 10 gpio, ge(crs) +mpp11 11 gpio, ge(txerr) +mpp12 12 gpio, ge(txd4), nand(re1), sata0(ledprsnt) +mpp13 13 gpio, ge(txd5), nand(we1), sata1(ledprsnt) +mpp14 14 gpio, ge(txd6), nand(re2), sata0(ledact) +mpp15 15 gpio, ge(txd7), nand(we2), sata1(ledact) +mpp16 16 uart1(rxd), ge(rxd4), gpio +mpp17 17 uart1(txd), ge(rxd5), gpio +mpp18 18 uart1(cts), ge(rxd6), gpio +mpp19 19 uart1(rts), ge(rxd7), gpio + +* Marvell Orion 88f5281 + +name pins functions +================================================================================ +mpp0 0 pcie(rstout), pci(req2), gpio +mpp1 1 gpio, pci(gnt2) +mpp2 2 gpio, pci(req3), pci(pme) +mpp3 3 gpio, pci(gnt3) +mpp4 4 gpio, pci(req4), bootnand(re) +mpp5 5 gpio, pci(gnt4), bootnand(we) +mpp6 6 gpio, pci(req5), nand(re0) +mpp7 7 gpio, pci(gnt5), nand(we0) +mpp8 8 gpio, ge(col) +mpp9 9 gpio, ge(rxerr) +mpp10 10 gpio, ge(crs) +mpp11 11 gpio, ge(txerr) +mpp12 12 gpio, ge(txd4), nand(re1) +mpp13 13 gpio, ge(txd5), nand(we1) +mpp14 14 gpio, ge(txd6), nand(re2) +mpp15 15 gpio, ge(txd7), nand(we2) +mpp16 16 uart1(rxd), ge(rxd4) +mpp17 17 uart1(txd), ge(rxd5) +mpp18 18 uart1(cts), ge(rxd6) +mpp19 19 uart1(rts), ge(rxd7) diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/microchip,sparx5-sgpio.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/microchip,sparx5-sgpio.yaml index cfba443cc..0df4e114f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/microchip,sparx5-sgpio.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/microchip,sparx5-sgpio.yaml @@ -1,168 +1,168 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/microchip,sparx5-sgpio.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Microsemi/Microchip Serial GPIO controller - -maintainers: - - Lars Povlsen - -description: | - By using a serial interface, the SIO controller significantly extend - the number of available GPIOs with a minimum number of additional - pins on the device. The primary purpose of the SIO controllers is to - connect control signals from SFP modules and to act as an LED - controller. - -properties: - $nodename: - pattern: "^gpio@[0-9a-f]+$" - - compatible: - enum: - - microchip,sparx5-sgpio - - mscc,ocelot-sgpio - - mscc,luton-sgpio - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - microchip,sgpio-port-ranges: - description: This is a sequence of tuples, defining intervals of - enabled ports in the serial input stream. The enabled ports must - match the hardware configuration in order for signals to be - properly written/read to/from the controller holding - registers. Being tuples, then number of arguments must be - even. The tuples mast be ordered (low, high) and are - inclusive. - $ref: /schemas/types.yaml#/definitions/uint32-matrix - items: - items: - - description: | - "low" indicates start bit number of range - minimum: 0 - maximum: 31 - - description: | - "high" indicates end bit number of range - minimum: 0 - maximum: 31 - minItems: 1 - maxItems: 32 - - bus-frequency: - description: The sgpio controller frequency (Hz). This dictates - the serial bitstream speed, which again affects the latency in - getting control signals back and forth between external shift - registers. The speed must be no larger than half the system - clock, and larger than zero. - default: 12500000 - - resets: - maxItems: 1 - - reset-names: - items: - - const: switch - -patternProperties: - "^gpio@[0-1]$": - type: object - properties: - compatible: - const: microchip,sparx5-sgpio-bank - - reg: - description: | - The GPIO bank number. "0" is designates the input pin bank, - "1" the output bank. - maxItems: 1 - - gpio-controller: true - - '#gpio-cells': - description: | - Specifies the pin (port and bit) and flags. Note that the - SGIO pin is defined by *2* numbers, a port number between 0 - and 31, and a bit index, 0 to 3. The maximum bit number is - controlled indirectly by the "ngpios" property: (ngpios/32). - const: 3 - - interrupts: - description: Specifies the sgpio IRQ (in parent controller) - maxItems: 1 - - interrupt-controller: true - - '#interrupt-cells': - description: - Specifies the pin (port and bit) and flags, as defined in - defined in include/dt-bindings/interrupt-controller/irq.h - const: 3 - - ngpios: - description: The numbers of GPIO's exposed. This must be a - multiple of 32. - minimum: 32 - maximum: 128 - - required: - - compatible - - reg - - gpio-controller - - '#gpio-cells' - - ngpios - - additionalProperties: false - -additionalProperties: false - -required: - - compatible - - reg - - clocks - - microchip,sgpio-port-ranges - - "#address-cells" - - "#size-cells" - -examples: - - | - #include - sgpio2: gpio@1101059c { - #address-cells = <1>; - #size-cells = <0>; - compatible = "microchip,sparx5-sgpio"; - clocks = <&sys_clk>; - pinctrl-0 = <&sgpio2_pins>; - pinctrl-names = "default"; - reg = <0x1101059c 0x118>; - microchip,sgpio-port-ranges = <0 0>, <16 18>, <28 31>; - bus-frequency = <25000000>; - sgpio_in2: gpio@0 { - reg = <0>; - compatible = "microchip,sparx5-sgpio-bank"; - gpio-controller; - #gpio-cells = <3>; - ngpios = <96>; - interrupts = ; - interrupt-controller; - #interrupt-cells = <3>; - }; - sgpio_out2: gpio@1 { - compatible = "microchip,sparx5-sgpio-bank"; - reg = <1>; - gpio-controller; - #gpio-cells = <3>; - ngpios = <96>; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/microchip,sparx5-sgpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microsemi/Microchip Serial GPIO controller + +maintainers: + - Lars Povlsen + +description: | + By using a serial interface, the SIO controller significantly extend + the number of available GPIOs with a minimum number of additional + pins on the device. The primary purpose of the SIO controllers is to + connect control signals from SFP modules and to act as an LED + controller. + +properties: + $nodename: + pattern: "^gpio@[0-9a-f]+$" + + compatible: + enum: + - microchip,sparx5-sgpio + - mscc,ocelot-sgpio + - mscc,luton-sgpio + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + microchip,sgpio-port-ranges: + description: This is a sequence of tuples, defining intervals of + enabled ports in the serial input stream. The enabled ports must + match the hardware configuration in order for signals to be + properly written/read to/from the controller holding + registers. Being tuples, then number of arguments must be + even. The tuples mast be ordered (low, high) and are + inclusive. + $ref: /schemas/types.yaml#/definitions/uint32-matrix + items: + items: + - description: | + "low" indicates start bit number of range + minimum: 0 + maximum: 31 + - description: | + "high" indicates end bit number of range + minimum: 0 + maximum: 31 + minItems: 1 + maxItems: 32 + + bus-frequency: + description: The sgpio controller frequency (Hz). This dictates + the serial bitstream speed, which again affects the latency in + getting control signals back and forth between external shift + registers. The speed must be no larger than half the system + clock, and larger than zero. + default: 12500000 + + resets: + maxItems: 1 + + reset-names: + items: + - const: switch + +patternProperties: + "^gpio@[0-1]$": + type: object + properties: + compatible: + const: microchip,sparx5-sgpio-bank + + reg: + description: | + The GPIO bank number. "0" is designates the input pin bank, + "1" the output bank. + maxItems: 1 + + gpio-controller: true + + '#gpio-cells': + description: | + Specifies the pin (port and bit) and flags. Note that the + SGIO pin is defined by *2* numbers, a port number between 0 + and 31, and a bit index, 0 to 3. The maximum bit number is + controlled indirectly by the "ngpios" property: (ngpios/32). + const: 3 + + interrupts: + description: Specifies the sgpio IRQ (in parent controller) + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + description: + Specifies the pin (port and bit) and flags, as defined in + defined in include/dt-bindings/interrupt-controller/irq.h + const: 3 + + ngpios: + description: The numbers of GPIO's exposed. This must be a + multiple of 32. + minimum: 32 + maximum: 128 + + required: + - compatible + - reg + - gpio-controller + - '#gpio-cells' + - ngpios + + additionalProperties: false + +additionalProperties: false + +required: + - compatible + - reg + - clocks + - microchip,sgpio-port-ranges + - "#address-cells" + - "#size-cells" + +examples: + - | + #include + sgpio2: gpio@1101059c { + #address-cells = <1>; + #size-cells = <0>; + compatible = "microchip,sparx5-sgpio"; + clocks = <&sys_clk>; + pinctrl-0 = <&sgpio2_pins>; + pinctrl-names = "default"; + reg = <0x1101059c 0x118>; + microchip,sgpio-port-ranges = <0 0>, <16 18>, <28 31>; + bus-frequency = <25000000>; + sgpio_in2: gpio@0 { + reg = <0>; + compatible = "microchip,sparx5-sgpio-bank"; + gpio-controller; + #gpio-cells = <3>; + ngpios = <96>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <3>; + }; + sgpio_out2: gpio@1 { + compatible = "microchip,sparx5-sgpio-bank"; + reg = <1>; + gpio-controller; + #gpio-cells = <3>; + ngpios = <96>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nuvoton,ma35d1-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nuvoton,ma35d1-pinctrl.yaml index 232082e52..763a49bd0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nuvoton,ma35d1-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nuvoton,ma35d1-pinctrl.yaml @@ -1,178 +1,178 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/nuvoton,ma35d1-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Nuvoton MA35D1 pin control and GPIO - -maintainers: - - Shan-Chun Hung - - Jacky Huang - -allOf: - - $ref: pinctrl.yaml# - -properties: - compatible: - enum: - - nuvoton,ma35d1-pinctrl - - reg: - maxItems: 1 - - '#address-cells': - const: 1 - - '#size-cells': - const: 1 - - nuvoton,sys: - $ref: /schemas/types.yaml#/definitions/phandle - description: - phandle of the system-management node. - - ranges: true - -patternProperties: - "^gpio@[0-9a-f]+$": - type: object - properties: - gpio-controller: true - - '#gpio-cells': - const: 2 - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - interrupt-controller: true - - '#interrupt-cells': - const: 2 - - interrupts: - description: - The interrupt outputs to sysirq. - maxItems: 1 - - required: - - gpio-controller - - '#gpio-cells' - - reg - - clocks - - interrupt-controller - - '#interrupt-cells' - - interrupts - - additionalProperties: false - - "-grp$": - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - patternProperties: - "-pins$": - type: object - description: - A pinctrl node should contain at least one subnodes representing the - pinctrl groups available on the machine. Each subnode will list the - pins it needs, and how they should be configured, with regard to muxer - configuration, pullups, drive strength, input enable/disable and input - schmitt. - $ref: /schemas/pinctrl/pincfg-node.yaml - - properties: - nuvoton,pins: - description: - Each entry consists of 4 parameters and represents the mux and config - setting for one pin. - $ref: /schemas/types.yaml#/definitions/uint32-matrix - minItems: 1 - items: - items: - - minimum: 0 - maximum: 13 - description: - Pin bank. - - minimum: 0 - maximum: 15 - description: - Pin bank index. - - minimum: 0 - maximum: 15 - description: - Mux 0 means GPIO and mux 1 to 15 means the specific device function. - - power-source: - description: | - Valid arguments are described as below: - 0: power supply of 1.8V - 1: power supply of 3.3V - enum: [0, 1] - - drive-strength-microamp: - oneOf: - - enum: [ 2900, 4400, 5800, 7300, 8600, 10100, 11500, 13000 ] - description: 1.8V I/O driving strength - - enum: [ 17100, 25600, 34100, 42800, 48000, 56000, 77000, 82000 ] - description: 3.3V I/O driving strength - - bias-disable: true - - bias-pull-up: true - - bias-pull-down: true - - input-schmitt-disable: true - - additionalProperties: false - - additionalProperties: false - -required: - - compatible - - reg - - nuvoton,sys - -additionalProperties: false - -examples: - - | - #include - #include - #include - - pinctrl@40040000 { - compatible = "nuvoton,ma35d1-pinctrl"; - reg = <0x40040000 0xc00>; - #address-cells = <1>; - #size-cells = <1>; - nuvoton,sys = <&sys>; - ranges = <0x0 0x40040000 0x400>; - - gpio@0 { - reg = <0x0 0x40>; - interrupts = ; - clocks = <&clk GPA_GATE>; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - }; - - uart-grp { - uart11-pins { - nuvoton,pins = <11 0 2>, - <11 1 2>, - <11 2 2>, - <11 3 2>; - power-source = <1>; - bias-disable; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/nuvoton,ma35d1-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton MA35D1 pin control and GPIO + +maintainers: + - Shan-Chun Hung + - Jacky Huang + +allOf: + - $ref: pinctrl.yaml# + +properties: + compatible: + enum: + - nuvoton,ma35d1-pinctrl + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + + nuvoton,sys: + $ref: /schemas/types.yaml#/definitions/phandle + description: + phandle of the system-management node. + + ranges: true + +patternProperties: + "^gpio@[0-9a-f]+$": + type: object + properties: + gpio-controller: true + + '#gpio-cells': + const: 2 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + + interrupts: + description: + The interrupt outputs to sysirq. + maxItems: 1 + + required: + - gpio-controller + - '#gpio-cells' + - reg + - clocks + - interrupt-controller + - '#interrupt-cells' + - interrupts + + additionalProperties: false + + "-grp$": + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + patternProperties: + "-pins$": + type: object + description: + A pinctrl node should contain at least one subnodes representing the + pinctrl groups available on the machine. Each subnode will list the + pins it needs, and how they should be configured, with regard to muxer + configuration, pullups, drive strength, input enable/disable and input + schmitt. + $ref: /schemas/pinctrl/pincfg-node.yaml + + properties: + nuvoton,pins: + description: + Each entry consists of 4 parameters and represents the mux and config + setting for one pin. + $ref: /schemas/types.yaml#/definitions/uint32-matrix + minItems: 1 + items: + items: + - minimum: 0 + maximum: 13 + description: + Pin bank. + - minimum: 0 + maximum: 15 + description: + Pin bank index. + - minimum: 0 + maximum: 15 + description: + Mux 0 means GPIO and mux 1 to 15 means the specific device function. + + power-source: + description: | + Valid arguments are described as below: + 0: power supply of 1.8V + 1: power supply of 3.3V + enum: [0, 1] + + drive-strength-microamp: + oneOf: + - enum: [ 2900, 4400, 5800, 7300, 8600, 10100, 11500, 13000 ] + description: 1.8V I/O driving strength + - enum: [ 17100, 25600, 34100, 42800, 48000, 56000, 77000, 82000 ] + description: 3.3V I/O driving strength + + bias-disable: true + + bias-pull-up: true + + bias-pull-down: true + + input-schmitt-disable: true + + additionalProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - nuvoton,sys + +additionalProperties: false + +examples: + - | + #include + #include + #include + + pinctrl@40040000 { + compatible = "nuvoton,ma35d1-pinctrl"; + reg = <0x40040000 0xc00>; + #address-cells = <1>; + #size-cells = <1>; + nuvoton,sys = <&sys>; + ranges = <0x0 0x40040000 0x400>; + + gpio@0 { + reg = <0x0 0x40>; + interrupts = ; + clocks = <&clk GPA_GATE>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + uart-grp { + uart11-pins { + nuvoton,pins = <11 0 2>, + <11 1 2>, + <11 2 2>, + <11 3 2>; + power-source = <1>; + bias-disable; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nuvoton,wpcm450-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nuvoton,wpcm450-pinctrl.yaml index ac5bbc594..08442c880 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nuvoton,wpcm450-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nuvoton,wpcm450-pinctrl.yaml @@ -1,162 +1,162 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/nuvoton,wpcm450-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Nuvoton WPCM450 pin control and GPIO - -maintainers: - - Jonathan Neuschäfer - -properties: - compatible: - const: nuvoton,wpcm450-pinctrl - - reg: - maxItems: 1 - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - -patternProperties: - # There are three kinds of subnodes: - # 1. a GPIO controller node for each GPIO bank - # 2. a pinmux node configures pin muxing for a group of pins (e.g. rmii2) - # 3. a pinconf node configures properties of a single pin - - "^gpio@[0-7]$": - type: object - additionalProperties: false - - description: - Eight GPIO banks (gpio@0 to gpio@7), that each contain between 14 and 18 - GPIOs. Some GPIOs support interrupts. - - properties: - reg: - minimum: 0 - maximum: 7 - - gpio-controller: true - - "#gpio-cells": - const: 2 - - interrupt-controller: true - - "#interrupt-cells": - const: 2 - - interrupts: - maxItems: 3 - description: - The interrupts associated with this GPIO bank - - required: - - reg - - gpio-controller - - '#gpio-cells' - - "^mux-": - $ref: pinmux-node.yaml# - - properties: - groups: - description: - One or more groups of pins to mux to a certain function - items: - enum: [ smb3, smb4, smb5, scs1, scs2, scs3, smb0, smb1, smb2, bsp, - hsp1, hsp2, r1err, r1md, rmii2, r2err, r2md, kbcc, dvo, - clko, smi, uinc, gspi, mben, xcs2, xcs1, sdio, sspi, fi0, - fi1, fi2, fi3, fi4, fi5, fi6, fi7, fi8, fi9, fi10, fi11, - fi12, fi13, fi14, fi15, pwm0, pwm1, pwm2, pwm3, pwm4, pwm5, - pwm6, pwm7, hg0, hg1, hg2, hg3, hg4, hg5, hg6, hg7 ] - function: - description: - The function that a group of pins is muxed to - enum: [ smb3, smb4, smb5, scs1, scs2, scs3, smb0, smb1, smb2, bsp, - hsp1, hsp2, r1err, r1md, rmii2, r2err, r2md, kbcc, dvo0, - dvo1, dvo2, dvo3, dvo4, dvo5, dvo6, dvo7, clko, smi, uinc, - gspi, mben, xcs2, xcs1, sdio, sspi, fi0, fi1, fi2, fi3, fi4, - fi5, fi6, fi7, fi8, fi9, fi10, fi11, fi12, fi13, fi14, fi15, - pwm0, pwm1, pwm2, pwm3, pwm4, pwm5, pwm6, pwm7, hg0, hg1, - hg2, hg3, hg4, hg5, hg6, hg7, gpio ] - - dependencies: - groups: [ function ] - function: [ groups ] - - additionalProperties: false - - "^cfg-": - $ref: pincfg-node.yaml# - - properties: - pins: - description: - A list of pins to configure in certain ways, such as enabling - debouncing - items: - pattern: "^gpio1?[0-9]{1,2}$" - - input-debounce: - maxItems: 1 - - additionalProperties: false - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - #include - #include - pinctrl: pinctrl@b8003000 { - compatible = "nuvoton,wpcm450-pinctrl"; - reg = <0xb8003000 0x1000>; - #address-cells = <1>; - #size-cells = <0>; - - gpio0: gpio@0 { - reg = <0>; - gpio-controller; - #gpio-cells = <2>; - interrupts = <2 IRQ_TYPE_LEVEL_HIGH>, - <3 IRQ_TYPE_LEVEL_HIGH>, - <4 IRQ_TYPE_LEVEL_HIGH>; - }; - - mux-rmii2 { - groups = "rmii2"; - function = "rmii2"; - }; - - pinmux_uid: mux-uid { - groups = "gspi", "sspi"; - function = "gpio"; - }; - - pinctrl_uid: cfg-uid { - pins = "gpio14"; - input-debounce = <1>; - }; - }; - - gpio-keys { - compatible = "gpio-keys"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_uid>, <&pinmux_uid>; - - button-uid { - label = "UID"; - linux,code = <102>; - gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/nuvoton,wpcm450-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton WPCM450 pin control and GPIO + +maintainers: + - Jonathan Neuschäfer + +properties: + compatible: + const: nuvoton,wpcm450-pinctrl + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +patternProperties: + # There are three kinds of subnodes: + # 1. a GPIO controller node for each GPIO bank + # 2. a pinmux node configures pin muxing for a group of pins (e.g. rmii2) + # 3. a pinconf node configures properties of a single pin + + "^gpio@[0-7]$": + type: object + additionalProperties: false + + description: + Eight GPIO banks (gpio@0 to gpio@7), that each contain between 14 and 18 + GPIOs. Some GPIOs support interrupts. + + properties: + reg: + minimum: 0 + maximum: 7 + + gpio-controller: true + + "#gpio-cells": + const: 2 + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + + interrupts: + maxItems: 3 + description: + The interrupts associated with this GPIO bank + + required: + - reg + - gpio-controller + - '#gpio-cells' + + "^mux-": + $ref: pinmux-node.yaml# + + properties: + groups: + description: + One or more groups of pins to mux to a certain function + items: + enum: [ smb3, smb4, smb5, scs1, scs2, scs3, smb0, smb1, smb2, bsp, + hsp1, hsp2, r1err, r1md, rmii2, r2err, r2md, kbcc, dvo, + clko, smi, uinc, gspi, mben, xcs2, xcs1, sdio, sspi, fi0, + fi1, fi2, fi3, fi4, fi5, fi6, fi7, fi8, fi9, fi10, fi11, + fi12, fi13, fi14, fi15, pwm0, pwm1, pwm2, pwm3, pwm4, pwm5, + pwm6, pwm7, hg0, hg1, hg2, hg3, hg4, hg5, hg6, hg7 ] + function: + description: + The function that a group of pins is muxed to + enum: [ smb3, smb4, smb5, scs1, scs2, scs3, smb0, smb1, smb2, bsp, + hsp1, hsp2, r1err, r1md, rmii2, r2err, r2md, kbcc, dvo0, + dvo1, dvo2, dvo3, dvo4, dvo5, dvo6, dvo7, clko, smi, uinc, + gspi, mben, xcs2, xcs1, sdio, sspi, fi0, fi1, fi2, fi3, fi4, + fi5, fi6, fi7, fi8, fi9, fi10, fi11, fi12, fi13, fi14, fi15, + pwm0, pwm1, pwm2, pwm3, pwm4, pwm5, pwm6, pwm7, hg0, hg1, + hg2, hg3, hg4, hg5, hg6, hg7, gpio ] + + dependencies: + groups: [ function ] + function: [ groups ] + + additionalProperties: false + + "^cfg-": + $ref: pincfg-node.yaml# + + properties: + pins: + description: + A list of pins to configure in certain ways, such as enabling + debouncing + items: + pattern: "^gpio1?[0-9]{1,2}$" + + input-debounce: + maxItems: 1 + + additionalProperties: false + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + #include + pinctrl: pinctrl@b8003000 { + compatible = "nuvoton,wpcm450-pinctrl"; + reg = <0xb8003000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + + gpio0: gpio@0 { + reg = <0>; + gpio-controller; + #gpio-cells = <2>; + interrupts = <2 IRQ_TYPE_LEVEL_HIGH>, + <3 IRQ_TYPE_LEVEL_HIGH>, + <4 IRQ_TYPE_LEVEL_HIGH>; + }; + + mux-rmii2 { + groups = "rmii2"; + function = "rmii2"; + }; + + pinmux_uid: mux-uid { + groups = "gspi", "sspi"; + function = "gpio"; + }; + + pinctrl_uid: cfg-uid { + pins = "gpio14"; + input-debounce = <1>; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uid>, <&pinmux_uid>; + + button-uid { + label = "UID"; + linux,code = <102>; + gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-xusb-padctl.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-xusb-padctl.txt index 726a7f7c7..02e971c39 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-xusb-padctl.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-xusb-padctl.txt @@ -1,135 +1,135 @@ -Device tree binding for NVIDIA Tegra XUSB pad controller -======================================================== - -NOTE: It turns out that this binding isn't an accurate description of the XUSB -pad controller. While the description is good enough for the functional subset -required for PCIe and SATA, it lacks the flexibility to represent the features -needed for USB. For the new binding, see ../phy/nvidia,tegra-xusb-padctl.txt. -The binding described in this file is deprecated and should not be used. - -The Tegra XUSB pad controller manages a set of lanes, each of which can be -assigned to one out of a set of different pads. Some of these pads have an -associated PHY that must be powered up before the pad can be used. - -This document defines the device-specific binding for the XUSB pad controller. - -Refer to pinctrl-bindings.txt in this directory for generic information about -pin controller device tree bindings and ../phy/phy-bindings.txt for details on -how to describe and reference PHYs in device trees. - -Required properties: --------------------- -- compatible: For Tegra124, must contain "nvidia,tegra124-xusb-padctl". - Otherwise, must contain '"nvidia,-xusb-padctl", - "nvidia-tegra124-xusb-padctl"', where is tegra132 or tegra210. -- reg: Physical base address and length of the controller's registers. -- resets: Must contain an entry for each entry in reset-names. - See ../reset/reset.txt for details. -- reset-names: Must include the following entries: - - padctl -- #phy-cells: Should be 1. The specifier is the index of the PHY to reference. - See for the list of valid values. - -Lane muxing: ------------- - -Child nodes contain the pinmux configurations following the conventions from -the pinctrl-bindings.txt document. Typically a single, static configuration is -given and applied at boot time. - -Each subnode describes groups of lanes along with parameters and pads that -they should be assigned to. The name of these subnodes is not important. All -subnodes should be parsed solely based on their content. - -Each subnode only applies the parameters that are explicitly listed. In other -words, if a subnode that lists a function but no pin configuration parameters -implies no information about any pin configuration parameters. Similarly, a -subnode that describes only an IDDQ parameter implies no information about -what function the pins are assigned to. For this reason even seemingly boolean -values are actually tristates in this binding: unspecified, off or on. -Unspecified is represented as an absent property, and off/on are represented -as integer values 0 and 1. - -Required properties: -- nvidia,lanes: An array of strings. Each string is the name of a lane. - -Optional properties: -- nvidia,function: A string that is the name of the function (pad) that the - pin or group should be assigned to. Valid values for function names are - listed below. -- nvidia,iddq: Enables IDDQ mode of the lane. (0: no, 1: yes) - -Note that not all of these properties are valid for all lanes. Lanes can be -divided into three groups: - - - otg-0, otg-1, otg-2: - - Valid functions for this group are: "snps", "xusb", "uart", "rsvd". - - The nvidia,iddq property does not apply to this group. - - - ulpi-0, hsic-0, hsic-1: - - Valid functions for this group are: "snps", "xusb". - - The nvidia,iddq property does not apply to this group. - - - pcie-0, pcie-1, pcie-2, pcie-3, pcie-4, sata-0: - - Valid functions for this group are: "pcie", "usb3", "sata", "rsvd". - - -Example: -======== - -SoC file extract: ------------------ - - padctl@7009f000 { - compatible = "nvidia,tegra124-xusb-padctl"; - reg = <0x0 0x7009f000 0x0 0x1000>; - resets = <&tegra_car 142>; - reset-names = "padctl"; - - #phy-cells = <1>; - }; - -Board file extract: -------------------- - - pcie-controller@1003000 { - ... - - phys = <&padctl 0>; - phy-names = "pcie"; - - ... - }; - - ... - - padctl: padctl@7009f000 { - pinctrl-0 = <&padctl_default>; - pinctrl-names = "default"; - - padctl_default: pinmux { - usb3 { - nvidia,lanes = "pcie-0", "pcie-1"; - nvidia,function = "usb3"; - nvidia,iddq = <0>; - }; - - pcie { - nvidia,lanes = "pcie-2", "pcie-3", - "pcie-4"; - nvidia,function = "pcie"; - nvidia,iddq = <0>; - }; - - sata { - nvidia,lanes = "sata-0"; - nvidia,function = "sata"; - nvidia,iddq = <0>; - }; - }; - }; +Device tree binding for NVIDIA Tegra XUSB pad controller +======================================================== + +NOTE: It turns out that this binding isn't an accurate description of the XUSB +pad controller. While the description is good enough for the functional subset +required for PCIe and SATA, it lacks the flexibility to represent the features +needed for USB. For the new binding, see ../phy/nvidia,tegra-xusb-padctl.txt. +The binding described in this file is deprecated and should not be used. + +The Tegra XUSB pad controller manages a set of lanes, each of which can be +assigned to one out of a set of different pads. Some of these pads have an +associated PHY that must be powered up before the pad can be used. + +This document defines the device-specific binding for the XUSB pad controller. + +Refer to pinctrl-bindings.txt in this directory for generic information about +pin controller device tree bindings and ../phy/phy-bindings.txt for details on +how to describe and reference PHYs in device trees. + +Required properties: +-------------------- +- compatible: For Tegra124, must contain "nvidia,tegra124-xusb-padctl". + Otherwise, must contain '"nvidia,-xusb-padctl", + "nvidia-tegra124-xusb-padctl"', where is tegra132 or tegra210. +- reg: Physical base address and length of the controller's registers. +- resets: Must contain an entry for each entry in reset-names. + See ../reset/reset.txt for details. +- reset-names: Must include the following entries: + - padctl +- #phy-cells: Should be 1. The specifier is the index of the PHY to reference. + See for the list of valid values. + +Lane muxing: +------------ + +Child nodes contain the pinmux configurations following the conventions from +the pinctrl-bindings.txt document. Typically a single, static configuration is +given and applied at boot time. + +Each subnode describes groups of lanes along with parameters and pads that +they should be assigned to. The name of these subnodes is not important. All +subnodes should be parsed solely based on their content. + +Each subnode only applies the parameters that are explicitly listed. In other +words, if a subnode that lists a function but no pin configuration parameters +implies no information about any pin configuration parameters. Similarly, a +subnode that describes only an IDDQ parameter implies no information about +what function the pins are assigned to. For this reason even seemingly boolean +values are actually tristates in this binding: unspecified, off or on. +Unspecified is represented as an absent property, and off/on are represented +as integer values 0 and 1. + +Required properties: +- nvidia,lanes: An array of strings. Each string is the name of a lane. + +Optional properties: +- nvidia,function: A string that is the name of the function (pad) that the + pin or group should be assigned to. Valid values for function names are + listed below. +- nvidia,iddq: Enables IDDQ mode of the lane. (0: no, 1: yes) + +Note that not all of these properties are valid for all lanes. Lanes can be +divided into three groups: + + - otg-0, otg-1, otg-2: + + Valid functions for this group are: "snps", "xusb", "uart", "rsvd". + + The nvidia,iddq property does not apply to this group. + + - ulpi-0, hsic-0, hsic-1: + + Valid functions for this group are: "snps", "xusb". + + The nvidia,iddq property does not apply to this group. + + - pcie-0, pcie-1, pcie-2, pcie-3, pcie-4, sata-0: + + Valid functions for this group are: "pcie", "usb3", "sata", "rsvd". + + +Example: +======== + +SoC file extract: +----------------- + + padctl@7009f000 { + compatible = "nvidia,tegra124-xusb-padctl"; + reg = <0x0 0x7009f000 0x0 0x1000>; + resets = <&tegra_car 142>; + reset-names = "padctl"; + + #phy-cells = <1>; + }; + +Board file extract: +------------------- + + pcie-controller@1003000 { + ... + + phys = <&padctl 0>; + phy-names = "pcie"; + + ... + }; + + ... + + padctl: padctl@7009f000 { + pinctrl-0 = <&padctl_default>; + pinctrl-names = "default"; + + padctl_default: pinmux { + usb3 { + nvidia,lanes = "pcie-0", "pcie-1"; + nvidia,function = "usb3"; + nvidia,iddq = <0>; + }; + + pcie { + nvidia,lanes = "pcie-2", "pcie-3", + "pcie-4"; + nvidia,function = "pcie"; + nvidia,iddq = <0>; + }; + + sata { + nvidia,lanes = "sata-0"; + nvidia,function = "sata"; + nvidia,iddq = <0>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.yaml index 50b2048f6..63cd743a3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.yaml @@ -1,110 +1,110 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/nvidia,tegra20-pinmux.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NVIDIA Tegra20 Pinmux Controller - -maintainers: - - Thierry Reding - - Jon Hunter - -properties: - compatible: - const: nvidia,tegra20-pinmux - - reg: - items: - - description: tri-state registers - - description: mux register - - description: pull-up/down registers - - description: pad control registers - -patternProperties: - "^pinmux(-[a-z0-9-_]+)?$": - type: object - - # pin groups - additionalProperties: - $ref: nvidia,tegra-pinmux-common.yaml - additionalProperties: false - properties: - nvidia,pins: - items: - enum: [ ata, atb, atc, atd, ate, cdev1, cdev2, crtp, csus, dap1, - dap2, dap3, dap4, ddc, dta, dtb, dtc, dtd, dte, dtf, gma, - gmb, gmc, gmd, gme, gpu, gpu7, gpv, hdint, i2cp, irrx, - irtx, kbca, kbcb, kbcc, kbcd, kbce, kbcf, lcsn, ld0, ld1, - ld2, ld3, ld4, ld5, ld6, ld7, ld8, ld9, ld10, ld11, ld12, - ld13, ld14, ld15, ld16, ld17, ldc, ldi, lhp0, lhp1, lhp2, - lhs, lm0, lm1, lpp, lpw0, lpw1, lpw2, lsc0, lsc1, lsck, - lsda, lsdi, lspi, lvp0, lvp1, lvs, owc, pmc, pta, rm, sdb, - sdc, sdd, sdio1, slxa, slxc, slxd, slxk, spdi, spdo, spia, - spib, spic, spid, spie, spif, spig, spih, uaa, uab, uac, - uad, uca, ucb, uda, - # tristate groups - ck32, ddrc, pmca, pmcb, pmcc, pmcd, pmce, xm2c, xm2d, ls, - lc, ld17_0, ld19_18, ld21_20, ld23_22, - # drive groups - drive_ao1, drive_ao2, drive_at1, drive_at2, drive_cdev1, - drive_cdev2, drive_csus, drive_dap1, drive_dap2, - drive_dap3, drive_dap4, drive_dbg, drive_lcd1, drive_lcd2, - drive_sdmmc2, drive_sdmmc3, drive_spi, drive_uaa, - drive_uab, drive_uart2, drive_uart3, drive_vi1, drive_vi2, - drive_xm2a, drive_xm2c, drive_xm2d, drive_xm2clk, - drive_sdio1, drive_crt, drive_ddc, drive_gma, drive_gmb, - drive_gmc, drive_gmd, drive_gme, drive_owr, drive_uda ] - - nvidia,function: - enum: [ ahb_clk, apb_clk, audio_sync, crt, dap1, dap2, dap3, dap4, - dap5, displaya, displayb, emc_test0_dll, emc_test1_dll, gmi, - gmi_int, hdmi, i2cp, i2c1, i2c2, i2c3, ide, irda, kbc, mio, - mipi_hs, nand, osc, owr, pcie, plla_out, pllc_out1, - pllm_out1, pllp_out2, pllp_out3, pllp_out4, pwm, pwr_intr, - pwr_on, rsvd1, rsvd2, rsvd3, rsvd4, rtck, sdio1, sdio2, - sdio3, sdio4, sflash, spdif, spi1, spi2, spi2_alt, spi3, - spi4, trace, twc, uarta, uartb, uartc, uartd, uarte, ulpi, - vi, vi_sensor_clk, xio ] - - nvidia,pull: true - nvidia,tristate: true - nvidia,schmitt: true - nvidia,pull-down-strength: true - nvidia,pull-up-strength: true - nvidia,high-speed-mode: true - nvidia,low-power-mode: true - nvidia,slew-rate-rising: true - nvidia,slew-rate-falling: true - - required: - - nvidia,pins - -additionalProperties: false - -required: - - compatible - - reg - -examples: - - | - #include - #include - - pinctrl@70000000 { - compatible = "nvidia,tegra20-pinmux"; - reg = <0x70000014 0x10>, /* Tri-state registers */ - <0x70000080 0x20>, /* Mux registers */ - <0x700000a0 0x14>, /* Pull-up/down registers */ - <0x70000868 0xa8>; /* Pad control registers */ - - pinmux { - atb { - nvidia,pins = "atb", "gma", "gme"; - nvidia,function = "sdio4"; - nvidia,pull = <0>; - nvidia,tristate = <0>; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/nvidia,tegra20-pinmux.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra20 Pinmux Controller + +maintainers: + - Thierry Reding + - Jon Hunter + +properties: + compatible: + const: nvidia,tegra20-pinmux + + reg: + items: + - description: tri-state registers + - description: mux register + - description: pull-up/down registers + - description: pad control registers + +patternProperties: + "^pinmux(-[a-z0-9-_]+)?$": + type: object + + # pin groups + additionalProperties: + $ref: nvidia,tegra-pinmux-common.yaml + additionalProperties: false + properties: + nvidia,pins: + items: + enum: [ ata, atb, atc, atd, ate, cdev1, cdev2, crtp, csus, dap1, + dap2, dap3, dap4, ddc, dta, dtb, dtc, dtd, dte, dtf, gma, + gmb, gmc, gmd, gme, gpu, gpu7, gpv, hdint, i2cp, irrx, + irtx, kbca, kbcb, kbcc, kbcd, kbce, kbcf, lcsn, ld0, ld1, + ld2, ld3, ld4, ld5, ld6, ld7, ld8, ld9, ld10, ld11, ld12, + ld13, ld14, ld15, ld16, ld17, ldc, ldi, lhp0, lhp1, lhp2, + lhs, lm0, lm1, lpp, lpw0, lpw1, lpw2, lsc0, lsc1, lsck, + lsda, lsdi, lspi, lvp0, lvp1, lvs, owc, pmc, pta, rm, sdb, + sdc, sdd, sdio1, slxa, slxc, slxd, slxk, spdi, spdo, spia, + spib, spic, spid, spie, spif, spig, spih, uaa, uab, uac, + uad, uca, ucb, uda, + # tristate groups + ck32, ddrc, pmca, pmcb, pmcc, pmcd, pmce, xm2c, xm2d, ls, + lc, ld17_0, ld19_18, ld21_20, ld23_22, + # drive groups + drive_ao1, drive_ao2, drive_at1, drive_at2, drive_cdev1, + drive_cdev2, drive_csus, drive_dap1, drive_dap2, + drive_dap3, drive_dap4, drive_dbg, drive_lcd1, drive_lcd2, + drive_sdmmc2, drive_sdmmc3, drive_spi, drive_uaa, + drive_uab, drive_uart2, drive_uart3, drive_vi1, drive_vi2, + drive_xm2a, drive_xm2c, drive_xm2d, drive_xm2clk, + drive_sdio1, drive_crt, drive_ddc, drive_gma, drive_gmb, + drive_gmc, drive_gmd, drive_gme, drive_owr, drive_uda ] + + nvidia,function: + enum: [ ahb_clk, apb_clk, audio_sync, crt, dap1, dap2, dap3, dap4, + dap5, displaya, displayb, emc_test0_dll, emc_test1_dll, gmi, + gmi_int, hdmi, i2cp, i2c1, i2c2, i2c3, ide, irda, kbc, mio, + mipi_hs, nand, osc, owr, pcie, plla_out, pllc_out1, + pllm_out1, pllp_out2, pllp_out3, pllp_out4, pwm, pwr_intr, + pwr_on, rsvd1, rsvd2, rsvd3, rsvd4, rtck, sdio1, sdio2, + sdio3, sdio4, sflash, spdif, spi1, spi2, spi2_alt, spi3, + spi4, trace, twc, uarta, uartb, uartc, uartd, uarte, ulpi, + vi, vi_sensor_clk, xio ] + + nvidia,pull: true + nvidia,tristate: true + nvidia,schmitt: true + nvidia,pull-down-strength: true + nvidia,pull-up-strength: true + nvidia,high-speed-mode: true + nvidia,low-power-mode: true + nvidia,slew-rate-rising: true + nvidia,slew-rate-falling: true + + required: + - nvidia,pins + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + #include + #include + + pinctrl@70000000 { + compatible = "nvidia,tegra20-pinmux"; + reg = <0x70000014 0x10>, /* Tri-state registers */ + <0x70000080 0x20>, /* Mux registers */ + <0x700000a0 0x14>, /* Pull-up/down registers */ + <0x70000868 0xa8>; /* Pad control registers */ + + pinmux { + atb { + nvidia,pins = "atb", "gma", "gme"; + nvidia,function = "sdio4"; + nvidia,pull = <0>; + nvidia,tristate = <0>; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nxp,s32g2-siul2-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nxp,s32g2-siul2-pinctrl.yaml index c7d4dc978..a24286e4d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nxp,s32g2-siul2-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/nxp,s32g2-siul2-pinctrl.yaml @@ -1,123 +1,123 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright 2022 NXP -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/nxp,s32g2-siul2-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NXP S32G2 pin controller - -maintainers: - - Ghennadi Procopciuc - - Chester Lin - -description: | - S32G2 pinmux is implemented in SIUL2 (System Integration Unit Lite2), - whose memory map is split into two regions: - SIUL2_0 @ 0x4009c000 - SIUL2_1 @ 0x44010000 - - Every SIUL2 region has multiple register types, and here only MSCR and - IMCR registers need to be revealed for kernel to configure pinmux. - - Please note that some register indexes are reserved in S32G2, such as - MSCR102-MSCR111, MSCR123-MSCR143, IMCR84-IMCR118 and IMCR398-IMCR429. - -properties: - compatible: - enum: - - nxp,s32g2-siul2-pinctrl - - reg: - description: | - A list of MSCR/IMCR register regions to be reserved. - - MSCR (Multiplexed Signal Configuration Register) - An MSCR register can configure the associated pin as either a GPIO pin - or a function output pin depends on the selected signal source. - - IMCR (Input Multiplexed Signal Configuration Register) - An IMCR register can configure the associated pin as function input - pin depends on the selected signal source. - items: - - description: MSCR registers group 0 in SIUL2_0 - - description: MSCR registers group 1 in SIUL2_1 - - description: MSCR registers group 2 in SIUL2_1 - - description: IMCR registers group 0 in SIUL2_0 - - description: IMCR registers group 1 in SIUL2_1 - - description: IMCR registers group 2 in SIUL2_1 - -patternProperties: - '-pins$': - type: object - additionalProperties: false - - patternProperties: - '-grp[0-9]$': - type: object - allOf: - - $ref: pinmux-node.yaml# - - $ref: pincfg-node.yaml# - description: | - Pinctrl node's client devices specify pin muxes using subnodes, - which in turn use the standard properties below. - - properties: - bias-disable: true - bias-high-impedance: true - bias-pull-up: true - bias-pull-down: true - drive-open-drain: true - input-enable: true - output-enable: true - - pinmux: - description: | - An integer array for representing pinmux configurations of - a device. Each integer consists of a PIN_ID and a 4-bit - selected signal source(SSS) as IOMUX setting, which is - calculated as: pinmux = (PIN_ID << 4 | SSS) - - slew-rate: - description: Supported slew rate based on Fmax values (MHz) - enum: [83, 133, 150, 166, 208] - - additionalProperties: false - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - pinctrl@4009c240 { - compatible = "nxp,s32g2-siul2-pinctrl"; - - /* MSCR0-MSCR101 registers on siul2_0 */ - reg = <0x4009c240 0x198>, - /* MSCR112-MSCR122 registers on siul2_1 */ - <0x44010400 0x2c>, - /* MSCR144-MSCR190 registers on siul2_1 */ - <0x44010480 0xbc>, - /* IMCR0-IMCR83 registers on siul2_0 */ - <0x4009ca40 0x150>, - /* IMCR119-IMCR397 registers on siul2_1 */ - <0x44010c1c 0x45c>, - /* IMCR430-IMCR495 registers on siul2_1 */ - <0x440110f8 0x108>; - - llce-can0-pins { - llce-can0-grp0 { - pinmux = <0x2b0>; - input-enable; - slew-rate = <208>; - }; - - llce-can0-grp1 { - pinmux = <0x2c2>; - output-enable; - slew-rate = <208>; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright 2022 NXP +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/nxp,s32g2-siul2-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP S32G2 pin controller + +maintainers: + - Ghennadi Procopciuc + - Chester Lin + +description: | + S32G2 pinmux is implemented in SIUL2 (System Integration Unit Lite2), + whose memory map is split into two regions: + SIUL2_0 @ 0x4009c000 + SIUL2_1 @ 0x44010000 + + Every SIUL2 region has multiple register types, and here only MSCR and + IMCR registers need to be revealed for kernel to configure pinmux. + + Please note that some register indexes are reserved in S32G2, such as + MSCR102-MSCR111, MSCR123-MSCR143, IMCR84-IMCR118 and IMCR398-IMCR429. + +properties: + compatible: + enum: + - nxp,s32g2-siul2-pinctrl + + reg: + description: | + A list of MSCR/IMCR register regions to be reserved. + - MSCR (Multiplexed Signal Configuration Register) + An MSCR register can configure the associated pin as either a GPIO pin + or a function output pin depends on the selected signal source. + - IMCR (Input Multiplexed Signal Configuration Register) + An IMCR register can configure the associated pin as function input + pin depends on the selected signal source. + items: + - description: MSCR registers group 0 in SIUL2_0 + - description: MSCR registers group 1 in SIUL2_1 + - description: MSCR registers group 2 in SIUL2_1 + - description: IMCR registers group 0 in SIUL2_0 + - description: IMCR registers group 1 in SIUL2_1 + - description: IMCR registers group 2 in SIUL2_1 + +patternProperties: + '-pins$': + type: object + additionalProperties: false + + patternProperties: + '-grp[0-9]$': + type: object + allOf: + - $ref: pinmux-node.yaml# + - $ref: pincfg-node.yaml# + description: | + Pinctrl node's client devices specify pin muxes using subnodes, + which in turn use the standard properties below. + + properties: + bias-disable: true + bias-high-impedance: true + bias-pull-up: true + bias-pull-down: true + drive-open-drain: true + input-enable: true + output-enable: true + + pinmux: + description: | + An integer array for representing pinmux configurations of + a device. Each integer consists of a PIN_ID and a 4-bit + selected signal source(SSS) as IOMUX setting, which is + calculated as: pinmux = (PIN_ID << 4 | SSS) + + slew-rate: + description: Supported slew rate based on Fmax values (MHz) + enum: [83, 133, 150, 166, 208] + + additionalProperties: false + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pinctrl@4009c240 { + compatible = "nxp,s32g2-siul2-pinctrl"; + + /* MSCR0-MSCR101 registers on siul2_0 */ + reg = <0x4009c240 0x198>, + /* MSCR112-MSCR122 registers on siul2_1 */ + <0x44010400 0x2c>, + /* MSCR144-MSCR190 registers on siul2_1 */ + <0x44010480 0xbc>, + /* IMCR0-IMCR83 registers on siul2_0 */ + <0x4009ca40 0x150>, + /* IMCR119-IMCR397 registers on siul2_1 */ + <0x44010c1c 0x45c>, + /* IMCR430-IMCR495 registers on siul2_1 */ + <0x440110f8 0x108>; + + llce-can0-pins { + llce-can0-grp0 { + pinmux = <0x2b0>; + input-enable; + slew-rate = <208>; + }; + + llce-can0-grp1 { + pinmux = <0x2c2>; + output-enable; + slew-rate = <208>; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml index f24dad9ea..cbfcf215e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml @@ -1,156 +1,156 @@ -# SPDX-License-Identifier: GPL-2.0-only -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/pincfg-node.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Generic Pin Configuration Node - -maintainers: - - Linus Walleij - -description: - Many data items that are represented in a pin configuration node are common - and generic. Pin control bindings should use the properties defined below - where they are applicable; not all of these properties are relevant or useful - for all hardware or binding structures. Each individual binding document - should state which of these generic properties, if any, are used, and the - structure of the DT nodes that contain these properties. - -properties: - bias-disable: - type: boolean - description: disable any pin bias - - bias-high-impedance: - type: boolean - description: high impedance mode ("third-state", "floating") - - bias-bus-hold: - type: boolean - description: latch weakly - - bias-pull-up: - oneOf: - - type: boolean - - $ref: /schemas/types.yaml#/definitions/uint32 - description: pull up the pin. Takes as optional argument on hardware - supporting it the pull strength in Ohm. - - bias-pull-down: - oneOf: - - type: boolean - - $ref: /schemas/types.yaml#/definitions/uint32 - description: pull down the pin. Takes as optional argument on hardware - supporting it the pull strength in Ohm. - - bias-pull-pin-default: - oneOf: - - type: boolean - - $ref: /schemas/types.yaml#/definitions/uint32 - description: use pin-default pull state. Takes as optional argument on - hardware supporting it the pull strength in Ohm. - - drive-push-pull: - oneOf: - - type: boolean - - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [ 0, 1 ] - deprecated: true - description: drive actively high and low - - drive-open-drain: - oneOf: - - type: boolean - - $ref: /schemas/types.yaml#/definitions/uint32 - const: 1 # No known cases of 0 - deprecated: true - description: drive with open drain - - drive-open-source: - type: boolean - description: drive with open source - - drive-strength: - $ref: /schemas/types.yaml#/definitions/uint32 - description: sink or source at most X mA - - drive-strength-microamp: - description: sink or source at most X uA - - input-enable: - type: boolean - description: enable input on pin (no effect on output, such as - enabling an input buffer) - - input-disable: - type: boolean - description: disable input on pin (no effect on output, such as - disabling an input buffer) - - input-schmitt-enable: - type: boolean - description: enable schmitt-trigger mode - - input-schmitt-disable: - type: boolean - description: disable schmitt-trigger mode - - input-schmitt-microvolt: - description: threshold strength for schmitt-trigger - - input-debounce: - $ref: /schemas/types.yaml#/definitions/uint32-array - description: Takes the debounce time in usec as argument or 0 to disable - debouncing - - power-source: - $ref: /schemas/types.yaml#/definitions/uint32 - description: select between different power supplies - - low-power-enable: - type: boolean - description: enable low power mode - - low-power-disable: - type: boolean - description: disable low power mode - - output-disable: - type: boolean - description: disable output on a pin (such as disable an output buffer) - - output-enable: - type: boolean - description: enable output on a pin without actively driving it - (such as enabling an output buffer) - - output-impedance-ohms: - description: set the output impedance of a pin to at most X ohms - - output-low: - type: boolean - description: set the pin to output mode with low level - - output-high: - type: boolean - description: set the pin to output mode with high level - - sleep-hardware-state: - type: boolean - description: indicate this is sleep related state which will be - programmed into the registers for the sleep state. - - slew-rate: - $ref: /schemas/types.yaml#/definitions/uint32 - description: set the slew rate - - skew-delay: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - this affects the expected clock skew on input pins - and the delay before latching a value to an output - pin. Typically indicates how many double-inverters are - used to delay the signal. - -additionalProperties: true +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/pincfg-node.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic Pin Configuration Node + +maintainers: + - Linus Walleij + +description: + Many data items that are represented in a pin configuration node are common + and generic. Pin control bindings should use the properties defined below + where they are applicable; not all of these properties are relevant or useful + for all hardware or binding structures. Each individual binding document + should state which of these generic properties, if any, are used, and the + structure of the DT nodes that contain these properties. + +properties: + bias-disable: + type: boolean + description: disable any pin bias + + bias-high-impedance: + type: boolean + description: high impedance mode ("third-state", "floating") + + bias-bus-hold: + type: boolean + description: latch weakly + + bias-pull-up: + oneOf: + - type: boolean + - $ref: /schemas/types.yaml#/definitions/uint32 + description: pull up the pin. Takes as optional argument on hardware + supporting it the pull strength in Ohm. + + bias-pull-down: + oneOf: + - type: boolean + - $ref: /schemas/types.yaml#/definitions/uint32 + description: pull down the pin. Takes as optional argument on hardware + supporting it the pull strength in Ohm. + + bias-pull-pin-default: + oneOf: + - type: boolean + - $ref: /schemas/types.yaml#/definitions/uint32 + description: use pin-default pull state. Takes as optional argument on + hardware supporting it the pull strength in Ohm. + + drive-push-pull: + oneOf: + - type: boolean + - $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 0, 1 ] + deprecated: true + description: drive actively high and low + + drive-open-drain: + oneOf: + - type: boolean + - $ref: /schemas/types.yaml#/definitions/uint32 + const: 1 # No known cases of 0 + deprecated: true + description: drive with open drain + + drive-open-source: + type: boolean + description: drive with open source + + drive-strength: + $ref: /schemas/types.yaml#/definitions/uint32 + description: sink or source at most X mA + + drive-strength-microamp: + description: sink or source at most X uA + + input-enable: + type: boolean + description: enable input on pin (no effect on output, such as + enabling an input buffer) + + input-disable: + type: boolean + description: disable input on pin (no effect on output, such as + disabling an input buffer) + + input-schmitt-enable: + type: boolean + description: enable schmitt-trigger mode + + input-schmitt-disable: + type: boolean + description: disable schmitt-trigger mode + + input-schmitt-microvolt: + description: threshold strength for schmitt-trigger + + input-debounce: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: Takes the debounce time in usec as argument or 0 to disable + debouncing + + power-source: + $ref: /schemas/types.yaml#/definitions/uint32 + description: select between different power supplies + + low-power-enable: + type: boolean + description: enable low power mode + + low-power-disable: + type: boolean + description: disable low power mode + + output-disable: + type: boolean + description: disable output on a pin (such as disable an output buffer) + + output-enable: + type: boolean + description: enable output on a pin without actively driving it + (such as enabling an output buffer) + + output-impedance-ohms: + description: set the output impedance of a pin to at most X ohms + + output-low: + type: boolean + description: set the pin to output mode with low level + + output-high: + type: boolean + description: set the pin to output mode with high level + + sleep-hardware-state: + type: boolean + description: indicate this is sleep related state which will be + programmed into the registers for the sleep state. + + slew-rate: + $ref: /schemas/types.yaml#/definitions/uint32 + description: set the slew rate + + skew-delay: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + this affects the expected clock skew on input pins + and the delay before latching a value to an output + pin. Typically indicates how many double-inverters are + used to delay the signal. + +additionalProperties: true diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt index 9d9a8eef3..6904072d3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt @@ -1,109 +1,109 @@ -== Introduction == - -Hardware modules that control pin multiplexing or configuration parameters -such as pull-up/down, tri-state, drive-strength etc are designated as pin -controllers. Each pin controller must be represented as a node in device tree, -just like any other hardware module. - -Hardware modules whose signals are affected by pin configuration are -designated client devices. Again, each client device must be represented as a -node in device tree, just like any other hardware module. - -For a client device to operate correctly, certain pin controllers must -set up certain specific pin configurations. Some client devices need a -single static pin configuration, e.g. set up during initialization. Others -need to reconfigure pins at run-time, for example to tri-state pins when the -device is inactive. Hence, each client device can define a set of named -states. The number and names of those states is defined by the client device's -own binding. - -The common pinctrl bindings defined in this file provide an infrastructure -for client device device tree nodes to map those state names to the pin -configuration used by those states. - -Note that pin controllers themselves may also be client devices of themselves. -For example, a pin controller may set up its own "active" state when the -driver loads. This would allow representing a board's static pin configuration -in a single place, rather than splitting it across multiple client device -nodes. The decision to do this or not somewhat rests with the author of -individual board device tree files, and any requirements imposed by the -bindings for the individual client devices in use by that board, i.e. whether -they require certain specific named states for dynamic pin configuration. - -== Pinctrl client devices == - -For each client device individually, every pin state is assigned an integer -ID. These numbers start at 0, and are contiguous. For each state ID, a unique -property exists to define the pin configuration. Each state may also be -assigned a name. When names are used, another property exists to map from -those names to the integer IDs. - -Each client device's own binding determines the set of states that must be -defined in its device tree node, and whether to define the set of state -IDs that must be provided, or whether to define the set of state names that -must be provided. - -Required properties: -pinctrl-0: List of phandles, each pointing at a pin configuration - node. These referenced pin configuration nodes must be child - nodes of the pin controller that they configure. Multiple - entries may exist in this list so that multiple pin - controllers may be configured, or so that a state may be built - from multiple nodes for a single pin controller, each - contributing part of the overall configuration. See the next - section of this document for details of the format of these - pin configuration nodes. - - In some cases, it may be useful to define a state, but for it - to be empty. This may be required when a common IP block is - used in an SoC either without a pin controller, or where the - pin controller does not affect the HW module in question. If - the binding for that IP block requires certain pin states to - exist, they must still be defined, but may be left empty. - -Optional properties: -pinctrl-1: List of phandles, each pointing at a pin configuration - node within a pin controller. -... -pinctrl-n: List of phandles, each pointing at a pin configuration - node within a pin controller. -pinctrl-names: The list of names to assign states. List entry 0 defines the - name for integer state ID 0, list entry 1 for state ID 1, and - so on. - -For example: - - /* For a client device requiring named states */ - device { - pinctrl-names = "active", "idle"; - pinctrl-0 = <&state_0_node_a>; - pinctrl-1 = <&state_1_node_a>, <&state_1_node_b>; - }; - - /* For the same device if using state IDs */ - device { - pinctrl-0 = <&state_0_node_a>; - pinctrl-1 = <&state_1_node_a>, <&state_1_node_b>; - }; - - /* - * For an IP block whose binding supports pin configuration, - * but in use on an SoC that doesn't have any pin control hardware - */ - device { - pinctrl-names = "active", "idle"; - pinctrl-0 = <>; - pinctrl-1 = <>; - }; - -== Pin controller devices == - -See pinctrl.yaml - -== Generic pin multiplexing node content == - -See pinmux-node.yaml - -== Generic pin configuration node content == - -See pincfg-node.yaml +== Introduction == + +Hardware modules that control pin multiplexing or configuration parameters +such as pull-up/down, tri-state, drive-strength etc are designated as pin +controllers. Each pin controller must be represented as a node in device tree, +just like any other hardware module. + +Hardware modules whose signals are affected by pin configuration are +designated client devices. Again, each client device must be represented as a +node in device tree, just like any other hardware module. + +For a client device to operate correctly, certain pin controllers must +set up certain specific pin configurations. Some client devices need a +single static pin configuration, e.g. set up during initialization. Others +need to reconfigure pins at run-time, for example to tri-state pins when the +device is inactive. Hence, each client device can define a set of named +states. The number and names of those states is defined by the client device's +own binding. + +The common pinctrl bindings defined in this file provide an infrastructure +for client device device tree nodes to map those state names to the pin +configuration used by those states. + +Note that pin controllers themselves may also be client devices of themselves. +For example, a pin controller may set up its own "active" state when the +driver loads. This would allow representing a board's static pin configuration +in a single place, rather than splitting it across multiple client device +nodes. The decision to do this or not somewhat rests with the author of +individual board device tree files, and any requirements imposed by the +bindings for the individual client devices in use by that board, i.e. whether +they require certain specific named states for dynamic pin configuration. + +== Pinctrl client devices == + +For each client device individually, every pin state is assigned an integer +ID. These numbers start at 0, and are contiguous. For each state ID, a unique +property exists to define the pin configuration. Each state may also be +assigned a name. When names are used, another property exists to map from +those names to the integer IDs. + +Each client device's own binding determines the set of states that must be +defined in its device tree node, and whether to define the set of state +IDs that must be provided, or whether to define the set of state names that +must be provided. + +Required properties: +pinctrl-0: List of phandles, each pointing at a pin configuration + node. These referenced pin configuration nodes must be child + nodes of the pin controller that they configure. Multiple + entries may exist in this list so that multiple pin + controllers may be configured, or so that a state may be built + from multiple nodes for a single pin controller, each + contributing part of the overall configuration. See the next + section of this document for details of the format of these + pin configuration nodes. + + In some cases, it may be useful to define a state, but for it + to be empty. This may be required when a common IP block is + used in an SoC either without a pin controller, or where the + pin controller does not affect the HW module in question. If + the binding for that IP block requires certain pin states to + exist, they must still be defined, but may be left empty. + +Optional properties: +pinctrl-1: List of phandles, each pointing at a pin configuration + node within a pin controller. +... +pinctrl-n: List of phandles, each pointing at a pin configuration + node within a pin controller. +pinctrl-names: The list of names to assign states. List entry 0 defines the + name for integer state ID 0, list entry 1 for state ID 1, and + so on. + +For example: + + /* For a client device requiring named states */ + device { + pinctrl-names = "active", "idle"; + pinctrl-0 = <&state_0_node_a>; + pinctrl-1 = <&state_1_node_a>, <&state_1_node_b>; + }; + + /* For the same device if using state IDs */ + device { + pinctrl-0 = <&state_0_node_a>; + pinctrl-1 = <&state_1_node_a>, <&state_1_node_b>; + }; + + /* + * For an IP block whose binding supports pin configuration, + * but in use on an SoC that doesn't have any pin control hardware + */ + device { + pinctrl-names = "active", "idle"; + pinctrl-0 = <>; + pinctrl-1 = <>; + }; + +== Pin controller devices == + +See pinctrl.yaml + +== Generic pin multiplexing node content == + +See pinmux-node.yaml + +== Generic pin configuration node content == + +See pincfg-node.yaml diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/pinctrl-max77620.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/pinctrl-max77620.txt index 9765ca60c..28fbca180 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/pinctrl-max77620.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/pinctrl-max77620.txt @@ -1,127 +1,127 @@ -Pincontrol driver for MAX77620 Power management IC from Maxim Semiconductor. - -Device has 8 GPIO pins which can be configured as GPIO as well as the -special IO functions. - -Please refer file -for details of the common pinctrl bindings used by client devices, -including the meaning of the phrase "pin configuration node". - -Optional Pinmux properties: --------------------------- -Following properties are required if default setting of pins are required -at boot. -- pinctrl-names: A pinctrl state named per . -- pinctrl[0...n]: Properties to contain the phandle for pinctrl states per - . - -The pin configurations are defined as child of the pinctrl states node. Each -sub-node have following properties: - -Required properties: ------------------- -- pins: List of pins. Valid values of pins properties are: - gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7. - -Optional properties: -------------------- -Following are optional properties defined as pinmux DT binding document -. Absence of properties will leave the configuration -on default. - function, - drive-push-pull, - drive-open-drain, - bias-pull-up, - bias-pull-down. - -Valid values for function properties are: - gpio, lpm-control-in, fps-out, 32k-out, sd0-dvs-in, sd1-dvs-in, - reference-out - -There are also customised properties for the GPIO1, GPIO2 and GPIO3. These -customised properties are required to configure FPS configuration parameters -of these GPIOs. Please refer for more -detail of Flexible Power Sequence (FPS). - -- maxim,active-fps-source: FPS source for the GPIOs to get - enabled/disabled when system is in - active state. Valid values are: - - MAX77620_FPS_SRC_0, - FPS source is FPS0. - - MAX77620_FPS_SRC_1, - FPS source is FPS1 - - MAX77620_FPS_SRC_2 and - FPS source is FPS2 - - MAX77620_FPS_SRC_NONE. - GPIO is not controlled - by FPS events and it gets - enabled/disabled by register - access. - Absence of this property will leave - the FPS configuration register for that - GPIO to default configuration. - -- maxim,active-fps-power-up-slot: Sequencing event slot number on which - the GPIO get enabled when - master FPS input event set to HIGH. - Valid values are 0 to 7. - This is applicable if FPS source is - selected as FPS0, FPS1 or FPS2. - -- maxim,active-fps-power-down-slot: Sequencing event slot number on which - the GPIO get disabled when master - FPS input event set to LOW. - Valid values are 0 to 7. - This is applicable if FPS source is - selected as FPS0, FPS1 or FPS2. - -- maxim,suspend-fps-source: This is same as property - "maxim,active-fps-source" but value - get configured when system enters in - to suspend state. - -- maxim,suspend-fps-power-up-slot: This is same as property - "maxim,active-fps-power-up-slot" but - this value get configured into FPS - configuration register when system - enters into suspend. - This is applicable if suspend state - FPS source is selected as FPS0, FPS1 or - -- maxim,suspend-fps-power-down-slot: This is same as property - "maxim,active-fps-power-down-slot" but - this value get configured into FPS - configuration register when system - enters into suspend. - This is applicable if suspend state - FPS source is selected as FPS0, FPS1 or - FPS2. - -Example: --------- -#include -... -max77620@3c { - - pinctrl-names = "default"; - pinctrl-0 = <&spmic_default>; - - spmic_default: pinmux@0 { - pin_gpio0 { - pins = "gpio0"; - function = "gpio"; - }; - - pin_gpio1 { - pins = "gpio1"; - function = "fps-out"; - maxim,active-fps-source = ; - }; - - pin_gpio2 { - pins = "gpio2"; - function = "fps-out"; - maxim,active-fps-source = ; - }; - }; -}; +Pincontrol driver for MAX77620 Power management IC from Maxim Semiconductor. + +Device has 8 GPIO pins which can be configured as GPIO as well as the +special IO functions. + +Please refer file +for details of the common pinctrl bindings used by client devices, +including the meaning of the phrase "pin configuration node". + +Optional Pinmux properties: +-------------------------- +Following properties are required if default setting of pins are required +at boot. +- pinctrl-names: A pinctrl state named per . +- pinctrl[0...n]: Properties to contain the phandle for pinctrl states per + . + +The pin configurations are defined as child of the pinctrl states node. Each +sub-node have following properties: + +Required properties: +------------------ +- pins: List of pins. Valid values of pins properties are: + gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7. + +Optional properties: +------------------- +Following are optional properties defined as pinmux DT binding document +. Absence of properties will leave the configuration +on default. + function, + drive-push-pull, + drive-open-drain, + bias-pull-up, + bias-pull-down. + +Valid values for function properties are: + gpio, lpm-control-in, fps-out, 32k-out, sd0-dvs-in, sd1-dvs-in, + reference-out + +There are also customised properties for the GPIO1, GPIO2 and GPIO3. These +customised properties are required to configure FPS configuration parameters +of these GPIOs. Please refer for more +detail of Flexible Power Sequence (FPS). + +- maxim,active-fps-source: FPS source for the GPIOs to get + enabled/disabled when system is in + active state. Valid values are: + - MAX77620_FPS_SRC_0, + FPS source is FPS0. + - MAX77620_FPS_SRC_1, + FPS source is FPS1 + - MAX77620_FPS_SRC_2 and + FPS source is FPS2 + - MAX77620_FPS_SRC_NONE. + GPIO is not controlled + by FPS events and it gets + enabled/disabled by register + access. + Absence of this property will leave + the FPS configuration register for that + GPIO to default configuration. + +- maxim,active-fps-power-up-slot: Sequencing event slot number on which + the GPIO get enabled when + master FPS input event set to HIGH. + Valid values are 0 to 7. + This is applicable if FPS source is + selected as FPS0, FPS1 or FPS2. + +- maxim,active-fps-power-down-slot: Sequencing event slot number on which + the GPIO get disabled when master + FPS input event set to LOW. + Valid values are 0 to 7. + This is applicable if FPS source is + selected as FPS0, FPS1 or FPS2. + +- maxim,suspend-fps-source: This is same as property + "maxim,active-fps-source" but value + get configured when system enters in + to suspend state. + +- maxim,suspend-fps-power-up-slot: This is same as property + "maxim,active-fps-power-up-slot" but + this value get configured into FPS + configuration register when system + enters into suspend. + This is applicable if suspend state + FPS source is selected as FPS0, FPS1 or + +- maxim,suspend-fps-power-down-slot: This is same as property + "maxim,active-fps-power-down-slot" but + this value get configured into FPS + configuration register when system + enters into suspend. + This is applicable if suspend state + FPS source is selected as FPS0, FPS1 or + FPS2. + +Example: +-------- +#include +... +max77620@3c { + + pinctrl-names = "default"; + pinctrl-0 = <&spmic_default>; + + spmic_default: pinmux@0 { + pin_gpio0 { + pins = "gpio0"; + function = "gpio"; + }; + + pin_gpio1 { + pins = "gpio1"; + function = "fps-out"; + maxim,active-fps-source = ; + }; + + pin_gpio2 { + pins = "gpio2"; + function = "fps-out"; + maxim,active-fps-source = ; + }; + }; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/pinctrl-palmas.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/pinctrl-palmas.txt index c09a8db52..c28d4eb83 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/pinctrl-palmas.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/pinctrl-palmas.txt @@ -1,105 +1,105 @@ -Palmas Pincontrol bindings - -The pins of Palmas device can be set on different option and provides -the configuration for Pull UP/DOWN, open drain etc. - -Required properties: -- compatible: It must be one of following: - - "ti,palmas-pinctrl" for Palma series of the pincontrol. - - "ti,tps65913-pinctrl" for Palma series device TPS65913. - - "ti,tps80036-pinctrl" for Palma series device TPS80036. - -Please refer to pinctrl-bindings.txt in this directory for details of the -common pinctrl bindings used by client devices, including the meaning of the -phrase "pin configuration node". - -Palmas's pin configuration nodes act as a container for an arbitrary number of -subnodes. Each of these subnodes represents some desired configuration for a -list of pins. This configuration can include the mux function to select on -those pin(s), and various pin configuration parameters, such as pull-up, -open drain. - -The name of each subnode is not important; all subnodes should be enumerated -and processed purely based on their content. - -Each subnode only affects those parameters that are explicitly listed. In -other words, a subnode that lists a mux function but no pin configuration -parameters implies no information about any pin configuration parameters. -Similarly, a pin subnode that describes a pullup parameter implies no -information about e.g. the mux function. - -Optional properties: -- ti,palmas-enable-dvfs1: Enable DVFS1. Configure pins for DVFS1 mode. - Selection primary or secondary function associated to I2C2_SCL_SCE, - I2C2_SDA_SDO pin/pad for DVFS1 interface -- ti,palmas-enable-dvfs2: Enable DVFS2. Configure pins for DVFS2 mode. - Selection primary or secondary function associated to GPADC_START - and SYSEN2 pin/pad for DVFS2 interface -- ti,palmas-override-powerhold: This is applicable for PMICs for which - GPIO7 is configured in POWERHOLD mode which has higher priority - over DEV_ON bit and keeps the PMIC supplies on even after the DEV_ON - bit is turned off. This property enables driver to over ride the - POWERHOLD value to GPIO7 so as to turn off the PMIC in power off - scenarios. So for GPIO7 if ti,palmas-override-powerhold is set - then the GPIO_7 field should never be muxed to anything else. - It should be set to POWERHOLD by default and only in case of - power off scenarios the driver will over ride the mux value. - -This binding uses the following generic properties as defined in -pinctrl-bindings.txt: - -Required: pins -Options: function, bias-disable, bias-pull-up, bias-pull-down, - drive-open-drain. - -Note that many of these properties are only valid for certain specific pins. -See the Palmas device datasheet for complete details regarding which pins -support which functionality. - -Valid values for pin names are: - gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7, gpio8, gpio9, - gpio10, gpio11, gpio12, gpio13, gpio14, gpio15, vac, powergood, - nreswarm, pwrdown, gpadc_start, reset_in, nsleep, enable1, enable2, - int. - -Valid value of function names are: - gpio, led, pwm, regen, sysen, clk32kgaudio, id, vbus_det, chrg_det, - vac, vacok, powergood, usb_psel, msecure, pwrhold, int, nreswarm, - simrsto, simrsti, low_vbat, wireless_chrg1, rcm, pwrdown, gpadc_start, - reset_in, nsleep, enable. - -There are 4 special functions: opt0, opt1, opt2 and opt3. If any of these -functions is selected then directly pins register will be written with 0, 1, 2 -or 3 respectively if it is valid for that pins or list of pins. - -Example: - palmas: tps65913 { - .... - pinctrl { - compatible = "ti,tps65913-pinctrl"; - ti,palmas-enable-dvfs1; - pinctrl-names = "default"; - pinctrl-0 = <&palmas_pins_state>; - - palmas_pins_state: pinmux { - gpio0 { - pins = "gpio0"; - function = "id"; - bias-pull-up; - }; - - vac { - pins = "vac"; - function = "vacok"; - bias-pull-down; - }; - - gpio5 { - pins = "gpio5"; - function = "opt0"; - drive-open-drain = <1>; - }; - }; - }; - .... - }; +Palmas Pincontrol bindings + +The pins of Palmas device can be set on different option and provides +the configuration for Pull UP/DOWN, open drain etc. + +Required properties: +- compatible: It must be one of following: + - "ti,palmas-pinctrl" for Palma series of the pincontrol. + - "ti,tps65913-pinctrl" for Palma series device TPS65913. + - "ti,tps80036-pinctrl" for Palma series device TPS80036. + +Please refer to pinctrl-bindings.txt in this directory for details of the +common pinctrl bindings used by client devices, including the meaning of the +phrase "pin configuration node". + +Palmas's pin configuration nodes act as a container for an arbitrary number of +subnodes. Each of these subnodes represents some desired configuration for a +list of pins. This configuration can include the mux function to select on +those pin(s), and various pin configuration parameters, such as pull-up, +open drain. + +The name of each subnode is not important; all subnodes should be enumerated +and processed purely based on their content. + +Each subnode only affects those parameters that are explicitly listed. In +other words, a subnode that lists a mux function but no pin configuration +parameters implies no information about any pin configuration parameters. +Similarly, a pin subnode that describes a pullup parameter implies no +information about e.g. the mux function. + +Optional properties: +- ti,palmas-enable-dvfs1: Enable DVFS1. Configure pins for DVFS1 mode. + Selection primary or secondary function associated to I2C2_SCL_SCE, + I2C2_SDA_SDO pin/pad for DVFS1 interface +- ti,palmas-enable-dvfs2: Enable DVFS2. Configure pins for DVFS2 mode. + Selection primary or secondary function associated to GPADC_START + and SYSEN2 pin/pad for DVFS2 interface +- ti,palmas-override-powerhold: This is applicable for PMICs for which + GPIO7 is configured in POWERHOLD mode which has higher priority + over DEV_ON bit and keeps the PMIC supplies on even after the DEV_ON + bit is turned off. This property enables driver to over ride the + POWERHOLD value to GPIO7 so as to turn off the PMIC in power off + scenarios. So for GPIO7 if ti,palmas-override-powerhold is set + then the GPIO_7 field should never be muxed to anything else. + It should be set to POWERHOLD by default and only in case of + power off scenarios the driver will over ride the mux value. + +This binding uses the following generic properties as defined in +pinctrl-bindings.txt: + +Required: pins +Options: function, bias-disable, bias-pull-up, bias-pull-down, + drive-open-drain. + +Note that many of these properties are only valid for certain specific pins. +See the Palmas device datasheet for complete details regarding which pins +support which functionality. + +Valid values for pin names are: + gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7, gpio8, gpio9, + gpio10, gpio11, gpio12, gpio13, gpio14, gpio15, vac, powergood, + nreswarm, pwrdown, gpadc_start, reset_in, nsleep, enable1, enable2, + int. + +Valid value of function names are: + gpio, led, pwm, regen, sysen, clk32kgaudio, id, vbus_det, chrg_det, + vac, vacok, powergood, usb_psel, msecure, pwrhold, int, nreswarm, + simrsto, simrsti, low_vbat, wireless_chrg1, rcm, pwrdown, gpadc_start, + reset_in, nsleep, enable. + +There are 4 special functions: opt0, opt1, opt2 and opt3. If any of these +functions is selected then directly pins register will be written with 0, 1, 2 +or 3 respectively if it is valid for that pins or list of pins. + +Example: + palmas: tps65913 { + .... + pinctrl { + compatible = "ti,tps65913-pinctrl"; + ti,palmas-enable-dvfs1; + pinctrl-names = "default"; + pinctrl-0 = <&palmas_pins_state>; + + palmas_pins_state: pinmux { + gpio0 { + pins = "gpio0"; + function = "id"; + bias-pull-up; + }; + + vac { + pins = "vac"; + function = "vacok"; + bias-pull-down; + }; + + gpio5 { + pins = "gpio5"; + function = "opt0"; + drive-open-drain = <1>; + }; + }; + }; + .... + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,apq8084-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,apq8084-pinctrl.yaml index ecf6f441f..38877d8b9 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,apq8084-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,apq8084-pinctrl.yaml @@ -1,129 +1,129 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,apq8084-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Technologies, Inc. APQ8084 TLMM block - -maintainers: - - Bjorn Andersson - -description: | - Top Level Mode Multiplexer pin controller in Qualcomm APQ8084 SoC. - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -properties: - compatible: - const: qcom,apq8084-pinctrl - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: true - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-apq8084-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-apq8084-tlmm-state" - additionalProperties: false - -$defs: - qcom-apq8084-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-3][0-9]|14[0-6])$" - - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, - sdc2_data ] - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - enum: [ adsp_ext, audio_ref, blsp_i2c1, blsp_i2c2, blsp_i2c3, - blsp_i2c4, blsp_i2c5, blsp_i2c6, blsp_i2c7, blsp_i2c8, - blsp_i2c9, blsp_i2c10, blsp_i2c11, blsp_i2c12, - blsp_spi1, blsp_spi1_cs1, blsp_spi1_cs2, blsp_spi1_cs3, - blsp_spi2, blsp_spi3, blsp_spi3_cs1, blsp_spi3_cs2, - blsp_spi3_cs3, blsp_spi4, blsp_spi5, blsp_spi6, - blsp_spi7, blsp_spi8, blsp_spi9, blsp_spi10, - blsp_spi10_cs1, blsp_spi10_cs2, blsp_spi10_cs3, - blsp_spi11, blsp_spi12, blsp_uart1, blsp_uart2, - blsp_uart3, blsp_uart4, blsp_uart5, blsp_uart6, - blsp_uart7, blsp_uart8, blsp_uart9, blsp_uart10, - blsp_uart11, blsp_uart12, blsp_uim1, blsp_uim2, - blsp_uim3, blsp_uim4, blsp_uim5, blsp_uim6, blsp_uim7, - blsp_uim8, blsp_uim9, blsp_uim10, blsp_uim11, - blsp_uim12, cam_mclk0, cam_mclk1, cam_mclk2, cam_mclk3, - cci_async, cci_async_in0, cci_i2c0, cci_i2c1, - cci_timer0, cci_timer1, cci_timer2, cci_timer3, - cci_timer4, edp_hpd, gcc_gp1, gcc_gp2, gcc_gp3, - gcc_obt, gcc_vtt, gp_mn, gp_pdm0, gp_pdm1, gp_pdm2, - gp0_clk, gp1_clk, gpio, hdmi_cec, hdmi_ddc, hdmi_dtest, - hdmi_hpd, hdmi_rcv, hsic, ldo_en, ldo_update, - mdp_vsync, pci_e0, pci_e0_n, pci_e0_rst, pci_e1, - pci_e1_rst, pci_e1_rst_n, pci_e1_clkreq_n, pri_mi2s, - qua_mi2s, sata_act, sata_devsleep, sata_devsleep_n, - sd_write, sdc_emmc_mode, sdc3, sdc4, sec_mi2s, slimbus, - spdif_tx, spkr_i2s, spkr_i2s_ws, spss_geni, ter_mi2s, - tsif1, tsif2, uim, uim_batt_alarm ] - - required: - - pins - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - tlmm: pinctrl@fd510000 { - compatible = "qcom,apq8084-pinctrl"; - reg = <0xfd510000 0x4000>; - - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&tlmm 0 0 147>; - interrupt-controller; - #interrupt-cells = <2>; - interrupts = ; - - uart-state { - rx-pins { - pins = "gpio5"; - function = "blsp_uart2"; - bias-pull-up; - }; - - tx-pins { - pins = "gpio4"; - function = "blsp_uart2"; - bias-disable; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,apq8084-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. APQ8084 TLMM block + +maintainers: + - Bjorn Andersson + +description: | + Top Level Mode Multiplexer pin controller in Qualcomm APQ8084 SoC. + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +properties: + compatible: + const: qcom,apq8084-pinctrl + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: true + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-apq8084-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-apq8084-tlmm-state" + additionalProperties: false + +$defs: + qcom-apq8084-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-3][0-9]|14[0-6])$" + - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, + sdc2_data ] + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + enum: [ adsp_ext, audio_ref, blsp_i2c1, blsp_i2c2, blsp_i2c3, + blsp_i2c4, blsp_i2c5, blsp_i2c6, blsp_i2c7, blsp_i2c8, + blsp_i2c9, blsp_i2c10, blsp_i2c11, blsp_i2c12, + blsp_spi1, blsp_spi1_cs1, blsp_spi1_cs2, blsp_spi1_cs3, + blsp_spi2, blsp_spi3, blsp_spi3_cs1, blsp_spi3_cs2, + blsp_spi3_cs3, blsp_spi4, blsp_spi5, blsp_spi6, + blsp_spi7, blsp_spi8, blsp_spi9, blsp_spi10, + blsp_spi10_cs1, blsp_spi10_cs2, blsp_spi10_cs3, + blsp_spi11, blsp_spi12, blsp_uart1, blsp_uart2, + blsp_uart3, blsp_uart4, blsp_uart5, blsp_uart6, + blsp_uart7, blsp_uart8, blsp_uart9, blsp_uart10, + blsp_uart11, blsp_uart12, blsp_uim1, blsp_uim2, + blsp_uim3, blsp_uim4, blsp_uim5, blsp_uim6, blsp_uim7, + blsp_uim8, blsp_uim9, blsp_uim10, blsp_uim11, + blsp_uim12, cam_mclk0, cam_mclk1, cam_mclk2, cam_mclk3, + cci_async, cci_async_in0, cci_i2c0, cci_i2c1, + cci_timer0, cci_timer1, cci_timer2, cci_timer3, + cci_timer4, edp_hpd, gcc_gp1, gcc_gp2, gcc_gp3, + gcc_obt, gcc_vtt, gp_mn, gp_pdm0, gp_pdm1, gp_pdm2, + gp0_clk, gp1_clk, gpio, hdmi_cec, hdmi_ddc, hdmi_dtest, + hdmi_hpd, hdmi_rcv, hsic, ldo_en, ldo_update, + mdp_vsync, pci_e0, pci_e0_n, pci_e0_rst, pci_e1, + pci_e1_rst, pci_e1_rst_n, pci_e1_clkreq_n, pri_mi2s, + qua_mi2s, sata_act, sata_devsleep, sata_devsleep_n, + sd_write, sdc_emmc_mode, sdc3, sdc4, sec_mi2s, slimbus, + spdif_tx, spkr_i2s, spkr_i2s_ws, spss_geni, ter_mi2s, + tsif1, tsif2, uim, uim_batt_alarm ] + + required: + - pins + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + tlmm: pinctrl@fd510000 { + compatible = "qcom,apq8084-pinctrl"; + reg = <0xfd510000 0x4000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&tlmm 0 0 147>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = ; + + uart-state { + rx-pins { + pins = "gpio5"; + function = "blsp_uart2"; + bias-pull-up; + }; + + tx-pins { + pins = "gpio4"; + function = "blsp_uart2"; + bias-disable; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq5018-tlmm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq5018-tlmm.yaml index e95573e6e..233006065 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq5018-tlmm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq5018-tlmm.yaml @@ -1,123 +1,123 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,ipq5018-tlmm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm IPQ5018 TLMM pin controller - -maintainers: - - Bjorn Andersson - - Krzysztof Kozlowski - -description: - Top Level Mode Multiplexer pin controller in Qualcomm IPQ5018 SoC. - -properties: - compatible: - const: qcom,ipq5018-tlmm - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: - minItems: 1 - maxItems: 24 - - gpio-line-names: - maxItems: 47 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-ipq5018-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-ipq5018-tlmm-state" - additionalProperties: false - -$defs: - qcom-ipq5018-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - pattern: "^gpio([0-9]|[1-3][0-9]|4[0-6])$" - minItems: 1 - maxItems: 8 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - - enum: [ atest_char, audio_pdm0, audio_pdm1, audio_rxbclk, audio_rxd, - audio_rxfsync, audio_rxmclk, audio_txbclk, audio_txd, - audio_txfsync, audio_txmclk, blsp0_i2c, blsp0_spi, blsp0_uart0, - blsp0_uart1, blsp1_i2c0, blsp1_i2c1, blsp1_spi0, blsp1_spi1, - blsp1_uart0, blsp1_uart1, blsp1_uart2, blsp2_i2c0, blsp2_i2c1, - blsp2_spi, blsp2_spi0, blsp2_spi1, btss, burn0, burn1, cri_trng, - cri_trng0, cri_trng1, cxc_clk, cxc_data, dbg_out, eud_gpio, - gcc_plltest, gcc_tlmm, gpio, led0, led2, mac0, mac1, mdc, mdio, - pcie0_clk, pcie0_wake, pcie1_clk, pcie1_wake, pll_test, - prng_rosc, pwm0, pwm1, pwm2, pwm3, qdss_cti_trig_in_a0, - qdss_cti_trig_in_a1, qdss_cti_trig_in_b0, qdss_cti_trig_in_b1, - qdss_cti_trig_out_a0, qdss_cti_trig_out_a1, - qdss_cti_trig_out_b0, qdss_cti_trig_out_b1, qdss_traceclk_a, - qdss_traceclk_b, qdss_tracectl_a, qdss_tracectl_b, - qdss_tracedata_a, qdss_tracedata_b, qspi_clk, qspi_cs, - qspi_data, reset_out, sdc1_clk, sdc1_cmd, sdc1_data, wci_txd, - wci_rxd, wsa_swrm, wsi_clk3, wsi_data3, wsis_reset, xfem ] - - required: - - pins - -required: - - compatible - - reg - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -unevaluatedProperties: false - -examples: - - | - #include - tlmm: pinctrl@1000000 { - compatible = "qcom,ipq5018-tlmm"; - reg = <0x01000000 0x300000>; - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&tlmm 0 0 47>; - interrupt-controller; - #interrupt-cells = <2>; - interrupts = ; - - uart-w-state { - rx-pins { - pins = "gpio33"; - function = "blsp1_uart1"; - bias-pull-down; - }; - - tx-pins { - pins = "gpio34"; - function = "blsp1_uart1"; - bias-pull-down; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,ipq5018-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm IPQ5018 TLMM pin controller + +maintainers: + - Bjorn Andersson + - Krzysztof Kozlowski + +description: + Top Level Mode Multiplexer pin controller in Qualcomm IPQ5018 SoC. + +properties: + compatible: + const: qcom,ipq5018-tlmm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 24 + + gpio-line-names: + maxItems: 47 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-ipq5018-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-ipq5018-tlmm-state" + additionalProperties: false + +$defs: + qcom-ipq5018-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + pattern: "^gpio([0-9]|[1-3][0-9]|4[0-6])$" + minItems: 1 + maxItems: 8 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ atest_char, audio_pdm0, audio_pdm1, audio_rxbclk, audio_rxd, + audio_rxfsync, audio_rxmclk, audio_txbclk, audio_txd, + audio_txfsync, audio_txmclk, blsp0_i2c, blsp0_spi, blsp0_uart0, + blsp0_uart1, blsp1_i2c0, blsp1_i2c1, blsp1_spi0, blsp1_spi1, + blsp1_uart0, blsp1_uart1, blsp1_uart2, blsp2_i2c0, blsp2_i2c1, + blsp2_spi, blsp2_spi0, blsp2_spi1, btss, burn0, burn1, cri_trng, + cri_trng0, cri_trng1, cxc_clk, cxc_data, dbg_out, eud_gpio, + gcc_plltest, gcc_tlmm, gpio, led0, led2, mac0, mac1, mdc, mdio, + pcie0_clk, pcie0_wake, pcie1_clk, pcie1_wake, pll_test, + prng_rosc, pwm0, pwm1, pwm2, pwm3, qdss_cti_trig_in_a0, + qdss_cti_trig_in_a1, qdss_cti_trig_in_b0, qdss_cti_trig_in_b1, + qdss_cti_trig_out_a0, qdss_cti_trig_out_a1, + qdss_cti_trig_out_b0, qdss_cti_trig_out_b1, qdss_traceclk_a, + qdss_traceclk_b, qdss_tracectl_a, qdss_tracectl_b, + qdss_tracedata_a, qdss_tracedata_b, qspi_clk, qspi_cs, + qspi_data, reset_out, sdc1_clk, sdc1_cmd, sdc1_data, wci_txd, + wci_rxd, wsa_swrm, wsi_clk3, wsi_data3, wsis_reset, xfem ] + + required: + - pins + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + tlmm: pinctrl@1000000 { + compatible = "qcom,ipq5018-tlmm"; + reg = <0x01000000 0x300000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&tlmm 0 0 47>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = ; + + uart-w-state { + rx-pins { + pins = "gpio33"; + function = "blsp1_uart1"; + bias-pull-down; + }; + + tx-pins { + pins = "gpio34"; + function = "blsp1_uart1"; + bias-pull-down; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq5332-tlmm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq5332-tlmm.yaml index 4931386aa..e571cd644 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq5332-tlmm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq5332-tlmm.yaml @@ -1,118 +1,118 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,ipq5332-tlmm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm IPQ5332 TLMM pin controller - -maintainers: - - Bjorn Andersson - - Krzysztof Kozlowski - -description: | - Top Level Mode Multiplexer pin controller in Qualcomm IPQ5332 SoC. - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -properties: - compatible: - const: qcom,ipq5332-tlmm - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: - minItems: 1 - maxItems: 27 - - gpio-line-names: - maxItems: 53 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-ipq5332-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-ipq5332-tlmm-state" - additionalProperties: false - -$defs: - qcom-ipq5332-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - pattern: "^gpio([0-9]|[1-4][0-9]|5[0-2])$" - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - - enum: [ atest_char, atest_char0, atest_char1, atest_char2, atest_char3, - atest_tic, audio_pri, audio_pri0, audio_pri1, audio_sec, - audio_sec0, audio_sec1, blsp0_i2c, blsp0_spi, blsp0_uart0, - blsp0_uart1, blsp1_i2c0, blsp1_i2c1, blsp1_spi0, blsp1_spi1, - blsp1_uart0, blsp1_uart1, blsp1_uart2, blsp2_i2c0, blsp2_i2c1, - blsp2_spi, blsp2_spi0, blsp2_spi1, core_voltage, cri_trng0, - cri_trng1, cri_trng2, cri_trng3, cxc_clk, cxc_data, dbg_out, - gcc_plltest, gcc_tlmm, gpio, lock_det, mac0, mac1, mdc0, mdc1, - mdio0, mdio1, pc, pcie0_clk, pcie0_wake, pcie1_clk, pcie1_wake, - pcie2_clk, pcie2_wake, pll_test, prng_rosc0, prng_rosc1, - prng_rosc2, prng_rosc3, pta, pwm0, pwm1, pwm2, pwm3, - qdss_cti_trig_in_a0, qdss_cti_trig_in_a1, qdss_cti_trig_in_b0, - qdss_cti_trig_in_b1, qdss_cti_trig_out_a0, - qdss_cti_trig_out_a1, qdss_cti_trig_out_b0, - qdss_cti_trig_out_b1, qdss_traceclk_a, qdss_traceclk_b, - qdss_tracectl_a, qdss_tracectl_b, qdss_tracedata_a, - qdss_tracedata_b, qspi_data, qspi_clk, qspi_cs, resout, rx0, - rx1, sdc_data, sdc_clk, sdc_cmd, tsens_max, wci_txd, wci_rxd, - wsi_clk, wsi_clk3, wsi_data, wsi_data3, wsis_reset, xfem ] - - required: - - pins - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - - tlmm: pinctrl@1000000 { - compatible = "qcom,ipq5332-tlmm"; - reg = <0x01000000 0x300000>; - gpio-controller; - #gpio-cells = <0x2>; - gpio-ranges = <&tlmm 0 0 53>; - interrupts = ; - interrupt-controller; - #interrupt-cells = <0x2>; - - serial0-state { - pins = "gpio18", "gpio19"; - function = "blsp0_uart0"; - drive-strength = <8>; - bias-pull-up; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,ipq5332-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm IPQ5332 TLMM pin controller + +maintainers: + - Bjorn Andersson + - Krzysztof Kozlowski + +description: | + Top Level Mode Multiplexer pin controller in Qualcomm IPQ5332 SoC. + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +properties: + compatible: + const: qcom,ipq5332-tlmm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 27 + + gpio-line-names: + maxItems: 53 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-ipq5332-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-ipq5332-tlmm-state" + additionalProperties: false + +$defs: + qcom-ipq5332-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + pattern: "^gpio([0-9]|[1-4][0-9]|5[0-2])$" + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ atest_char, atest_char0, atest_char1, atest_char2, atest_char3, + atest_tic, audio_pri, audio_pri0, audio_pri1, audio_sec, + audio_sec0, audio_sec1, blsp0_i2c, blsp0_spi, blsp0_uart0, + blsp0_uart1, blsp1_i2c0, blsp1_i2c1, blsp1_spi0, blsp1_spi1, + blsp1_uart0, blsp1_uart1, blsp1_uart2, blsp2_i2c0, blsp2_i2c1, + blsp2_spi, blsp2_spi0, blsp2_spi1, core_voltage, cri_trng0, + cri_trng1, cri_trng2, cri_trng3, cxc_clk, cxc_data, dbg_out, + gcc_plltest, gcc_tlmm, gpio, lock_det, mac0, mac1, mdc0, mdc1, + mdio0, mdio1, pc, pcie0_clk, pcie0_wake, pcie1_clk, pcie1_wake, + pcie2_clk, pcie2_wake, pll_test, prng_rosc0, prng_rosc1, + prng_rosc2, prng_rosc3, pta, pwm0, pwm1, pwm2, pwm3, + qdss_cti_trig_in_a0, qdss_cti_trig_in_a1, qdss_cti_trig_in_b0, + qdss_cti_trig_in_b1, qdss_cti_trig_out_a0, + qdss_cti_trig_out_a1, qdss_cti_trig_out_b0, + qdss_cti_trig_out_b1, qdss_traceclk_a, qdss_traceclk_b, + qdss_tracectl_a, qdss_tracectl_b, qdss_tracedata_a, + qdss_tracedata_b, qspi_data, qspi_clk, qspi_cs, resout, rx0, + rx1, sdc_data, sdc_clk, sdc_cmd, tsens_max, wci_txd, wci_rxd, + wsi_clk, wsi_clk3, wsi_data, wsi_data3, wsis_reset, xfem ] + + required: + - pins + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + + tlmm: pinctrl@1000000 { + compatible = "qcom,ipq5332-tlmm"; + reg = <0x01000000 0x300000>; + gpio-controller; + #gpio-cells = <0x2>; + gpio-ranges = <&tlmm 0 0 53>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <0x2>; + + serial0-state { + pins = "gpio18", "gpio19"; + function = "blsp0_uart0"; + drive-strength = <8>; + bias-pull-up; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml index 8d1bff663..ed00fbaec 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml @@ -1,118 +1,118 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,ipq6018-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Technologies, Inc. IPQ6018 TLMM block - -maintainers: - - Bjorn Andersson - -description: - Top Level Mode Multiplexer pin controller in Qualcomm IPQ6018 SoC. - -properties: - compatible: - const: qcom,ipq6018-pinctrl - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-ipq6018-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-ipq6018-tlmm-state" - additionalProperties: false - -$defs: - qcom-ipq6018-tlmm-state: - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio([1-9]|[1-7][0-9]|80)$" - - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, - sdc2_data, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2, - qdsd_data3 ] - minItems: 1 - maxItems: 16 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - enum: [ adsp_ext, alsp_int, atest_bbrx0, atest_bbrx1, atest_char, - atest_char0, atest_char1, atest_char2, atest_char3, atest_combodac, - atest_gpsadc0, atest_gpsadc1, atest_tsens, atest_wlan0, - atest_wlan1, backlight_en, bimc_dte0, bimc_dte1, blsp0_i2c, blsp1_i2c, - blsp2_i2c, blsp3_i2c, blsp4_i2c, blsp5_i2c, blsp0_spi, blsp1_spi, - blsp1_spi_cs1, blsp1_spi_cs2, blsp1_spi_cs3, blsp2_spi, - blsp2_spi_cs1, blsp2_spi_cs2, blsp2_spi_cs3, blsp3_spi, - blsp3_spi_cs1, blsp3_spi_cs2, blsp3_spi_cs3, blsp4_spi, blsp5_spi, - blsp0_uart, blsp1_uart, blsp2_uart, blsp1_uim, blsp2_uim, cam1_rst, - cam1_standby, cam_mclk0, cam_mclk1, cci_async, cci_i2c, cci_timer0, - cci_timer1, cci_timer2, cdc_pdm0, codec_mad, dbg_out, display_5v, - dmic0_clk, dmic0_data, dsi_rst, ebi0_wrcdc, euro_us, ext_lpass, - flash_strobe, gcc_gp1_clk_a, gcc_gp1_clk_b, gcc_gp2_clk_a, - gcc_gp2_clk_b, gcc_gp3_clk_a, gcc_gp3_clk_b, gpio, gsm0_tx0, - gsm0_tx1, gsm1_tx0, gsm1_tx1, gyro_accl, kpsns0, kpsns1, kpsns2, - ldo_en, ldo_update, mag_int, mdp_vsync, modem_tsync, m_voc, - nav_pps, nav_tsync, pa_indicator, pbs0, pbs1, pbs2, pri_mi2s, - pri_mi2s_ws, prng_rosc, pwr_crypto_enabled_a, pwr_crypto_enabled_b, - pwr_modem_enabled_a, pwr_modem_enabled_b, pwr_nav_enabled_a, - pwr_nav_enabled_b, qdss_ctitrig_in_a0, qdss_ctitrig_in_a1, - qdss_ctitrig_in_b0, qdss_ctitrig_in_b1, qdss_ctitrig_out_a0, - qdss_ctitrig_out_a1, qdss_ctitrig_out_b0, qdss_ctitrig_out_b1, - qdss_traceclk_a, qdss_traceclk_b, qdss_tracectl_a, qdss_tracectl_b, - qdss_tracedata_a, qdss_tracedata_b, qpic_pad, reset_n, sd_card, - sd_write, sec_mi2s, smb_int, ssbi_wtr0, ssbi_wtr1, uim1, uim2, - uim3, uim_batt, wcss_bt, wcss_fm, wcss_wlan, webcam1_rst ] - - required: - - pins - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - tlmm: pinctrl@1000000 { - compatible = "qcom,ipq6018-pinctrl"; - reg = <0x01000000 0x300000>; - interrupts = ; - interrupt-controller; - #interrupt-cells = <2>; - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&tlmm 0 0 80>; - - serial3-state { - pins = "gpio44", "gpio45"; - function = "blsp2_uart"; - drive-strength = <8>; - bias-pull-down; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,ipq6018-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. IPQ6018 TLMM block + +maintainers: + - Bjorn Andersson + +description: + Top Level Mode Multiplexer pin controller in Qualcomm IPQ6018 SoC. + +properties: + compatible: + const: qcom,ipq6018-pinctrl + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-ipq6018-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-ipq6018-tlmm-state" + additionalProperties: false + +$defs: + qcom-ipq6018-tlmm-state: + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([1-9]|[1-7][0-9]|80)$" + - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, + sdc2_data, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2, + qdsd_data3 ] + minItems: 1 + maxItems: 16 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + enum: [ adsp_ext, alsp_int, atest_bbrx0, atest_bbrx1, atest_char, + atest_char0, atest_char1, atest_char2, atest_char3, atest_combodac, + atest_gpsadc0, atest_gpsadc1, atest_tsens, atest_wlan0, + atest_wlan1, backlight_en, bimc_dte0, bimc_dte1, blsp0_i2c, blsp1_i2c, + blsp2_i2c, blsp3_i2c, blsp4_i2c, blsp5_i2c, blsp0_spi, blsp1_spi, + blsp1_spi_cs1, blsp1_spi_cs2, blsp1_spi_cs3, blsp2_spi, + blsp2_spi_cs1, blsp2_spi_cs2, blsp2_spi_cs3, blsp3_spi, + blsp3_spi_cs1, blsp3_spi_cs2, blsp3_spi_cs3, blsp4_spi, blsp5_spi, + blsp0_uart, blsp1_uart, blsp2_uart, blsp1_uim, blsp2_uim, cam1_rst, + cam1_standby, cam_mclk0, cam_mclk1, cci_async, cci_i2c, cci_timer0, + cci_timer1, cci_timer2, cdc_pdm0, codec_mad, dbg_out, display_5v, + dmic0_clk, dmic0_data, dsi_rst, ebi0_wrcdc, euro_us, ext_lpass, + flash_strobe, gcc_gp1_clk_a, gcc_gp1_clk_b, gcc_gp2_clk_a, + gcc_gp2_clk_b, gcc_gp3_clk_a, gcc_gp3_clk_b, gpio, gsm0_tx0, + gsm0_tx1, gsm1_tx0, gsm1_tx1, gyro_accl, kpsns0, kpsns1, kpsns2, + ldo_en, ldo_update, mag_int, mdp_vsync, modem_tsync, m_voc, + nav_pps, nav_tsync, pa_indicator, pbs0, pbs1, pbs2, pri_mi2s, + pri_mi2s_ws, prng_rosc, pwr_crypto_enabled_a, pwr_crypto_enabled_b, + pwr_modem_enabled_a, pwr_modem_enabled_b, pwr_nav_enabled_a, + pwr_nav_enabled_b, qdss_ctitrig_in_a0, qdss_ctitrig_in_a1, + qdss_ctitrig_in_b0, qdss_ctitrig_in_b1, qdss_ctitrig_out_a0, + qdss_ctitrig_out_a1, qdss_ctitrig_out_b0, qdss_ctitrig_out_b1, + qdss_traceclk_a, qdss_traceclk_b, qdss_tracectl_a, qdss_tracectl_b, + qdss_tracedata_a, qdss_tracedata_b, qpic_pad, reset_n, sd_card, + sd_write, sec_mi2s, smb_int, ssbi_wtr0, ssbi_wtr1, uim1, uim2, + uim3, uim_batt, wcss_bt, wcss_fm, wcss_wlan, webcam1_rst ] + + required: + - pins + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + tlmm: pinctrl@1000000 { + compatible = "qcom,ipq6018-pinctrl"; + reg = <0x01000000 0x300000>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <2>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&tlmm 0 0 80>; + + serial3-state { + pins = "gpio44", "gpio45"; + function = "blsp2_uart"; + drive-strength = <8>; + bias-pull-down; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq8074-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq8074-pinctrl.yaml index f5447d9c7..6f90dbbdb 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq8074-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq8074-pinctrl.yaml @@ -1,121 +1,121 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,ipq8074-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm IPQ8074 TLMM pin controller - -maintainers: - - Bjorn Andersson - - Krzysztof Kozlowski - -description: - Top Level Mode Multiplexer pin controller in Qualcomm IPQ8074 SoC. - -properties: - compatible: - const: qcom,ipq8074-pinctrl - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: - minItems: 1 - maxItems: 35 - - gpio-line-names: - maxItems: 70 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-ipq8074-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-ipq8074-tlmm-state" - additionalProperties: false - -$defs: - qcom-ipq8074-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - pattern: "^gpio([0-9]|[1-6][0-9]|70)$" - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - - enum: [ gpio, atest_char, atest_char0, atest_char1, atest_char2, - atest_char3, audio_rxbclk, audio_rxd, audio_rxfsync, - audio_rxmclk, audio_txbclk, audio_txd, audio_txfsync, - audio_txmclk, blsp0_i2c, blsp0_spi, blsp0_uart, blsp1_i2c, - blsp1_spi, blsp1_uart, blsp2_i2c, blsp2_spi, blsp2_uart, - blsp3_i2c, blsp3_spi, blsp3_spi0, blsp3_spi1, blsp3_spi2, - blsp3_spi3, blsp3_uart, blsp4_i2c0, blsp4_i2c1, blsp4_spi0, - blsp4_spi1, blsp4_uart0, blsp4_uart1, blsp5_i2c, blsp5_spi, - blsp5_uart, burn0, burn1, cri_trng, cri_trng0, cri_trng1, cxc0, - cxc1, dbg_out, gcc_plltest, gcc_tlmm, ldo_en, ldo_update, led0, - led1, led2, mac0_sa0, mac0_sa1, mac1_sa0, mac1_sa1, mac1_sa2, - mac1_sa3, mac2_sa0, mac2_sa1, mdc, mdio, pcie0_clk, pcie0_rst, - pcie0_wake, pcie1_clk, pcie1_rst, pcie1_wake, pcm_drx, pcm_dtx, - pcm_fsync, pcm_pclk, pcm_zsi0, pcm_zsi1, prng_rosc, pta1_0, - pta1_1, pta1_2, pta2_0, pta2_1, pta2_2, pwm0, pwm1, pwm2, pwm3, - qdss_cti_trig_in_a0, qdss_cti_trig_in_a1, qdss_cti_trig_in_b0, - qdss_cti_trig_in_b1, qdss_cti_trig_out_a0, - qdss_cti_trig_out_a1, qdss_cti_trig_out_b0, - qdss_cti_trig_out_b1, qdss_traceclk_a, qdss_traceclk_b, - qdss_tracectl_a, qdss_tracectl_b, qdss_tracedata_a, - qdss_tracedata_b, qpic, rx0, rx1, rx2, sd_card, sd_write, - tsens_max, wci2a, wci2b, wci2c, wci2d ] - - required: - - pins - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - - tlmm: pinctrl@1000000 { - compatible = "qcom,ipq8074-pinctrl"; - reg = <0x01000000 0x300000>; - gpio-controller; - #gpio-cells = <0x2>; - gpio-ranges = <&tlmm 0 0 70>; - interrupts = ; - interrupt-controller; - #interrupt-cells = <0x2>; - - serial4-state { - pins = "gpio23", "gpio24"; - function = "blsp4_uart1"; - drive-strength = <8>; - bias-disable; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,ipq8074-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm IPQ8074 TLMM pin controller + +maintainers: + - Bjorn Andersson + - Krzysztof Kozlowski + +description: + Top Level Mode Multiplexer pin controller in Qualcomm IPQ8074 SoC. + +properties: + compatible: + const: qcom,ipq8074-pinctrl + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 35 + + gpio-line-names: + maxItems: 70 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-ipq8074-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-ipq8074-tlmm-state" + additionalProperties: false + +$defs: + qcom-ipq8074-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + pattern: "^gpio([0-9]|[1-6][0-9]|70)$" + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ gpio, atest_char, atest_char0, atest_char1, atest_char2, + atest_char3, audio_rxbclk, audio_rxd, audio_rxfsync, + audio_rxmclk, audio_txbclk, audio_txd, audio_txfsync, + audio_txmclk, blsp0_i2c, blsp0_spi, blsp0_uart, blsp1_i2c, + blsp1_spi, blsp1_uart, blsp2_i2c, blsp2_spi, blsp2_uart, + blsp3_i2c, blsp3_spi, blsp3_spi0, blsp3_spi1, blsp3_spi2, + blsp3_spi3, blsp3_uart, blsp4_i2c0, blsp4_i2c1, blsp4_spi0, + blsp4_spi1, blsp4_uart0, blsp4_uart1, blsp5_i2c, blsp5_spi, + blsp5_uart, burn0, burn1, cri_trng, cri_trng0, cri_trng1, cxc0, + cxc1, dbg_out, gcc_plltest, gcc_tlmm, ldo_en, ldo_update, led0, + led1, led2, mac0_sa0, mac0_sa1, mac1_sa0, mac1_sa1, mac1_sa2, + mac1_sa3, mac2_sa0, mac2_sa1, mdc, mdio, pcie0_clk, pcie0_rst, + pcie0_wake, pcie1_clk, pcie1_rst, pcie1_wake, pcm_drx, pcm_dtx, + pcm_fsync, pcm_pclk, pcm_zsi0, pcm_zsi1, prng_rosc, pta1_0, + pta1_1, pta1_2, pta2_0, pta2_1, pta2_2, pwm0, pwm1, pwm2, pwm3, + qdss_cti_trig_in_a0, qdss_cti_trig_in_a1, qdss_cti_trig_in_b0, + qdss_cti_trig_in_b1, qdss_cti_trig_out_a0, + qdss_cti_trig_out_a1, qdss_cti_trig_out_b0, + qdss_cti_trig_out_b1, qdss_traceclk_a, qdss_traceclk_b, + qdss_tracectl_a, qdss_tracectl_b, qdss_tracedata_a, + qdss_tracedata_b, qpic, rx0, rx1, rx2, sd_card, sd_write, + tsens_max, wci2a, wci2b, wci2c, wci2d ] + + required: + - pins + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + + tlmm: pinctrl@1000000 { + compatible = "qcom,ipq8074-pinctrl"; + reg = <0x01000000 0x300000>; + gpio-controller; + #gpio-cells = <0x2>; + gpio-ranges = <&tlmm 0 0 70>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <0x2>; + + serial4-state { + pins = "gpio23", "gpio24"; + function = "blsp4_uart1"; + drive-strength = <8>; + bias-disable; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq9574-tlmm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq9574-tlmm.yaml index d27963fbc..bca903b5d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq9574-tlmm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,ipq9574-tlmm.yaml @@ -1,114 +1,114 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,ipq9574-tlmm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Technologies, Inc. IPQ9574 TLMM block - -maintainers: - - Bjorn Andersson - - Krzysztof Kozlowski - -description: - Top Level Mode Multiplexer pin controller in Qualcomm IPQ9574 SoC. - -properties: - compatible: - const: qcom,ipq9574-tlmm - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: - minItems: 1 - maxItems: 33 - - gpio-line-names: - maxItems: 65 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-ipq9574-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-ipq9574-tlmm-state" - additionalProperties: false - -$defs: - qcom-ipq9574-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - pattern: "^gpio([0-9]|[1-5][0-9]|6[0-4])$" - minItems: 1 - maxItems: 8 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - - enum: [ atest_char, atest_char0, atest_char1, atest_char2, atest_char3, - audio_pdm0, audio_pdm1, audio_pri, audio_sec, blsp0_spi, blsp0_uart, - blsp1_i2c, blsp1_spi, blsp1_uart, blsp2_i2c, blsp2_spi, - blsp2_uart, blsp3_i2c, blsp3_spi, blsp3_uart, blsp4_i2c, - blsp4_spi, blsp4_uart, blsp5_i2c, blsp5_uart, cri_trng0, - cri_trng1, cri_trng2, cri_trng3, cxc0, cxc1, dbg_out, dwc_ddrphy, - gcc_plltest, gcc_tlmm, gpio, mac, mdc, mdio, pcie0_clk, pcie0_wake, - pcie1_clk, pcie1_wake, pcie2_clk, pcie2_wake, pcie3_clk, pcie3_wake, - prng_rosc0, prng_rosc1, prng_rosc2, prng_rosc3, pta, pwm, - qdss_cti_trig_in_a0, qdss_cti_trig_in_a1, qdss_cti_trig_in_b0, - qdss_cti_trig_in_b1, qdss_cti_trig_out_a0, qdss_cti_trig_out_a1, - qdss_cti_trig_out_b0, qdss_cti_trig_out_b1, qdss_traceclk_a, - qdss_traceclk_b, qdss_tracectl_a, qdss_tracectl_b, qdss_tracedata_a, - qdss_tracedata_b, qspi_clk, qspi_cs, qspi_data, - rx0, rx1, sdc_clk, sdc_cmd, sdc_data, sdc_rclk, tsens_max, - wci20, wci21, wsa_swrm ] - - required: - - pins - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - tlmm: pinctrl@1000000 { - compatible = "qcom,ipq9574-tlmm"; - reg = <0x01000000 0x300000>; - interrupts = ; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - gpio-ranges = <&tlmm 0 0 65>; - - uart2-state { - pins = "gpio34", "gpio35"; - function = "blsp2_uart"; - drive-strength = <8>; - bias-pull-down; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,ipq9574-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. IPQ9574 TLMM block + +maintainers: + - Bjorn Andersson + - Krzysztof Kozlowski + +description: + Top Level Mode Multiplexer pin controller in Qualcomm IPQ9574 SoC. + +properties: + compatible: + const: qcom,ipq9574-tlmm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 33 + + gpio-line-names: + maxItems: 65 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-ipq9574-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-ipq9574-tlmm-state" + additionalProperties: false + +$defs: + qcom-ipq9574-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + pattern: "^gpio([0-9]|[1-5][0-9]|6[0-4])$" + minItems: 1 + maxItems: 8 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ atest_char, atest_char0, atest_char1, atest_char2, atest_char3, + audio_pdm0, audio_pdm1, audio_pri, audio_sec, blsp0_spi, blsp0_uart, + blsp1_i2c, blsp1_spi, blsp1_uart, blsp2_i2c, blsp2_spi, + blsp2_uart, blsp3_i2c, blsp3_spi, blsp3_uart, blsp4_i2c, + blsp4_spi, blsp4_uart, blsp5_i2c, blsp5_uart, cri_trng0, + cri_trng1, cri_trng2, cri_trng3, cxc0, cxc1, dbg_out, dwc_ddrphy, + gcc_plltest, gcc_tlmm, gpio, mac, mdc, mdio, pcie0_clk, pcie0_wake, + pcie1_clk, pcie1_wake, pcie2_clk, pcie2_wake, pcie3_clk, pcie3_wake, + prng_rosc0, prng_rosc1, prng_rosc2, prng_rosc3, pta, pwm, + qdss_cti_trig_in_a0, qdss_cti_trig_in_a1, qdss_cti_trig_in_b0, + qdss_cti_trig_in_b1, qdss_cti_trig_out_a0, qdss_cti_trig_out_a1, + qdss_cti_trig_out_b0, qdss_cti_trig_out_b1, qdss_traceclk_a, + qdss_traceclk_b, qdss_tracectl_a, qdss_tracectl_b, qdss_tracedata_a, + qdss_tracedata_b, qspi_clk, qspi_cs, qspi_data, + rx0, rx1, sdc_clk, sdc_cmd, sdc_data, sdc_rclk, tsens_max, + wci20, wci21, wsa_swrm ] + + required: + - pins + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + tlmm: pinctrl@1000000 { + compatible = "qcom,ipq9574-tlmm"; + reg = <0x01000000 0x300000>; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-ranges = <&tlmm 0 0 65>; + + uart2-state { + pins = "gpio34", "gpio35"; + function = "blsp2_uart"; + drive-strength = <8>; + bias-pull-down; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml index c48f6cb57..e75393b3d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml @@ -1,119 +1,119 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,mdm9607-tlmm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Technologies, Inc. MDM9607 TLMM block - -maintainers: - - Konrad Dybcio - -description: - Top Level Mode Multiplexer pin controller in Qualcomm MDM9607 SoC. - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -properties: - compatible: - const: qcom,mdm9607-tlmm - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: true - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-mdm9607-tlmm-state" - - additionalProperties: false - patternProperties: - ".*": - $ref: "#/$defs/qcom-mdm9607-tlmm-state" - -$defs: - qcom-mdm9607-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio([1-9]|[1-7][0-9]|80)$" - - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, - sdc2_data, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2, - qdsd_data3 ] - minItems: 1 - maxItems: 16 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - - enum: [ adsp_ext, atest_bbrx0, atest_bbrx1, atest_char, atest_char0, - atest_char1, atest_char2, atest_char3, - atest_combodac_to_gpio_native, atest_gpsadc_dtest0_native, - atest_gpsadc_dtest1_native, atest_tsens, backlight_en_b, - bimc_dte0, bimc_dte1, blsp1_spi, blsp2_spi, blsp3_spi, - blsp_i2c1, blsp_i2c2, blsp_i2c3, blsp_i2c4, blsp_i2c5, - blsp_i2c6, blsp_spi1, blsp_spi2, blsp_spi3, blsp_spi4, - blsp_spi5, blsp_spi6, blsp_uart1, blsp_uart2, blsp_uart3, - blsp_uart4, blsp_uart5, blsp_uart6, blsp_uim1, blsp_uim2, - codec_int, codec_rst, coex_uart, cri_trng, cri_trng0, - cri_trng1, dbg_out, ebi0_wrcdc, ebi2_a, ebi2_a_d_8_b, - ebi2_lcd, ebi2_lcd_cs_n_b, ebi2_lcd_te_b, eth_irq, eth_rst, - gcc_gp1_clk_a, gcc_gp1_clk_b, gcc_gp2_clk_a, gcc_gp2_clk_b, - gcc_gp3_clk_a, gcc_gp3_clk_b, gcc_plltest, gcc_tlmm, gmac_mdio, - gpio, gsm0_tx, lcd_rst, ldo_en, ldo_update, m_voc, modem_tsync, - nav_ptp_pps_in_a, nav_ptp_pps_in_b, nav_tsync_out_a, - nav_tsync_out_b, pa_indicator, pbs0, pbs1, pbs2, - pri_mi2s_data0_a, pri_mi2s_data1_a, pri_mi2s_mclk_a, - pri_mi2s_sck_a, pri_mi2s_ws_a, prng_rosc, ptp_pps_out_a, - ptp_pps_out_b, pwr_crypto_enabled_a, pwr_crypto_enabled_b, - pwr_modem_enabled_a, pwr_modem_enabled_b, pwr_nav_enabled_a, - pwr_nav_enabled_b, qdss_cti_trig_in_a0, qdss_cti_trig_in_a1, - qdss_cti_trig_in_b0, qdss_cti_trig_in_b1, qdss_cti_trig_out_a0, - qdss_cti_trig_out_a1, qdss_cti_trig_out_b0, qdss_cti_trig_out_b1, - qdss_traceclk_a, qdss_traceclk_b, qdss_tracectl_a, - qdss_tracectl_b, qdss_tracedata_a, qdss_tracedata_b, rcm_marker1, - rcm_marker2, sd_write, sec_mi2s, sensor_en, sensor_int2, - sensor_int3, sensor_rst, ssbi1, ssbi2, touch_rst, ts_int, - uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk, - uim2_data, uim2_present, uim2_reset, uim_batt, wlan_en1, ] - - required: - - pins - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - tlmm: pinctrl@1000000 { - compatible = "qcom,mdm9607-tlmm"; - reg = <0x01000000 0x300000>; - interrupts = ; - gpio-controller; - gpio-ranges = <&msmgpio 0 0 80>; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,mdm9607-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. MDM9607 TLMM block + +maintainers: + - Konrad Dybcio + +description: + Top Level Mode Multiplexer pin controller in Qualcomm MDM9607 SoC. + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +properties: + compatible: + const: qcom,mdm9607-tlmm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: true + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-mdm9607-tlmm-state" + - additionalProperties: false + patternProperties: + ".*": + $ref: "#/$defs/qcom-mdm9607-tlmm-state" + +$defs: + qcom-mdm9607-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([1-9]|[1-7][0-9]|80)$" + - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, + sdc2_data, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2, + qdsd_data3 ] + minItems: 1 + maxItems: 16 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ adsp_ext, atest_bbrx0, atest_bbrx1, atest_char, atest_char0, + atest_char1, atest_char2, atest_char3, + atest_combodac_to_gpio_native, atest_gpsadc_dtest0_native, + atest_gpsadc_dtest1_native, atest_tsens, backlight_en_b, + bimc_dte0, bimc_dte1, blsp1_spi, blsp2_spi, blsp3_spi, + blsp_i2c1, blsp_i2c2, blsp_i2c3, blsp_i2c4, blsp_i2c5, + blsp_i2c6, blsp_spi1, blsp_spi2, blsp_spi3, blsp_spi4, + blsp_spi5, blsp_spi6, blsp_uart1, blsp_uart2, blsp_uart3, + blsp_uart4, blsp_uart5, blsp_uart6, blsp_uim1, blsp_uim2, + codec_int, codec_rst, coex_uart, cri_trng, cri_trng0, + cri_trng1, dbg_out, ebi0_wrcdc, ebi2_a, ebi2_a_d_8_b, + ebi2_lcd, ebi2_lcd_cs_n_b, ebi2_lcd_te_b, eth_irq, eth_rst, + gcc_gp1_clk_a, gcc_gp1_clk_b, gcc_gp2_clk_a, gcc_gp2_clk_b, + gcc_gp3_clk_a, gcc_gp3_clk_b, gcc_plltest, gcc_tlmm, gmac_mdio, + gpio, gsm0_tx, lcd_rst, ldo_en, ldo_update, m_voc, modem_tsync, + nav_ptp_pps_in_a, nav_ptp_pps_in_b, nav_tsync_out_a, + nav_tsync_out_b, pa_indicator, pbs0, pbs1, pbs2, + pri_mi2s_data0_a, pri_mi2s_data1_a, pri_mi2s_mclk_a, + pri_mi2s_sck_a, pri_mi2s_ws_a, prng_rosc, ptp_pps_out_a, + ptp_pps_out_b, pwr_crypto_enabled_a, pwr_crypto_enabled_b, + pwr_modem_enabled_a, pwr_modem_enabled_b, pwr_nav_enabled_a, + pwr_nav_enabled_b, qdss_cti_trig_in_a0, qdss_cti_trig_in_a1, + qdss_cti_trig_in_b0, qdss_cti_trig_in_b1, qdss_cti_trig_out_a0, + qdss_cti_trig_out_a1, qdss_cti_trig_out_b0, qdss_cti_trig_out_b1, + qdss_traceclk_a, qdss_traceclk_b, qdss_tracectl_a, + qdss_tracectl_b, qdss_tracedata_a, qdss_tracedata_b, rcm_marker1, + rcm_marker2, sd_write, sec_mi2s, sensor_en, sensor_int2, + sensor_int3, sensor_rst, ssbi1, ssbi2, touch_rst, ts_int, + uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk, + uim2_data, uim2_present, uim2_reset, uim_batt, wlan_en1, ] + + required: + - pins + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + tlmm: pinctrl@1000000 { + compatible = "qcom,mdm9607-tlmm"; + reg = <0x01000000 0x300000>; + interrupts = ; + gpio-controller; + gpio-ranges = <&msmgpio 0 0 80>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,msm8976-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,msm8976-pinctrl.yaml index eef1b865d..d4391c194 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,msm8976-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,msm8976-pinctrl.yaml @@ -1,122 +1,122 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,msm8976-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm MSM8976 TLMM pin controller - -maintainers: - - Bjorn Andersson - - Krzysztof Kozlowski - -description: - Top Level Mode Multiplexer pin controller in Qualcomm MSM8976 SoC. - -properties: - compatible: - const: qcom,msm8976-pinctrl - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: - minItems: 1 - maxItems: 73 - - gpio-line-names: - maxItems: 145 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-msm8976-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-msm8976-tlmm-state" - additionalProperties: false - -$defs: - qcom-msm8976-tlmm-state: - type: object - description: - Desired pin configuration for a device or its specific state (like sleep - or active). - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this state. - items: - oneOf: - - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-3][0-9]|14[0-4])$" - - enum: [ qdsd_clk, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2, - qdsd_data3, sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk, - sdc2_clk, sdc2_cmd, sdc2_data ] - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - - enum: [ gpio, blsp_uart1, blsp_spi1, smb_int, blsp_i2c1, blsp_spi2, - blsp_uart2, blsp_i2c2, gcc_gp1_clk_b, blsp_spi3, - qdss_tracedata_b, blsp_i2c3, gcc_gp2_clk_b, gcc_gp3_clk_b, - blsp_spi4, cap_int, blsp_i2c4, blsp_spi5, blsp_uart5, - qdss_traceclk_a, m_voc, blsp_i2c5, qdss_tracectl_a, - qdss_tracedata_a, blsp_spi6, blsp_uart6, qdss_tracectl_b, - blsp_i2c6, qdss_traceclk_b, mdp_vsync, pri_mi2s_mclk_a, - sec_mi2s_mclk_a, cam_mclk, cci0_i2c, cci1_i2c, blsp1_spi, - blsp3_spi, gcc_gp1_clk_a, gcc_gp2_clk_a, gcc_gp3_clk_a, - uim_batt, sd_write, uim1_data, uim1_clk, uim1_reset, - uim1_present, uim2_data, uim2_clk, uim2_reset, uim2_present, - ts_xvdd, mipi_dsi0, us_euro, ts_resout, ts_sample, - sec_mi2s_mclk_b, pri_mi2s, codec_reset, cdc_pdm0, us_emitter, - pri_mi2s_mclk_b, pri_mi2s_mclk_c, lpass_slimbus, - lpass_slimbus0, lpass_slimbus1, codec_int1, codec_int2, - wcss_bt, sdc3, wcss_wlan2, wcss_wlan1, wcss_wlan0, wcss_wlan, - wcss_fm, key_volp, key_snapshot, key_focus, key_home, pwr_down, - dmic0_clk, hdmi_int, dmic0_data, wsa_vi, wsa_en, blsp_spi8, - wsa_irq, blsp_i2c8, pa_indicator, modem_tsync, ssbi_wtr1, - gsm1_tx, gsm0_tx, sdcard_det, sec_mi2s, ss_switch ] - - required: - - pins - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - - tlmm: pinctrl@1000000 { - compatible = "qcom,msm8976-pinctrl"; - reg = <0x1000000 0x300000>; - #gpio-cells = <2>; - gpio-controller; - gpio-ranges = <&tlmm 0 0 145>; - interrupts = ; - interrupt-controller; - #interrupt-cells = <2>; - - blsp1-uart2-active-state { - pins = "gpio4", "gpio5", "gpio6", "gpio7"; - function = "blsp_uart2"; - drive-strength = <2>; - bias-disable; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,msm8976-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm MSM8976 TLMM pin controller + +maintainers: + - Bjorn Andersson + - Krzysztof Kozlowski + +description: + Top Level Mode Multiplexer pin controller in Qualcomm MSM8976 SoC. + +properties: + compatible: + const: qcom,msm8976-pinctrl + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 73 + + gpio-line-names: + maxItems: 145 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-msm8976-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-msm8976-tlmm-state" + additionalProperties: false + +$defs: + qcom-msm8976-tlmm-state: + type: object + description: + Desired pin configuration for a device or its specific state (like sleep + or active). + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this state. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-3][0-9]|14[0-4])$" + - enum: [ qdsd_clk, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2, + qdsd_data3, sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk, + sdc2_clk, sdc2_cmd, sdc2_data ] + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ gpio, blsp_uart1, blsp_spi1, smb_int, blsp_i2c1, blsp_spi2, + blsp_uart2, blsp_i2c2, gcc_gp1_clk_b, blsp_spi3, + qdss_tracedata_b, blsp_i2c3, gcc_gp2_clk_b, gcc_gp3_clk_b, + blsp_spi4, cap_int, blsp_i2c4, blsp_spi5, blsp_uart5, + qdss_traceclk_a, m_voc, blsp_i2c5, qdss_tracectl_a, + qdss_tracedata_a, blsp_spi6, blsp_uart6, qdss_tracectl_b, + blsp_i2c6, qdss_traceclk_b, mdp_vsync, pri_mi2s_mclk_a, + sec_mi2s_mclk_a, cam_mclk, cci0_i2c, cci1_i2c, blsp1_spi, + blsp3_spi, gcc_gp1_clk_a, gcc_gp2_clk_a, gcc_gp3_clk_a, + uim_batt, sd_write, uim1_data, uim1_clk, uim1_reset, + uim1_present, uim2_data, uim2_clk, uim2_reset, uim2_present, + ts_xvdd, mipi_dsi0, us_euro, ts_resout, ts_sample, + sec_mi2s_mclk_b, pri_mi2s, codec_reset, cdc_pdm0, us_emitter, + pri_mi2s_mclk_b, pri_mi2s_mclk_c, lpass_slimbus, + lpass_slimbus0, lpass_slimbus1, codec_int1, codec_int2, + wcss_bt, sdc3, wcss_wlan2, wcss_wlan1, wcss_wlan0, wcss_wlan, + wcss_fm, key_volp, key_snapshot, key_focus, key_home, pwr_down, + dmic0_clk, hdmi_int, dmic0_data, wsa_vi, wsa_en, blsp_spi8, + wsa_irq, blsp_i2c8, pa_indicator, modem_tsync, ssbi_wtr1, + gsm1_tx, gsm0_tx, sdcard_det, sec_mi2s, ss_switch ] + + required: + - pins + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + + tlmm: pinctrl@1000000 { + compatible = "qcom,msm8976-pinctrl"; + reg = <0x1000000 0x300000>; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&tlmm 0 0 145>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <2>; + + blsp1-uart2-active-state { + pins = "gpio4", "gpio5", "gpio6", "gpio7"; + function = "blsp_uart2"; + drive-strength = <2>; + bias-disable; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,qcm2290-tlmm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,qcm2290-tlmm.yaml index b64fd7d3e..e123beb33 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,qcm2290-tlmm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,qcm2290-tlmm.yaml @@ -1,122 +1,122 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,qcm2290-tlmm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Technologies, Inc. QCM2290 TLMM block - -maintainers: - - Shawn Guo - -description: - Top Level Mode Multiplexer pin controller in Qualcomm QCM2290 SoC. - -properties: - compatible: - const: qcom,qcm2290-tlmm - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-qcm2290-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-qcm2290-tlmm-state" - additionalProperties: false - -$defs: - qcom-qcm2290-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-6])$" - - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data, - sdc2_clk, sdc2_cmd, sdc2_data ] - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - - enum: [ adsp_ext, agera_pll, atest, cam_mclk, cci_async, cci_i2c, - cci_timer0, cci_timer1, cci_timer2, cci_timer3, char_exec, - cri_trng, cri_trng0, cri_trng1, dac_calib, dbg_out, ddr_bist, - ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, gcc_gp1, gcc_gp2, - gcc_gp3, gpio, gp_pdm0, gp_pdm1, gp_pdm2, gsm0_tx, gsm1_tx, - jitter_bist, mdp_vsync, mdp_vsync_out_0, mdp_vsync_out_1, - mpm_pwr, mss_lte, m_voc, nav_gpio, pa_indicator, pbs0, pbs1, - pbs2, pbs3, pbs4, pbs5, pbs6, pbs7, pbs8, pbs9, pbs10, pbs11, - pbs12, pbs13, pbs14, pbs15, pbs_out, phase_flag, pll_bist, - pll_bypassnl, pll_reset, prng_rosc, pwm_0, pwm_1, pwm_2, pwm_3, - pwm_4, pwm_5, pwm_6, pwm_7, pwm_8, pwm_9, qdss_cti, qdss_gpio, - qup0, qup1, qup2, qup3, qup4, qup5, sdc1_tb, sdc2_tb, sd_write, - ssbi_wtr1, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm, - uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk, - uim2_data, uim2_present, uim2_reset, usb_phy, vfr_1, - vsense_trigger, wlan1_adc0, wlan1_adc1 ] - - required: - - pins - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - tlmm: pinctrl@500000 { - compatible = "qcom,qcm2290-tlmm"; - reg = <0x500000 0x300000>; - interrupts = ; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - gpio-ranges = <&tlmm 0 0 127>; - - sdc2_on_state: sdc2-on-state { - clk-pins { - pins = "sdc2_clk"; - bias-disable; - drive-strength = <16>; - }; - - cmd-pins { - pins = "sdc2_cmd"; - bias-pull-up; - drive-strength = <10>; - }; - - data-pins { - pins = "sdc2_data"; - bias-pull-up; - drive-strength = <10>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,qcm2290-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. QCM2290 TLMM block + +maintainers: + - Shawn Guo + +description: + Top Level Mode Multiplexer pin controller in Qualcomm QCM2290 SoC. + +properties: + compatible: + const: qcom,qcm2290-tlmm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-qcm2290-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-qcm2290-tlmm-state" + additionalProperties: false + +$defs: + qcom-qcm2290-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-6])$" + - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data, + sdc2_clk, sdc2_cmd, sdc2_data ] + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ adsp_ext, agera_pll, atest, cam_mclk, cci_async, cci_i2c, + cci_timer0, cci_timer1, cci_timer2, cci_timer3, char_exec, + cri_trng, cri_trng0, cri_trng1, dac_calib, dbg_out, ddr_bist, + ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, gcc_gp1, gcc_gp2, + gcc_gp3, gpio, gp_pdm0, gp_pdm1, gp_pdm2, gsm0_tx, gsm1_tx, + jitter_bist, mdp_vsync, mdp_vsync_out_0, mdp_vsync_out_1, + mpm_pwr, mss_lte, m_voc, nav_gpio, pa_indicator, pbs0, pbs1, + pbs2, pbs3, pbs4, pbs5, pbs6, pbs7, pbs8, pbs9, pbs10, pbs11, + pbs12, pbs13, pbs14, pbs15, pbs_out, phase_flag, pll_bist, + pll_bypassnl, pll_reset, prng_rosc, pwm_0, pwm_1, pwm_2, pwm_3, + pwm_4, pwm_5, pwm_6, pwm_7, pwm_8, pwm_9, qdss_cti, qdss_gpio, + qup0, qup1, qup2, qup3, qup4, qup5, sdc1_tb, sdc2_tb, sd_write, + ssbi_wtr1, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm, + uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk, + uim2_data, uim2_present, uim2_reset, usb_phy, vfr_1, + vsense_trigger, wlan1_adc0, wlan1_adc1 ] + + required: + - pins + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + tlmm: pinctrl@500000 { + compatible = "qcom,qcm2290-tlmm"; + reg = <0x500000 0x300000>; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-ranges = <&tlmm 0 0 127>; + + sdc2_on_state: sdc2-on-state { + clk-pins { + pins = "sdc2_clk"; + bias-disable; + drive-strength = <16>; + }; + + cmd-pins { + pins = "sdc2_cmd"; + bias-pull-up; + drive-strength = <10>; + }; + + data-pins { + pins = "sdc2_data"; + bias-pull-up; + drive-strength = <10>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,qdu1000-tlmm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,qdu1000-tlmm.yaml index 59ac479a3..88afeae53 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,qdu1000-tlmm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,qdu1000-tlmm.yaml @@ -1,119 +1,119 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,qdu1000-tlmm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Technologies, Inc. QDU1000/QRU1000 TLMM block - -maintainers: - - Melody Olvera - -description: | - Top Level Mode Multiplexer pin controller found in the QDU1000 and - QRU1000 SoCs. - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -properties: - compatible: - const: qcom,qdu1000-tlmm - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: - minItems: 1 - maxItems: 76 - - gpio-line-names: - maxItems: 151 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-qdu1000-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-qdu1000-tlmm-state" - additionalProperties: false - -$defs: - qcom-qdu1000-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-4][0-9]|150)$" - - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data ] - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - enum: [ atest_char, atest_usb, char_exec, CMO_PRI, cmu_rng, - dbg_out_clk, ddr_bist, ddr_pxi1, ddr_pxi2, ddr_pxi3, ddr_pxi4, - ddr_pxi5, ddr_pxi6, ddr_pxi7, eth012_int_n, eth345_int_n, - gcc_gp1, gcc_gp2, gcc_gp3, gpio, gps_pps_in, hardsync_pps_in, - intr_c, jitter_bist_ref, pcie_clkreqn, phase_flag, pll_bist, - pll_clk, prng_rosc, qdss_cti, qdss_gpio, qlink0_enable, - qlink0_request, qlink0_wmss, qlink1_enable, qlink1_request, - qlink1_wmss, qlink2_enable, qlink2_request, qlink2_wmss, - qlink3_enable, qlink3_request, qlink3_wmss, qlink4_enable, - qlink4_request, qlink4_wmss, qlink5_enable, qlink5_request, - qlink5_wmss, qlink6_enable, qlink6_request, qlink6_wmss, - qlink7_enable, qlink7_request, qlink7_wmss, qspi_clk, qspi_cs, - qspi0, qspi1, qspi2, qspi3, qup00, qup01, qup02, qup03, qup04, - qup05, qup06, qup07, qup08, qup10, qup11, qup12, qup13, qup14, - qup15, qup16, qup17, qup20, qup21, qup22, SI5518_INT, smb_alert, - smb_clk, smb_dat, tb_trig, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, - tgu_ch4, tgu_ch5, tgu_ch6, tgu_ch7, tmess_prng0, tmess_prng1, - tmess_prng2, tmess_prng3, tod_pps_in, tsense_pwm1, tsense_pwm2, - usb2phy_ac, usb_con_det, usb_dfp_en, usb_phy, vfr_0, vfr_1, - vsense_trigger ] - - required: - - pins - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - - pinctrl@f000000 { - compatible = "qcom,qdu1000-tlmm"; - reg = <0xf000000 0x1000000>; - interrupts = ; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - gpio-ranges = <&tlmm 0 0 151>; - wakeup-parent = <&pdc>; - - uart0-default-state { - pins = "gpio6", "gpio7", "gpio8", "gpio9"; - function = "qup00"; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,qdu1000-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. QDU1000/QRU1000 TLMM block + +maintainers: + - Melody Olvera + +description: | + Top Level Mode Multiplexer pin controller found in the QDU1000 and + QRU1000 SoCs. + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +properties: + compatible: + const: qcom,qdu1000-tlmm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 76 + + gpio-line-names: + maxItems: 151 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-qdu1000-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-qdu1000-tlmm-state" + additionalProperties: false + +$defs: + qcom-qdu1000-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-4][0-9]|150)$" + - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data ] + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + enum: [ atest_char, atest_usb, char_exec, CMO_PRI, cmu_rng, + dbg_out_clk, ddr_bist, ddr_pxi1, ddr_pxi2, ddr_pxi3, ddr_pxi4, + ddr_pxi5, ddr_pxi6, ddr_pxi7, eth012_int_n, eth345_int_n, + gcc_gp1, gcc_gp2, gcc_gp3, gpio, gps_pps_in, hardsync_pps_in, + intr_c, jitter_bist_ref, pcie_clkreqn, phase_flag, pll_bist, + pll_clk, prng_rosc, qdss_cti, qdss_gpio, qlink0_enable, + qlink0_request, qlink0_wmss, qlink1_enable, qlink1_request, + qlink1_wmss, qlink2_enable, qlink2_request, qlink2_wmss, + qlink3_enable, qlink3_request, qlink3_wmss, qlink4_enable, + qlink4_request, qlink4_wmss, qlink5_enable, qlink5_request, + qlink5_wmss, qlink6_enable, qlink6_request, qlink6_wmss, + qlink7_enable, qlink7_request, qlink7_wmss, qspi_clk, qspi_cs, + qspi0, qspi1, qspi2, qspi3, qup00, qup01, qup02, qup03, qup04, + qup05, qup06, qup07, qup08, qup10, qup11, qup12, qup13, qup14, + qup15, qup16, qup17, qup20, qup21, qup22, SI5518_INT, smb_alert, + smb_clk, smb_dat, tb_trig, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, + tgu_ch4, tgu_ch5, tgu_ch6, tgu_ch7, tmess_prng0, tmess_prng1, + tmess_prng2, tmess_prng3, tod_pps_in, tsense_pwm1, tsense_pwm2, + usb2phy_ac, usb_con_det, usb_dfp_en, usb_phy, vfr_0, vfr_1, + vsense_trigger ] + + required: + - pins + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + + pinctrl@f000000 { + compatible = "qcom,qdu1000-tlmm"; + reg = <0xf000000 0x1000000>; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-ranges = <&tlmm 0 0 151>; + wakeup-parent = <&pdc>; + + uart0-default-state { + pins = "gpio6", "gpio7", "gpio8", "gpio9"; + function = "qup00"; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml index cbfd71819..e9abbf2c0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml @@ -1,125 +1,125 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,sa8775p-tlmm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Technologies, Inc. SA8775P TLMM block - -maintainers: - - Bartosz Golaszewski - -description: | - Top Level Mode Multiplexer pin controller in Qualcomm SA8775P SoC. - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -properties: - compatible: - const: qcom,sa8775p-tlmm - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: - minItems: 1 - maxItems: 74 - - gpio-line-names: - maxItems: 148 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-sa8775p-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-sa8775p-tlmm-state" - additionalProperties: false - -$defs: - qcom-sa8775p-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-3][0-9]|14[0-7])$" - - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk, ufs_reset ] - minItems: 1 - maxItems: 16 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - - enum: [ atest_char, atest_usb2, audio_ref, cam_mclk, cci_async, cci_i2c, - cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4, - cci_timer5, cci_timer6, cci_timer7, cci_timer8, cci_timer9, - cri_trng, cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, - ddr_pxi1, ddr_pxi2, ddr_pxi3, ddr_pxi4, ddr_pxi5, edp0_hot, - edp0_lcd, edp1_hot, edp1_lcd, edp2_hot, edp2_lcd, edp3_hot, - edp3_lcd, emac0_mcg0, emac0_mcg1, emac0_mcg2, emac0_mcg3, - emac0_mdc, emac0_mdio, emac0_ptp_aux, emac0_ptp_pps, emac1_mcg0, - emac1_mcg1, emac1_mcg2, emac1_mcg3, emac1_mdc, emac1_mdio, - emac1_ptp_aux, emac1_ptp_pps, gcc_gp1, gcc_gp2, gcc_gp3, - gcc_gp4, gcc_gp5, gpio, hs0_mi2s, hs1_mi2s, hs2_mi2s, ibi_i3c, - jitter_bist, mdp0_vsync0, mdp0_vsync1, mdp0_vsync2, mdp0_vsync3, - mdp0_vsync4, mdp0_vsync5, mdp0_vsync6, mdp0_vsync7, mdp0_vsync8, - mdp1_vsync0, mdp1_vsync1, mdp1_vsync2, mdp1_vsync3, mdp1_vsync4, - mdp1_vsync5, mdp1_vsync6, mdp1_vsync7, mdp1_vsync8, mdp_vsync, - mi2s1_data0, mi2s1_data1, mi2s1_sck, mi2s1_ws, mi2s2_data0, - mi2s2_data1, mi2s2_sck, mi2s2_ws, mi2s_mclk0, mi2s_mclk1, - pcie0_clkreq, pcie1_clkreq, phase_flag, pll_bist, pll_clk, - prng_rosc0, prng_rosc1, prng_rosc2, prng_rosc3, qdss_cti, - qdss_gpio, qup0_se0, qup0_se1, qup0_se2, qup0_se3, qup0_se4, - qup0_se5, qup1_se0, qup1_se1, qup1_se2, qup1_se3, qup1_se4, - qup1_se5, qup1_se6, qup2_se0, qup2_se1, qup2_se2, qup2_se3, - qup2_se4, qup2_se5, qup2_se6, qup3_se0, sailss_emac0, - sailss_ospi, sail_top, sgmii_phy, tb_trig, tgu_ch0, tgu_ch1, - tgu_ch2, tgu_ch3, tgu_ch4, tgu_ch5, tsense_pwm1, tsense_pwm2, - tsense_pwm3, tsense_pwm4, usb2phy_ac, vsense_trigger ] - - required: - - pins - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - - tlmm: pinctrl@f000000 { - compatible = "qcom,sa8775p-tlmm"; - reg = <0xf000000 0x1000000>; - interrupts = ; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - gpio-ranges = <&tlmm 0 0 148>; - - qup-uart10-state { - pins = "gpio46", "gpio47"; - function = "qup1_se3"; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sa8775p-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. SA8775P TLMM block + +maintainers: + - Bartosz Golaszewski + +description: | + Top Level Mode Multiplexer pin controller in Qualcomm SA8775P SoC. + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +properties: + compatible: + const: qcom,sa8775p-tlmm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 74 + + gpio-line-names: + maxItems: 148 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sa8775p-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sa8775p-tlmm-state" + additionalProperties: false + +$defs: + qcom-sa8775p-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-3][0-9]|14[0-7])$" + - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk, ufs_reset ] + minItems: 1 + maxItems: 16 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ atest_char, atest_usb2, audio_ref, cam_mclk, cci_async, cci_i2c, + cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4, + cci_timer5, cci_timer6, cci_timer7, cci_timer8, cci_timer9, + cri_trng, cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, + ddr_pxi1, ddr_pxi2, ddr_pxi3, ddr_pxi4, ddr_pxi5, edp0_hot, + edp0_lcd, edp1_hot, edp1_lcd, edp2_hot, edp2_lcd, edp3_hot, + edp3_lcd, emac0_mcg0, emac0_mcg1, emac0_mcg2, emac0_mcg3, + emac0_mdc, emac0_mdio, emac0_ptp_aux, emac0_ptp_pps, emac1_mcg0, + emac1_mcg1, emac1_mcg2, emac1_mcg3, emac1_mdc, emac1_mdio, + emac1_ptp_aux, emac1_ptp_pps, gcc_gp1, gcc_gp2, gcc_gp3, + gcc_gp4, gcc_gp5, gpio, hs0_mi2s, hs1_mi2s, hs2_mi2s, ibi_i3c, + jitter_bist, mdp0_vsync0, mdp0_vsync1, mdp0_vsync2, mdp0_vsync3, + mdp0_vsync4, mdp0_vsync5, mdp0_vsync6, mdp0_vsync7, mdp0_vsync8, + mdp1_vsync0, mdp1_vsync1, mdp1_vsync2, mdp1_vsync3, mdp1_vsync4, + mdp1_vsync5, mdp1_vsync6, mdp1_vsync7, mdp1_vsync8, mdp_vsync, + mi2s1_data0, mi2s1_data1, mi2s1_sck, mi2s1_ws, mi2s2_data0, + mi2s2_data1, mi2s2_sck, mi2s2_ws, mi2s_mclk0, mi2s_mclk1, + pcie0_clkreq, pcie1_clkreq, phase_flag, pll_bist, pll_clk, + prng_rosc0, prng_rosc1, prng_rosc2, prng_rosc3, qdss_cti, + qdss_gpio, qup0_se0, qup0_se1, qup0_se2, qup0_se3, qup0_se4, + qup0_se5, qup1_se0, qup1_se1, qup1_se2, qup1_se3, qup1_se4, + qup1_se5, qup1_se6, qup2_se0, qup2_se1, qup2_se2, qup2_se3, + qup2_se4, qup2_se5, qup2_se6, qup3_se0, sailss_emac0, + sailss_ospi, sail_top, sgmii_phy, tb_trig, tgu_ch0, tgu_ch1, + tgu_ch2, tgu_ch3, tgu_ch4, tgu_ch5, tsense_pwm1, tsense_pwm2, + tsense_pwm3, tsense_pwm4, usb2phy_ac, vsense_trigger ] + + required: + - pins + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + + tlmm: pinctrl@f000000 { + compatible = "qcom,sa8775p-tlmm"; + reg = <0xf000000 0x1000000>; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-ranges = <&tlmm 0 0 148>; + + qup-uart10-state { + pins = "gpio46", "gpio47"; + function = "qup1_se3"; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sc7180-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sc7180-pinctrl.yaml index 1494dfd46..5606f2136 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sc7180-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sc7180-pinctrl.yaml @@ -1,144 +1,144 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,sc7180-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SC7180 TLMM pin controller - -maintainers: - - Bjorn Andersson - - Krzysztof Kozlowski - -description: - Top Level Mode Multiplexer pin controller in Qualcomm SC7180 SoC. - -properties: - compatible: - const: qcom,sc7180-pinctrl - - reg: - maxItems: 3 - - reg-names: - items: - - const: west - - const: north - - const: south - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: - minItems: 1 - maxItems: 60 - - gpio-line-names: - maxItems: 119 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-sc7180-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-sc7180-tlmm-state" - additionalProperties: false - -$defs: - qcom-sc7180-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-8])$" - - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, - sdc2_cmd, sdc2_data, ufs_reset ] - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - - enum: [ adsp_ext, agera_pll, aoss_cti, atest_char, atest_char0, - atest_char1, atest_char2, atest_char3, atest_tsens, - atest_tsens2, atest_usb1, atest_usb10, atest_usb11, - atest_usb12, atest_usb13, atest_usb2, atest_usb20, atest_usb21, - atest_usb22, atest_usb23, audio_ref, btfm_slimbus, cam_mclk, - cci_async, cci_i2c, cci_timer0, cci_timer1, cci_timer2, - cci_timer3, cci_timer4, cri_trng, dbg_out, ddr_bist, ddr_pxi0, - ddr_pxi1, ddr_pxi2, ddr_pxi3, dp_hot, edp_lcd, gcc_gp1, - gcc_gp2, gcc_gp3, gpio, gp_pdm0, gp_pdm1, gp_pdm2, gps_tx, - jitter_bist, ldo_en, ldo_update, lpass_ext, mdp_vsync, - mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s_0, mi2s_1, - mi2s_2, mss_lte, m_voc, pa_indicator, phase_flag, PLL_BIST, - pll_bypassnl, pll_reset, prng_rosc, qdss, qdss_cti, - qlink_enable, qlink_request, qspi_clk, qspi_cs, qspi_data, - qup00, qup01, qup02_i2c, qup02_uart, qup03, qup04_i2c, - qup04_uart, qup05, qup10, qup11_i2c, qup11_uart, qup12, - qup13_i2c, qup13_uart, qup14, qup15, sdc1_tb, sdc2_tb, - sd_write, sp_cmu, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, - tsense_pwm1, tsense_pwm2, uim1, uim2, uim_batt, usb_phy, vfr_1, - _V_GPIO, _V_PPS_IN, _V_PPS_OUT, vsense_trigger, wlan1_adc0, - wlan1_adc1, wlan2_adc0, wlan2_adc1 ] - - required: - - pins - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -required: - - compatible - - reg - - reg-names - -unevaluatedProperties: false - -examples: - - | - #include - - tlmm: pinctrl@3500000 { - compatible = "qcom,sc7180-pinctrl"; - reg = <0x03500000 0x300000>, - <0x03900000 0x300000>, - <0x03d00000 0x300000>; - reg-names = "west", "north", "south"; - interrupts = ; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - gpio-ranges = <&tlmm 0 0 120>; - wakeup-parent = <&pdc>; - - dp_hot_plug_det: dp-hot-plug-det-state { - pins = "gpio117"; - function = "dp_hot"; - }; - - qup_spi11_cs_gpio: qup-spi11-cs-gpio-state { - spi-pins { - pins = "gpio53", "gpio54", "gpio55"; - function = "qup15"; - }; - - cs-pins { - pins = "gpio56"; - function = "gpio"; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sc7180-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SC7180 TLMM pin controller + +maintainers: + - Bjorn Andersson + - Krzysztof Kozlowski + +description: + Top Level Mode Multiplexer pin controller in Qualcomm SC7180 SoC. + +properties: + compatible: + const: qcom,sc7180-pinctrl + + reg: + maxItems: 3 + + reg-names: + items: + - const: west + - const: north + - const: south + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 60 + + gpio-line-names: + maxItems: 119 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sc7180-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sc7180-tlmm-state" + additionalProperties: false + +$defs: + qcom-sc7180-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-8])$" + - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, + sdc2_cmd, sdc2_data, ufs_reset ] + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ adsp_ext, agera_pll, aoss_cti, atest_char, atest_char0, + atest_char1, atest_char2, atest_char3, atest_tsens, + atest_tsens2, atest_usb1, atest_usb10, atest_usb11, + atest_usb12, atest_usb13, atest_usb2, atest_usb20, atest_usb21, + atest_usb22, atest_usb23, audio_ref, btfm_slimbus, cam_mclk, + cci_async, cci_i2c, cci_timer0, cci_timer1, cci_timer2, + cci_timer3, cci_timer4, cri_trng, dbg_out, ddr_bist, ddr_pxi0, + ddr_pxi1, ddr_pxi2, ddr_pxi3, dp_hot, edp_lcd, gcc_gp1, + gcc_gp2, gcc_gp3, gpio, gp_pdm0, gp_pdm1, gp_pdm2, gps_tx, + jitter_bist, ldo_en, ldo_update, lpass_ext, mdp_vsync, + mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s_0, mi2s_1, + mi2s_2, mss_lte, m_voc, pa_indicator, phase_flag, PLL_BIST, + pll_bypassnl, pll_reset, prng_rosc, qdss, qdss_cti, + qlink_enable, qlink_request, qspi_clk, qspi_cs, qspi_data, + qup00, qup01, qup02_i2c, qup02_uart, qup03, qup04_i2c, + qup04_uart, qup05, qup10, qup11_i2c, qup11_uart, qup12, + qup13_i2c, qup13_uart, qup14, qup15, sdc1_tb, sdc2_tb, + sd_write, sp_cmu, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, + tsense_pwm1, tsense_pwm2, uim1, uim2, uim_batt, usb_phy, vfr_1, + _V_GPIO, _V_PPS_IN, _V_PPS_OUT, vsense_trigger, wlan1_adc0, + wlan1_adc1, wlan2_adc0, wlan2_adc1 ] + + required: + - pins + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +required: + - compatible + - reg + - reg-names + +unevaluatedProperties: false + +examples: + - | + #include + + tlmm: pinctrl@3500000 { + compatible = "qcom,sc7180-pinctrl"; + reg = <0x03500000 0x300000>, + <0x03900000 0x300000>, + <0x03d00000 0x300000>; + reg-names = "west", "north", "south"; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-ranges = <&tlmm 0 0 120>; + wakeup-parent = <&pdc>; + + dp_hot_plug_det: dp-hot-plug-det-state { + pins = "gpio117"; + function = "dp_hot"; + }; + + qup_spi11_cs_gpio: qup-spi11-cs-gpio-state { + spi-pins { + pins = "gpio53", "gpio54", "gpio55"; + function = "qup15"; + }; + + cs-pins { + pins = "gpio56"; + function = "gpio"; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sc8180x-tlmm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sc8180x-tlmm.yaml index eef5a5366..c122bb849 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sc8180x-tlmm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sc8180x-tlmm.yaml @@ -1,138 +1,138 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,sc8180x-tlmm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Technologies, Inc. SC8180X TLMM block - -maintainers: - - Bjorn Andersson - -description: - Top Level Mode Multiplexer pin controller in Qualcomm SC8180X SoC. - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -properties: - compatible: - const: qcom,sc8180x-tlmm - - reg: - maxItems: 3 - - reg-names: - items: - - const: west - - const: east - - const: south - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: true - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-sc8180x-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-sc8180x-tlmm-state" - additionalProperties: false - -$defs: - qcom-sc8180x-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-8][0-9])$" - - enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ] - minItems: 1 - maxItems: 16 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - - enum: [ adsp_ext, agera_pll, aoss_cti, atest_char, atest_tsens, - atest_tsens2, atest_usb0, atest_usb1, atest_usb2, atest_usb3, - atest_usb4, audio_ref, btfm_slimbus, cam_mclk, cci_async, - cci_i2c, cci_timer0, cci_timer1, cci_timer2, cci_timer3, - cci_timer4, cci_timer5, cci_timer6, cci_timer7, cci_timer8, - cci_timer9, cri_trng, dbg_out, ddr_bist, ddr_pxi, debug_hot, - dp_hot, edp_hot, edp_lcd, emac_phy, emac_pps, gcc_gp1, gcc_gp2, - gcc_gp3, gcc_gp4, gcc_gp5, gpio, gps, grfc, hs1_mi2s, hs2_mi2s, - hs3_mi2s, jitter_bist, lpass_slimbus, m_voc, mdp_vsync, - mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3, mdp_vsync4, - mdp_vsync5, mss_lte, nav_pps, pa_indicator, pci_e0, pci_e1, - pci_e2, pci_e3, phase_flag, pll_bist, pll_bypassnl, pll_reset, - pri_mi2s, pri_mi2s_ws, prng_rosc, qdss_cti, qdss_gpio, qlink, - qspi0, qspi0_clk, qspi0_cs, qspi1, qspi1_clk, qspi1_cs, - qua_mi2s, qup0, qup1, qup2, qup3, qup4, qup5, qup6, qup7, qup8, - qup9, qup10, qup11, qup12, qup13, qup14, qup15, qup16, qup17, - qup18, qup19, qup_l4, qup_l5, qup_l6, rgmii, sd_write, sdc4, - sdc4_clk, sdc4_cmd, sec_mi2s, sp_cmu, spkr_i2s, ter_mi2s, tgu, - tsense_pwm1, tsense_pwm2, tsif1, tsif2, uim1, uim2, uim_batt, - usb0_phy, usb1_phy, usb2phy_ac, vfr_1, vsense_trigger, - wlan1_adc, wlan2_adc, wmss_reset ] - - required: - - pins - -required: - - compatible - - reg - - reg-names - -unevaluatedProperties: false - -examples: - - | - #include - pinctrl@3100000 { - compatible = "qcom,sc8180x-tlmm"; - reg = <0x03100000 0x300000>, - <0x03500000 0x700000>, - <0x03d00000 0x300000>; - reg-names = "west", "east", "south"; - interrupts = ; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - gpio-ranges = <&tlmm 0 0 190>; - - gpio-wo-subnode-state { - pins = "gpio1"; - function = "gpio"; - }; - - uart-w-subnodes-state { - rx-pins { - pins = "gpio4"; - function = "qup6"; - bias-pull-up; - }; - - tx-pins { - pins = "gpio5"; - function = "qup6"; - bias-disable; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sc8180x-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. SC8180X TLMM block + +maintainers: + - Bjorn Andersson + +description: + Top Level Mode Multiplexer pin controller in Qualcomm SC8180X SoC. + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +properties: + compatible: + const: qcom,sc8180x-tlmm + + reg: + maxItems: 3 + + reg-names: + items: + - const: west + - const: east + - const: south + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: true + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sc8180x-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sc8180x-tlmm-state" + additionalProperties: false + +$defs: + qcom-sc8180x-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-8][0-9])$" + - enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ] + minItems: 1 + maxItems: 16 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ adsp_ext, agera_pll, aoss_cti, atest_char, atest_tsens, + atest_tsens2, atest_usb0, atest_usb1, atest_usb2, atest_usb3, + atest_usb4, audio_ref, btfm_slimbus, cam_mclk, cci_async, + cci_i2c, cci_timer0, cci_timer1, cci_timer2, cci_timer3, + cci_timer4, cci_timer5, cci_timer6, cci_timer7, cci_timer8, + cci_timer9, cri_trng, dbg_out, ddr_bist, ddr_pxi, debug_hot, + dp_hot, edp_hot, edp_lcd, emac_phy, emac_pps, gcc_gp1, gcc_gp2, + gcc_gp3, gcc_gp4, gcc_gp5, gpio, gps, grfc, hs1_mi2s, hs2_mi2s, + hs3_mi2s, jitter_bist, lpass_slimbus, m_voc, mdp_vsync, + mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3, mdp_vsync4, + mdp_vsync5, mss_lte, nav_pps, pa_indicator, pci_e0, pci_e1, + pci_e2, pci_e3, phase_flag, pll_bist, pll_bypassnl, pll_reset, + pri_mi2s, pri_mi2s_ws, prng_rosc, qdss_cti, qdss_gpio, qlink, + qspi0, qspi0_clk, qspi0_cs, qspi1, qspi1_clk, qspi1_cs, + qua_mi2s, qup0, qup1, qup2, qup3, qup4, qup5, qup6, qup7, qup8, + qup9, qup10, qup11, qup12, qup13, qup14, qup15, qup16, qup17, + qup18, qup19, qup_l4, qup_l5, qup_l6, rgmii, sd_write, sdc4, + sdc4_clk, sdc4_cmd, sec_mi2s, sp_cmu, spkr_i2s, ter_mi2s, tgu, + tsense_pwm1, tsense_pwm2, tsif1, tsif2, uim1, uim2, uim_batt, + usb0_phy, usb1_phy, usb2phy_ac, vfr_1, vsense_trigger, + wlan1_adc, wlan2_adc, wmss_reset ] + + required: + - pins + +required: + - compatible + - reg + - reg-names + +unevaluatedProperties: false + +examples: + - | + #include + pinctrl@3100000 { + compatible = "qcom,sc8180x-tlmm"; + reg = <0x03100000 0x300000>, + <0x03500000 0x700000>, + <0x03d00000 0x300000>; + reg-names = "west", "east", "south"; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-ranges = <&tlmm 0 0 190>; + + gpio-wo-subnode-state { + pins = "gpio1"; + function = "gpio"; + }; + + uart-w-subnodes-state { + rx-pins { + pins = "gpio4"; + function = "qup6"; + bias-pull-up; + }; + + tx-pins { + pins = "gpio5"; + function = "qup6"; + bias-disable; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sdm670-tlmm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sdm670-tlmm.yaml index 56d450c28..b56e717aa 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sdm670-tlmm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sdm670-tlmm.yaml @@ -1,112 +1,112 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,sdm670-tlmm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Technologies, Inc. SDM670 TLMM block - -maintainers: - - Richard Acayan - -description: | - The Top Level Mode Multiplexer (TLMM) block found in the SDM670 platform. - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -properties: - compatible: - const: qcom,sdm670-tlmm - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: - minItems: 1 - maxItems: 75 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-sdm670-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-sdm670-tlmm-state" - additionalProperties: false - -$defs: - qcom-sdm670-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-4][0-9])$" - - enum: [ ufs_reset, sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data, - sdc2_clk, sdc2_cmd, sdc2_data ] - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - - enum: [ adsp_ext, agera_pll, atest_char, atest_tsens, atest_tsens2, atest_usb1, atest_usb10, - atest_usb11, atest_usb12, atest_usb13, atest_usb2, atest_usb20, atest_usb21, - atest_usb22, atest_usb23, cam_mclk, cci_async, cci_i2c, cci_timer0, cci_timer1, - cci_timer2, cci_timer3, cci_timer4, copy_gp, copy_phase, dbg_out, ddr_bist, - ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, edp_hot, edp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, - gp_pdm0, gp_pdm1, gp_pdm2, gpio, gps_tx, jitter_bist, ldo_en, ldo_update, - lpass_slimbus, m_voc, mdp_vsync, mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3, - mss_lte, nav_pps, pa_indicator, pci_e0, pci_e1, phase_flag, pll_bist, pll_bypassnl, - pll_reset, pri_mi2s, pri_mi2s_ws, prng_rosc, qdss_cti, qdss, qlink_enable, - qlink_request, qua_mi2s, qup0, qup1, qup10, qup11, qup12, qup13, qup14, qup15, qup2, - qup3, qup4, qup5, qup6, qup7, qup8, qup9, qup_l4, qup_l5, qup_l6, sdc4_clk, - sdc4_cmd, sdc4_data, sd_write, sec_mi2s, ter_mi2s, tgu_ch0, tgu_ch1, tgu_ch2, - tgu_ch3, tsif1_clk, tsif1_data, tsif1_en, tsif1_error, tsif1_sync, tsif2_clk, - tsif2_data, tsif2_en, tsif2_error, tsif2_sync, uim1_clk, uim1_data, uim1_present, - uim1_reset, uim2_clk, uim2_data, uim2_present, uim2_reset, uim_batt, usb_phy, vfr_1, - vsense_trigger, wlan1_adc0, wlan1_adc1, wlan2_adc0, wlan2_adc1, wsa_clk, wsa_data, ] - - required: - - pins - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - pinctrl@3400000 { - compatible = "qcom,sdm670-tlmm"; - reg = <0x03400000 0x300000>; - interrupts = ; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - gpio-ranges = <&tlmm 0 0 151>; - - qup-i2c9-state { - pins = "gpio6", "gpio7"; - function = "qup9"; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sdm670-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. SDM670 TLMM block + +maintainers: + - Richard Acayan + +description: | + The Top Level Mode Multiplexer (TLMM) block found in the SDM670 platform. + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +properties: + compatible: + const: qcom,sdm670-tlmm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 75 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sdm670-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sdm670-tlmm-state" + additionalProperties: false + +$defs: + qcom-sdm670-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-4][0-9])$" + - enum: [ ufs_reset, sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data, + sdc2_clk, sdc2_cmd, sdc2_data ] + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ adsp_ext, agera_pll, atest_char, atest_tsens, atest_tsens2, atest_usb1, atest_usb10, + atest_usb11, atest_usb12, atest_usb13, atest_usb2, atest_usb20, atest_usb21, + atest_usb22, atest_usb23, cam_mclk, cci_async, cci_i2c, cci_timer0, cci_timer1, + cci_timer2, cci_timer3, cci_timer4, copy_gp, copy_phase, dbg_out, ddr_bist, + ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, edp_hot, edp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, + gp_pdm0, gp_pdm1, gp_pdm2, gpio, gps_tx, jitter_bist, ldo_en, ldo_update, + lpass_slimbus, m_voc, mdp_vsync, mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3, + mss_lte, nav_pps, pa_indicator, pci_e0, pci_e1, phase_flag, pll_bist, pll_bypassnl, + pll_reset, pri_mi2s, pri_mi2s_ws, prng_rosc, qdss_cti, qdss, qlink_enable, + qlink_request, qua_mi2s, qup0, qup1, qup10, qup11, qup12, qup13, qup14, qup15, qup2, + qup3, qup4, qup5, qup6, qup7, qup8, qup9, qup_l4, qup_l5, qup_l6, sdc4_clk, + sdc4_cmd, sdc4_data, sd_write, sec_mi2s, ter_mi2s, tgu_ch0, tgu_ch1, tgu_ch2, + tgu_ch3, tsif1_clk, tsif1_data, tsif1_en, tsif1_error, tsif1_sync, tsif2_clk, + tsif2_data, tsif2_en, tsif2_error, tsif2_sync, uim1_clk, uim1_data, uim1_present, + uim1_reset, uim2_clk, uim2_data, uim2_present, uim2_reset, uim_batt, usb_phy, vfr_1, + vsense_trigger, wlan1_adc0, wlan1_adc1, wlan2_adc0, wlan2_adc1, wsa_clk, wsa_data, ] + + required: + - pins + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + pinctrl@3400000 { + compatible = "qcom,sdm670-tlmm"; + reg = <0x03400000 0x300000>; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-ranges = <&tlmm 0 0 151>; + + qup-i2c9-state { + pins = "gpio6", "gpio7"; + function = "qup9"; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sdx55-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sdx55-pinctrl.yaml index e21386abe..edbcff92b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sdx55-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sdx55-pinctrl.yaml @@ -1,122 +1,122 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,sdx55-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Technologies, Inc. SDX55 TLMM block - -maintainers: - - Vinod Koul - -description: - Top Level Mode Multiplexer pin controller in Qualcomm SDX55 SoC. - -properties: - compatible: - const: qcom,sdx55-pinctrl - - reg: - description: Specifies the base address and size of the TLMM register space - maxItems: 1 - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: - maxItems: 1 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-sdx55-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-sdx55-tlmm-state" - additionalProperties: false - -$defs: - qcom-sdx55-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this subnode. - items: - oneOf: - - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-7])$" - - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ] - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. Functions are only valid for gpio pins. - enum: [ adsp_ext, atest, audio_ref, bimc_dte0, bimc_dte1, blsp_i2c1, - blsp_i2c2, blsp_i2c3, blsp_i2c4, blsp_spi1, blsp_spi2, - blsp_spi3, blsp_spi4, blsp_uart1, blsp_uart2, blsp_uart3, - blsp_uart4, char_exec, coex_uart, coex_uart2, cri_trng, - cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, - ebi0_wrcdc, ebi2_a, ebi2_lcd, emac_gcc0, emac_gcc1, - emac_pps0, emac_pps1, ext_dbg, gcc_gp1, gcc_gp2, gcc_gp3, - gcc_plltest, gpio, i2s_mclk, jitter_bist, ldo_en, ldo_update, - mgpi_clk, m_voc, native_char, native_char0, native_char1, - native_char2, native_char3, native_tsens, native_tsense, - nav_gpio, pa_indicator, pcie_clkreq, pci_e, pll_bist, pll_ref, - pll_test, pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, - qdss_gpio0, qdss_gpio1, qdss_gpio2, qdss_gpio3, qdss_gpio4, - qdss_gpio5, qdss_gpio6, qdss_gpio7, qdss_gpio8, qdss_gpio9, - qdss_gpio10, qdss_gpio11, qdss_gpio12, qdss_gpio13, - qdss_gpio14, qdss_gpio15, qdss_stm0, qdss_stm1, qdss_stm2, - qdss_stm3, qdss_stm4, qdss_stm5, qdss_stm6, qdss_stm7, - qdss_stm8, qdss_stm9, qdss_stm10, qdss_stm11, qdss_stm12, - qdss_stm13, qdss_stm14, qdss_stm15, qdss_stm16, qdss_stm17, - qdss_stm18, qdss_stm19, qdss_stm20, qdss_stm21, qdss_stm22, - qdss_stm23, qdss_stm24, qdss_stm25, qdss_stm26, qdss_stm27, - qdss_stm28, qdss_stm29, qdss_stm30, qdss_stm31, qlink0_en, - qlink0_req, qlink0_wmss, qlink1_en, qlink1_req, qlink1_wmss, - spmi_coex, sec_mi2s, spmi_vgi, tgu_ch0, uim1_clk, uim1_data, - uim1_present, uim1_reset, uim2_clk, uim2_data, uim2_present, - uim2_reset, usb2phy_ac, vsense_trigger ] - - required: - - pins - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - tlmm: pinctrl@1f00000 { - compatible = "qcom,sdx55-pinctrl"; - reg = <0x0f100000 0x300000>; - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&tlmm 0 0 108>; - interrupt-controller; - #interrupt-cells = <2>; - interrupts = ; - - serial-state { - pins = "gpio8", "gpio9"; - function = "blsp_uart3"; - drive-strength = <8>; - bias-disable; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sdx55-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. SDX55 TLMM block + +maintainers: + - Vinod Koul + +description: + Top Level Mode Multiplexer pin controller in Qualcomm SDX55 SoC. + +properties: + compatible: + const: qcom,sdx55-pinctrl + + reg: + description: Specifies the base address and size of the TLMM register space + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: + maxItems: 1 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sdx55-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sdx55-tlmm-state" + additionalProperties: false + +$defs: + qcom-sdx55-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this subnode. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-7])$" + - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ] + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. Functions are only valid for gpio pins. + enum: [ adsp_ext, atest, audio_ref, bimc_dte0, bimc_dte1, blsp_i2c1, + blsp_i2c2, blsp_i2c3, blsp_i2c4, blsp_spi1, blsp_spi2, + blsp_spi3, blsp_spi4, blsp_uart1, blsp_uart2, blsp_uart3, + blsp_uart4, char_exec, coex_uart, coex_uart2, cri_trng, + cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, + ebi0_wrcdc, ebi2_a, ebi2_lcd, emac_gcc0, emac_gcc1, + emac_pps0, emac_pps1, ext_dbg, gcc_gp1, gcc_gp2, gcc_gp3, + gcc_plltest, gpio, i2s_mclk, jitter_bist, ldo_en, ldo_update, + mgpi_clk, m_voc, native_char, native_char0, native_char1, + native_char2, native_char3, native_tsens, native_tsense, + nav_gpio, pa_indicator, pcie_clkreq, pci_e, pll_bist, pll_ref, + pll_test, pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, + qdss_gpio0, qdss_gpio1, qdss_gpio2, qdss_gpio3, qdss_gpio4, + qdss_gpio5, qdss_gpio6, qdss_gpio7, qdss_gpio8, qdss_gpio9, + qdss_gpio10, qdss_gpio11, qdss_gpio12, qdss_gpio13, + qdss_gpio14, qdss_gpio15, qdss_stm0, qdss_stm1, qdss_stm2, + qdss_stm3, qdss_stm4, qdss_stm5, qdss_stm6, qdss_stm7, + qdss_stm8, qdss_stm9, qdss_stm10, qdss_stm11, qdss_stm12, + qdss_stm13, qdss_stm14, qdss_stm15, qdss_stm16, qdss_stm17, + qdss_stm18, qdss_stm19, qdss_stm20, qdss_stm21, qdss_stm22, + qdss_stm23, qdss_stm24, qdss_stm25, qdss_stm26, qdss_stm27, + qdss_stm28, qdss_stm29, qdss_stm30, qdss_stm31, qlink0_en, + qlink0_req, qlink0_wmss, qlink1_en, qlink1_req, qlink1_wmss, + spmi_coex, sec_mi2s, spmi_vgi, tgu_ch0, uim1_clk, uim1_data, + uim1_present, uim1_reset, uim2_clk, uim2_data, uim2_present, + uim2_reset, usb2phy_ac, vsense_trigger ] + + required: + - pins + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + tlmm: pinctrl@1f00000 { + compatible = "qcom,sdx55-pinctrl"; + reg = <0x0f100000 0x300000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&tlmm 0 0 108>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = ; + + serial-state { + pins = "gpio8", "gpio9"; + function = "blsp_uart3"; + drive-strength = <8>; + bias-disable; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sdx75-tlmm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sdx75-tlmm.yaml index cd36c65f2..cb1d978d0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sdx75-tlmm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sdx75-tlmm.yaml @@ -1,131 +1,131 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,sdx75-tlmm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Technologies, Inc. SDX75 TLMM block - -maintainers: - - Rohit Agarwal - -description: - Top Level Mode Multiplexer pin controller in Qualcomm SDX75 SoC. - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -properties: - compatible: - const: qcom,sdx75-tlmm - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: - minItems: 1 - maxItems: 67 - - gpio-line-names: - maxItems: 133 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-sdx75-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-sdx75-tlmm-state" - additionalProperties: false - -$defs: - qcom-sdx75-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-2][0-9]|13[0-2])$" - - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk, sdc2_clk, sdc2_cmd, sdc2_data ] - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - enum: [ adsp_ext, atest_char, audio_ref_clk, bimc_dte, char_exec, coex_uart2, - coex_uart, cri_trng, cri_trng0, cri_trng1, dbg_out_clk, ddr_bist, - ddr_pxi0, ebi0_wrcdc, ebi2_a, ebi2_lcd, ebi2_lcd_te, emac0_mcg, - emac0_ptp, emac1_mcg, emac1_ptp, emac_cdc, emac_pps_in, eth0_mdc, - eth0_mdio, eth1_mdc, eth1_mdio, ext_dbg, gcc_125_clk, gcc_gp1_clk, - gcc_gp2_clk, gcc_gp3_clk, gcc_plltest, gpio, i2s_mclk, jitter_bist, - ldo_en, ldo_update, m_voc, mgpi_clk, native_char, native_tsens, - native_tsense, nav_dr_sync, nav_gpio, pa_indicator, pci_e, - pcie0_clkreq_n, pcie1_clkreq_n, pcie2_clkreq_n, pll_bist_sync, - pll_clk_aux, pll_ref_clk, pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, - qlink0_b_en, qlink0_b_req, qlink0_l_en, qlink0_l_req, qlink0_wmss, - qlink1_l_en, qlink1_l_req, qlink1_wmss, qup_se0, qup_se1_l2_mira, - qup_se1_l2_mirb, qup_se1_l3_mira, qup_se1_l3_mirb, qup_se2, qup_se3, - qup_se4, qup_se5, qup_se6, qup_se7, qup_se8, rgmii_rx_ctl, rgmii_rxc, - rgmii_rxd, rgmii_tx_ctl, rgmii_txc, rgmii_txd, sd_card, sdc1_tb, - sdc2_tb_trig, sec_mi2s, sgmii_phy_intr0_n, sgmii_phy_intr1_n, - spmi_coex, spmi_vgi, tgu_ch0_trigout, tmess_prng0, tmess_prng1, - tmess_prng2, tmess_prng3, tri_mi2s, uim1_clk, uim1_data, uim1_present, - uim1_reset, uim2_clk, uim2_data, uim2_present, uim2_reset, - usb2phy_ac_en, vsense_trigger_mirnat] - - required: - - pins - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - tlmm: pinctrl@f100000 { - compatible = "qcom,sdx75-tlmm"; - reg = <0x0f100000 0x300000>; - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&tlmm 0 0 133>; - interrupt-controller; - #interrupt-cells = <2>; - interrupts = ; - - gpio-wo-state { - pins = "gpio1"; - function = "gpio"; - }; - - uart-w-state { - rx-pins { - pins = "gpio12"; - function = "qup_se1_l2_mira"; - bias-disable; - }; - - tx-pins { - pins = "gpio13"; - function = "qup_se1_l3_mira"; - bias-disable; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sdx75-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. SDX75 TLMM block + +maintainers: + - Rohit Agarwal + +description: + Top Level Mode Multiplexer pin controller in Qualcomm SDX75 SoC. + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +properties: + compatible: + const: qcom,sdx75-tlmm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 67 + + gpio-line-names: + maxItems: 133 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sdx75-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sdx75-tlmm-state" + additionalProperties: false + +$defs: + qcom-sdx75-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-2][0-9]|13[0-2])$" + - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk, sdc2_clk, sdc2_cmd, sdc2_data ] + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + enum: [ adsp_ext, atest_char, audio_ref_clk, bimc_dte, char_exec, coex_uart2, + coex_uart, cri_trng, cri_trng0, cri_trng1, dbg_out_clk, ddr_bist, + ddr_pxi0, ebi0_wrcdc, ebi2_a, ebi2_lcd, ebi2_lcd_te, emac0_mcg, + emac0_ptp, emac1_mcg, emac1_ptp, emac_cdc, emac_pps_in, eth0_mdc, + eth0_mdio, eth1_mdc, eth1_mdio, ext_dbg, gcc_125_clk, gcc_gp1_clk, + gcc_gp2_clk, gcc_gp3_clk, gcc_plltest, gpio, i2s_mclk, jitter_bist, + ldo_en, ldo_update, m_voc, mgpi_clk, native_char, native_tsens, + native_tsense, nav_dr_sync, nav_gpio, pa_indicator, pci_e, + pcie0_clkreq_n, pcie1_clkreq_n, pcie2_clkreq_n, pll_bist_sync, + pll_clk_aux, pll_ref_clk, pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, + qlink0_b_en, qlink0_b_req, qlink0_l_en, qlink0_l_req, qlink0_wmss, + qlink1_l_en, qlink1_l_req, qlink1_wmss, qup_se0, qup_se1_l2_mira, + qup_se1_l2_mirb, qup_se1_l3_mira, qup_se1_l3_mirb, qup_se2, qup_se3, + qup_se4, qup_se5, qup_se6, qup_se7, qup_se8, rgmii_rx_ctl, rgmii_rxc, + rgmii_rxd, rgmii_tx_ctl, rgmii_txc, rgmii_txd, sd_card, sdc1_tb, + sdc2_tb_trig, sec_mi2s, sgmii_phy_intr0_n, sgmii_phy_intr1_n, + spmi_coex, spmi_vgi, tgu_ch0_trigout, tmess_prng0, tmess_prng1, + tmess_prng2, tmess_prng3, tri_mi2s, uim1_clk, uim1_data, uim1_present, + uim1_reset, uim2_clk, uim2_data, uim2_present, uim2_reset, + usb2phy_ac_en, vsense_trigger_mirnat] + + required: + - pins + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + tlmm: pinctrl@f100000 { + compatible = "qcom,sdx75-tlmm"; + reg = <0x0f100000 0x300000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&tlmm 0 0 133>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = ; + + gpio-wo-state { + pins = "gpio1"; + function = "gpio"; + }; + + uart-w-state { + rx-pins { + pins = "gpio12"; + function = "qup_se1_l2_mira"; + bias-disable; + }; + + tx-pins { + pins = "gpio13"; + function = "qup_se1_l3_mira"; + bias-disable; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm4250-lpass-lpi-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm4250-lpass-lpi-pinctrl.yaml index 636003013..9612e2118 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm4250-lpass-lpi-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm4250-lpass-lpi-pinctrl.yaml @@ -1,118 +1,118 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,sm4250-lpass-lpi-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SM4250 SoC LPASS LPI TLMM - -maintainers: - - Srinivas Kandagatla - -description: - Top Level Mode Multiplexer pin controller in the Low Power Audio SubSystem - (LPASS) Low Power Island (LPI) of Qualcomm SM4250 SoC. - -properties: - compatible: - const: qcom,sm4250-lpass-lpi-pinctrl - - reg: - items: - - description: LPASS LPI TLMM Control and Status registers - - description: LPASS LPI MCC registers - - clocks: - items: - - description: LPASS Audio voting clock - - clock-names: - items: - - const: audio - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-sm4250-lpass-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-sm4250-lpass-state" - additionalProperties: false - -$defs: - qcom-sm4250-lpass-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,lpass-lpi-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - pattern: "^gpio([0-9]|1[0-9]|2[0-6])$" - - function: - enum: [ gpio, dmic01_clk, dmic01_data, dmic23_clk, dmic23_data, - dmic4_clk, dmic4_data, ext_mclk0_a, ext_mclk0_b, ext_mclk1_a, - ext_mclk1_b, ext_mclk1_c, i2s1_clk, i2s1_data, i2s1_ws, - i2s2_clk, i2s2_data, i2s2_ws, i2s3_clk, i2s3_data, i2s3_ws, - qua_mi2s_data, qua_mi2s_sclk, qua_mi2s_ws, slim_clk, slim_data, - swr_rx_clk, swr_rx_data, swr_tx_clk, swr_tx_data, swr_wsa_clk, - swr_wsa_data ] - description: - Specify the alternative function to be configured for the specified - pins. - -allOf: - - $ref: qcom,lpass-lpi-common.yaml# - -required: - - compatible - - reg - - clocks - - clock-names - -unevaluatedProperties: false - -examples: - - | - #include - lpi_tlmm: pinctrl@a7c0000 { - compatible = "qcom,sm4250-lpass-lpi-pinctrl"; - reg = <0xa7c0000 0x20000>, - <0xa950000 0x10000>; - clocks = <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; - clock-names = "audio"; - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&lpi_tlmm 0 0 19>; - - i2s2-active-state { - clk-pins { - pins = "gpio10"; - function = "i2s2_clk"; - drive-strength = <2>; - slew-rate = <1>; - bias-disable; - }; - - data-pins { - pins = "gpio12"; - function = "i2s2_data"; - drive-strength = <2>; - slew-rate = <1>; - }; - }; - - i2s2-sleep-clk-state { - pins = "gpio10"; - function = "i2s2_clk"; - drive-strength = <2>; - bias-pull-down; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sm4250-lpass-lpi-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM4250 SoC LPASS LPI TLMM + +maintainers: + - Srinivas Kandagatla + +description: + Top Level Mode Multiplexer pin controller in the Low Power Audio SubSystem + (LPASS) Low Power Island (LPI) of Qualcomm SM4250 SoC. + +properties: + compatible: + const: qcom,sm4250-lpass-lpi-pinctrl + + reg: + items: + - description: LPASS LPI TLMM Control and Status registers + - description: LPASS LPI MCC registers + + clocks: + items: + - description: LPASS Audio voting clock + + clock-names: + items: + - const: audio + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sm4250-lpass-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sm4250-lpass-state" + additionalProperties: false + +$defs: + qcom-sm4250-lpass-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,lpass-lpi-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + pattern: "^gpio([0-9]|1[0-9]|2[0-6])$" + + function: + enum: [ gpio, dmic01_clk, dmic01_data, dmic23_clk, dmic23_data, + dmic4_clk, dmic4_data, ext_mclk0_a, ext_mclk0_b, ext_mclk1_a, + ext_mclk1_b, ext_mclk1_c, i2s1_clk, i2s1_data, i2s1_ws, + i2s2_clk, i2s2_data, i2s2_ws, i2s3_clk, i2s3_data, i2s3_ws, + qua_mi2s_data, qua_mi2s_sclk, qua_mi2s_ws, slim_clk, slim_data, + swr_rx_clk, swr_rx_data, swr_tx_clk, swr_tx_data, swr_wsa_clk, + swr_wsa_data ] + description: + Specify the alternative function to be configured for the specified + pins. + +allOf: + - $ref: qcom,lpass-lpi-common.yaml# + +required: + - compatible + - reg + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + lpi_tlmm: pinctrl@a7c0000 { + compatible = "qcom,sm4250-lpass-lpi-pinctrl"; + reg = <0xa7c0000 0x20000>, + <0xa950000 0x10000>; + clocks = <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "audio"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&lpi_tlmm 0 0 19>; + + i2s2-active-state { + clk-pins { + pins = "gpio10"; + function = "i2s2_clk"; + drive-strength = <2>; + slew-rate = <1>; + bias-disable; + }; + + data-pins { + pins = "gpio12"; + function = "i2s2_data"; + drive-strength = <2>; + slew-rate = <1>; + }; + }; + + i2s2-sleep-clk-state { + pins = "gpio10"; + function = "i2s2_clk"; + drive-strength = <2>; + bias-pull-down; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm4450-tlmm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm4450-tlmm.yaml index a788890e2..1b941b276 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm4450-tlmm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm4450-tlmm.yaml @@ -1,135 +1,135 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,sm4450-tlmm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Technologies, Inc. SM4450 TLMM block - -maintainers: - - Tengfei Fan - -description: - Top Level Mode Multiplexer pin controller in Qualcomm SM4450 SoC. - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -properties: - compatible: - const: qcom,sm4450-tlmm - - reg: - maxItems: 1 - - interrupts: true - interrupt-controller: true - "#interrupt-cells": true - gpio-controller: true - - gpio-reserved-ranges: - minItems: 1 - maxItems: 68 - - gpio-line-names: - maxItems: 136 - - "#gpio-cells": true - gpio-ranges: true - wakeup-parent: true - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-sm4450-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-sm4450-tlmm-state" - additionalProperties: false - -$defs: - qcom-sm4450-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-2][0-9]|13[0-5])$" - - enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ] - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - enum: [ gpio, atest_char, atest_usb0, audio_ref_clk, cam_mclk, - cci_async_in0, cci_i2c, cci, cmu_rng, coex_uart1_rx, - coex_uart1_tx, cri_trng, dbg_out_clk, ddr_bist, - ddr_pxi0_test, ddr_pxi1_test, gcc_gp1_clk, gcc_gp2_clk, - gcc_gp3_clk, host2wlan_sol, ibi_i3c_qup0, ibi_i3c_qup1, - jitter_bist_ref, mdp_vsync0_out, mdp_vsync1_out, - mdp_vsync2_out, mdp_vsync3_out, mdp_vsync, nav, - pcie0_clk_req, phase_flag, pll_bist_sync, pll_clk_aux, - prng_rosc, qdss_cti_trig0, qdss_cti_trig1, qdss_gpio, - qlink0_enable, qlink0_request, qlink0_wmss_reset, - qup0_se0, qup0_se1, qup0_se2, qup0_se3, qup0_se4, - qup1_se0, qup1_se1, qup1_se2, qup1_se2_l2, qup1_se3, - qup1_se4, sd_write_protect, tb_trig_sdc1, tb_trig_sdc2, - tgu_ch0_trigout, tgu_ch1_trigout, tgu_ch2_trigout, - tgu_ch3_trigout, tmess_prng, tsense_pwm1_out, - tsense_pwm2_out, uim0, uim1, usb0_hs_ac, usb0_phy_ps, - vfr_0_mira, vfr_0_mirb, vfr_1, vsense_trigger_mirnat, - wlan1_adc_dtest0, wlan1_adc_dtest1 ] - - required: - - pins - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - #include - tlmm: pinctrl@f100000 { - compatible = "qcom,sm4450-tlmm"; - reg = <0x0f100000 0x300000>; - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&tlmm 0 0 137>; - interrupt-controller; - #interrupt-cells = <2>; - interrupts = ; - - gpio-wo-state { - pins = "gpio1"; - function = "gpio"; - }; - - uart-w-state { - rx-pins { - pins = "gpio23"; - function = "qup1_se2"; - bias-pull-up; - }; - - tx-pins { - pins = "gpio22"; - function = "qup1_se2"; - bias-disable; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sm4450-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. SM4450 TLMM block + +maintainers: + - Tengfei Fan + +description: + Top Level Mode Multiplexer pin controller in Qualcomm SM4450 SoC. + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +properties: + compatible: + const: qcom,sm4450-tlmm + + reg: + maxItems: 1 + + interrupts: true + interrupt-controller: true + "#interrupt-cells": true + gpio-controller: true + + gpio-reserved-ranges: + minItems: 1 + maxItems: 68 + + gpio-line-names: + maxItems: 136 + + "#gpio-cells": true + gpio-ranges: true + wakeup-parent: true + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sm4450-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sm4450-tlmm-state" + additionalProperties: false + +$defs: + qcom-sm4450-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-2][0-9]|13[0-5])$" + - enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ] + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + enum: [ gpio, atest_char, atest_usb0, audio_ref_clk, cam_mclk, + cci_async_in0, cci_i2c, cci, cmu_rng, coex_uart1_rx, + coex_uart1_tx, cri_trng, dbg_out_clk, ddr_bist, + ddr_pxi0_test, ddr_pxi1_test, gcc_gp1_clk, gcc_gp2_clk, + gcc_gp3_clk, host2wlan_sol, ibi_i3c_qup0, ibi_i3c_qup1, + jitter_bist_ref, mdp_vsync0_out, mdp_vsync1_out, + mdp_vsync2_out, mdp_vsync3_out, mdp_vsync, nav, + pcie0_clk_req, phase_flag, pll_bist_sync, pll_clk_aux, + prng_rosc, qdss_cti_trig0, qdss_cti_trig1, qdss_gpio, + qlink0_enable, qlink0_request, qlink0_wmss_reset, + qup0_se0, qup0_se1, qup0_se2, qup0_se3, qup0_se4, + qup1_se0, qup1_se1, qup1_se2, qup1_se2_l2, qup1_se3, + qup1_se4, sd_write_protect, tb_trig_sdc1, tb_trig_sdc2, + tgu_ch0_trigout, tgu_ch1_trigout, tgu_ch2_trigout, + tgu_ch3_trigout, tmess_prng, tsense_pwm1_out, + tsense_pwm2_out, uim0, uim1, usb0_hs_ac, usb0_phy_ps, + vfr_0_mira, vfr_0_mirb, vfr_1, vsense_trigger_mirnat, + wlan1_adc_dtest0, wlan1_adc_dtest1 ] + + required: + - pins + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + tlmm: pinctrl@f100000 { + compatible = "qcom,sm4450-tlmm"; + reg = <0x0f100000 0x300000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&tlmm 0 0 137>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = ; + + gpio-wo-state { + pins = "gpio1"; + function = "gpio"; + }; + + uart-w-state { + rx-pins { + pins = "gpio23"; + function = "qup1_se2"; + bias-pull-up; + }; + + tx-pins { + pins = "gpio22"; + function = "qup1_se2"; + bias-disable; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-tlmm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-tlmm.yaml index 45aa83fb5..7f36f9b93 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-tlmm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-tlmm.yaml @@ -1,138 +1,138 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,sm6115-tlmm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Technologies, Inc. SM6115, SM4250 TLMM block - -maintainers: - - Iskren Chernev - -description: - Top Level Mode Multiplexer pin controller in Qualcomm SM4250 and SM6115 - SoCs. - -properties: - compatible: - const: qcom,sm6115-tlmm - - reg: - maxItems: 3 - - reg-names: - items: - - const: west - - const: south - - const: east - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: true - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-sm6115-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-sm6115-tlmm-state" - additionalProperties: false - -$defs: - qcom-sm6115-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-2])$" - - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data, - sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ] - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - - enum: [ adsp_ext, agera_pll, atest, cam_mclk, cci_async, cci_i2c, - cci_timer, cri_trng, dac_calib, dbg_out, ddr_bist, ddr_pxi0, - ddr_pxi1, ddr_pxi2, ddr_pxi3, gcc_gp1, gcc_gp2, gcc_gp3, gpio, - gp_pdm0, gp_pdm1, gp_pdm2, gsm0_tx, gsm1_tx, jitter_bist, - mdp_vsync, mdp_vsync_out_0, mdp_vsync_out_1, mpm_pwr, mss_lte, - m_voc, nav_gpio, pa_indicator, pbs, pbs_out, phase_flag, - pll_bist, pll_bypassnl, pll_reset, prng_rosc, qdss_cti, - qdss_gpio, qup0, qup1, qup2, qup3, qup4, qup5, sdc1_tb, - sdc2_tb, sd_write, ssbi_wtr1, tgu, tsense_pwm, uim1_clk, - uim1_data, uim1_present, uim1_reset, uim2_clk, uim2_data, - uim2_present, uim2_reset, usb_phy, vfr_1, vsense_trigger, - wlan1_adc0, elan1_adc1 ] - - required: - - pins - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -required: - - compatible - - reg - - reg-names - -unevaluatedProperties: false - -examples: - - | - #include - tlmm: pinctrl@500000 { - compatible = "qcom,sm6115-tlmm"; - reg = <0x500000 0x400000>, - <0x900000 0x400000>, - <0xd00000 0x400000>; - reg-names = "west", "south", "east"; - interrupts = ; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - gpio-ranges = <&tlmm 0 0 114>; - - sdc2_on_state: sdc2-on-state { - clk-pins { - pins = "sdc2_clk"; - bias-disable; - drive-strength = <16>; - }; - - cmd-pins { - pins = "sdc2_cmd"; - bias-pull-up; - drive-strength = <10>; - }; - - data-pins { - pins = "sdc2_data"; - bias-pull-up; - drive-strength = <10>; - }; - - sd-cd-pins { - pins = "gpio88"; - function = "gpio"; - bias-pull-up; - drive-strength = <2>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sm6115-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. SM6115, SM4250 TLMM block + +maintainers: + - Iskren Chernev + +description: + Top Level Mode Multiplexer pin controller in Qualcomm SM4250 and SM6115 + SoCs. + +properties: + compatible: + const: qcom,sm6115-tlmm + + reg: + maxItems: 3 + + reg-names: + items: + - const: west + - const: south + - const: east + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: true + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sm6115-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sm6115-tlmm-state" + additionalProperties: false + +$defs: + qcom-sm6115-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-2])$" + - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data, + sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ] + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ adsp_ext, agera_pll, atest, cam_mclk, cci_async, cci_i2c, + cci_timer, cri_trng, dac_calib, dbg_out, ddr_bist, ddr_pxi0, + ddr_pxi1, ddr_pxi2, ddr_pxi3, gcc_gp1, gcc_gp2, gcc_gp3, gpio, + gp_pdm0, gp_pdm1, gp_pdm2, gsm0_tx, gsm1_tx, jitter_bist, + mdp_vsync, mdp_vsync_out_0, mdp_vsync_out_1, mpm_pwr, mss_lte, + m_voc, nav_gpio, pa_indicator, pbs, pbs_out, phase_flag, + pll_bist, pll_bypassnl, pll_reset, prng_rosc, qdss_cti, + qdss_gpio, qup0, qup1, qup2, qup3, qup4, qup5, sdc1_tb, + sdc2_tb, sd_write, ssbi_wtr1, tgu, tsense_pwm, uim1_clk, + uim1_data, uim1_present, uim1_reset, uim2_clk, uim2_data, + uim2_present, uim2_reset, usb_phy, vfr_1, vsense_trigger, + wlan1_adc0, elan1_adc1 ] + + required: + - pins + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +required: + - compatible + - reg + - reg-names + +unevaluatedProperties: false + +examples: + - | + #include + tlmm: pinctrl@500000 { + compatible = "qcom,sm6115-tlmm"; + reg = <0x500000 0x400000>, + <0x900000 0x400000>, + <0xd00000 0x400000>; + reg-names = "west", "south", "east"; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-ranges = <&tlmm 0 0 114>; + + sdc2_on_state: sdc2-on-state { + clk-pins { + pins = "sdc2_clk"; + bias-disable; + drive-strength = <16>; + }; + + cmd-pins { + pins = "sdc2_cmd"; + bias-pull-up; + drive-strength = <10>; + }; + + data-pins { + pins = "sdc2_data"; + bias-pull-up; + drive-strength = <10>; + }; + + sd-cd-pins { + pins = "gpio88"; + function = "gpio"; + bias-pull-up; + drive-strength = <2>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm6125-tlmm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm6125-tlmm.yaml index 4ba91ae70..ddeaeaa9a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm6125-tlmm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm6125-tlmm.yaml @@ -1,137 +1,137 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,sm6125-tlmm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# -title: Qualcomm Technologies, Inc. SM6125 TLMM block - -maintainers: - - Martin Botka - -description: - Top Level Mode Multiplexer pin controller in Qualcomm SM6125 SoC. - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -properties: - compatible: - const: qcom,sm6125-tlmm - - reg: - maxItems: 3 - - reg-names: - items: - - const: west - - const: south - - const: east - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: true - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-sm6125-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-sm6125-tlmm-state" - additionalProperties: false - -$defs: - qcom-sm6125-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio[0-9]|[1-9][0-9]|1[0-2][0-9]|13[0-2]$" - - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ] - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - - enum: [ adsp_ext, agera_pll, atest_char, atest_char0, atest_char1, - atest_char2, atest_char3, atest_tsens, atest_tsens2, atest_usb1, - atest_usb10, atest_usb11, atest_usb12, atest_usb13, atest_usb2, - atest_usb20, atest_usb21, atest_usb22, atest_usb23, aud_sb, - audio_ref, cam_mclk, cci_async, cci_i2c, cci_timer0, cci_timer1, - cci_timer2, cci_timer3, cci_timer4, copy_gp, copy_phase, cri_trng, - cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, - ddr_pxi2, ddr_pxi3, debug_hot, dmic0_clk, dmic0_data, dmic1_clk, - dmic1_data, dp_hot, edp_hot, edp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, - gp_pdm0, gp_pdm1, gp_pdm2, gpio, gps_tx, jitter_bist, ldo_en, - ldo_update, m_voc, mclk1, mclk2, mdp_vsync, mdp_vsync0, mdp_vsync1, - mdp_vsync2, mdp_vsync3, mdp_vsync4, mdp_vsync5, mpm_pwr, mss_lte, - nav_pps, pa_indicator, phase_flag, pll_bist, pll_bypassnl, pll_reset, - pri_mi2s, pri_mi2s_ws, prng_rosc, qca_sb, qdss_cti, qdss, qlink_enable, - qlink_request, qua_mi2s, qui_mi2s, qup00, qup01, qup02, qup03, qup04, - qup10, qup11, qup12, qup13, qup14, sd_write, sec_mi2s, sp_cmu, swr_rx, - swr_tx, ter_mi2s, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm, - uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk, uim2_data, - uim2_present, uim2_reset, unused1, unused2, usb_phy, vfr_1, vsense_trigger, - wlan1_adc0, wlan1_adc1, wlan2_adc0, wlan2_adc1, wsa_clk, wsa_data ] - - - required: - - pins - -required: - - compatible - - reg - - reg-names - -unevaluatedProperties: false - -examples: - - | - #include - pinctrl@500000 { - compatible = "qcom,sm6125-tlmm"; - reg = <0x00500000 0x400000>, - <0x00900000 0x400000>, - <0x00d00000 0x400000>; - reg-names = "west", "south", "east"; - interrupts = ; - gpio-controller; - gpio-ranges = <&tlmm 0 0 134>; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - - sdc2-off-state { - clk-pins { - pins = "sdc2_clk"; - drive-strength = <2>; - bias-disable; - }; - - cmd-pins { - pins = "sdc2_cmd"; - drive-strength = <2>; - bias-pull-up; - }; - - data-pins { - pins = "sdc2_data"; - drive-strength = <2>; - bias-pull-up; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sm6125-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# +title: Qualcomm Technologies, Inc. SM6125 TLMM block + +maintainers: + - Martin Botka + +description: + Top Level Mode Multiplexer pin controller in Qualcomm SM6125 SoC. + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +properties: + compatible: + const: qcom,sm6125-tlmm + + reg: + maxItems: 3 + + reg-names: + items: + - const: west + - const: south + - const: east + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: true + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sm6125-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sm6125-tlmm-state" + additionalProperties: false + +$defs: + qcom-sm6125-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio[0-9]|[1-9][0-9]|1[0-2][0-9]|13[0-2]$" + - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ] + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ adsp_ext, agera_pll, atest_char, atest_char0, atest_char1, + atest_char2, atest_char3, atest_tsens, atest_tsens2, atest_usb1, + atest_usb10, atest_usb11, atest_usb12, atest_usb13, atest_usb2, + atest_usb20, atest_usb21, atest_usb22, atest_usb23, aud_sb, + audio_ref, cam_mclk, cci_async, cci_i2c, cci_timer0, cci_timer1, + cci_timer2, cci_timer3, cci_timer4, copy_gp, copy_phase, cri_trng, + cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, + ddr_pxi2, ddr_pxi3, debug_hot, dmic0_clk, dmic0_data, dmic1_clk, + dmic1_data, dp_hot, edp_hot, edp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, + gp_pdm0, gp_pdm1, gp_pdm2, gpio, gps_tx, jitter_bist, ldo_en, + ldo_update, m_voc, mclk1, mclk2, mdp_vsync, mdp_vsync0, mdp_vsync1, + mdp_vsync2, mdp_vsync3, mdp_vsync4, mdp_vsync5, mpm_pwr, mss_lte, + nav_pps, pa_indicator, phase_flag, pll_bist, pll_bypassnl, pll_reset, + pri_mi2s, pri_mi2s_ws, prng_rosc, qca_sb, qdss_cti, qdss, qlink_enable, + qlink_request, qua_mi2s, qui_mi2s, qup00, qup01, qup02, qup03, qup04, + qup10, qup11, qup12, qup13, qup14, sd_write, sec_mi2s, sp_cmu, swr_rx, + swr_tx, ter_mi2s, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm, + uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk, uim2_data, + uim2_present, uim2_reset, unused1, unused2, usb_phy, vfr_1, vsense_trigger, + wlan1_adc0, wlan1_adc1, wlan2_adc0, wlan2_adc1, wsa_clk, wsa_data ] + + + required: + - pins + +required: + - compatible + - reg + - reg-names + +unevaluatedProperties: false + +examples: + - | + #include + pinctrl@500000 { + compatible = "qcom,sm6125-tlmm"; + reg = <0x00500000 0x400000>, + <0x00900000 0x400000>, + <0x00d00000 0x400000>; + reg-names = "west", "south", "east"; + interrupts = ; + gpio-controller; + gpio-ranges = <&tlmm 0 0 134>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + + sdc2-off-state { + clk-pins { + pins = "sdc2_clk"; + drive-strength = <2>; + bias-disable; + }; + + cmd-pins { + pins = "sdc2_cmd"; + drive-strength = <2>; + bias-pull-up; + }; + + data-pins { + pins = "sdc2_data"; + drive-strength = <2>; + bias-pull-up; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm7150-tlmm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm7150-tlmm.yaml index 745188997..7f23f939a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm7150-tlmm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm7150-tlmm.yaml @@ -1,146 +1,146 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,sm7150-tlmm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SM7150 TLMM pin controller - -maintainers: - - Bjorn Andersson - - Danila Tikhonov - -description: - Top Level Mode Multiplexer pin controller in Qualcomm SM7150 SoC. - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -properties: - compatible: - const: qcom,sm7150-tlmm - - reg: - maxItems: 3 - - reg-names: - items: - - const: west - - const: north - - const: south - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: - minItems: 1 - maxItems: 60 - - gpio-line-names: - maxItems: 119 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-sm7150-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-sm7150-tlmm-state" - additionalProperties: false - -$defs: - qcom-sm7150-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-8])$" - - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, - sdc2_cmd, sdc2_data, ufs_reset ] - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - - enum: [ gpio, adsp_ext, agera_pll, aoss_cti, atest_char, atest_tsens, - atest_tsens2, atest_usb1, atest_usb2, cam_mclk, cci_async, - cci_i2c, cci_timer0, cci_timer1, cci_timer2, cci_timer3, - cci_timer4, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, ddr_pxi2, - ddr_pxi3, edp_hot, edp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, gp_pdm0, - gp_pdm1, gp_pdm2, gps_tx, jitter_bist, ldo_en, ldo_update, - m_voc, mdp_vsync, mdp_vsync0, mdp_vsync1, mdp_vsync2, - mdp_vsync3, mss_lte, nav_pps_in, nav_pps_out, pa_indicator, - pci_e, phase_flag, pll_bist, pll_bypassnl, pll_reset, pri_mi2s, - pri_mi2s_ws, prng_rosc, qdss, qdss_cti, qlink_enable, - qlink_request, qua_mi2s, qup00, qup01, qup02, qup03, qup04, - qup10, qup11, qup12, qup13, qup14, qup15, sd_write, sdc40, - sdc41, sdc42, sdc43, sdc4_clk, sdc4_cmd, sec_mi2s, ter_mi2s, - tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsif1_clk, tsif1_data, - tsif1_en, tsif1_error, tsif1_sync, tsif2_clk, tsif2_data, - tsif2_en, tsif2_error, tsif2_sync, uim1_clk, uim1_data, - uim1_present, uim1_reset, uim2_clk, uim2_data, uim2_present, - uim2_reset, uim_batt, usb_phy, vfr_1, vsense_trigger, - wlan1_adc0, wlan1_adc1, wlan2_adc0, wlan2_adc1, wsa_clk, - wsa_data ] - - required: - - pins - -required: - - compatible - - reg - - reg-names - -unevaluatedProperties: false - -examples: - - | - #include - - tlmm: pinctrl@3500000 { - compatible = "qcom,sm7150-tlmm"; - reg = <0x03500000 0x300000>, - <0x03900000 0x300000>, - <0x03d00000 0x300000>; - reg-names = "west", "north", "south"; - interrupts = ; - gpio-ranges = <&tlmm 0 0 120>; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - wakeup-parent = <&pdc>; - - gpio-wo-state { - pins = "gpio1"; - function = "gpio"; - }; - - uart-w-state { - rx-pins { - pins = "gpio44"; - function = "qup12"; - bias-pull-up; - }; - - tx-pins { - pins = "gpio45"; - function = "qup12"; - bias-disable; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sm7150-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM7150 TLMM pin controller + +maintainers: + - Bjorn Andersson + - Danila Tikhonov + +description: + Top Level Mode Multiplexer pin controller in Qualcomm SM7150 SoC. + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +properties: + compatible: + const: qcom,sm7150-tlmm + + reg: + maxItems: 3 + + reg-names: + items: + - const: west + - const: north + - const: south + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 60 + + gpio-line-names: + maxItems: 119 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sm7150-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sm7150-tlmm-state" + additionalProperties: false + +$defs: + qcom-sm7150-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-8])$" + - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, + sdc2_cmd, sdc2_data, ufs_reset ] + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ gpio, adsp_ext, agera_pll, aoss_cti, atest_char, atest_tsens, + atest_tsens2, atest_usb1, atest_usb2, cam_mclk, cci_async, + cci_i2c, cci_timer0, cci_timer1, cci_timer2, cci_timer3, + cci_timer4, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, ddr_pxi2, + ddr_pxi3, edp_hot, edp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, gp_pdm0, + gp_pdm1, gp_pdm2, gps_tx, jitter_bist, ldo_en, ldo_update, + m_voc, mdp_vsync, mdp_vsync0, mdp_vsync1, mdp_vsync2, + mdp_vsync3, mss_lte, nav_pps_in, nav_pps_out, pa_indicator, + pci_e, phase_flag, pll_bist, pll_bypassnl, pll_reset, pri_mi2s, + pri_mi2s_ws, prng_rosc, qdss, qdss_cti, qlink_enable, + qlink_request, qua_mi2s, qup00, qup01, qup02, qup03, qup04, + qup10, qup11, qup12, qup13, qup14, qup15, sd_write, sdc40, + sdc41, sdc42, sdc43, sdc4_clk, sdc4_cmd, sec_mi2s, ter_mi2s, + tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsif1_clk, tsif1_data, + tsif1_en, tsif1_error, tsif1_sync, tsif2_clk, tsif2_data, + tsif2_en, tsif2_error, tsif2_sync, uim1_clk, uim1_data, + uim1_present, uim1_reset, uim2_clk, uim2_data, uim2_present, + uim2_reset, uim_batt, usb_phy, vfr_1, vsense_trigger, + wlan1_adc0, wlan1_adc1, wlan2_adc0, wlan2_adc1, wsa_clk, + wsa_data ] + + required: + - pins + +required: + - compatible + - reg + - reg-names + +unevaluatedProperties: false + +examples: + - | + #include + + tlmm: pinctrl@3500000 { + compatible = "qcom,sm7150-tlmm"; + reg = <0x03500000 0x300000>, + <0x03900000 0x300000>, + <0x03d00000 0x300000>; + reg-names = "west", "north", "south"; + interrupts = ; + gpio-ranges = <&tlmm 0 0 120>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + wakeup-parent = <&pdc>; + + gpio-wo-state { + pins = "gpio1"; + function = "gpio"; + }; + + uart-w-state { + rx-pins { + pins = "gpio44"; + function = "qup12"; + bias-pull-up; + }; + + tx-pins { + pins = "gpio45"; + function = "qup12"; + bias-disable; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml index 8db8c38d6..b5d04347c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml @@ -1,120 +1,120 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,sm8250-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Technologies, Inc. SM8250 TLMM block - -maintainers: - - Bjorn Andersson - -description: - Top Level Mode Multiplexer pin controller in the Qualcomm SM8250 SoC. - -properties: - compatible: - const: qcom,sm8250-pinctrl - - reg: - maxItems: 3 - - reg-names: - items: - - const: west - - const: south - - const: north - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: - minItems: 1 - maxItems: 90 - - gpio-line-names: - maxItems: 180 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-sm8250-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-sm8250-tlmm-state" - additionalProperties: false - -$defs: - qcom-sm8250-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-7][0-9])$" - - enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ] - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - - enum: [ aoss_cti, atest, audio_ref, cam_mclk, cci_async, cci_i2c, - cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4, cri_trng, - cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, - ddr_pxi2, ddr_pxi3, dp_hot, dp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, gpio, - ibi_i3c, jitter_bist, lpass_slimbus, mdp_vsync, mdp_vsync0, - mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1, - mi2s0_sck, mi2s0_ws, mi2s1_data0, mi2s1_data1, mi2s1_sck, mi2s1_ws, - mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws, pci_e0, pci_e1, - pci_e2, phase_flag, pll_bist, pll_bypassnl, pll_clk, pll_reset, - pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, qspi0, qspi1, qspi2, qspi3, - qspi_clk, qspi_cs, qup0, qup1, qup10, qup11, qup12, qup13, qup14, - qup15, qup16, qup17, qup18, qup19, qup2, qup3, qup4, qup5, qup6, - qup7, qup8, qup9, qup_l4, qup_l5, qup_l6, sd_write, sdc40, sdc41, - sdc42, sdc43, sdc4_clk, sdc4_cmd, sec_mi2s, sp_cmu, tgu_ch0, tgu_ch1, - tgu_ch2, tgu_ch3, tsense_pwm1, tsense_pwm2, tsif0_clk, tsif0_data, - tsif0_en, tsif0_error, tsif0_sync, tsif1_clk, tsif1_data, tsif1_en, - tsif1_error, tsif1_sync, usb2phy_ac, usb_phy, vsense_trigger ] - - required: - - pins - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -required: - - compatible - - reg - - reg-names - -unevaluatedProperties: false - -examples: - - | - #include - pinctrl@1f00000 { - compatible = "qcom,sm8250-pinctrl"; - reg = <0x0f100000 0x300000>, - <0x0f500000 0x300000>, - <0x0f900000 0x300000>; - reg-names = "west", "south", "north"; - interrupts = ; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - gpio-ranges = <&tlmm 0 0 181>; /* GPIOs + ufs_reset */ - wakeup-parent = <&pdc>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sm8250-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. SM8250 TLMM block + +maintainers: + - Bjorn Andersson + +description: + Top Level Mode Multiplexer pin controller in the Qualcomm SM8250 SoC. + +properties: + compatible: + const: qcom,sm8250-pinctrl + + reg: + maxItems: 3 + + reg-names: + items: + - const: west + - const: south + - const: north + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 90 + + gpio-line-names: + maxItems: 180 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sm8250-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sm8250-tlmm-state" + additionalProperties: false + +$defs: + qcom-sm8250-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-7][0-9])$" + - enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ] + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ aoss_cti, atest, audio_ref, cam_mclk, cci_async, cci_i2c, + cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4, cri_trng, + cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, + ddr_pxi2, ddr_pxi3, dp_hot, dp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, gpio, + ibi_i3c, jitter_bist, lpass_slimbus, mdp_vsync, mdp_vsync0, + mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1, + mi2s0_sck, mi2s0_ws, mi2s1_data0, mi2s1_data1, mi2s1_sck, mi2s1_ws, + mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws, pci_e0, pci_e1, + pci_e2, phase_flag, pll_bist, pll_bypassnl, pll_clk, pll_reset, + pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, qspi0, qspi1, qspi2, qspi3, + qspi_clk, qspi_cs, qup0, qup1, qup10, qup11, qup12, qup13, qup14, + qup15, qup16, qup17, qup18, qup19, qup2, qup3, qup4, qup5, qup6, + qup7, qup8, qup9, qup_l4, qup_l5, qup_l6, sd_write, sdc40, sdc41, + sdc42, sdc43, sdc4_clk, sdc4_cmd, sec_mi2s, sp_cmu, tgu_ch0, tgu_ch1, + tgu_ch2, tgu_ch3, tsense_pwm1, tsense_pwm2, tsif0_clk, tsif0_data, + tsif0_en, tsif0_error, tsif0_sync, tsif1_clk, tsif1_data, tsif1_en, + tsif1_error, tsif1_sync, usb2phy_ac, usb_phy, vsense_trigger ] + + required: + - pins + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +required: + - compatible + - reg + - reg-names + +unevaluatedProperties: false + +examples: + - | + #include + pinctrl@1f00000 { + compatible = "qcom,sm8250-pinctrl"; + reg = <0x0f100000 0x300000>, + <0x0f500000 0x300000>, + <0x0f900000 0x300000>; + reg-names = "west", "south", "north"; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-ranges = <&tlmm 0 0 181>; /* GPIOs + ufs_reset */ + wakeup-parent = <&pdc>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-tlmm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-tlmm.yaml index d493a76c7..ec5e09611 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-tlmm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-tlmm.yaml @@ -1,135 +1,135 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,sm8350-tlmm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Technologies, Inc. SM8350 TLMM block - -maintainers: - - Vinod Koul - -description: - Top Level Mode Multiplexer pin controller in Qualcomm SM8350 SoC. - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -properties: - compatible: - const: qcom,sm8350-tlmm - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: - minItems: 1 - maxItems: 102 - - gpio-line-names: - maxItems: 203 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-sm8350-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-sm8350-tlmm-state" - additionalProperties: false - -$defs: - qcom-sm8350-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|20[0-2])$" - - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ] - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - - enum: [ atest_char, atest_usb, audio_ref, cam_mclk, cci_async, - cci_i2c, cci_timer, cmu_rng, coex_uart1, coex_uart2, cri_trng, - cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, - ddr_pxi2, ddr_pxi3, dp_hot, dp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, - gpio, ibi_i3c, jitter_bist, lpass_slimbus, mdp_vsync, mdp_vsync0, - mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1, - mi2s0_sck, mi2s0_ws, mi2s1_data0, mi2s1_data1, mi2s1_sck, - mi2s1_ws, mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws, - mss_grfc0, mss_grfc1, mss_grfc10, mss_grfc11, mss_grfc12, - mss_grfc2, mss_grfc3, mss_grfc4, mss_grfc5, mss_grfc6, - mss_grfc7, mss_grfc8, mss_grfc9, nav_gpio, pa_indicator, - pcie0_clkreqn, pcie1_clkreqn, phase_flag, pll_bist, pll_clk, - pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, qlink0_enable, - qlink0_request, qlink0_wmss, qlink1_enable, qlink1_request, - qlink1_wmss, qlink2_enable, qlink2_request, qlink2_wmss, qspi0, - qspi1, qspi2, qspi3, qspi_clk, qspi_cs, qup0, qup1, qup10, - qup11, qup12, qup13, qup14, qup15, qup16, qup17, qup18, qup19, - qup2, qup3, qup4, qup5, qup6, qup7, qup8, qup9, qup_l4, qup_l5, - qup_l6, sd_write, sdc40, sdc41, sdc42, sdc43, sdc4_clk, - sdc4_cmd, sec_mi2s, tb_trig, tgu_ch0, tgu_ch1, tgu_ch2, - tgu_ch3, tsense_pwm1, tsense_pwm2, uim0_clk, uim0_data, - uim0_present, uim0_reset, uim1_clk, uim1_data, uim1_present, - uim1_reset, usb2phy_ac, usb_phy, vfr_0, vfr_1, vsense_trigger ] - - required: - - pins - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - pinctrl@f100000 { - compatible = "qcom,sm8350-tlmm"; - reg = <0x0f100000 0x300000>; - interrupts = ; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - gpio-ranges = <&tlmm 0 0 204>; /* GPIOs + ufs_reset */ - - gpio-wo-subnode-state { - pins = "gpio1"; - function = "gpio"; - }; - - uart-w-subnodes-state { - rx-pins { - pins = "gpio18"; - function = "qup3"; - bias-pull-up; - }; - - tx-pins { - pins = "gpio19"; - function = "qup3"; - bias-disable; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sm8350-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. SM8350 TLMM block + +maintainers: + - Vinod Koul + +description: + Top Level Mode Multiplexer pin controller in Qualcomm SM8350 SoC. + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +properties: + compatible: + const: qcom,sm8350-tlmm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 102 + + gpio-line-names: + maxItems: 203 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sm8350-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sm8350-tlmm-state" + additionalProperties: false + +$defs: + qcom-sm8350-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|20[0-2])$" + - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ] + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ atest_char, atest_usb, audio_ref, cam_mclk, cci_async, + cci_i2c, cci_timer, cmu_rng, coex_uart1, coex_uart2, cri_trng, + cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, + ddr_pxi2, ddr_pxi3, dp_hot, dp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, + gpio, ibi_i3c, jitter_bist, lpass_slimbus, mdp_vsync, mdp_vsync0, + mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1, + mi2s0_sck, mi2s0_ws, mi2s1_data0, mi2s1_data1, mi2s1_sck, + mi2s1_ws, mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws, + mss_grfc0, mss_grfc1, mss_grfc10, mss_grfc11, mss_grfc12, + mss_grfc2, mss_grfc3, mss_grfc4, mss_grfc5, mss_grfc6, + mss_grfc7, mss_grfc8, mss_grfc9, nav_gpio, pa_indicator, + pcie0_clkreqn, pcie1_clkreqn, phase_flag, pll_bist, pll_clk, + pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, qlink0_enable, + qlink0_request, qlink0_wmss, qlink1_enable, qlink1_request, + qlink1_wmss, qlink2_enable, qlink2_request, qlink2_wmss, qspi0, + qspi1, qspi2, qspi3, qspi_clk, qspi_cs, qup0, qup1, qup10, + qup11, qup12, qup13, qup14, qup15, qup16, qup17, qup18, qup19, + qup2, qup3, qup4, qup5, qup6, qup7, qup8, qup9, qup_l4, qup_l5, + qup_l6, sd_write, sdc40, sdc41, sdc42, sdc43, sdc4_clk, + sdc4_cmd, sec_mi2s, tb_trig, tgu_ch0, tgu_ch1, tgu_ch2, + tgu_ch3, tsense_pwm1, tsense_pwm2, uim0_clk, uim0_data, + uim0_present, uim0_reset, uim1_clk, uim1_data, uim1_present, + uim1_reset, usb2phy_ac, usb_phy, vfr_0, vfr_1, vsense_trigger ] + + required: + - pins + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + pinctrl@f100000 { + compatible = "qcom,sm8350-tlmm"; + reg = <0x0f100000 0x300000>; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-ranges = <&tlmm 0 0 204>; /* GPIOs + ufs_reset */ + + gpio-wo-subnode-state { + pins = "gpio1"; + function = "gpio"; + }; + + uart-w-subnodes-state { + rx-pins { + pins = "gpio18"; + function = "qup3"; + bias-pull-up; + }; + + tx-pins { + pins = "gpio19"; + function = "qup3"; + bias-disable; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8450-lpass-lpi-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8450-lpass-lpi-pinctrl.yaml index bfbdfe495..e7565592d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8450-lpass-lpi-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8450-lpass-lpi-pinctrl.yaml @@ -1,123 +1,123 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,sm8450-lpass-lpi-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SM8450 SoC LPASS LPI TLMM - -maintainers: - - Srinivas Kandagatla - -description: - Top Level Mode Multiplexer pin controller in the Low Power Audio SubSystem - (LPASS) Low Power Island (LPI) of Qualcomm SM8450 SoC. - -properties: - compatible: - const: qcom,sm8450-lpass-lpi-pinctrl - - reg: - items: - - description: LPASS LPI TLMM Control and Status registers - - description: LPASS LPI MCC registers - - clocks: - items: - - description: LPASS Core voting clock - - description: LPASS Audio voting clock - - clock-names: - items: - - const: core - - const: audio - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-sm8450-lpass-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-sm8450-lpass-state" - additionalProperties: false - -$defs: - qcom-sm8450-lpass-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,lpass-lpi-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - pattern: "^gpio([0-9]|1[0-9]|2[0-2])$" - - function: - enum: [ swr_tx_clk, swr_tx_data, swr_rx_clk, swr_rx_data, - dmic1_clk, dmic1_data, dmic2_clk, dmic2_data, dmic4_clk, - dmic4_data, i2s2_clk, i2s2_ws, dmic3_clk, dmic3_data, - qua_mi2s_sclk, qua_mi2s_ws, qua_mi2s_data, i2s1_clk, i2s1_ws, - i2s1_data, wsa_swr_clk, wsa_swr_data, wsa2_swr_clk, - wsa2_swr_data, i2s2_data, i2s4_ws, i2s4_clk, i2s4_data, - slimbus_clk, i2s3_clk, i2s3_ws, i2s3_data, slimbus_data, - ext_mclk1_c, ext_mclk1_b, ext_mclk1_a, ext_mclk1_d, - ext_mclk1_e ] - description: - Specify the alternative function to be configured for the specified - pins. - -allOf: - - $ref: qcom,lpass-lpi-common.yaml# - -required: - - compatible - - reg - - clocks - - clock-names - -unevaluatedProperties: false - -examples: - - | - #include - pinctrl@3440000 { - compatible = "qcom,sm8450-lpass-lpi-pinctrl"; - reg = <0x3440000 0x20000>, - <0x34d0000 0x10000>; - clocks = <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; - clock-names = "core", "audio"; - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&lpi_tlmm 0 0 23>; - - wsa-swr-active-state { - clk-pins { - pins = "gpio10"; - function = "wsa_swr_clk"; - drive-strength = <2>; - slew-rate = <1>; - bias-disable; - }; - - data-pins { - pins = "gpio11"; - function = "wsa_swr_data"; - drive-strength = <2>; - slew-rate = <1>; - }; - }; - - tx-swr-sleep-clk-state { - pins = "gpio0"; - function = "swr_tx_clk"; - drive-strength = <2>; - bias-pull-down; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sm8450-lpass-lpi-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM8450 SoC LPASS LPI TLMM + +maintainers: + - Srinivas Kandagatla + +description: + Top Level Mode Multiplexer pin controller in the Low Power Audio SubSystem + (LPASS) Low Power Island (LPI) of Qualcomm SM8450 SoC. + +properties: + compatible: + const: qcom,sm8450-lpass-lpi-pinctrl + + reg: + items: + - description: LPASS LPI TLMM Control and Status registers + - description: LPASS LPI MCC registers + + clocks: + items: + - description: LPASS Core voting clock + - description: LPASS Audio voting clock + + clock-names: + items: + - const: core + - const: audio + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sm8450-lpass-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sm8450-lpass-state" + additionalProperties: false + +$defs: + qcom-sm8450-lpass-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,lpass-lpi-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + pattern: "^gpio([0-9]|1[0-9]|2[0-2])$" + + function: + enum: [ swr_tx_clk, swr_tx_data, swr_rx_clk, swr_rx_data, + dmic1_clk, dmic1_data, dmic2_clk, dmic2_data, dmic4_clk, + dmic4_data, i2s2_clk, i2s2_ws, dmic3_clk, dmic3_data, + qua_mi2s_sclk, qua_mi2s_ws, qua_mi2s_data, i2s1_clk, i2s1_ws, + i2s1_data, wsa_swr_clk, wsa_swr_data, wsa2_swr_clk, + wsa2_swr_data, i2s2_data, i2s4_ws, i2s4_clk, i2s4_data, + slimbus_clk, i2s3_clk, i2s3_ws, i2s3_data, slimbus_data, + ext_mclk1_c, ext_mclk1_b, ext_mclk1_a, ext_mclk1_d, + ext_mclk1_e ] + description: + Specify the alternative function to be configured for the specified + pins. + +allOf: + - $ref: qcom,lpass-lpi-common.yaml# + +required: + - compatible + - reg + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + pinctrl@3440000 { + compatible = "qcom,sm8450-lpass-lpi-pinctrl"; + reg = <0x3440000 0x20000>, + <0x34d0000 0x10000>; + clocks = <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "core", "audio"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&lpi_tlmm 0 0 23>; + + wsa-swr-active-state { + clk-pins { + pins = "gpio10"; + function = "wsa_swr_clk"; + drive-strength = <2>; + slew-rate = <1>; + bias-disable; + }; + + data-pins { + pins = "gpio11"; + function = "wsa_swr_data"; + drive-strength = <2>; + slew-rate = <1>; + }; + }; + + tx-swr-sleep-clk-state { + pins = "gpio0"; + function = "swr_tx_clk"; + drive-strength = <2>; + bias-pull-down; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8450-tlmm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8450-tlmm.yaml index 552a506e1..16fd2c5e2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8450-tlmm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8450-tlmm.yaml @@ -1,134 +1,134 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,sm8450-tlmm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Technologies, Inc. SM8450 TLMM block - -maintainers: - - Vinod Koul - -description: - Top Level Mode Multiplexer pin controller in Qualcomm SM8450 SoC. - -allOf: - - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# - -properties: - compatible: - const: qcom,sm8450-tlmm - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - gpio-reserved-ranges: - minItems: 1 - maxItems: 105 - - gpio-line-names: - maxItems: 210 - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-sm8450-tlmm-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-sm8450-tlmm-state" - additionalProperties: false - -$defs: - qcom-sm8450-tlmm-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - oneOf: - - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|20[0-9])$" - - enum: [ ufs_reset, sdc2_clk, sdc2_cmd, sdc2_data ] - minItems: 1 - maxItems: 36 - - function: - description: - Specify the alternative function to be configured for the specified - pins. - enum: [ aon_cam, atest_char, atest_usb, audio_ref, cam_mclk, cci_async, - cci_i2c, cci_timer, cmu_rng, coex_uart1, coex_uart2, cri_trng, - cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, - ddr_pxi2, ddr_pxi3, dp_hot, gcc_gp1, gcc_gp2, gcc_gp3, - gpio, ibi_i3c, jitter_bist, mdp_vsync, mdp_vsync0, mdp_vsync1, - mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1, mi2s0_sck, - mi2s0_ws, mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws, - mss_grfc0, mss_grfc1, mss_grfc10, mss_grfc11, mss_grfc12, - mss_grfc2, mss_grfc3, mss_grfc4, mss_grfc5, mss_grfc6, - mss_grfc7, mss_grfc8, mss_grfc9, nav, pcie0_clkreqn, - pcie1_clkreqn, phase_flag, pll_bist, pll_clk, pri_mi2s, - prng_rosc, qdss_cti, qdss_gpio, qlink0_enable, qlink0_request, - qlink0_wmss, qlink1_enable, qlink1_request, qlink1_wmss, - qlink2_enable, qlink2_request, qlink2_wmss, qspi0, qspi1, - qspi2, qspi3, qspi_clk, qspi_cs, qup0, qup1, qup10, qup11, - qup12, qup13, qup14, qup15, qup16, qup17, qup18, qup19, qup2, - qup20, qup21, qup3, qup4, qup5, qup6, qup7, qup8, qup9, qup_l4, - qup_l5, qup_l6, sd_write, sdc40, sdc41, sdc42, sdc43, sdc4_clk, - sdc4_cmd, sec_mi2s, tb_trig, tgu_ch0, tgu_ch1, tgu_ch2, - tgu_ch3, tmess_prng0, tmess_prng1, tmess_prng2, tmess_prng3, - tsense_pwm1, tsense_pwm2, uim0_clk, uim0_data, uim0_present, - uim0_reset, uim1_clk, uim1_data, uim1_present, uim1_reset, - usb2phy_ac, usb_phy, vfr_0, vfr_1, vsense_trigger ] - - required: - - pins - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - pinctrl@f100000 { - compatible = "qcom,sm8450-tlmm"; - reg = <0x0f100000 0x300000>; - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&tlmm 0 0 211>; - interrupt-controller; - #interrupt-cells = <2>; - interrupts = ; - - gpio-wo-state { - pins = "gpio1"; - function = "gpio"; - }; - - uart-w-state { - rx-pins { - pins = "gpio26"; - function = "qup7"; - bias-pull-up; - }; - - tx-pins { - pins = "gpio27"; - function = "qup7"; - bias-disable; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sm8450-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. SM8450 TLMM block + +maintainers: + - Vinod Koul + +description: + Top Level Mode Multiplexer pin controller in Qualcomm SM8450 SoC. + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +properties: + compatible: + const: qcom,sm8450-tlmm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 105 + + gpio-line-names: + maxItems: 210 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sm8450-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sm8450-tlmm-state" + additionalProperties: false + +$defs: + qcom-sm8450-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|20[0-9])$" + - enum: [ ufs_reset, sdc2_clk, sdc2_cmd, sdc2_data ] + minItems: 1 + maxItems: 36 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + enum: [ aon_cam, atest_char, atest_usb, audio_ref, cam_mclk, cci_async, + cci_i2c, cci_timer, cmu_rng, coex_uart1, coex_uart2, cri_trng, + cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, + ddr_pxi2, ddr_pxi3, dp_hot, gcc_gp1, gcc_gp2, gcc_gp3, + gpio, ibi_i3c, jitter_bist, mdp_vsync, mdp_vsync0, mdp_vsync1, + mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1, mi2s0_sck, + mi2s0_ws, mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws, + mss_grfc0, mss_grfc1, mss_grfc10, mss_grfc11, mss_grfc12, + mss_grfc2, mss_grfc3, mss_grfc4, mss_grfc5, mss_grfc6, + mss_grfc7, mss_grfc8, mss_grfc9, nav, pcie0_clkreqn, + pcie1_clkreqn, phase_flag, pll_bist, pll_clk, pri_mi2s, + prng_rosc, qdss_cti, qdss_gpio, qlink0_enable, qlink0_request, + qlink0_wmss, qlink1_enable, qlink1_request, qlink1_wmss, + qlink2_enable, qlink2_request, qlink2_wmss, qspi0, qspi1, + qspi2, qspi3, qspi_clk, qspi_cs, qup0, qup1, qup10, qup11, + qup12, qup13, qup14, qup15, qup16, qup17, qup18, qup19, qup2, + qup20, qup21, qup3, qup4, qup5, qup6, qup7, qup8, qup9, qup_l4, + qup_l5, qup_l6, sd_write, sdc40, sdc41, sdc42, sdc43, sdc4_clk, + sdc4_cmd, sec_mi2s, tb_trig, tgu_ch0, tgu_ch1, tgu_ch2, + tgu_ch3, tmess_prng0, tmess_prng1, tmess_prng2, tmess_prng3, + tsense_pwm1, tsense_pwm2, uim0_clk, uim0_data, uim0_present, + uim0_reset, uim1_clk, uim1_data, uim1_present, uim1_reset, + usb2phy_ac, usb_phy, vfr_0, vfr_1, vsense_trigger ] + + required: + - pins + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + pinctrl@f100000 { + compatible = "qcom,sm8450-tlmm"; + reg = <0x0f100000 0x300000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&tlmm 0 0 211>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = ; + + gpio-wo-state { + pins = "gpio1"; + function = "gpio"; + }; + + uart-w-state { + rx-pins { + pins = "gpio26"; + function = "qup7"; + bias-pull-up; + }; + + tx-pins { + pins = "gpio27"; + function = "qup7"; + bias-disable; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8550-lpass-lpi-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8550-lpass-lpi-pinctrl.yaml index fbe29f756..bf4a72fac 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8550-lpass-lpi-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/qcom,sm8550-lpass-lpi-pinctrl.yaml @@ -1,113 +1,113 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/qcom,sm8550-lpass-lpi-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SM8550 SoC LPASS LPI TLMM - -maintainers: - - Krzysztof Kozlowski - - Srinivas Kandagatla - -description: - Top Level Mode Multiplexer pin controller in the Low Power Audio SubSystem - (LPASS) Low Power Island (LPI) of Qualcomm SM8550 SoC. - -properties: - compatible: - oneOf: - - const: qcom,sm8550-lpass-lpi-pinctrl - - items: - - const: qcom,x1e80100-lpass-lpi-pinctrl - - const: qcom,sm8550-lpass-lpi-pinctrl - - reg: - items: - - description: LPASS LPI TLMM Control and Status registers - - description: LPASS LPI MCC registers - - clocks: - items: - - description: LPASS Core voting clock - - description: LPASS Audio voting clock - - clock-names: - items: - - const: core - - const: audio - -patternProperties: - "-state$": - oneOf: - - $ref: "#/$defs/qcom-sm8550-lpass-state" - - patternProperties: - "-pins$": - $ref: "#/$defs/qcom-sm8550-lpass-state" - additionalProperties: false - -$defs: - qcom-sm8550-lpass-state: - type: object - description: - Pinctrl node's client devices use subnodes for desired pin configuration. - Client device subnodes use below standard properties. - $ref: qcom,lpass-lpi-common.yaml#/$defs/qcom-tlmm-state - unevaluatedProperties: false - - properties: - pins: - description: - List of gpio pins affected by the properties specified in this - subnode. - items: - pattern: "^gpio([0-9]|1[0-9]|2[0-2])$" - - function: - enum: [ dmic1_clk, dmic1_data, dmic2_clk, dmic2_data, dmic3_clk, - dmic3_data, dmic4_clk, dmic4_data, ext_mclk1_a, ext_mclk1_b, - ext_mclk1_c, ext_mclk1_d, ext_mclk1_e, gpio, i2s0_clk, - i2s0_data, i2s0_ws, i2s1_clk, i2s1_data, i2s1_ws, i2s2_clk, - i2s2_data, i2s2_ws, i2s3_clk, i2s3_data, i2s3_ws, i2s4_clk, - i2s4_data, i2s4_ws, slimbus_clk, slimbus_data, swr_rx_clk, - swr_rx_data, swr_tx_clk, swr_tx_data, wsa_swr_clk, - wsa_swr_data, wsa2_swr_clk, wsa2_swr_data ] - description: - Specify the alternative function to be configured for the specified - pins. - -allOf: - - $ref: qcom,lpass-lpi-common.yaml# - -required: - - compatible - - reg - - clocks - - clock-names - -unevaluatedProperties: false - -examples: - - | - #include - - lpass_tlmm: pinctrl@6e80000 { - compatible = "qcom,sm8550-lpass-lpi-pinctrl"; - reg = <0x06e80000 0x20000>, - <0x0725a000 0x10000>; - - clocks = <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; - clock-names = "core", "audio"; - - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&lpass_tlmm 0 0 23>; - - tx-swr-sleep-clk-state { - pins = "gpio0"; - function = "swr_tx_clk"; - drive-strength = <2>; - bias-pull-down; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sm8550-lpass-lpi-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM8550 SoC LPASS LPI TLMM + +maintainers: + - Krzysztof Kozlowski + - Srinivas Kandagatla + +description: + Top Level Mode Multiplexer pin controller in the Low Power Audio SubSystem + (LPASS) Low Power Island (LPI) of Qualcomm SM8550 SoC. + +properties: + compatible: + oneOf: + - const: qcom,sm8550-lpass-lpi-pinctrl + - items: + - const: qcom,x1e80100-lpass-lpi-pinctrl + - const: qcom,sm8550-lpass-lpi-pinctrl + + reg: + items: + - description: LPASS LPI TLMM Control and Status registers + - description: LPASS LPI MCC registers + + clocks: + items: + - description: LPASS Core voting clock + - description: LPASS Audio voting clock + + clock-names: + items: + - const: core + - const: audio + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sm8550-lpass-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sm8550-lpass-state" + additionalProperties: false + +$defs: + qcom-sm8550-lpass-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,lpass-lpi-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + pattern: "^gpio([0-9]|1[0-9]|2[0-2])$" + + function: + enum: [ dmic1_clk, dmic1_data, dmic2_clk, dmic2_data, dmic3_clk, + dmic3_data, dmic4_clk, dmic4_data, ext_mclk1_a, ext_mclk1_b, + ext_mclk1_c, ext_mclk1_d, ext_mclk1_e, gpio, i2s0_clk, + i2s0_data, i2s0_ws, i2s1_clk, i2s1_data, i2s1_ws, i2s2_clk, + i2s2_data, i2s2_ws, i2s3_clk, i2s3_data, i2s3_ws, i2s4_clk, + i2s4_data, i2s4_ws, slimbus_clk, slimbus_data, swr_rx_clk, + swr_rx_data, swr_tx_clk, swr_tx_data, wsa_swr_clk, + wsa_swr_data, wsa2_swr_clk, wsa2_swr_data ] + description: + Specify the alternative function to be configured for the specified + pins. + +allOf: + - $ref: qcom,lpass-lpi-common.yaml# + +required: + - compatible + - reg + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + + lpass_tlmm: pinctrl@6e80000 { + compatible = "qcom,sm8550-lpass-lpi-pinctrl"; + reg = <0x06e80000 0x20000>, + <0x0725a000 0x10000>; + + clocks = <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "core", "audio"; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&lpass_tlmm 0 0 23>; + + tx-swr-sleep-clk-state { + pins = "gpio0"; + function = "swr_tx_clk"; + drive-strength = <2>; + bias-pull-down; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/renesas,rzn1-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/renesas,rzn1-pinctrl.yaml index a7c53d9c0..816688580 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/renesas,rzn1-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/renesas,rzn1-pinctrl.yaml @@ -1,128 +1,128 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/renesas,rzn1-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas RZ/N1 Pin Controller - -maintainers: - - Fabrizio Castro - - Geert Uytterhoeven - -properties: - compatible: - items: - - enum: - - renesas,r9a06g032-pinctrl # RZ/N1D - - renesas,r9a06g033-pinctrl # RZ/N1S - - const: renesas,rzn1-pinctrl # Generic RZ/N1 - - reg: - items: - - description: GPIO Multiplexing Level1 Register Block - - description: GPIO Multiplexing Level2 Register Block - - clocks: - maxItems: 1 - - clock-names: - const: bus - description: - The bus clock, sometimes described as pclk, for register accesses. - -allOf: - - $ref: pinctrl.yaml# - -required: - - compatible - - reg - - clocks - - clock-names - -additionalProperties: - anyOf: - - type: object - allOf: - - $ref: pincfg-node.yaml# - - $ref: pinmux-node.yaml# - - description: - A pin multiplexing sub-node describes how to configure a set of (or a - single) pin in some desired alternate function mode. - A single sub-node may define several pin configurations. - - properties: - pinmux: - description: | - Integer array representing pin number and pin multiplexing - configuration. - When a pin has to be configured in alternate function mode, use - this property to identify the pin by its global index, and provide - its alternate function configuration number along with it. - When multiple pins are required to be configured as part of the - same alternate function they shall be specified as members of the - same argument list of a single "pinmux" property. - Integers values in the "pinmux" argument list are assembled as: - (PIN | MUX_FUNC << 8) - where PIN directly corresponds to the pl_gpio pin number and - MUX_FUNC is one of the alternate function identifiers defined in: - - These identifiers collapse the IO Multiplex Configuration Level 1 - and Level 2 numbers that are detailed in the hardware reference - manual into a single number. The identifiers for Level 2 are simply - offset by 10. Additional identifiers are provided to specify the - MDIO source peripheral. - - bias-disable: true - bias-pull-up: - description: Pull up the pin with 50 kOhm - bias-pull-down: - description: Pull down the pin with 50 kOhm - bias-high-impedance: true - drive-strength: - enum: [ 4, 6, 8, 12 ] - - required: - - pinmux - - additionalProperties: - $ref: "#/additionalProperties/anyOf/0" - - - type: object - additionalProperties: - $ref: "#/additionalProperties/anyOf/0" - -examples: - - | - #include - #include - pinctrl: pinctrl@40067000 { - compatible = "renesas,r9a06g032-pinctrl", "renesas,rzn1-pinctrl"; - reg = <0x40067000 0x1000>, <0x51000000 0x480>; - clocks = <&sysctrl R9A06G032_HCLK_PINCONFIG>; - clock-names = "bus"; - - /* - * A serial communication interface with a TX output pin and an RX - * input pin. - */ - pins_uart0: pins_uart0 { - pinmux = < - RZN1_PINMUX(103, RZN1_FUNC_UART0_I) /* UART0_TXD */ - RZN1_PINMUX(104, RZN1_FUNC_UART0_I) /* UART0_RXD */ - >; - }; - - /* - * Set the pull-up on the RXD pin of the UART. - */ - pins_uart0_alt: pins_uart0_alt { - pinmux = ; - - pins_uart6_rx { - pinmux = ; - bias-pull-up; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/renesas,rzn1-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/N1 Pin Controller + +maintainers: + - Fabrizio Castro + - Geert Uytterhoeven + +properties: + compatible: + items: + - enum: + - renesas,r9a06g032-pinctrl # RZ/N1D + - renesas,r9a06g033-pinctrl # RZ/N1S + - const: renesas,rzn1-pinctrl # Generic RZ/N1 + + reg: + items: + - description: GPIO Multiplexing Level1 Register Block + - description: GPIO Multiplexing Level2 Register Block + + clocks: + maxItems: 1 + + clock-names: + const: bus + description: + The bus clock, sometimes described as pclk, for register accesses. + +allOf: + - $ref: pinctrl.yaml# + +required: + - compatible + - reg + - clocks + - clock-names + +additionalProperties: + anyOf: + - type: object + allOf: + - $ref: pincfg-node.yaml# + - $ref: pinmux-node.yaml# + + description: + A pin multiplexing sub-node describes how to configure a set of (or a + single) pin in some desired alternate function mode. + A single sub-node may define several pin configurations. + + properties: + pinmux: + description: | + Integer array representing pin number and pin multiplexing + configuration. + When a pin has to be configured in alternate function mode, use + this property to identify the pin by its global index, and provide + its alternate function configuration number along with it. + When multiple pins are required to be configured as part of the + same alternate function they shall be specified as members of the + same argument list of a single "pinmux" property. + Integers values in the "pinmux" argument list are assembled as: + (PIN | MUX_FUNC << 8) + where PIN directly corresponds to the pl_gpio pin number and + MUX_FUNC is one of the alternate function identifiers defined in: + + These identifiers collapse the IO Multiplex Configuration Level 1 + and Level 2 numbers that are detailed in the hardware reference + manual into a single number. The identifiers for Level 2 are simply + offset by 10. Additional identifiers are provided to specify the + MDIO source peripheral. + + bias-disable: true + bias-pull-up: + description: Pull up the pin with 50 kOhm + bias-pull-down: + description: Pull down the pin with 50 kOhm + bias-high-impedance: true + drive-strength: + enum: [ 4, 6, 8, 12 ] + + required: + - pinmux + + additionalProperties: + $ref: "#/additionalProperties/anyOf/0" + + - type: object + additionalProperties: + $ref: "#/additionalProperties/anyOf/0" + +examples: + - | + #include + #include + pinctrl: pinctrl@40067000 { + compatible = "renesas,r9a06g032-pinctrl", "renesas,rzn1-pinctrl"; + reg = <0x40067000 0x1000>, <0x51000000 0x480>; + clocks = <&sysctrl R9A06G032_HCLK_PINCONFIG>; + clock-names = "bus"; + + /* + * A serial communication interface with a TX output pin and an RX + * input pin. + */ + pins_uart0: pins_uart0 { + pinmux = < + RZN1_PINMUX(103, RZN1_FUNC_UART0_I) /* UART0_TXD */ + RZN1_PINMUX(104, RZN1_FUNC_UART0_I) /* UART0_RXD */ + >; + }; + + /* + * Set the pull-up on the RXD pin of the UART. + */ + pins_uart0_alt: pins_uart0_alt { + pinmux = ; + + pins_uart6_rx { + pinmux = ; + bias-pull-up; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml index 392111472..f82a3c7e6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml @@ -1,124 +1,124 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung S3C/S5P/Exynos SoC pin controller - wake-up interrupt controller - -maintainers: - - Krzysztof Kozlowski - - Sylwester Nawrocki - - Tomasz Figa - -description: | - This is a part of device tree bindings for Samsung S3C/S5P/Exynos SoC pin - controller. - - External wake-up interrupts for Samsung S3C/S5P/Exynos SoC pin controller. - For S3C24xx, S3C64xx, S5PV210 and Exynos4210 compatible wake-up interrupt - controllers, only one pin-controller device node can include external wake-up - interrupts child node (in other words, only one External wake-up interrupts - pin-controller is supported). - For newer controllers, multiple pin-controller device node can include - external wake-up interrupts child node. - - See also Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml for - additional information and example. - -properties: - compatible: - oneOf: - - enum: - - samsung,s3c2410-wakeup-eint - - samsung,s3c2412-wakeup-eint - - samsung,s3c64xx-wakeup-eint - - samsung,s5pv210-wakeup-eint - - samsung,exynos4210-wakeup-eint - - samsung,exynos7-wakeup-eint - - samsung,exynosautov920-wakeup-eint - - items: - - enum: - - samsung,exynos5433-wakeup-eint - - samsung,exynos7885-wakeup-eint - - samsung,exynos850-wakeup-eint - - const: samsung,exynos7-wakeup-eint - - items: - - enum: - - google,gs101-wakeup-eint - - samsung,exynosautov9-wakeup-eint - - const: samsung,exynos850-wakeup-eint - - const: samsung,exynos7-wakeup-eint - - interrupts: - description: - Interrupt used by multiplexed external wake-up interrupts. - minItems: 1 - maxItems: 6 - -required: - - compatible - -allOf: - - if: - properties: - compatible: - contains: - enum: - - samsung,s3c2410-wakeup-eint - - samsung,s3c2412-wakeup-eint - then: - properties: - interrupts: - minItems: 6 - maxItems: 6 - required: - - interrupts - - - if: - properties: - compatible: - contains: - const: samsung,s3c64xx-wakeup-eint - then: - properties: - interrupts: - minItems: 4 - maxItems: 4 - required: - - interrupts - - - if: - properties: - compatible: - oneOf: - # Match without "contains", to skip newer variants which are still - # compatible with samsung,exynos7-wakeup-eint - - enum: - - samsung,exynos4210-wakeup-eint - - samsung,exynos7-wakeup-eint - - samsung,s5pv210-wakeup-eint - - contains: - enum: - - samsung,exynos5433-wakeup-eint - - samsung,exynos7885-wakeup-eint - then: - properties: - interrupts: - minItems: 1 - maxItems: 1 - required: - - interrupts - - - if: - properties: - compatible: - contains: - enum: - - samsung,exynos850-wakeup-eint - - samsung,exynosautov920-wakeup-eint - then: - properties: - interrupts: false - -additionalProperties: false +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S3C/S5P/Exynos SoC pin controller - wake-up interrupt controller + +maintainers: + - Krzysztof Kozlowski + - Sylwester Nawrocki + - Tomasz Figa + +description: | + This is a part of device tree bindings for Samsung S3C/S5P/Exynos SoC pin + controller. + + External wake-up interrupts for Samsung S3C/S5P/Exynos SoC pin controller. + For S3C24xx, S3C64xx, S5PV210 and Exynos4210 compatible wake-up interrupt + controllers, only one pin-controller device node can include external wake-up + interrupts child node (in other words, only one External wake-up interrupts + pin-controller is supported). + For newer controllers, multiple pin-controller device node can include + external wake-up interrupts child node. + + See also Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml for + additional information and example. + +properties: + compatible: + oneOf: + - enum: + - samsung,s3c2410-wakeup-eint + - samsung,s3c2412-wakeup-eint + - samsung,s3c64xx-wakeup-eint + - samsung,s5pv210-wakeup-eint + - samsung,exynos4210-wakeup-eint + - samsung,exynos7-wakeup-eint + - samsung,exynosautov920-wakeup-eint + - items: + - enum: + - samsung,exynos5433-wakeup-eint + - samsung,exynos7885-wakeup-eint + - samsung,exynos850-wakeup-eint + - const: samsung,exynos7-wakeup-eint + - items: + - enum: + - google,gs101-wakeup-eint + - samsung,exynosautov9-wakeup-eint + - const: samsung,exynos850-wakeup-eint + - const: samsung,exynos7-wakeup-eint + + interrupts: + description: + Interrupt used by multiplexed external wake-up interrupts. + minItems: 1 + maxItems: 6 + +required: + - compatible + +allOf: + - if: + properties: + compatible: + contains: + enum: + - samsung,s3c2410-wakeup-eint + - samsung,s3c2412-wakeup-eint + then: + properties: + interrupts: + minItems: 6 + maxItems: 6 + required: + - interrupts + + - if: + properties: + compatible: + contains: + const: samsung,s3c64xx-wakeup-eint + then: + properties: + interrupts: + minItems: 4 + maxItems: 4 + required: + - interrupts + + - if: + properties: + compatible: + oneOf: + # Match without "contains", to skip newer variants which are still + # compatible with samsung,exynos7-wakeup-eint + - enum: + - samsung,exynos4210-wakeup-eint + - samsung,exynos7-wakeup-eint + - samsung,s5pv210-wakeup-eint + - contains: + enum: + - samsung,exynos5433-wakeup-eint + - samsung,exynos7885-wakeup-eint + then: + properties: + interrupts: + minItems: 1 + maxItems: 1 + required: + - interrupts + + - if: + properties: + compatible: + contains: + enum: + - samsung,exynos850-wakeup-eint + - samsung,exynosautov920-wakeup-eint + then: + properties: + interrupts: false + +additionalProperties: false diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml index 18c95d044..4214d7311 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/semtech,sx1501q.yaml @@ -1,208 +1,208 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright 2022 Linaro Ltd. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/semtech,sx1501q.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Semtech SX150x GPIO expander - -maintainers: - - Neil Armstrong - -properties: - compatible: - enum: - - semtech,sx1501q - - semtech,sx1502q - - semtech,sx1503q - - semtech,sx1504q - - semtech,sx1505q - - semtech,sx1506q - - semtech,sx1507q - - semtech,sx1508q - - semtech,sx1509q - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - '#interrupt-cells': - const: 2 - - interrupt-controller: true - - '#gpio-cells': - const: 2 - - gpio-controller: true - - semtech,probe-reset: - description: Will trigger a reset of the GPIO expander on probe - type: boolean - -patternProperties: - '-cfg$': - type: object - properties: - pins: true - - bias-disable: true - bias-pull-up: true - bias-pull-down: true - bias-pull-pin-default: true - drive-push-pull: true - output-low: true - output-high: true - drive-open-drain: true - - required: - - pins - - allOf: - - $ref: pincfg-node.yaml# - - $ref: pinmux-node.yaml# - - if: - properties: - pins: - contains: - const: oscio - then: - properties: - bias-disable: false - bias-pull-up: false - bias-pull-down: false - bias-pull-pin-default: false - drive-open-drain: false - - additionalProperties: false - -required: - - compatible - - reg - - '#gpio-cells' - - gpio-controller - -allOf: - - $ref: pinctrl.yaml# - - if: - not: - properties: - compatible: - contains: - enum: - - semtech,sx1507q - - semtech,sx1508q - - semtech,sx1509q - then: - properties: - semtech,probe-reset: false - - if: - properties: - compatible: - contains: - enum: - - semtech,sx1501q - - semtech,sx1504q - then: - patternProperties: - '-cfg$': - properties: - pins: - items: - pattern: '^gpio[0-3]$' - - if: - properties: - compatible: - contains: - enum: - - semtech,sx1502q - - semtech,sx1505q - then: - patternProperties: - '-cfg$': - properties: - pins: - items: - pattern: '^gpio[0-7]$' - - if: - properties: - compatible: - contains: - enum: - - semtech,sx1503q - - semtech,sx1506q - then: - patternProperties: - '-cfg$': - properties: - pins: - items: - pattern: '^(gpio[0-9]|gpio1[0-5])$' - - if: - properties: - compatible: - contains: - const: semtech,sx1507q - then: - patternProperties: - '-cfg$': - properties: - pins: - items: - pattern: '^(oscio|gpio[0-3])$' - - if: - properties: - compatible: - contains: - const: semtech,sx1508q - then: - patternProperties: - '-cfg$': - properties: - pins: - items: - pattern: '^(oscio|gpio[0-7])$' - - if: - properties: - compatible: - contains: - const: semtech,sx1509q - then: - patternProperties: - '-cfg$': - properties: - pins: - items: - pattern: '^(oscio|gpio[0-9]|gpio1[0-5])$' - -additionalProperties: false - -examples: - - | - #include - i2c@1000 { - reg = <0x1000 0x80>; - #address-cells = <1>; - #size-cells = <0>; - - pinctrl@20 { - compatible = "semtech,sx1501q"; - reg = <0x20>; - - #gpio-cells = <2>; - #interrupt-cells = <2>; - - interrupts = <16 IRQ_TYPE_EDGE_FALLING>; - - gpio-controller; - interrupt-controller; - - gpio1-cfg { - pins = "gpio1"; - bias-pull-up; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright 2022 Linaro Ltd. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/semtech,sx1501q.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Semtech SX150x GPIO expander + +maintainers: + - Neil Armstrong + +properties: + compatible: + enum: + - semtech,sx1501q + - semtech,sx1502q + - semtech,sx1503q + - semtech,sx1504q + - semtech,sx1505q + - semtech,sx1506q + - semtech,sx1507q + - semtech,sx1508q + - semtech,sx1509q + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + '#interrupt-cells': + const: 2 + + interrupt-controller: true + + '#gpio-cells': + const: 2 + + gpio-controller: true + + semtech,probe-reset: + description: Will trigger a reset of the GPIO expander on probe + type: boolean + +patternProperties: + '-cfg$': + type: object + properties: + pins: true + + bias-disable: true + bias-pull-up: true + bias-pull-down: true + bias-pull-pin-default: true + drive-push-pull: true + output-low: true + output-high: true + drive-open-drain: true + + required: + - pins + + allOf: + - $ref: pincfg-node.yaml# + - $ref: pinmux-node.yaml# + - if: + properties: + pins: + contains: + const: oscio + then: + properties: + bias-disable: false + bias-pull-up: false + bias-pull-down: false + bias-pull-pin-default: false + drive-open-drain: false + + additionalProperties: false + +required: + - compatible + - reg + - '#gpio-cells' + - gpio-controller + +allOf: + - $ref: pinctrl.yaml# + - if: + not: + properties: + compatible: + contains: + enum: + - semtech,sx1507q + - semtech,sx1508q + - semtech,sx1509q + then: + properties: + semtech,probe-reset: false + - if: + properties: + compatible: + contains: + enum: + - semtech,sx1501q + - semtech,sx1504q + then: + patternProperties: + '-cfg$': + properties: + pins: + items: + pattern: '^gpio[0-3]$' + - if: + properties: + compatible: + contains: + enum: + - semtech,sx1502q + - semtech,sx1505q + then: + patternProperties: + '-cfg$': + properties: + pins: + items: + pattern: '^gpio[0-7]$' + - if: + properties: + compatible: + contains: + enum: + - semtech,sx1503q + - semtech,sx1506q + then: + patternProperties: + '-cfg$': + properties: + pins: + items: + pattern: '^(gpio[0-9]|gpio1[0-5])$' + - if: + properties: + compatible: + contains: + const: semtech,sx1507q + then: + patternProperties: + '-cfg$': + properties: + pins: + items: + pattern: '^(oscio|gpio[0-3])$' + - if: + properties: + compatible: + contains: + const: semtech,sx1508q + then: + patternProperties: + '-cfg$': + properties: + pins: + items: + pattern: '^(oscio|gpio[0-7])$' + - if: + properties: + compatible: + contains: + const: semtech,sx1509q + then: + patternProperties: + '-cfg$': + properties: + pins: + items: + pattern: '^(oscio|gpio[0-9]|gpio1[0-5])$' + +additionalProperties: false + +examples: + - | + #include + i2c@1000 { + reg = <0x1000 0x80>; + #address-cells = <1>; + #size-cells = <0>; + + pinctrl@20 { + compatible = "semtech,sx1501q"; + reg = <0x20>; + + #gpio-cells = <2>; + #interrupt-cells = <2>; + + interrupts = <16 IRQ_TYPE_EDGE_FALLING>; + + gpio-controller; + interrupt-controller; + + gpio1-cfg { + pins = "gpio1"; + bias-pull-up; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/sprd,pinctrl.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/sprd,pinctrl.txt index b314a397b..779b8ef0f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/sprd,pinctrl.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/sprd,pinctrl.txt @@ -1,83 +1,83 @@ -* Spreadtrum Pin Controller - -The Spreadtrum pin controller are organized in 3 blocks (types). - -The first block comprises some global control registers, and each -register contains several bit fields with one bit or several bits -to configure for some global common configuration, such as domain -pad driving level, system control select and so on ("domain pad -driving level": One pin can output 3.0v or 1.8v, depending on the -related domain pad driving selection, if the related domain pad -select 3.0v, then the pin can output 3.0v. "system control" is used -to choose one function (like: UART0) for which system, since we -have several systems (AP/CP/CM4) on one SoC.). - -There are too much various configuration that we can not list all -of them, so we can not make every Spreadtrum-special configuration -as one generic configuration, and maybe it will add more strange -global configuration in future. Then we add one "sprd,control" to -set these various global control configuration, and we need use -magic number for this property. - -Moreover we recognise every fields comprising one bit or several -bits in one global control register as one pin, thus we should -record every pin's bit offset, bit width and register offset to -configure this field (pin). - -The second block comprises some common registers which have unified -register definition, and each register described one pin is used -to configure the pin sleep mode, function select and sleep related -configuration. - -Now we have 4 systems for sleep mode on SC9860 SoC: AP system, -PUBCP system, TGLDSP system and AGDSP system. And the pin sleep -related configuration are: -- input-enable -- input-disable -- output-high -- output-low -- bias-pull-up -- bias-pull-down - -In some situation we need set the pin sleep mode and pin sleep related -configuration, to set the pin sleep related configuration automatically -by hardware when the system specified by sleep mode goes into deep -sleep mode. For example, if we set the pin sleep mode as PUBCP_SLEEP -and set the pin sleep related configuration as "input-enable", which -means when PUBCP system goes into deep sleep mode, this pin will be set -input enable automatically. - -Moreover we can not use the "sleep" state, since some systems (like: -PUBCP system) do not run linux kernel OS (only AP system run linux -kernel on SC9860 platform), then we can not select "sleep" state -when the PUBCP system goes into deep sleep mode. Thus we introduce -"sprd,sleep-mode" property to set pin sleep mode. - -The last block comprises some misc registers which also have unified -register definition, and each register described one pin is used to -configure drive strength, pull up/down and so on. Especially for pull -up, we have two kind pull up resistor: 20K and 4.7K. - -Required properties for Spreadtrum pin controller: -- compatible: "sprd,-pinctrl" - Please refer to each sprd,-pinctrl.txt binding doc for supported SoCs. -- reg: The register address of pin controller device. -- pins : An array of pin names. - -Optional properties: -- function: Specified the function name. -- drive-strength: Drive strength in mA. -- input-schmitt-disable: Enable schmitt-trigger mode. -- input-schmitt-enable: Disable schmitt-trigger mode. -- bias-disable: Disable pin bias. -- bias-pull-down: Pull down on pin. -- bias-pull-up: Pull up on pin. -- input-enable: Enable pin input. -- input-disable: Enable pin output. -- output-high: Set the pin as an output level high. -- output-low: Set the pin as an output level low. -- sleep-hardware-state: Indicate these configs in this state are sleep related. -- sprd,control: Control values referring to databook for global control pins. -- sprd,sleep-mode: Sleep mode selection. - -Please refer to each sprd,-pinctrl.txt binding doc for supported values. +* Spreadtrum Pin Controller + +The Spreadtrum pin controller are organized in 3 blocks (types). + +The first block comprises some global control registers, and each +register contains several bit fields with one bit or several bits +to configure for some global common configuration, such as domain +pad driving level, system control select and so on ("domain pad +driving level": One pin can output 3.0v or 1.8v, depending on the +related domain pad driving selection, if the related domain pad +select 3.0v, then the pin can output 3.0v. "system control" is used +to choose one function (like: UART0) for which system, since we +have several systems (AP/CP/CM4) on one SoC.). + +There are too much various configuration that we can not list all +of them, so we can not make every Spreadtrum-special configuration +as one generic configuration, and maybe it will add more strange +global configuration in future. Then we add one "sprd,control" to +set these various global control configuration, and we need use +magic number for this property. + +Moreover we recognise every fields comprising one bit or several +bits in one global control register as one pin, thus we should +record every pin's bit offset, bit width and register offset to +configure this field (pin). + +The second block comprises some common registers which have unified +register definition, and each register described one pin is used +to configure the pin sleep mode, function select and sleep related +configuration. + +Now we have 4 systems for sleep mode on SC9860 SoC: AP system, +PUBCP system, TGLDSP system and AGDSP system. And the pin sleep +related configuration are: +- input-enable +- input-disable +- output-high +- output-low +- bias-pull-up +- bias-pull-down + +In some situation we need set the pin sleep mode and pin sleep related +configuration, to set the pin sleep related configuration automatically +by hardware when the system specified by sleep mode goes into deep +sleep mode. For example, if we set the pin sleep mode as PUBCP_SLEEP +and set the pin sleep related configuration as "input-enable", which +means when PUBCP system goes into deep sleep mode, this pin will be set +input enable automatically. + +Moreover we can not use the "sleep" state, since some systems (like: +PUBCP system) do not run linux kernel OS (only AP system run linux +kernel on SC9860 platform), then we can not select "sleep" state +when the PUBCP system goes into deep sleep mode. Thus we introduce +"sprd,sleep-mode" property to set pin sleep mode. + +The last block comprises some misc registers which also have unified +register definition, and each register described one pin is used to +configure drive strength, pull up/down and so on. Especially for pull +up, we have two kind pull up resistor: 20K and 4.7K. + +Required properties for Spreadtrum pin controller: +- compatible: "sprd,-pinctrl" + Please refer to each sprd,-pinctrl.txt binding doc for supported SoCs. +- reg: The register address of pin controller device. +- pins : An array of pin names. + +Optional properties: +- function: Specified the function name. +- drive-strength: Drive strength in mA. +- input-schmitt-disable: Enable schmitt-trigger mode. +- input-schmitt-enable: Disable schmitt-trigger mode. +- bias-disable: Disable pin bias. +- bias-pull-down: Pull down on pin. +- bias-pull-up: Pull up on pin. +- input-enable: Enable pin input. +- input-disable: Enable pin output. +- output-high: Set the pin as an output level high. +- output-low: Set the pin as an output level low. +- sleep-hardware-state: Indicate these configs in this state are sleep related. +- sprd,control: Control values referring to databook for global control pins. +- sprd,sleep-mode: Sleep mode selection. + +Please refer to each sprd,-pinctrl.txt binding doc for supported values. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/starfive,jh7110-sys-pinctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/starfive,jh7110-sys-pinctrl.yaml index e81b2490b..222b9e240 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/starfive,jh7110-sys-pinctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/starfive,jh7110-sys-pinctrl.yaml @@ -1,142 +1,142 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pinctrl/starfive,jh7110-sys-pinctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: StarFive JH7110 SYS Pin Controller - -description: | - Bindings for the JH7110 RISC-V SoC from StarFive Technology Ltd. - - Out of the SoC's many pins only the ones named PAD_GPIO0 to PAD_GPIO63 - can be multiplexed and have configurable bias, drive strength, - schmitt trigger etc. - Some peripherals have their I/O go through the 64 "GPIOs". This also - includes a number of other UARTs, I2Cs, SPIs, PWMs etc. - All these peripherals are connected to all 64 GPIOs such that - any GPIO can be set up to be controlled by any of the peripherals. - -maintainers: - - Jianlong Huang - -properties: - compatible: - const: starfive,jh7110-sys-pinctrl - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - resets: - maxItems: 1 - - interrupts: - maxItems: 1 - - interrupt-controller: true - - '#interrupt-cells': - const: 2 - - gpio-controller: true - - '#gpio-cells': - const: 2 - -patternProperties: - '-[0-9]+$': - type: object - additionalProperties: false - patternProperties: - '-pins$': - type: object - description: | - A pinctrl node should contain at least one subnode representing the - pinctrl groups available on the machine. Each subnode will list the - pins it needs, and how they should be configured, with regard to - muxer configuration, bias, input enable/disable, input schmitt - trigger enable/disable, slew-rate and drive strength. - allOf: - - $ref: /schemas/pinctrl/pincfg-node.yaml - - $ref: /schemas/pinctrl/pinmux-node.yaml - additionalProperties: false - - properties: - pinmux: - description: | - The list of GPIOs and their mux settings that properties in the - node apply to. This should be set using the GPIOMUX or PINMUX - macros. - - bias-disable: true - - bias-pull-up: - type: boolean - - bias-pull-down: - type: boolean - - drive-strength: - enum: [ 2, 4, 8, 12 ] - - input-enable: true - - input-disable: true - - input-schmitt-enable: true - - input-schmitt-disable: true - - slew-rate: - maximum: 1 - -required: - - compatible - - reg - - clocks - - interrupts - - interrupt-controller - - '#interrupt-cells' - - gpio-controller - - '#gpio-cells' - -additionalProperties: false - -examples: - - | - pinctrl@13040000 { - compatible = "starfive,jh7110-sys-pinctrl"; - reg = <0x13040000 0x10000>; - clocks = <&syscrg 112>; - resets = <&syscrg 2>; - interrupts = <86>; - interrupt-controller; - #interrupt-cells = <2>; - gpio-controller; - #gpio-cells = <2>; - - uart0-0 { - tx-pins { - pinmux = <0xff140005>; - bias-disable; - drive-strength = <12>; - input-disable; - input-schmitt-disable; - slew-rate = <0>; - }; - - rx-pins { - pinmux = <0x0E000406>; - bias-pull-up; - drive-strength = <2>; - input-enable; - input-schmitt-enable; - slew-rate = <0>; - }; - }; - }; - -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/starfive,jh7110-sys-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7110 SYS Pin Controller + +description: | + Bindings for the JH7110 RISC-V SoC from StarFive Technology Ltd. + + Out of the SoC's many pins only the ones named PAD_GPIO0 to PAD_GPIO63 + can be multiplexed and have configurable bias, drive strength, + schmitt trigger etc. + Some peripherals have their I/O go through the 64 "GPIOs". This also + includes a number of other UARTs, I2Cs, SPIs, PWMs etc. + All these peripherals are connected to all 64 GPIOs such that + any GPIO can be set up to be controlled by any of the peripherals. + +maintainers: + - Jianlong Huang + +properties: + compatible: + const: starfive,jh7110-sys-pinctrl + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + + gpio-controller: true + + '#gpio-cells': + const: 2 + +patternProperties: + '-[0-9]+$': + type: object + additionalProperties: false + patternProperties: + '-pins$': + type: object + description: | + A pinctrl node should contain at least one subnode representing the + pinctrl groups available on the machine. Each subnode will list the + pins it needs, and how they should be configured, with regard to + muxer configuration, bias, input enable/disable, input schmitt + trigger enable/disable, slew-rate and drive strength. + allOf: + - $ref: /schemas/pinctrl/pincfg-node.yaml + - $ref: /schemas/pinctrl/pinmux-node.yaml + additionalProperties: false + + properties: + pinmux: + description: | + The list of GPIOs and their mux settings that properties in the + node apply to. This should be set using the GPIOMUX or PINMUX + macros. + + bias-disable: true + + bias-pull-up: + type: boolean + + bias-pull-down: + type: boolean + + drive-strength: + enum: [ 2, 4, 8, 12 ] + + input-enable: true + + input-disable: true + + input-schmitt-enable: true + + input-schmitt-disable: true + + slew-rate: + maximum: 1 + +required: + - compatible + - reg + - clocks + - interrupts + - interrupt-controller + - '#interrupt-cells' + - gpio-controller + - '#gpio-cells' + +additionalProperties: false + +examples: + - | + pinctrl@13040000 { + compatible = "starfive,jh7110-sys-pinctrl"; + reg = <0x13040000 0x10000>; + clocks = <&syscrg 112>; + resets = <&syscrg 2>; + interrupts = <86>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-controller; + #gpio-cells = <2>; + + uart0-0 { + tx-pins { + pinmux = <0xff140005>; + bias-disable; + drive-strength = <12>; + input-disable; + input-schmitt-disable; + slew-rate = <0>; + }; + + rx-pins { + pinmux = <0x0E000406>; + bias-pull-up; + drive-strength = <2>; + input-enable; + input-schmitt-enable; + slew-rate = <0>; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/ste,nomadik.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/ste,nomadik.txt index 7e55d71b0..221380243 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/ste,nomadik.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pinctrl/ste,nomadik.txt @@ -1,148 +1,148 @@ -ST Ericsson Nomadik pinmux controller - -Required properties: -- compatible: "stericsson,db8500-pinctrl", "stericsson,db8540-pinctrl", - "stericsson,stn8815-pinctrl" -- nomadik-gpio-chips: array of phandles to the corresponding GPIO chips - (these have the register ranges used by the pin controller). -- prcm: phandle to the PRCMU managing the back end of this pin controller - -Please refer to pinctrl-bindings.txt in this directory for details of the -common pinctrl bindings used by client devices, including the meaning of the -phrase "pin configuration node". - -ST Ericsson's pin configuration nodes act as a container for an arbitrary number of -subnodes. Each of these subnodes represents some desired configuration for a -pin, a group, or a list of pins or groups. This configuration can include the -mux function to select on those pin(s)/group(s), and various pin configuration -parameters, such as input, output, pull up, pull down... - -The name of each subnode is not important; all subnodes should be enumerated -and processed purely based on their content. The subnodes use the generic -pin multiplexing node layout from the standard pin control bindings -(see pinctrl-bindings.txt): - -Required pin multiplexing subnode properties: -- function: A string containing the name of the function to mux to the - pin or group. -- groups : An array of strings. Each string contains the name of a pin - group that will be combined with the function to form a multiplexing - set-up. - -Required pin configuration subnode properties: -- pins: A string array describing the pins affected by the configuration - in the node. -- ste,config: Handle of pin configuration node - (e.g. ste,config = <&slpm_in_wkup_pdis>) - -- ste,input : <0/1/2> - 0: input with no pull - 1: input with pull up, - 2: input with pull down, - -- ste,output: <0/1/2> - 0: output low, - 1: output high, - 2: output (value is not specified). - -- ste,sleep: <0/1> - 0: sleep mode disable, - 1: sleep mode enable. - -- ste,sleep-input: <0/1/2/3> - 0: sleep input with no pull, - 1: sleep input with pull up, - 2: sleep input with pull down. - 3: sleep input and keep last input configuration (no pull, pull up or pull down). - -- ste,sleep-output: <0/1/2> - 0: sleep output low, - 1: sleep output high, - 2: sleep output (value is not specified). - -- ste,sleep-gpio: <0/1> - 0: disable sleep gpio mode, - 1: enable sleep gpio mode. - -- ste,sleep-wakeup: <0/1> - 0: wake-up detection enabled, - 1: wake-up detection disabled. - -- ste,sleep-pull-disable: <0/1> - 0: GPIO pull-up or pull-down resistor is enabled, when pin is an input, - 1: GPIO pull-up and pull-down resistor are disabled. - -Example board file extract: - - pinctrl@80157000 { - compatible = "stericsson,db8500-pinctrl"; - nomadik-gpio-chips = <&gpio0>, <&gpio1>, <&gpio2>, <&gpio3>; - prcm = <&prcmu>; - - pinctrl-names = "default"; - - slpm_in_wkup_pdis: slpm_in_wkup_pdis { - ste,sleep = <1>; - ste,sleep-input = <3>; - ste,sleep-wakeup = <1>; - ste,sleep-pull-disable = <0>; - }; - - slpm_out_hi_wkup_pdis: slpm_out_hi_wkup_pdis { - ste,sleep = <1>; - ste,sleep-output = <1>; - ste,sleep-wakeup = <1>; - ste,sleep-pull-disable = <0>; - }; - - slpm_out_wkup_pdis: slpm_out_wkup_pdis { - ste,sleep = <1>; - ste,sleep-output = <2>; - ste,sleep-wakeup = <1>; - ste,sleep-pull-disable = <0>; - }; - - uart0 { - uart0_default_mux: uart0_mux { - u0_default_mux { - function = "u0"; - pins = "u0_a_1"; - }; - }; - uart0_default_mode: uart0_default { - uart0_default_cfg1 { - pins = "GPIO0", "GPIO2"; - ste,input = <1>; - }; - - uart0_default_cfg2 { - pins = "GPIO1", "GPIO3"; - ste,output = <1>; - }; - }; - uart0_sleep_mode: uart0_sleep { - uart0_sleep_cfg1 { - pins = "GPIO0", "GPIO2"; - ste,config = <&slpm_in_wkup_pdis>; - }; - uart0_sleep_cfg2 { - pins = "GPIO1"; - ste,config = <&slpm_out_hi_wkup_pdis>; - }; - uart0_sleep_cfg3 { - pins = "GPIO3"; - ste,config = <&slpm_out_wkup_pdis>; - }; - }; - }; - }; - - uart@80120000 { - compatible = "arm,pl011", "arm,primecell"; - reg = <0x80120000 0x1000>; - interrupts = <0 11 0x4>; - - pinctrl-names = "default","sleep"; - pinctrl-0 = <&uart0_default_mux>, <&uart0_default_mode>; - pinctrl-1 = <&uart0_sleep_mode>; - }; +ST Ericsson Nomadik pinmux controller + +Required properties: +- compatible: "stericsson,db8500-pinctrl", "stericsson,db8540-pinctrl", + "stericsson,stn8815-pinctrl" +- nomadik-gpio-chips: array of phandles to the corresponding GPIO chips + (these have the register ranges used by the pin controller). +- prcm: phandle to the PRCMU managing the back end of this pin controller + +Please refer to pinctrl-bindings.txt in this directory for details of the +common pinctrl bindings used by client devices, including the meaning of the +phrase "pin configuration node". + +ST Ericsson's pin configuration nodes act as a container for an arbitrary number of +subnodes. Each of these subnodes represents some desired configuration for a +pin, a group, or a list of pins or groups. This configuration can include the +mux function to select on those pin(s)/group(s), and various pin configuration +parameters, such as input, output, pull up, pull down... + +The name of each subnode is not important; all subnodes should be enumerated +and processed purely based on their content. The subnodes use the generic +pin multiplexing node layout from the standard pin control bindings +(see pinctrl-bindings.txt): + +Required pin multiplexing subnode properties: +- function: A string containing the name of the function to mux to the + pin or group. +- groups : An array of strings. Each string contains the name of a pin + group that will be combined with the function to form a multiplexing + set-up. + +Required pin configuration subnode properties: +- pins: A string array describing the pins affected by the configuration + in the node. +- ste,config: Handle of pin configuration node + (e.g. ste,config = <&slpm_in_wkup_pdis>) + +- ste,input : <0/1/2> + 0: input with no pull + 1: input with pull up, + 2: input with pull down, + +- ste,output: <0/1/2> + 0: output low, + 1: output high, + 2: output (value is not specified). + +- ste,sleep: <0/1> + 0: sleep mode disable, + 1: sleep mode enable. + +- ste,sleep-input: <0/1/2/3> + 0: sleep input with no pull, + 1: sleep input with pull up, + 2: sleep input with pull down. + 3: sleep input and keep last input configuration (no pull, pull up or pull down). + +- ste,sleep-output: <0/1/2> + 0: sleep output low, + 1: sleep output high, + 2: sleep output (value is not specified). + +- ste,sleep-gpio: <0/1> + 0: disable sleep gpio mode, + 1: enable sleep gpio mode. + +- ste,sleep-wakeup: <0/1> + 0: wake-up detection enabled, + 1: wake-up detection disabled. + +- ste,sleep-pull-disable: <0/1> + 0: GPIO pull-up or pull-down resistor is enabled, when pin is an input, + 1: GPIO pull-up and pull-down resistor are disabled. + +Example board file extract: + + pinctrl@80157000 { + compatible = "stericsson,db8500-pinctrl"; + nomadik-gpio-chips = <&gpio0>, <&gpio1>, <&gpio2>, <&gpio3>; + prcm = <&prcmu>; + + pinctrl-names = "default"; + + slpm_in_wkup_pdis: slpm_in_wkup_pdis { + ste,sleep = <1>; + ste,sleep-input = <3>; + ste,sleep-wakeup = <1>; + ste,sleep-pull-disable = <0>; + }; + + slpm_out_hi_wkup_pdis: slpm_out_hi_wkup_pdis { + ste,sleep = <1>; + ste,sleep-output = <1>; + ste,sleep-wakeup = <1>; + ste,sleep-pull-disable = <0>; + }; + + slpm_out_wkup_pdis: slpm_out_wkup_pdis { + ste,sleep = <1>; + ste,sleep-output = <2>; + ste,sleep-wakeup = <1>; + ste,sleep-pull-disable = <0>; + }; + + uart0 { + uart0_default_mux: uart0_mux { + u0_default_mux { + function = "u0"; + pins = "u0_a_1"; + }; + }; + uart0_default_mode: uart0_default { + uart0_default_cfg1 { + pins = "GPIO0", "GPIO2"; + ste,input = <1>; + }; + + uart0_default_cfg2 { + pins = "GPIO1", "GPIO3"; + ste,output = <1>; + }; + }; + uart0_sleep_mode: uart0_sleep { + uart0_sleep_cfg1 { + pins = "GPIO0", "GPIO2"; + ste,config = <&slpm_in_wkup_pdis>; + }; + uart0_sleep_cfg2 { + pins = "GPIO1"; + ste,config = <&slpm_out_hi_wkup_pdis>; + }; + uart0_sleep_cfg3 { + pins = "GPIO3"; + ste,config = <&slpm_out_wkup_pdis>; + }; + }; + }; + }; + + uart@80120000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x80120000 0x1000>; + interrupts = <0 11 0x4>; + + pinctrl-names = "default","sleep"; + pinctrl-0 = <&uart0_default_mux>, <&uart0_default_mode>; + pinctrl-1 = <&uart0_sleep_mode>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/amlogic,meson-ee-pwrc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/amlogic,meson-ee-pwrc.yaml index 0d2aaca7d..43a932237 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/amlogic,meson-ee-pwrc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/amlogic,meson-ee-pwrc.yaml @@ -1,184 +1,184 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -# Copyright 2019 BayLibre, SAS -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/power/amlogic,meson-ee-pwrc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Amlogic Meson Everything-Else Power Domains - -maintainers: - - Neil Armstrong - -description: |+ - The Everything-Else Power Domains node should be the child of a syscon - node with the required property: - - - compatible: Should be the following: - "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon" - - Refer to the bindings described in - Documentation/devicetree/bindings/mfd/syscon.yaml - -properties: - compatible: - enum: - - amlogic,meson8-pwrc - - amlogic,meson8b-pwrc - - amlogic,meson8m2-pwrc - - amlogic,meson-gxbb-pwrc - - amlogic,meson-axg-pwrc - - amlogic,meson-g12a-pwrc - - amlogic,meson-sm1-pwrc - - clocks: - minItems: 1 - maxItems: 2 - - clock-names: - minItems: 1 - items: - - const: vpu - - const: vapb - - resets: - minItems: 5 - maxItems: 12 - - reset-names: - minItems: 5 - maxItems: 12 - - "#power-domain-cells": - const: 1 - - amlogic,ao-sysctrl: - description: phandle to the AO sysctrl node - $ref: /schemas/types.yaml#/definitions/phandle - -allOf: - - if: - properties: - compatible: - enum: - - amlogic,meson8b-pwrc - - amlogic,meson8m2-pwrc - then: - properties: - reset-names: - items: - - const: dblk - - const: pic_dc - - const: hdmi_apb - - const: hdmi_system - - const: venci - - const: vencp - - const: vdac - - const: vencl - - const: viu - - const: venc - - const: rdma - required: - - resets - - reset-names - - - if: - properties: - compatible: - enum: - - amlogic,meson-gxbb-pwrc - then: - properties: - reset-names: - items: - - const: viu - - const: venc - - const: vcbus - - const: bt656 - - const: dvin - - const: rdma - - const: venci - - const: vencp - - const: vdac - - const: vdi6 - - const: vencl - - const: vid_lock - required: - - resets - - reset-names - - - if: - properties: - compatible: - enum: - - amlogic,meson-axg-pwrc - then: - properties: - reset-names: - items: - - const: viu - - const: venc - - const: vcbus - - const: vencl - - const: vid_lock - required: - - resets - - reset-names - - - if: - properties: - compatible: - enum: - - amlogic,meson-g12a-pwrc - - amlogic,meson-sm1-pwrc - then: - properties: - reset-names: - items: - - const: viu - - const: venc - - const: vcbus - - const: bt656 - - const: rdma - - const: venci - - const: vencp - - const: vdac - - const: vdi6 - - const: vencl - - const: vid_lock - required: - - resets - - reset-names - -required: - - compatible - - clocks - - clock-names - - "#power-domain-cells" - - amlogic,ao-sysctrl - -additionalProperties: false - -examples: - - | - pwrc: power-controller { - compatible = "amlogic,meson-sm1-pwrc"; - #power-domain-cells = <1>; - amlogic,ao-sysctrl = <&rti>; - resets = <&reset_viu>, - <&reset_venc>, - <&reset_vcbus>, - <&reset_bt656>, - <&reset_rdma>, - <&reset_venci>, - <&reset_vencp>, - <&reset_vdac>, - <&reset_vdi6>, - <&reset_vencl>, - <&reset_vid_lock>; - reset-names = "viu", "venc", "vcbus", "bt656", - "rdma", "venci", "vencp", "vdac", - "vdi6", "vencl", "vid_lock"; - clocks = <&clk_vpu>, <&clk_vapb>; - clock-names = "vpu", "vapb"; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2019 BayLibre, SAS +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/amlogic,meson-ee-pwrc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic Meson Everything-Else Power Domains + +maintainers: + - Neil Armstrong + +description: |+ + The Everything-Else Power Domains node should be the child of a syscon + node with the required property: + + - compatible: Should be the following: + "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon" + + Refer to the bindings described in + Documentation/devicetree/bindings/mfd/syscon.yaml + +properties: + compatible: + enum: + - amlogic,meson8-pwrc + - amlogic,meson8b-pwrc + - amlogic,meson8m2-pwrc + - amlogic,meson-gxbb-pwrc + - amlogic,meson-axg-pwrc + - amlogic,meson-g12a-pwrc + - amlogic,meson-sm1-pwrc + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + items: + - const: vpu + - const: vapb + + resets: + minItems: 5 + maxItems: 12 + + reset-names: + minItems: 5 + maxItems: 12 + + "#power-domain-cells": + const: 1 + + amlogic,ao-sysctrl: + description: phandle to the AO sysctrl node + $ref: /schemas/types.yaml#/definitions/phandle + +allOf: + - if: + properties: + compatible: + enum: + - amlogic,meson8b-pwrc + - amlogic,meson8m2-pwrc + then: + properties: + reset-names: + items: + - const: dblk + - const: pic_dc + - const: hdmi_apb + - const: hdmi_system + - const: venci + - const: vencp + - const: vdac + - const: vencl + - const: viu + - const: venc + - const: rdma + required: + - resets + - reset-names + + - if: + properties: + compatible: + enum: + - amlogic,meson-gxbb-pwrc + then: + properties: + reset-names: + items: + - const: viu + - const: venc + - const: vcbus + - const: bt656 + - const: dvin + - const: rdma + - const: venci + - const: vencp + - const: vdac + - const: vdi6 + - const: vencl + - const: vid_lock + required: + - resets + - reset-names + + - if: + properties: + compatible: + enum: + - amlogic,meson-axg-pwrc + then: + properties: + reset-names: + items: + - const: viu + - const: venc + - const: vcbus + - const: vencl + - const: vid_lock + required: + - resets + - reset-names + + - if: + properties: + compatible: + enum: + - amlogic,meson-g12a-pwrc + - amlogic,meson-sm1-pwrc + then: + properties: + reset-names: + items: + - const: viu + - const: venc + - const: vcbus + - const: bt656 + - const: rdma + - const: venci + - const: vencp + - const: vdac + - const: vdi6 + - const: vencl + - const: vid_lock + required: + - resets + - reset-names + +required: + - compatible + - clocks + - clock-names + - "#power-domain-cells" + - amlogic,ao-sysctrl + +additionalProperties: false + +examples: + - | + pwrc: power-controller { + compatible = "amlogic,meson-sm1-pwrc"; + #power-domain-cells = <1>; + amlogic,ao-sysctrl = <&rti>; + resets = <&reset_viu>, + <&reset_venc>, + <&reset_vcbus>, + <&reset_bt656>, + <&reset_rdma>, + <&reset_venci>, + <&reset_vencp>, + <&reset_vdac>, + <&reset_vdi6>, + <&reset_vencl>, + <&reset_vid_lock>; + reset-names = "viu", "venc", "vcbus", "bt656", + "rdma", "venci", "vencp", "vdac", + "vdi6", "vencl", "vid_lock"; + clocks = <&clk_vpu>, <&clk_vapb>; + clock-names = "vpu", "vapb"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/avs/qcom,cpr.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/avs/qcom,cpr.yaml index dbf04579f..2fd2178d1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/avs/qcom,cpr.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/avs/qcom,cpr.yaml @@ -1,161 +1,161 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/power/avs/qcom,cpr.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Core Power Reduction (CPR) - -maintainers: - - Niklas Cassel - -description: | - CPR (Core Power Reduction) is a technology to reduce core power on a CPU - or other device. Each OPP of a device corresponds to a "corner" that has - a range of valid voltages for a particular frequency. While the device is - running at a particular frequency, CPR monitors dynamic factors such as - temperature, etc. and suggests adjustments to the voltage to save power - and meet silicon characteristic requirements. - -properties: - compatible: - items: - - enum: - - qcom,qcs404-cpr - - const: qcom,cpr - - reg: - description: Base address and size of the RBCPR register region. - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - items: - - description: Reference clock. - - clock-names: - items: - - const: ref - - vdd-apc-supply: - description: APC regulator supply. - - '#power-domain-cells': - const: 0 - - operating-points-v2: - description: | - A phandle to the OPP table containing the performance states - supported by the CPR power domain. - - acc-syscon: - $ref: /schemas/types.yaml#/definitions/phandle - description: A phandle to the syscon used for writing ACC settings. - - nvmem-cells: - items: - - description: Corner 1 quotient offset - - description: Corner 2 quotient offset - - description: Corner 3 quotient offset - - description: Corner 1 initial voltage - - description: Corner 2 initial voltage - - description: Corner 3 initial voltage - - description: Corner 1 quotient - - description: Corner 2 quotient - - description: Corner 3 quotient - - description: Corner 1 ring oscillator - - description: Corner 2 ring oscillator - - description: Corner 3 ring oscillator - - description: Fuse revision - - nvmem-cell-names: - items: - - const: cpr_quotient_offset1 - - const: cpr_quotient_offset2 - - const: cpr_quotient_offset3 - - const: cpr_init_voltage1 - - const: cpr_init_voltage2 - - const: cpr_init_voltage3 - - const: cpr_quotient1 - - const: cpr_quotient2 - - const: cpr_quotient3 - - const: cpr_ring_osc1 - - const: cpr_ring_osc2 - - const: cpr_ring_osc3 - - const: cpr_fuse_revision - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - - vdd-apc-supply - - '#power-domain-cells' - - operating-points-v2 - - nvmem-cells - - nvmem-cell-names - -additionalProperties: false - -examples: - - | - #include - - cpr_opp_table: opp-table-cpr { - compatible = "operating-points-v2-qcom-level"; - - cpr_opp1: opp1 { - opp-level = <1>; - qcom,opp-fuse-level = <1>; - }; - cpr_opp2: opp2 { - opp-level = <2>; - qcom,opp-fuse-level = <2>; - }; - cpr_opp3: opp3 { - opp-level = <3>; - qcom,opp-fuse-level = <3>; - }; - }; - - power-controller@b018000 { - compatible = "qcom,qcs404-cpr", "qcom,cpr"; - reg = <0x0b018000 0x1000>; - interrupts = <0 15 IRQ_TYPE_EDGE_RISING>; - clocks = <&xo_board>; - clock-names = "ref"; - vdd-apc-supply = <&pms405_s3>; - #power-domain-cells = <0>; - operating-points-v2 = <&cpr_opp_table>; - acc-syscon = <&tcsr>; - - nvmem-cells = <&cpr_efuse_quot_offset1>, - <&cpr_efuse_quot_offset2>, - <&cpr_efuse_quot_offset3>, - <&cpr_efuse_init_voltage1>, - <&cpr_efuse_init_voltage2>, - <&cpr_efuse_init_voltage3>, - <&cpr_efuse_quot1>, - <&cpr_efuse_quot2>, - <&cpr_efuse_quot3>, - <&cpr_efuse_ring1>, - <&cpr_efuse_ring2>, - <&cpr_efuse_ring3>, - <&cpr_efuse_revision>; - nvmem-cell-names = "cpr_quotient_offset1", - "cpr_quotient_offset2", - "cpr_quotient_offset3", - "cpr_init_voltage1", - "cpr_init_voltage2", - "cpr_init_voltage3", - "cpr_quotient1", - "cpr_quotient2", - "cpr_quotient3", - "cpr_ring_osc1", - "cpr_ring_osc2", - "cpr_ring_osc3", - "cpr_fuse_revision"; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/avs/qcom,cpr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Core Power Reduction (CPR) + +maintainers: + - Niklas Cassel + +description: | + CPR (Core Power Reduction) is a technology to reduce core power on a CPU + or other device. Each OPP of a device corresponds to a "corner" that has + a range of valid voltages for a particular frequency. While the device is + running at a particular frequency, CPR monitors dynamic factors such as + temperature, etc. and suggests adjustments to the voltage to save power + and meet silicon characteristic requirements. + +properties: + compatible: + items: + - enum: + - qcom,qcs404-cpr + - const: qcom,cpr + + reg: + description: Base address and size of the RBCPR register region. + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Reference clock. + + clock-names: + items: + - const: ref + + vdd-apc-supply: + description: APC regulator supply. + + '#power-domain-cells': + const: 0 + + operating-points-v2: + description: | + A phandle to the OPP table containing the performance states + supported by the CPR power domain. + + acc-syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: A phandle to the syscon used for writing ACC settings. + + nvmem-cells: + items: + - description: Corner 1 quotient offset + - description: Corner 2 quotient offset + - description: Corner 3 quotient offset + - description: Corner 1 initial voltage + - description: Corner 2 initial voltage + - description: Corner 3 initial voltage + - description: Corner 1 quotient + - description: Corner 2 quotient + - description: Corner 3 quotient + - description: Corner 1 ring oscillator + - description: Corner 2 ring oscillator + - description: Corner 3 ring oscillator + - description: Fuse revision + + nvmem-cell-names: + items: + - const: cpr_quotient_offset1 + - const: cpr_quotient_offset2 + - const: cpr_quotient_offset3 + - const: cpr_init_voltage1 + - const: cpr_init_voltage2 + - const: cpr_init_voltage3 + - const: cpr_quotient1 + - const: cpr_quotient2 + - const: cpr_quotient3 + - const: cpr_ring_osc1 + - const: cpr_ring_osc2 + - const: cpr_ring_osc3 + - const: cpr_fuse_revision + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - vdd-apc-supply + - '#power-domain-cells' + - operating-points-v2 + - nvmem-cells + - nvmem-cell-names + +additionalProperties: false + +examples: + - | + #include + + cpr_opp_table: opp-table-cpr { + compatible = "operating-points-v2-qcom-level"; + + cpr_opp1: opp1 { + opp-level = <1>; + qcom,opp-fuse-level = <1>; + }; + cpr_opp2: opp2 { + opp-level = <2>; + qcom,opp-fuse-level = <2>; + }; + cpr_opp3: opp3 { + opp-level = <3>; + qcom,opp-fuse-level = <3>; + }; + }; + + power-controller@b018000 { + compatible = "qcom,qcs404-cpr", "qcom,cpr"; + reg = <0x0b018000 0x1000>; + interrupts = <0 15 IRQ_TYPE_EDGE_RISING>; + clocks = <&xo_board>; + clock-names = "ref"; + vdd-apc-supply = <&pms405_s3>; + #power-domain-cells = <0>; + operating-points-v2 = <&cpr_opp_table>; + acc-syscon = <&tcsr>; + + nvmem-cells = <&cpr_efuse_quot_offset1>, + <&cpr_efuse_quot_offset2>, + <&cpr_efuse_quot_offset3>, + <&cpr_efuse_init_voltage1>, + <&cpr_efuse_init_voltage2>, + <&cpr_efuse_init_voltage3>, + <&cpr_efuse_quot1>, + <&cpr_efuse_quot2>, + <&cpr_efuse_quot3>, + <&cpr_efuse_ring1>, + <&cpr_efuse_ring2>, + <&cpr_efuse_ring3>, + <&cpr_efuse_revision>; + nvmem-cell-names = "cpr_quotient_offset1", + "cpr_quotient_offset2", + "cpr_quotient_offset3", + "cpr_init_voltage1", + "cpr_init_voltage2", + "cpr_init_voltage3", + "cpr_quotient1", + "cpr_quotient2", + "cpr_quotient3", + "cpr_ring_osc1", + "cpr_ring_osc2", + "cpr_ring_osc3", + "cpr_fuse_revision"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml index af1020781..c21a66422 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml @@ -1,147 +1,147 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/power/fsl,imx-gpc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale i.MX General Power Controller - -maintainers: - - Philipp Zabel - -description: | - The i.MX6 General Power Control (GPC) block contains DVFS load tracking - counters and Power Gating Control (PGC). - - The power domains are generic power domain providers as documented in - Documentation/devicetree/bindings/power/power-domain.yaml. They are - described as subnodes of the power gating controller 'pgc' node of the GPC. - - IP cores belonging to a power domain should contain a 'power-domains' - property that is a phandle pointing to the power domain the device belongs - to. - -properties: - compatible: - oneOf: - - enum: - - fsl,imx6q-gpc - - items: - - enum: - - fsl,imx6qp-gpc - - fsl,imx6sl-gpc - - fsl,imx6sx-gpc - - fsl,imx6ul-gpc - - const: fsl,imx6q-gpc - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - interrupt-controller: true - '#interrupt-cells': - const: 3 - - clocks: - maxItems: 1 - - clock-names: - const: ipg - - pgc: - type: object - additionalProperties: false - description: list of power domains provided by this controller. - - properties: - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - - patternProperties: - "power-domain@[0-9]$": - type: object - additionalProperties: false - - properties: - - '#power-domain-cells': - const: 0 - - reg: - description: | - The following DOMAIN_INDEX values are valid for i.MX6Q: - ARM_DOMAIN 0 - PU_DOMAIN 1 - The following additional DOMAIN_INDEX value is valid for i.MX6SL: - DISPLAY_DOMAIN 2 - The following additional DOMAIN_INDEX value is valid for i.MX6SX: - PCI_DOMAIN 3 - maxItems: 1 - - clocks: - description: | - A number of phandles to clocks that need to be enabled during domain - power-up sequencing to ensure reset propagation into devices located - inside this power domain. - minItems: 1 - maxItems: 7 - - power-supply: true - - required: - - '#power-domain-cells' - - reg - - required: - - '#address-cells' - - '#size-cells' - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - - pgc - -additionalProperties: false - -examples: - - | - #include - #include - - gpc@20dc000 { - compatible = "fsl,imx6q-gpc"; - reg = <0x020dc000 0x4000>; - interrupts = <0 89 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&clks IMX6QDL_CLK_IPG>; - clock-names = "ipg"; - - pgc { - #address-cells = <1>; - #size-cells = <0>; - - power-domain@0 { - reg = <0>; - #power-domain-cells = <0>; - }; - - pd_pu: power-domain@1 { - reg = <1>; - #power-domain-cells = <0>; - power-supply = <®_pu>; - clocks = <&clks IMX6QDL_CLK_GPU3D_CORE>, - <&clks IMX6QDL_CLK_GPU3D_SHADER>, - <&clks IMX6QDL_CLK_GPU2D_CORE>, - <&clks IMX6QDL_CLK_GPU2D_AXI>, - <&clks IMX6QDL_CLK_OPENVG_AXI>, - <&clks IMX6QDL_CLK_VPU_AXI>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/fsl,imx-gpc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX General Power Controller + +maintainers: + - Philipp Zabel + +description: | + The i.MX6 General Power Control (GPC) block contains DVFS load tracking + counters and Power Gating Control (PGC). + + The power domains are generic power domain providers as documented in + Documentation/devicetree/bindings/power/power-domain.yaml. They are + described as subnodes of the power gating controller 'pgc' node of the GPC. + + IP cores belonging to a power domain should contain a 'power-domains' + property that is a phandle pointing to the power domain the device belongs + to. + +properties: + compatible: + oneOf: + - enum: + - fsl,imx6q-gpc + - items: + - enum: + - fsl,imx6qp-gpc + - fsl,imx6sl-gpc + - fsl,imx6sx-gpc + - fsl,imx6ul-gpc + - const: fsl,imx6q-gpc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-controller: true + '#interrupt-cells': + const: 3 + + clocks: + maxItems: 1 + + clock-names: + const: ipg + + pgc: + type: object + additionalProperties: false + description: list of power domains provided by this controller. + + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + "power-domain@[0-9]$": + type: object + additionalProperties: false + + properties: + + '#power-domain-cells': + const: 0 + + reg: + description: | + The following DOMAIN_INDEX values are valid for i.MX6Q: + ARM_DOMAIN 0 + PU_DOMAIN 1 + The following additional DOMAIN_INDEX value is valid for i.MX6SL: + DISPLAY_DOMAIN 2 + The following additional DOMAIN_INDEX value is valid for i.MX6SX: + PCI_DOMAIN 3 + maxItems: 1 + + clocks: + description: | + A number of phandles to clocks that need to be enabled during domain + power-up sequencing to ensure reset propagation into devices located + inside this power domain. + minItems: 1 + maxItems: 7 + + power-supply: true + + required: + - '#power-domain-cells' + - reg + + required: + - '#address-cells' + - '#size-cells' + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - pgc + +additionalProperties: false + +examples: + - | + #include + #include + + gpc@20dc000 { + compatible = "fsl,imx6q-gpc"; + reg = <0x020dc000 0x4000>; + interrupts = <0 89 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clks IMX6QDL_CLK_IPG>; + clock-names = "ipg"; + + pgc { + #address-cells = <1>; + #size-cells = <0>; + + power-domain@0 { + reg = <0>; + #power-domain-cells = <0>; + }; + + pd_pu: power-domain@1 { + reg = <1>; + #power-domain-cells = <0>; + power-supply = <®_pu>; + clocks = <&clks IMX6QDL_CLK_GPU3D_CORE>, + <&clks IMX6QDL_CLK_GPU3D_SHADER>, + <&clks IMX6QDL_CLK_GPU2D_CORE>, + <&clks IMX6QDL_CLK_GPU2D_AXI>, + <&clks IMX6QDL_CLK_OPENVG_AXI>, + <&clks IMX6QDL_CLK_VPU_AXI>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml index 68167beab..dfdb8dfb6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml @@ -1,144 +1,144 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/power/fsl,imx-gpcv2.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale i.MX General Power Controller v2 - -maintainers: - - Andrey Smirnov - -description: | - The i.MX7S/D General Power Control (GPC) block contains Power Gating - Control (PGC) for various power domains. - - Power domains contained within GPC node are generic power domain - providers, documented in - Documentation/devicetree/bindings/power/power-domain.yaml, which are - described as subnodes of the power gating controller 'pgc' node. - - IP cores belonging to a power domain should contain a 'power-domains' - property that is a phandle for PGC node representing the domain. - -properties: - compatible: - enum: - - fsl,imx7d-gpc - - fsl,imx8mn-gpc - - fsl,imx8mq-gpc - - fsl,imx8mm-gpc - - fsl,imx8mp-gpc - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - interrupt-controller: true - '#interrupt-cells': - const: 3 - - pgc: - type: object - additionalProperties: false - description: list of power domains provided by this controller. - - properties: - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - - patternProperties: - "power-domain@[0-9a-f]+$": - type: object - additionalProperties: false - - properties: - - '#power-domain-cells': - const: 0 - - reg: - description: | - Power domain index. Valid values are defined in - include/dt-bindings/power/imx7-power.h for fsl,imx7d-gpc and - include/dt-bindings/power/imx8m-power.h for fsl,imx8mq-gpc - include/dt-bindings/power/imx8mm-power.h for fsl,imx8mm-gpc - include/dt-bindings/power/imx8mp-power.h for fsl,imx8mp-gpc - maxItems: 1 - - clocks: - description: | - A number of phandles to clocks that need to be enabled during domain - power-up sequencing to ensure reset propagation into devices located - inside this power domain. - minItems: 1 - maxItems: 5 - - power-supply: true - - power-domains: - maxItems: 1 - - resets: - description: | - A number of phandles to resets that need to be asserted during - power-up sequencing of the domain. The resets belong to devices - located inside the power domain, which need to be held in reset - across the power-up sequence. So no means to specify what each - reset is in a generic power-domain binding. - minItems: 1 - maxItems: 4 - - required: - - '#power-domain-cells' - - reg - - required: - - '#address-cells' - - '#size-cells' - -required: - - compatible - - reg - - interrupts - - pgc - -additionalProperties: false - -examples: - - | - #include - - gpc@303a0000 { - compatible = "fsl,imx7d-gpc"; - reg = <0x303a0000 0x1000>; - interrupts = ; - - pgc { - #address-cells = <1>; - #size-cells = <0>; - - pgc_mipi_phy: power-domain@0 { - #power-domain-cells = <0>; - reg = <0>; - power-supply = <®_1p0d>; - }; - - pgc_pcie_phy: power-domain@1 { - #power-domain-cells = <0>; - reg = <1>; - power-supply = <®_1p0d>; - }; - - pgc_hsic_phy: power-domain@2 { - #power-domain-cells = <0>; - reg = <2>; - power-supply = <®_1p2>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/fsl,imx-gpcv2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX General Power Controller v2 + +maintainers: + - Andrey Smirnov + +description: | + The i.MX7S/D General Power Control (GPC) block contains Power Gating + Control (PGC) for various power domains. + + Power domains contained within GPC node are generic power domain + providers, documented in + Documentation/devicetree/bindings/power/power-domain.yaml, which are + described as subnodes of the power gating controller 'pgc' node. + + IP cores belonging to a power domain should contain a 'power-domains' + property that is a phandle for PGC node representing the domain. + +properties: + compatible: + enum: + - fsl,imx7d-gpc + - fsl,imx8mn-gpc + - fsl,imx8mq-gpc + - fsl,imx8mm-gpc + - fsl,imx8mp-gpc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-controller: true + '#interrupt-cells': + const: 3 + + pgc: + type: object + additionalProperties: false + description: list of power domains provided by this controller. + + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + "power-domain@[0-9a-f]+$": + type: object + additionalProperties: false + + properties: + + '#power-domain-cells': + const: 0 + + reg: + description: | + Power domain index. Valid values are defined in + include/dt-bindings/power/imx7-power.h for fsl,imx7d-gpc and + include/dt-bindings/power/imx8m-power.h for fsl,imx8mq-gpc + include/dt-bindings/power/imx8mm-power.h for fsl,imx8mm-gpc + include/dt-bindings/power/imx8mp-power.h for fsl,imx8mp-gpc + maxItems: 1 + + clocks: + description: | + A number of phandles to clocks that need to be enabled during domain + power-up sequencing to ensure reset propagation into devices located + inside this power domain. + minItems: 1 + maxItems: 5 + + power-supply: true + + power-domains: + maxItems: 1 + + resets: + description: | + A number of phandles to resets that need to be asserted during + power-up sequencing of the domain. The resets belong to devices + located inside the power domain, which need to be held in reset + across the power-up sequence. So no means to specify what each + reset is in a generic power-domain binding. + minItems: 1 + maxItems: 4 + + required: + - '#power-domain-cells' + - reg + + required: + - '#address-cells' + - '#size-cells' + +required: + - compatible + - reg + - interrupts + - pgc + +additionalProperties: false + +examples: + - | + #include + + gpc@303a0000 { + compatible = "fsl,imx7d-gpc"; + reg = <0x303a0000 0x1000>; + interrupts = ; + + pgc { + #address-cells = <1>; + #size-cells = <0>; + + pgc_mipi_phy: power-domain@0 { + #power-domain-cells = <0>; + reg = <0>; + power-supply = <®_1p0d>; + }; + + pgc_pcie_phy: power-domain@1 { + #power-domain-cells = <0>; + reg = <1>; + power-supply = <®_1p0d>; + }; + + pgc_hsic_phy: power-domain@2 { + #power-domain-cells = <0>; + reg = <2>; + power-supply = <®_1p2>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/power_domain.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/power_domain.txt index 623bb61a2..08497ef26 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/power_domain.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/power_domain.txt @@ -1,112 +1,112 @@ -* Generic PM domains - -System on chip designs are often divided into multiple PM domains that can be -used for power gating of selected IP blocks for power saving by reduced leakage -current. - -This device tree binding can be used to bind PM domain consumer devices with -their PM domains provided by PM domain providers. A PM domain provider can be -represented by any node in the device tree and can provide one or more PM -domains. A consumer node can refer to the provider by a phandle and a set of -phandle arguments (so called PM domain specifiers) of length specified by the -#power-domain-cells property in the PM domain provider node. - -==PM domain providers== - -See power-domain.yaml. - -==PM domain consumers== - -Required properties: - - power-domains : A list of PM domain specifiers, as defined by bindings of - the power controller that is the PM domain provider. - -Optional properties: - - power-domain-names : A list of power domain name strings sorted in the same - order as the power-domains property. Consumers drivers will use - power-domain-names to match power domains with power-domains - specifiers. - -Example: - - leaky-device@12350000 { - compatible = "foo,i-leak-current"; - reg = <0x12350000 0x1000>; - power-domains = <&power 0>; - power-domain-names = "io"; - }; - - leaky-device@12351000 { - compatible = "foo,i-leak-current"; - reg = <0x12351000 0x1000>; - power-domains = <&power 0>, <&power 1> ; - power-domain-names = "io", "clk"; - }; - -The first example above defines a typical PM domain consumer device, which is -located inside a PM domain with index 0 of a power controller represented by a -node with the label "power". -In the second example the consumer device are partitioned across two PM domains, -the first with index 0 and the second with index 1, of a power controller that -is represented by a node with the label "power". - -Optional properties: -- required-opps: This contains phandle to an OPP node in another device's OPP - table. It may contain an array of phandles, where each phandle points to an - OPP of a different device. It should not contain multiple phandles to the OPP - nodes in the same OPP table. This specifies the minimum required OPP of the - device(s), whose OPP's phandle is present in this property, for the - functioning of the current device at the current OPP (where this property is - present). - -Example: -- OPP table for domain provider that provides two domains. - - domain0_opp_table: opp-table0 { - compatible = "operating-points-v2"; - - domain0_opp_0: opp-1000000000 { - opp-hz = /bits/ 64 <1000000000>; - opp-microvolt = <975000 970000 985000>; - }; - domain0_opp_1: opp-1100000000 { - opp-hz = /bits/ 64 <1100000000>; - opp-microvolt = <1000000 980000 1010000>; - }; - }; - - domain1_opp_table: opp-table1 { - compatible = "operating-points-v2"; - - domain1_opp_0: opp-1200000000 { - opp-hz = /bits/ 64 <1200000000>; - opp-microvolt = <975000 970000 985000>; - }; - domain1_opp_1: opp-1300000000 { - opp-hz = /bits/ 64 <1300000000>; - opp-microvolt = <1000000 980000 1010000>; - }; - }; - - power: power-controller@12340000 { - compatible = "foo,power-controller"; - reg = <0x12340000 0x1000>; - #power-domain-cells = <1>; - operating-points-v2 = <&domain0_opp_table>, <&domain1_opp_table>; - }; - - leaky-device0@12350000 { - compatible = "foo,i-leak-current"; - reg = <0x12350000 0x1000>; - power-domains = <&power 0>; - required-opps = <&domain0_opp_0>; - }; - - leaky-device1@12350000 { - compatible = "foo,i-leak-current"; - reg = <0x12350000 0x1000>; - power-domains = <&power 1>; - required-opps = <&domain1_opp_1>; - }; - -[1]. Documentation/devicetree/bindings/power/domain-idle-state.yaml +* Generic PM domains + +System on chip designs are often divided into multiple PM domains that can be +used for power gating of selected IP blocks for power saving by reduced leakage +current. + +This device tree binding can be used to bind PM domain consumer devices with +their PM domains provided by PM domain providers. A PM domain provider can be +represented by any node in the device tree and can provide one or more PM +domains. A consumer node can refer to the provider by a phandle and a set of +phandle arguments (so called PM domain specifiers) of length specified by the +#power-domain-cells property in the PM domain provider node. + +==PM domain providers== + +See power-domain.yaml. + +==PM domain consumers== + +Required properties: + - power-domains : A list of PM domain specifiers, as defined by bindings of + the power controller that is the PM domain provider. + +Optional properties: + - power-domain-names : A list of power domain name strings sorted in the same + order as the power-domains property. Consumers drivers will use + power-domain-names to match power domains with power-domains + specifiers. + +Example: + + leaky-device@12350000 { + compatible = "foo,i-leak-current"; + reg = <0x12350000 0x1000>; + power-domains = <&power 0>; + power-domain-names = "io"; + }; + + leaky-device@12351000 { + compatible = "foo,i-leak-current"; + reg = <0x12351000 0x1000>; + power-domains = <&power 0>, <&power 1> ; + power-domain-names = "io", "clk"; + }; + +The first example above defines a typical PM domain consumer device, which is +located inside a PM domain with index 0 of a power controller represented by a +node with the label "power". +In the second example the consumer device are partitioned across two PM domains, +the first with index 0 and the second with index 1, of a power controller that +is represented by a node with the label "power". + +Optional properties: +- required-opps: This contains phandle to an OPP node in another device's OPP + table. It may contain an array of phandles, where each phandle points to an + OPP of a different device. It should not contain multiple phandles to the OPP + nodes in the same OPP table. This specifies the minimum required OPP of the + device(s), whose OPP's phandle is present in this property, for the + functioning of the current device at the current OPP (where this property is + present). + +Example: +- OPP table for domain provider that provides two domains. + + domain0_opp_table: opp-table0 { + compatible = "operating-points-v2"; + + domain0_opp_0: opp-1000000000 { + opp-hz = /bits/ 64 <1000000000>; + opp-microvolt = <975000 970000 985000>; + }; + domain0_opp_1: opp-1100000000 { + opp-hz = /bits/ 64 <1100000000>; + opp-microvolt = <1000000 980000 1010000>; + }; + }; + + domain1_opp_table: opp-table1 { + compatible = "operating-points-v2"; + + domain1_opp_0: opp-1200000000 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <975000 970000 985000>; + }; + domain1_opp_1: opp-1300000000 { + opp-hz = /bits/ 64 <1300000000>; + opp-microvolt = <1000000 980000 1010000>; + }; + }; + + power: power-controller@12340000 { + compatible = "foo,power-controller"; + reg = <0x12340000 0x1000>; + #power-domain-cells = <1>; + operating-points-v2 = <&domain0_opp_table>, <&domain1_opp_table>; + }; + + leaky-device0@12350000 { + compatible = "foo,i-leak-current"; + reg = <0x12350000 0x1000>; + power-domains = <&power 0>; + required-opps = <&domain0_opp_0>; + }; + + leaky-device1@12350000 { + compatible = "foo,i-leak-current"; + reg = <0x12350000 0x1000>; + power-domains = <&power 1>; + required-opps = <&domain1_opp_1>; + }; + +[1]. Documentation/devicetree/bindings/power/domain-idle-state.yaml diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.yaml index 8f91601a6..fba6914ec 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.yaml @@ -1,121 +1,121 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/power/renesas,sysc-rmobile.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas R-Mobile System Controller - -maintainers: - - Geert Uytterhoeven - - Magnus Damm - -description: | - The R-Mobile System Controller provides the following functions: - - Boot mode management, - - Reset generation, - - Power management. - -properties: - compatible: - items: - - enum: - - renesas,sysc-r8a73a4 # R-Mobile APE6 - - renesas,sysc-r8a7740 # R-Mobile A1 - - renesas,sysc-sh73a0 # SH-Mobile AG5 - - const: renesas,sysc-rmobile # Generic SH/R-Mobile - - reg: - items: - - description: Normally accessible register block - - description: Register block protected by the HPB semaphore - - pm-domains: - type: object - description: | - This node contains a hierarchy of PM domain nodes, which should match the - Power Area Hierarchy in the Power Domain Specifications section of the - device's datasheet. - - properties: - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - - additionalProperties: - $ref: "#/$defs/pd-node" - -required: - - compatible - - reg - - pm-domains - -additionalProperties: false - -$defs: - pd-node: - type: object - description: - PM domain node representing a PM domain. This node should be named by - the real power area name, and thus its name should be unique. - - properties: - reg: - maxItems: 1 - description: - If the PM domain is not always-on, this property must contain the - bit index number for the corresponding power area in the various - Power Control and Status Registers. - If the PM domain is always-on, this property must be omitted. - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - - '#power-domain-cells': - const: 0 - - required: - - '#power-domain-cells' - - additionalProperties: - $ref: "#/$defs/pd-node" - -examples: - - | - // This shows a subset of the r8a7740 PM domain hierarchy, containing the - // C5 "always-on" domain, 2 of its subdomains (A4S and A4SU), and the A3SP - // domain, which is a subdomain of A4S. - sysc: system-controller@e6180000 { - compatible = "renesas,sysc-r8a7740", "renesas,sysc-rmobile"; - reg = <0xe6180000 0x8000>, <0xe6188000 0x8000>; - - pm-domains { - pd_c5: c5 { - #address-cells = <1>; - #size-cells = <0>; - #power-domain-cells = <0>; - - pd_a4s: a4s@10 { - reg = <10>; - #address-cells = <1>; - #size-cells = <0>; - #power-domain-cells = <0>; - - pd_a3sp: a3sp@11 { - reg = <11>; - #power-domain-cells = <0>; - }; - }; - - pd_a4su: a4su@20 { - reg = <20>; - #power-domain-cells = <0>; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/renesas,sysc-rmobile.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas R-Mobile System Controller + +maintainers: + - Geert Uytterhoeven + - Magnus Damm + +description: | + The R-Mobile System Controller provides the following functions: + - Boot mode management, + - Reset generation, + - Power management. + +properties: + compatible: + items: + - enum: + - renesas,sysc-r8a73a4 # R-Mobile APE6 + - renesas,sysc-r8a7740 # R-Mobile A1 + - renesas,sysc-sh73a0 # SH-Mobile AG5 + - const: renesas,sysc-rmobile # Generic SH/R-Mobile + + reg: + items: + - description: Normally accessible register block + - description: Register block protected by the HPB semaphore + + pm-domains: + type: object + description: | + This node contains a hierarchy of PM domain nodes, which should match the + Power Area Hierarchy in the Power Domain Specifications section of the + device's datasheet. + + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + additionalProperties: + $ref: "#/$defs/pd-node" + +required: + - compatible + - reg + - pm-domains + +additionalProperties: false + +$defs: + pd-node: + type: object + description: + PM domain node representing a PM domain. This node should be named by + the real power area name, and thus its name should be unique. + + properties: + reg: + maxItems: 1 + description: + If the PM domain is not always-on, this property must contain the + bit index number for the corresponding power area in the various + Power Control and Status Registers. + If the PM domain is always-on, this property must be omitted. + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + '#power-domain-cells': + const: 0 + + required: + - '#power-domain-cells' + + additionalProperties: + $ref: "#/$defs/pd-node" + +examples: + - | + // This shows a subset of the r8a7740 PM domain hierarchy, containing the + // C5 "always-on" domain, 2 of its subdomains (A4S and A4SU), and the A3SP + // domain, which is a subdomain of A4S. + sysc: system-controller@e6180000 { + compatible = "renesas,sysc-r8a7740", "renesas,sysc-rmobile"; + reg = <0xe6180000 0x8000>, <0xe6188000 0x8000>; + + pm-domains { + pd_c5: c5 { + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <0>; + + pd_a4s: a4s@10 { + reg = <10>; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <0>; + + pd_a3sp: a3sp@11 { + reg = <11>; + #power-domain-cells = <0>; + }; + }; + + pd_a4su: a4su@20 { + reg = <20>; + #power-domain-cells = <0>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/supply/bq24257.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/supply/bq24257.yaml index 5e4bc2e16..eb064bbf8 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/supply/bq24257.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/supply/bq24257.yaml @@ -1,124 +1,124 @@ -# SPDX-License-Identifier: GPL-2.0 -# Copyright (C) 2021 Sebastian Reichel -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/power/supply/bq24257.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Bq24250, bq24251 and bq24257 Li-Ion Charger - -maintainers: - - Sebastian Reichel - -allOf: - - $ref: power-supply.yaml# - -properties: - compatible: - enum: - - ti,bq24250 - - ti,bq24251 - - ti,bq24257 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - ti,battery-regulation-voltage: - $ref: /schemas/types.yaml#/definitions/uint32 - description: maximum charging voltage in uV - - ti,charge-current: - $ref: /schemas/types.yaml#/definitions/uint32 - description: maximum charging current in uA - - ti,termination-current: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - charge will be terminated when current in constant-voltage phase - drops below this value (in uA) - - pg-gpios: - description: | - GPIO used for connecting the bq2425x device PG (Power Good) pin. - This pin is not available on all devices however it should be used if - possible as this is the recommended way to obtain the charger's input PG - state. If this pin is not specified a software-based approach for PG - detection is used. - maxItems: 1 - - ti,current-limit: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - The maximum current to be drawn from the charger's input (in uA). - If this property is not specified, the input limit current is set - automatically using USB D+/D- signal based charger type detection. - If the hardware does not support the D+/D- based detection, a default - of 500,000 is used (=500mA) instead. - - ti,ovp-voltage: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Configures the over voltage protection voltage (in uV). - If not specified a default of 6,5000,000 (=6.5V) is used. - - ti,in-dpm-voltage: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Configures the threshold input voltage for the dynamic power path management (in uV). - If not specified a default of 4,360,000 (=4.36V) is used. - -required: - - compatible - - reg - - interrupts - - ti,battery-regulation-voltage - - ti,charge-current - - ti,termination-current - -additionalProperties: false - -examples: - - | - #include - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - charger@6a { - compatible = "ti,bq24257"; - reg = <0x6a>; - interrupt-parent = <&gpio1>; - interrupts = <16 IRQ_TYPE_EDGE_BOTH>; - - pg-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; - - ti,battery-regulation-voltage = <4200000>; - ti,charge-current = <1000000>; - ti,termination-current = <50000>; - }; - }; - - | - #include - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - charger@6a { - compatible = "ti,bq24250"; - reg = <0x6a>; - interrupt-parent = <&gpio1>; - interrupts = <16 IRQ_TYPE_EDGE_BOTH>; - - ti,battery-regulation-voltage = <4200000>; - ti,charge-current = <500000>; - ti,termination-current = <50000>; - ti,current-limit = <900000>; - ti,ovp-voltage = <9500000>; - ti,in-dpm-voltage = <4440000>; - }; - }; +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2021 Sebastian Reichel +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/supply/bq24257.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bq24250, bq24251 and bq24257 Li-Ion Charger + +maintainers: + - Sebastian Reichel + +allOf: + - $ref: power-supply.yaml# + +properties: + compatible: + enum: + - ti,bq24250 + - ti,bq24251 + - ti,bq24257 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + ti,battery-regulation-voltage: + $ref: /schemas/types.yaml#/definitions/uint32 + description: maximum charging voltage in uV + + ti,charge-current: + $ref: /schemas/types.yaml#/definitions/uint32 + description: maximum charging current in uA + + ti,termination-current: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + charge will be terminated when current in constant-voltage phase + drops below this value (in uA) + + pg-gpios: + description: | + GPIO used for connecting the bq2425x device PG (Power Good) pin. + This pin is not available on all devices however it should be used if + possible as this is the recommended way to obtain the charger's input PG + state. If this pin is not specified a software-based approach for PG + detection is used. + maxItems: 1 + + ti,current-limit: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + The maximum current to be drawn from the charger's input (in uA). + If this property is not specified, the input limit current is set + automatically using USB D+/D- signal based charger type detection. + If the hardware does not support the D+/D- based detection, a default + of 500,000 is used (=500mA) instead. + + ti,ovp-voltage: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Configures the over voltage protection voltage (in uV). + If not specified a default of 6,5000,000 (=6.5V) is used. + + ti,in-dpm-voltage: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Configures the threshold input voltage for the dynamic power path management (in uV). + If not specified a default of 4,360,000 (=4.36V) is used. + +required: + - compatible + - reg + - interrupts + - ti,battery-regulation-voltage + - ti,charge-current + - ti,termination-current + +additionalProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + charger@6a { + compatible = "ti,bq24257"; + reg = <0x6a>; + interrupt-parent = <&gpio1>; + interrupts = <16 IRQ_TYPE_EDGE_BOTH>; + + pg-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; + + ti,battery-regulation-voltage = <4200000>; + ti,charge-current = <1000000>; + ti,termination-current = <50000>; + }; + }; + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + charger@6a { + compatible = "ti,bq24250"; + reg = <0x6a>; + interrupt-parent = <&gpio1>; + interrupts = <16 IRQ_TYPE_EDGE_BOTH>; + + ti,battery-regulation-voltage = <4200000>; + ti,charge-current = <500000>; + ti,termination-current = <50000>; + ti,current-limit = <900000>; + ti,ovp-voltage = <9500000>; + ti,in-dpm-voltage = <4440000>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/supply/bq25890.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/supply/bq25890.yaml index f9d1d35b1..0ad302ab2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/supply/bq25890.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/supply/bq25890.yaml @@ -1,127 +1,127 @@ -# SPDX-License-Identifier: GPL-2.0 -# Copyright (C) 2021 Sebastian Reichel -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/power/supply/bq25890.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger - -maintainers: - - Sebastian Reichel - -allOf: - - $ref: power-supply.yaml# - -properties: - compatible: - oneOf: - - enum: - - ti,bq25890 - - items: - - enum: - - ti,bq25892 - - ti,bq25895 - - ti,bq25896 - - const: ti,bq25890 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - ti,battery-regulation-voltage: - $ref: /schemas/types.yaml#/definitions/uint32 - description: maximum charging voltage (in uV) - - ti,charge-current: - $ref: /schemas/types.yaml#/definitions/uint32 - description: maximum charging current (in uA) - - ti,termination-current: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - charge will be terminated when current in constant-voltage phase - drops below this value (in uA) - - ti,precharge-current: - $ref: /schemas/types.yaml#/definitions/uint32 - description: maximum charge current during precharge phase (in uA) - - ti,minimum-sys-voltage: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - when battery is charging and it is below minimum system voltage, - the system will be regulated above minimum-sys-voltage setting (in uV) - - ti,boost-voltage: - $ref: /schemas/types.yaml#/definitions/uint32 - description: VBUS voltage level in boost mode (in uV) - - ti,boost-max-current: - $ref: /schemas/types.yaml#/definitions/uint32 - description: maximum allowed current draw in boost mode (in uA) - - ti,boost-low-freq: - description: boost mode frequency will be 500kHz, otherwise 1.5MHz - type: boolean - - ti,use-ilim-pin: - description: | - ILIM resistor will be used and the input current will be the lower - between the resistor setting and the IINLIM register setting - type: boolean - - ti,thermal-regulation-threshold: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - temperature above which the charge current is lowered, to avoid overheating - (in degrees Celsius). If omitted, the default setting will be used (120 degrees) - - ti,ibatcomp-micro-ohms: - description: value of a resistor in series with the battery (in Micro Ohms) - - ti,ibatcomp-clamp-microvolt: - description: max. charging voltage adjustment due to expected voltage drop on in-series resistor - -required: - - compatible - - reg - - interrupts - - ti,battery-regulation-voltage - - ti,charge-current - - ti,termination-current - - ti,precharge-current - - ti,minimum-sys-voltage - - ti,boost-voltage - - ti,boost-max-current - -unevaluatedProperties: false - -examples: - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - charger@6a { - compatible = "ti,bq25890"; - reg = <0x6a>; - - interrupt-parent = <&gpio1>; - interrupts = <16 IRQ_TYPE_EDGE_FALLING>; - - ti,battery-regulation-voltage = <4200000>; - ti,charge-current = <1000000>; - ti,termination-current = <50000>; - ti,precharge-current = <128000>; - ti,minimum-sys-voltage = <3600000>; - ti,boost-voltage = <5000000>; - ti,boost-max-current = <1000000>; - - ti,use-ilim-pin; - ti,thermal-regulation-threshold = <120>; - }; - }; +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2021 Sebastian Reichel +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/supply/bq25890.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger + +maintainers: + - Sebastian Reichel + +allOf: + - $ref: power-supply.yaml# + +properties: + compatible: + oneOf: + - enum: + - ti,bq25890 + - items: + - enum: + - ti,bq25892 + - ti,bq25895 + - ti,bq25896 + - const: ti,bq25890 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + ti,battery-regulation-voltage: + $ref: /schemas/types.yaml#/definitions/uint32 + description: maximum charging voltage (in uV) + + ti,charge-current: + $ref: /schemas/types.yaml#/definitions/uint32 + description: maximum charging current (in uA) + + ti,termination-current: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + charge will be terminated when current in constant-voltage phase + drops below this value (in uA) + + ti,precharge-current: + $ref: /schemas/types.yaml#/definitions/uint32 + description: maximum charge current during precharge phase (in uA) + + ti,minimum-sys-voltage: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + when battery is charging and it is below minimum system voltage, + the system will be regulated above minimum-sys-voltage setting (in uV) + + ti,boost-voltage: + $ref: /schemas/types.yaml#/definitions/uint32 + description: VBUS voltage level in boost mode (in uV) + + ti,boost-max-current: + $ref: /schemas/types.yaml#/definitions/uint32 + description: maximum allowed current draw in boost mode (in uA) + + ti,boost-low-freq: + description: boost mode frequency will be 500kHz, otherwise 1.5MHz + type: boolean + + ti,use-ilim-pin: + description: | + ILIM resistor will be used and the input current will be the lower + between the resistor setting and the IINLIM register setting + type: boolean + + ti,thermal-regulation-threshold: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + temperature above which the charge current is lowered, to avoid overheating + (in degrees Celsius). If omitted, the default setting will be used (120 degrees) + + ti,ibatcomp-micro-ohms: + description: value of a resistor in series with the battery (in Micro Ohms) + + ti,ibatcomp-clamp-microvolt: + description: max. charging voltage adjustment due to expected voltage drop on in-series resistor + +required: + - compatible + - reg + - interrupts + - ti,battery-regulation-voltage + - ti,charge-current + - ti,termination-current + - ti,precharge-current + - ti,minimum-sys-voltage + - ti,boost-voltage + - ti,boost-max-current + +unevaluatedProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + charger@6a { + compatible = "ti,bq25890"; + reg = <0x6a>; + + interrupt-parent = <&gpio1>; + interrupts = <16 IRQ_TYPE_EDGE_FALLING>; + + ti,battery-regulation-voltage = <4200000>; + ti,charge-current = <1000000>; + ti,termination-current = <50000>; + ti,precharge-current = <128000>; + ti,minimum-sys-voltage = <3600000>; + ti,boost-voltage = <5000000>; + ti,boost-max-current = <1000000>; + + ti,use-ilim-pin; + ti,thermal-regulation-threshold = <120>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/supply/qcom,pm8916-lbc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/supply/qcom,pm8916-lbc.yaml index 48e22a8cc..cdf14e5ed 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/supply/qcom,pm8916-lbc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/supply/qcom,pm8916-lbc.yaml @@ -1,128 +1,128 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/power/supply/qcom,pm8916-lbc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Linear Battery Charger - -maintainers: - - Nikita Travkin - -description: - Linear Battery Charger hardware block, found in some Qualcomm PMICs - such as pm8916. Implements a simple, autonomous CC/CV charger. - -allOf: - - $ref: power-supply.yaml# - -properties: - compatible: - const: qcom,pm8916-lbc - - reg: - items: - - description: Charger - - description: Battery - - description: USB - - description: MISC - - reg-names: - items: - - const: chgr - - const: bat_if - - const: usb - - const: misc - - interrupts: - items: - - description: Battery detection - - description: Fast charging - - description: Charging failed - - description: Charging done - - description: Battery present - - description: Battery temperature OK - - description: USB coarse detection - - description: USB IN valid - - description: Charger gone - - description: Overtemperature - - interrupt-names: - items: - - const: vbat_det - - const: fast_chg - - const: chg_fail - - const: chg_done - - const: bat_pres - - const: temp_ok - - const: coarse_det - - const: usb_vbus - - const: chg_gone - - const: overtemp - - qcom,fast-charge-safe-voltage: - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 4000000 - maximum: 4775000 - description: - Maximum safe battery voltage in uV; May be pre-set by bootloader, - in which case, setting this will harmlessly fail. - - qcom,fast-charge-safe-current: - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 90000 - maximum: 1440000 - description: - Maximum safe battery charge current in uA; May be pre-set by - bootloader, in which case setting this will harmlessly fail. - - monitored-battery: true - -required: - - compatible - - reg - - interrupts - - interrupt-names - - qcom,fast-charge-safe-voltage - - qcom,fast-charge-safe-current - -additionalProperties: false - -examples: - - | - #include - pmic { - #address-cells = <1>; - #size-cells = <0>; - - charger@1000 { - compatible = "qcom,pm8916-lbc"; - reg = <0x1000>, <0x1200>, <0x1300>, <0x1600>; - reg-names = "chgr", "bat_if", "usb", "misc"; - - interrupts = <0x0 0x10 0 IRQ_TYPE_EDGE_BOTH>, - <0x0 0x10 5 IRQ_TYPE_EDGE_BOTH>, - <0x0 0x10 6 IRQ_TYPE_EDGE_BOTH>, - <0x0 0x10 7 IRQ_TYPE_EDGE_BOTH>, - <0x0 0x12 0 IRQ_TYPE_EDGE_BOTH>, - <0x0 0x12 1 IRQ_TYPE_EDGE_BOTH>, - <0x0 0x13 0 IRQ_TYPE_EDGE_BOTH>, - <0x0 0x13 1 IRQ_TYPE_EDGE_BOTH>, - <0x0 0x13 2 IRQ_TYPE_EDGE_BOTH>, - <0x0 0x13 4 IRQ_TYPE_EDGE_BOTH>; - interrupt-names = "vbat_det", - "fast_chg", - "chg_fail", - "chg_done", - "bat_pres", - "temp_ok", - "coarse_det", - "usb_vbus", - "chg_gone", - "overtemp"; - monitored-battery = <&battery>; - - qcom,fast-charge-safe-current = <900000>; - qcom,fast-charge-safe-voltage = <4300000>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/supply/qcom,pm8916-lbc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Linear Battery Charger + +maintainers: + - Nikita Travkin + +description: + Linear Battery Charger hardware block, found in some Qualcomm PMICs + such as pm8916. Implements a simple, autonomous CC/CV charger. + +allOf: + - $ref: power-supply.yaml# + +properties: + compatible: + const: qcom,pm8916-lbc + + reg: + items: + - description: Charger + - description: Battery + - description: USB + - description: MISC + + reg-names: + items: + - const: chgr + - const: bat_if + - const: usb + - const: misc + + interrupts: + items: + - description: Battery detection + - description: Fast charging + - description: Charging failed + - description: Charging done + - description: Battery present + - description: Battery temperature OK + - description: USB coarse detection + - description: USB IN valid + - description: Charger gone + - description: Overtemperature + + interrupt-names: + items: + - const: vbat_det + - const: fast_chg + - const: chg_fail + - const: chg_done + - const: bat_pres + - const: temp_ok + - const: coarse_det + - const: usb_vbus + - const: chg_gone + - const: overtemp + + qcom,fast-charge-safe-voltage: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 4000000 + maximum: 4775000 + description: + Maximum safe battery voltage in uV; May be pre-set by bootloader, + in which case, setting this will harmlessly fail. + + qcom,fast-charge-safe-current: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 90000 + maximum: 1440000 + description: + Maximum safe battery charge current in uA; May be pre-set by + bootloader, in which case setting this will harmlessly fail. + + monitored-battery: true + +required: + - compatible + - reg + - interrupts + - interrupt-names + - qcom,fast-charge-safe-voltage + - qcom,fast-charge-safe-current + +additionalProperties: false + +examples: + - | + #include + pmic { + #address-cells = <1>; + #size-cells = <0>; + + charger@1000 { + compatible = "qcom,pm8916-lbc"; + reg = <0x1000>, <0x1200>, <0x1300>, <0x1600>; + reg-names = "chgr", "bat_if", "usb", "misc"; + + interrupts = <0x0 0x10 0 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x10 5 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x10 6 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x10 7 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x12 0 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x12 1 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x13 0 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x13 1 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x13 2 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x13 4 IRQ_TYPE_EDGE_BOTH>; + interrupt-names = "vbat_det", + "fast_chg", + "chg_fail", + "chg_done", + "bat_pres", + "temp_ok", + "coarse_det", + "usb_vbus", + "chg_gone", + "overtemp"; + monitored-battery = <&battery>; + + qcom,fast-charge-safe-current = <900000>; + qcom,fast-charge-safe-voltage = <4300000>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-charger.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-charger.yaml index f3aa2b4d3..e33329b3a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-charger.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-charger.yaml @@ -1,127 +1,127 @@ -# SPDX-License-Identifier: GPL-2.0 -# Copyright (C) 2021 Sebastian Reichel -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/power/supply/stericsson,ab8500-charger.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: AB8500 Charger - -maintainers: - - Sebastian Reichel - -allOf: - - $ref: power-supply.yaml# - -properties: - compatible: - const: stericsson,ab8500-charger - - monitored-battery: - $ref: /schemas/types.yaml#/definitions/phandle - description: phandle to battery node - - battery: - $ref: /schemas/types.yaml#/definitions/phandle - deprecated: true - - vddadc-supply: - description: Supply for USB and Main charger - - autopower_cfg: - type: boolean - description: automatic poweron after powerloss - - interrupts: - maxItems: 14 - - interrupt-names: - items: - - const: MAIN_CH_UNPLUG_DET - - const: MAIN_CHARGE_PLUG_DET - - const: MAIN_EXT_CH_NOT_OK - - const: MAIN_CH_TH_PROT_R - - const: MAIN_CH_TH_PROT_F - - const: VBUS_DET_F - - const: VBUS_DET_R - - const: USB_LINK_STATUS - - const: USB_CH_TH_PROT_R - - const: USB_CH_TH_PROT_F - - const: USB_CHARGER_NOT_OKR - - const: VBUS_OVV - - const: CH_WD_EXP - - const: VBUS_CH_DROP_END - - io-channels: - minItems: 2 - maxItems: 4 - - io-channel-names: - oneOf: - - items: - - const: main_charger_v - - const: main_charger_c - - const: vbus_v - - const: usb_charger_c - - items: - - const: vbus_v - - const: usb_charger_c - - -required: - - compatible - - monitored-battery - - vddadc-supply - - interrupts - - interrupt-names - - io-channels - - io-channel-names - -additionalProperties: false - -examples: - - | - #include - pmic { - charger { - compatible = "stericsson,ab8500-charger"; - monitored-battery = <&battery>; - vddadc-supply = <&ab8500_ldo_tvout_reg>; - interrupts = <10 IRQ_TYPE_LEVEL_HIGH>, - <11 IRQ_TYPE_LEVEL_HIGH>, - <0 IRQ_TYPE_LEVEL_HIGH>, - <107 IRQ_TYPE_LEVEL_HIGH>, - <106 IRQ_TYPE_LEVEL_HIGH>, - <14 IRQ_TYPE_LEVEL_HIGH>, - <15 IRQ_TYPE_LEVEL_HIGH>, - <79 IRQ_TYPE_LEVEL_HIGH>, - <105 IRQ_TYPE_LEVEL_HIGH>, - <104 IRQ_TYPE_LEVEL_HIGH>, - <89 IRQ_TYPE_LEVEL_HIGH>, - <22 IRQ_TYPE_LEVEL_HIGH>, - <21 IRQ_TYPE_LEVEL_HIGH>, - <16 IRQ_TYPE_LEVEL_HIGH>; - interrupt-names = "MAIN_CH_UNPLUG_DET", - "MAIN_CHARGE_PLUG_DET", - "MAIN_EXT_CH_NOT_OK", - "MAIN_CH_TH_PROT_R", - "MAIN_CH_TH_PROT_F", - "VBUS_DET_F", - "VBUS_DET_R", - "USB_LINK_STATUS", - "USB_CH_TH_PROT_R", - "USB_CH_TH_PROT_F", - "USB_CHARGER_NOT_OKR", - "VBUS_OVV", - "CH_WD_EXP", - "VBUS_CH_DROP_END"; - io-channels = <&gpadc 0x03>, - <&gpadc 0x0a>, - <&gpadc 0x09>, - <&gpadc 0x0b>; - io-channel-names = "main_charger_v", - "main_charger_c", - "vbus_v", - "usb_charger_c"; - }; - }; +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2021 Sebastian Reichel +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/supply/stericsson,ab8500-charger.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AB8500 Charger + +maintainers: + - Sebastian Reichel + +allOf: + - $ref: power-supply.yaml# + +properties: + compatible: + const: stericsson,ab8500-charger + + monitored-battery: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle to battery node + + battery: + $ref: /schemas/types.yaml#/definitions/phandle + deprecated: true + + vddadc-supply: + description: Supply for USB and Main charger + + autopower_cfg: + type: boolean + description: automatic poweron after powerloss + + interrupts: + maxItems: 14 + + interrupt-names: + items: + - const: MAIN_CH_UNPLUG_DET + - const: MAIN_CHARGE_PLUG_DET + - const: MAIN_EXT_CH_NOT_OK + - const: MAIN_CH_TH_PROT_R + - const: MAIN_CH_TH_PROT_F + - const: VBUS_DET_F + - const: VBUS_DET_R + - const: USB_LINK_STATUS + - const: USB_CH_TH_PROT_R + - const: USB_CH_TH_PROT_F + - const: USB_CHARGER_NOT_OKR + - const: VBUS_OVV + - const: CH_WD_EXP + - const: VBUS_CH_DROP_END + + io-channels: + minItems: 2 + maxItems: 4 + + io-channel-names: + oneOf: + - items: + - const: main_charger_v + - const: main_charger_c + - const: vbus_v + - const: usb_charger_c + - items: + - const: vbus_v + - const: usb_charger_c + + +required: + - compatible + - monitored-battery + - vddadc-supply + - interrupts + - interrupt-names + - io-channels + - io-channel-names + +additionalProperties: false + +examples: + - | + #include + pmic { + charger { + compatible = "stericsson,ab8500-charger"; + monitored-battery = <&battery>; + vddadc-supply = <&ab8500_ldo_tvout_reg>; + interrupts = <10 IRQ_TYPE_LEVEL_HIGH>, + <11 IRQ_TYPE_LEVEL_HIGH>, + <0 IRQ_TYPE_LEVEL_HIGH>, + <107 IRQ_TYPE_LEVEL_HIGH>, + <106 IRQ_TYPE_LEVEL_HIGH>, + <14 IRQ_TYPE_LEVEL_HIGH>, + <15 IRQ_TYPE_LEVEL_HIGH>, + <79 IRQ_TYPE_LEVEL_HIGH>, + <105 IRQ_TYPE_LEVEL_HIGH>, + <104 IRQ_TYPE_LEVEL_HIGH>, + <89 IRQ_TYPE_LEVEL_HIGH>, + <22 IRQ_TYPE_LEVEL_HIGH>, + <21 IRQ_TYPE_LEVEL_HIGH>, + <16 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "MAIN_CH_UNPLUG_DET", + "MAIN_CHARGE_PLUG_DET", + "MAIN_EXT_CH_NOT_OK", + "MAIN_CH_TH_PROT_R", + "MAIN_CH_TH_PROT_F", + "VBUS_DET_F", + "VBUS_DET_R", + "USB_LINK_STATUS", + "USB_CH_TH_PROT_R", + "USB_CH_TH_PROT_F", + "USB_CHARGER_NOT_OKR", + "VBUS_OVV", + "CH_WD_EXP", + "VBUS_CH_DROP_END"; + io-channels = <&gpadc 0x03>, + <&gpadc 0x0a>, + <&gpadc 0x09>, + <&gpadc 0x0b>; + io-channel-names = "main_charger_v", + "main_charger_c", + "vbus_v", + "usb_charger_c"; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/powerpc/fsl/srio.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/powerpc/fsl/srio.txt index c20cb1076..86ee6ea73 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/powerpc/fsl/srio.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/powerpc/fsl/srio.txt @@ -1,104 +1,104 @@ -* Freescale Serial RapidIO (SRIO) Controller - -RapidIO port node: -Properties: - - compatible - Usage: required - Value type: - Definition: Must include "fsl,srio" for IP blocks with IP Block - Revision Register (SRIO IPBRR1) Major ID equal to 0x01c0. - - Optionally, a compatible string of "fsl,srio-vX.Y" where X is Major - version in IP Block Revision Register and Y is Minor version. If this - compatible is provided it should be ordered before "fsl,srio". - - - reg - Usage: required - Value type: - Definition: A standard property. Specifies the physical address and - length of the SRIO configuration registers. The size should - be set to 0x11000. - - - interrupts - Usage: required - Value type: - Definition: Specifies the interrupts generated by this device. The - value of the interrupts property consists of one interrupt - specifier. The format of the specifier is defined by the - binding document describing the node's interrupt parent. - - A single IRQ that handles error conditions is specified by this - property. (Typically shared with port-write). - - - fsl,srio-rmu-handle: - Usage: required if rmu node is defined - Value type: - Definition: A single value that points to the RMU. - (See srio-rmu.txt for more details on RMU node binding) - -Port Child Nodes: There should a port child node for each port that exists in -the controller. The ports are numbered starting at one (1) and should have -the following properties: - - - cell-index - Usage: required - Value type: - Definition: A standard property. Matches the port id. - - - ranges - Usage: required if local access windows preset - Value type: - Definition: A standard property. Utilized to describe the memory mapped - IO space utilized by the controller. This corresponds to the - setting of the local access windows that are targeted to this - SRIO port. - - - fsl,liodn - Usage: optional-but-recommended (for devices with PAMU) - Value type: - Definition: The logical I/O device number for the PAMU (IOMMU) to be - correctly configured for SRIO accesses. The property should - not exist on devices that do not support PAMU. - - For HW (ie, the P4080) that only supports a LIODN for both - memory and maintenance transactions then a single LIODN is - represented in the property for both transactions. - - For HW (ie, the P304x/P5020, etc) that supports an LIODN for - memory transactions and a unique LIODN for maintenance - transactions then a pair of LIODNs are represented in the - property. Within the pair, the first element represents the - LIODN associated with memory transactions and the second element - represents the LIODN associated with maintenance transactions - for the port. - -Note: All other standard properties (see the Devicetree Specification) -are allowed but are optional. - -Example: - - rapidio: rapidio@ffe0c0000 { - #address-cells = <2>; - #size-cells = <2>; - reg = <0xf 0xfe0c0000 0 0x11000>; - compatible = "fsl,srio"; - interrupts = <16 2 1 11>; /* err_irq */ - fsl,srio-rmu-handle = <&rmu>; - ranges; - - port1 { - cell-index = <1>; - #address-cells = <2>; - #size-cells = <2>; - fsl,liodn = <34>; - ranges = <0 0 0xc 0x20000000 0 0x10000000>; - }; - - port2 { - cell-index = <2>; - #address-cells = <2>; - #size-cells = <2>; - fsl,liodn = <48>; - ranges = <0 0 0xc 0x30000000 0 0x10000000>; - }; - }; +* Freescale Serial RapidIO (SRIO) Controller + +RapidIO port node: +Properties: + - compatible + Usage: required + Value type: + Definition: Must include "fsl,srio" for IP blocks with IP Block + Revision Register (SRIO IPBRR1) Major ID equal to 0x01c0. + + Optionally, a compatible string of "fsl,srio-vX.Y" where X is Major + version in IP Block Revision Register and Y is Minor version. If this + compatible is provided it should be ordered before "fsl,srio". + + - reg + Usage: required + Value type: + Definition: A standard property. Specifies the physical address and + length of the SRIO configuration registers. The size should + be set to 0x11000. + + - interrupts + Usage: required + Value type: + Definition: Specifies the interrupts generated by this device. The + value of the interrupts property consists of one interrupt + specifier. The format of the specifier is defined by the + binding document describing the node's interrupt parent. + + A single IRQ that handles error conditions is specified by this + property. (Typically shared with port-write). + + - fsl,srio-rmu-handle: + Usage: required if rmu node is defined + Value type: + Definition: A single value that points to the RMU. + (See srio-rmu.txt for more details on RMU node binding) + +Port Child Nodes: There should a port child node for each port that exists in +the controller. The ports are numbered starting at one (1) and should have +the following properties: + + - cell-index + Usage: required + Value type: + Definition: A standard property. Matches the port id. + + - ranges + Usage: required if local access windows preset + Value type: + Definition: A standard property. Utilized to describe the memory mapped + IO space utilized by the controller. This corresponds to the + setting of the local access windows that are targeted to this + SRIO port. + + - fsl,liodn + Usage: optional-but-recommended (for devices with PAMU) + Value type: + Definition: The logical I/O device number for the PAMU (IOMMU) to be + correctly configured for SRIO accesses. The property should + not exist on devices that do not support PAMU. + + For HW (ie, the P4080) that only supports a LIODN for both + memory and maintenance transactions then a single LIODN is + represented in the property for both transactions. + + For HW (ie, the P304x/P5020, etc) that supports an LIODN for + memory transactions and a unique LIODN for maintenance + transactions then a pair of LIODNs are represented in the + property. Within the pair, the first element represents the + LIODN associated with memory transactions and the second element + represents the LIODN associated with maintenance transactions + for the port. + +Note: All other standard properties (see the Devicetree Specification) +are allowed but are optional. + +Example: + + rapidio: rapidio@ffe0c0000 { + #address-cells = <2>; + #size-cells = <2>; + reg = <0xf 0xfe0c0000 0 0x11000>; + compatible = "fsl,srio"; + interrupts = <16 2 1 11>; /* err_irq */ + fsl,srio-rmu-handle = <&rmu>; + ranges; + + port1 { + cell-index = <1>; + #address-cells = <2>; + #size-cells = <2>; + fsl,liodn = <34>; + ranges = <0 0 0xc 0x20000000 0 0x10000000>; + }; + + port2 { + cell-index = <2>; + #address-cells = <2>; + #size-cells = <2>; + fsl,liodn = <48>; + ranges = <0 0 0xc 0x30000000 0 0x10000000>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pwm/pwm-samsung.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pwm/pwm-samsung.yaml index 3689c9e76..17a2b927a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pwm/pwm-samsung.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/pwm/pwm-samsung.yaml @@ -1,129 +1,129 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pwm/pwm-samsung.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung SoC PWM timers - -maintainers: - - Thierry Reding - - Krzysztof Kozlowski - -description: |+ - Samsung SoCs contain PWM timer blocks which can be used for system clock source - and clock event timers, as well as to drive SoC outputs with PWM signal. Each - PWM timer block provides 5 PWM channels (not all of them can drive physical - outputs - see SoC and board manual). - - Be aware that the clocksource driver supports only uniprocessor systems. - -properties: - compatible: - oneOf: - - enum: - - samsung,s3c2410-pwm # 16-bit, S3C24xx - - samsung,s3c6400-pwm # 32-bit, S3C64xx - - samsung,s5p6440-pwm # 32-bit, S5P64x0 - - samsung,s5pc100-pwm # 32-bit, S5PC100, S5PV210, Exynos4210 rev0 SoCs - - samsung,exynos4210-pwm # 32-bit, Exynos - - items: - - enum: - - samsung,exynos5433-pwm - - samsung,exynos7-pwm - - samsung,exynosautov9-pwm - - samsung,exynosautov920-pwm - - tesla,fsd-pwm - - const: samsung,exynos4210-pwm - - reg: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 3 - - clock-names: - description: | - Should contain all following required clock names: - - "timers" - PWM base clock used to generate PWM signals, - and any subset of following optional clock names: - - "pwm-tclk0" - first external PWM clock source, - - "pwm-tclk1" - second external PWM clock source. - Note that not all IP variants allow using all external clock sources. - Refer to SoC documentation to learn which clock source configurations - are available. - oneOf: - - items: - - const: timers - - items: - - const: timers - - const: pwm-tclk0 - - items: - - const: timers - - const: pwm-tclk1 - - items: - - const: timers - - const: pwm-tclk0 - - const: pwm-tclk1 - - interrupts: - description: - One interrupt per timer, starting at timer 0. Necessary only for SoCs which - use PWM clocksource. - minItems: 1 - maxItems: 5 - - "#pwm-cells": - description: - The only third cell flag supported by this binding - is PWM_POLARITY_INVERTED. - const: 3 - - samsung,pwm-outputs: - description: - A list of PWM channels used as PWM outputs on particular platform. - It is an array of up to 5 elements being indices of PWM channels - (from 0 to 4), the order does not matter. - $ref: /schemas/types.yaml#/definitions/uint32-array - uniqueItems: true - items: - minimum: 0 - maximum: 4 - -required: - - clocks - - clock-names - - compatible - - reg - -additionalProperties: false - -allOf: - - $ref: pwm.yaml# - - - if: - properties: - compatible: - contains: - enum: - - samsung,s3c2410-pwm - - samsung,s3c6400-pwm - - samsung,s5p6440-pwm - - samsung,s5pc100-pwm - then: - required: - - interrupts - -examples: - - | - pwm@7f006000 { - compatible = "samsung,s3c6400-pwm"; - reg = <0x7f006000 0x1000>; - interrupt-parent = <&vic0>; - interrupts = <23>, <24>, <25>, <27>, <28>; - clocks = <&clock 67>; - clock-names = "timers"; - samsung,pwm-outputs = <0>, <1>; - #pwm-cells = <3>; - }; +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/pwm-samsung.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung SoC PWM timers + +maintainers: + - Thierry Reding + - Krzysztof Kozlowski + +description: |+ + Samsung SoCs contain PWM timer blocks which can be used for system clock source + and clock event timers, as well as to drive SoC outputs with PWM signal. Each + PWM timer block provides 5 PWM channels (not all of them can drive physical + outputs - see SoC and board manual). + + Be aware that the clocksource driver supports only uniprocessor systems. + +properties: + compatible: + oneOf: + - enum: + - samsung,s3c2410-pwm # 16-bit, S3C24xx + - samsung,s3c6400-pwm # 32-bit, S3C64xx + - samsung,s5p6440-pwm # 32-bit, S5P64x0 + - samsung,s5pc100-pwm # 32-bit, S5PC100, S5PV210, Exynos4210 rev0 SoCs + - samsung,exynos4210-pwm # 32-bit, Exynos + - items: + - enum: + - samsung,exynos5433-pwm + - samsung,exynos7-pwm + - samsung,exynosautov9-pwm + - samsung,exynosautov920-pwm + - tesla,fsd-pwm + - const: samsung,exynos4210-pwm + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 3 + + clock-names: + description: | + Should contain all following required clock names: + - "timers" - PWM base clock used to generate PWM signals, + and any subset of following optional clock names: + - "pwm-tclk0" - first external PWM clock source, + - "pwm-tclk1" - second external PWM clock source. + Note that not all IP variants allow using all external clock sources. + Refer to SoC documentation to learn which clock source configurations + are available. + oneOf: + - items: + - const: timers + - items: + - const: timers + - const: pwm-tclk0 + - items: + - const: timers + - const: pwm-tclk1 + - items: + - const: timers + - const: pwm-tclk0 + - const: pwm-tclk1 + + interrupts: + description: + One interrupt per timer, starting at timer 0. Necessary only for SoCs which + use PWM clocksource. + minItems: 1 + maxItems: 5 + + "#pwm-cells": + description: + The only third cell flag supported by this binding + is PWM_POLARITY_INVERTED. + const: 3 + + samsung,pwm-outputs: + description: + A list of PWM channels used as PWM outputs on particular platform. + It is an array of up to 5 elements being indices of PWM channels + (from 0 to 4), the order does not matter. + $ref: /schemas/types.yaml#/definitions/uint32-array + uniqueItems: true + items: + minimum: 0 + maximum: 4 + +required: + - clocks + - clock-names + - compatible + - reg + +additionalProperties: false + +allOf: + - $ref: pwm.yaml# + + - if: + properties: + compatible: + contains: + enum: + - samsung,s3c2410-pwm + - samsung,s3c6400-pwm + - samsung,s5p6440-pwm + - samsung,s5pc100-pwm + then: + required: + - interrupts + +examples: + - | + pwm@7f006000 { + compatible = "samsung,s3c6400-pwm"; + reg = <0x7f006000 0x1000>; + interrupt-parent = <&vic0>; + interrupts = <23>, <24>, <25>, <27>, <28>; + clocks = <&clock 67>; + clock-names = "timers"; + samsung,pwm-outputs = <0>, <1>; + #pwm-cells = <3>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/active-semi,act8846.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/active-semi,act8846.yaml index 9cd4278b9..02f45b583 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/active-semi,act8846.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/active-semi,act8846.yaml @@ -1,167 +1,167 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/regulator/active-semi,act8846.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Active-semi ACT8846 regulator - -maintainers: - - Paul Cercueil - -properties: - compatible: - const: active-semi,act8846 - - reg: - maxItems: 1 - - system-power-controller: - description: - Indicates that the ACT8846 is responsible for powering OFF - the system. - type: boolean - - active-semi,vsel-high: - description: - Indicates the VSEL pin is high. If this property is missing, - the VSEL pin is assumed to be low. - type: boolean - - inl1-supply: - description: Handle to the INL1 input supply (REG5-7) - - inl2-supply: - description: Handle to the INL2 input supply (REG8-9) - - inl3-supply: - description: Handle to the INL3 input supply (REG10-12) - - vp1-supply: - description: Handle to the VP1 input supply (REG1) - - vp2-supply: - description: Handle to the VP2 input supply (REG2) - - vp3-supply: - description: Handle to the VP3 input supply (REG3) - - vp4-supply: - description: Handle to the VP4 input supply (REG4) - - regulators: - type: object - additionalProperties: false - - patternProperties: - "^REG([1-9]|1[0-2])$": - type: object - $ref: /schemas/regulator/regulator.yaml# - unevaluatedProperties: false - -additionalProperties: false - -required: - - reg - - compatible - - regulators - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - pmic@5a { - compatible = "active-semi,act8846"; - reg = <0x5a>; - - system-power-controller; - - regulators { - REG1 { - regulator-name = "VCC_DDR"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-always-on; - }; - - REG2 { - regulator-name = "VCC_IO"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - }; - - REG3 { - regulator-name = "VDD_LOG"; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1000000>; - regulator-always-on; - }; - - REG4 { - regulator-name = "VCC_20"; - regulator-min-microvolt = <2000000>; - regulator-max-microvolt = <2000000>; - regulator-always-on; - }; - - REG5 { - regulator-name = "VCCIO_SD"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - }; - - REG6 { - regulator-name = "VDD10_LCD"; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1000000>; - regulator-always-on; - }; - - REG7 { - regulator-name = "VCC_WL"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - }; - - REG8 { - regulator-name = "VCCA_33"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - }; - - REG9 { - regulator-name = "VCC_LAN"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - }; - - REG10 { - regulator-name = "VDD_10"; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1000000>; - regulator-always-on; - }; - - REG11 { - regulator-name = "VCC_18"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - }; - - REG12 { - regulator-name = "VCC18_LCD"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/active-semi,act8846.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Active-semi ACT8846 regulator + +maintainers: + - Paul Cercueil + +properties: + compatible: + const: active-semi,act8846 + + reg: + maxItems: 1 + + system-power-controller: + description: + Indicates that the ACT8846 is responsible for powering OFF + the system. + type: boolean + + active-semi,vsel-high: + description: + Indicates the VSEL pin is high. If this property is missing, + the VSEL pin is assumed to be low. + type: boolean + + inl1-supply: + description: Handle to the INL1 input supply (REG5-7) + + inl2-supply: + description: Handle to the INL2 input supply (REG8-9) + + inl3-supply: + description: Handle to the INL3 input supply (REG10-12) + + vp1-supply: + description: Handle to the VP1 input supply (REG1) + + vp2-supply: + description: Handle to the VP2 input supply (REG2) + + vp3-supply: + description: Handle to the VP3 input supply (REG3) + + vp4-supply: + description: Handle to the VP4 input supply (REG4) + + regulators: + type: object + additionalProperties: false + + patternProperties: + "^REG([1-9]|1[0-2])$": + type: object + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + +additionalProperties: false + +required: + - reg + - compatible + - regulators + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@5a { + compatible = "active-semi,act8846"; + reg = <0x5a>; + + system-power-controller; + + regulators { + REG1 { + regulator-name = "VCC_DDR"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + }; + + REG2 { + regulator-name = "VCC_IO"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + REG3 { + regulator-name = "VDD_LOG"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + }; + + REG4 { + regulator-name = "VCC_20"; + regulator-min-microvolt = <2000000>; + regulator-max-microvolt = <2000000>; + regulator-always-on; + }; + + REG5 { + regulator-name = "VCCIO_SD"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + REG6 { + regulator-name = "VDD10_LCD"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + }; + + REG7 { + regulator-name = "VCC_WL"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + REG8 { + regulator-name = "VCCA_33"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + REG9 { + regulator-name = "VCC_LAN"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + REG10 { + regulator-name = "VDD_10"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + }; + + REG11 { + regulator-name = "VCC_18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + REG12 { + regulator-name = "VCC18_LCD"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/active-semi,act8865.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/active-semi,act8865.yaml index 26337dbda..afe1abc2d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/active-semi,act8865.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/active-semi,act8865.yaml @@ -1,158 +1,158 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/regulator/active-semi,act8865.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Active-semi ACT8865 regulator - -maintainers: - - Paul Cercueil - -properties: - compatible: - const: active-semi,act8865 - - reg: - maxItems: 1 - - system-power-controller: - description: - Indicates that the ACT8865 is responsible for powering OFF - the system. - type: boolean - - active-semi,vsel-high: - description: - Indicates the VSEL pin is high. If this property is missing, - the VSEL pin is assumed to be low. - type: boolean - - regulators: - type: object - additionalProperties: false - - properties: - DCDC_REG1: - type: object - $ref: /schemas/regulator/regulator.yaml# - unevaluatedProperties: false - - properties: - vp1-supply: - description: Handle to the VP1 input supply - - DCDC_REG2: - type: object - $ref: /schemas/regulator/regulator.yaml# - unevaluatedProperties: false - - properties: - vp2-supply: - description: Handle to the VP2 input supply - - DCDC_REG3: - type: object - $ref: /schemas/regulator/regulator.yaml# - unevaluatedProperties: false - - properties: - vp3-supply: - description: Handle to the VP3 input supply - - patternProperties: - "^LDO_REG[1-2]$": - type: object - $ref: /schemas/regulator/regulator.yaml# - unevaluatedProperties: false - - properties: - inl45-supply: - description: Handle to the INL45 input supply - - "^LDO_REG[3-4]$": - type: object - $ref: /schemas/regulator/regulator.yaml# - unevaluatedProperties: false - - properties: - inl67-supply: - description: Handle to the INL67 input supply - -additionalProperties: false - -required: - - reg - - compatible - - regulators - -examples: - - | - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - pmic@5b { - compatible = "active-semi,act8865"; - reg = <0x5b>; - active-semi,vsel-high; - - regulators { - DCDC_REG1 { - regulator-name = "VCC_1V8"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - }; - - DCDC_REG2 { - regulator-name = "VCC_1V2"; - regulator-min-microvolt = <1100000>; - regulator-max-microvolt = <1300000>; - regulator-always-on; - - regulator-allowed-modes = , - ; - regulator-initial-mode = ; - - regulator-state-mem { - regulator-on-in-suspend; - regulator-suspend-min-microvolt = <1150000>; - regulator-suspend-max-microvolt = <1150000>; - regulator-changeable-in-suspend; - regulator-mode = ; - }; - }; - - DCDC_REG3 { - regulator-name = "VCC_3V3"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - }; - - LDO_REG1 { - regulator-name = "VDDANA"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - - regulator-allowed-modes = , - ; - regulator-initial-mode = ; - - regulator-state-mem { - regulator-off-in-suspend; - }; - }; - - LDO_REG2 { - regulator-name = "FUSE_2V5"; - regulator-min-microvolt = <2500000>; - regulator-max-microvolt = <2500000>; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/active-semi,act8865.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Active-semi ACT8865 regulator + +maintainers: + - Paul Cercueil + +properties: + compatible: + const: active-semi,act8865 + + reg: + maxItems: 1 + + system-power-controller: + description: + Indicates that the ACT8865 is responsible for powering OFF + the system. + type: boolean + + active-semi,vsel-high: + description: + Indicates the VSEL pin is high. If this property is missing, + the VSEL pin is assumed to be low. + type: boolean + + regulators: + type: object + additionalProperties: false + + properties: + DCDC_REG1: + type: object + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + + properties: + vp1-supply: + description: Handle to the VP1 input supply + + DCDC_REG2: + type: object + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + + properties: + vp2-supply: + description: Handle to the VP2 input supply + + DCDC_REG3: + type: object + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + + properties: + vp3-supply: + description: Handle to the VP3 input supply + + patternProperties: + "^LDO_REG[1-2]$": + type: object + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + + properties: + inl45-supply: + description: Handle to the INL45 input supply + + "^LDO_REG[3-4]$": + type: object + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + + properties: + inl67-supply: + description: Handle to the INL67 input supply + +additionalProperties: false + +required: + - reg + - compatible + - regulators + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@5b { + compatible = "active-semi,act8865"; + reg = <0x5b>; + active-semi,vsel-high; + + regulators { + DCDC_REG1 { + regulator-name = "VCC_1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + DCDC_REG2 { + regulator-name = "VCC_1V2"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1300000>; + regulator-always-on; + + regulator-allowed-modes = , + ; + regulator-initial-mode = ; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-min-microvolt = <1150000>; + regulator-suspend-max-microvolt = <1150000>; + regulator-changeable-in-suspend; + regulator-mode = ; + }; + }; + + DCDC_REG3 { + regulator-name = "VCC_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + LDO_REG1 { + regulator-name = "VDDANA"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + + regulator-allowed-modes = , + ; + regulator-initial-mode = ; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + LDO_REG2 { + regulator-name = "FUSE_2V5"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/dlg,slg51000.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/dlg,slg51000.yaml index f42cc9219..bad140418 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/dlg,slg51000.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/dlg,slg51000.yaml @@ -1,132 +1,132 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/regulator/dlg,slg51000.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Dialog Semiconductor SLG51000 Voltage Regulator - -maintainers: - - Eric Jeong - - Support Opensource - -properties: - compatible: - const: dlg,slg51000 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - dlg,cs-gpios: - maxItems: 1 - description: - GPIO for chip select - - vin3-supply: - description: - Input supply for ldo3, required if regulator is enabled - - vin4-supply: - description: - Input supply for ldo4, required if regulator is enabled - - vin5-supply: - description: - Input supply for ldo5, required if regulator is enabled - - vin6-supply: - description: - Input supply for ldo6, required if regulator is enabled - - vin7-supply: - description: - Input supply for ldo7, required if regulator is enabled - - regulators: - type: object - additionalProperties: false - - patternProperties: - "^ldo[1-7]$": - type: object - $ref: /schemas/regulator/regulator.yaml# - unevaluatedProperties: false - - properties: - enable-gpios: - maxItems: 1 - - required: - - regulator-name - -required: - - compatible - - reg - - regulators - -additionalProperties: false - -examples: - - | - #include - #include - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - pmic@75 { - compatible = "dlg,slg51000"; - reg = <0x75>; - dlg,cs-gpios = <&tlmm 69 GPIO_ACTIVE_HIGH>; - vin5-supply = <&vreg_s1f_1p2>; - vin6-supply = <&vreg_s1f_1p2>; - - regulators { - ldo1 { - regulator-name = "slg51000_b_ldo1"; - regulator-min-microvolt = <2400000>; - regulator-max-microvolt = <3300000>; - }; - - ldo2 { - regulator-name = "slg51000_b_ldo2"; - regulator-min-microvolt = <2400000>; - regulator-max-microvolt = <3300000>; - }; - - ldo3 { - regulator-name = "slg51000_b_ldo3"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <3750000>; - }; - - ldo4 { - regulator-name = "slg51000_b_ldo4"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <3750000>; - }; - - ldo5 { - regulator-name = "slg51000_b_ldo5"; - regulator-min-microvolt = <500000>; - regulator-max-microvolt = <1200000>; - }; - - ldo6 { - regulator-name = "slg51000_b_ldo6"; - regulator-min-microvolt = <500000>; - regulator-max-microvolt = <1200000>; - }; - - ldo7 { - regulator-name = "slg51000_b_ldo7"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <3750000>; - }; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/dlg,slg51000.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Dialog Semiconductor SLG51000 Voltage Regulator + +maintainers: + - Eric Jeong + - Support Opensource + +properties: + compatible: + const: dlg,slg51000 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + dlg,cs-gpios: + maxItems: 1 + description: + GPIO for chip select + + vin3-supply: + description: + Input supply for ldo3, required if regulator is enabled + + vin4-supply: + description: + Input supply for ldo4, required if regulator is enabled + + vin5-supply: + description: + Input supply for ldo5, required if regulator is enabled + + vin6-supply: + description: + Input supply for ldo6, required if regulator is enabled + + vin7-supply: + description: + Input supply for ldo7, required if regulator is enabled + + regulators: + type: object + additionalProperties: false + + patternProperties: + "^ldo[1-7]$": + type: object + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + + properties: + enable-gpios: + maxItems: 1 + + required: + - regulator-name + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + #include + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@75 { + compatible = "dlg,slg51000"; + reg = <0x75>; + dlg,cs-gpios = <&tlmm 69 GPIO_ACTIVE_HIGH>; + vin5-supply = <&vreg_s1f_1p2>; + vin6-supply = <&vreg_s1f_1p2>; + + regulators { + ldo1 { + regulator-name = "slg51000_b_ldo1"; + regulator-min-microvolt = <2400000>; + regulator-max-microvolt = <3300000>; + }; + + ldo2 { + regulator-name = "slg51000_b_ldo2"; + regulator-min-microvolt = <2400000>; + regulator-max-microvolt = <3300000>; + }; + + ldo3 { + regulator-name = "slg51000_b_ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + }; + + ldo4 { + regulator-name = "slg51000_b_ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + }; + + ldo5 { + regulator-name = "slg51000_b_ldo5"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1200000>; + }; + + ldo6 { + regulator-name = "slg51000_b_ldo6"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1200000>; + }; + + ldo7 { + regulator-name = "slg51000_b_ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml index 494f5a43f..51e2f6fb7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml @@ -1,160 +1,160 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/regulator/fixed-regulator.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Fixed Voltage regulators - -maintainers: - - Liam Girdwood - - Mark Brown - -description: - Any property defined as part of the core regulator binding, defined in - regulator.yaml, can also be used. However a fixed voltage regulator is - expected to have the regulator-min-microvolt and regulator-max-microvolt - to be the same. - -allOf: - - $ref: regulator.yaml# - - if: - properties: - compatible: - contains: - const: regulator-fixed-clock - then: - required: - - clocks - - if: - properties: - compatible: - contains: - const: regulator-fixed-domain - then: - required: - - power-domains - - required-opps - - not: - required: - - gpio - - gpios - -properties: - $nodename: - anyOf: - - description: Preferred name is 'regulator-[0-9]v[0-9]' - pattern: '^regulator(-[0-9]+v[0-9]+|-[0-9a-z-]+)?$' - - description: Any name allowed - deprecated: true - - compatible: - enum: - - regulator-fixed - - regulator-fixed-clock - - regulator-fixed-domain - - regulator-name: true - - gpio: - description: gpio to use for enable control - maxItems: 1 - - gpios: - maxItems: 1 - - clocks: - description: - clock to use for enable control. This binding is only available if - the compatible is chosen to regulator-fixed-clock. The clock binding - is mandatory if compatible is chosen to regulator-fixed-clock. - maxItems: 1 - - power-domains: - deprecated: true - description: - Power domain to use for enable control. This binding is only - available if the compatible is chosen to regulator-fixed-domain. - maxItems: 1 - - required-opps: - deprecated: true - description: - Performance state to use for enable control. This binding is only - available if the compatible is chosen to regulator-fixed-domain. The - power-domain binding is mandatory if compatible is chosen to - regulator-fixed-domain. - maxItems: 1 - - startup-delay-us: - description: startup time in microseconds - - off-on-delay-us: - description: off delay time in microseconds - - enable-active-high: - description: - Polarity of GPIO is Active high. If this property is missing, - the default assumed is Active low. - type: boolean - - gpio-open-drain: - description: - GPIO is open drain type. If this property is missing then default - assumption is false. - type: boolean - - vin-supply: - description: Input supply phandle. - - interrupts: - maxItems: 1 - description: - Interrupt signaling a critical under-voltage event. - - system-critical-regulator: true - -required: - - compatible - - regulator-name - -unevaluatedProperties: false - -examples: - - | - reg_1v8: regulator-1v8 { - compatible = "regulator-fixed"; - regulator-name = "1v8"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - gpio = <&gpio1 16 0>; - startup-delay-us = <70000>; - enable-active-high; - regulator-boot-on; - gpio-open-drain; - vin-supply = <&parent_reg>; - }; - reg_1v8_clk: regulator-1v8-clk { - compatible = "regulator-fixed-clock"; - regulator-name = "1v8"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - clocks = <&clock1>; - startup-delay-us = <70000>; - enable-active-high; - regulator-boot-on; - vin-supply = <&parent_reg>; - }; - reg_1v8_domain: regulator-1v8-domain { - compatible = "regulator-fixed-domain"; - regulator-name = "1v8"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - power-domains = <&domain1>; - required-opps = <&domain1_state1>; - startup-delay-us = <70000>; - enable-active-high; - regulator-boot-on; - vin-supply = <&parent_reg>; - }; -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/fixed-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Fixed Voltage regulators + +maintainers: + - Liam Girdwood + - Mark Brown + +description: + Any property defined as part of the core regulator binding, defined in + regulator.yaml, can also be used. However a fixed voltage regulator is + expected to have the regulator-min-microvolt and regulator-max-microvolt + to be the same. + +allOf: + - $ref: regulator.yaml# + - if: + properties: + compatible: + contains: + const: regulator-fixed-clock + then: + required: + - clocks + - if: + properties: + compatible: + contains: + const: regulator-fixed-domain + then: + required: + - power-domains + - required-opps + - not: + required: + - gpio + - gpios + +properties: + $nodename: + anyOf: + - description: Preferred name is 'regulator-[0-9]v[0-9]' + pattern: '^regulator(-[0-9]+v[0-9]+|-[0-9a-z-]+)?$' + - description: Any name allowed + deprecated: true + + compatible: + enum: + - regulator-fixed + - regulator-fixed-clock + - regulator-fixed-domain + + regulator-name: true + + gpio: + description: gpio to use for enable control + maxItems: 1 + + gpios: + maxItems: 1 + + clocks: + description: + clock to use for enable control. This binding is only available if + the compatible is chosen to regulator-fixed-clock. The clock binding + is mandatory if compatible is chosen to regulator-fixed-clock. + maxItems: 1 + + power-domains: + deprecated: true + description: + Power domain to use for enable control. This binding is only + available if the compatible is chosen to regulator-fixed-domain. + maxItems: 1 + + required-opps: + deprecated: true + description: + Performance state to use for enable control. This binding is only + available if the compatible is chosen to regulator-fixed-domain. The + power-domain binding is mandatory if compatible is chosen to + regulator-fixed-domain. + maxItems: 1 + + startup-delay-us: + description: startup time in microseconds + + off-on-delay-us: + description: off delay time in microseconds + + enable-active-high: + description: + Polarity of GPIO is Active high. If this property is missing, + the default assumed is Active low. + type: boolean + + gpio-open-drain: + description: + GPIO is open drain type. If this property is missing then default + assumption is false. + type: boolean + + vin-supply: + description: Input supply phandle. + + interrupts: + maxItems: 1 + description: + Interrupt signaling a critical under-voltage event. + + system-critical-regulator: true + +required: + - compatible + - regulator-name + +unevaluatedProperties: false + +examples: + - | + reg_1v8: regulator-1v8 { + compatible = "regulator-fixed"; + regulator-name = "1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio1 16 0>; + startup-delay-us = <70000>; + enable-active-high; + regulator-boot-on; + gpio-open-drain; + vin-supply = <&parent_reg>; + }; + reg_1v8_clk: regulator-1v8-clk { + compatible = "regulator-fixed-clock"; + regulator-name = "1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + clocks = <&clock1>; + startup-delay-us = <70000>; + enable-active-high; + regulator-boot-on; + vin-supply = <&parent_reg>; + }; + reg_1v8_domain: regulator-1v8-domain { + compatible = "regulator-fixed-domain"; + regulator-name = "1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + power-domains = <&domain1>; + required-opps = <&domain1_state1>; + startup-delay-us = <70000>; + enable-active-high; + regulator-boot-on; + vin-supply = <&parent_reg>; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/lp872x.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/lp872x.txt index 442ad4879..ab895cd1c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/lp872x.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/lp872x.txt @@ -1,161 +1,161 @@ -Binding for TI/National Semiconductor LP872x Driver - -Required properties: - - compatible: "ti,lp8720" or "ti,lp8725" - - reg: I2C slave address. 0x7d = LP8720, 0x7a = LP8725 - -Optional properties: - - ti,general-config: the value of LP872X_GENERAL_CFG register (u8) - (LP8720) - bit[2]: BUCK output voltage control by external DVS pin or register - 1 = external pin, 0 = bit7 of register 08h - bit[1]: sleep control by external DVS pin or register - 1 = external pin, 0 = bit6 of register 08h - bit[0]: time step unit(usec). 1 = 25, 0 = 50 - - (LP8725) - bit[7:6]: time step unit(usec). 00 = 32, 01 = 64, 10 = 128, 11 = 256 - bit[4]: BUCK2 enable control. 1 = enable, 0 = disable - bit[3]: BUCK2 output voltage register address. 1 = 0Ah, 0 = 0Bh - bit[2]: BUCK1 output voltage control by external DVS pin or register - 1 = register 08h, 0 = DVS - bit[1]: LDO sleep control. 1 = sleep mode, 0 = normal - bit[0]: BUCK1 enable control, 1 = enable, 0 = disable - - For more details, please see the datasheet. - - - ti,update-config: define it when LP872X_GENERAL_CFG register should be set - - ti,dvs-gpio: GPIO specifier for external DVS pin control of LP872x devices. - - ti,dvs-vsel: DVS selector. 0 = SEL_V1, 1 = SEL_V2. - - ti,dvs-state: initial DVS pin state. 0 = DVS_LOW, 1 = DVS_HIGH. - - enable-gpios: GPIO specifier for EN pin control of LP872x devices. - - Sub nodes for regulator_init_data - LP8720 has maximum 6 nodes. (child name: ldo1 ~ 5 and buck) - LP8725 has maximum 9 nodes. (child name: ldo1 ~ 5, lilo1,2 and buck1,2) - For more details, please see the following binding document. - (Documentation/devicetree/bindings/regulator/regulator.txt) - -Datasheet - - LP8720: https://www.ti.com/lit/ds/symlink/lp8720.pdf - - LP8725: https://www.ti.com/lit/ds/symlink/lp8725.pdf - -Example 1) LP8720 - -lp8720@7d { - compatible = "ti,lp8720"; - reg = <0x7d>; - - /* external DVS pin used, timestep is 25usec */ - ti,general-config = /bits/ 8 <0x03>; - ti,update-config; - - /* - * The dvs-gpio depends on the processor environment. - * For example, following GPIO specifier means GPIO134 in OMAP4. - */ - ti,dvs-gpio = <&gpio5 6 0>; - ti,dvs-vsel = /bits/ 8 <1>; /* SEL_V2 */ - ti,dvs-state = /bits/ 8 <1>; /* DVS_HIGH */ - - vaf: ldo1 { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <3300000>; - }; - - vmmc: ldo2 { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <3300000>; - }; - - vcam_io: ldo3 { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <3300000>; - regulator-boot-on; - }; - - vcam_core: ldo4 { - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <2850000>; - regulator-boot-on; - }; - - vcam: ldo5 { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <3300000>; - }; - - vcc: buck { - regulator-name = "VBUCK"; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <2300000>; - }; -}; - -Example 2) LP8725 - -lp8725@7a { - compatible = "ti,lp8725"; - reg = <0x7a>; - - /* Enable BUCK1,2, no DVS, normal LDO mode, timestep is 256usec */ - ti,general-config = /bits/ 8 <0xdd>; - ti,update-config; - - vcam_io: ldo1 { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <3300000>; - }; - - vcam_core: ldo2 { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <3300000>; - }; - - vcam: ldo3 { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <3300000>; - }; - - vcmmb_io: ldo4 { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <3300000>; - regulator-boot-on; - }; - - vcmmb_core: ldo5 { - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <3300000>; - regulator-boot-on; - }; - - vaux1: lilo1 { - regulator-name = "VAUX1"; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <3300000>; - }; - - vaux2: lilo2 { - regulator-name = "VAUX2"; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <3300000>; - }; - - vcc1: buck1 { - regulator-name = "VBUCK1"; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <3000000>; - regulator-min-microamp = <460000>; - regulator-max-microamp = <1370000>; - regulator-boot-on; - }; - - vcc2: buck2 { - regulator-name = "VBUCK2"; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <3000000>; - regulator-min-microamp = <460000>; - regulator-max-microamp = <1370000>; - regulator-boot-on; - }; -}; +Binding for TI/National Semiconductor LP872x Driver + +Required properties: + - compatible: "ti,lp8720" or "ti,lp8725" + - reg: I2C slave address. 0x7d = LP8720, 0x7a = LP8725 + +Optional properties: + - ti,general-config: the value of LP872X_GENERAL_CFG register (u8) + (LP8720) + bit[2]: BUCK output voltage control by external DVS pin or register + 1 = external pin, 0 = bit7 of register 08h + bit[1]: sleep control by external DVS pin or register + 1 = external pin, 0 = bit6 of register 08h + bit[0]: time step unit(usec). 1 = 25, 0 = 50 + + (LP8725) + bit[7:6]: time step unit(usec). 00 = 32, 01 = 64, 10 = 128, 11 = 256 + bit[4]: BUCK2 enable control. 1 = enable, 0 = disable + bit[3]: BUCK2 output voltage register address. 1 = 0Ah, 0 = 0Bh + bit[2]: BUCK1 output voltage control by external DVS pin or register + 1 = register 08h, 0 = DVS + bit[1]: LDO sleep control. 1 = sleep mode, 0 = normal + bit[0]: BUCK1 enable control, 1 = enable, 0 = disable + + For more details, please see the datasheet. + + - ti,update-config: define it when LP872X_GENERAL_CFG register should be set + - ti,dvs-gpio: GPIO specifier for external DVS pin control of LP872x devices. + - ti,dvs-vsel: DVS selector. 0 = SEL_V1, 1 = SEL_V2. + - ti,dvs-state: initial DVS pin state. 0 = DVS_LOW, 1 = DVS_HIGH. + - enable-gpios: GPIO specifier for EN pin control of LP872x devices. + + Sub nodes for regulator_init_data + LP8720 has maximum 6 nodes. (child name: ldo1 ~ 5 and buck) + LP8725 has maximum 9 nodes. (child name: ldo1 ~ 5, lilo1,2 and buck1,2) + For more details, please see the following binding document. + (Documentation/devicetree/bindings/regulator/regulator.txt) + +Datasheet + - LP8720: https://www.ti.com/lit/ds/symlink/lp8720.pdf + - LP8725: https://www.ti.com/lit/ds/symlink/lp8725.pdf + +Example 1) LP8720 + +lp8720@7d { + compatible = "ti,lp8720"; + reg = <0x7d>; + + /* external DVS pin used, timestep is 25usec */ + ti,general-config = /bits/ 8 <0x03>; + ti,update-config; + + /* + * The dvs-gpio depends on the processor environment. + * For example, following GPIO specifier means GPIO134 in OMAP4. + */ + ti,dvs-gpio = <&gpio5 6 0>; + ti,dvs-vsel = /bits/ 8 <1>; /* SEL_V2 */ + ti,dvs-state = /bits/ 8 <1>; /* DVS_HIGH */ + + vaf: ldo1 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + }; + + vmmc: ldo2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + }; + + vcam_io: ldo3 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + + vcam_core: ldo4 { + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <2850000>; + regulator-boot-on; + }; + + vcam: ldo5 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + }; + + vcc: buck { + regulator-name = "VBUCK"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <2300000>; + }; +}; + +Example 2) LP8725 + +lp8725@7a { + compatible = "ti,lp8725"; + reg = <0x7a>; + + /* Enable BUCK1,2, no DVS, normal LDO mode, timestep is 256usec */ + ti,general-config = /bits/ 8 <0xdd>; + ti,update-config; + + vcam_io: ldo1 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + }; + + vcam_core: ldo2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + }; + + vcam: ldo3 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + }; + + vcmmb_io: ldo4 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + + vcmmb_core: ldo5 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + + vaux1: lilo1 { + regulator-name = "VAUX1"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + }; + + vaux2: lilo2 { + regulator-name = "VAUX2"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + }; + + vcc1: buck1 { + regulator-name = "VBUCK1"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3000000>; + regulator-min-microamp = <460000>; + regulator-max-microamp = <1370000>; + regulator-boot-on; + }; + + vcc2: buck2 { + regulator-name = "VBUCK2"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3000000>; + regulator-min-microamp = <460000>; + regulator-max-microamp = <1370000>; + regulator-boot-on; + }; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/maxim,max8973.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/maxim,max8973.yaml index 66f7a2a54..b92eef68c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/maxim,max8973.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/maxim,max8973.yaml @@ -1,141 +1,141 @@ -# SPDX-License-Identifier: GPL-2.0-only -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/regulator/maxim,max8973.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Maxim MAX8973/MAX77621 voltage regulator - -maintainers: - - Krzysztof Kozlowski - -allOf: - - $ref: regulator.yaml# - -properties: - compatible: - enum: - - maxim,max8973 - - maxim,max77621 - - junction-warn-millicelsius: - description: | - Junction warning temperature threshold in millicelsius. If die - temperature crosses this level then device generates the warning - interrupts. - Please note that thermal functionality is only supported on MAX77621. The - supported threshold warning temperature for MAX77621 are 120 degC and 140 - degC. - - maxim,dvs-gpio: - maxItems: 1 - description: | - GPIO which is connected to DVS pin of device. - - maxim,dvs-default-state: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1] - description: | - Default state of GPIO during initialisation. - 1 for HIGH and 0 for LOW. - - maxim,externally-enable: - type: boolean - description: | - Externally control the regulator output enable/disable. - - maxim,enable-gpio: - maxItems: 1 - description: | - GPIO for enable control. If the valid GPIO is provided then externally - enable control will be considered. - - maxim,enable-remote-sense: - type: boolean - description: Enable remote sense. - - maxim,enable-falling-slew-rate: - type: boolean - description: Enable falling slew rate. - - maxim,enable-active-discharge: - type: boolean - description: Eable active discharge. - - maxim,enable-frequency-shift: - type: boolean - description: Enable 9% frequency shift. - - maxim,enable-bias-control: - type: boolean - description: | - Enable bias control which can reduce the startup delay to 20us from 220us. - - maxim,enable-etr: - type: boolean - description: Enable Enhanced Transient Response. - - maxim,enable-high-etr-sensitivity: - type: boolean - description: | - Enhanced transient response circuit is enabled and set for high - sensitivity. If this property is available then etr will be enable - default. - Enhanced transient response (ETR) will affect the configuration of CKADV. - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - regulator@1b { - compatible = "maxim,max8973"; - reg = <0x1b>; - - regulator-min-microvolt = <935000>; - regulator-max-microvolt = <1200000>; - regulator-boot-on; - regulator-always-on; - }; - }; - - - | - #include - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - regulator@1b { - compatible = "maxim,max77621"; - reg = <0x1b>; - interrupts = <1 IRQ_TYPE_LEVEL_LOW>; - - regulator-always-on; - regulator-boot-on; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <1231250>; - regulator-name = "PPVAR_CPU"; - regulator-ramp-delay = <12500>; - maxim,dvs-default-state = <1>; - maxim,enable-active-discharge; - maxim,enable-bias-control; - maxim,enable-etr; - maxim,enable-gpio = <&pmic 5 GPIO_ACTIVE_HIGH>; - maxim,externally-enable; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/maxim,max8973.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX8973/MAX77621 voltage regulator + +maintainers: + - Krzysztof Kozlowski + +allOf: + - $ref: regulator.yaml# + +properties: + compatible: + enum: + - maxim,max8973 + - maxim,max77621 + + junction-warn-millicelsius: + description: | + Junction warning temperature threshold in millicelsius. If die + temperature crosses this level then device generates the warning + interrupts. + Please note that thermal functionality is only supported on MAX77621. The + supported threshold warning temperature for MAX77621 are 120 degC and 140 + degC. + + maxim,dvs-gpio: + maxItems: 1 + description: | + GPIO which is connected to DVS pin of device. + + maxim,dvs-default-state: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + description: | + Default state of GPIO during initialisation. + 1 for HIGH and 0 for LOW. + + maxim,externally-enable: + type: boolean + description: | + Externally control the regulator output enable/disable. + + maxim,enable-gpio: + maxItems: 1 + description: | + GPIO for enable control. If the valid GPIO is provided then externally + enable control will be considered. + + maxim,enable-remote-sense: + type: boolean + description: Enable remote sense. + + maxim,enable-falling-slew-rate: + type: boolean + description: Enable falling slew rate. + + maxim,enable-active-discharge: + type: boolean + description: Eable active discharge. + + maxim,enable-frequency-shift: + type: boolean + description: Enable 9% frequency shift. + + maxim,enable-bias-control: + type: boolean + description: | + Enable bias control which can reduce the startup delay to 20us from 220us. + + maxim,enable-etr: + type: boolean + description: Enable Enhanced Transient Response. + + maxim,enable-high-etr-sensitivity: + type: boolean + description: | + Enhanced transient response circuit is enabled and set for high + sensitivity. If this property is available then etr will be enable + default. + Enhanced transient response (ETR) will affect the configuration of CKADV. + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + regulator@1b { + compatible = "maxim,max8973"; + reg = <0x1b>; + + regulator-min-microvolt = <935000>; + regulator-max-microvolt = <1200000>; + regulator-boot-on; + regulator-always-on; + }; + }; + + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + regulator@1b { + compatible = "maxim,max77621"; + reg = <0x1b>; + interrupts = <1 IRQ_TYPE_LEVEL_LOW>; + + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1231250>; + regulator-name = "PPVAR_CPU"; + regulator-ramp-delay = <12500>; + maxim,dvs-default-state = <1>; + maxim,enable-active-discharge; + maxim,enable-bias-control; + maxim,enable-etr; + maxim,enable-gpio = <&pmic 5 GPIO_ACTIVE_HIGH>; + maxim,externally-enable; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/mediatek,mt6332-regulator.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/mediatek,mt6332-regulator.yaml index de875d0c0..2eb512c29 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/mediatek,mt6332-regulator.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/mediatek,mt6332-regulator.yaml @@ -1,112 +1,112 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/regulator/mediatek,mt6332-regulator.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MT6332 Regulator from MediaTek Integrated - -maintainers: - - AngeloGioacchino Del Regno - -description: | - The MT6332 Companion PMIC provides 6 BUCK and 4 LDO (Low Dropout) - regulators and nodes are named according to the regulator type: - buck- and ldo-. - MT6332 regulators node should be sub node of the MT6397 MFD node. - -patternProperties: - "^buck-v(dram|dvfs2|pa|rf18a|rf18b|sbst)$": - type: object - $ref: regulator.yaml# - - properties: - regulator-name: - pattern: "^v(dram|dvfs2|pa|rf18a|rf18b|sbst)$" - - unevaluatedProperties: false - - "^ldo-v(bif28|dig18|sram|usb33)$": - type: object - $ref: regulator.yaml# - - properties: - regulator-name: - pattern: "^v(bif28|dig18|sram|usb33)$" - - unevaluatedProperties: false - -additionalProperties: false - -examples: - - | - pmic { - regulators { - mt6332_vdram_reg: buck-vdram { - regulator-name = "vdram"; - regulator-min-microvolt = <700000>; - regulator-max-microvolt = <1493750>; - regulator-ramp-delay = <12500>; - regulator-allowed-modes = <0 1>; - regulator-always-on; - }; - mt6332_vdvfs2_reg: buck-vdvfs2 { - regulator-name = "vdvfs2"; - regulator-min-microvolt = <700000>; - regulator-max-microvolt = <1312500>; - regulator-ramp-delay = <12500>; - regulator-enable-ramp-delay = <1>; - regulator-allowed-modes = <0 1>; - }; - mt6332_vpa_reg: buck-vpa { - regulator-name = "vpa"; - regulator-min-microvolt = <500000>; - regulator-max-microvolt = <3400000>; - }; - mt6332_vrf18a_reg: buck-vrf18a { - regulator-name = "vrf18a"; - regulator-min-microvolt = <1050000>; - regulator-max-microvolt = <2240625>; - regulator-allowed-modes = <0 1>; - }; - mt6332_vrf18b_reg: buck-vrf18b { - regulator-name = "vrf18b"; - regulator-min-microvolt = <1050000>; - regulator-max-microvolt = <2240625>; - regulator-allowed-modes = <0 1>; - }; - mt6332_vsbst_reg: buck-vsbst { - regulator-name = "vsbst"; - regulator-min-microvolt = <3500000>; - regulator-max-microvolt = <7468750>; - }; - mt6332_vauxb32_reg: ldo-vauxb32 { - regulator-name = "vauxb32"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <3200000>; - }; - mt6332_vbif28_reg: ldo-vbif28 { - regulator-name = "vbif28"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - }; - mt6332_vdig18_reg: ldo-vdig18 { - regulator-name = "vdig18"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - }; - mt6332_vsram_reg: ldo-vsram { - regulator-name = "vauxa32"; - regulator-min-microvolt = <700000>; - regulator-max-microvolt = <1493750>; - regulator-always-on; - }; - mt6332_vusb33_reg: ldo-vusb33 { - regulator-name = "vusb33"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/mediatek,mt6332-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MT6332 Regulator from MediaTek Integrated + +maintainers: + - AngeloGioacchino Del Regno + +description: | + The MT6332 Companion PMIC provides 6 BUCK and 4 LDO (Low Dropout) + regulators and nodes are named according to the regulator type: + buck- and ldo-. + MT6332 regulators node should be sub node of the MT6397 MFD node. + +patternProperties: + "^buck-v(dram|dvfs2|pa|rf18a|rf18b|sbst)$": + type: object + $ref: regulator.yaml# + + properties: + regulator-name: + pattern: "^v(dram|dvfs2|pa|rf18a|rf18b|sbst)$" + + unevaluatedProperties: false + + "^ldo-v(bif28|dig18|sram|usb33)$": + type: object + $ref: regulator.yaml# + + properties: + regulator-name: + pattern: "^v(bif28|dig18|sram|usb33)$" + + unevaluatedProperties: false + +additionalProperties: false + +examples: + - | + pmic { + regulators { + mt6332_vdram_reg: buck-vdram { + regulator-name = "vdram"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1493750>; + regulator-ramp-delay = <12500>; + regulator-allowed-modes = <0 1>; + regulator-always-on; + }; + mt6332_vdvfs2_reg: buck-vdvfs2 { + regulator-name = "vdvfs2"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1312500>; + regulator-ramp-delay = <12500>; + regulator-enable-ramp-delay = <1>; + regulator-allowed-modes = <0 1>; + }; + mt6332_vpa_reg: buck-vpa { + regulator-name = "vpa"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3400000>; + }; + mt6332_vrf18a_reg: buck-vrf18a { + regulator-name = "vrf18a"; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <2240625>; + regulator-allowed-modes = <0 1>; + }; + mt6332_vrf18b_reg: buck-vrf18b { + regulator-name = "vrf18b"; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <2240625>; + regulator-allowed-modes = <0 1>; + }; + mt6332_vsbst_reg: buck-vsbst { + regulator-name = "vsbst"; + regulator-min-microvolt = <3500000>; + regulator-max-microvolt = <7468750>; + }; + mt6332_vauxb32_reg: ldo-vauxb32 { + regulator-name = "vauxb32"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <3200000>; + }; + mt6332_vbif28_reg: ldo-vbif28 { + regulator-name = "vbif28"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + }; + mt6332_vdig18_reg: ldo-vdig18 { + regulator-name = "vdig18"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + mt6332_vsram_reg: ldo-vsram { + regulator-name = "vauxa32"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1493750>; + regulator-always-on; + }; + mt6332_vusb33_reg: ldo-vusb33 { + regulator-name = "vusb33"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/pwm-regulator.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/pwm-regulator.yaml index 8f7955963..80ecf938b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/pwm-regulator.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/pwm-regulator.yaml @@ -1,127 +1,127 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/regulator/pwm-regulator.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Generic PWM Regulator - -maintainers: - - Brian Norris - - Lee Jones - - Alexandre Courbot - -description: | - Currently supports 2 modes of operation: - - Voltage Table: - When in this mode, a voltage table (See below) of predefined voltage <=> - duty-cycle values must be provided via DT. Limitations are that the - regulator can only operate at the voltages supplied in the table. - Intermediary duty-cycle values which would normally allow finer grained - voltage selection are ignored and rendered useless. Although more control - is given to the user if the assumptions made in continuous-voltage mode do - not reign true. - - Continuous Voltage: - This mode uses the regulator's maximum and minimum supplied voltages - specified in the regulator-{min,max}-microvolt properties to calculate - appropriate duty-cycle values. This allows for a much more fine grained - solution when compared with voltage-table mode above. This solution does - make an assumption that a %50 duty-cycle value will cause the regulator - voltage to run at half way between the supplied max_uV and min_uV values. - - If voltage-table is provided, then the device will be used in Voltage Table - Mode. If no voltage-table is provided, then the device will be used in - Continuous Voltage Mode. - -allOf: - - $ref: regulator.yaml# - -properties: - compatible: - const: pwm-regulator - - pwms: - maxItems: 1 - - voltage-table: - description: Voltage and Duty-Cycle table. - $ref: /schemas/types.yaml#/definitions/uint32-matrix - items: - items: - - description: voltage in microvolts (uV) - - description: duty-cycle in percent (%) - - enable-gpios: - description: Regulator enable GPIO - maxItems: 1 - - # Optional properties for Continuous mode: - pwm-dutycycle-unit: - description: - Integer value encoding the duty cycle unit. If not - defined, <100> is assumed, meaning that - pwm-dutycycle-range contains values expressed in - percent. - $ref: /schemas/types.yaml#/definitions/uint32 - default: 100 - - pwm-dutycycle-range: - description: - Should contain 2 entries. The first entry is encoding - the dutycycle for regulator-min-microvolt and the - second one the dutycycle for regulator-max-microvolt. - Duty cycle values are expressed in pwm-dutycycle-unit. - If not defined, <0 100> is assumed. - $ref: /schemas/types.yaml#/definitions/uint32-array - items: - - description: the dutycycle for regulator-min-microvolt - - description: the dutycycle for regulator-max-microvolt - default: [ 0 100 ] - -required: - - compatible - - pwms - -unevaluatedProperties: false - -examples: - - | - #include - - // Continuous Voltage With Enable GPIO Example: - regulator { - compatible = "pwm-regulator"; - pwms = <&pwm1 0 8448 0>; - enable-gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>; - regulator-min-microvolt = <1016000>; - regulator-max-microvolt = <1114000>; - regulator-name = "vdd_logic"; - /* unit == per-mille */ - pwm-dutycycle-unit = <1000>; - /* - * Inverted PWM logic, and the duty cycle range is limited - * to 30%-70%. - */ - pwm-dutycycle-range = <700 300>; /* */ - }; - - - | - // Voltage Table Example: - regulator { - compatible = "pwm-regulator"; - pwms = <&pwm1 0 8448 0>; - regulator-min-microvolt = <1016000>; - regulator-max-microvolt = <1114000>; - regulator-name = "vdd_logic"; - - /* Voltage Duty-Cycle */ - voltage-table = <1114000 0>, - <1095000 10>, - <1076000 20>, - <1056000 30>, - <1036000 40>, - <1016000 50>; - }; -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/pwm-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic PWM Regulator + +maintainers: + - Brian Norris + - Lee Jones + - Alexandre Courbot + +description: | + Currently supports 2 modes of operation: + + Voltage Table: + When in this mode, a voltage table (See below) of predefined voltage <=> + duty-cycle values must be provided via DT. Limitations are that the + regulator can only operate at the voltages supplied in the table. + Intermediary duty-cycle values which would normally allow finer grained + voltage selection are ignored and rendered useless. Although more control + is given to the user if the assumptions made in continuous-voltage mode do + not reign true. + + Continuous Voltage: + This mode uses the regulator's maximum and minimum supplied voltages + specified in the regulator-{min,max}-microvolt properties to calculate + appropriate duty-cycle values. This allows for a much more fine grained + solution when compared with voltage-table mode above. This solution does + make an assumption that a %50 duty-cycle value will cause the regulator + voltage to run at half way between the supplied max_uV and min_uV values. + + If voltage-table is provided, then the device will be used in Voltage Table + Mode. If no voltage-table is provided, then the device will be used in + Continuous Voltage Mode. + +allOf: + - $ref: regulator.yaml# + +properties: + compatible: + const: pwm-regulator + + pwms: + maxItems: 1 + + voltage-table: + description: Voltage and Duty-Cycle table. + $ref: /schemas/types.yaml#/definitions/uint32-matrix + items: + items: + - description: voltage in microvolts (uV) + - description: duty-cycle in percent (%) + + enable-gpios: + description: Regulator enable GPIO + maxItems: 1 + + # Optional properties for Continuous mode: + pwm-dutycycle-unit: + description: + Integer value encoding the duty cycle unit. If not + defined, <100> is assumed, meaning that + pwm-dutycycle-range contains values expressed in + percent. + $ref: /schemas/types.yaml#/definitions/uint32 + default: 100 + + pwm-dutycycle-range: + description: + Should contain 2 entries. The first entry is encoding + the dutycycle for regulator-min-microvolt and the + second one the dutycycle for regulator-max-microvolt. + Duty cycle values are expressed in pwm-dutycycle-unit. + If not defined, <0 100> is assumed. + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + - description: the dutycycle for regulator-min-microvolt + - description: the dutycycle for regulator-max-microvolt + default: [ 0 100 ] + +required: + - compatible + - pwms + +unevaluatedProperties: false + +examples: + - | + #include + + // Continuous Voltage With Enable GPIO Example: + regulator { + compatible = "pwm-regulator"; + pwms = <&pwm1 0 8448 0>; + enable-gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>; + regulator-min-microvolt = <1016000>; + regulator-max-microvolt = <1114000>; + regulator-name = "vdd_logic"; + /* unit == per-mille */ + pwm-dutycycle-unit = <1000>; + /* + * Inverted PWM logic, and the duty cycle range is limited + * to 30%-70%. + */ + pwm-dutycycle-range = <700 300>; /* */ + }; + + - | + // Voltage Table Example: + regulator { + compatible = "pwm-regulator"; + pwms = <&pwm1 0 8448 0>; + regulator-min-microvolt = <1016000>; + regulator-max-microvolt = <1114000>; + regulator-name = "vdd_logic"; + + /* Voltage Duty-Cycle */ + voltage-table = <1114000 0>, + <1095000 10>, + <1076000 20>, + <1056000 30>, + <1036000 40>, + <1016000 50>; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/qcom,rpm-regulator.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/qcom,rpm-regulator.yaml index 77650e563..b4eb4001e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/qcom,rpm-regulator.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/qcom,rpm-regulator.yaml @@ -1,128 +1,128 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/regulator/qcom,rpm-regulator.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm RPM regulator - -description: - The Qualcomm RPM regulator is modelled as a subdevice of the RPM. - - Please refer to Documentation/devicetree/bindings/soc/qcom/qcom,rpm.yaml - for information regarding the RPM node. - - The regulator node houses sub-nodes for each regulator within the device. - Each sub-node is identified using the node's name, with valid values listed - for each of the pmics below. - - For pm8058 l0, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, - l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, s0, s1, s2, s3, s4, - lvs0, lvs1, ncp - - For pm8901 l0, l1, l2, l3, l4, l5, l6, s0, s1, s2, s3, s4, lvs0, lvs1, lvs2, lvs3, - mvs - - For pm8921 s1, s2, s3, s4, s7, s8, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, - l12, l14, l15, l16, l17, l18, l21, l22, l23, l24, l25, l26, l27, l28, - l29, lvs1, lvs2, lvs3, lvs4, lvs5, lvs6, lvs7, usb-switch, hdmi-switch, - ncp - - For pm8018 s1, s2, s3, s4, s5, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, - l12, l14, lvs1 - - For smb208 s1a, s1b, s2a, s2b - -maintainers: - - Bjorn Andersson - -properties: - compatible: - enum: - - qcom,rpm-pm8058-regulators - - qcom,rpm-pm8901-regulators - - qcom,rpm-pm8921-regulators - - qcom,rpm-pm8018-regulators - - qcom,rpm-smb208-regulators - -patternProperties: - ".*-supply$": - description: Input supply phandle(s) for this node - - "^((s|l|lvs)[0-9]*|s[1-2][a-b]|ncp|mvs|usb-switch|hdmi-switch)$": - description: List of regulators and its properties - $ref: regulator.yaml# - unevaluatedProperties: false - properties: - bias-pull-down: - description: enable pull down of the regulator when inactive - type: boolean - - qcom,switch-mode-frequency: - description: Frequency (Hz) of the switch-mode power supply - $ref: /schemas/types.yaml#/definitions/uint32 - enum: - - 19200000 - - 9600000 - - 6400000 - - 4800000 - - 3840000 - - 3200000 - - 2740000 - - 2400000 - - 2130000 - - 1920000 - - 1750000 - - 1600000 - - 1480000 - - 1370000 - - 1280000 - - 1200000 - - qcom,force-mode: - description: Indicates that the regulator should be forced to a particular mode - $ref: /schemas/types.yaml#/definitions/uint32 - enum: - - 0 # QCOM_RPM_FORCE_MODE_NONE do not force any mode - - 1 # QCOM_RPM_FORCE_MODE_LPM force into low power mode - - 2 # QCOM_RPM_FORCE_MODE_HPM force into high power mode - - 3 # QCOM_RPM_FORCE_MODE_AUTO allow regulator to automatically select its own mode - # based on realtime current draw, only for pm8921 smps and ftsmps - - qcom,power-mode-hysteretic: - description: select that the power supply should operate in hysteretic mode, - instead of the default pwm mode - type: boolean - -additionalProperties: false - -required: - - compatible - -examples: - - | - #include - regulators { - compatible = "qcom,rpm-pm8921-regulators"; - vdd_l1_l2_l12_l18-supply = <&pm8921_s4>; - - s1 { - regulator-min-microvolt = <1225000>; - regulator-max-microvolt = <1225000>; - - bias-pull-down; - - qcom,switch-mode-frequency = <3200000>; - }; - - pm8921_s4: s4 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - - qcom,switch-mode-frequency = <1600000>; - bias-pull-down; - - qcom,force-mode = ; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/qcom,rpm-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm RPM regulator + +description: + The Qualcomm RPM regulator is modelled as a subdevice of the RPM. + + Please refer to Documentation/devicetree/bindings/soc/qcom/qcom,rpm.yaml + for information regarding the RPM node. + + The regulator node houses sub-nodes for each regulator within the device. + Each sub-node is identified using the node's name, with valid values listed + for each of the pmics below. + + For pm8058 l0, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, + l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, s0, s1, s2, s3, s4, + lvs0, lvs1, ncp + + For pm8901 l0, l1, l2, l3, l4, l5, l6, s0, s1, s2, s3, s4, lvs0, lvs1, lvs2, lvs3, + mvs + + For pm8921 s1, s2, s3, s4, s7, s8, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, + l12, l14, l15, l16, l17, l18, l21, l22, l23, l24, l25, l26, l27, l28, + l29, lvs1, lvs2, lvs3, lvs4, lvs5, lvs6, lvs7, usb-switch, hdmi-switch, + ncp + + For pm8018 s1, s2, s3, s4, s5, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, + l12, l14, lvs1 + + For smb208 s1a, s1b, s2a, s2b + +maintainers: + - Bjorn Andersson + +properties: + compatible: + enum: + - qcom,rpm-pm8058-regulators + - qcom,rpm-pm8901-regulators + - qcom,rpm-pm8921-regulators + - qcom,rpm-pm8018-regulators + - qcom,rpm-smb208-regulators + +patternProperties: + ".*-supply$": + description: Input supply phandle(s) for this node + + "^((s|l|lvs)[0-9]*|s[1-2][a-b]|ncp|mvs|usb-switch|hdmi-switch)$": + description: List of regulators and its properties + $ref: regulator.yaml# + unevaluatedProperties: false + properties: + bias-pull-down: + description: enable pull down of the regulator when inactive + type: boolean + + qcom,switch-mode-frequency: + description: Frequency (Hz) of the switch-mode power supply + $ref: /schemas/types.yaml#/definitions/uint32 + enum: + - 19200000 + - 9600000 + - 6400000 + - 4800000 + - 3840000 + - 3200000 + - 2740000 + - 2400000 + - 2130000 + - 1920000 + - 1750000 + - 1600000 + - 1480000 + - 1370000 + - 1280000 + - 1200000 + + qcom,force-mode: + description: Indicates that the regulator should be forced to a particular mode + $ref: /schemas/types.yaml#/definitions/uint32 + enum: + - 0 # QCOM_RPM_FORCE_MODE_NONE do not force any mode + - 1 # QCOM_RPM_FORCE_MODE_LPM force into low power mode + - 2 # QCOM_RPM_FORCE_MODE_HPM force into high power mode + - 3 # QCOM_RPM_FORCE_MODE_AUTO allow regulator to automatically select its own mode + # based on realtime current draw, only for pm8921 smps and ftsmps + + qcom,power-mode-hysteretic: + description: select that the power supply should operate in hysteretic mode, + instead of the default pwm mode + type: boolean + +additionalProperties: false + +required: + - compatible + +examples: + - | + #include + regulators { + compatible = "qcom,rpm-pm8921-regulators"; + vdd_l1_l2_l12_l18-supply = <&pm8921_s4>; + + s1 { + regulator-min-microvolt = <1225000>; + regulator-max-microvolt = <1225000>; + + bias-pull-down; + + qcom,switch-mode-frequency = <3200000>; + }; + + pm8921_s4: s4 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + qcom,switch-mode-frequency = <1600000>; + bias-pull-down; + + qcom,force-mode = ; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/richtek,rt5190a-regulator.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/richtek,rt5190a-regulator.yaml index e97650485..89341fdaa 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/richtek,rt5190a-regulator.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/richtek,rt5190a-regulator.yaml @@ -1,141 +1,141 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/regulator/richtek,rt5190a-regulator.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Richtek RT5190A PMIC Regulator - -maintainers: - - ChiYuan Huang - -description: | - The RT5190A integrates 1 channel buck controller, 3 channels high efficiency - synchronous buck converters, 1 LDO, I2C control interface and peripheral - logical control. - - It also supports mute AC OFF depop sound and quick setting storage while - input power is removed. - -properties: - compatible: - enum: - - richtek,rt5190a - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - vin2-supply: - description: phandle to buck2 input voltage. - - vin3-supply: - description: phandle to buck3 input voltage. - - vin4-supply: - description: phandle to buck4 input voltage. - - vinldo-supply: - description: phandle to ldo input voltage - - richtek,mute-enable: - description: | - The mute function uses 'mutein', 'muteout', and 'vdet' pins as the control - signal. When enabled, The normal behavior is to bypass the 'mutein' signal - 'muteout'. But if the power source removal is detected from 'vdet', - whatever the 'mutein' signal is, it will pull down the 'muteout' to force - speakers mute. this function is commonly used to prevent the speaker pop - noise during AC power turned off in the modern TV system design. - type: boolean - - regulators: - type: object - - patternProperties: - "^buck[1-4]$|^ldo$": - type: object - $ref: regulator.yaml# - description: | - regulator description for buck1 to buck4, and ldo. - - properties: - regulator-allowed-modes: - description: | - buck operating mode, only buck1/4 support mode operating. - 0: auto mode - 1: force pwm mode - items: - enum: [0, 1] - - richtek,latchup-enable: - type: boolean - description: | - If specified, undervolt protection mode changes from the default - hiccup to latchup. - - unevaluatedProperties: false - - additionalProperties: false - -required: - - compatible - - reg - - regulators - -additionalProperties: false - -examples: - - | - #include - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - pmic@64 { - compatible = "richtek,rt5190a"; - reg = <0x64>; - interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>; - vin2-supply = <&rt5190_buck1>; - vin3-supply = <&rt5190_buck1>; - vin4-supply = <&rt5190_buck1>; - - regulators { - rt5190_buck1: buck1 { - regulator-name = "rt5190a-buck1"; - regulator-min-microvolt = <5090000>; - regulator-max-microvolt = <5090000>; - regulator-allowed-modes = ; - regulator-boot-on; - }; - buck2 { - regulator-name = "rt5190a-buck2"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1400000>; - regulator-boot-on; - }; - buck3 { - regulator-name = "rt5190a-buck3"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1400000>; - regulator-boot-on; - }; - buck4 { - regulator-name = "rt5190a-buck4"; - regulator-min-microvolt = <850000>; - regulator-max-microvolt = <850000>; - regulator-allowed-modes = ; - regulator-boot-on; - }; - ldo { - regulator-name = "rt5190a-ldo"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-boot-on; - }; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/richtek,rt5190a-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Richtek RT5190A PMIC Regulator + +maintainers: + - ChiYuan Huang + +description: | + The RT5190A integrates 1 channel buck controller, 3 channels high efficiency + synchronous buck converters, 1 LDO, I2C control interface and peripheral + logical control. + + It also supports mute AC OFF depop sound and quick setting storage while + input power is removed. + +properties: + compatible: + enum: + - richtek,rt5190a + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vin2-supply: + description: phandle to buck2 input voltage. + + vin3-supply: + description: phandle to buck3 input voltage. + + vin4-supply: + description: phandle to buck4 input voltage. + + vinldo-supply: + description: phandle to ldo input voltage + + richtek,mute-enable: + description: | + The mute function uses 'mutein', 'muteout', and 'vdet' pins as the control + signal. When enabled, The normal behavior is to bypass the 'mutein' signal + 'muteout'. But if the power source removal is detected from 'vdet', + whatever the 'mutein' signal is, it will pull down the 'muteout' to force + speakers mute. this function is commonly used to prevent the speaker pop + noise during AC power turned off in the modern TV system design. + type: boolean + + regulators: + type: object + + patternProperties: + "^buck[1-4]$|^ldo$": + type: object + $ref: regulator.yaml# + description: | + regulator description for buck1 to buck4, and ldo. + + properties: + regulator-allowed-modes: + description: | + buck operating mode, only buck1/4 support mode operating. + 0: auto mode + 1: force pwm mode + items: + enum: [0, 1] + + richtek,latchup-enable: + type: boolean + description: | + If specified, undervolt protection mode changes from the default + hiccup to latchup. + + unevaluatedProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@64 { + compatible = "richtek,rt5190a"; + reg = <0x64>; + interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>; + vin2-supply = <&rt5190_buck1>; + vin3-supply = <&rt5190_buck1>; + vin4-supply = <&rt5190_buck1>; + + regulators { + rt5190_buck1: buck1 { + regulator-name = "rt5190a-buck1"; + regulator-min-microvolt = <5090000>; + regulator-max-microvolt = <5090000>; + regulator-allowed-modes = ; + regulator-boot-on; + }; + buck2 { + regulator-name = "rt5190a-buck2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1400000>; + regulator-boot-on; + }; + buck3 { + regulator-name = "rt5190a-buck3"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1400000>; + regulator-boot-on; + }; + buck4 { + regulator-name = "rt5190a-buck4"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-allowed-modes = ; + regulator-boot-on; + }; + ldo { + regulator-name = "rt5190a-ldo"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-boot-on; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/richtek,rtmv20-regulator.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/richtek,rtmv20-regulator.yaml index 44f6c3850..fec3d396c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/richtek,rtmv20-regulator.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/richtek,rtmv20-regulator.yaml @@ -1,160 +1,160 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/regulator/richtek,rtmv20-regulator.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Richtek RTMV20 laser diode regulator - -maintainers: - - ChiYuan Huang - -description: | - Richtek RTMV20 is a load switch current regulator that can supply up to 6A. - It is used to drive laser diode. There're two signals for chip controls - (Enable/Fail), Enable pin to turn chip on, and Fail pin as fault indication. - There're still four pins for camera control, two inputs (strobe and vsync), - the others for outputs (fsin1 and fsin2). Strobe input to start the current - supply, vsync input from IR camera, and fsin1/fsin2 output for the optional. - -properties: - compatible: - const: richtek,rtmv20 - - reg: - maxItems: 1 - - wakeup-source: true - - interrupts: - maxItems: 1 - - enable-gpios: - description: A connection of the 'enable' gpio line. - maxItems: 1 - - richtek,ld-pulse-delay-us: - description: | - load current pulse delay in microsecond after strobe pin pulse high. - minimum: 0 - maximum: 100000 - default: 0 - - richtek,ld-pulse-width-us: - description: | - Load current pulse width in microsecond after strobe pin pulse high. - minimum: 0 - maximum: 10000 - default: 1200 - - richtek,fsin1-delay-us: - description: | - Fsin1 pulse high delay in microsecond after vsync signal pulse high. - minimum: 0 - maximum: 100000 - default: 23000 - - richtek,fsin1-width-us: - description: | - Fsin1 pulse high width in microsecond after vsync signal pulse high. - minimum: 40 - maximum: 10000 - default: 160 - - richtek,fsin2-delay-us: - description: | - Fsin2 pulse high delay in microsecond after vsync signal pulse high. - minimum: 0 - maximum: 100000 - default: 23000 - - richtek,fsin2-width-us: - description: | - Fsin2 pulse high width in microsecond after vsync signal pulse high. - minimum: 40 - maximum: 10000 - default: 160 - - richtek,es-pulse-width-us: - description: Eye safety function pulse width limit in microsecond. - minimum: 0 - maximum: 10000 - default: 1200 - - richtek,es-ld-current-microamp: - description: Eye safety function load current limit in microamp. - minimum: 0 - maximum: 6000000 - default: 3000000 - - richtek,lbp-level-microvolt: - description: Low battery protection level in microvolt. - minimum: 2400000 - maximum: 3700000 - default: 2700000 - - richtek,lbp-enable: - description: Low battery protection function enable control. - type: boolean - - richtek,strobe-polarity-high: - description: Strobe pin active polarity control. - type: boolean - - richtek,vsync-polarity-high: - description: Vsync pin active polarity control. - type: boolean - - richtek,fsin-enable: - description: Fsin function enable control. - type: boolean - - richtek,fsin-output: - description: Fsin function output control. - type: boolean - - richtek,es-enable: - description: Eye safety function enable control. - type: boolean - - lsw: - description: load switch current regulator description. - type: object - $ref: regulator.yaml# - unevaluatedProperties: false - -required: - - compatible - - reg - - wakeup-source - - interrupts - - enable-gpios - - lsw - -additionalProperties: false - -examples: - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - rtmv20@34 { - compatible = "richtek,rtmv20"; - reg = <0x34>; - wakeup-source; - interrupts-extended = <&gpio26 2 IRQ_TYPE_LEVEL_LOW>; - enable-gpios = <&gpio26 3 0>; - - richtek,strobe-polarity-high; - richtek,vsync-polarity-high; - - lsw { - regulator-name = "rtmv20,lsw"; - regulator-min-microamp = <0>; - regulator-max-microamp = <6000000>; - }; - }; - }; -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/richtek,rtmv20-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Richtek RTMV20 laser diode regulator + +maintainers: + - ChiYuan Huang + +description: | + Richtek RTMV20 is a load switch current regulator that can supply up to 6A. + It is used to drive laser diode. There're two signals for chip controls + (Enable/Fail), Enable pin to turn chip on, and Fail pin as fault indication. + There're still four pins for camera control, two inputs (strobe and vsync), + the others for outputs (fsin1 and fsin2). Strobe input to start the current + supply, vsync input from IR camera, and fsin1/fsin2 output for the optional. + +properties: + compatible: + const: richtek,rtmv20 + + reg: + maxItems: 1 + + wakeup-source: true + + interrupts: + maxItems: 1 + + enable-gpios: + description: A connection of the 'enable' gpio line. + maxItems: 1 + + richtek,ld-pulse-delay-us: + description: | + load current pulse delay in microsecond after strobe pin pulse high. + minimum: 0 + maximum: 100000 + default: 0 + + richtek,ld-pulse-width-us: + description: | + Load current pulse width in microsecond after strobe pin pulse high. + minimum: 0 + maximum: 10000 + default: 1200 + + richtek,fsin1-delay-us: + description: | + Fsin1 pulse high delay in microsecond after vsync signal pulse high. + minimum: 0 + maximum: 100000 + default: 23000 + + richtek,fsin1-width-us: + description: | + Fsin1 pulse high width in microsecond after vsync signal pulse high. + minimum: 40 + maximum: 10000 + default: 160 + + richtek,fsin2-delay-us: + description: | + Fsin2 pulse high delay in microsecond after vsync signal pulse high. + minimum: 0 + maximum: 100000 + default: 23000 + + richtek,fsin2-width-us: + description: | + Fsin2 pulse high width in microsecond after vsync signal pulse high. + minimum: 40 + maximum: 10000 + default: 160 + + richtek,es-pulse-width-us: + description: Eye safety function pulse width limit in microsecond. + minimum: 0 + maximum: 10000 + default: 1200 + + richtek,es-ld-current-microamp: + description: Eye safety function load current limit in microamp. + minimum: 0 + maximum: 6000000 + default: 3000000 + + richtek,lbp-level-microvolt: + description: Low battery protection level in microvolt. + minimum: 2400000 + maximum: 3700000 + default: 2700000 + + richtek,lbp-enable: + description: Low battery protection function enable control. + type: boolean + + richtek,strobe-polarity-high: + description: Strobe pin active polarity control. + type: boolean + + richtek,vsync-polarity-high: + description: Vsync pin active polarity control. + type: boolean + + richtek,fsin-enable: + description: Fsin function enable control. + type: boolean + + richtek,fsin-output: + description: Fsin function output control. + type: boolean + + richtek,es-enable: + description: Eye safety function enable control. + type: boolean + + lsw: + description: load switch current regulator description. + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + +required: + - compatible + - reg + - wakeup-source + - interrupts + - enable-gpios + - lsw + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + rtmv20@34 { + compatible = "richtek,rtmv20"; + reg = <0x34>; + wakeup-source; + interrupts-extended = <&gpio26 2 IRQ_TYPE_LEVEL_LOW>; + enable-gpios = <&gpio26 3 0>; + + richtek,strobe-polarity-high; + richtek,vsync-polarity-high; + + lsw { + regulator-name = "rtmv20,lsw"; + regulator-min-microamp = <0>; + regulator-max-microamp = <6000000>; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/rohm,bd71815-regulator.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/rohm,bd71815-regulator.yaml index dbf58420c..cc4ceb32e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/rohm,bd71815-regulator.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/rohm,bd71815-regulator.yaml @@ -1,117 +1,117 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/regulator/rohm,bd71815-regulator.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ROHM BD71815 Power Management Integrated Circuit regulators - -maintainers: - - Matti Vaittinen - -description: | - This module is part of the ROHM BD718215 MFD device. For more details - see Documentation/devicetree/bindings/mfd/rohm,bd71815-pmic.yaml. - - The regulator controller is represented as a sub-node of the PMIC node - on the device tree. - - The valid names for BD71815 regulator nodes are - buck1, buck2, buck3, buck4, buck5, - ldo1, ldo2, ldo3, ldo4, ldo5, - ldodvref, ldolpsr, wled - -properties: - wled: - type: object - description: - properties for wled regulator - $ref: regulator.yaml# - unevaluatedProperties: false - - properties: - regulator-name: - const: wled - -patternProperties: - "^((ldo|buck)[1-5]|ldolpsr|ldodvref)$": - type: object - description: - Properties for single LDO/BUCK regulator. - $ref: regulator.yaml# - - properties: - regulator-name: - pattern: "^((ldo|buck)[1-5]|ldolpsr|ldodvref)$" - description: - should be "ldo1", ..., "ldo5", "buck1", ..., "buck5" and "ldolpsr" - for ldolpsr regulator, "ldodvref" for ldodvref reglator. - - rohm,vsel-gpios: - description: - GPIO used to control ldo4 state (when ldo4 is controlled by GPIO). - - rohm,dvs-run-voltage: - description: - PMIC "RUN" state voltage in uV when PMIC HW states are used. See - comments below for bucks/LDOs which support this. 0 means - regulator should be disabled at RUN state. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 3300000 - - rohm,dvs-snvs-voltage: - description: - Whether to keep regulator enabled at "SNVS" state or not. - 0 means regulator should be disabled at SNVS state, non zero voltage - keeps regulator enabled. BD71815 does not change voltage level - when PMIC transitions to SNVS.SNVS voltage depends on the previous - state (from which the PMIC transitioned to SNVS). - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 3300000 - - rohm,dvs-suspend-voltage: - description: - PMIC "SUSPEND" state voltage in uV when PMIC HW states are used. See - comments below for bucks/LDOs which support this. 0 means - regulator should be disabled at SUSPEND state. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 3300000 - - rohm,dvs-lpsr-voltage: - description: - PMIC "LPSR" state voltage in uV when PMIC HW states are used. See - comments below for bucks/LDOs which support this. 0 means - regulator should be disabled at LPSR state. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 3300000 - - # Bucks 1 and 2 support giving separate voltages for operational states - # (RUN /CLEAN according to data-sheet) and non operational states - # (LPSR/SUSPEND). The voltage is automatically changed when HW - # state changes. Omitting these properties from bucks 1 and 2 leave - # buck voltages to not be toggled by HW state. Enable status may still - # be toggled by state changes depending on HW default settings. - # - # Bucks 3-5 and ldos 1-5 support setting the RUN state voltage here. - # Given RUN voltage is used at all states if regulator is enabled at - # given state. - # Values given for other states are regarded as enable/disable at - # given state (see below). - # - # All regulators except WLED support specifying enable/disable status - # for each of the HW states (RUN/SNVS/SUSPEND/LPSR). HW defaults can - # be overridden by setting voltage to 0 (regulator disabled at given - # state) or non-zero (regulator enabled at given state). Please note - # that setting non zero voltages for bucks 1/2 will also enable voltage - # changes according to state change. - - required: - - regulator-name - - unevaluatedProperties: false - -additionalProperties: false +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/rohm,bd71815-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BD71815 Power Management Integrated Circuit regulators + +maintainers: + - Matti Vaittinen + +description: | + This module is part of the ROHM BD718215 MFD device. For more details + see Documentation/devicetree/bindings/mfd/rohm,bd71815-pmic.yaml. + + The regulator controller is represented as a sub-node of the PMIC node + on the device tree. + + The valid names for BD71815 regulator nodes are + buck1, buck2, buck3, buck4, buck5, + ldo1, ldo2, ldo3, ldo4, ldo5, + ldodvref, ldolpsr, wled + +properties: + wled: + type: object + description: + properties for wled regulator + $ref: regulator.yaml# + unevaluatedProperties: false + + properties: + regulator-name: + const: wled + +patternProperties: + "^((ldo|buck)[1-5]|ldolpsr|ldodvref)$": + type: object + description: + Properties for single LDO/BUCK regulator. + $ref: regulator.yaml# + + properties: + regulator-name: + pattern: "^((ldo|buck)[1-5]|ldolpsr|ldodvref)$" + description: + should be "ldo1", ..., "ldo5", "buck1", ..., "buck5" and "ldolpsr" + for ldolpsr regulator, "ldodvref" for ldodvref reglator. + + rohm,vsel-gpios: + description: + GPIO used to control ldo4 state (when ldo4 is controlled by GPIO). + + rohm,dvs-run-voltage: + description: + PMIC "RUN" state voltage in uV when PMIC HW states are used. See + comments below for bucks/LDOs which support this. 0 means + regulator should be disabled at RUN state. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 3300000 + + rohm,dvs-snvs-voltage: + description: + Whether to keep regulator enabled at "SNVS" state or not. + 0 means regulator should be disabled at SNVS state, non zero voltage + keeps regulator enabled. BD71815 does not change voltage level + when PMIC transitions to SNVS.SNVS voltage depends on the previous + state (from which the PMIC transitioned to SNVS). + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 3300000 + + rohm,dvs-suspend-voltage: + description: + PMIC "SUSPEND" state voltage in uV when PMIC HW states are used. See + comments below for bucks/LDOs which support this. 0 means + regulator should be disabled at SUSPEND state. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 3300000 + + rohm,dvs-lpsr-voltage: + description: + PMIC "LPSR" state voltage in uV when PMIC HW states are used. See + comments below for bucks/LDOs which support this. 0 means + regulator should be disabled at LPSR state. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 3300000 + + # Bucks 1 and 2 support giving separate voltages for operational states + # (RUN /CLEAN according to data-sheet) and non operational states + # (LPSR/SUSPEND). The voltage is automatically changed when HW + # state changes. Omitting these properties from bucks 1 and 2 leave + # buck voltages to not be toggled by HW state. Enable status may still + # be toggled by state changes depending on HW default settings. + # + # Bucks 3-5 and ldos 1-5 support setting the RUN state voltage here. + # Given RUN voltage is used at all states if regulator is enabled at + # given state. + # Values given for other states are regarded as enable/disable at + # given state (see below). + # + # All regulators except WLED support specifying enable/disable status + # for each of the HW states (RUN/SNVS/SUSPEND/LPSR). HW defaults can + # be overridden by setting voltage to 0 (regulator disabled at given + # state) or non-zero (regulator enabled at given state). Please note + # that setting non zero voltages for bucks 1/2 will also enable voltage + # changes according to state change. + + required: + - regulator-name + + unevaluatedProperties: false + +additionalProperties: false diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/rohm,bd71828-regulator.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/rohm,bd71828-regulator.yaml index d5111a7f2..d898800d6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/rohm,bd71828-regulator.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/rohm,bd71828-regulator.yaml @@ -1,105 +1,105 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/regulator/rohm,bd71828-regulator.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ROHM BD71828 Power Management Integrated Circuit regulators - -maintainers: - - Matti Vaittinen - -description: | - This module is part of the ROHM BD71828 MFD device. For more details - see Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml. - - The regulator controller is represented as a sub-node of the PMIC node - on the device tree. - - Regulator nodes should be named to BUCK_ and LDO_. - The valid names for BD71828 regulator nodes are - BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, BUCK7 - LDO1, LDO2, LDO3, LDO4, LDO5, LDO6, LDO7 - -patternProperties: - "^LDO[1-7]$": - type: object - description: - Properties for single LDO regulator. - $ref: regulator.yaml# - - properties: - regulator-name: - pattern: "^ldo[1-7]$" - description: - should be "ldo1", ..., "ldo7" - - unevaluatedProperties: false - - "^BUCK[1-7]$": - type: object - description: - Properties for single BUCK regulator. - $ref: regulator.yaml# - - properties: - regulator-name: - pattern: "^buck[1-7]$" - description: - should be "buck1", ..., "buck7" - - rohm,dvs-run-voltage: - description: - PMIC default "RUN" state voltage in uV. See below table for - bucks which support this. 0 means disabled. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 3300000 - - rohm,dvs-idle-voltage: - description: - PMIC default "IDLE" state voltage in uV. See below table for - bucks which support this. 0 means disabled. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 3300000 - - rohm,dvs-suspend-voltage: - description: - PMIC default "SUSPEND" state voltage in uV. See below table for - bucks which support this. 0 means disabled. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 3300000 - - rohm,dvs-lpsr-voltage: - description: - PMIC default "LPSR" state voltage in uV. See below table for - bucks which support this. 0 means disabled. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 3300000 - - # Supported default DVS states: - # buck | run | idle | suspend | lpsr - # -------------------------------------------------------------- - # 1, 2, 6, and 7 | supported | supported | supported (*) - # -------------------------------------------------------------- - # 3, 4, and 5 | supported (**) - # -------------------------------------------------------------- - # - # (*) LPSR and SUSPEND states use same voltage but both states have own - # enable / - # disable settings. Voltage 0 can be specified for a state to make - # regulator disabled on that state. - # - # (**) All states use same voltage but have own enable / disable - # settings. Voltage 0 can be specified for a state to make - # regulator disabled on that state. - - required: - - regulator-name - - unevaluatedProperties: false - -additionalProperties: false +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/rohm,bd71828-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BD71828 Power Management Integrated Circuit regulators + +maintainers: + - Matti Vaittinen + +description: | + This module is part of the ROHM BD71828 MFD device. For more details + see Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml. + + The regulator controller is represented as a sub-node of the PMIC node + on the device tree. + + Regulator nodes should be named to BUCK_ and LDO_. + The valid names for BD71828 regulator nodes are + BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, BUCK7 + LDO1, LDO2, LDO3, LDO4, LDO5, LDO6, LDO7 + +patternProperties: + "^LDO[1-7]$": + type: object + description: + Properties for single LDO regulator. + $ref: regulator.yaml# + + properties: + regulator-name: + pattern: "^ldo[1-7]$" + description: + should be "ldo1", ..., "ldo7" + + unevaluatedProperties: false + + "^BUCK[1-7]$": + type: object + description: + Properties for single BUCK regulator. + $ref: regulator.yaml# + + properties: + regulator-name: + pattern: "^buck[1-7]$" + description: + should be "buck1", ..., "buck7" + + rohm,dvs-run-voltage: + description: + PMIC default "RUN" state voltage in uV. See below table for + bucks which support this. 0 means disabled. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 3300000 + + rohm,dvs-idle-voltage: + description: + PMIC default "IDLE" state voltage in uV. See below table for + bucks which support this. 0 means disabled. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 3300000 + + rohm,dvs-suspend-voltage: + description: + PMIC default "SUSPEND" state voltage in uV. See below table for + bucks which support this. 0 means disabled. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 3300000 + + rohm,dvs-lpsr-voltage: + description: + PMIC default "LPSR" state voltage in uV. See below table for + bucks which support this. 0 means disabled. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 3300000 + + # Supported default DVS states: + # buck | run | idle | suspend | lpsr + # -------------------------------------------------------------- + # 1, 2, 6, and 7 | supported | supported | supported (*) + # -------------------------------------------------------------- + # 3, 4, and 5 | supported (**) + # -------------------------------------------------------------- + # + # (*) LPSR and SUSPEND states use same voltage but both states have own + # enable / + # disable settings. Voltage 0 can be specified for a state to make + # regulator disabled on that state. + # + # (**) All states use same voltage but have own enable / disable + # settings. Voltage 0 can be specified for a state to make + # regulator disabled on that state. + + required: + - regulator-name + + unevaluatedProperties: false + +additionalProperties: false diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/tps6586x.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/tps6586x.txt index f0d0963d8..8b40cac24 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/tps6586x.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/regulator/tps6586x.txt @@ -1,135 +1,135 @@ -TPS6586x family of regulators - -Required properties: -- compatible: "ti,tps6586x" -- reg: I2C slave address -- interrupts: the interrupt outputs of the controller -- #gpio-cells: number of cells to describe a GPIO -- gpio-controller: mark the device as a GPIO controller -- regulators: A node that houses a sub-node for each regulator within the - device. Each sub-node is identified using the node's name (or the deprecated - regulator-compatible property if present), with valid values listed below. - The content of each sub-node is defined by the standard binding for - regulators; see regulator.txt. - sys, sm[0-2], ldo[0-9] and ldo_rtc -- sys-supply: The input supply for SYS. -- vin-sm0-supply: The input supply for the SM0. -- vin-sm1-supply: The input supply for the SM1. -- vin-sm2-supply: The input supply for the SM2. -- vinldo01-supply: The input supply for the LDO1 and LDO2 -- vinldo23-supply: The input supply for the LDO2 and LDO3 -- vinldo4-supply: The input supply for the LDO4 -- vinldo678-supply: The input supply for the LDO6, LDO7 and LDO8 -- vinldo9-supply: The input supply for the LDO9 - -Optional properties: -- ti,system-power-controller: Telling whether or not this pmic is controlling - the system power. - -Each regulator is defined using the standard binding for regulators. - -Note: LDO5 and LDO_RTC is supplied by SYS regulator internally and driver - take care of making proper parent child relationship. - -Example: - - pmu: tps6586x@34 { - compatible = "ti,tps6586x"; - reg = <0x34>; - interrupts = <0 88 0x4>; - - #gpio-cells = <2>; - gpio-controller; - - ti,system-power-controller; - - sys-supply = <&some_reg>; - vin-sm0-supply = <&some_reg>; - vin-sm1-supply = <&some_reg>; - vin-sm2-supply = <&some_reg>; - vinldo01-supply = <...>; - vinldo23-supply = <...>; - vinldo4-supply = <...>; - vinldo678-supply = <...>; - vinldo9-supply = <...>; - - regulators { - sys_reg: sys { - regulator-name = "vdd_sys"; - regulator-boot-on; - regulator-always-on; - }; - - sm0_reg: sm0 { - regulator-min-microvolt = < 725000>; - regulator-max-microvolt = <1500000>; - regulator-boot-on; - regulator-always-on; - }; - - sm1_reg: sm1 { - regulator-min-microvolt = < 725000>; - regulator-max-microvolt = <1500000>; - regulator-boot-on; - regulator-always-on; - }; - - sm2_reg: sm2 { - regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <4550000>; - regulator-boot-on; - regulator-always-on; - }; - - ldo0_reg: ldo0 { - regulator-name = "PCIE CLK"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - }; - - ldo1_reg: ldo1 { - regulator-min-microvolt = < 725000>; - regulator-max-microvolt = <1500000>; - }; - - ldo2_reg: ldo2 { - regulator-min-microvolt = < 725000>; - regulator-max-microvolt = <1500000>; - }; - - ldo3_reg: ldo3 { - regulator-min-microvolt = <1250000>; - regulator-max-microvolt = <3300000>; - }; - - ldo4_reg: ldo4 { - regulator-min-microvolt = <1700000>; - regulator-max-microvolt = <2475000>; - }; - - ldo5_reg: ldo5 { - regulator-min-microvolt = <1250000>; - regulator-max-microvolt = <3300000>; - }; - - ldo6_reg: ldo6 { - regulator-min-microvolt = <1250000>; - regulator-max-microvolt = <3300000>; - }; - - ldo7_reg: ldo7 { - regulator-min-microvolt = <1250000>; - regulator-max-microvolt = <3300000>; - }; - - ldo8_reg: ldo8 { - regulator-min-microvolt = <1250000>; - regulator-max-microvolt = <3300000>; - }; - - ldo9_reg: ldo9 { - regulator-min-microvolt = <1250000>; - regulator-max-microvolt = <3300000>; - }; - }; - }; +TPS6586x family of regulators + +Required properties: +- compatible: "ti,tps6586x" +- reg: I2C slave address +- interrupts: the interrupt outputs of the controller +- #gpio-cells: number of cells to describe a GPIO +- gpio-controller: mark the device as a GPIO controller +- regulators: A node that houses a sub-node for each regulator within the + device. Each sub-node is identified using the node's name (or the deprecated + regulator-compatible property if present), with valid values listed below. + The content of each sub-node is defined by the standard binding for + regulators; see regulator.txt. + sys, sm[0-2], ldo[0-9] and ldo_rtc +- sys-supply: The input supply for SYS. +- vin-sm0-supply: The input supply for the SM0. +- vin-sm1-supply: The input supply for the SM1. +- vin-sm2-supply: The input supply for the SM2. +- vinldo01-supply: The input supply for the LDO1 and LDO2 +- vinldo23-supply: The input supply for the LDO2 and LDO3 +- vinldo4-supply: The input supply for the LDO4 +- vinldo678-supply: The input supply for the LDO6, LDO7 and LDO8 +- vinldo9-supply: The input supply for the LDO9 + +Optional properties: +- ti,system-power-controller: Telling whether or not this pmic is controlling + the system power. + +Each regulator is defined using the standard binding for regulators. + +Note: LDO5 and LDO_RTC is supplied by SYS regulator internally and driver + take care of making proper parent child relationship. + +Example: + + pmu: tps6586x@34 { + compatible = "ti,tps6586x"; + reg = <0x34>; + interrupts = <0 88 0x4>; + + #gpio-cells = <2>; + gpio-controller; + + ti,system-power-controller; + + sys-supply = <&some_reg>; + vin-sm0-supply = <&some_reg>; + vin-sm1-supply = <&some_reg>; + vin-sm2-supply = <&some_reg>; + vinldo01-supply = <...>; + vinldo23-supply = <...>; + vinldo4-supply = <...>; + vinldo678-supply = <...>; + vinldo9-supply = <...>; + + regulators { + sys_reg: sys { + regulator-name = "vdd_sys"; + regulator-boot-on; + regulator-always-on; + }; + + sm0_reg: sm0 { + regulator-min-microvolt = < 725000>; + regulator-max-microvolt = <1500000>; + regulator-boot-on; + regulator-always-on; + }; + + sm1_reg: sm1 { + regulator-min-microvolt = < 725000>; + regulator-max-microvolt = <1500000>; + regulator-boot-on; + regulator-always-on; + }; + + sm2_reg: sm2 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <4550000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo0_reg: ldo0 { + regulator-name = "PCIE CLK"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + ldo1_reg: ldo1 { + regulator-min-microvolt = < 725000>; + regulator-max-microvolt = <1500000>; + }; + + ldo2_reg: ldo2 { + regulator-min-microvolt = < 725000>; + regulator-max-microvolt = <1500000>; + }; + + ldo3_reg: ldo3 { + regulator-min-microvolt = <1250000>; + regulator-max-microvolt = <3300000>; + }; + + ldo4_reg: ldo4 { + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <2475000>; + }; + + ldo5_reg: ldo5 { + regulator-min-microvolt = <1250000>; + regulator-max-microvolt = <3300000>; + }; + + ldo6_reg: ldo6 { + regulator-min-microvolt = <1250000>; + regulator-max-microvolt = <3300000>; + }; + + ldo7_reg: ldo7 { + regulator-min-microvolt = <1250000>; + regulator-max-microvolt = <3300000>; + }; + + ldo8_reg: ldo8 { + regulator-min-microvolt = <1250000>; + regulator-max-microvolt = <3300000>; + }; + + ldo9_reg: ldo9 { + regulator-min-microvolt = <1250000>; + regulator-max-microvolt = <3300000>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml index f42d7aeaa..57d75acb0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml @@ -1,150 +1,150 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/remoteproc/fsl,imx-rproc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NXP i.MX Co-Processor - -description: - This binding provides support for ARM Cortex M4 Co-processor found on some NXP iMX SoCs. - -maintainers: - - Peng Fan - -properties: - compatible: - enum: - - fsl,imx6sx-cm4 - - fsl,imx7d-cm4 - - fsl,imx7ulp-cm4 - - fsl,imx8mm-cm4 - - fsl,imx8mn-cm7 - - fsl,imx8mn-cm7-mmio - - fsl,imx8mp-cm7 - - fsl,imx8mp-cm7-mmio - - fsl,imx8mq-cm4 - - fsl,imx8qm-cm4 - - fsl,imx8qxp-cm4 - - fsl,imx8ulp-cm33 - - fsl,imx93-cm33 - - clocks: - maxItems: 1 - - syscon: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Phandle to syscon block which provide access to System Reset Controller - - mbox-names: - items: - - const: tx - - const: rx - - const: rxdb - - mboxes: - description: - This property is required only if the rpmsg/virtio functionality is used. - List of <&phandle type channel> - 1 channel for TX, 1 channel for RX, 1 channel for RXDB. - (see mailbox/fsl,mu.yaml) - minItems: 1 - maxItems: 3 - - memory-region: - description: - If present, a phandle for a reserved memory area that used for vdev buffer, - resource table, vring region and others used by remote processor. - minItems: 1 - maxItems: 32 - - power-domains: - minItems: 2 - maxItems: 8 - - fsl,auto-boot: - $ref: /schemas/types.yaml#/definitions/flag - description: - Indicate whether need to load the default firmware and start the remote - processor automatically. - - fsl,entry-address: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Specify CPU entry address for SCU enabled processor. - - fsl,iomuxc-gpr: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Phandle to IOMUXC GPR block which provide access to CM7 CPUWAIT bit. - - fsl,resource-id: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - This property is to specify the resource id of the remote processor in SoC - which supports SCFW - -required: - - compatible - -allOf: - - if: - properties: - compatible: - not: - contains: - enum: - - fsl,imx8mn-cm7-mmio - - fsl,imx8mp-cm7-mmio - then: - properties: - fsl,iomuxc-gpr: false - - - if: - properties: - compatible: - contains: - enum: - - fsl,imx8qxp-cm4 - - fsl,imx8qm-cm4 - then: - required: - - power-domains - else: - properties: - power-domains: false - -additionalProperties: false - -examples: - - | - #include - m4_reserved_sysmem1: cm4@80000000 { - reg = <0x80000000 0x80000>; - }; - - m4_reserved_sysmem2: cm4@81000000 { - reg = <0x81000000 0x80000>; - }; - - imx7d-cm4 { - compatible = "fsl,imx7d-cm4"; - memory-region = <&m4_reserved_sysmem1>, <&m4_reserved_sysmem2>; - syscon = <&src>; - clocks = <&clks IMX7D_ARM_M4_ROOT_CLK>; - }; - - - | - #include - - imx8mm-cm4 { - compatible = "fsl,imx8mm-cm4"; - clocks = <&clk IMX8MM_CLK_M4_DIV>; - mbox-names = "tx", "rx", "rxdb"; - mboxes = <&mu 0 1 - &mu 1 1 - &mu 3 1>; - memory-region = <&vdev0buffer>, <&vdev0vring0>, <&vdev0vring1>, <&rsc_table>; - syscon = <&src>; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/fsl,imx-rproc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX Co-Processor + +description: + This binding provides support for ARM Cortex M4 Co-processor found on some NXP iMX SoCs. + +maintainers: + - Peng Fan + +properties: + compatible: + enum: + - fsl,imx6sx-cm4 + - fsl,imx7d-cm4 + - fsl,imx7ulp-cm4 + - fsl,imx8mm-cm4 + - fsl,imx8mn-cm7 + - fsl,imx8mn-cm7-mmio + - fsl,imx8mp-cm7 + - fsl,imx8mp-cm7-mmio + - fsl,imx8mq-cm4 + - fsl,imx8qm-cm4 + - fsl,imx8qxp-cm4 + - fsl,imx8ulp-cm33 + - fsl,imx93-cm33 + + clocks: + maxItems: 1 + + syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to syscon block which provide access to System Reset Controller + + mbox-names: + items: + - const: tx + - const: rx + - const: rxdb + + mboxes: + description: + This property is required only if the rpmsg/virtio functionality is used. + List of <&phandle type channel> - 1 channel for TX, 1 channel for RX, 1 channel for RXDB. + (see mailbox/fsl,mu.yaml) + minItems: 1 + maxItems: 3 + + memory-region: + description: + If present, a phandle for a reserved memory area that used for vdev buffer, + resource table, vring region and others used by remote processor. + minItems: 1 + maxItems: 32 + + power-domains: + minItems: 2 + maxItems: 8 + + fsl,auto-boot: + $ref: /schemas/types.yaml#/definitions/flag + description: + Indicate whether need to load the default firmware and start the remote + processor automatically. + + fsl,entry-address: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Specify CPU entry address for SCU enabled processor. + + fsl,iomuxc-gpr: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to IOMUXC GPR block which provide access to CM7 CPUWAIT bit. + + fsl,resource-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + This property is to specify the resource id of the remote processor in SoC + which supports SCFW + +required: + - compatible + +allOf: + - if: + properties: + compatible: + not: + contains: + enum: + - fsl,imx8mn-cm7-mmio + - fsl,imx8mp-cm7-mmio + then: + properties: + fsl,iomuxc-gpr: false + + - if: + properties: + compatible: + contains: + enum: + - fsl,imx8qxp-cm4 + - fsl,imx8qm-cm4 + then: + required: + - power-domains + else: + properties: + power-domains: false + +additionalProperties: false + +examples: + - | + #include + m4_reserved_sysmem1: cm4@80000000 { + reg = <0x80000000 0x80000>; + }; + + m4_reserved_sysmem2: cm4@81000000 { + reg = <0x81000000 0x80000>; + }; + + imx7d-cm4 { + compatible = "fsl,imx7d-cm4"; + memory-region = <&m4_reserved_sysmem1>, <&m4_reserved_sysmem2>; + syscon = <&src>; + clocks = <&clks IMX7D_ARM_M4_ROOT_CLK>; + }; + + - | + #include + + imx8mm-cm4 { + compatible = "fsl,imx8mm-cm4"; + clocks = <&clk IMX8MM_CLK_M4_DIV>; + mbox-names = "tx", "rx", "rxdb"; + mboxes = <&mu 0 1 + &mu 1 1 + &mu 3 1>; + memory-region = <&vdev0buffer>, <&vdev0vring0>, <&vdev0vring1>, <&rsc_table>; + syscon = <&src>; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,qcs404-cdsp-pil.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,qcs404-cdsp-pil.yaml index 375567e7e..bca59394a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,qcs404-cdsp-pil.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,qcs404-cdsp-pil.yaml @@ -1,164 +1,164 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/remoteproc/qcom,qcs404-cdsp-pil.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm QCS404 CDSP Peripheral Image Loader - -maintainers: - - Bjorn Andersson - -description: - This document defines the binding for a component that loads and boots firmware - on the Qualcomm Technology Inc. CDSP (Compute DSP). - -properties: - compatible: - enum: - - qcom,qcs404-cdsp-pil - - reg: - maxItems: 1 - description: - The base address and size of the qdsp6ss register - - interrupts: - items: - - description: Watchdog interrupt - - description: Fatal interrupt - - description: Ready interrupt - - description: Handover interrupt - - description: Stop acknowledge interrupt - - interrupt-names: - items: - - const: wdog - - const: fatal - - const: ready - - const: handover - - const: stop-ack - - clocks: - items: - - description: XO clock - - description: SWAY clock - - description: TBU clock - - description: BIMC clock - - description: AHB AON clock - - description: Q6SS SLAVE clock - - description: Q6SS MASTER clock - - description: Q6 AXIM clock - - clock-names: - items: - - const: xo - - const: sway - - const: tbu - - const: bimc - - const: ahb_aon - - const: q6ss_slave - - const: q6ss_master - - const: q6_axim - - power-domains: - items: - - description: CX power domain - - resets: - items: - - description: AOSS restart - - reset-names: - items: - - const: restart - - memory-region: - maxItems: 1 - description: Reference to the reserved-memory for the Hexagon core - - qcom,halt-regs: - $ref: /schemas/types.yaml#/definitions/phandle-array - description: - Phandle reference to a syscon representing TCSR followed by the - offset within syscon for q6 halt register. - items: - - items: - - description: phandle to TCSR syscon region - - description: offset to the Q6 halt register - - qcom,smem-states: - $ref: /schemas/types.yaml#/definitions/phandle-array - description: States used by the AP to signal the Hexagon core - items: - - description: Stop the modem - - qcom,smem-state-names: - description: The names of the state bits used for SMP2P output - items: - - const: stop - -required: - - compatible - - reg - - interrupts - - interrupt-names - - clocks - - clock-names - - power-domains - - resets - - reset-names - - qcom,halt-regs - - memory-region - - qcom,smem-states - - qcom,smem-state-names - -additionalProperties: false - -examples: - - | - #include - #include - #include - #include - remoteproc@b00000 { - compatible = "qcom,qcs404-cdsp-pil"; - reg = <0x00b00000 0x4040>; - - interrupts-extended = <&intc GIC_SPI 229 IRQ_TYPE_EDGE_RISING>, - <&cdsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, - <&cdsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, - <&cdsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, - <&cdsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; - interrupt-names = "wdog", "fatal", "ready", - "handover", "stop-ack"; - - clocks = <&xo_board>, - <&gcc GCC_CDSP_CFG_AHB_CLK>, - <&gcc GCC_CDSP_TBU_CLK>, - <&gcc GCC_BIMC_CDSP_CLK>, - <&turingcc TURING_WRAPPER_AON_CLK>, - <&turingcc TURING_Q6SS_AHBS_AON_CLK>, - <&turingcc TURING_Q6SS_AHBM_AON_CLK>, - <&turingcc TURING_Q6SS_Q6_AXIM_CLK>; - clock-names = "xo", - "sway", - "tbu", - "bimc", - "ahb_aon", - "q6ss_slave", - "q6ss_master", - "q6_axim"; - - power-domains = <&rpmhpd SDM845_CX>; - - resets = <&gcc GCC_CDSP_RESTART>; - reset-names = "restart"; - - qcom,halt-regs = <&tcsr 0x19004>; - - memory-region = <&cdsp_fw_mem>; - - qcom,smem-states = <&cdsp_smp2p_out 0>; - qcom,smem-state-names = "stop"; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,qcs404-cdsp-pil.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm QCS404 CDSP Peripheral Image Loader + +maintainers: + - Bjorn Andersson + +description: + This document defines the binding for a component that loads and boots firmware + on the Qualcomm Technology Inc. CDSP (Compute DSP). + +properties: + compatible: + enum: + - qcom,qcs404-cdsp-pil + + reg: + maxItems: 1 + description: + The base address and size of the qdsp6ss register + + interrupts: + items: + - description: Watchdog interrupt + - description: Fatal interrupt + - description: Ready interrupt + - description: Handover interrupt + - description: Stop acknowledge interrupt + + interrupt-names: + items: + - const: wdog + - const: fatal + - const: ready + - const: handover + - const: stop-ack + + clocks: + items: + - description: XO clock + - description: SWAY clock + - description: TBU clock + - description: BIMC clock + - description: AHB AON clock + - description: Q6SS SLAVE clock + - description: Q6SS MASTER clock + - description: Q6 AXIM clock + + clock-names: + items: + - const: xo + - const: sway + - const: tbu + - const: bimc + - const: ahb_aon + - const: q6ss_slave + - const: q6ss_master + - const: q6_axim + + power-domains: + items: + - description: CX power domain + + resets: + items: + - description: AOSS restart + + reset-names: + items: + - const: restart + + memory-region: + maxItems: 1 + description: Reference to the reserved-memory for the Hexagon core + + qcom,halt-regs: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Phandle reference to a syscon representing TCSR followed by the + offset within syscon for q6 halt register. + items: + - items: + - description: phandle to TCSR syscon region + - description: offset to the Q6 halt register + + qcom,smem-states: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: States used by the AP to signal the Hexagon core + items: + - description: Stop the modem + + qcom,smem-state-names: + description: The names of the state bits used for SMP2P output + items: + - const: stop + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - clock-names + - power-domains + - resets + - reset-names + - qcom,halt-regs + - memory-region + - qcom,smem-states + - qcom,smem-state-names + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + remoteproc@b00000 { + compatible = "qcom,qcs404-cdsp-pil"; + reg = <0x00b00000 0x4040>; + + interrupts-extended = <&intc GIC_SPI 229 IRQ_TYPE_EDGE_RISING>, + <&cdsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&cdsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&cdsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&cdsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&xo_board>, + <&gcc GCC_CDSP_CFG_AHB_CLK>, + <&gcc GCC_CDSP_TBU_CLK>, + <&gcc GCC_BIMC_CDSP_CLK>, + <&turingcc TURING_WRAPPER_AON_CLK>, + <&turingcc TURING_Q6SS_AHBS_AON_CLK>, + <&turingcc TURING_Q6SS_AHBM_AON_CLK>, + <&turingcc TURING_Q6SS_Q6_AXIM_CLK>; + clock-names = "xo", + "sway", + "tbu", + "bimc", + "ahb_aon", + "q6ss_slave", + "q6ss_master", + "q6_axim"; + + power-domains = <&rpmhpd SDM845_CX>; + + resets = <&gcc GCC_CDSP_RESTART>; + reset-names = "restart"; + + qcom,halt-regs = <&tcsr 0x19004>; + + memory-region = <&cdsp_fw_mem>; + + qcom,smem-states = <&cdsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sa8775p-pas.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sa8775p-pas.yaml index a0b5edd48..7fe401a06 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sa8775p-pas.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sa8775p-pas.yaml @@ -1,160 +1,160 @@ -# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/remoteproc/qcom,sa8775p-pas.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SA8775p Peripheral Authentication Service - -maintainers: - - Bartosz Golaszewski - -description: - Qualcomm SA8775p SoC Peripheral Authentication Service loads and boots firmware - on the Qualcomm DSP Hexagon cores. - -properties: - compatible: - enum: - - qcom,sa8775p-adsp-pas - - qcom,sa8775p-cdsp0-pas - - qcom,sa8775p-cdsp1-pas - - qcom,sa8775p-gpdsp0-pas - - qcom,sa8775p-gpdsp1-pas - - reg: - maxItems: 1 - - clocks: - items: - - description: XO clock - - clock-names: - items: - - const: xo - - qcom,qmp: - $ref: /schemas/types.yaml#/definitions/phandle - description: Reference to the AOSS side-channel message RAM. - - firmware-name: - $ref: /schemas/types.yaml#/definitions/string-array - items: - - description: Firmware name of the Hexagon core - - memory-region: - items: - - description: Memory region for main Firmware authentication - - interrupts: - maxItems: 5 - - interrupt-names: - maxItems: 5 - -required: - - compatible - - reg - - memory-region - -allOf: - - $ref: /schemas/remoteproc/qcom,pas-common.yaml# - - - if: - properties: - compatible: - enum: - - qcom,sa8775p-adsp-pas - then: - properties: - power-domains: - items: - - description: LCX power domain - - description: LMX power domain - power-domain-names: - items: - - const: lcx - - const: lmx - - - if: - properties: - compatible: - enum: - - qcom,sa8775p-cdsp0-pas - - qcom,sa8775p-cdsp1-pas - then: - properties: - power-domains: - items: - - description: CX power domain - - description: MXC power domain - - description: NSP0 power domain - power-domain-names: - items: - - const: cx - - const: mxc - - const: nsp - - - if: - properties: - compatible: - enum: - - qcom,sa8775p-gpdsp0-pas - - qcom,sa8775p-gpdsp1-pas - then: - properties: - power-domains: - items: - - description: CX power domain - - description: MXC power domain - power-domain-names: - items: - - const: cx - - const: mxc - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - #include - #include - - remoteproc@30000000 { - compatible = "qcom,sa8775p-adsp-pas"; - reg = <0x30000000 0x100>; - - interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; - interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack"; - - clocks = <&rpmhcc RPMH_CXO_CLK>; - clock-names = "xo"; - - power-domains = <&rpmhpd RPMHPD_LCX>, <&rpmhpd RPMHPD_LMX>; - power-domain-names = "lcx", "lmx"; - - interconnects = <&lpass_ag_noc MASTER_LPASS_PROC 0 &mc_virt SLAVE_EBI1 0>; - - memory-region = <&pil_adsp_mem>; - - qcom,qmp = <&aoss_qmp>; - - qcom,smem-states = <&smp2p_adsp_out 0>; - qcom,smem-state-names = "stop"; - - glink-edge { - interrupts-extended = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP - IRQ_TYPE_EDGE_RISING>; - mboxes = <&ipcc IPCC_CLIENT_LPASS IPCC_MPROC_SIGNAL_GLINK_QMP>; - - label = "lpass"; - qcom,remote-pid = <2>; - }; - }; +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,sa8775p-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SA8775p Peripheral Authentication Service + +maintainers: + - Bartosz Golaszewski + +description: + Qualcomm SA8775p SoC Peripheral Authentication Service loads and boots firmware + on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,sa8775p-adsp-pas + - qcom,sa8775p-cdsp0-pas + - qcom,sa8775p-cdsp1-pas + - qcom,sa8775p-gpdsp0-pas + - qcom,sa8775p-gpdsp1-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + + firmware-name: + $ref: /schemas/types.yaml#/definitions/string-array + items: + - description: Firmware name of the Hexagon core + + memory-region: + items: + - description: Memory region for main Firmware authentication + + interrupts: + maxItems: 5 + + interrupt-names: + maxItems: 5 + +required: + - compatible + - reg + - memory-region + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + + - if: + properties: + compatible: + enum: + - qcom,sa8775p-adsp-pas + then: + properties: + power-domains: + items: + - description: LCX power domain + - description: LMX power domain + power-domain-names: + items: + - const: lcx + - const: lmx + + - if: + properties: + compatible: + enum: + - qcom,sa8775p-cdsp0-pas + - qcom,sa8775p-cdsp1-pas + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MXC power domain + - description: NSP0 power domain + power-domain-names: + items: + - const: cx + - const: mxc + - const: nsp + + - if: + properties: + compatible: + enum: + - qcom,sa8775p-gpdsp0-pas + - qcom,sa8775p-gpdsp1-pas + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MXC power domain + power-domain-names: + items: + - const: cx + - const: mxc + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + #include + + remoteproc@30000000 { + compatible = "qcom,sa8775p-adsp-pas"; + reg = <0x30000000 0x100>; + + interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + power-domains = <&rpmhpd RPMHPD_LCX>, <&rpmhpd RPMHPD_LMX>; + power-domain-names = "lcx", "lmx"; + + interconnects = <&lpass_ag_noc MASTER_LPASS_PROC 0 &mc_virt SLAVE_EBI1 0>; + + memory-region = <&pil_adsp_mem>; + + qcom,qmp = <&aoss_qmp>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "lpass"; + qcom,remote-pid = <2>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sc8280xp-pas.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sc8280xp-pas.yaml index 2ae7d3cf2..96d53baf6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sc8280xp-pas.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sc8280xp-pas.yaml @@ -1,148 +1,148 @@ -# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/remoteproc/qcom,sc8280xp-pas.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SC8280XP Peripheral Authentication Service - -maintainers: - - Manivannan Sadhasivam - -description: - Qualcomm SC8280XP SoC Peripheral Authentication Service loads and boots - firmware on the Qualcomm DSP Hexagon cores. - -properties: - compatible: - enum: - - qcom,sc8280xp-adsp-pas - - qcom,sc8280xp-nsp0-pas - - qcom,sc8280xp-nsp1-pas - - reg: - maxItems: 1 - - clocks: - items: - - description: XO clock - - clock-names: - items: - - const: xo - - qcom,qmp: - $ref: /schemas/types.yaml#/definitions/phandle - description: Reference to the AOSS side-channel message RAM. - - smd-edge: false - - memory-region: - maxItems: 1 - description: Reference to the reserved-memory for the Hexagon core - - firmware-name: - $ref: /schemas/types.yaml#/definitions/string - description: Firmware name for the Hexagon core - -required: - - compatible - - reg - - memory-region - -allOf: - - $ref: /schemas/remoteproc/qcom,pas-common.yaml# - - if: - properties: - compatible: - enum: - - qcom,sc8280xp-nsp0-pas - - qcom,sc8280xp-nsp1-pas - then: - properties: - interrupts: - maxItems: 5 - interrupt-names: - maxItems: 5 - else: - properties: - interrupts: - minItems: 6 - interrupt-names: - minItems: 6 - - - if: - properties: - compatible: - enum: - - qcom,sc8280xp-adsp-pas - then: - properties: - power-domains: - items: - - description: LCX power domain - - description: LMX power domain - power-domain-names: - items: - - const: lcx - - const: lmx - else: - properties: - power-domains: - items: - - description: NSP power domain - power-domain-names: - items: - - const: nsp - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - #include - #include - - remoteproc@3000000 { - compatible = "qcom,sc8280xp-adsp-pas"; - reg = <0x03000000 0x100>; - - clocks = <&rpmhcc RPMH_CXO_CLK>; - clock-names = "xo"; - - firmware-name = "qcom/sc8280xp/qcadsp8280.mbn"; - - interrupts-extended = <&intc GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>, - <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 7 IRQ_TYPE_EDGE_RISING>; - interrupt-names = "wdog", "fatal", "ready", - "handover", "stop-ack", "shutdown-ack"; - - memory-region = <&pil_adsp_mem>; - - power-domains = <&rpmhpd SC8280XP_LCX>, - <&rpmhpd SC8280XP_LMX>; - power-domain-names = "lcx", "lmx"; - - qcom,qmp = <&aoss_qmp>; - qcom,smem-states = <&smp2p_adsp_out 0>; - qcom,smem-state-names = "stop"; - - glink-edge { - interrupts-extended = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP - IRQ_TYPE_EDGE_RISING>; - mboxes = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP>; - - label = "lpass"; - qcom,remote-pid = <2>; - - /* ... */ - }; - }; +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,sc8280xp-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SC8280XP Peripheral Authentication Service + +maintainers: + - Manivannan Sadhasivam + +description: + Qualcomm SC8280XP SoC Peripheral Authentication Service loads and boots + firmware on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,sc8280xp-adsp-pas + - qcom,sc8280xp-nsp0-pas + - qcom,sc8280xp-nsp1-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + + smd-edge: false + + memory-region: + maxItems: 1 + description: Reference to the reserved-memory for the Hexagon core + + firmware-name: + $ref: /schemas/types.yaml#/definitions/string + description: Firmware name for the Hexagon core + +required: + - compatible + - reg + - memory-region + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + - if: + properties: + compatible: + enum: + - qcom,sc8280xp-nsp0-pas + - qcom,sc8280xp-nsp1-pas + then: + properties: + interrupts: + maxItems: 5 + interrupt-names: + maxItems: 5 + else: + properties: + interrupts: + minItems: 6 + interrupt-names: + minItems: 6 + + - if: + properties: + compatible: + enum: + - qcom,sc8280xp-adsp-pas + then: + properties: + power-domains: + items: + - description: LCX power domain + - description: LMX power domain + power-domain-names: + items: + - const: lcx + - const: lmx + else: + properties: + power-domains: + items: + - description: NSP power domain + power-domain-names: + items: + - const: nsp + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + #include + + remoteproc@3000000 { + compatible = "qcom,sc8280xp-adsp-pas"; + reg = <0x03000000 0x100>; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + firmware-name = "qcom/sc8280xp/qcadsp8280.mbn"; + + interrupts-extended = <&intc GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 7 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack", "shutdown-ack"; + + memory-region = <&pil_adsp_mem>; + + power-domains = <&rpmhpd SC8280XP_LCX>, + <&rpmhpd SC8280XP_LMX>; + power-domain-names = "lcx", "lmx"; + + qcom,qmp = <&aoss_qmp>; + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "lpass"; + qcom,remote-pid = <2>; + + /* ... */ + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sm6115-pas.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sm6115-pas.yaml index c071371fb..758adb06c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sm6115-pas.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sm6115-pas.yaml @@ -1,156 +1,156 @@ -# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/remoteproc/qcom,sm6115-pas.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SM6115 Peripheral Authentication Service - -maintainers: - - Bhupesh Sharma - -description: - Qualcomm SM6115 SoC Peripheral Authentication Service loads and boots - firmware on the Qualcomm DSP Hexagon cores. - -properties: - compatible: - oneOf: - - enum: - - qcom,sm6115-adsp-pas - - qcom,sm6115-cdsp-pas - - qcom,sm6115-mpss-pas - - - items: - - const: qcom,qcm2290-adsp-pas - - const: qcom,sm6115-adsp-pas - - - items: - - const: qcom,qcm2290-mpss-pas - - const: qcom,sm6115-mpss-pas - - reg: - maxItems: 1 - - clocks: - items: - - description: XO clock - - clock-names: - items: - - const: xo - - memory-region: - maxItems: 1 - description: Reference to the reserved-memory for the Hexagon core - - smd-edge: false - - firmware-name: - maxItems: 1 - description: Firmware name for the Hexagon core - -required: - - compatible - - reg - - memory-region - -allOf: - - $ref: /schemas/remoteproc/qcom,pas-common.yaml# - - if: - properties: - compatible: - contains: - enum: - - qcom,sm6115-adsp-pas - - qcom,sm6115-cdsp-pas - then: - properties: - interrupts: - maxItems: 5 - interrupt-names: - maxItems: 5 - else: - properties: - interrupts: - minItems: 6 - interrupt-names: - minItems: 6 - - - if: - properties: - compatible: - contains: - enum: - - qcom,sm6115-cdsp-pas - - qcom,sm6115-mpss-pas - then: - properties: - power-domains: - items: - - description: CX power domain - power-domain-names: - items: - - const: cx - - - if: - properties: - compatible: - contains: - enum: - - qcom,sm6115-adsp-pas - then: - properties: - power-domains: - items: - - description: LPI CX power domain - - description: LPI MX power domain - power-domain-names: - items: - - const: lcx - - const: lmx - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - #include - - remoteproc@ab00000 { - compatible = "qcom,sm6115-adsp-pas"; - reg = <0x0ab00000 0x100>; - - clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; - clock-names = "xo"; - - firmware-name = "qcom/sm6115/adsp.mdt"; - - interrupts-extended = <&intc GIC_SPI 282 IRQ_TYPE_EDGE_RISING>, - <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, - <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, - <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, - <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; - interrupt-names = "wdog", "fatal", "ready", - "handover", "stop-ack"; - - memory-region = <&pil_adsp_mem>; - - power-domains = <&rpmpd SM6115_VDD_LPI_CX>, - <&rpmpd SM6115_VDD_LPI_MX>; - - qcom,smem-states = <&adsp_smp2p_out 0>; - qcom,smem-state-names = "stop"; - - glink-edge { - interrupts = ; - label = "lpass"; - qcom,remote-pid = <2>; - mboxes = <&apcs_glb 8>; - - /* ... */ - - }; - }; +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,sm6115-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM6115 Peripheral Authentication Service + +maintainers: + - Bhupesh Sharma + +description: + Qualcomm SM6115 SoC Peripheral Authentication Service loads and boots + firmware on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + oneOf: + - enum: + - qcom,sm6115-adsp-pas + - qcom,sm6115-cdsp-pas + - qcom,sm6115-mpss-pas + + - items: + - const: qcom,qcm2290-adsp-pas + - const: qcom,sm6115-adsp-pas + + - items: + - const: qcom,qcm2290-mpss-pas + - const: qcom,sm6115-mpss-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + memory-region: + maxItems: 1 + description: Reference to the reserved-memory for the Hexagon core + + smd-edge: false + + firmware-name: + maxItems: 1 + description: Firmware name for the Hexagon core + +required: + - compatible + - reg + - memory-region + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + - if: + properties: + compatible: + contains: + enum: + - qcom,sm6115-adsp-pas + - qcom,sm6115-cdsp-pas + then: + properties: + interrupts: + maxItems: 5 + interrupt-names: + maxItems: 5 + else: + properties: + interrupts: + minItems: 6 + interrupt-names: + minItems: 6 + + - if: + properties: + compatible: + contains: + enum: + - qcom,sm6115-cdsp-pas + - qcom,sm6115-mpss-pas + then: + properties: + power-domains: + items: + - description: CX power domain + power-domain-names: + items: + - const: cx + + - if: + properties: + compatible: + contains: + enum: + - qcom,sm6115-adsp-pas + then: + properties: + power-domains: + items: + - description: LPI CX power domain + - description: LPI MX power domain + power-domain-names: + items: + - const: lcx + - const: lmx + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + + remoteproc@ab00000 { + compatible = "qcom,sm6115-adsp-pas"; + reg = <0x0ab00000 0x100>; + + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "xo"; + + firmware-name = "qcom/sm6115/adsp.mdt"; + + interrupts-extended = <&intc GIC_SPI 282 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + memory-region = <&pil_adsp_mem>; + + power-domains = <&rpmpd SM6115_VDD_LPI_CX>, + <&rpmpd SM6115_VDD_LPI_MX>; + + qcom,smem-states = <&adsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts = ; + label = "lpass"; + qcom,remote-pid = <2>; + mboxes = <&apcs_glb 8>; + + /* ... */ + + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sm6350-pas.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sm6350-pas.yaml index 92c9d1442..c1a3cc308 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sm6350-pas.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sm6350-pas.yaml @@ -1,168 +1,168 @@ -# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/remoteproc/qcom,sm6350-pas.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SM6350 Peripheral Authentication Service - -maintainers: - - Manivannan Sadhasivam - -description: - Qualcomm SM6350 SoC Peripheral Authentication Service loads and boots - firmware on the Qualcomm DSP Hexagon cores. - -properties: - compatible: - enum: - - qcom,sm6350-adsp-pas - - qcom,sm6350-cdsp-pas - - qcom,sm6350-mpss-pas - - reg: - maxItems: 1 - - clocks: - items: - - description: XO clock - - clock-names: - items: - - const: xo - - qcom,qmp: - $ref: /schemas/types.yaml#/definitions/phandle - description: Reference to the AOSS side-channel message RAM. - - memory-region: - maxItems: 1 - description: Reference to the reserved-memory for the Hexagon core - - smd-edge: false - - firmware-name: - maxItems: 1 - description: Firmware name for the Hexagon core - -required: - - compatible - - reg - - memory-region - -allOf: - - $ref: /schemas/remoteproc/qcom,pas-common.yaml# - - if: - properties: - compatible: - enum: - - qcom,sm6350-adsp-pas - - qcom,sm6350-cdsp-pas - then: - properties: - interrupts: - maxItems: 5 - interrupt-names: - maxItems: 5 - else: - properties: - interrupts: - minItems: 6 - interrupt-names: - minItems: 6 - - - if: - properties: - compatible: - enum: - - qcom,sm6350-adsp-pas - then: - properties: - power-domains: - items: - - description: LCX power domain - - description: LMX power domain - power-domain-names: - items: - - const: lcx - - const: lmx - - - if: - properties: - compatible: - enum: - - qcom,sm6350-cdsp-pas - then: - properties: - power-domains: - items: - - description: CX power domain - - description: MX power domain - power-domain-names: - items: - - const: cx - - const: mx - - - if: - properties: - compatible: - enum: - - qcom,sm6350-mpss-pas - then: - properties: - power-domains: - items: - - description: CX power domain - - description: MSS power domain - power-domain-names: - items: - - const: cx - - const: mss - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - #include - - remoteproc@3000000 { - compatible = "qcom,sm6350-adsp-pas"; - reg = <0x03000000 0x100>; - - clocks = <&rpmhcc RPMH_CXO_CLK>; - clock-names = "xo"; - - interrupts-extended = <&pdc 6 IRQ_TYPE_LEVEL_HIGH>, - <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; - interrupt-names = "wdog", "fatal", "ready", - "handover", "stop-ack"; - - memory-region = <&pil_adsp_mem>; - - power-domains = <&rpmhpd SM6350_LCX>, - <&rpmhpd SM6350_LMX>; - power-domain-names = "lcx", "lmx"; - - qcom,qmp = <&aoss_qmp>; - qcom,smem-states = <&smp2p_adsp_out 0>; - qcom,smem-state-names = "stop"; - - glink-edge { - interrupts-extended = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP - IRQ_TYPE_EDGE_RISING>; - mboxes = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP>; - - label = "lpass"; - qcom,remote-pid = <2>; - - /* ... */ - }; - }; +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,sm6350-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM6350 Peripheral Authentication Service + +maintainers: + - Manivannan Sadhasivam + +description: + Qualcomm SM6350 SoC Peripheral Authentication Service loads and boots + firmware on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,sm6350-adsp-pas + - qcom,sm6350-cdsp-pas + - qcom,sm6350-mpss-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + + memory-region: + maxItems: 1 + description: Reference to the reserved-memory for the Hexagon core + + smd-edge: false + + firmware-name: + maxItems: 1 + description: Firmware name for the Hexagon core + +required: + - compatible + - reg + - memory-region + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + - if: + properties: + compatible: + enum: + - qcom,sm6350-adsp-pas + - qcom,sm6350-cdsp-pas + then: + properties: + interrupts: + maxItems: 5 + interrupt-names: + maxItems: 5 + else: + properties: + interrupts: + minItems: 6 + interrupt-names: + minItems: 6 + + - if: + properties: + compatible: + enum: + - qcom,sm6350-adsp-pas + then: + properties: + power-domains: + items: + - description: LCX power domain + - description: LMX power domain + power-domain-names: + items: + - const: lcx + - const: lmx + + - if: + properties: + compatible: + enum: + - qcom,sm6350-cdsp-pas + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MX power domain + power-domain-names: + items: + - const: cx + - const: mx + + - if: + properties: + compatible: + enum: + - qcom,sm6350-mpss-pas + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MSS power domain + power-domain-names: + items: + - const: cx + - const: mss + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + + remoteproc@3000000 { + compatible = "qcom,sm6350-adsp-pas"; + reg = <0x03000000 0x100>; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + interrupts-extended = <&pdc 6 IRQ_TYPE_LEVEL_HIGH>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + memory-region = <&pil_adsp_mem>; + + power-domains = <&rpmhpd SM6350_LCX>, + <&rpmhpd SM6350_LMX>; + power-domain-names = "lcx", "lmx"; + + qcom,qmp = <&aoss_qmp>; + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "lpass"; + qcom,remote-pid = <2>; + + /* ... */ + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sm6375-pas.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sm6375-pas.yaml index e7a562db8..7286b2baa 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sm6375-pas.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sm6375-pas.yaml @@ -1,145 +1,145 @@ -# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/remoteproc/qcom,sm6375-pas.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SM6375 Peripheral Authentication Service - -maintainers: - - Manivannan Sadhasivam - -description: - Qualcomm SM6375 SoC Peripheral Authentication Service loads and boots - firmware on the Qualcomm DSP Hexagon cores. - -properties: - compatible: - enum: - - qcom,sm6375-adsp-pas - - qcom,sm6375-cdsp-pas - - qcom,sm6375-mpss-pas - - reg: - maxItems: 1 - - clocks: - items: - - description: XO clock - - clock-names: - items: - - const: xo - - memory-region: - maxItems: 1 - description: Reference to the reserved-memory for the Hexagon core - - firmware-name: - maxItems: 1 - description: Firmware name for the Hexagon core - - smd-edge: false - -required: - - compatible - - reg - -allOf: - - $ref: /schemas/remoteproc/qcom,pas-common.yaml# - - if: - properties: - compatible: - enum: - - qcom,sm6375-adsp-pas - - qcom,sm6375-cdsp-pas - then: - properties: - interrupts: - maxItems: 5 - interrupt-names: - maxItems: 5 - else: - properties: - interrupts: - minItems: 6 - interrupt-names: - minItems: 6 - - - if: - properties: - compatible: - enum: - - qcom,sm6375-adsp-pas - then: - properties: - power-domains: - items: - - description: LCX power domain - - description: LMX power domain - power-domain-names: - items: - - const: lcx - - const: lmx - - - if: - properties: - compatible: - enum: - - qcom,sm6375-cdsp-pas - - qcom,sm6375-mpss-pas - then: - properties: - power-domains: - items: - - description: CX power domain - power-domain-names: - items: - - const: cx - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - #include - - remoteproc_adsp: remoteproc@a400000 { - compatible = "qcom,sm6375-adsp-pas"; - reg = <0x0a400000 0x100>; - - interrupts-extended = <&intc GIC_SPI 282 IRQ_TYPE_LEVEL_HIGH>, - <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; - interrupt-names = "wdog", "fatal", "ready", - "handover", "stop-ack"; - - clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; - clock-names = "xo"; - - power-domains = <&rpmpd SM6375_VDD_LPI_CX>, - <&rpmpd SM6375_VDD_LPI_MX>; - power-domain-names = "lcx", "lmx"; - - memory-region = <&pil_adsp_mem>; - - qcom,smem-states = <&smp2p_adsp_out 0>; - qcom,smem-state-names = "stop"; - - glink-edge { - interrupts-extended = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP - IRQ_TYPE_EDGE_RISING>; - mboxes = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP>; - - label = "lpass"; - qcom,remote-pid = <2>; - - /* ... */ - }; - }; +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,sm6375-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM6375 Peripheral Authentication Service + +maintainers: + - Manivannan Sadhasivam + +description: + Qualcomm SM6375 SoC Peripheral Authentication Service loads and boots + firmware on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,sm6375-adsp-pas + - qcom,sm6375-cdsp-pas + - qcom,sm6375-mpss-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + memory-region: + maxItems: 1 + description: Reference to the reserved-memory for the Hexagon core + + firmware-name: + maxItems: 1 + description: Firmware name for the Hexagon core + + smd-edge: false + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + - if: + properties: + compatible: + enum: + - qcom,sm6375-adsp-pas + - qcom,sm6375-cdsp-pas + then: + properties: + interrupts: + maxItems: 5 + interrupt-names: + maxItems: 5 + else: + properties: + interrupts: + minItems: 6 + interrupt-names: + minItems: 6 + + - if: + properties: + compatible: + enum: + - qcom,sm6375-adsp-pas + then: + properties: + power-domains: + items: + - description: LCX power domain + - description: LMX power domain + power-domain-names: + items: + - const: lcx + - const: lmx + + - if: + properties: + compatible: + enum: + - qcom,sm6375-cdsp-pas + - qcom,sm6375-mpss-pas + then: + properties: + power-domains: + items: + - description: CX power domain + power-domain-names: + items: + - const: cx + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + + remoteproc_adsp: remoteproc@a400000 { + compatible = "qcom,sm6375-adsp-pas"; + reg = <0x0a400000 0x100>; + + interrupts-extended = <&intc GIC_SPI 282 IRQ_TYPE_LEVEL_HIGH>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "xo"; + + power-domains = <&rpmpd SM6375_VDD_LPI_CX>, + <&rpmpd SM6375_VDD_LPI_MX>; + power-domain-names = "lcx", "lmx"; + + memory-region = <&pil_adsp_mem>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "lpass"; + qcom,remote-pid = <2>; + + /* ... */ + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml index dec08322f..d67386c50 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml @@ -1,175 +1,175 @@ -# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/remoteproc/qcom,sm8150-pas.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm SM8150/SM8250 Peripheral Authentication Service - -maintainers: - - Manivannan Sadhasivam - -description: - Qualcomm SM8150/SM8250 SoC Peripheral Authentication Service loads and boots - firmware on the Qualcomm DSP Hexagon cores. - -properties: - compatible: - enum: - - qcom,sm8150-adsp-pas - - qcom,sm8150-cdsp-pas - - qcom,sm8150-mpss-pas - - qcom,sm8150-slpi-pas - - qcom,sm8250-adsp-pas - - qcom,sm8250-cdsp-pas - - qcom,sm8250-slpi-pas - - reg: - maxItems: 1 - - clocks: - items: - - description: XO clock - - clock-names: - items: - - const: xo - - qcom,qmp: - $ref: /schemas/types.yaml#/definitions/phandle - description: Reference to the AOSS side-channel message RAM. - - memory-region: - maxItems: 1 - description: Reference to the reserved-memory for the Hexagon core - - smd-edge: false - - firmware-name: - maxItems: 1 - description: Firmware name for the Hexagon core - -required: - - compatible - - reg - - memory-region - -allOf: - - $ref: /schemas/remoteproc/qcom,pas-common.yaml# - - if: - properties: - compatible: - enum: - - qcom,sm8150-adsp-pas - - qcom,sm8150-cdsp-pas - - qcom,sm8150-slpi-pas - - qcom,sm8250-adsp-pas - - qcom,sm8250-cdsp-pas - - qcom,sm8250-slpi-pas - then: - properties: - interrupts: - maxItems: 5 - interrupt-names: - maxItems: 5 - else: - properties: - interrupts: - minItems: 6 - interrupt-names: - minItems: 6 - - - if: - properties: - compatible: - enum: - - qcom,sm8150-adsp-pas - - qcom,sm8150-cdsp-pas - - qcom,sm8250-cdsp-pas - then: - properties: - power-domains: - items: - - description: CX power domain - power-domain-names: - items: - - const: cx - - - if: - properties: - compatible: - enum: - - qcom,sm8150-mpss-pas - then: - properties: - power-domains: - items: - - description: CX power domain - - description: MSS power domain - power-domain-names: - items: - - const: cx - - const: mss - - - if: - properties: - compatible: - enum: - - qcom,sm8150-slpi-pas - - qcom,sm8250-adsp-pas - - qcom,sm8250-slpi-pas - then: - properties: - power-domains: - items: - - description: LCX power domain - - description: LMX power domain - power-domain-names: - items: - - const: lcx - - const: lmx - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - #include - - remoteproc@17300000 { - compatible = "qcom,sm8150-adsp-pas"; - reg = <0x17300000 0x4040>; - - clocks = <&rpmhcc RPMH_CXO_CLK>; - clock-names = "xo"; - - firmware-name = "qcom/sm8150/adsp.mbn"; - - interrupts-extended = <&intc GIC_SPI 162 IRQ_TYPE_EDGE_RISING>, - <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, - <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, - <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, - <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; - interrupt-names = "wdog", "fatal", "ready", - "handover", "stop-ack"; - - memory-region = <&adsp_mem>; - - power-domains = <&rpmhpd SM8150_CX>; - - qcom,qmp = <&aoss_qmp>; - qcom,smem-states = <&adsp_smp2p_out 0>; - qcom,smem-state-names = "stop"; - - glink-edge { - interrupts = ; - label = "lpass"; - qcom,remote-pid = <2>; - mboxes = <&apss_shared 8>; - - /* ... */ - - }; - }; +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,sm8150-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM8150/SM8250 Peripheral Authentication Service + +maintainers: + - Manivannan Sadhasivam + +description: + Qualcomm SM8150/SM8250 SoC Peripheral Authentication Service loads and boots + firmware on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,sm8150-adsp-pas + - qcom,sm8150-cdsp-pas + - qcom,sm8150-mpss-pas + - qcom,sm8150-slpi-pas + - qcom,sm8250-adsp-pas + - qcom,sm8250-cdsp-pas + - qcom,sm8250-slpi-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + + memory-region: + maxItems: 1 + description: Reference to the reserved-memory for the Hexagon core + + smd-edge: false + + firmware-name: + maxItems: 1 + description: Firmware name for the Hexagon core + +required: + - compatible + - reg + - memory-region + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + - if: + properties: + compatible: + enum: + - qcom,sm8150-adsp-pas + - qcom,sm8150-cdsp-pas + - qcom,sm8150-slpi-pas + - qcom,sm8250-adsp-pas + - qcom,sm8250-cdsp-pas + - qcom,sm8250-slpi-pas + then: + properties: + interrupts: + maxItems: 5 + interrupt-names: + maxItems: 5 + else: + properties: + interrupts: + minItems: 6 + interrupt-names: + minItems: 6 + + - if: + properties: + compatible: + enum: + - qcom,sm8150-adsp-pas + - qcom,sm8150-cdsp-pas + - qcom,sm8250-cdsp-pas + then: + properties: + power-domains: + items: + - description: CX power domain + power-domain-names: + items: + - const: cx + + - if: + properties: + compatible: + enum: + - qcom,sm8150-mpss-pas + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MSS power domain + power-domain-names: + items: + - const: cx + - const: mss + + - if: + properties: + compatible: + enum: + - qcom,sm8150-slpi-pas + - qcom,sm8250-adsp-pas + - qcom,sm8250-slpi-pas + then: + properties: + power-domains: + items: + - description: LCX power domain + - description: LMX power domain + power-domain-names: + items: + - const: lcx + - const: lmx + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + + remoteproc@17300000 { + compatible = "qcom,sm8150-adsp-pas"; + reg = <0x17300000 0x4040>; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + firmware-name = "qcom/sm8150/adsp.mbn"; + + interrupts-extended = <&intc GIC_SPI 162 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + memory-region = <&adsp_mem>; + + power-domains = <&rpmhpd SM8150_CX>; + + qcom,qmp = <&aoss_qmp>; + qcom,smem-states = <&adsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts = ; + label = "lpass"; + qcom,remote-pid = <2>; + mboxes = <&apss_shared 8>; + + /* ... */ + + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/reserved-memory/ramoops.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/reserved-memory/ramoops.yaml index b45b45a0c..45cc39ecc 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/reserved-memory/ramoops.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/reserved-memory/ramoops.yaml @@ -1,144 +1,144 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/reserved-memory/ramoops.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Ramoops oops/panic logger - -description: | - ramoops provides persistent RAM storage for oops and panics, so they can be - recovered after a reboot. This is a child-node of "/reserved-memory", and - is named "ramoops" after the backend, rather than "pstore" which is the - subsystem. - - Parts of this storage may be set aside for other persistent log buffers, such - as kernel log messages, or for optional ECC error-correction data. The total - size of these optional buffers must fit in the reserved region. - - Any remaining space will be used for a circular buffer of oops and panic - records. These records have a configurable size, with a size of 0 indicating - that they should be disabled. - - At least one of "record-size", "console-size", "ftrace-size", or "pmsg-size" - must be set non-zero, but are otherwise optional as listed below. - -maintainers: - - Kees Cook - -allOf: - - $ref: reserved-memory.yaml - -properties: - compatible: - const: ramoops - - reg: - description: region of memory that is preserved between reboots - - ecc-size: - $ref: /schemas/types.yaml#/definitions/uint32 - description: enables ECC support and specifies ECC buffer size in bytes - default: 0 # no ECC - - record-size: - $ref: /schemas/types.yaml#/definitions/uint32 - description: maximum size in bytes of each kmsg dump - default: 0 - - console-size: - $ref: /schemas/types.yaml#/definitions/uint32 - description: size in bytes of log buffer reserved for kernel messages - default: 0 - - ftrace-size: - $ref: /schemas/types.yaml#/definitions/uint32 - description: size in bytes of log buffer reserved for function tracing and profiling - default: 0 - - pmsg-size: - $ref: /schemas/types.yaml#/definitions/uint32 - description: size in bytes of log buffer reserved for userspace messages - default: 0 - - mem-type: - $ref: /schemas/types.yaml#/definitions/uint32 - description: if present, sets the type of mapping is to be used to map the reserved region. - default: 0 - oneOf: - - const: 0 - description: write-combined - - const: 1 - description: unbuffered - - const: 2 - description: cached - - max-reason: - $ref: /schemas/types.yaml#/definitions/uint32 - default: 2 # log oopses and panics - maximum: 0x7fffffff - description: | - If present, sets maximum type of kmsg dump reasons to store. - This can be set to INT_MAX to store all kmsg dumps. - See include/linux/kmsg_dump.h KMSG_DUMP_* for other kmsg dump reason values. - Setting this to 0 (KMSG_DUMP_UNDEF), means the reason filtering will be - controlled by the printk.always_kmsg_dump boot param. - If unset, it will be 2 (KMSG_DUMP_OOPS), otherwise 5 (KMSG_DUMP_MAX). - - flags: - $ref: /schemas/types.yaml#/definitions/uint32 - default: 0 - description: | - If present, pass ramoops behavioral flags - (see include/linux/pstore_ram.h RAMOOPS_FLAG_* for flag values). - - no-dump-oops: - deprecated: true - type: boolean - description: | - Use max_reason instead. If present, and max_reason is not specified, - it is equivalent to max_reason = 1 (KMSG_DUMP_PANIC). - - unbuffered: - deprecated: true - type: boolean - description: | - Use mem_type instead. If present, and mem_type is not specified, - it is equivalent to mem_type = 1 and uses unbuffered mappings to map - the reserved region (defaults to buffered mappings mem_type = 0). - If both are specified -- "mem_type" overrides "unbuffered". - -unevaluatedProperties: false - -required: - - compatible - - reg - -anyOf: - - required: [record-size] - - required: [console-size] - - required: [ftrace-size] - - required: [pmsg-size] - -examples: - - | - / { - compatible = "foo"; - model = "foo"; - #address-cells = <1>; - #size-cells = <1>; - - reserved-memory { - #address-cells = <1>; - #size-cells = <1>; - ranges; - - ramoops@bfdf0000 { - compatible = "ramoops"; - reg = <0xbfdf0000 0x10000>; /* 64kB */ - console-size = <0x8000>; /* 32kB */ - record-size = <0x400>; /* 1kB */ - ecc-size = <16>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/reserved-memory/ramoops.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Ramoops oops/panic logger + +description: | + ramoops provides persistent RAM storage for oops and panics, so they can be + recovered after a reboot. This is a child-node of "/reserved-memory", and + is named "ramoops" after the backend, rather than "pstore" which is the + subsystem. + + Parts of this storage may be set aside for other persistent log buffers, such + as kernel log messages, or for optional ECC error-correction data. The total + size of these optional buffers must fit in the reserved region. + + Any remaining space will be used for a circular buffer of oops and panic + records. These records have a configurable size, with a size of 0 indicating + that they should be disabled. + + At least one of "record-size", "console-size", "ftrace-size", or "pmsg-size" + must be set non-zero, but are otherwise optional as listed below. + +maintainers: + - Kees Cook + +allOf: + - $ref: reserved-memory.yaml + +properties: + compatible: + const: ramoops + + reg: + description: region of memory that is preserved between reboots + + ecc-size: + $ref: /schemas/types.yaml#/definitions/uint32 + description: enables ECC support and specifies ECC buffer size in bytes + default: 0 # no ECC + + record-size: + $ref: /schemas/types.yaml#/definitions/uint32 + description: maximum size in bytes of each kmsg dump + default: 0 + + console-size: + $ref: /schemas/types.yaml#/definitions/uint32 + description: size in bytes of log buffer reserved for kernel messages + default: 0 + + ftrace-size: + $ref: /schemas/types.yaml#/definitions/uint32 + description: size in bytes of log buffer reserved for function tracing and profiling + default: 0 + + pmsg-size: + $ref: /schemas/types.yaml#/definitions/uint32 + description: size in bytes of log buffer reserved for userspace messages + default: 0 + + mem-type: + $ref: /schemas/types.yaml#/definitions/uint32 + description: if present, sets the type of mapping is to be used to map the reserved region. + default: 0 + oneOf: + - const: 0 + description: write-combined + - const: 1 + description: unbuffered + - const: 2 + description: cached + + max-reason: + $ref: /schemas/types.yaml#/definitions/uint32 + default: 2 # log oopses and panics + maximum: 0x7fffffff + description: | + If present, sets maximum type of kmsg dump reasons to store. + This can be set to INT_MAX to store all kmsg dumps. + See include/linux/kmsg_dump.h KMSG_DUMP_* for other kmsg dump reason values. + Setting this to 0 (KMSG_DUMP_UNDEF), means the reason filtering will be + controlled by the printk.always_kmsg_dump boot param. + If unset, it will be 2 (KMSG_DUMP_OOPS), otherwise 5 (KMSG_DUMP_MAX). + + flags: + $ref: /schemas/types.yaml#/definitions/uint32 + default: 0 + description: | + If present, pass ramoops behavioral flags + (see include/linux/pstore_ram.h RAMOOPS_FLAG_* for flag values). + + no-dump-oops: + deprecated: true + type: boolean + description: | + Use max_reason instead. If present, and max_reason is not specified, + it is equivalent to max_reason = 1 (KMSG_DUMP_PANIC). + + unbuffered: + deprecated: true + type: boolean + description: | + Use mem_type instead. If present, and mem_type is not specified, + it is equivalent to mem_type = 1 and uses unbuffered mappings to map + the reserved region (defaults to buffered mappings mem_type = 0). + If both are specified -- "mem_type" overrides "unbuffered". + +unevaluatedProperties: false + +required: + - compatible + - reg + +anyOf: + - required: [record-size] + - required: [console-size] + - required: [ftrace-size] + - required: [pmsg-size] + +examples: + - | + / { + compatible = "foo"; + model = "foo"; + #address-cells = <1>; + #size-cells = <1>; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + ramoops@bfdf0000 { + compatible = "ramoops"; + reg = <0xbfdf0000 0x10000>; /* 64kB */ + console-size = <0x8000>; /* 32kB */ + record-size = <0x400>; /* 1kB */ + ecc-size = <16>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml index c26789873..4531eec56 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml @@ -1,195 +1,195 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/rtc/allwinner,sun6i-a31-rtc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Allwinner A31 RTC - -maintainers: - - Chen-Yu Tsai - - Maxime Ripard - -properties: - "#clock-cells": - const: 1 - - compatible: - oneOf: - - enum: - - allwinner,sun6i-a31-rtc - - allwinner,sun8i-a23-rtc - - allwinner,sun8i-h3-rtc - - allwinner,sun8i-r40-rtc - - allwinner,sun8i-v3-rtc - - allwinner,sun50i-h5-rtc - - allwinner,sun50i-h6-rtc - - allwinner,sun50i-h616-rtc - - allwinner,sun50i-r329-rtc - - items: - - const: allwinner,sun50i-a64-rtc - - const: allwinner,sun8i-h3-rtc - - items: - - const: allwinner,sun20i-d1-rtc - - const: allwinner,sun50i-r329-rtc - - reg: - maxItems: 1 - - interrupts: - minItems: 1 - items: - - description: RTC Alarm 0 - - description: RTC Alarm 1 - - clocks: - minItems: 1 - maxItems: 4 - - clock-names: - minItems: 1 - maxItems: 4 - - clock-output-names: - minItems: 1 - maxItems: 3 - description: - The RTC provides up to three clocks - - the Low Frequency Oscillator or LOSC, at index 0, - - the Low Frequency Oscillator External output (X32KFOUT in - the datasheet), at index 1, - - the Internal Oscillator, at index 2. - -allOf: - - $ref: rtc.yaml# - - if: - properties: - compatible: - contains: - const: allwinner,sun6i-a31-rtc - - then: - properties: - clock-output-names: - maxItems: 1 - - - if: - properties: - compatible: - contains: - enum: - - allwinner,sun8i-a23-rtc - - allwinner,sun8i-r40-rtc - - allwinner,sun8i-v3-rtc - - then: - properties: - clock-output-names: - minItems: 2 - maxItems: 2 - - - if: - properties: - compatible: - contains: - enum: - - allwinner,sun8i-h3-rtc - - allwinner,sun50i-h5-rtc - - allwinner,sun50i-h6-rtc - - then: - properties: - clock-output-names: - minItems: 3 - - - if: - properties: - compatible: - contains: - const: allwinner,sun50i-h616-rtc - - then: - properties: - clocks: - items: - - description: Bus clock for register access - - description: 24 MHz oscillator - - description: 32 kHz clock from the CCU - - clock-names: - items: - - const: bus - - const: hosc - - const: pll-32k - - required: - - clocks - - clock-names - - - if: - properties: - compatible: - contains: - const: allwinner,sun50i-r329-rtc - - then: - properties: - clocks: - minItems: 3 - items: - - description: Bus clock for register access - - description: 24 MHz oscillator - - description: AHB parent for internal SPI clock - - description: External 32768 Hz oscillator - - clock-names: - minItems: 3 - items: - - const: bus - - const: hosc - - const: ahb - - const: ext-osc32k - - required: - - clocks - - clock-names - - - if: - properties: - compatible: - contains: - enum: - - allwinner,sun8i-r40-rtc - - allwinner,sun50i-h616-rtc - - allwinner,sun50i-r329-rtc - - then: - properties: - interrupts: - maxItems: 1 - - else: - properties: - interrupts: - minItems: 2 - -required: - - "#clock-cells" - - compatible - - reg - - interrupts - -additionalProperties: false - -examples: - - | - rtc: rtc@1f00000 { - compatible = "allwinner,sun6i-a31-rtc"; - reg = <0x01f00000 0x400>; - interrupts = <0 40 4>, <0 41 4>; - clock-output-names = "osc32k"; - clocks = <&ext_osc32k>; - #clock-cells = <1>; - }; - -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/allwinner,sun6i-a31-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner A31 RTC + +maintainers: + - Chen-Yu Tsai + - Maxime Ripard + +properties: + "#clock-cells": + const: 1 + + compatible: + oneOf: + - enum: + - allwinner,sun6i-a31-rtc + - allwinner,sun8i-a23-rtc + - allwinner,sun8i-h3-rtc + - allwinner,sun8i-r40-rtc + - allwinner,sun8i-v3-rtc + - allwinner,sun50i-h5-rtc + - allwinner,sun50i-h6-rtc + - allwinner,sun50i-h616-rtc + - allwinner,sun50i-r329-rtc + - items: + - const: allwinner,sun50i-a64-rtc + - const: allwinner,sun8i-h3-rtc + - items: + - const: allwinner,sun20i-d1-rtc + - const: allwinner,sun50i-r329-rtc + + reg: + maxItems: 1 + + interrupts: + minItems: 1 + items: + - description: RTC Alarm 0 + - description: RTC Alarm 1 + + clocks: + minItems: 1 + maxItems: 4 + + clock-names: + minItems: 1 + maxItems: 4 + + clock-output-names: + minItems: 1 + maxItems: 3 + description: + The RTC provides up to three clocks + - the Low Frequency Oscillator or LOSC, at index 0, + - the Low Frequency Oscillator External output (X32KFOUT in + the datasheet), at index 1, + - the Internal Oscillator, at index 2. + +allOf: + - $ref: rtc.yaml# + - if: + properties: + compatible: + contains: + const: allwinner,sun6i-a31-rtc + + then: + properties: + clock-output-names: + maxItems: 1 + + - if: + properties: + compatible: + contains: + enum: + - allwinner,sun8i-a23-rtc + - allwinner,sun8i-r40-rtc + - allwinner,sun8i-v3-rtc + + then: + properties: + clock-output-names: + minItems: 2 + maxItems: 2 + + - if: + properties: + compatible: + contains: + enum: + - allwinner,sun8i-h3-rtc + - allwinner,sun50i-h5-rtc + - allwinner,sun50i-h6-rtc + + then: + properties: + clock-output-names: + minItems: 3 + + - if: + properties: + compatible: + contains: + const: allwinner,sun50i-h616-rtc + + then: + properties: + clocks: + items: + - description: Bus clock for register access + - description: 24 MHz oscillator + - description: 32 kHz clock from the CCU + + clock-names: + items: + - const: bus + - const: hosc + - const: pll-32k + + required: + - clocks + - clock-names + + - if: + properties: + compatible: + contains: + const: allwinner,sun50i-r329-rtc + + then: + properties: + clocks: + minItems: 3 + items: + - description: Bus clock for register access + - description: 24 MHz oscillator + - description: AHB parent for internal SPI clock + - description: External 32768 Hz oscillator + + clock-names: + minItems: 3 + items: + - const: bus + - const: hosc + - const: ahb + - const: ext-osc32k + + required: + - clocks + - clock-names + + - if: + properties: + compatible: + contains: + enum: + - allwinner,sun8i-r40-rtc + - allwinner,sun50i-h616-rtc + - allwinner,sun50i-r329-rtc + + then: + properties: + interrupts: + maxItems: 1 + + else: + properties: + interrupts: + minItems: 2 + +required: + - "#clock-cells" + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + rtc: rtc@1f00000 { + compatible = "allwinner,sun6i-a31-rtc"; + reg = <0x01f00000 0x400>; + interrupts = <0 40 4>, <0 41 4>; + clock-output-names = "osc32k"; + clocks = <&ext_osc32k>; + #clock-cells = <1>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/rtc/st,stm32-rtc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/rtc/st,stm32-rtc.yaml index f05343fcc..aae06e570 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/rtc/st,stm32-rtc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/rtc/st,stm32-rtc.yaml @@ -1,172 +1,172 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/rtc/st,stm32-rtc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: STMicroelectronics STM32 Real Time Clock - -maintainers: - - Gabriel Fernandez - -properties: - compatible: - enum: - - st,stm32-rtc - - st,stm32h7-rtc - - st,stm32mp1-rtc - - st,stm32mp25-rtc - - reg: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 2 - - clock-names: - items: - - const: pclk - - const: rtc_ck - - interrupts: - maxItems: 1 - - st,syscfg: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - minItems: 3 - maxItems: 3 - description: | - Phandle/offset/mask triplet. The phandle to pwrcfg used to - access control register at offset, and change the dbp (Disable Backup - Protection) bit represented by the mask, mandatory to disable/enable backup - domain (RTC registers) write protection. - - assigned-clocks: - description: | - override default rtc_ck parent clock reference to the rtc_ck clock entry - maxItems: 1 - - assigned-clock-parents: - description: | - override default rtc_ck parent clock phandle of the new parent clock of rtc_ck - maxItems: 1 - -patternProperties: - "^rtc-[a-z]+-[0-9]+$": - type: object - $ref: /schemas/pinctrl/pinmux-node.yaml - description: | - Configuration of STM32 RTC pins description. STM32 RTC is able to output - some signals on specific pins: - - LSCO (Low Speed Clock Output) that allow to output LSE clock on a pin. - - Alarm out that allow to send a pulse on a pin when alarm A of the RTC - expires. - additionalProperties: false - properties: - function: - enum: - - lsco - - alarm-a - pins: - enum: - - out1 - - out2 - - out2_rmp - -allOf: - - if: - properties: - compatible: - contains: - const: st,stm32-rtc - - then: - properties: - clocks: - minItems: 1 - maxItems: 1 - - clock-names: false - - patternProperties: - "^rtc-[a-z]+-[0-9]+$": false - - required: - - st,syscfg - - - if: - properties: - compatible: - contains: - const: st,stm32h7-rtc - - then: - properties: - clocks: - minItems: 2 - maxItems: 2 - - patternProperties: - "^rtc-[a-z]+-[0-9]+$": false - - required: - - clock-names - - st,syscfg - - - if: - properties: - compatible: - contains: - enum: - - st,stm32mp1-rtc - - st,stm32mp25-rtc - - then: - properties: - clocks: - minItems: 2 - maxItems: 2 - - assigned-clocks: false - assigned-clock-parents: false - - required: - - clock-names - -required: - - compatible - - reg - - clocks - - interrupts - -additionalProperties: false - -examples: - - | - #include - #include - rtc@40002800 { - compatible = "st,stm32-rtc"; - reg = <0x40002800 0x400>; - clocks = <&rcc 1 CLK_RTC>; - assigned-clocks = <&rcc 1 CLK_RTC>; - assigned-clock-parents = <&rcc 1 CLK_LSE>; - interrupt-parent = <&exti>; - interrupts = <17 1>; - st,syscfg = <&pwrcfg 0x00 0x100>; - }; - - - | - #include - #include - rtc@5c004000 { - compatible = "st,stm32mp1-rtc"; - reg = <0x5c004000 0x400>; - clocks = <&rcc RTCAPB>, <&rcc RTC>; - clock-names = "pclk", "rtc_ck"; - interrupts = ; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/st,stm32-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STM32 Real Time Clock + +maintainers: + - Gabriel Fernandez + +properties: + compatible: + enum: + - st,stm32-rtc + - st,stm32h7-rtc + - st,stm32mp1-rtc + - st,stm32mp25-rtc + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + items: + - const: pclk + - const: rtc_ck + + interrupts: + maxItems: 1 + + st,syscfg: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + minItems: 3 + maxItems: 3 + description: | + Phandle/offset/mask triplet. The phandle to pwrcfg used to + access control register at offset, and change the dbp (Disable Backup + Protection) bit represented by the mask, mandatory to disable/enable backup + domain (RTC registers) write protection. + + assigned-clocks: + description: | + override default rtc_ck parent clock reference to the rtc_ck clock entry + maxItems: 1 + + assigned-clock-parents: + description: | + override default rtc_ck parent clock phandle of the new parent clock of rtc_ck + maxItems: 1 + +patternProperties: + "^rtc-[a-z]+-[0-9]+$": + type: object + $ref: /schemas/pinctrl/pinmux-node.yaml + description: | + Configuration of STM32 RTC pins description. STM32 RTC is able to output + some signals on specific pins: + - LSCO (Low Speed Clock Output) that allow to output LSE clock on a pin. + - Alarm out that allow to send a pulse on a pin when alarm A of the RTC + expires. + additionalProperties: false + properties: + function: + enum: + - lsco + - alarm-a + pins: + enum: + - out1 + - out2 + - out2_rmp + +allOf: + - if: + properties: + compatible: + contains: + const: st,stm32-rtc + + then: + properties: + clocks: + minItems: 1 + maxItems: 1 + + clock-names: false + + patternProperties: + "^rtc-[a-z]+-[0-9]+$": false + + required: + - st,syscfg + + - if: + properties: + compatible: + contains: + const: st,stm32h7-rtc + + then: + properties: + clocks: + minItems: 2 + maxItems: 2 + + patternProperties: + "^rtc-[a-z]+-[0-9]+$": false + + required: + - clock-names + - st,syscfg + + - if: + properties: + compatible: + contains: + enum: + - st,stm32mp1-rtc + - st,stm32mp25-rtc + + then: + properties: + clocks: + minItems: 2 + maxItems: 2 + + assigned-clocks: false + assigned-clock-parents: false + + required: + - clock-names + +required: + - compatible + - reg + - clocks + - interrupts + +additionalProperties: false + +examples: + - | + #include + #include + rtc@40002800 { + compatible = "st,stm32-rtc"; + reg = <0x40002800 0x400>; + clocks = <&rcc 1 CLK_RTC>; + assigned-clocks = <&rcc 1 CLK_RTC>; + assigned-clock-parents = <&rcc 1 CLK_LSE>; + interrupt-parent = <&exti>; + interrupts = <17 1>; + st,syscfg = <&pwrcfg 0x00 0x100>; + }; + + - | + #include + #include + rtc@5c004000 { + compatible = "st,stm32mp1-rtc"; + reg = <0x5c004000 0x400>; + clocks = <&rcc RTCAPB>, <&rcc RTC>; + clock-names = "pclk", "rtc_ck"; + interrupts = ; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/scsi/hisilicon-sas.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/scsi/hisilicon-sas.txt index dffbcc8b3..8c6659ed2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/scsi/hisilicon-sas.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/scsi/hisilicon-sas.txt @@ -1,98 +1,98 @@ -* HiSilicon SAS controller - -The HiSilicon SAS controller supports SAS/SATA. - -Main node required properties: - - compatible : value should be as follows: - (a) "hisilicon,hip05-sas-v1" for v1 hw in hip05 chipset - (b) "hisilicon,hip06-sas-v2" for v2 hw in hip06 chipset - (c) "hisilicon,hip07-sas-v2" for v2 hw in hip07 chipset - - sas-addr : array of 8 bytes for host SAS address - - reg : Contains two regions. The first is the address and length of the SAS - register. The second is the address and length of CPLD register for - SGPIO control. The second is optional, and should be set only when - we use a CPLD for directly attached disk LED control. - - hisilicon,sas-syscon: phandle of syscon used for sas control - - ctrl-reset-reg : offset to controller reset register in ctrl reg - - ctrl-reset-sts-reg : offset to controller reset status register in ctrl reg - - ctrl-clock-ena-reg : offset to controller clock enable register in ctrl reg - - queue-count : number of delivery and completion queues in the controller - - phy-count : number of phys accessible by the controller - - interrupts : For v1 hw: Interrupts for phys, completion queues, and fatal - sources; the interrupts are ordered in 3 groups, as follows: - - Phy interrupts - - Completion queue interrupts - - Fatal interrupts - Phy interrupts : Each phy has 3 interrupt sources: - - broadcast - - phyup - - abnormal - The phy interrupts are ordered into groups of 3 per phy - (broadcast, phyup, and abnormal) in increasing order. - Completion queue interrupts : each completion queue has 1 - interrupt source. - The interrupts are ordered in increasing order. - Fatal interrupts : the fatal interrupts are ordered as follows: - - ECC - - AXI bus - For v2 hw: Interrupts for phys, Sata, and completion queues; - the interrupts are ordered in 3 groups, as follows: - - Phy interrupts - - Sata interrupts - - Completion queue interrupts - Phy interrupts : Each controller has 2 phy interrupts: - - phy up/down - - channel interrupt - Sata interrupts : Each phy on the controller has 1 Sata - interrupt. The interrupts are ordered in increasing - order. - Completion queue interrupts : each completion queue has 1 - interrupt source. The interrupts are ordered in - increasing order. - -Optional main node properties: - - hip06-sas-v2-quirk-amt : when set, indicates that the v2 controller has the - "am-max-transmissions" limitation. - - hisilicon,signal-attenuation : array of 3 32-bit values, containing de-emphasis, - preshoot, and boost attenuation readings for the board. They - are used to describe the signal attenuation of the board. These - values' range is 7600 to 12400, and used to represent -24dB to - 24dB. - The formula is "y = (x-10000)/10000". For example, 10478 - means 4.78dB. - -Example: - sas0: sas@c1000000 { - compatible = "hisilicon,hip05-sas-v1"; - sas-addr = [50 01 88 20 16 00 00 0a]; - reg = <0x0 0xc1000000 0x0 0x10000>; - hisilicon,sas-syscon = <&pcie_sas>; - ctrl-reset-reg = <0xa60>; - ctrl-reset-sts-reg = <0x5a30>; - ctrl-clock-ena-reg = <0x338>; - queue-count = <32>; - phy-count = <8>; - dma-coherent; - interrupt-parent = <&mbigen_dsa>; - interrupts = <259 4>,<263 4>,<264 4>,/* phy0 */ - <269 4>,<273 4>,<274 4>,/* phy1 */ - <279 4>,<283 4>,<284 4>,/* phy2 */ - <289 4>,<293 4>,<294 4>,/* phy3 */ - <299 4>,<303 4>,<304 4>,/* phy4 */ - <309 4>,<313 4>,<314 4>,/* phy5 */ - <319 4>,<323 4>,<324 4>,/* phy6 */ - <329 4>,<333 4>,<334 4>,/* phy7 */ - <336 1>,<337 1>,<338 1>,/* cq0-2 */ - <339 1>,<340 1>,<341 1>,/* cq3-5 */ - <342 1>,<343 1>,<344 1>,/* cq6-8 */ - <345 1>,<346 1>,<347 1>,/* cq9-11 */ - <348 1>,<349 1>,<350 1>,/* cq12-14 */ - <351 1>,<352 1>,<353 1>,/* cq15-17 */ - <354 1>,<355 1>,<356 1>,/* cq18-20 */ - <357 1>,<358 1>,<359 1>,/* cq21-23 */ - <360 1>,<361 1>,<362 1>,/* cq24-26 */ - <363 1>,<364 1>,<365 1>,/* cq27-29 */ - <366 1>,<367 1>/* cq30-31 */ - <376 4>,/* fatal ecc */ - <381 4>;/* fatal axi */ - }; +* HiSilicon SAS controller + +The HiSilicon SAS controller supports SAS/SATA. + +Main node required properties: + - compatible : value should be as follows: + (a) "hisilicon,hip05-sas-v1" for v1 hw in hip05 chipset + (b) "hisilicon,hip06-sas-v2" for v2 hw in hip06 chipset + (c) "hisilicon,hip07-sas-v2" for v2 hw in hip07 chipset + - sas-addr : array of 8 bytes for host SAS address + - reg : Contains two regions. The first is the address and length of the SAS + register. The second is the address and length of CPLD register for + SGPIO control. The second is optional, and should be set only when + we use a CPLD for directly attached disk LED control. + - hisilicon,sas-syscon: phandle of syscon used for sas control + - ctrl-reset-reg : offset to controller reset register in ctrl reg + - ctrl-reset-sts-reg : offset to controller reset status register in ctrl reg + - ctrl-clock-ena-reg : offset to controller clock enable register in ctrl reg + - queue-count : number of delivery and completion queues in the controller + - phy-count : number of phys accessible by the controller + - interrupts : For v1 hw: Interrupts for phys, completion queues, and fatal + sources; the interrupts are ordered in 3 groups, as follows: + - Phy interrupts + - Completion queue interrupts + - Fatal interrupts + Phy interrupts : Each phy has 3 interrupt sources: + - broadcast + - phyup + - abnormal + The phy interrupts are ordered into groups of 3 per phy + (broadcast, phyup, and abnormal) in increasing order. + Completion queue interrupts : each completion queue has 1 + interrupt source. + The interrupts are ordered in increasing order. + Fatal interrupts : the fatal interrupts are ordered as follows: + - ECC + - AXI bus + For v2 hw: Interrupts for phys, Sata, and completion queues; + the interrupts are ordered in 3 groups, as follows: + - Phy interrupts + - Sata interrupts + - Completion queue interrupts + Phy interrupts : Each controller has 2 phy interrupts: + - phy up/down + - channel interrupt + Sata interrupts : Each phy on the controller has 1 Sata + interrupt. The interrupts are ordered in increasing + order. + Completion queue interrupts : each completion queue has 1 + interrupt source. The interrupts are ordered in + increasing order. + +Optional main node properties: + - hip06-sas-v2-quirk-amt : when set, indicates that the v2 controller has the + "am-max-transmissions" limitation. + - hisilicon,signal-attenuation : array of 3 32-bit values, containing de-emphasis, + preshoot, and boost attenuation readings for the board. They + are used to describe the signal attenuation of the board. These + values' range is 7600 to 12400, and used to represent -24dB to + 24dB. + The formula is "y = (x-10000)/10000". For example, 10478 + means 4.78dB. + +Example: + sas0: sas@c1000000 { + compatible = "hisilicon,hip05-sas-v1"; + sas-addr = [50 01 88 20 16 00 00 0a]; + reg = <0x0 0xc1000000 0x0 0x10000>; + hisilicon,sas-syscon = <&pcie_sas>; + ctrl-reset-reg = <0xa60>; + ctrl-reset-sts-reg = <0x5a30>; + ctrl-clock-ena-reg = <0x338>; + queue-count = <32>; + phy-count = <8>; + dma-coherent; + interrupt-parent = <&mbigen_dsa>; + interrupts = <259 4>,<263 4>,<264 4>,/* phy0 */ + <269 4>,<273 4>,<274 4>,/* phy1 */ + <279 4>,<283 4>,<284 4>,/* phy2 */ + <289 4>,<293 4>,<294 4>,/* phy3 */ + <299 4>,<303 4>,<304 4>,/* phy4 */ + <309 4>,<313 4>,<314 4>,/* phy5 */ + <319 4>,<323 4>,<324 4>,/* phy6 */ + <329 4>,<333 4>,<334 4>,/* phy7 */ + <336 1>,<337 1>,<338 1>,/* cq0-2 */ + <339 1>,<340 1>,<341 1>,/* cq3-5 */ + <342 1>,<343 1>,<344 1>,/* cq6-8 */ + <345 1>,<346 1>,<347 1>,/* cq9-11 */ + <348 1>,<349 1>,<350 1>,/* cq12-14 */ + <351 1>,<352 1>,<353 1>,/* cq15-17 */ + <354 1>,<355 1>,<356 1>,/* cq18-20 */ + <357 1>,<358 1>,<359 1>,/* cq21-23 */ + <360 1>,<361 1>,<362 1>,/* cq24-26 */ + <363 1>,<364 1>,<365 1>,/* cq27-29 */ + <366 1>,<367 1>/* cq30-31 */ + <376 4>,/* fatal ecc */ + <381 4>;/* fatal axi */ + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml index 23f6b09da..9c6dc16f8 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml @@ -1,153 +1,153 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/serial/fsl-imx-uart.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale i.MX Universal Asynchronous Receiver/Transmitter (UART) - -maintainers: - - Fabio Estevam - -properties: - compatible: - oneOf: - - const: fsl,imx1-uart - - const: fsl,imx21-uart - - items: - - enum: - - fsl,imx25-uart - - fsl,imx27-uart - - fsl,imx31-uart - - fsl,imx35-uart - - fsl,imx50-uart - - fsl,imx51-uart - - fsl,imx53-uart - - fsl,imx6q-uart - - const: fsl,imx21-uart - - items: - - enum: - - fsl,imx6sl-uart - - fsl,imx6sll-uart - - fsl,imx6sx-uart - - const: fsl,imx6q-uart - - const: fsl,imx21-uart - - items: - - enum: - - fsl,imx6ul-uart - - fsl,imx7d-uart - - fsl,imx8mm-uart - - fsl,imx8mn-uart - - fsl,imx8mp-uart - - fsl,imx8mq-uart - - const: fsl,imx6q-uart - - reg: - maxItems: 1 - - clocks: - maxItems: 2 - - clock-names: - items: - - const: ipg - - const: per - - dmas: - items: - - description: DMA controller phandle and request line for RX - - description: DMA controller phandle and request line for TX - - dma-names: - items: - - const: rx - - const: tx - - interrupts: - items: - - description: UART RX Interrupt - - description: UART TX Interrupt - - description: UART RTS Interrupt - minItems: 1 - - wakeup-source: true - - fsl,dte-mode: - $ref: /schemas/types.yaml#/definitions/flag - description: | - Indicate the uart works in DTE mode. The uart works in DCE mode by default. - - fsl,inverted-tx: - $ref: /schemas/types.yaml#/definitions/flag - description: | - Indicate that the hardware attached to the peripheral inverts the signal - transmitted, and that the peripheral should invert its output using the - INVT registers. - - fsl,inverted-rx: - $ref: /schemas/types.yaml#/definitions/flag - description: | - Indicate that the hardware attached to the peripheral inverts the signal - received, and that the peripheral should invert its input using the - INVR registers. - - fsl,dma-info: - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 2 - maxItems: 2 - description: | - First cell contains the size of DMA buffer chunks, second cell contains - the amount of chunks used for the device. Multiplying both numbers is - the total size of memory used for receiving data. - When not being configured the system will use default settings, which - are sensible for most use cases. If you need low latency processing on - slow connections this needs to be configured appropriately. - -required: - - compatible - - reg - - clocks - - clock-names - - interrupts - -allOf: - - $ref: serial.yaml# - - $ref: rs485.yaml# - - - if: - properties: - compatible: - contains: - const: fsl,imx1-uart - then: - properties: - interrupts: - minItems: 3 - maxItems: 3 - else: - properties: - interrupts: - maxItems: 1 - -unevaluatedProperties: false - -examples: - - | - #include - - aliases { - serial0 = &uart1; - }; - - uart1: serial@73fbc000 { - compatible = "fsl,imx51-uart", "fsl,imx21-uart"; - reg = <0x73fbc000 0x4000>; - interrupts = <31>; - clocks = <&clks IMX5_CLK_UART1_IPG_GATE>, - <&clks IMX5_CLK_UART1_PER_GATE>; - clock-names = "ipg", "per"; - dmas = <&sdma 18 4 1>, <&sdma 19 4 2>; - dma-names = "rx", "tx"; - uart-has-rtscts; - fsl,dte-mode; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/fsl-imx-uart.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX Universal Asynchronous Receiver/Transmitter (UART) + +maintainers: + - Fabio Estevam + +properties: + compatible: + oneOf: + - const: fsl,imx1-uart + - const: fsl,imx21-uart + - items: + - enum: + - fsl,imx25-uart + - fsl,imx27-uart + - fsl,imx31-uart + - fsl,imx35-uart + - fsl,imx50-uart + - fsl,imx51-uart + - fsl,imx53-uart + - fsl,imx6q-uart + - const: fsl,imx21-uart + - items: + - enum: + - fsl,imx6sl-uart + - fsl,imx6sll-uart + - fsl,imx6sx-uart + - const: fsl,imx6q-uart + - const: fsl,imx21-uart + - items: + - enum: + - fsl,imx6ul-uart + - fsl,imx7d-uart + - fsl,imx8mm-uart + - fsl,imx8mn-uart + - fsl,imx8mp-uart + - fsl,imx8mq-uart + - const: fsl,imx6q-uart + + reg: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: ipg + - const: per + + dmas: + items: + - description: DMA controller phandle and request line for RX + - description: DMA controller phandle and request line for TX + + dma-names: + items: + - const: rx + - const: tx + + interrupts: + items: + - description: UART RX Interrupt + - description: UART TX Interrupt + - description: UART RTS Interrupt + minItems: 1 + + wakeup-source: true + + fsl,dte-mode: + $ref: /schemas/types.yaml#/definitions/flag + description: | + Indicate the uart works in DTE mode. The uart works in DCE mode by default. + + fsl,inverted-tx: + $ref: /schemas/types.yaml#/definitions/flag + description: | + Indicate that the hardware attached to the peripheral inverts the signal + transmitted, and that the peripheral should invert its output using the + INVT registers. + + fsl,inverted-rx: + $ref: /schemas/types.yaml#/definitions/flag + description: | + Indicate that the hardware attached to the peripheral inverts the signal + received, and that the peripheral should invert its input using the + INVR registers. + + fsl,dma-info: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 2 + maxItems: 2 + description: | + First cell contains the size of DMA buffer chunks, second cell contains + the amount of chunks used for the device. Multiplying both numbers is + the total size of memory used for receiving data. + When not being configured the system will use default settings, which + are sensible for most use cases. If you need low latency processing on + slow connections this needs to be configured appropriately. + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +allOf: + - $ref: serial.yaml# + - $ref: rs485.yaml# + + - if: + properties: + compatible: + contains: + const: fsl,imx1-uart + then: + properties: + interrupts: + minItems: 3 + maxItems: 3 + else: + properties: + interrupts: + maxItems: 1 + +unevaluatedProperties: false + +examples: + - | + #include + + aliases { + serial0 = &uart1; + }; + + uart1: serial@73fbc000 { + compatible = "fsl,imx51-uart", "fsl,imx21-uart"; + reg = <0x73fbc000 0x4000>; + interrupts = <31>; + clocks = <&clks IMX5_CLK_UART1_IPG_GATE>, + <&clks IMX5_CLK_UART1_PER_GATE>; + clock-names = "ipg", "per"; + dmas = <&sdma 18 4 1>, <&sdma 19 4 2>; + dma-names = "rx", "tx"; + uart-has-rtscts; + fsl,dte-mode; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/serial/nvidia,tegra20-hsuart.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/serial/nvidia,tegra20-hsuart.yaml index 7f3e819f1..29d48da81 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/serial/nvidia,tegra20-hsuart.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/serial/nvidia,tegra20-hsuart.yaml @@ -1,125 +1,125 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/serial/nvidia,tegra20-hsuart.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NVIDIA Tegra20/Tegra30 high speed (DMA based) UART controller driver - -maintainers: - - Thierry Reding - - Jon Hunter - -properties: - compatible: - oneOf: - - enum: - - nvidia,tegra20-hsuart - - nvidia,tegra30-hsuart - - nvidia,tegra186-hsuart - - nvidia,tegra194-hsuart - - items: - - const: nvidia,tegra124-hsuart - - const: nvidia,tegra30-hsuart - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - items: - - description: module clock - - resets: - items: - - description: module reset - - reset-names: - items: - - const: serial - - dmas: - items: - - description: DMA channel used for reception - - description: DMA channel used for transmission - - dma-names: - items: - - const: rx - - const: tx - - nvidia,enable-modem-interrupt: - $ref: /schemas/types.yaml#/definitions/flag - description: Enable modem interrupts. Should be enable only if all 8 lines of UART controller - are pinmuxed. - - nvidia,adjust-baud-rates: - $ref: /schemas/types.yaml#/definitions/uint32-matrix - description: | - List of entries providing percentage of baud rate adjustment within a range. Each entry - contains a set of 3 values: range low/high and adjusted rate. When the baud rate set on the - controller falls within the range mentioned in this field, the baud rate will be adjusted by - percentage mentioned here. - - Example: <9600 115200 200> - - Increase baud rate by 2% when set baud rate falls within range 9600 to 115200. - - Standard UART devices are expected to have tolerance for baud rate error by -4 to +4 %. All - Tegra devices till Tegra210 had this support. However, Tegra186 chip has a known hardware - issue. UART RX baud rate tolerance level is 0% to +4% in 1-stop config. Otherwise, the - received data will have corruption/invalid framing errors. Parker errata suggests adjusting - baud rate to be higher than the deviations observed in TX. - - TX deviation of connected device can be captured over scope (or noted from its spec) for - valid range and Tegra baud rate has to be set above actual TX baud rate observed. To do this - we use nvidia,adjust-baud-rates. - - As an example, consider there is deviation observed in TX for baud rates as listed below. 0 - to 9600 has 1% deviation 9600 to 115200 2% deviation. This slight deviation is expected and - Tegra UART is expected to handle it. Due to the issue stated above, baud rate on Tegra UART - should be set equal to or above deviation observed for avoiding frame errors. Property - should be set like this: - - nvidia,adjust-baud-rates = <0 9600 100>, - <9600 115200 200>; - items: - items: - - description: range lower bound - - description: range upper bound - - description: adjustment (in permyriad, i.e. 0.01%) - -required: - - compatible - - reg - - interrupts - - clocks - - resets - - reset-names - - dmas - - dma-names - -allOf: - - $ref: serial.yaml - -unevaluatedProperties: false - -examples: - - | - #include - #include - - serial@70006000 { - compatible = "nvidia,tegra30-hsuart"; - reg = <0x70006000 0x40>; - interrupts = ; - nvidia,enable-modem-interrupt; - clocks = <&tegra_car TEGRA30_CLK_UARTA>; - resets = <&tegra_car 6>; - reset-names = "serial"; - dmas = <&apbdma 8>, <&apbdma 8>; - dma-names = "rx", "tx"; - nvidia,adjust-baud-rates = <1000000 4000000 136>; /* 1.36% shift */ - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/nvidia,tegra20-hsuart.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra20/Tegra30 high speed (DMA based) UART controller driver + +maintainers: + - Thierry Reding + - Jon Hunter + +properties: + compatible: + oneOf: + - enum: + - nvidia,tegra20-hsuart + - nvidia,tegra30-hsuart + - nvidia,tegra186-hsuart + - nvidia,tegra194-hsuart + - items: + - const: nvidia,tegra124-hsuart + - const: nvidia,tegra30-hsuart + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: module clock + + resets: + items: + - description: module reset + + reset-names: + items: + - const: serial + + dmas: + items: + - description: DMA channel used for reception + - description: DMA channel used for transmission + + dma-names: + items: + - const: rx + - const: tx + + nvidia,enable-modem-interrupt: + $ref: /schemas/types.yaml#/definitions/flag + description: Enable modem interrupts. Should be enable only if all 8 lines of UART controller + are pinmuxed. + + nvidia,adjust-baud-rates: + $ref: /schemas/types.yaml#/definitions/uint32-matrix + description: | + List of entries providing percentage of baud rate adjustment within a range. Each entry + contains a set of 3 values: range low/high and adjusted rate. When the baud rate set on the + controller falls within the range mentioned in this field, the baud rate will be adjusted by + percentage mentioned here. + + Example: <9600 115200 200> + + Increase baud rate by 2% when set baud rate falls within range 9600 to 115200. + + Standard UART devices are expected to have tolerance for baud rate error by -4 to +4 %. All + Tegra devices till Tegra210 had this support. However, Tegra186 chip has a known hardware + issue. UART RX baud rate tolerance level is 0% to +4% in 1-stop config. Otherwise, the + received data will have corruption/invalid framing errors. Parker errata suggests adjusting + baud rate to be higher than the deviations observed in TX. + + TX deviation of connected device can be captured over scope (or noted from its spec) for + valid range and Tegra baud rate has to be set above actual TX baud rate observed. To do this + we use nvidia,adjust-baud-rates. + + As an example, consider there is deviation observed in TX for baud rates as listed below. 0 + to 9600 has 1% deviation 9600 to 115200 2% deviation. This slight deviation is expected and + Tegra UART is expected to handle it. Due to the issue stated above, baud rate on Tegra UART + should be set equal to or above deviation observed for avoiding frame errors. Property + should be set like this: + + nvidia,adjust-baud-rates = <0 9600 100>, + <9600 115200 200>; + items: + items: + - description: range lower bound + - description: range upper bound + - description: adjustment (in permyriad, i.e. 0.01%) + +required: + - compatible + - reg + - interrupts + - clocks + - resets + - reset-names + - dmas + - dma-names + +allOf: + - $ref: serial.yaml + +unevaluatedProperties: false + +examples: + - | + #include + #include + + serial@70006000 { + compatible = "nvidia,tegra30-hsuart"; + reg = <0x70006000 0x40>; + interrupts = ; + nvidia,enable-modem-interrupt; + clocks = <&tegra_car TEGRA30_CLK_UARTA>; + resets = <&tegra_car 6>; + reset-names = "serial"; + dmas = <&apbdma 8>, <&apbdma 8>; + dma-names = "rx", "tx"; + nvidia,adjust-baud-rates = <1000000 4000000 136>; /* 1.36% shift */ + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/serial/serial.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/serial/serial.yaml index 412e7af90..6aa9cfae4 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/serial/serial.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/serial/serial.yaml @@ -1,133 +1,133 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/serial/serial.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Serial Interface Generic - -maintainers: - - Rob Herring - - Greg Kroah-Hartman - -description: - This document lists a set of generic properties for describing UARTs in a - device tree. Whether these properties apply to a particular device depends - on the DT bindings for the actual device. - - Each enabled UART may have an optional "serialN" alias in the "aliases" node, - where N is the port number (non-negative decimal integer) as printed on the - label next to the physical port. - -properties: - $nodename: - pattern: "^serial(@.*)?$" - - label: true - - cts-gpios: - maxItems: 1 - description: - Must contain a GPIO specifier, referring to the GPIO pin to be used as - the UART's CTS line. - - dcd-gpios: - maxItems: 1 - description: - Must contain a GPIO specifier, referring to the GPIO pin to be used as - the UART's DCD line. - - dsr-gpios: - maxItems: 1 - description: - Must contain a GPIO specifier, referring to the GPIO pin to be used as - the UART's DSR line. - - dtr-gpios: - maxItems: 1 - description: - Must contain a GPIO specifier, referring to the GPIO pin to be used as - the UART's DTR line. - - rng-gpios: - maxItems: 1 - description: - Must contain a GPIO specifier, referring to the GPIO pin to be used as - the UART's RNG line. - - rts-gpios: - maxItems: 1 - description: - Must contain a GPIO specifier, referring to the GPIO pin to be used as - the UART's RTS line. - - uart-has-rtscts: - $ref: /schemas/types.yaml#/definitions/flag - description: - The presence of this property indicates that the UART has dedicated lines - for RTS/CTS hardware flow control, and that they are available for use - (wired and enabled by pinmux configuration). This depends on both the - UART hardware and the board wiring. - - rx-tx-swap: - type: boolean - description: RX and TX pins are swapped. - - cts-rts-swap: - type: boolean - description: CTS and RTS pins are swapped. - - rx-threshold: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - RX FIFO threshold configuration (in bytes). - - tx-threshold: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - TX FIFO threshold configuration (in bytes). - -patternProperties: - "^(bluetooth|bluetooth-gnss|embedded-controller|gnss|gps|mcu|onewire)$": - if: - type: object - then: - additionalProperties: true - $ref: serial-peripheral-props.yaml# - description: - Serial attached devices shall be a child node of the host UART device - the slave device is attached to. It is expected that the attached - device is the only child node of the UART device. The slave device node - name shall reflect the generic type of device for the node. - - properties: - compatible: - description: - Compatible of the device connected to the serial port. - - required: - - compatible - -if: - required: - - uart-has-rtscts -then: - properties: - cts-gpios: false - rts-gpios: false - -additionalProperties: true - -examples: - - | - serial@1234 { - compatible = "ns16550a"; - reg = <0x1234 0x20>; - interrupts = <1>; - - bluetooth { - compatible = "brcm,bcm4330-bt"; - interrupt-parent = <&gpio>; - interrupts = <10>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/serial.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Serial Interface Generic + +maintainers: + - Rob Herring + - Greg Kroah-Hartman + +description: + This document lists a set of generic properties for describing UARTs in a + device tree. Whether these properties apply to a particular device depends + on the DT bindings for the actual device. + + Each enabled UART may have an optional "serialN" alias in the "aliases" node, + where N is the port number (non-negative decimal integer) as printed on the + label next to the physical port. + +properties: + $nodename: + pattern: "^serial(@.*)?$" + + label: true + + cts-gpios: + maxItems: 1 + description: + Must contain a GPIO specifier, referring to the GPIO pin to be used as + the UART's CTS line. + + dcd-gpios: + maxItems: 1 + description: + Must contain a GPIO specifier, referring to the GPIO pin to be used as + the UART's DCD line. + + dsr-gpios: + maxItems: 1 + description: + Must contain a GPIO specifier, referring to the GPIO pin to be used as + the UART's DSR line. + + dtr-gpios: + maxItems: 1 + description: + Must contain a GPIO specifier, referring to the GPIO pin to be used as + the UART's DTR line. + + rng-gpios: + maxItems: 1 + description: + Must contain a GPIO specifier, referring to the GPIO pin to be used as + the UART's RNG line. + + rts-gpios: + maxItems: 1 + description: + Must contain a GPIO specifier, referring to the GPIO pin to be used as + the UART's RTS line. + + uart-has-rtscts: + $ref: /schemas/types.yaml#/definitions/flag + description: + The presence of this property indicates that the UART has dedicated lines + for RTS/CTS hardware flow control, and that they are available for use + (wired and enabled by pinmux configuration). This depends on both the + UART hardware and the board wiring. + + rx-tx-swap: + type: boolean + description: RX and TX pins are swapped. + + cts-rts-swap: + type: boolean + description: CTS and RTS pins are swapped. + + rx-threshold: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + RX FIFO threshold configuration (in bytes). + + tx-threshold: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + TX FIFO threshold configuration (in bytes). + +patternProperties: + "^(bluetooth|bluetooth-gnss|embedded-controller|gnss|gps|mcu|onewire)$": + if: + type: object + then: + additionalProperties: true + $ref: serial-peripheral-props.yaml# + description: + Serial attached devices shall be a child node of the host UART device + the slave device is attached to. It is expected that the attached + device is the only child node of the UART device. The slave device node + name shall reflect the generic type of device for the node. + + properties: + compatible: + description: + Compatible of the device connected to the serial port. + + required: + - compatible + +if: + required: + - uart-has-rtscts +then: + properties: + cts-gpios: false + rts-gpios: false + +additionalProperties: true + +examples: + - | + serial@1234 { + compatible = "ns16550a"; + reg = <0x1234 0x20>; + interrupts = <1>; + + bluetooth { + compatible = "brcm,bcm4330-bt"; + interrupt-parent = <&gpio>; + interrupts = <10>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml index 2481c5a29..4cdb0dcac 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml @@ -1,177 +1,177 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/serial/snps-dw-apb-uart.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Synopsys DesignWare ABP UART - -maintainers: - - Rob Herring - -allOf: - - $ref: serial.yaml# - - $ref: rs485.yaml# - - - if: - properties: - compatible: - contains: - const: starfive,jh7110-uart - then: - properties: - resets: - minItems: 2 - else: - properties: - resets: - maxItems: 1 - -properties: - compatible: - oneOf: - - items: - - enum: - - renesas,r9a06g032-uart - - renesas,r9a06g033-uart - - const: renesas,rzn1-uart - - items: - - enum: - - rockchip,px30-uart - - rockchip,rk1808-uart - - rockchip,rk3036-uart - - rockchip,rk3066-uart - - rockchip,rk3128-uart - - rockchip,rk3188-uart - - rockchip,rk3288-uart - - rockchip,rk3308-uart - - rockchip,rk3328-uart - - rockchip,rk3368-uart - - rockchip,rk3399-uart - - rockchip,rk3568-uart - - rockchip,rk3588-uart - - rockchip,rv1108-uart - - rockchip,rv1126-uart - - const: snps,dw-apb-uart - - items: - - enum: - - brcm,bcm11351-dw-apb-uart - - brcm,bcm21664-dw-apb-uart - - const: snps,dw-apb-uart - - items: - - enum: - - starfive,jh7100-hsuart - - starfive,jh7100-uart - - starfive,jh7110-uart - - const: snps,dw-apb-uart - - const: snps,dw-apb-uart - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clock-frequency: true - - clocks: - minItems: 1 - maxItems: 2 - - clock-names: - items: - - const: baudclk - - const: apb_pclk - - dmas: - maxItems: 2 - - dma-names: - items: - - const: tx - - const: rx - - snps,uart-16550-compatible: - description: reflects the value of UART_16550_COMPATIBLE configuration - parameter. Define this if your UART does not implement the busy functionality. - type: boolean - - resets: - minItems: 1 - maxItems: 2 - - reg-shift: true - - reg-io-width: true - - dcd-override: - description: Override the DCD modem status signal. This signal will - always be reported as active instead of being obtained from the modem - status register. Define this if your serial port does not use this - pin. - type: boolean - - dsr-override: - description: Override the DTS modem status signal. This signal will - always be reported as active instead of being obtained from the modem - status register. Define this if your serial port does not use this - pin. - type: boolean - - cts-override: - description: Override the CTS modem status signal. This signal will - always be reported as active instead of being obtained from the modem - status register. Define this if your serial port does not use this - pin. - type: boolean - - ri-override: - description: Override the RI modem status signal. This signal will always - be reported as inactive instead of being obtained from the modem status - register. Define this if your serial port does not use this pin. - type: boolean - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - serial@80230000 { - compatible = "snps,dw-apb-uart"; - reg = <0x80230000 0x100>; - clock-frequency = <3686400>; - interrupts = <10>; - reg-shift = <2>; - reg-io-width = <4>; - dcd-override; - dsr-override; - cts-override; - ri-override; - }; - - - | - // Example with one clock: - serial@80230000 { - compatible = "snps,dw-apb-uart"; - reg = <0x80230000 0x100>; - clocks = <&baudclk>; - interrupts = <10>; - reg-shift = <2>; - reg-io-width = <4>; - }; - - - | - // Example with two clocks: - serial@80230000 { - compatible = "snps,dw-apb-uart"; - reg = <0x80230000 0x100>; - clocks = <&baudclk>, <&apb_pclk>; - clock-names = "baudclk", "apb_pclk"; - interrupts = <10>; - reg-shift = <2>; - reg-io-width = <4>; - }; -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/snps-dw-apb-uart.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synopsys DesignWare ABP UART + +maintainers: + - Rob Herring + +allOf: + - $ref: serial.yaml# + - $ref: rs485.yaml# + + - if: + properties: + compatible: + contains: + const: starfive,jh7110-uart + then: + properties: + resets: + minItems: 2 + else: + properties: + resets: + maxItems: 1 + +properties: + compatible: + oneOf: + - items: + - enum: + - renesas,r9a06g032-uart + - renesas,r9a06g033-uart + - const: renesas,rzn1-uart + - items: + - enum: + - rockchip,px30-uart + - rockchip,rk1808-uart + - rockchip,rk3036-uart + - rockchip,rk3066-uart + - rockchip,rk3128-uart + - rockchip,rk3188-uart + - rockchip,rk3288-uart + - rockchip,rk3308-uart + - rockchip,rk3328-uart + - rockchip,rk3368-uart + - rockchip,rk3399-uart + - rockchip,rk3568-uart + - rockchip,rk3588-uart + - rockchip,rv1108-uart + - rockchip,rv1126-uart + - const: snps,dw-apb-uart + - items: + - enum: + - brcm,bcm11351-dw-apb-uart + - brcm,bcm21664-dw-apb-uart + - const: snps,dw-apb-uart + - items: + - enum: + - starfive,jh7100-hsuart + - starfive,jh7100-uart + - starfive,jh7110-uart + - const: snps,dw-apb-uart + - const: snps,dw-apb-uart + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clock-frequency: true + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + items: + - const: baudclk + - const: apb_pclk + + dmas: + maxItems: 2 + + dma-names: + items: + - const: tx + - const: rx + + snps,uart-16550-compatible: + description: reflects the value of UART_16550_COMPATIBLE configuration + parameter. Define this if your UART does not implement the busy functionality. + type: boolean + + resets: + minItems: 1 + maxItems: 2 + + reg-shift: true + + reg-io-width: true + + dcd-override: + description: Override the DCD modem status signal. This signal will + always be reported as active instead of being obtained from the modem + status register. Define this if your serial port does not use this + pin. + type: boolean + + dsr-override: + description: Override the DTS modem status signal. This signal will + always be reported as active instead of being obtained from the modem + status register. Define this if your serial port does not use this + pin. + type: boolean + + cts-override: + description: Override the CTS modem status signal. This signal will + always be reported as active instead of being obtained from the modem + status register. Define this if your serial port does not use this + pin. + type: boolean + + ri-override: + description: Override the RI modem status signal. This signal will always + be reported as inactive instead of being obtained from the modem status + register. Define this if your serial port does not use this pin. + type: boolean + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + serial@80230000 { + compatible = "snps,dw-apb-uart"; + reg = <0x80230000 0x100>; + clock-frequency = <3686400>; + interrupts = <10>; + reg-shift = <2>; + reg-io-width = <4>; + dcd-override; + dsr-override; + cts-override; + ri-override; + }; + + - | + // Example with one clock: + serial@80230000 { + compatible = "snps,dw-apb-uart"; + reg = <0x80230000 0x100>; + clocks = <&baudclk>; + interrupts = <10>; + reg-shift = <2>; + reg-io-width = <4>; + }; + + - | + // Example with two clocks: + serial@80230000 { + compatible = "snps,dw-apb-uart"; + reg = <0x80230000 0x100>; + clocks = <&baudclk>, <&apb_pclk>; + clock-names = "baudclk", "apb_pclk"; + interrupts = <10>; + reg-shift = <2>; + reg-io-width = <4>; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,qe.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,qe.yaml index 02e90590a..89cdf5e1d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,qe.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,qe.yaml @@ -1,148 +1,148 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,qe.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale QUICC Engine module (QE) - -maintainers: - - Frank Li - -description: | - This represents qe module that is installed on PowerQUICC II Pro. - - NOTE: This is an interim binding; it should be updated to fit - in with the CPM binding later in this document. - - Basically, it is a bus of devices, that could act more or less - as a complete entity (UCC, USB etc ). All of them should be siblings on - the "root" qe node, using the common properties from there. - The description below applies to the qe of MPC8360 and - more nodes and properties would be extended in the future. - -properties: - compatible: - items: - - const: fsl,qe - - const: simple-bus - - reg: - maxItems: 1 - - ranges: - maxItems: 1 - - model: - $ref: /schemas/types.yaml#/definitions/string - enum: [QE, CPM, CPM2] - - bus-frequency: - $ref: /schemas/types.yaml#/definitions/uint32 - description: the clock frequency for QUICC Engine. - - fsl,qe-num-riscs: - $ref: /schemas/types.yaml#/definitions/uint32 - description: define how many RISC engines the QE has. - - fsl,qe-snums: - $ref: /schemas/types.yaml#/definitions/uint8-array - maxItems: 28 - description: - defining the array of serial number (SNUM) values for the virtual - threads. - - fsl,firmware-phandle: - $ref: /schemas/types.yaml#/definitions/phandle - description: | - required only if there is no fsl,qe-firmware child node - - Points to a firmware node (see "QE Firmware Node" below) - that contains the firmware that should be uploaded for this QE. - The compatible property for the firmware node should say, - "fsl,qe-firmware". - - brg-frequency: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - the internal clock source frequency for baud-rate - generators in Hz. - - fsl,qe-num-snums: - $ref: /schemas/types.yaml#/definitions/uint32 - deprecated: true - description: | - define how many serial number(SNUM) the QE can use - for the threads. Use fsl,qe-snums instead to not only specify the - number of snums, but also their values. - -patternProperties: - '^muram@[a-f0-9]+$': - $ref: fsl,qe-muram.yaml - - '^interrupt-controller@[a-f0-9]+$': - $ref: fsl,qe-ic.yaml - - '^si@[a-f0-9]+$': - $ref: fsl,qe-si.yaml - - '^siram@[a-f0-9]+$': - $ref: fsl,qe-siram.yaml - -required: - - compatible - - reg - - bus-frequency - -allOf: - - $ref: /schemas/simple-bus.yaml# - -unevaluatedProperties: false - -examples: - - | - qe-bus@e0100000 { - compatible = "fsl,qe", "simple-bus"; - reg = <0xe0100000 0x480>; - ranges = <0 0xe0100000 0x00100000>; - #address-cells = <1>; - #size-cells = <1>; - brg-frequency = <0>; - bus-frequency = <0x179a7b00>; - fsl,qe-snums = /bits/ 8 < - 0x04 0x05 0x0c 0x0d 0x14 0x15 0x1c 0x1d - 0x24 0x25 0x2c 0x2d 0x34 0x35 0x88 0x89 - 0x98 0x99 0xa8 0xa9 0xb8 0xb9 0xc8 0xc9 - 0xd8 0xd9 0xe8 0xe9>; - - interrupt-controller@80 { - compatible = "fsl,qe-ic"; - reg = <0x80 0x80>; - #interrupt-cells = <1>; - interrupt-controller; - interrupts = <95 2 0 0 94 2 0 0>; - }; - - si@700 { - compatible = "fsl,t1040-qe-si"; - reg = <0x700 0x80>; - }; - - siram@1000 { - compatible = "fsl,t1040-qe-siram"; - reg = <0x1000 0x800>; - }; - - muram@10000 { - compatible = "fsl,qe-muram", "fsl,cpm-muram"; - ranges = <0 0x00010000 0x0000c000>; - #address-cells = <1>; - #size-cells = <1>; - - data-only@0{ - compatible = "fsl,qe-muram-data", - "fsl,cpm-muram-data"; - reg = <0 0xc000>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,qe.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale QUICC Engine module (QE) + +maintainers: + - Frank Li + +description: | + This represents qe module that is installed on PowerQUICC II Pro. + + NOTE: This is an interim binding; it should be updated to fit + in with the CPM binding later in this document. + + Basically, it is a bus of devices, that could act more or less + as a complete entity (UCC, USB etc ). All of them should be siblings on + the "root" qe node, using the common properties from there. + The description below applies to the qe of MPC8360 and + more nodes and properties would be extended in the future. + +properties: + compatible: + items: + - const: fsl,qe + - const: simple-bus + + reg: + maxItems: 1 + + ranges: + maxItems: 1 + + model: + $ref: /schemas/types.yaml#/definitions/string + enum: [QE, CPM, CPM2] + + bus-frequency: + $ref: /schemas/types.yaml#/definitions/uint32 + description: the clock frequency for QUICC Engine. + + fsl,qe-num-riscs: + $ref: /schemas/types.yaml#/definitions/uint32 + description: define how many RISC engines the QE has. + + fsl,qe-snums: + $ref: /schemas/types.yaml#/definitions/uint8-array + maxItems: 28 + description: + defining the array of serial number (SNUM) values for the virtual + threads. + + fsl,firmware-phandle: + $ref: /schemas/types.yaml#/definitions/phandle + description: | + required only if there is no fsl,qe-firmware child node + + Points to a firmware node (see "QE Firmware Node" below) + that contains the firmware that should be uploaded for this QE. + The compatible property for the firmware node should say, + "fsl,qe-firmware". + + brg-frequency: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + the internal clock source frequency for baud-rate + generators in Hz. + + fsl,qe-num-snums: + $ref: /schemas/types.yaml#/definitions/uint32 + deprecated: true + description: | + define how many serial number(SNUM) the QE can use + for the threads. Use fsl,qe-snums instead to not only specify the + number of snums, but also their values. + +patternProperties: + '^muram@[a-f0-9]+$': + $ref: fsl,qe-muram.yaml + + '^interrupt-controller@[a-f0-9]+$': + $ref: fsl,qe-ic.yaml + + '^si@[a-f0-9]+$': + $ref: fsl,qe-si.yaml + + '^siram@[a-f0-9]+$': + $ref: fsl,qe-siram.yaml + +required: + - compatible + - reg + - bus-frequency + +allOf: + - $ref: /schemas/simple-bus.yaml# + +unevaluatedProperties: false + +examples: + - | + qe-bus@e0100000 { + compatible = "fsl,qe", "simple-bus"; + reg = <0xe0100000 0x480>; + ranges = <0 0xe0100000 0x00100000>; + #address-cells = <1>; + #size-cells = <1>; + brg-frequency = <0>; + bus-frequency = <0x179a7b00>; + fsl,qe-snums = /bits/ 8 < + 0x04 0x05 0x0c 0x0d 0x14 0x15 0x1c 0x1d + 0x24 0x25 0x2c 0x2d 0x34 0x35 0x88 0x89 + 0x98 0x99 0xa8 0xa9 0xb8 0xb9 0xc8 0xc9 + 0xd8 0xd9 0xe8 0xe9>; + + interrupt-controller@80 { + compatible = "fsl,qe-ic"; + reg = <0x80 0x80>; + #interrupt-cells = <1>; + interrupt-controller; + interrupts = <95 2 0 0 94 2 0 0>; + }; + + si@700 { + compatible = "fsl,t1040-qe-si"; + reg = <0x700 0x80>; + }; + + siram@1000 { + compatible = "fsl,t1040-qe-siram"; + reg = <0x1000 0x800>; + }; + + muram@10000 { + compatible = "fsl,qe-muram", "fsl,cpm-muram"; + ranges = <0 0x00010000 0x0000c000>; + #address-cells = <1>; + #size-cells = <1>; + + data-only@0{ + compatible = "fsl,qe-muram-data", + "fsl,cpm-muram-data"; + reg = <0 0xc000>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,ucc-hdlc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,ucc-hdlc.yaml index 11fabbbed..64ffbf75d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,ucc-hdlc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,ucc-hdlc.yaml @@ -1,140 +1,140 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,ucc-hdlc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: High-Level Data Link Control(HDLC) - -description: HDLC part in Universal communication controllers (UCCs) - -maintainers: - - Frank Li - -properties: - compatible: - const: fsl,ucc-hdlc - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - cell-index: - $ref: /schemas/types.yaml#/definitions/uint32 - - rx-clock-name: - $ref: /schemas/types.yaml#/definitions/string - oneOf: - - pattern: "^brg([0-9]|1[0-6])$" - - pattern: "^clk([0-9]|1[0-9]|2[0-4])$" - - tx-clock-name: - $ref: /schemas/types.yaml#/definitions/string - oneOf: - - pattern: "^brg([0-9]|1[0-6])$" - - pattern: "^clk([0-9]|1[0-9]|2[0-4])$" - - fsl,tdm-interface: - $ref: /schemas/types.yaml#/definitions/flag - description: Specify that hdlc is based on tdm-interface - - fsl,rx-sync-clock: - $ref: /schemas/types.yaml#/definitions/string - description: rx-sync - enum: - - none - - rsync_pin - - brg9 - - brg10 - - brg11 - - brg13 - - brg14 - - brg15 - - fsl,tx-sync-clock: - $ref: /schemas/types.yaml#/definitions/string - description: tx-sync - enum: - - none - - tsync_pin - - brg9 - - brg10 - - brg11 - - brg13 - - brg14 - - brg15 - - fsl,tdm-framer-type: - $ref: /schemas/types.yaml#/definitions/string - description: required for tdm interface - enum: [e1, t1] - - fsl,tdm-id: - $ref: /schemas/types.yaml#/definitions/uint32 - description: number of TDM ID - - fsl,tx-timeslot-mask: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - required for tdm interface. - time slot mask for TDM operation. Indicates which time - slots used for transmitting and receiving. - - fsl,rx-timeslot-mask: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - required for tdm interface. - time slot mask for TDM operation. Indicates which time - slots used for transmitting and receiving. - - fsl,siram-entry-id: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - required for tdm interface - Must be 0,2,4...64. the number of TDM entry. - - fsl,tdm-internal-loopback: - $ref: /schemas/types.yaml#/definitions/flag - description: - optional for tdm interface - Internal loopback connecting on TDM layer. - - fsl,hmask: - $ref: /schemas/types.yaml#/definitions/uint16 - description: | - HDLC address recognition. Set to zero to disable - address filtering of packets: - fsl,hmask = /bits/ 16 <0x0000>; - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - communication@2000 { - compatible = "fsl,ucc-hdlc"; - reg = <0x2000 0x200>; - rx-clock-name = "clk8"; - tx-clock-name = "clk9"; - fsl,rx-sync-clock = "rsync_pin"; - fsl,tx-sync-clock = "tsync_pin"; - fsl,tx-timeslot-mask = <0xfffffffe>; - fsl,rx-timeslot-mask = <0xfffffffe>; - fsl,tdm-framer-type = "e1"; - fsl,tdm-id = <0>; - fsl,siram-entry-id = <0>; - fsl,tdm-interface; - }; - - - | - communication@2000 { - compatible = "fsl,ucc-hdlc"; - reg = <0x2000 0x200>; - rx-clock-name = "brg1"; - tx-clock-name = "brg1"; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,ucc-hdlc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: High-Level Data Link Control(HDLC) + +description: HDLC part in Universal communication controllers (UCCs) + +maintainers: + - Frank Li + +properties: + compatible: + const: fsl,ucc-hdlc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + cell-index: + $ref: /schemas/types.yaml#/definitions/uint32 + + rx-clock-name: + $ref: /schemas/types.yaml#/definitions/string + oneOf: + - pattern: "^brg([0-9]|1[0-6])$" + - pattern: "^clk([0-9]|1[0-9]|2[0-4])$" + + tx-clock-name: + $ref: /schemas/types.yaml#/definitions/string + oneOf: + - pattern: "^brg([0-9]|1[0-6])$" + - pattern: "^clk([0-9]|1[0-9]|2[0-4])$" + + fsl,tdm-interface: + $ref: /schemas/types.yaml#/definitions/flag + description: Specify that hdlc is based on tdm-interface + + fsl,rx-sync-clock: + $ref: /schemas/types.yaml#/definitions/string + description: rx-sync + enum: + - none + - rsync_pin + - brg9 + - brg10 + - brg11 + - brg13 + - brg14 + - brg15 + + fsl,tx-sync-clock: + $ref: /schemas/types.yaml#/definitions/string + description: tx-sync + enum: + - none + - tsync_pin + - brg9 + - brg10 + - brg11 + - brg13 + - brg14 + - brg15 + + fsl,tdm-framer-type: + $ref: /schemas/types.yaml#/definitions/string + description: required for tdm interface + enum: [e1, t1] + + fsl,tdm-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: number of TDM ID + + fsl,tx-timeslot-mask: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + required for tdm interface. + time slot mask for TDM operation. Indicates which time + slots used for transmitting and receiving. + + fsl,rx-timeslot-mask: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + required for tdm interface. + time slot mask for TDM operation. Indicates which time + slots used for transmitting and receiving. + + fsl,siram-entry-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + required for tdm interface + Must be 0,2,4...64. the number of TDM entry. + + fsl,tdm-internal-loopback: + $ref: /schemas/types.yaml#/definitions/flag + description: + optional for tdm interface + Internal loopback connecting on TDM layer. + + fsl,hmask: + $ref: /schemas/types.yaml#/definitions/uint16 + description: | + HDLC address recognition. Set to zero to disable + address filtering of packets: + fsl,hmask = /bits/ 16 <0x0000>; + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + communication@2000 { + compatible = "fsl,ucc-hdlc"; + reg = <0x2000 0x200>; + rx-clock-name = "clk8"; + tx-clock-name = "clk9"; + fsl,rx-sync-clock = "rsync_pin"; + fsl,tx-sync-clock = "tsync_pin"; + fsl,tx-timeslot-mask = <0xfffffffe>; + fsl,rx-timeslot-mask = <0xfffffffe>; + fsl,tdm-framer-type = "e1"; + fsl,tdm-id = <0>; + fsl,siram-entry-id = <0>; + fsl,tdm-interface; + }; + + - | + communication@2000 { + compatible = "fsl,ucc-hdlc"; + reg = <0x2000 0x200>; + rx-clock-name = "brg1"; + tx-clock-name = "brg1"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml index 695b4d014..c4ae4f284 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml @@ -1,128 +1,128 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/soc/imx/fsl,imx-anatop.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ANATOP register - -maintainers: - - Shawn Guo - - Sascha Hauer - -properties: - compatible: - oneOf: - - items: - - enum: - - fsl,imx6sl-anatop - - fsl,imx6sll-anatop - - fsl,imx6sx-anatop - - fsl,imx6ul-anatop - - fsl,imx7d-anatop - - const: fsl,imx6q-anatop - - const: syscon - - const: simple-mfd - - items: - - const: fsl,imx6q-anatop - - const: syscon - - const: simple-mfd - - reg: - maxItems: 1 - - interrupts: - items: - - description: Temperature sensor event - - description: Brown-out event on either of the support regulators - - description: Brown-out event on either the core, gpu or soc regulators - - tempmon: - type: object - unevaluatedProperties: false - $ref: /schemas/thermal/imx-thermal.yaml - -patternProperties: - "regulator-((1p1)|(2p5)|(3p0)|(vddcore)|(vddpu)|(vddsoc))$": - type: object - unevaluatedProperties: false - $ref: /schemas/regulator/anatop-regulator.yaml - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - #include - #include - - anatop: anatop@20c8000 { - compatible = "fsl,imx6ul-anatop", "fsl,imx6q-anatop", - "syscon", "simple-mfd"; - reg = <0x020c8000 0x1000>; - interrupts = , - , - ; - - reg_3p0: regulator-3p0 { - compatible = "fsl,anatop-regulator"; - regulator-name = "vdd3p0"; - regulator-min-microvolt = <2625000>; - regulator-max-microvolt = <3400000>; - anatop-reg-offset = <0x120>; - anatop-vol-bit-shift = <8>; - anatop-vol-bit-width = <5>; - anatop-min-bit-val = <0>; - anatop-min-voltage = <2625000>; - anatop-max-voltage = <3400000>; - anatop-enable-bit = <0>; - }; - - reg_arm: regulator-vddcore { - compatible = "fsl,anatop-regulator"; - regulator-name = "cpu"; - regulator-min-microvolt = <725000>; - regulator-max-microvolt = <1450000>; - regulator-always-on; - anatop-reg-offset = <0x140>; - anatop-vol-bit-shift = <0>; - anatop-vol-bit-width = <5>; - anatop-delay-reg-offset = <0x170>; - anatop-delay-bit-shift = <24>; - anatop-delay-bit-width = <2>; - anatop-min-bit-val = <1>; - anatop-min-voltage = <725000>; - anatop-max-voltage = <1450000>; - }; - - reg_soc: regulator-vddsoc { - compatible = "fsl,anatop-regulator"; - regulator-name = "vddsoc"; - regulator-min-microvolt = <725000>; - regulator-max-microvolt = <1450000>; - regulator-always-on; - anatop-reg-offset = <0x140>; - anatop-vol-bit-shift = <18>; - anatop-vol-bit-width = <5>; - anatop-delay-reg-offset = <0x170>; - anatop-delay-bit-shift = <28>; - anatop-delay-bit-width = <2>; - anatop-min-bit-val = <1>; - anatop-min-voltage = <725000>; - anatop-max-voltage = <1450000>; - }; - - tempmon: tempmon { - compatible = "fsl,imx6ul-tempmon", "fsl,imx6sx-tempmon"; - interrupt-parent = <&gpc>; - interrupts = ; - fsl,tempmon = <&anatop>; - nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; - nvmem-cell-names = "calib", "temp_grade"; - clocks = <&clks IMX6UL_CLK_PLL3_USB_OTG>; - #thermal-sensor-cells = <0>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/imx/fsl,imx-anatop.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ANATOP register + +maintainers: + - Shawn Guo + - Sascha Hauer + +properties: + compatible: + oneOf: + - items: + - enum: + - fsl,imx6sl-anatop + - fsl,imx6sll-anatop + - fsl,imx6sx-anatop + - fsl,imx6ul-anatop + - fsl,imx7d-anatop + - const: fsl,imx6q-anatop + - const: syscon + - const: simple-mfd + - items: + - const: fsl,imx6q-anatop + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + + interrupts: + items: + - description: Temperature sensor event + - description: Brown-out event on either of the support regulators + - description: Brown-out event on either the core, gpu or soc regulators + + tempmon: + type: object + unevaluatedProperties: false + $ref: /schemas/thermal/imx-thermal.yaml + +patternProperties: + "regulator-((1p1)|(2p5)|(3p0)|(vddcore)|(vddpu)|(vddsoc))$": + type: object + unevaluatedProperties: false + $ref: /schemas/regulator/anatop-regulator.yaml + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + #include + + anatop: anatop@20c8000 { + compatible = "fsl,imx6ul-anatop", "fsl,imx6q-anatop", + "syscon", "simple-mfd"; + reg = <0x020c8000 0x1000>; + interrupts = , + , + ; + + reg_3p0: regulator-3p0 { + compatible = "fsl,anatop-regulator"; + regulator-name = "vdd3p0"; + regulator-min-microvolt = <2625000>; + regulator-max-microvolt = <3400000>; + anatop-reg-offset = <0x120>; + anatop-vol-bit-shift = <8>; + anatop-vol-bit-width = <5>; + anatop-min-bit-val = <0>; + anatop-min-voltage = <2625000>; + anatop-max-voltage = <3400000>; + anatop-enable-bit = <0>; + }; + + reg_arm: regulator-vddcore { + compatible = "fsl,anatop-regulator"; + regulator-name = "cpu"; + regulator-min-microvolt = <725000>; + regulator-max-microvolt = <1450000>; + regulator-always-on; + anatop-reg-offset = <0x140>; + anatop-vol-bit-shift = <0>; + anatop-vol-bit-width = <5>; + anatop-delay-reg-offset = <0x170>; + anatop-delay-bit-shift = <24>; + anatop-delay-bit-width = <2>; + anatop-min-bit-val = <1>; + anatop-min-voltage = <725000>; + anatop-max-voltage = <1450000>; + }; + + reg_soc: regulator-vddsoc { + compatible = "fsl,anatop-regulator"; + regulator-name = "vddsoc"; + regulator-min-microvolt = <725000>; + regulator-max-microvolt = <1450000>; + regulator-always-on; + anatop-reg-offset = <0x140>; + anatop-vol-bit-shift = <18>; + anatop-vol-bit-width = <5>; + anatop-delay-reg-offset = <0x170>; + anatop-delay-bit-shift = <28>; + anatop-delay-bit-width = <2>; + anatop-min-bit-val = <1>; + anatop-min-voltage = <725000>; + anatop-max-voltage = <1450000>; + }; + + tempmon: tempmon { + compatible = "fsl,imx6ul-tempmon", "fsl,imx6sx-tempmon"; + interrupt-parent = <&gpc>; + interrupts = ; + fsl,tempmon = <&anatop>; + nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; + nvmem-cell-names = "calib", "temp_grade"; + clocks = <&clks IMX6UL_CLK_PLL3_USB_OTG>; + #thermal-sensor-cells = <0>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/imx/fsl,imx8mm-vpu-blk-ctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/imx/fsl,imx8mm-vpu-blk-ctrl.yaml index 7025df71f..25109376d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/imx/fsl,imx8mm-vpu-blk-ctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/imx/fsl,imx8mm-vpu-blk-ctrl.yaml @@ -1,164 +1,164 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/soc/imx/fsl,imx8mm-vpu-blk-ctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NXP i.MX8MM VPU blk-ctrl - -maintainers: - - Lucas Stach - -description: - The i.MX8MM VPU blk-ctrl is a top-level peripheral providing access to - the NoC and ensuring proper power sequencing of the VPU peripherals - located in the VPU domain of the SoC. - -properties: - compatible: - items: - - const: fsl,imx8mm-vpu-blk-ctrl - - const: syscon - - reg: - maxItems: 1 - - '#power-domain-cells': - const: 1 - - power-domains: - maxItems: 4 - - power-domain-names: - maxItems: 4 - - clocks: - maxItems: 3 - - clock-names: - maxItems: 3 - - interconnects: - maxItems: 3 - - interconnect-names: - maxItems: 3 - -required: - - compatible - - reg - - power-domains - - power-domain-names - - clocks - - clock-names - -allOf: - - if: - properties: - compatible: - contains: - const: fsl,imx8mm-vpu-blk-ctrl - then: - properties: - power-domains: - items: - - description: bus power domain - - description: G1 decoder power domain - - description: G2 decoder power domain - - description: H1 encoder power domain - - power-domain-names: - items: - - const: bus - - const: g1 - - const: g2 - - const: h1 - - clocks: - items: - - description: G1 decoder clk - - description: G2 decoder clk - - description: H1 encoder clk - - clock-names: - items: - - const: g1 - - const: g2 - - const: h1 - - interconnects: - items: - - description: G1 decoder interconnect - - description: G2 decoder interconnect - - description: H1 encoder power domain - - interconnect-names: - items: - - const: g1 - - const: g2 - - const: h1 - - - if: - properties: - compatible: - contains: - const: fsl,imx8mp-vpu-blk-ctrl - then: - properties: - power-domains: - items: - - description: bus power domain - - description: G1 decoder power domain - - description: G2 decoder power domain - - description: VC8000E encoder power domain - - power-domain-names: - items: - - const: bus - - const: g1 - - const: g2 - - const: vc8000e - - clocks: - items: - - description: G1 decoder clk - - description: G2 decoder clk - - description: VC8000E encoder clk - - clock-names: - items: - - const: g1 - - const: g2 - - const: vc8000e - - interconnects: - items: - - description: G1 decoder interconnect - - description: G2 decoder interconnect - - description: VC8000E encoder interconnect - - interconnect-names: - items: - - const: g1 - - const: g2 - - const: vc8000e - -additionalProperties: false - -examples: - - | - #include - #include - - blk-ctrl@38330000 { - compatible = "fsl,imx8mm-vpu-blk-ctrl", "syscon"; - reg = <0x38330000 0x100>; - power-domains = <&pgc_vpumix>, <&pgc_vpu_g1>, - <&pgc_vpu_g2>, <&pgc_vpu_h1>; - power-domain-names = "bus", "g1", "g2", "h1"; - clocks = <&clk IMX8MM_CLK_VPU_G1_ROOT>, - <&clk IMX8MM_CLK_VPU_G2_ROOT>, - <&clk IMX8MM_CLK_VPU_H1_ROOT>; - clock-names = "g1", "g2", "h1"; - #power-domain-cells = <1>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/imx/fsl,imx8mm-vpu-blk-ctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX8MM VPU blk-ctrl + +maintainers: + - Lucas Stach + +description: + The i.MX8MM VPU blk-ctrl is a top-level peripheral providing access to + the NoC and ensuring proper power sequencing of the VPU peripherals + located in the VPU domain of the SoC. + +properties: + compatible: + items: + - const: fsl,imx8mm-vpu-blk-ctrl + - const: syscon + + reg: + maxItems: 1 + + '#power-domain-cells': + const: 1 + + power-domains: + maxItems: 4 + + power-domain-names: + maxItems: 4 + + clocks: + maxItems: 3 + + clock-names: + maxItems: 3 + + interconnects: + maxItems: 3 + + interconnect-names: + maxItems: 3 + +required: + - compatible + - reg + - power-domains + - power-domain-names + - clocks + - clock-names + +allOf: + - if: + properties: + compatible: + contains: + const: fsl,imx8mm-vpu-blk-ctrl + then: + properties: + power-domains: + items: + - description: bus power domain + - description: G1 decoder power domain + - description: G2 decoder power domain + - description: H1 encoder power domain + + power-domain-names: + items: + - const: bus + - const: g1 + - const: g2 + - const: h1 + + clocks: + items: + - description: G1 decoder clk + - description: G2 decoder clk + - description: H1 encoder clk + + clock-names: + items: + - const: g1 + - const: g2 + - const: h1 + + interconnects: + items: + - description: G1 decoder interconnect + - description: G2 decoder interconnect + - description: H1 encoder power domain + + interconnect-names: + items: + - const: g1 + - const: g2 + - const: h1 + + - if: + properties: + compatible: + contains: + const: fsl,imx8mp-vpu-blk-ctrl + then: + properties: + power-domains: + items: + - description: bus power domain + - description: G1 decoder power domain + - description: G2 decoder power domain + - description: VC8000E encoder power domain + + power-domain-names: + items: + - const: bus + - const: g1 + - const: g2 + - const: vc8000e + + clocks: + items: + - description: G1 decoder clk + - description: G2 decoder clk + - description: VC8000E encoder clk + + clock-names: + items: + - const: g1 + - const: g2 + - const: vc8000e + + interconnects: + items: + - description: G1 decoder interconnect + - description: G2 decoder interconnect + - description: VC8000E encoder interconnect + + interconnect-names: + items: + - const: g1 + - const: g2 + - const: vc8000e + +additionalProperties: false + +examples: + - | + #include + #include + + blk-ctrl@38330000 { + compatible = "fsl,imx8mm-vpu-blk-ctrl", "syscon"; + reg = <0x38330000 0x100>; + power-domains = <&pgc_vpumix>, <&pgc_vpu_g1>, + <&pgc_vpu_g2>, <&pgc_vpu_h1>; + power-domain-names = "bus", "g1", "g2", "h1"; + clocks = <&clk IMX8MM_CLK_VPU_G1_ROOT>, + <&clk IMX8MM_CLK_VPU_G2_ROOT>, + <&clk IMX8MM_CLK_VPU_H1_ROOT>; + clock-names = "g1", "g2", "h1"; + #power-domain-cells = <1>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml index 31663790b..ea9aa876e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml @@ -1,169 +1,169 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NXP i.MX8MP Media Block Control - -maintainers: - - Paul Elder - -description: - The i.MX8MP Media Block Control (MEDIA BLK_CTRL) is a top-level peripheral - providing access to the NoC and ensuring proper power sequencing of the - peripherals within the MEDIAMIX domain. - -properties: - compatible: - items: - - const: fsl,imx8mp-media-blk-ctrl - - const: syscon - - reg: - maxItems: 1 - - '#address-cells': - const: 1 - - '#size-cells': - const: 1 - - '#power-domain-cells': - const: 1 - - power-domains: - maxItems: 10 - - power-domain-names: - items: - - const: bus - - const: mipi-dsi1 - - const: mipi-csi1 - - const: lcdif1 - - const: isi - - const: mipi-csi2 - - const: lcdif2 - - const: isp - - const: dwe - - const: mipi-dsi2 - - clocks: - items: - - description: The APB clock - - description: The AXI clock - - description: The pixel clock for the first CSI2 receiver (aclk) - - description: The pixel clock for the second CSI2 receiver (aclk) - - description: The pixel clock for the first LCDIF (pix_clk) - - description: The pixel clock for the second LCDIF (pix_clk) - - description: The core clock for the ISP (clk) - - description: The MIPI-PHY reference clock used by DSI - - clock-names: - items: - - const: apb - - const: axi - - const: cam1 - - const: cam2 - - const: disp1 - - const: disp2 - - const: isp - - const: phy - - interconnects: - maxItems: 8 - - interconnect-names: - items: - - const: lcdif-rd - - const: lcdif-wr - - const: isi0 - - const: isi1 - - const: isi2 - - const: isp0 - - const: isp1 - - const: dwe - - bridge@5c: - type: object - $ref: /schemas/display/bridge/fsl,ldb.yaml# - unevaluatedProperties: false - -required: - - compatible - - reg - - '#address-cells' - - '#size-cells' - - '#power-domain-cells' - - power-domains - - power-domain-names - - clocks - - clock-names - -additionalProperties: false - -examples: - - | - #include - #include - - blk-ctrl@32ec0000 { - compatible = "fsl,imx8mp-media-blk-ctrl", "syscon"; - reg = <0x32ec0000 0x138>; - power-domains = <&mediamix_pd>, <&mipi_phy1_pd>, <&mipi_phy1_pd>, - <&mediamix_pd>, <&mediamix_pd>, <&mipi_phy2_pd>, - <&mediamix_pd>, <&ispdwp_pd>, <&ispdwp_pd>, - <&mipi_phy2_pd>; - power-domain-names = "bus", "mipi-dsi1", "mipi-csi1", "lcdif1", "isi", - "mipi-csi2", "lcdif2", "isp", "dwe", "mipi-dsi2"; - clocks = <&clk IMX8MP_CLK_MEDIA_APB_ROOT>, - <&clk IMX8MP_CLK_MEDIA_AXI_ROOT>, - <&clk IMX8MP_CLK_MEDIA_CAM1_PIX_ROOT>, - <&clk IMX8MP_CLK_MEDIA_CAM2_PIX_ROOT>, - <&clk IMX8MP_CLK_MEDIA_DISP1_PIX_ROOT>, - <&clk IMX8MP_CLK_MEDIA_DISP2_PIX_ROOT>, - <&clk IMX8MP_CLK_MEDIA_ISP_ROOT>, - <&clk IMX8MP_CLK_MEDIA_MIPI_PHY1_REF_ROOT>; - clock-names = "apb", "axi", "cam1", "cam2", "disp1", "disp2", - "isp", "phy"; - #power-domain-cells = <1>; - #address-cells = <1>; - #size-cells = <1>; - - bridge@5c { - compatible = "fsl,imx8mp-ldb"; - reg = <0x5c 0x4>, <0x128 0x4>; - reg-names = "ldb", "lvds"; - clocks = <&clk IMX8MP_CLK_MEDIA_LDB>; - clock-names = "ldb"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - - ldb_from_lcdif2: endpoint { - remote-endpoint = <&lcdif2_to_ldb>; - }; - }; - - port@1 { - reg = <1>; - - ldb_lvds_ch0: endpoint { - remote-endpoint = <&ldb_to_lvdsx4panel>; - }; - }; - - port@2 { - reg = <2>; - - ldb_lvds_ch1: endpoint { - }; - }; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX8MP Media Block Control + +maintainers: + - Paul Elder + +description: + The i.MX8MP Media Block Control (MEDIA BLK_CTRL) is a top-level peripheral + providing access to the NoC and ensuring proper power sequencing of the + peripherals within the MEDIAMIX domain. + +properties: + compatible: + items: + - const: fsl,imx8mp-media-blk-ctrl + - const: syscon + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + + '#power-domain-cells': + const: 1 + + power-domains: + maxItems: 10 + + power-domain-names: + items: + - const: bus + - const: mipi-dsi1 + - const: mipi-csi1 + - const: lcdif1 + - const: isi + - const: mipi-csi2 + - const: lcdif2 + - const: isp + - const: dwe + - const: mipi-dsi2 + + clocks: + items: + - description: The APB clock + - description: The AXI clock + - description: The pixel clock for the first CSI2 receiver (aclk) + - description: The pixel clock for the second CSI2 receiver (aclk) + - description: The pixel clock for the first LCDIF (pix_clk) + - description: The pixel clock for the second LCDIF (pix_clk) + - description: The core clock for the ISP (clk) + - description: The MIPI-PHY reference clock used by DSI + + clock-names: + items: + - const: apb + - const: axi + - const: cam1 + - const: cam2 + - const: disp1 + - const: disp2 + - const: isp + - const: phy + + interconnects: + maxItems: 8 + + interconnect-names: + items: + - const: lcdif-rd + - const: lcdif-wr + - const: isi0 + - const: isi1 + - const: isi2 + - const: isp0 + - const: isp1 + - const: dwe + + bridge@5c: + type: object + $ref: /schemas/display/bridge/fsl,ldb.yaml# + unevaluatedProperties: false + +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' + - '#power-domain-cells' + - power-domains + - power-domain-names + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + + blk-ctrl@32ec0000 { + compatible = "fsl,imx8mp-media-blk-ctrl", "syscon"; + reg = <0x32ec0000 0x138>; + power-domains = <&mediamix_pd>, <&mipi_phy1_pd>, <&mipi_phy1_pd>, + <&mediamix_pd>, <&mediamix_pd>, <&mipi_phy2_pd>, + <&mediamix_pd>, <&ispdwp_pd>, <&ispdwp_pd>, + <&mipi_phy2_pd>; + power-domain-names = "bus", "mipi-dsi1", "mipi-csi1", "lcdif1", "isi", + "mipi-csi2", "lcdif2", "isp", "dwe", "mipi-dsi2"; + clocks = <&clk IMX8MP_CLK_MEDIA_APB_ROOT>, + <&clk IMX8MP_CLK_MEDIA_AXI_ROOT>, + <&clk IMX8MP_CLK_MEDIA_CAM1_PIX_ROOT>, + <&clk IMX8MP_CLK_MEDIA_CAM2_PIX_ROOT>, + <&clk IMX8MP_CLK_MEDIA_DISP1_PIX_ROOT>, + <&clk IMX8MP_CLK_MEDIA_DISP2_PIX_ROOT>, + <&clk IMX8MP_CLK_MEDIA_ISP_ROOT>, + <&clk IMX8MP_CLK_MEDIA_MIPI_PHY1_REF_ROOT>; + clock-names = "apb", "axi", "cam1", "cam2", "disp1", "disp2", + "isp", "phy"; + #power-domain-cells = <1>; + #address-cells = <1>; + #size-cells = <1>; + + bridge@5c { + compatible = "fsl,imx8mp-ldb"; + reg = <0x5c 0x4>, <0x128 0x4>; + reg-names = "ldb", "lvds"; + clocks = <&clk IMX8MP_CLK_MEDIA_LDB>; + clock-names = "ldb"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + ldb_from_lcdif2: endpoint { + remote-endpoint = <&lcdif2_to_ldb>; + }; + }; + + port@1 { + reg = <1>; + + ldb_lvds_ch0: endpoint { + remote-endpoint = <&ldb_to_lvdsx4panel>; + }; + }; + + port@2 { + reg = <2>; + + ldb_lvds_ch1: endpoint { + }; + }; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml index 172d5256e..a10326a96 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml @@ -1,123 +1,123 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/soc/mediatek/mediatek,mutex.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Mediatek mutex - -maintainers: - - Chun-Kuang Hu - - Philipp Zabel - -description: | - Mediatek mutex, namely MUTEX, is used to send the triggers signals called - Start Of Frame (SOF) / End Of Frame (EOF) to each sub-modules on the display - data path or MDP data path. - In some SoC, such as mt2701, MUTEX could be a hardware mutex which protects - the shadow register. - MUTEX device node must be siblings to the central MMSYS_CONFIG node. - For a description of the MMSYS_CONFIG binding, see - Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml - for details. - -properties: - compatible: - enum: - - mediatek,mt2701-disp-mutex - - mediatek,mt2712-disp-mutex - - mediatek,mt6795-disp-mutex - - mediatek,mt8167-disp-mutex - - mediatek,mt8173-disp-mutex - - mediatek,mt8183-disp-mutex - - mediatek,mt8186-disp-mutex - - mediatek,mt8186-mdp3-mutex - - mediatek,mt8188-disp-mutex - - mediatek,mt8188-vpp-mutex - - mediatek,mt8192-disp-mutex - - mediatek,mt8195-disp-mutex - - mediatek,mt8195-vpp-mutex - - mediatek,mt8365-disp-mutex - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - power-domains: - description: A phandle and PM domain specifier as defined by bindings of - the power controller specified by phandle. See - Documentation/devicetree/bindings/power/power-domain.yaml for details. - - clocks: - items: - - description: MUTEX Clock - - mediatek,gce-events: - description: - The event id which is mapping to the specific hardware event signal - to gce. The event id is defined in the gce header - include/dt-bindings/gce/-gce.h of each chips. - $ref: /schemas/types.yaml#/definitions/uint32-array - - mediatek,gce-client-reg: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - items: - - description: phandle of GCE - - description: GCE subsys id - - description: register offset - - description: register size - description: The register of client driver can be configured by gce with - 4 arguments defined in this property. Each GCE subsys id is mapping to - a client defined in the header include/dt-bindings/gce/-gce.h. - -allOf: - - if: - properties: - compatible: - contains: - enum: - - mediatek,mt2701-disp-mutex - - mediatek,mt2712-disp-mutex - - mediatek,mt6795-disp-mutex - - mediatek,mt8173-disp-mutex - - mediatek,mt8186-disp-mutex - - mediatek,mt8186-mdp3-mutex - - mediatek,mt8192-disp-mutex - - mediatek,mt8195-disp-mutex - then: - required: - - clocks - - -required: - - compatible - - reg - - interrupts - - power-domains - -additionalProperties: false - -examples: - - | - #include - #include - #include - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - - mutex: mutex@14020000 { - compatible = "mediatek,mt8173-disp-mutex"; - reg = <0 0x14020000 0 0x1000>; - interrupts = ; - power-domains = <&spm MT8173_POWER_DOMAIN_MM>; - clocks = <&mmsys CLK_MM_MUTEX_32K>; - mediatek,gce-events = , - ; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/mediatek/mediatek,mutex.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek mutex + +maintainers: + - Chun-Kuang Hu + - Philipp Zabel + +description: | + Mediatek mutex, namely MUTEX, is used to send the triggers signals called + Start Of Frame (SOF) / End Of Frame (EOF) to each sub-modules on the display + data path or MDP data path. + In some SoC, such as mt2701, MUTEX could be a hardware mutex which protects + the shadow register. + MUTEX device node must be siblings to the central MMSYS_CONFIG node. + For a description of the MMSYS_CONFIG binding, see + Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml + for details. + +properties: + compatible: + enum: + - mediatek,mt2701-disp-mutex + - mediatek,mt2712-disp-mutex + - mediatek,mt6795-disp-mutex + - mediatek,mt8167-disp-mutex + - mediatek,mt8173-disp-mutex + - mediatek,mt8183-disp-mutex + - mediatek,mt8186-disp-mutex + - mediatek,mt8186-mdp3-mutex + - mediatek,mt8188-disp-mutex + - mediatek,mt8188-vpp-mutex + - mediatek,mt8192-disp-mutex + - mediatek,mt8195-disp-mutex + - mediatek,mt8195-vpp-mutex + - mediatek,mt8365-disp-mutex + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-domains: + description: A phandle and PM domain specifier as defined by bindings of + the power controller specified by phandle. See + Documentation/devicetree/bindings/power/power-domain.yaml for details. + + clocks: + items: + - description: MUTEX Clock + + mediatek,gce-events: + description: + The event id which is mapping to the specific hardware event signal + to gce. The event id is defined in the gce header + include/dt-bindings/gce/-gce.h of each chips. + $ref: /schemas/types.yaml#/definitions/uint32-array + + mediatek,gce-client-reg: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + items: + - description: phandle of GCE + - description: GCE subsys id + - description: register offset + - description: register size + description: The register of client driver can be configured by gce with + 4 arguments defined in this property. Each GCE subsys id is mapping to + a client defined in the header include/dt-bindings/gce/-gce.h. + +allOf: + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt2701-disp-mutex + - mediatek,mt2712-disp-mutex + - mediatek,mt6795-disp-mutex + - mediatek,mt8173-disp-mutex + - mediatek,mt8186-disp-mutex + - mediatek,mt8186-mdp3-mutex + - mediatek,mt8192-disp-mutex + - mediatek,mt8195-disp-mutex + then: + required: + - clocks + + +required: + - compatible + - reg + - interrupts + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + mutex: mutex@14020000 { + compatible = "mediatek,mt8173-disp-mutex"; + reg = <0 0x14020000 0 0x1000>; + interrupts = ; + power-domains = <&spm MT8173_POWER_DOMAIN_MM>; + clocks = <&mmsys CLK_MM_MUTEX_32K>; + mediatek,gce-events = , + ; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml index b6c5b7678..4737e5f45 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml @@ -1,152 +1,152 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/soc/mediatek/mediatek,pwrap.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Mediatek PMIC Wrapper - -maintainers: - - Flora Fu - - Alexandre Mergnat - -description: - On MediaTek SoCs the PMIC is connected via SPI. The SPI master interface - is not directly visible to the CPU, but only through the PMIC wrapper - inside the SoC. The communication between the SoC and the PMIC can - optionally be encrypted. Also a non standard Dual IO SPI mode can be - used to increase speed. - - IP Pairing - - On MT8135 the pins of some SoC internal peripherals can be on the PMIC. - The signals of these pins are routed over the SPI bus using the pwrap - bridge. In the binding description below the properties needed for bridging - are marked with "IP Pairing". These are optional on SoCs which do not support - IP Pairing - -properties: - compatible: - oneOf: - - items: - - enum: - - mediatek,mt2701-pwrap - - mediatek,mt6765-pwrap - - mediatek,mt6779-pwrap - - mediatek,mt6795-pwrap - - mediatek,mt6797-pwrap - - mediatek,mt6873-pwrap - - mediatek,mt7622-pwrap - - mediatek,mt8135-pwrap - - mediatek,mt8173-pwrap - - mediatek,mt8183-pwrap - - mediatek,mt8186-pwrap - - mediatek,mt8195-pwrap - - mediatek,mt8365-pwrap - - mediatek,mt8516-pwrap - - items: - - enum: - - mediatek,mt8186-pwrap - - mediatek,mt8195-pwrap - - const: syscon - - items: - - enum: - - mediatek,mt8188-pwrap - - const: mediatek,mt8195-pwrap - - const: syscon - - reg: - minItems: 1 - items: - - description: PMIC wrapper registers - - description: IP pairing registers - - reg-names: - minItems: 1 - items: - - const: pwrap - - const: pwrap-bridge - - interrupts: - maxItems: 1 - - clocks: - minItems: 2 - items: - - description: SPI bus clock - - description: Main module clock - - description: System module clock - - description: Timer module clock - - clock-names: - minItems: 2 - items: - - const: spi - - const: wrap - - const: sys - - const: tmr - - resets: - minItems: 1 - items: - - description: PMIC wrapper reset - - description: IP pairing reset - - reset-names: - minItems: 1 - items: - - const: pwrap - - const: pwrap-bridge - - pmic: - type: object - -required: - - compatible - - reg - - reg-names - - interrupts - - clocks - - clock-names - -dependentRequired: - resets: [reset-names] - -allOf: - - if: - properties: - compatible: - contains: - const: mediatek,mt8365-pwrap - then: - properties: - clocks: - minItems: 4 - - clock-names: - minItems: 4 - -additionalProperties: false - -examples: - - | - #include - #include - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - pwrap@1000f000 { - compatible = "mediatek,mt8135-pwrap"; - reg = <0 0x1000f000 0 0x1000>, - <0 0x11017000 0 0x1000>; - reg-names = "pwrap", "pwrap-bridge"; - interrupts = ; - clocks = <&clk26m>, <&clk26m>; - clock-names = "spi", "wrap"; - resets = <&infracfg MT8135_INFRA_PMIC_WRAP_RST>, - <&pericfg MT8135_PERI_PWRAP_BRIDGE_SW_RST>; - reset-names = "pwrap", "pwrap-bridge"; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/mediatek/mediatek,pwrap.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek PMIC Wrapper + +maintainers: + - Flora Fu + - Alexandre Mergnat + +description: + On MediaTek SoCs the PMIC is connected via SPI. The SPI master interface + is not directly visible to the CPU, but only through the PMIC wrapper + inside the SoC. The communication between the SoC and the PMIC can + optionally be encrypted. Also a non standard Dual IO SPI mode can be + used to increase speed. + + IP Pairing + + On MT8135 the pins of some SoC internal peripherals can be on the PMIC. + The signals of these pins are routed over the SPI bus using the pwrap + bridge. In the binding description below the properties needed for bridging + are marked with "IP Pairing". These are optional on SoCs which do not support + IP Pairing + +properties: + compatible: + oneOf: + - items: + - enum: + - mediatek,mt2701-pwrap + - mediatek,mt6765-pwrap + - mediatek,mt6779-pwrap + - mediatek,mt6795-pwrap + - mediatek,mt6797-pwrap + - mediatek,mt6873-pwrap + - mediatek,mt7622-pwrap + - mediatek,mt8135-pwrap + - mediatek,mt8173-pwrap + - mediatek,mt8183-pwrap + - mediatek,mt8186-pwrap + - mediatek,mt8195-pwrap + - mediatek,mt8365-pwrap + - mediatek,mt8516-pwrap + - items: + - enum: + - mediatek,mt8186-pwrap + - mediatek,mt8195-pwrap + - const: syscon + - items: + - enum: + - mediatek,mt8188-pwrap + - const: mediatek,mt8195-pwrap + - const: syscon + + reg: + minItems: 1 + items: + - description: PMIC wrapper registers + - description: IP pairing registers + + reg-names: + minItems: 1 + items: + - const: pwrap + - const: pwrap-bridge + + interrupts: + maxItems: 1 + + clocks: + minItems: 2 + items: + - description: SPI bus clock + - description: Main module clock + - description: System module clock + - description: Timer module clock + + clock-names: + minItems: 2 + items: + - const: spi + - const: wrap + - const: sys + - const: tmr + + resets: + minItems: 1 + items: + - description: PMIC wrapper reset + - description: IP pairing reset + + reset-names: + minItems: 1 + items: + - const: pwrap + - const: pwrap-bridge + + pmic: + type: object + +required: + - compatible + - reg + - reg-names + - interrupts + - clocks + - clock-names + +dependentRequired: + resets: [reset-names] + +allOf: + - if: + properties: + compatible: + contains: + const: mediatek,mt8365-pwrap + then: + properties: + clocks: + minItems: 4 + + clock-names: + minItems: 4 + +additionalProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + pwrap@1000f000 { + compatible = "mediatek,mt8135-pwrap"; + reg = <0 0x1000f000 0 0x1000>, + <0 0x11017000 0 0x1000>; + reg-names = "pwrap", "pwrap-bridge"; + interrupts = ; + clocks = <&clk26m>, <&clk26m>; + clock-names = "spi", "wrap"; + resets = <&infracfg MT8135_INFRA_PMIC_WRAP_RST>, + <&pericfg MT8135_PERI_PWRAP_BRIDGE_SW_RST>; + reset-names = "pwrap", "pwrap-bridge"; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml index 4a253dbea..7b031ef09 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml @@ -1,165 +1,165 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/soc/qcom/qcom,geni-se.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: GENI Serial Engine QUP Wrapper Controller - -maintainers: - - Bjorn Andersson - -description: | - Generic Interface (GENI) based Qualcomm Universal Peripheral (QUP) wrapper - is a programmable module for supporting a wide range of serial interfaces - like UART, SPI, I2C, I3C, etc. A single QUP module can provide upto 8 Serial - Interfaces, using its internal Serial Engines. The GENI Serial Engine QUP - Wrapper controller is modeled as a node with zero or more child nodes each - representing a serial engine. - -properties: - compatible: - enum: - - qcom,geni-se-qup - - qcom,geni-se-i2c-master-hub - - reg: - description: QUP wrapper common register address and length. - maxItems: 1 - - clock-names: - minItems: 1 - maxItems: 2 - - clocks: - minItems: 1 - maxItems: 2 - - "#address-cells": - const: 2 - - "#size-cells": - const: 2 - - ranges: true - - interconnects: - maxItems: 1 - - interconnect-names: - const: qup-core - - iommus: - maxItems: 1 - - dma-coherent: true - -required: - - compatible - - reg - - clock-names - - clocks - - "#address-cells" - - "#size-cells" - - ranges - -patternProperties: - "spi@[0-9a-f]+$": - type: object - description: GENI serial engine based SPI controller. SPI in master mode - supports up to 50MHz, up to four chip selects, programmable - data path from 4 bits to 32 bits and numerous protocol - variants. - $ref: /schemas/spi/qcom,spi-geni-qcom.yaml# - - "i2c@[0-9a-f]+$": - type: object - description: GENI serial engine based I2C controller. - $ref: /schemas/i2c/qcom,i2c-geni-qcom.yaml# - - "serial@[0-9a-f]+$": - type: object - description: GENI Serial Engine based UART Controller. - $ref: /schemas/serial/qcom,serial-geni-qcom.yaml# - -allOf: - - if: - properties: - compatible: - contains: - const: qcom,geni-se-i2c-master-hub - then: - properties: - clock-names: - items: - - const: s-ahb - - clocks: - items: - - description: Slave AHB Clock - - iommus: false - - patternProperties: - "spi@[0-9a-f]+$": false - "serial@[0-9a-f]+$": false - else: - properties: - clock-names: - items: - - const: m-ahb - - const: s-ahb - - clocks: - items: - - description: Master AHB Clock - - description: Slave AHB Clock - -additionalProperties: false - -examples: - - | - #include - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - - geniqup@8c0000 { - compatible = "qcom,geni-se-qup"; - reg = <0 0x008c0000 0 0x6000>; - clock-names = "m-ahb", "s-ahb"; - clocks = <&gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, - <&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; - #address-cells = <2>; - #size-cells = <2>; - ranges; - - i2c0: i2c@a94000 { - compatible = "qcom,geni-i2c"; - reg = <0 0xa94000 0 0x4000>; - interrupts = ; - clock-names = "se"; - clocks = <&gcc GCC_QUPV3_WRAP0_S5_CLK>; - pinctrl-names = "default", "sleep"; - pinctrl-0 = <&qup_1_i2c_5_active>; - pinctrl-1 = <&qup_1_i2c_5_sleep>; - #address-cells = <1>; - #size-cells = <0>; - }; - - uart0: serial@a88000 { - compatible = "qcom,geni-uart"; - reg = <0 0xa88000 0 0x7000>; - interrupts = ; - clock-names = "se"; - clocks = <&gcc GCC_QUPV3_WRAP0_S0_CLK>; - pinctrl-names = "default", "sleep"; - pinctrl-0 = <&qup_1_uart_3_active>; - pinctrl-1 = <&qup_1_uart_3_sleep>; - }; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/qcom/qcom,geni-se.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: GENI Serial Engine QUP Wrapper Controller + +maintainers: + - Bjorn Andersson + +description: | + Generic Interface (GENI) based Qualcomm Universal Peripheral (QUP) wrapper + is a programmable module for supporting a wide range of serial interfaces + like UART, SPI, I2C, I3C, etc. A single QUP module can provide upto 8 Serial + Interfaces, using its internal Serial Engines. The GENI Serial Engine QUP + Wrapper controller is modeled as a node with zero or more child nodes each + representing a serial engine. + +properties: + compatible: + enum: + - qcom,geni-se-qup + - qcom,geni-se-i2c-master-hub + + reg: + description: QUP wrapper common register address and length. + maxItems: 1 + + clock-names: + minItems: 1 + maxItems: 2 + + clocks: + minItems: 1 + maxItems: 2 + + "#address-cells": + const: 2 + + "#size-cells": + const: 2 + + ranges: true + + interconnects: + maxItems: 1 + + interconnect-names: + const: qup-core + + iommus: + maxItems: 1 + + dma-coherent: true + +required: + - compatible + - reg + - clock-names + - clocks + - "#address-cells" + - "#size-cells" + - ranges + +patternProperties: + "spi@[0-9a-f]+$": + type: object + description: GENI serial engine based SPI controller. SPI in master mode + supports up to 50MHz, up to four chip selects, programmable + data path from 4 bits to 32 bits and numerous protocol + variants. + $ref: /schemas/spi/qcom,spi-geni-qcom.yaml# + + "i2c@[0-9a-f]+$": + type: object + description: GENI serial engine based I2C controller. + $ref: /schemas/i2c/qcom,i2c-geni-qcom.yaml# + + "serial@[0-9a-f]+$": + type: object + description: GENI Serial Engine based UART Controller. + $ref: /schemas/serial/qcom,serial-geni-qcom.yaml# + +allOf: + - if: + properties: + compatible: + contains: + const: qcom,geni-se-i2c-master-hub + then: + properties: + clock-names: + items: + - const: s-ahb + + clocks: + items: + - description: Slave AHB Clock + + iommus: false + + patternProperties: + "spi@[0-9a-f]+$": false + "serial@[0-9a-f]+$": false + else: + properties: + clock-names: + items: + - const: m-ahb + - const: s-ahb + + clocks: + items: + - description: Master AHB Clock + - description: Slave AHB Clock + +additionalProperties: false + +examples: + - | + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + geniqup@8c0000 { + compatible = "qcom,geni-se-qup"; + reg = <0 0x008c0000 0 0x6000>; + clock-names = "m-ahb", "s-ahb"; + clocks = <&gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, + <&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + i2c0: i2c@a94000 { + compatible = "qcom,geni-i2c"; + reg = <0 0xa94000 0 0x4000>; + interrupts = ; + clock-names = "se"; + clocks = <&gcc GCC_QUPV3_WRAP0_S5_CLK>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&qup_1_i2c_5_active>; + pinctrl-1 = <&qup_1_i2c_5_sleep>; + #address-cells = <1>; + #size-cells = <0>; + }; + + uart0: serial@a88000 { + compatible = "qcom,geni-uart"; + reg = <0 0xa88000 0 0x7000>; + interrupts = ; + clock-names = "se"; + clocks = <&gcc GCC_QUPV3_WRAP0_S0_CLK>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&qup_1_uart_3_active>; + pinctrl-1 = <&qup_1_uart_3_sleep>; + }; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,gsbi.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,gsbi.yaml index c58ccc218..c33704333 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,gsbi.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,gsbi.yaml @@ -1,132 +1,132 @@ -# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/soc/qcom/qcom,gsbi.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm General Serial Bus Interface (GSBI) - -maintainers: - - Andy Gross - - Bjorn Andersson - - Krzysztof Kozlowski - -description: - The GSBI controller is modeled as a node with zero or more child nodes, each - representing a serial sub-node device that is mux'd as part of the GSBI - configuration settings. The mode setting will govern the input/output mode - of the 4 GSBI IOs. - - A GSBI controller node can contain 0 or more child nodes representing serial - devices. These serial devices can be a QCOM UART, I2C controller, spi - controller, or some combination of aforementioned devices. - -properties: - compatible: - const: qcom,gsbi-v1.0.0 - - '#address-cells': - const: 1 - - cell-index: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - The GSBI index. - - clocks: - maxItems: 1 - - clock-names: - const: iface - - qcom,crci: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - CRCI MUX value for QUP CRCI ports. Please reference - include/dt-bindings/soc/qcom,gsbi.h for valid CRCI mux values. - - qcom,mode: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - MUX value for configuration of the serial interface. Please reference - include/dt-bindings/soc/qcom,gsbi.h for valid mux values. - - '#size-cells': - const: 1 - - syscon-tcsr: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Phandle of TCSR syscon node.Required if child uses dma. - - ranges: true - - reg: - maxItems: 1 - -patternProperties: - "spi@[0-9a-f]+$": - type: object - $ref: /schemas/spi/qcom,spi-qup.yaml# - - "i2c@[0-9a-f]+$": - type: object - $ref: /schemas/i2c/qcom,i2c-qup.yaml# - - "serial@[0-9a-f]+$": - type: object - $ref: /schemas/serial/qcom,msm-uartdm.yaml# - -required: - - compatible - - cell-index - - clocks - - clock-names - - qcom,mode - - reg - -additionalProperties: false - -examples: - - | - #include - #include - #include - - gsbi@12440000 { - compatible = "qcom,gsbi-v1.0.0"; - reg = <0x12440000 0x100>; - cell-index = <1>; - clocks = <&gcc GSBI1_H_CLK>; - clock-names = "iface"; - #address-cells = <1>; - #size-cells = <1>; - ranges; - - syscon-tcsr = <&tcsr>; - qcom,mode = ; - - serial@12450000 { - compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; - reg = <0x12450000 0x100>, - <0x12400000 0x03>; - interrupts = <0 193 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&gcc GSBI1_UART_CLK>, <&gcc GSBI1_H_CLK>; - clock-names = "core", "iface"; - }; - - i2c@12460000 { - compatible = "qcom,i2c-qup-v1.1.1"; - reg = <0x12460000 0x1000>; - pinctrl-0 = <&i2c1_pins>; - pinctrl-1 = <&i2c1_pins_sleep>; - pinctrl-names = "default", "sleep"; - interrupts = <0 194 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>; - clock-names = "core", "iface"; - #address-cells = <1>; - #size-cells = <0>; - - status = "disabled"; /* UART chosen */ - }; - }; +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/qcom/qcom,gsbi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm General Serial Bus Interface (GSBI) + +maintainers: + - Andy Gross + - Bjorn Andersson + - Krzysztof Kozlowski + +description: + The GSBI controller is modeled as a node with zero or more child nodes, each + representing a serial sub-node device that is mux'd as part of the GSBI + configuration settings. The mode setting will govern the input/output mode + of the 4 GSBI IOs. + + A GSBI controller node can contain 0 or more child nodes representing serial + devices. These serial devices can be a QCOM UART, I2C controller, spi + controller, or some combination of aforementioned devices. + +properties: + compatible: + const: qcom,gsbi-v1.0.0 + + '#address-cells': + const: 1 + + cell-index: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + The GSBI index. + + clocks: + maxItems: 1 + + clock-names: + const: iface + + qcom,crci: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + CRCI MUX value for QUP CRCI ports. Please reference + include/dt-bindings/soc/qcom,gsbi.h for valid CRCI mux values. + + qcom,mode: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + MUX value for configuration of the serial interface. Please reference + include/dt-bindings/soc/qcom,gsbi.h for valid mux values. + + '#size-cells': + const: 1 + + syscon-tcsr: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle of TCSR syscon node.Required if child uses dma. + + ranges: true + + reg: + maxItems: 1 + +patternProperties: + "spi@[0-9a-f]+$": + type: object + $ref: /schemas/spi/qcom,spi-qup.yaml# + + "i2c@[0-9a-f]+$": + type: object + $ref: /schemas/i2c/qcom,i2c-qup.yaml# + + "serial@[0-9a-f]+$": + type: object + $ref: /schemas/serial/qcom,msm-uartdm.yaml# + +required: + - compatible + - cell-index + - clocks + - clock-names + - qcom,mode + - reg + +additionalProperties: false + +examples: + - | + #include + #include + #include + + gsbi@12440000 { + compatible = "qcom,gsbi-v1.0.0"; + reg = <0x12440000 0x100>; + cell-index = <1>; + clocks = <&gcc GSBI1_H_CLK>; + clock-names = "iface"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + syscon-tcsr = <&tcsr>; + qcom,mode = ; + + serial@12450000 { + compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; + reg = <0x12450000 0x100>, + <0x12400000 0x03>; + interrupts = <0 193 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GSBI1_UART_CLK>, <&gcc GSBI1_H_CLK>; + clock-names = "core", "iface"; + }; + + i2c@12460000 { + compatible = "qcom,i2c-qup-v1.1.1"; + reg = <0x12460000 0x1000>; + pinctrl-0 = <&i2c1_pins>; + pinctrl-1 = <&i2c1_pins_sleep>; + pinctrl-names = "default", "sleep"; + interrupts = <0 194 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>; + clock-names = "core", "iface"; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; /* UART chosen */ + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,saw2.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,saw2.yaml index 86f7e700b..ca4bce817 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,saw2.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,saw2.yaml @@ -1,119 +1,119 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/soc/qcom/qcom,saw2.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Subsystem Power Manager / SPM AVS Wrapper 2 (SAW2) - -maintainers: - - Andy Gross - - Bjorn Andersson - -description: | - The Qualcomm Subsystem Power Manager is used to control the peripheral logic - surrounding the application cores in Qualcomm platforms. - - The SAW2 is a wrapper around the Subsystem Power Manager (SPM) and the - Adaptive Voltage Scaling (AVS) hardware. The SPM is a programmable - power-controller that transitions a piece of hardware (like a processor or - subsystem) into and out of low power modes via a direct connection to - the PMIC. It can also be wired up to interact with other processors in the - system, notifying them when a low power state is entered or exited. - -properties: - compatible: - items: - - enum: - - qcom,ipq4019-saw2-cpu - - qcom,ipq4019-saw2-l2 - - qcom,ipq8064-saw2-cpu - - qcom,sdm660-gold-saw2-v4.1-l2 - - qcom,sdm660-silver-saw2-v4.1-l2 - - qcom,msm8998-gold-saw2-v4.1-l2 - - qcom,msm8998-silver-saw2-v4.1-l2 - - qcom,msm8909-saw2-v3.0-cpu - - qcom,msm8916-saw2-v3.0-cpu - - qcom,msm8939-saw2-v3.0-cpu - - qcom,msm8226-saw2-v2.1-cpu - - qcom,msm8226-saw2-v2.1-l2 - - qcom,msm8960-saw2-cpu - - qcom,msm8974-saw2-v2.1-cpu - - qcom,msm8974-saw2-v2.1-l2 - - qcom,msm8976-gold-saw2-v2.3-l2 - - qcom,msm8976-silver-saw2-v2.3-l2 - - qcom,apq8084-saw2-v2.1-cpu - - qcom,apq8084-saw2-v2.1-l2 - - qcom,apq8064-saw2-v1.1-cpu - - const: qcom,saw2 - - reg: - items: - - description: Base address and size of the SPM register region - - description: Base address and size of the alias register region - minItems: 1 - - regulator: - $ref: /schemas/regulator/regulator.yaml# - description: Indicates that this SPM device acts as a regulator device - device for the core (CPU or Cache) the SPM is attached to. - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - - /* Example 1: SoC using SAW2 and kpss-acc-v2 CPUIdle */ - cpus { - #address-cells = <1>; - #size-cells = <0>; - - cpu@0 { - compatible = "qcom,kryo"; - device_type = "cpu"; - enable-method = "qcom,kpss-acc-v2"; - qcom,saw = <&saw0>; - reg = <0x0>; - operating-points-v2 = <&cpu_opp_table>; - }; - }; - - saw0: power-manager@f9089000 { - compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2"; - reg = <0xf9089000 0x1000>; - }; - - - | - - /* - * Example 2: New-gen multi cluster SoC using SAW only for L2; - * This does not require any cpuidle driver, nor any cpu phandle. - */ - power-manager@17812000 { - compatible = "qcom,msm8998-gold-saw2-v4.1-l2", "qcom,saw2"; - reg = <0x17812000 0x1000>; - }; - - power-manager@17912000 { - compatible = "qcom,msm8998-silver-saw2-v4.1-l2", "qcom,saw2"; - reg = <0x17912000 0x1000>; - }; - - - | - /* - * Example 3: SAW2 with the bundled regulator definition. - */ - power-manager@2089000 { - compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2"; - reg = <0x02089000 0x1000>, <0x02009000 0x1000>; - - regulator { - regulator-min-microvolt = <850000>; - regulator-max-microvolt = <1300000>; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/qcom/qcom,saw2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Subsystem Power Manager / SPM AVS Wrapper 2 (SAW2) + +maintainers: + - Andy Gross + - Bjorn Andersson + +description: | + The Qualcomm Subsystem Power Manager is used to control the peripheral logic + surrounding the application cores in Qualcomm platforms. + + The SAW2 is a wrapper around the Subsystem Power Manager (SPM) and the + Adaptive Voltage Scaling (AVS) hardware. The SPM is a programmable + power-controller that transitions a piece of hardware (like a processor or + subsystem) into and out of low power modes via a direct connection to + the PMIC. It can also be wired up to interact with other processors in the + system, notifying them when a low power state is entered or exited. + +properties: + compatible: + items: + - enum: + - qcom,ipq4019-saw2-cpu + - qcom,ipq4019-saw2-l2 + - qcom,ipq8064-saw2-cpu + - qcom,sdm660-gold-saw2-v4.1-l2 + - qcom,sdm660-silver-saw2-v4.1-l2 + - qcom,msm8998-gold-saw2-v4.1-l2 + - qcom,msm8998-silver-saw2-v4.1-l2 + - qcom,msm8909-saw2-v3.0-cpu + - qcom,msm8916-saw2-v3.0-cpu + - qcom,msm8939-saw2-v3.0-cpu + - qcom,msm8226-saw2-v2.1-cpu + - qcom,msm8226-saw2-v2.1-l2 + - qcom,msm8960-saw2-cpu + - qcom,msm8974-saw2-v2.1-cpu + - qcom,msm8974-saw2-v2.1-l2 + - qcom,msm8976-gold-saw2-v2.3-l2 + - qcom,msm8976-silver-saw2-v2.3-l2 + - qcom,apq8084-saw2-v2.1-cpu + - qcom,apq8084-saw2-v2.1-l2 + - qcom,apq8064-saw2-v1.1-cpu + - const: qcom,saw2 + + reg: + items: + - description: Base address and size of the SPM register region + - description: Base address and size of the alias register region + minItems: 1 + + regulator: + $ref: /schemas/regulator/regulator.yaml# + description: Indicates that this SPM device acts as a regulator device + device for the core (CPU or Cache) the SPM is attached to. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + + /* Example 1: SoC using SAW2 and kpss-acc-v2 CPUIdle */ + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0 { + compatible = "qcom,kryo"; + device_type = "cpu"; + enable-method = "qcom,kpss-acc-v2"; + qcom,saw = <&saw0>; + reg = <0x0>; + operating-points-v2 = <&cpu_opp_table>; + }; + }; + + saw0: power-manager@f9089000 { + compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2"; + reg = <0xf9089000 0x1000>; + }; + + - | + + /* + * Example 2: New-gen multi cluster SoC using SAW only for L2; + * This does not require any cpuidle driver, nor any cpu phandle. + */ + power-manager@17812000 { + compatible = "qcom,msm8998-gold-saw2-v4.1-l2", "qcom,saw2"; + reg = <0x17812000 0x1000>; + }; + + power-manager@17912000 { + compatible = "qcom,msm8998-silver-saw2-v4.1-l2", "qcom,saw2"; + reg = <0x17912000 0x1000>; + }; + + - | + /* + * Example 3: SAW2 with the bundled regulator definition. + */ + power-manager@2089000 { + compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2"; + reg = <0x02089000 0x1000>, <0x02009000 0x1000>; + + regulator { + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1300000>; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml index 856392f02..270bcd079 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml @@ -1,152 +1,152 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/soc/qcom/qcom,smd-rpm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Resource Power Manager (RPM) over SMD/GLINK - -description: | - This driver is used to interface with the Resource Power Manager (RPM) found - in various Qualcomm platforms. The RPM allows each component in the system - to vote for state of the system resources, such as clocks, regulators and bus - frequencies. - - The SMD or GLINK information for the RPM edge should be filled out. See - qcom,smd.yaml for the required edge properties. All SMD/GLINK related - properties will reside within the RPM node itself. - - The RPM exposes resources to its subnodes. The rpm_requests node must be - present and this subnode may contain children that designate regulator - resources. - - Refer to Documentation/devicetree/bindings/regulator/qcom,smd-rpm-regulator.yaml - for information on the regulator subnodes that can exist under the - rpm_requests. - -maintainers: - - Andy Gross - - Bjorn Andersson - -properties: - compatible: - oneOf: - - items: - - enum: - - qcom,rpm-apq8084 - - qcom,rpm-mdm9607 - - qcom,rpm-msm8226 - - qcom,rpm-msm8610 - - qcom,rpm-msm8909 - - qcom,rpm-msm8916 - - qcom,rpm-msm8917 - - qcom,rpm-msm8936 - - qcom,rpm-msm8937 - - qcom,rpm-msm8952 - - qcom,rpm-msm8953 - - qcom,rpm-msm8974 - - qcom,rpm-msm8976 - - qcom,rpm-msm8994 - - const: qcom,smd-rpm - - items: - - enum: - - qcom,rpm-ipq6018 - - qcom,rpm-ipq9574 - - qcom,rpm-msm8996 - - qcom,rpm-msm8998 - - qcom,rpm-qcm2290 - - qcom,rpm-qcs404 - - qcom,rpm-sdm660 - - qcom,rpm-sm6115 - - qcom,rpm-sm6125 - - qcom,rpm-sm6375 - - const: qcom,glink-smd-rpm - - clock-controller: - $ref: /schemas/clock/qcom,rpmcc.yaml# - unevaluatedProperties: false - - power-controller: - $ref: /schemas/power/qcom,rpmpd.yaml# - - qcom,glink-channels: - $ref: /schemas/types.yaml#/definitions/string-array - description: Channel name used for the RPM communication - items: - - const: rpm_requests - - qcom,smd-channels: - $ref: /schemas/types.yaml#/definitions/string-array - description: Channel name used for the RPM communication - items: - - const: rpm_requests - -patternProperties: - "^regulators(-[01])?$": - $ref: /schemas/regulator/qcom,smd-rpm-regulator.yaml# - unevaluatedProperties: false - -if: - properties: - compatible: - contains: - const: qcom,smd-rpm -then: - properties: - qcom,glink-channels: false - required: - - qcom,smd-channels -else: - properties: - qcom,smd-channels: false - required: - - qcom,glink-channels - -required: - - compatible - -additionalProperties: false - -examples: - - | - #include - #include - - remoteproc { - compatible = "qcom,msm8916-rpm-proc", "qcom,rpm-proc"; - - smd-edge { - interrupts = ; - qcom,ipc = <&apcs 8 0>; - qcom,smd-edge = <15>; - - rpm-requests { - compatible = "qcom,rpm-msm8916", "qcom,smd-rpm"; - qcom,smd-channels = "rpm_requests"; - - clock-controller { - compatible = "qcom,rpmcc-msm8916", "qcom,rpmcc"; - #clock-cells = <1>; - clocks = <&xo_board>; - clock-names = "xo"; - }; - - power-controller { - compatible = "qcom,msm8916-rpmpd"; - #power-domain-cells = <1>; - operating-points-v2 = <&rpmpd_opp_table>; - - rpmpd_opp_table: opp-table { - compatible = "operating-points-v2"; - - opp-1 { - opp-level = <1>; - }; - opp-2 { - opp-level = <2>; - }; - }; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/qcom/qcom,smd-rpm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Resource Power Manager (RPM) over SMD/GLINK + +description: | + This driver is used to interface with the Resource Power Manager (RPM) found + in various Qualcomm platforms. The RPM allows each component in the system + to vote for state of the system resources, such as clocks, regulators and bus + frequencies. + + The SMD or GLINK information for the RPM edge should be filled out. See + qcom,smd.yaml for the required edge properties. All SMD/GLINK related + properties will reside within the RPM node itself. + + The RPM exposes resources to its subnodes. The rpm_requests node must be + present and this subnode may contain children that designate regulator + resources. + + Refer to Documentation/devicetree/bindings/regulator/qcom,smd-rpm-regulator.yaml + for information on the regulator subnodes that can exist under the + rpm_requests. + +maintainers: + - Andy Gross + - Bjorn Andersson + +properties: + compatible: + oneOf: + - items: + - enum: + - qcom,rpm-apq8084 + - qcom,rpm-mdm9607 + - qcom,rpm-msm8226 + - qcom,rpm-msm8610 + - qcom,rpm-msm8909 + - qcom,rpm-msm8916 + - qcom,rpm-msm8917 + - qcom,rpm-msm8936 + - qcom,rpm-msm8937 + - qcom,rpm-msm8952 + - qcom,rpm-msm8953 + - qcom,rpm-msm8974 + - qcom,rpm-msm8976 + - qcom,rpm-msm8994 + - const: qcom,smd-rpm + - items: + - enum: + - qcom,rpm-ipq6018 + - qcom,rpm-ipq9574 + - qcom,rpm-msm8996 + - qcom,rpm-msm8998 + - qcom,rpm-qcm2290 + - qcom,rpm-qcs404 + - qcom,rpm-sdm660 + - qcom,rpm-sm6115 + - qcom,rpm-sm6125 + - qcom,rpm-sm6375 + - const: qcom,glink-smd-rpm + + clock-controller: + $ref: /schemas/clock/qcom,rpmcc.yaml# + unevaluatedProperties: false + + power-controller: + $ref: /schemas/power/qcom,rpmpd.yaml# + + qcom,glink-channels: + $ref: /schemas/types.yaml#/definitions/string-array + description: Channel name used for the RPM communication + items: + - const: rpm_requests + + qcom,smd-channels: + $ref: /schemas/types.yaml#/definitions/string-array + description: Channel name used for the RPM communication + items: + - const: rpm_requests + +patternProperties: + "^regulators(-[01])?$": + $ref: /schemas/regulator/qcom,smd-rpm-regulator.yaml# + unevaluatedProperties: false + +if: + properties: + compatible: + contains: + const: qcom,smd-rpm +then: + properties: + qcom,glink-channels: false + required: + - qcom,smd-channels +else: + properties: + qcom,smd-channels: false + required: + - qcom,glink-channels + +required: + - compatible + +additionalProperties: false + +examples: + - | + #include + #include + + remoteproc { + compatible = "qcom,msm8916-rpm-proc", "qcom,rpm-proc"; + + smd-edge { + interrupts = ; + qcom,ipc = <&apcs 8 0>; + qcom,smd-edge = <15>; + + rpm-requests { + compatible = "qcom,rpm-msm8916", "qcom,smd-rpm"; + qcom,smd-channels = "rpm_requests"; + + clock-controller { + compatible = "qcom,rpmcc-msm8916", "qcom,rpmcc"; + #clock-cells = <1>; + clocks = <&xo_board>; + clock-names = "xo"; + }; + + power-controller { + compatible = "qcom,msm8916-rpmpd"; + #power-domain-cells = <1>; + operating-points-v2 = <&rpmpd_opp_table>; + + rpmpd_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-1 { + opp-level = <1>; + }; + opp-2 { + opp-level = <2>; + }; + }; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,smp2p.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,smp2p.yaml index d6a888365..141d666dc 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,smp2p.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,smp2p.yaml @@ -1,146 +1,146 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/soc/qcom/qcom,smp2p.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Shared Memory Point 2 Point - -maintainers: - - Andy Gross - - Bjorn Andersson - - Krzysztof Kozlowski - -description: - The Shared Memory Point to Point (SMP2P) protocol facilitates communication - of a single 32-bit value between two processors. Each value has a single - writer (the local side) and a single reader (the remote side). Values are - uniquely identified in the system by the directed edge (local processor ID to - remote processor ID) and a string identifier. - -properties: - compatible: - const: qcom,smp2p - - interrupts: - maxItems: 1 - - mboxes: - maxItems: 1 - description: - Reference to the mailbox representing the outgoing doorbell in APCS for - this client. - - qcom,ipc: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - - items: - - description: phandle to a syscon node representing the APCS registers - - description: u32 representing offset to the register within the syscon - - description: u32 representing the ipc bit within the register - description: - Three entries specifying the outgoing ipc bit used for signaling the - remote end of the smp2p edge. - deprecated: true - - qcom,local-pid: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - The identifier of the local endpoint of this edge. - - qcom,remote-pid: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - The identifier of the remote endpoint of this edge. - - qcom,smem: - $ref: /schemas/types.yaml#/definitions/uint32-array - items: - maxItems: 2 - description: - Two identifiers of the inbound and outbound smem items used for this edge. - -patternProperties: - "^master-kernel|slave-kernel|ipa-ap-to-modem|ipa-modem-to-ap|wlan-ap-to-wpss|wlan-wpss-to-ap$": - type: object - description: - Each SMP2P pair contain a set of inbound and outbound entries, these are - described in subnodes of the smp2p device node. The node names are not - important. - - properties: - interrupt-controller: - description: - Marks the entry as inbound; the node should be specified as a two - cell interrupt-controller. If not specified this node will denote - the outgoing entry. - - '#interrupt-cells': - const: 2 - - qcom,entry-name: - $ref: /schemas/types.yaml#/definitions/string - description: - The name of this entry, for inbound entries this will be used to - match against the remotely allocated entry and for outbound entries - this name is used for allocating entries. - - '#qcom,smem-state-cells': - $ref: /schemas/types.yaml#/definitions/uint32 - const: 1 - description: - Required for outgoing entries. - - required: - - qcom,entry-name - - oneOf: - - required: - - interrupt-controller - - '#interrupt-cells' - - required: - - '#qcom,smem-state-cells' - - additionalProperties: false - -required: - - compatible - - interrupts - - qcom,local-pid - - qcom,remote-pid - - qcom,smem - -oneOf: - - required: - - mboxes - - required: - - qcom,ipc - -additionalProperties: false - -examples: - # The following example shows the SMP2P setup with the wireless processor, - # defined from the 8974 apps processor's point-of-view. It encompasses one - # inbound and one outbound entry. - - | - #include - - shared-memory { - compatible = "qcom,smp2p"; - qcom,smem = <431>, <451>; - interrupts = ; - mboxes = <&apcs 18>; - qcom,local-pid = <0>; - qcom,remote-pid = <4>; - - wcnss_smp2p_out: master-kernel { - qcom,entry-name = "master-kernel"; - #qcom,smem-state-cells = <1>; - }; - - wcnss_smp2p_in: slave-kernel { - qcom,entry-name = "slave-kernel"; - interrupt-controller; - #interrupt-cells = <2>; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/qcom/qcom,smp2p.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Shared Memory Point 2 Point + +maintainers: + - Andy Gross + - Bjorn Andersson + - Krzysztof Kozlowski + +description: + The Shared Memory Point to Point (SMP2P) protocol facilitates communication + of a single 32-bit value between two processors. Each value has a single + writer (the local side) and a single reader (the remote side). Values are + uniquely identified in the system by the directed edge (local processor ID to + remote processor ID) and a string identifier. + +properties: + compatible: + const: qcom,smp2p + + interrupts: + maxItems: 1 + + mboxes: + maxItems: 1 + description: + Reference to the mailbox representing the outgoing doorbell in APCS for + this client. + + qcom,ipc: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to a syscon node representing the APCS registers + - description: u32 representing offset to the register within the syscon + - description: u32 representing the ipc bit within the register + description: + Three entries specifying the outgoing ipc bit used for signaling the + remote end of the smp2p edge. + deprecated: true + + qcom,local-pid: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + The identifier of the local endpoint of this edge. + + qcom,remote-pid: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + The identifier of the remote endpoint of this edge. + + qcom,smem: + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + maxItems: 2 + description: + Two identifiers of the inbound and outbound smem items used for this edge. + +patternProperties: + "^master-kernel|slave-kernel|ipa-ap-to-modem|ipa-modem-to-ap|wlan-ap-to-wpss|wlan-wpss-to-ap$": + type: object + description: + Each SMP2P pair contain a set of inbound and outbound entries, these are + described in subnodes of the smp2p device node. The node names are not + important. + + properties: + interrupt-controller: + description: + Marks the entry as inbound; the node should be specified as a two + cell interrupt-controller. If not specified this node will denote + the outgoing entry. + + '#interrupt-cells': + const: 2 + + qcom,entry-name: + $ref: /schemas/types.yaml#/definitions/string + description: + The name of this entry, for inbound entries this will be used to + match against the remotely allocated entry and for outbound entries + this name is used for allocating entries. + + '#qcom,smem-state-cells': + $ref: /schemas/types.yaml#/definitions/uint32 + const: 1 + description: + Required for outgoing entries. + + required: + - qcom,entry-name + + oneOf: + - required: + - interrupt-controller + - '#interrupt-cells' + - required: + - '#qcom,smem-state-cells' + + additionalProperties: false + +required: + - compatible + - interrupts + - qcom,local-pid + - qcom,remote-pid + - qcom,smem + +oneOf: + - required: + - mboxes + - required: + - qcom,ipc + +additionalProperties: false + +examples: + # The following example shows the SMP2P setup with the wireless processor, + # defined from the 8974 apps processor's point-of-view. It encompasses one + # inbound and one outbound entry. + - | + #include + + shared-memory { + compatible = "qcom,smp2p"; + qcom,smem = <431>, <451>; + interrupts = ; + mboxes = <&apcs 18>; + qcom,local-pid = <0>; + qcom,remote-pid = <4>; + + wcnss_smp2p_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + wcnss_smp2p_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,smsm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,smsm.yaml index 7dbbf169a..4900215f2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,smsm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,smsm.yaml @@ -1,150 +1,150 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/soc/qcom/qcom,smsm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Shared Memory State Machine - -maintainers: - - Andy Gross - - Bjorn Andersson - - Krzysztof Kozlowski - -description: - The Shared Memory State Machine facilitates broadcasting of single bit state - information between the processors in a Qualcomm SoC. Each processor is - assigned 32 bits of state that can be modified. A processor can through a - matrix of bitmaps signal subscription of notifications upon changes to a - certain bit owned by a certain remote processor. - -properties: - compatible: - const: qcom,smsm - - '#address-cells': - const: 1 - - qcom,local-host: - $ref: /schemas/types.yaml#/definitions/uint32 - default: 0 - description: - Identifier of the local processor in the list of hosts, or in other words - specifier of the column in the subscription matrix representing the local - processor. - - mboxes: - minItems: 1 - maxItems: 5 - description: - Reference to the mailbox representing the outgoing doorbell in APCS for - this client. Each entry represents the N:th remote processor by index - (0-indexed). - - '#size-cells': - const: 0 - -patternProperties: - "^qcom,ipc-[1-4]$": - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - - items: - - description: phandle to a syscon node representing the APCS registers - - description: u32 representing offset to the register within the syscon - - description: u32 representing the ipc bit within the register - description: - Three entries specifying the outgoing ipc bit used for signaling the N:th - remote processor. - deprecated: true - - "@[0-9a-f]$": - type: object - description: - Each processor's state bits are described by a subnode of the SMSM device - node. Nodes can either be flagged as an interrupt-controller to denote a - remote processor's state bits or the local processors bits. The node - names are not important. - - properties: - reg: - maxItems: 1 - - interrupt-controller: - description: - Marks the entry as a interrupt-controller and the state bits to - belong to a remote processor. - - '#interrupt-cells': - const: 2 - - interrupts: - maxItems: 1 - description: - One entry specifying remote IRQ used by the remote processor to - signal changes of its state bits. - - '#qcom,smem-state-cells': - $ref: /schemas/types.yaml#/definitions/uint32 - const: 1 - description: - Required for local entry. Denotes bit number. - - required: - - reg - - oneOf: - - required: - - '#qcom,smem-state-cells' - - required: - - interrupt-controller - - '#interrupt-cells' - - interrupts - - additionalProperties: false - -required: - - compatible - - '#address-cells' - - '#size-cells' - -oneOf: - - required: - - mboxes - - anyOf: - - required: - - qcom,ipc-1 - - required: - - qcom,ipc-2 - - required: - - qcom,ipc-3 - - required: - - qcom,ipc-4 - -additionalProperties: false - -examples: - # The following example shows the SMEM setup for controlling properties of - # the wireless processor, defined from the 8974 apps processor's - # point-of-view. It encompasses one outbound entry and the outgoing interrupt - # for the wireless processor. - - | - #include - - shared-memory { - compatible = "qcom,smsm"; - #address-cells = <1>; - #size-cells = <0>; - mboxes = <0>, <0>, <0>, <&apcs 19>; - - apps_smsm: apps@0 { - reg = <0>; - #qcom,smem-state-cells = <1>; - }; - - wcnss_smsm: wcnss@7 { - reg = <7>; - interrupts = ; - interrupt-controller; - #interrupt-cells = <2>; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/qcom/qcom,smsm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Shared Memory State Machine + +maintainers: + - Andy Gross + - Bjorn Andersson + - Krzysztof Kozlowski + +description: + The Shared Memory State Machine facilitates broadcasting of single bit state + information between the processors in a Qualcomm SoC. Each processor is + assigned 32 bits of state that can be modified. A processor can through a + matrix of bitmaps signal subscription of notifications upon changes to a + certain bit owned by a certain remote processor. + +properties: + compatible: + const: qcom,smsm + + '#address-cells': + const: 1 + + qcom,local-host: + $ref: /schemas/types.yaml#/definitions/uint32 + default: 0 + description: + Identifier of the local processor in the list of hosts, or in other words + specifier of the column in the subscription matrix representing the local + processor. + + mboxes: + minItems: 1 + maxItems: 5 + description: + Reference to the mailbox representing the outgoing doorbell in APCS for + this client. Each entry represents the N:th remote processor by index + (0-indexed). + + '#size-cells': + const: 0 + +patternProperties: + "^qcom,ipc-[1-4]$": + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to a syscon node representing the APCS registers + - description: u32 representing offset to the register within the syscon + - description: u32 representing the ipc bit within the register + description: + Three entries specifying the outgoing ipc bit used for signaling the N:th + remote processor. + deprecated: true + + "@[0-9a-f]$": + type: object + description: + Each processor's state bits are described by a subnode of the SMSM device + node. Nodes can either be flagged as an interrupt-controller to denote a + remote processor's state bits or the local processors bits. The node + names are not important. + + properties: + reg: + maxItems: 1 + + interrupt-controller: + description: + Marks the entry as a interrupt-controller and the state bits to + belong to a remote processor. + + '#interrupt-cells': + const: 2 + + interrupts: + maxItems: 1 + description: + One entry specifying remote IRQ used by the remote processor to + signal changes of its state bits. + + '#qcom,smem-state-cells': + $ref: /schemas/types.yaml#/definitions/uint32 + const: 1 + description: + Required for local entry. Denotes bit number. + + required: + - reg + + oneOf: + - required: + - '#qcom,smem-state-cells' + - required: + - interrupt-controller + - '#interrupt-cells' + - interrupts + + additionalProperties: false + +required: + - compatible + - '#address-cells' + - '#size-cells' + +oneOf: + - required: + - mboxes + - anyOf: + - required: + - qcom,ipc-1 + - required: + - qcom,ipc-2 + - required: + - qcom,ipc-3 + - required: + - qcom,ipc-4 + +additionalProperties: false + +examples: + # The following example shows the SMEM setup for controlling properties of + # the wireless processor, defined from the 8974 apps processor's + # point-of-view. It encompasses one outbound entry and the outgoing interrupt + # for the wireless processor. + - | + #include + + shared-memory { + compatible = "qcom,smsm"; + #address-cells = <1>; + #size-cells = <0>; + mboxes = <0>, <0>, <0>, <&apcs 19>; + + apps_smsm: apps@0 { + reg = <0>; + #qcom,smem-state-cells = <1>; + }; + + wcnss_smsm: wcnss@7 { + reg = <7>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.yaml index a03cc873b..fd6db0ca9 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.yaml @@ -1,134 +1,134 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/soc/qcom/qcom,wcnss.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm WCNSS - -maintainers: - - Andy Gross - - Bjorn Andersson - -description: - The Qualcomm WCNSS hardware consists of control block and a BT, WiFi and FM - radio block, all using SMD as command channels. - -properties: - compatible: - const: qcom,wcnss - - firmware-name: - $ref: /schemas/types.yaml#/definitions/string - default: wlan/prima/WCNSS_qcom_wlan_nv.bin - description: - Relative firmware image path for the WLAN NV blob. - - qcom,mmio: - $ref: /schemas/types.yaml#/definitions/phandle - description: | - Reference to a node specifying the wcnss "ccu" and "dxe" register blocks. - The node must be compatible with one of the following:: - - qcom,riva" - - qcom,pronto" - - qcom,smd-channels: - $ref: /schemas/types.yaml#/definitions/string - const: WCNSS_CTRL - description: - Standard SMD property specifying the SMD channel used for communication - with the WiFi firmware. - - bluetooth: - type: object - additionalProperties: false - allOf: - - $ref: /schemas/net/bluetooth/bluetooth-controller.yaml# - properties: - compatible: - const: qcom,wcnss-bt - - local-bd-address: true - - required: - - compatible - - wifi: - additionalProperties: false - type: object - properties: - compatible: - const: qcom,wcnss-wlan - - interrupts: - maxItems: 2 - - interrupt-names: - items: - - const: tx - - const: rx - - qcom,smem-states: - $ref: /schemas/types.yaml#/definitions/phandle-array - maxItems: 2 - description: - Should reference the tx-enable and tx-rings-empty SMEM states. - - qcom,smem-state-names: - items: - - const: tx-enable - - const: tx-rings-empty - description: - Names of SMEM states. - - required: - - compatible - - interrupts - - interrupt-names - - qcom,smem-states - - qcom,smem-state-names - -required: - - compatible - - qcom,mmio - - qcom,smd-channels - -additionalProperties: false - -examples: - - | - #include - - smd-edge { - interrupts = ; - - qcom,ipc = <&apcs 8 17>; - qcom,smd-edge = <6>; - qcom,remote-pid = <4>; - - label = "pronto"; - - wcnss { - compatible = "qcom,wcnss"; - qcom,smd-channels = "WCNSS_CTRL"; - - qcom,mmio = <&pronto>; - - bluetooth { - compatible = "qcom,wcnss-bt"; - /* Updated by boot firmware (little-endian order) */ - local-bd-address = [ 00 00 00 00 00 00 ]; - }; - - wifi { - compatible = "qcom,wcnss-wlan"; - - interrupts = , - ; - interrupt-names = "tx", "rx"; - - qcom,smem-states = <&apps_smsm 10>, <&apps_smsm 9>; - qcom,smem-state-names = "tx-enable", "tx-rings-empty"; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/qcom/qcom,wcnss.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm WCNSS + +maintainers: + - Andy Gross + - Bjorn Andersson + +description: + The Qualcomm WCNSS hardware consists of control block and a BT, WiFi and FM + radio block, all using SMD as command channels. + +properties: + compatible: + const: qcom,wcnss + + firmware-name: + $ref: /schemas/types.yaml#/definitions/string + default: wlan/prima/WCNSS_qcom_wlan_nv.bin + description: + Relative firmware image path for the WLAN NV blob. + + qcom,mmio: + $ref: /schemas/types.yaml#/definitions/phandle + description: | + Reference to a node specifying the wcnss "ccu" and "dxe" register blocks. + The node must be compatible with one of the following:: + - qcom,riva" + - qcom,pronto" + + qcom,smd-channels: + $ref: /schemas/types.yaml#/definitions/string + const: WCNSS_CTRL + description: + Standard SMD property specifying the SMD channel used for communication + with the WiFi firmware. + + bluetooth: + type: object + additionalProperties: false + allOf: + - $ref: /schemas/net/bluetooth/bluetooth-controller.yaml# + properties: + compatible: + const: qcom,wcnss-bt + + local-bd-address: true + + required: + - compatible + + wifi: + additionalProperties: false + type: object + properties: + compatible: + const: qcom,wcnss-wlan + + interrupts: + maxItems: 2 + + interrupt-names: + items: + - const: tx + - const: rx + + qcom,smem-states: + $ref: /schemas/types.yaml#/definitions/phandle-array + maxItems: 2 + description: + Should reference the tx-enable and tx-rings-empty SMEM states. + + qcom,smem-state-names: + items: + - const: tx-enable + - const: tx-rings-empty + description: + Names of SMEM states. + + required: + - compatible + - interrupts + - interrupt-names + - qcom,smem-states + - qcom,smem-state-names + +required: + - compatible + - qcom,mmio + - qcom,smd-channels + +additionalProperties: false + +examples: + - | + #include + + smd-edge { + interrupts = ; + + qcom,ipc = <&apcs 8 17>; + qcom,smd-edge = <6>; + qcom,remote-pid = <4>; + + label = "pronto"; + + wcnss { + compatible = "qcom,wcnss"; + qcom,smd-channels = "WCNSS_CTRL"; + + qcom,mmio = <&pronto>; + + bluetooth { + compatible = "qcom,wcnss-bt"; + /* Updated by boot firmware (little-endian order) */ + local-bd-address = [ 00 00 00 00 00 00 ]; + }; + + wifi { + compatible = "qcom,wcnss-wlan"; + + interrupts = , + ; + interrupt-names = "tx", "rx"; + + qcom,smem-states = <&apps_smsm 10>, <&apps_smsm 9>; + qcom,smem-state-names = "tx-enable", "tx-rings-empty"; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/ti/keystone-navigator-dma.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/ti/keystone-navigator-dma.txt index dcae898c7..337c4ea5c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/ti/keystone-navigator-dma.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/soc/ti/keystone-navigator-dma.txt @@ -1,111 +1,111 @@ -Keystone Navigator DMA Controller - -This document explains the device tree bindings for the packet dma -on keystone devices. The Keystone Navigator DMA driver sets up the dma -channels and flows for the QMSS(Queue Manager SubSystem) who triggers -the actual data movements across clients using destination queues. Every -client modules like NETCP(Network Coprocessor), SRIO(Serial Rapid IO), -CRYPTO Engines etc has its own instance of dma hardware. QMSS has also -an internal packet DMA module which is used as an infrastructure DMA -with zero copy. - -Navigator DMA cloud layout: - ------------------ - | Navigator DMAs | - ------------------ - | - |-> DMA instance #0 - | - |-> DMA instance #1 - . - . - | - |-> DMA instance #n - -Navigator DMA properties: -Required properties: - - compatible: Should be "ti,keystone-navigator-dma" - - clocks: phandle to dma instances clocks. The clock handles can be as - many as the dma instances. The order should be maintained as per - the dma instances. - - ti,navigator-cloud-address: Should contain base address for the multi-core - navigator cloud and number of addresses depends on SOC integration - configuration.. Navigator cloud global address needs to be programmed - into DMA and the DMA uses it as the physical addresses to reach queue - managers. Note that these addresses though points to queue managers, - they are relevant only from DMA perspective. The QMSS may not choose to - use them since it has a different address space view to reach all - its components. - -DMA instance properties: -Required properties: - - reg: Should contain register location and length of the following dma - register regions. Register regions should be specified in the following - order. - - Global control register region (global). - - Tx DMA channel configuration register region (txchan). - - Rx DMA channel configuration register region (rxchan). - - Tx DMA channel Scheduler configuration register region (txsched). - - Rx DMA flow configuration register region (rxflow). - -Optional properties: - - reg-names: Names for the register regions. - - ti,enable-all: Enable all DMA channels vs clients opening specific channels - what they need. This property is useful for the userspace fast path - case where the linux drivers enables the channels used by userland - stack. - - ti,loop-back: To loopback Tx streaming I/F to Rx streaming I/F. Used for - infrastructure transfers. - - ti,rx-retry-timeout: Number of dma cycles to wait before retry on buffer - starvation. - -Example: - - knav_dmas: knav_dmas@0 { - compatible = "ti,keystone-navigator-dma"; - clocks = <&papllclk>, <&clkxge>; - #address-cells = <1>; - #size-cells = <1>; - ranges; - ti,navigator-cloud-address = <0x23a80000 0x23a90000 - 0x23aa0000 0x23ab0000>; - - dma_gbe: dma_gbe@0 { - reg = <0x2004000 0x100>, - <0x2004400 0x120>, - <0x2004800 0x300>, - <0x2004c00 0x120>, - <0x2005000 0x400>; - reg-names = "global", "txchan", "rxchan", - "txsched", "rxflow"; - }; - - dma_xgbe: dma_xgbe@0 { - reg = <0x2fa1000 0x100>, - <0x2fa1400 0x200>, - <0x2fa1800 0x200>, - <0x2fa1c00 0x200>, - <0x2fa2000 0x400>; - reg-names = "global", "txchan", "rxchan", - "txsched", "rxflow"; - }; - }; - -Navigator DMA client: -Required properties: - - ti,navigator-dmas: List of one or more DMA specifiers, each consisting of - - A phandle pointing to DMA instance node - - A DMA channel number as a phandle arg. - - ti,navigator-dma-names: Contains dma channel name for each DMA specifier in - the 'ti,navigator-dmas' property. - -Example: - - netcp: netcp@2090000 { - .. - ti,navigator-dmas = <&dma_gbe 22>, - <&dma_gbe 23>, - <&dma_gbe 8>; - ti,navigator-dma-names = "netrx0", "netrx1", "nettx"; - .. - }; +Keystone Navigator DMA Controller + +This document explains the device tree bindings for the packet dma +on keystone devices. The Keystone Navigator DMA driver sets up the dma +channels and flows for the QMSS(Queue Manager SubSystem) who triggers +the actual data movements across clients using destination queues. Every +client modules like NETCP(Network Coprocessor), SRIO(Serial Rapid IO), +CRYPTO Engines etc has its own instance of dma hardware. QMSS has also +an internal packet DMA module which is used as an infrastructure DMA +with zero copy. + +Navigator DMA cloud layout: + ------------------ + | Navigator DMAs | + ------------------ + | + |-> DMA instance #0 + | + |-> DMA instance #1 + . + . + | + |-> DMA instance #n + +Navigator DMA properties: +Required properties: + - compatible: Should be "ti,keystone-navigator-dma" + - clocks: phandle to dma instances clocks. The clock handles can be as + many as the dma instances. The order should be maintained as per + the dma instances. + - ti,navigator-cloud-address: Should contain base address for the multi-core + navigator cloud and number of addresses depends on SOC integration + configuration.. Navigator cloud global address needs to be programmed + into DMA and the DMA uses it as the physical addresses to reach queue + managers. Note that these addresses though points to queue managers, + they are relevant only from DMA perspective. The QMSS may not choose to + use them since it has a different address space view to reach all + its components. + +DMA instance properties: +Required properties: + - reg: Should contain register location and length of the following dma + register regions. Register regions should be specified in the following + order. + - Global control register region (global). + - Tx DMA channel configuration register region (txchan). + - Rx DMA channel configuration register region (rxchan). + - Tx DMA channel Scheduler configuration register region (txsched). + - Rx DMA flow configuration register region (rxflow). + +Optional properties: + - reg-names: Names for the register regions. + - ti,enable-all: Enable all DMA channels vs clients opening specific channels + what they need. This property is useful for the userspace fast path + case where the linux drivers enables the channels used by userland + stack. + - ti,loop-back: To loopback Tx streaming I/F to Rx streaming I/F. Used for + infrastructure transfers. + - ti,rx-retry-timeout: Number of dma cycles to wait before retry on buffer + starvation. + +Example: + + knav_dmas: knav_dmas@0 { + compatible = "ti,keystone-navigator-dma"; + clocks = <&papllclk>, <&clkxge>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + ti,navigator-cloud-address = <0x23a80000 0x23a90000 + 0x23aa0000 0x23ab0000>; + + dma_gbe: dma_gbe@0 { + reg = <0x2004000 0x100>, + <0x2004400 0x120>, + <0x2004800 0x300>, + <0x2004c00 0x120>, + <0x2005000 0x400>; + reg-names = "global", "txchan", "rxchan", + "txsched", "rxflow"; + }; + + dma_xgbe: dma_xgbe@0 { + reg = <0x2fa1000 0x100>, + <0x2fa1400 0x200>, + <0x2fa1800 0x200>, + <0x2fa1c00 0x200>, + <0x2fa2000 0x400>; + reg-names = "global", "txchan", "rxchan", + "txsched", "rxflow"; + }; + }; + +Navigator DMA client: +Required properties: + - ti,navigator-dmas: List of one or more DMA specifiers, each consisting of + - A phandle pointing to DMA instance node + - A DMA channel number as a phandle arg. + - ti,navigator-dma-names: Contains dma channel name for each DMA specifier in + the 'ti,navigator-dmas' property. + +Example: + + netcp: netcp@2090000 { + .. + ti,navigator-dmas = <&dma_gbe 22>, + <&dma_gbe 23>, + <&dma_gbe 8>; + ti,navigator-dma-names = "netrx0", "netrx1", "nettx"; + .. + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/adi,max98396.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/adi,max98396.yaml index b7e01809b..bdc10d420 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/adi,max98396.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/adi,max98396.yaml @@ -1,141 +1,141 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/adi,max98396.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Analog Devices MAX98396 Speaker Amplifier - -maintainers: - - Ryan Lee - -description: - The MAX98396 is a mono Class-DG speaker amplifier with I/V sense. - The device provides a PCM interface for audio data and a standard - I2C interface for control data communication. - The MAX98397 is a variant of MAX98396 with wide input supply range. - -properties: - compatible: - enum: - - adi,max98396 - - adi,max98397 - reg: - maxItems: 1 - description: I2C address of the device. - - avdd-supply: - description: A 1.8V supply that powers up the AVDD pin. - - dvdd-supply: - description: A 1.2V supply that powers up the DVDD pin. - - dvddio-supply: - description: A 1.2V or 1.8V supply that powers up the VDDIO pin. - - pvdd-supply: - description: A 3.0V to 20V supply that powers up the PVDD pin. - - vbat-supply: - description: A 3.3V to 5.5V supply that powers up the VBAT pin. - - adi,vmon-slot-no: - description: slot number of the voltage sense monitor - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 15 - default: 0 - - adi,imon-slot-no: - description: slot number of the current sense monitor - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 15 - default: 1 - - adi,spkfb-slot-no: - description: slot number of speaker DSP monitor - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 15 - default: 2 - - adi,bypass-slot-no: - description: - Selects the PCM data input channel that is routed to the speaker - audio processing bypass path. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 15 - default: 0 - - adi,interleave-mode: - description: - For cases where a single combined channel for the I/V sense data - is not sufficient, the device can also be configured to share - a single data output channel on alternating frames. - In this configuration, the current and voltage data will be frame - interleaved on a single output channel. - type: boolean - - adi,dmon-stuck-enable: - description: - Enables the "data monitor stuck" feature. Once the data monitor is - enabled, it actively monitors the selected input data (from DIN) to the - speaker amplifier. Once a data error is detected, the data monitor - automatically places the device into software shutdown. - type: boolean - - adi,dmon-stuck-threshold-bits: - description: - Sets the threshold for the "data monitor stuck" feature, in bits. - enum: [9, 11, 13, 15] - default: 15 - - adi,dmon-magnitude-enable: - description: - Enables the "data monitor magnitude" feature. Once the data monitor is - enabled, it actively monitors the selected input data (from DIN) to the - speaker amplifier. Once a data error is detected, the data monitor - automatically places the device into software shutdown. - type: boolean - - adi,dmon-magnitude-threshold-bits: - description: - Sets the threshold for the "data monitor magnitude" feature, in bits. - enum: [2, 3, 4, 5] - default: 5 - - adi,dmon-duration-ms: - description: - Sets the duration for the "data monitor" feature, in milliseconds. - enum: [64, 256, 1024, 4096] - default: 64 - - reset-gpios: - maxItems: 1 - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - max98396: amplifier@39 { - compatible = "adi,max98396"; - reg = <0x39>; - dvdd-supply = <®ulator_1v2>; - dvddio-supply = <®ulator_1v8>; - avdd-supply = <®ulator_1v8>; - pvdd-supply = <®ulator_pvdd>; - adi,vmon-slot-no = <0>; - adi,imon-slot-no = <1>; - reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/adi,max98396.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices MAX98396 Speaker Amplifier + +maintainers: + - Ryan Lee + +description: + The MAX98396 is a mono Class-DG speaker amplifier with I/V sense. + The device provides a PCM interface for audio data and a standard + I2C interface for control data communication. + The MAX98397 is a variant of MAX98396 with wide input supply range. + +properties: + compatible: + enum: + - adi,max98396 + - adi,max98397 + reg: + maxItems: 1 + description: I2C address of the device. + + avdd-supply: + description: A 1.8V supply that powers up the AVDD pin. + + dvdd-supply: + description: A 1.2V supply that powers up the DVDD pin. + + dvddio-supply: + description: A 1.2V or 1.8V supply that powers up the VDDIO pin. + + pvdd-supply: + description: A 3.0V to 20V supply that powers up the PVDD pin. + + vbat-supply: + description: A 3.3V to 5.5V supply that powers up the VBAT pin. + + adi,vmon-slot-no: + description: slot number of the voltage sense monitor + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 15 + default: 0 + + adi,imon-slot-no: + description: slot number of the current sense monitor + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 15 + default: 1 + + adi,spkfb-slot-no: + description: slot number of speaker DSP monitor + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 15 + default: 2 + + adi,bypass-slot-no: + description: + Selects the PCM data input channel that is routed to the speaker + audio processing bypass path. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 15 + default: 0 + + adi,interleave-mode: + description: + For cases where a single combined channel for the I/V sense data + is not sufficient, the device can also be configured to share + a single data output channel on alternating frames. + In this configuration, the current and voltage data will be frame + interleaved on a single output channel. + type: boolean + + adi,dmon-stuck-enable: + description: + Enables the "data monitor stuck" feature. Once the data monitor is + enabled, it actively monitors the selected input data (from DIN) to the + speaker amplifier. Once a data error is detected, the data monitor + automatically places the device into software shutdown. + type: boolean + + adi,dmon-stuck-threshold-bits: + description: + Sets the threshold for the "data monitor stuck" feature, in bits. + enum: [9, 11, 13, 15] + default: 15 + + adi,dmon-magnitude-enable: + description: + Enables the "data monitor magnitude" feature. Once the data monitor is + enabled, it actively monitors the selected input data (from DIN) to the + speaker amplifier. Once a data error is detected, the data monitor + automatically places the device into software shutdown. + type: boolean + + adi,dmon-magnitude-threshold-bits: + description: + Sets the threshold for the "data monitor magnitude" feature, in bits. + enum: [2, 3, 4, 5] + default: 5 + + adi,dmon-duration-ms: + description: + Sets the duration for the "data monitor" feature, in milliseconds. + enum: [64, 256, 1024, 4096] + default: 64 + + reset-gpios: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + max98396: amplifier@39 { + compatible = "adi,max98396"; + reg = <0x39>; + dvdd-supply = <®ulator_1v2>; + dvddio-supply = <®ulator_1v8>; + avdd-supply = <®ulator_1v8>; + pvdd-supply = <®ulator_pvdd>; + adi,vmon-slot-no = <0>; + adi,imon-slot-no = <1>; + reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml index 4e59e37b8..739114fb6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml @@ -1,147 +1,147 @@ -# SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/allwinner,sun4i-a10-i2s.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Allwinner A10 I2S Controller - -maintainers: - - Chen-Yu Tsai - - Maxime Ripard - -properties: - "#sound-dai-cells": - const: 0 - - compatible: - oneOf: - - const: allwinner,sun4i-a10-i2s - - const: allwinner,sun6i-a31-i2s - - const: allwinner,sun8i-a83t-i2s - - const: allwinner,sun8i-h3-i2s - - items: - - const: allwinner,sun8i-r40-i2s - - const: allwinner,sun8i-h3-i2s - - items: - - const: allwinner,sun8i-v3-i2s - - const: allwinner,sun8i-h3-i2s - - const: allwinner,sun50i-a64-codec-i2s - - items: - - const: allwinner,sun50i-a64-i2s - - const: allwinner,sun8i-h3-i2s - - const: allwinner,sun50i-h6-i2s - - const: allwinner,sun50i-r329-i2s - - items: - - const: allwinner,sun20i-d1-i2s - - const: allwinner,sun50i-r329-i2s - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - items: - - description: Bus Clock - - description: Module Clock - - clock-names: - items: - - const: apb - - const: mod - - # Even though it only applies to subschemas under the conditionals, - # not listing them here will trigger a warning because of the - # additionalsProperties set to false. - dmas: true - dma-names: true - resets: - maxItems: 1 - -allOf: - - $ref: dai-common.yaml# - - if: - properties: - compatible: - contains: - enum: - - allwinner,sun6i-a31-i2s - - allwinner,sun8i-a83t-i2s - - allwinner,sun8i-h3-i2s - - allwinner,sun50i-a64-codec-i2s - - allwinner,sun50i-h6-i2s - - allwinner,sun50i-r329-i2s - - then: - required: - - resets - - - if: - properties: - compatible: - contains: - enum: - - allwinner,sun8i-a83t-i2s - - allwinner,sun8i-h3-i2s - - then: - properties: - dmas: - minItems: 1 - items: - - description: RX DMA Channel - - description: TX DMA Channel - description: - Some controllers cannot receive but can only transmit - data. In such a case, the RX DMA channel is to be omitted. - - dma-names: - oneOf: - - items: - - const: rx - - const: tx - - const: tx - description: - Some controllers cannot receive but can only transmit - data. In such a case, the RX name is to be omitted. - - else: - properties: - dmas: - items: - - description: RX DMA Channel - - description: TX DMA Channel - - dma-names: - items: - - const: rx - - const: tx - -required: - - "#sound-dai-cells" - - compatible - - reg - - interrupts - - clocks - - clock-names - - dmas - - dma-names - -unevaluatedProperties: false - -examples: - - | - i2s0: i2s@1c22400 { - #sound-dai-cells = <0>; - compatible = "allwinner,sun4i-a10-i2s"; - reg = <0x01c22400 0x400>; - interrupts = <0 16 4>; - clocks = <&apb0_gates 3>, <&i2s0_clk>; - clock-names = "apb", "mod"; - dmas = <&dma 0 3>, <&dma 0 3>; - dma-names = "rx", "tx"; - }; - -... +# SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/allwinner,sun4i-a10-i2s.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner A10 I2S Controller + +maintainers: + - Chen-Yu Tsai + - Maxime Ripard + +properties: + "#sound-dai-cells": + const: 0 + + compatible: + oneOf: + - const: allwinner,sun4i-a10-i2s + - const: allwinner,sun6i-a31-i2s + - const: allwinner,sun8i-a83t-i2s + - const: allwinner,sun8i-h3-i2s + - items: + - const: allwinner,sun8i-r40-i2s + - const: allwinner,sun8i-h3-i2s + - items: + - const: allwinner,sun8i-v3-i2s + - const: allwinner,sun8i-h3-i2s + - const: allwinner,sun50i-a64-codec-i2s + - items: + - const: allwinner,sun50i-a64-i2s + - const: allwinner,sun8i-h3-i2s + - const: allwinner,sun50i-h6-i2s + - const: allwinner,sun50i-r329-i2s + - items: + - const: allwinner,sun20i-d1-i2s + - const: allwinner,sun50i-r329-i2s + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Bus Clock + - description: Module Clock + + clock-names: + items: + - const: apb + - const: mod + + # Even though it only applies to subschemas under the conditionals, + # not listing them here will trigger a warning because of the + # additionalsProperties set to false. + dmas: true + dma-names: true + resets: + maxItems: 1 + +allOf: + - $ref: dai-common.yaml# + - if: + properties: + compatible: + contains: + enum: + - allwinner,sun6i-a31-i2s + - allwinner,sun8i-a83t-i2s + - allwinner,sun8i-h3-i2s + - allwinner,sun50i-a64-codec-i2s + - allwinner,sun50i-h6-i2s + - allwinner,sun50i-r329-i2s + + then: + required: + - resets + + - if: + properties: + compatible: + contains: + enum: + - allwinner,sun8i-a83t-i2s + - allwinner,sun8i-h3-i2s + + then: + properties: + dmas: + minItems: 1 + items: + - description: RX DMA Channel + - description: TX DMA Channel + description: + Some controllers cannot receive but can only transmit + data. In such a case, the RX DMA channel is to be omitted. + + dma-names: + oneOf: + - items: + - const: rx + - const: tx + - const: tx + description: + Some controllers cannot receive but can only transmit + data. In such a case, the RX name is to be omitted. + + else: + properties: + dmas: + items: + - description: RX DMA Channel + - description: TX DMA Channel + + dma-names: + items: + - const: rx + - const: tx + +required: + - "#sound-dai-cells" + - compatible + - reg + - interrupts + - clocks + - clock-names + - dmas + - dma-names + +unevaluatedProperties: false + +examples: + - | + i2s0: i2s@1c22400 { + #sound-dai-cells = <0>; + compatible = "allwinner,sun4i-a10-i2s"; + reg = <0x01c22400 0x400>; + interrupts = <0 16 4>; + clocks = <&apb0_gates 3>, <&i2s0_clk>; + clock-names = "apb", "mod"; + dmas = <&dma 0 3>, <&dma 0 3>; + dma-names = "rx", "tx"; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/audio-graph-port.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/audio-graph-port.yaml index b1d8f5b3b..d1cbfc5ed 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/audio-graph-port.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/audio-graph-port.yaml @@ -1,131 +1,131 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/audio-graph-port.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Audio Graph Card 'port' - -maintainers: - - Kuninori Morimoto - -select: false - -definitions: - port-base: - allOf: - - $ref: /schemas/graph.yaml#/$defs/port-base - - $ref: /schemas/sound/dai-params.yaml# - properties: - mclk-fs: - $ref: simple-card.yaml#/definitions/mclk-fs - playback-only: - description: port connection used only for playback - $ref: /schemas/types.yaml#/definitions/flag - capture-only: - description: port connection used only for capture - $ref: /schemas/types.yaml#/definitions/flag - link-trigger-order: - description: trigger order for both start/stop - $ref: /schemas/types.yaml#/definitions/uint32-array - link-trigger-order-start: - description: trigger order for start - $ref: /schemas/types.yaml#/definitions/uint32-array - link-trigger-order-stop: - description: trigger order for stop - $ref: /schemas/types.yaml#/definitions/uint32-array - - endpoint-base: - allOf: - - $ref: /schemas/graph.yaml#/$defs/endpoint-base - - $ref: /schemas/sound/dai-params.yaml# - properties: - mclk-fs: - $ref: simple-card.yaml#/definitions/mclk-fs - frame-inversion: - description: dai-link uses frame clock inversion - $ref: /schemas/types.yaml#/definitions/flag - bitclock-inversion: - description: dai-link uses bit clock inversion - $ref: /schemas/types.yaml#/definitions/flag - frame-master: - description: Indicates dai-link frame master. - oneOf: - - $ref: /schemas/types.yaml#/definitions/flag - - $ref: /schemas/types.yaml#/definitions/phandle - bitclock-master: - description: Indicates dai-link bit clock master - oneOf: - - $ref: /schemas/types.yaml#/definitions/flag - - $ref: /schemas/types.yaml#/definitions/phandle - clocks: - description: Indicates system clock - maxItems: 1 - system-clock-frequency: - $ref: simple-card.yaml#/definitions/system-clock-frequency - system-clock-direction-out: - $ref: simple-card.yaml#/definitions/system-clock-direction-out - system-clock-fixed: - $ref: simple-card.yaml#/definitions/system-clock-fixed - - dai-format: - description: audio format. - items: - enum: - - i2s - - right_j - - left_j - - dsp_a - - dsp_b - - ac97 - - pdm - - msb - - lsb - - dai-tdm-slot-num: - description: Number of slots in use. - $ref: /schemas/types.yaml#/definitions/uint32 - dai-tdm-slot-width: - description: Width in bits for each slot. - $ref: /schemas/types.yaml#/definitions/uint32 - dai-tdm-slot-width-map: - description: Mapping of sample widths to slot widths. For hardware - that cannot support a fixed slot width or a slot width always - equal to sample width. A matrix of one or more 3-tuples. - $ref: /schemas/types.yaml#/definitions/uint32-matrix - items: - items: - - - description: Sample width in bits - minimum: 8 - maximum: 64 - - - description: Slot width in bits - minimum: 8 - maximum: 256 - - - description: Slot count - minimum: 1 - maximum: 64 - - ports: - $ref: "#/definitions/port-base" - unevaluatedProperties: false - patternProperties: - "^port(@[0-9a-f]+)?$": - $ref: "#/definitions/port-base" - unevaluatedProperties: false - patternProperties: - "^endpoint(@[0-9a-f]+)?": - $ref: "#/definitions/endpoint-base" - unevaluatedProperties: false - -allOf: - - $ref: "#/definitions/port-base" - -patternProperties: - "^endpoint(@[0-9a-f]+)?": - $ref: "#/definitions/endpoint-base" - unevaluatedProperties: false - -additionalProperties: true +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/audio-graph-port.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Audio Graph Card 'port' + +maintainers: + - Kuninori Morimoto + +select: false + +definitions: + port-base: + allOf: + - $ref: /schemas/graph.yaml#/$defs/port-base + - $ref: /schemas/sound/dai-params.yaml# + properties: + mclk-fs: + $ref: simple-card.yaml#/definitions/mclk-fs + playback-only: + description: port connection used only for playback + $ref: /schemas/types.yaml#/definitions/flag + capture-only: + description: port connection used only for capture + $ref: /schemas/types.yaml#/definitions/flag + link-trigger-order: + description: trigger order for both start/stop + $ref: /schemas/types.yaml#/definitions/uint32-array + link-trigger-order-start: + description: trigger order for start + $ref: /schemas/types.yaml#/definitions/uint32-array + link-trigger-order-stop: + description: trigger order for stop + $ref: /schemas/types.yaml#/definitions/uint32-array + + endpoint-base: + allOf: + - $ref: /schemas/graph.yaml#/$defs/endpoint-base + - $ref: /schemas/sound/dai-params.yaml# + properties: + mclk-fs: + $ref: simple-card.yaml#/definitions/mclk-fs + frame-inversion: + description: dai-link uses frame clock inversion + $ref: /schemas/types.yaml#/definitions/flag + bitclock-inversion: + description: dai-link uses bit clock inversion + $ref: /schemas/types.yaml#/definitions/flag + frame-master: + description: Indicates dai-link frame master. + oneOf: + - $ref: /schemas/types.yaml#/definitions/flag + - $ref: /schemas/types.yaml#/definitions/phandle + bitclock-master: + description: Indicates dai-link bit clock master + oneOf: + - $ref: /schemas/types.yaml#/definitions/flag + - $ref: /schemas/types.yaml#/definitions/phandle + clocks: + description: Indicates system clock + maxItems: 1 + system-clock-frequency: + $ref: simple-card.yaml#/definitions/system-clock-frequency + system-clock-direction-out: + $ref: simple-card.yaml#/definitions/system-clock-direction-out + system-clock-fixed: + $ref: simple-card.yaml#/definitions/system-clock-fixed + + dai-format: + description: audio format. + items: + enum: + - i2s + - right_j + - left_j + - dsp_a + - dsp_b + - ac97 + - pdm + - msb + - lsb + + dai-tdm-slot-num: + description: Number of slots in use. + $ref: /schemas/types.yaml#/definitions/uint32 + dai-tdm-slot-width: + description: Width in bits for each slot. + $ref: /schemas/types.yaml#/definitions/uint32 + dai-tdm-slot-width-map: + description: Mapping of sample widths to slot widths. For hardware + that cannot support a fixed slot width or a slot width always + equal to sample width. A matrix of one or more 3-tuples. + $ref: /schemas/types.yaml#/definitions/uint32-matrix + items: + items: + - + description: Sample width in bits + minimum: 8 + maximum: 64 + - + description: Slot width in bits + minimum: 8 + maximum: 256 + - + description: Slot count + minimum: 1 + maximum: 64 + + ports: + $ref: "#/definitions/port-base" + unevaluatedProperties: false + patternProperties: + "^port(@[0-9a-f]+)?$": + $ref: "#/definitions/port-base" + unevaluatedProperties: false + patternProperties: + "^endpoint(@[0-9a-f]+)?": + $ref: "#/definitions/endpoint-base" + unevaluatedProperties: false + +allOf: + - $ref: "#/definitions/port-base" + +patternProperties: + "^endpoint(@[0-9a-f]+)?": + $ref: "#/definitions/endpoint-base" + unevaluatedProperties: false + +additionalProperties: true diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/cirrus,cs35l45.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/cirrus,cs35l45.yaml index 804ed863b..70f6c62ae 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/cirrus,cs35l45.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/cirrus,cs35l45.yaml @@ -1,159 +1,159 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/cirrus,cs35l45.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Cirrus Logic CS35L45 Speaker Amplifier - -maintainers: - - Ricardo Rivera-Matos - - Richard Fitzgerald - -description: | - CS35L45 is a Boosted Mono Class D Amplifier with DSP - Speaker Protection and Adaptive Battery Management. - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - enum: - - cirrus,cs35l45 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - '#sound-dai-cells': - const: 1 - - reset-gpios: - maxItems: 1 - - vdd-a-supply: - description: voltage regulator phandle for the VDD_A supply - - vdd-batt-supply: - description: voltage regulator phandle for the VDD_BATT supply - - spi-max-frequency: - maximum: 5000000 - - cirrus,asp-sdout-hiz-ctrl: - description: - Audio serial port SDOUT Hi-Z control. Sets the Hi-Z - configuration for SDOUT pin of amplifier. Logical OR of - CS35L45_ASP_TX_HIZ_xxx values. - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 3 - default: 2 - -patternProperties: - "^cirrus,gpio-ctrl[1-3]$": - description: - GPIO pins configuration. - type: object - additionalProperties: false - properties: - gpio-dir: - description: - GPIO pin direction. Valid only when 'gpio-ctrl' is 1 - 0 = Output - 1 = Input - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 1 - default: 1 - gpio-lvl: - description: - GPIO level. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0 - 0 = Low - 1 = High - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 1 - default: 0 - gpio-op-cfg: - description: - GPIO level. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0 - 0 = CMOS - 1 = Open Drain - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 1 - default: 0 - gpio-pol: - description: - GPIO output polarity select. Valid only when 'gpio-ctrl' is 1 - and 'gpio-dir' is 0 - 0 = Non-inverted, Active High - 1 = Inverted, Active Low - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 1 - default: 0 - gpio-ctrl: - description: - Defines the function of the GPIO pin. - GPIO1 - 0 = High impedance input - 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir' - 2 = Pin acts as MDSYNC, direction controlled by MDSYNC - 3-7 = Reserved - GPIO2 - 0 = High impedance input - 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir' - 2 = Pin acts as open drain INT - 3 = Reserved - 4 = Pin acts as push-pull output INT. Active low. - 5 = Pin acts as push-pull output INT. Active high. - 6,7 = Reserved - GPIO3 - 0 = High impedance input - 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir' - 2-7 = Reserved - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 7 - default: 0 -required: - - compatible - - reg - - "#sound-dai-cells" - -unevaluatedProperties: false - -examples: - - | - #include - spi { - #address-cells = <1>; - #size-cells = <0>; - - cs35l45: cs35l45@2 { - #sound-dai-cells = <1>; - compatible = "cirrus,cs35l45"; - reg = <2>; - spi-max-frequency = <5000000>; - vdd-a-supply = <&dummy_vreg>; - vdd-batt-supply = <&dummy_vreg>; - reset-gpios = <&gpio 110 0>; - cirrus,asp-sdout-hiz-ctrl = <(CS35L45_ASP_TX_HIZ_UNUSED | - CS35L45_ASP_TX_HIZ_DISABLED)>; - cirrus,gpio-ctrl1 { - gpio-ctrl = <0x2>; - }; - cirrus,gpio-ctrl2 { - gpio-ctrl = <0x2>; - }; - cirrus,gpio-ctrl3 { - gpio-ctrl = <0x1>; - gpio-dir = <0x1>; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/cirrus,cs35l45.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus Logic CS35L45 Speaker Amplifier + +maintainers: + - Ricardo Rivera-Matos + - Richard Fitzgerald + +description: | + CS35L45 is a Boosted Mono Class D Amplifier with DSP + Speaker Protection and Adaptive Battery Management. + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - cirrus,cs35l45 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + '#sound-dai-cells': + const: 1 + + reset-gpios: + maxItems: 1 + + vdd-a-supply: + description: voltage regulator phandle for the VDD_A supply + + vdd-batt-supply: + description: voltage regulator phandle for the VDD_BATT supply + + spi-max-frequency: + maximum: 5000000 + + cirrus,asp-sdout-hiz-ctrl: + description: + Audio serial port SDOUT Hi-Z control. Sets the Hi-Z + configuration for SDOUT pin of amplifier. Logical OR of + CS35L45_ASP_TX_HIZ_xxx values. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 3 + default: 2 + +patternProperties: + "^cirrus,gpio-ctrl[1-3]$": + description: + GPIO pins configuration. + type: object + additionalProperties: false + properties: + gpio-dir: + description: + GPIO pin direction. Valid only when 'gpio-ctrl' is 1 + 0 = Output + 1 = Input + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 1 + default: 1 + gpio-lvl: + description: + GPIO level. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0 + 0 = Low + 1 = High + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 1 + default: 0 + gpio-op-cfg: + description: + GPIO level. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0 + 0 = CMOS + 1 = Open Drain + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 1 + default: 0 + gpio-pol: + description: + GPIO output polarity select. Valid only when 'gpio-ctrl' is 1 + and 'gpio-dir' is 0 + 0 = Non-inverted, Active High + 1 = Inverted, Active Low + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 1 + default: 0 + gpio-ctrl: + description: + Defines the function of the GPIO pin. + GPIO1 + 0 = High impedance input + 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir' + 2 = Pin acts as MDSYNC, direction controlled by MDSYNC + 3-7 = Reserved + GPIO2 + 0 = High impedance input + 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir' + 2 = Pin acts as open drain INT + 3 = Reserved + 4 = Pin acts as push-pull output INT. Active low. + 5 = Pin acts as push-pull output INT. Active high. + 6,7 = Reserved + GPIO3 + 0 = High impedance input + 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir' + 2-7 = Reserved + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 7 + default: 0 +required: + - compatible + - reg + - "#sound-dai-cells" + +unevaluatedProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + cs35l45: cs35l45@2 { + #sound-dai-cells = <1>; + compatible = "cirrus,cs35l45"; + reg = <2>; + spi-max-frequency = <5000000>; + vdd-a-supply = <&dummy_vreg>; + vdd-batt-supply = <&dummy_vreg>; + reset-gpios = <&gpio 110 0>; + cirrus,asp-sdout-hiz-ctrl = <(CS35L45_ASP_TX_HIZ_UNUSED | + CS35L45_ASP_TX_HIZ_DISABLED)>; + cirrus,gpio-ctrl1 { + gpio-ctrl = <0x2>; + }; + cirrus,gpio-ctrl2 { + gpio-ctrl = <0x2>; + }; + cirrus,gpio-ctrl3 { + gpio-ctrl = <0x1>; + gpio-dir = <0x1>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/cirrus,madera.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/cirrus,madera.yaml index 18619c6dc..014d4eaa8 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/cirrus,madera.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/cirrus,madera.yaml @@ -1,118 +1,118 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/cirrus,madera.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Cirrus Logic Madera class audio CODECs - -maintainers: - - patches@opensource.cirrus.com - -description: | - This describes audio configuration bindings for these codecs. - - See also the core bindings for the parent MFD driver: - - Documentation/devicetree/bindings/mfd/cirrus,madera.yaml - - and defines for values used in these bindings: - - include/dt-bindings/sound/madera.h - - The properties are all contained in the parent MFD node. - -allOf: - - $ref: dai-common.yaml# - -properties: - '#sound-dai-cells': - description: - The first cell indicating the audio interface. - const: 1 - - cirrus,inmode: - description: - A list of input mode settings for each input. A maximum - of 24 cells, with four cells per input in the order INnAL, - INnAR INnBL INnBR. For non-muxed inputs the first two cells - for that input set the mode for the left and right channel - and the second two cells must be 0. For muxed inputs the - first two cells for that input set the mode of the left and - right A inputs and the second two cells set the mode of the - left and right B inputs. Valid mode values are one of the - MADERA_INMODE_xxx. If the array is shorter than the number - of inputs the unspecified inputs default to MADERA_INMODE_DIFF. - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 24 - items: - minimum: 0 - maximum: 1 - default: 0 - - cirrus,out-mono: - description: - Mono bit for each output, maximum of six cells if the array - is shorter outputs will be set to stereo. - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 6 - items: - minimum: 0 - maximum: 1 - default: 0 - - cirrus,dmic-ref: - description: | - Indicates how the MICBIAS pins have been externally connected - to DMICs on each input, one cell per input. - - - - A value of 0 indicates MICVDD and is the default, - other values depend on the codec: For CS47L35 one of the - CS47L35_DMIC_REF_xxx values For all other codecs one of - the MADERA_DMIC_REF_xxx values Also see the datasheet for a - description of the INn_DMIC_SUP field. - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 6 - items: - minimum: 0 - maximum: 3 - default: 0 - - cirrus,max-channels-clocked: - description: - Maximum number of channels that I2S clocks will be generated - for. Useful when clock master for systems where the I2S bus - has multiple data lines. One cell for each AIF, use a value - of zero for AIFs that should be handled normally. - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 4 - items: - default: 0 - - cirrus,pdm-fmt: - description: - PDM speaker data format, must contain 2 cells (OUT5 and - OUT6). See the PDM_SPKn_FMT field in the datasheet for a - description of this value. The second cell is ignored for - codecs that do not have OUT6. - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 2 - maxItems: 2 - - cirrus,pdm-mute: - description: | - PDM mute format, must contain 2 cells (OUT5 and OUT6). See the - PDM_SPKn_CTRL_1 register in the datasheet for a description - of this value. The second cell is ignored for codecs that - do not have OUT6. - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 2 - maxItems: 2 - -additionalProperties: true +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/cirrus,madera.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus Logic Madera class audio CODECs + +maintainers: + - patches@opensource.cirrus.com + +description: | + This describes audio configuration bindings for these codecs. + + See also the core bindings for the parent MFD driver: + + Documentation/devicetree/bindings/mfd/cirrus,madera.yaml + + and defines for values used in these bindings: + + include/dt-bindings/sound/madera.h + + The properties are all contained in the parent MFD node. + +allOf: + - $ref: dai-common.yaml# + +properties: + '#sound-dai-cells': + description: + The first cell indicating the audio interface. + const: 1 + + cirrus,inmode: + description: + A list of input mode settings for each input. A maximum + of 24 cells, with four cells per input in the order INnAL, + INnAR INnBL INnBR. For non-muxed inputs the first two cells + for that input set the mode for the left and right channel + and the second two cells must be 0. For muxed inputs the + first two cells for that input set the mode of the left and + right A inputs and the second two cells set the mode of the + left and right B inputs. Valid mode values are one of the + MADERA_INMODE_xxx. If the array is shorter than the number + of inputs the unspecified inputs default to MADERA_INMODE_DIFF. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 24 + items: + minimum: 0 + maximum: 1 + default: 0 + + cirrus,out-mono: + description: + Mono bit for each output, maximum of six cells if the array + is shorter outputs will be set to stereo. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 6 + items: + minimum: 0 + maximum: 1 + default: 0 + + cirrus,dmic-ref: + description: | + Indicates how the MICBIAS pins have been externally connected + to DMICs on each input, one cell per input. + + + + A value of 0 indicates MICVDD and is the default, + other values depend on the codec: For CS47L35 one of the + CS47L35_DMIC_REF_xxx values For all other codecs one of + the MADERA_DMIC_REF_xxx values Also see the datasheet for a + description of the INn_DMIC_SUP field. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 6 + items: + minimum: 0 + maximum: 3 + default: 0 + + cirrus,max-channels-clocked: + description: + Maximum number of channels that I2S clocks will be generated + for. Useful when clock master for systems where the I2S bus + has multiple data lines. One cell for each AIF, use a value + of zero for AIFs that should be handled normally. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 4 + items: + default: 0 + + cirrus,pdm-fmt: + description: + PDM speaker data format, must contain 2 cells (OUT5 and + OUT6). See the PDM_SPKn_FMT field in the datasheet for a + description of this value. The second cell is ignored for + codecs that do not have OUT6. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 2 + maxItems: 2 + + cirrus,pdm-mute: + description: | + PDM mute format, must contain 2 cells (OUT5 and OUT6). See the + PDM_SPKn_CTRL_1 register in the datasheet for a description + of this value. The second cell is ignored for codecs that + do not have OUT6. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 2 + maxItems: 2 + +additionalProperties: true diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/da7218.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/da7218.txt index 3130deac4..2cf30899b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/da7218.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/da7218.txt @@ -1,102 +1,102 @@ -Dialog Semiconductor DA7218 Audio Codec bindings - -DA7218 is an audio codec with HP detect feature. - -====== - -Required properties: -- compatible : Should be "dlg,da7217" or "dlg,da7218" -- reg: Specifies the I2C slave address - -- VDD-supply: VDD power supply for the device -- VDDMIC-supply: VDDMIC power supply for the device -- VDDIO-supply: VDDIO power supply for the device - (See Documentation/devicetree/bindings/regulator/regulator.txt for further - information relating to regulators) - -Optional properties: -- interrupts: IRQ line info for DA7218 chip. - (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt for - further information relating to interrupt properties) -- interrupt-names : Name associated with interrupt line. Should be "wakeup" if - interrupt is to be used to wake system, otherwise "irq" should be used. -- wakeup-source: Flag to indicate this device can wake system (suspend/resume). - -- clocks : phandle and clock specifier for codec MCLK. -- clock-names : Clock name string for 'clocks' attribute, should be "mclk". - -- dlg,micbias1-lvl-millivolt : Voltage (mV) for Mic Bias 1 - [<1200>, <1600>, <1800>, <2000>, <2200>, <2400>, <2600>, <2800>, <3000>] -- dlg,micbias2-lvl-millivolt : Voltage (mV) for Mic Bias 2 - [<1200>, <1600>, <1800>, <2000>, <2200>, <2400>, <2600>, <2800>, <3000>] -- dlg,mic1-amp-in-sel : Mic1 input source type - ["diff", "se_p", "se_n"] -- dlg,mic2-amp-in-sel : Mic2 input source type - ["diff", "se_p", "se_n"] -- dlg,dmic1-data-sel : DMIC1 channel select based on clock edge. - ["lrise_rfall", "lfall_rrise"] -- dlg,dmic1-samplephase : When to sample audio from DMIC1. - ["on_clkedge", "between_clkedge"] -- dlg,dmic1-clkrate-hz : DMic1 clock frequency (Hz). - [<1500000>, <3000000>] -- dlg,dmic2-data-sel : DMic2 channel select based on clock edge. - ["lrise_rfall", "lfall_rrise"] -- dlg,dmic2-samplephase : When to sample audio from DMic2. - ["on_clkedge", "between_clkedge"] -- dlg,dmic2-clkrate-hz : DMic2 clock frequency (Hz). - [<1500000>, <3000000>] -- dlg,hp-diff-single-supply : Boolean flag, use single supply for HP - (DA7217 only) - -====== - -Optional Child node - 'da7218_hpldet' (DA7218 only): - -Optional properties: -- dlg,jack-rate-us : Time between jack detect measurements (us) - [<5>, <10>, <20>, <40>, <80>, <160>, <320>, <640>] -- dlg,jack-debounce : Number of debounce measurements taken for jack detect - [<0>, <2>, <3>, <4>] -- dlg,jack-threshold-pct : Threshold level for jack detection (% of VDD) - [<84>, <88>, <92>, <96>] -- dlg,comp-inv : Boolean flag, invert comparator output -- dlg,hyst : Boolean flag, enable hysteresis -- dlg,discharge : Boolean flag, auto discharge of Mic Bias on jack removal - -====== - -Example: - - codec: da7218@1a { - compatible = "dlg,da7218"; - reg = <0x1a>; - interrupt-parent = <&gpio6>; - interrupts = <11 IRQ_TYPE_LEVEL_LOW>; - wakeup-source; - - VDD-supply = <®_audio>; - VDDMIC-supply = <®_audio>; - VDDIO-supply = <®_audio>; - - clocks = <&clks 201>; - clock-names = "mclk"; - - dlg,micbias1-lvl-millivolt = <2600>; - dlg,micbias2-lvl-millivolt = <2600>; - dlg,mic1-amp-in-sel = "diff"; - dlg,mic2-amp-in-sel = "diff"; - - dlg,dmic1-data-sel = "lrise_rfall"; - dlg,dmic1-samplephase = "on_clkedge"; - dlg,dmic1-clkrate-hz = <3000000>; - dlg,dmic2-data-sel = "lrise_rfall"; - dlg,dmic2-samplephase = "on_clkedge"; - dlg,dmic2-clkrate-hz = <3000000>; - - da7218_hpldet { - dlg,jack-rate-us = <40>; - dlg,jack-debounce = <2>; - dlg,jack-threshold-pct = <84>; - dlg,hyst; - }; - }; +Dialog Semiconductor DA7218 Audio Codec bindings + +DA7218 is an audio codec with HP detect feature. + +====== + +Required properties: +- compatible : Should be "dlg,da7217" or "dlg,da7218" +- reg: Specifies the I2C slave address + +- VDD-supply: VDD power supply for the device +- VDDMIC-supply: VDDMIC power supply for the device +- VDDIO-supply: VDDIO power supply for the device + (See Documentation/devicetree/bindings/regulator/regulator.txt for further + information relating to regulators) + +Optional properties: +- interrupts: IRQ line info for DA7218 chip. + (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt for + further information relating to interrupt properties) +- interrupt-names : Name associated with interrupt line. Should be "wakeup" if + interrupt is to be used to wake system, otherwise "irq" should be used. +- wakeup-source: Flag to indicate this device can wake system (suspend/resume). + +- clocks : phandle and clock specifier for codec MCLK. +- clock-names : Clock name string for 'clocks' attribute, should be "mclk". + +- dlg,micbias1-lvl-millivolt : Voltage (mV) for Mic Bias 1 + [<1200>, <1600>, <1800>, <2000>, <2200>, <2400>, <2600>, <2800>, <3000>] +- dlg,micbias2-lvl-millivolt : Voltage (mV) for Mic Bias 2 + [<1200>, <1600>, <1800>, <2000>, <2200>, <2400>, <2600>, <2800>, <3000>] +- dlg,mic1-amp-in-sel : Mic1 input source type + ["diff", "se_p", "se_n"] +- dlg,mic2-amp-in-sel : Mic2 input source type + ["diff", "se_p", "se_n"] +- dlg,dmic1-data-sel : DMIC1 channel select based on clock edge. + ["lrise_rfall", "lfall_rrise"] +- dlg,dmic1-samplephase : When to sample audio from DMIC1. + ["on_clkedge", "between_clkedge"] +- dlg,dmic1-clkrate-hz : DMic1 clock frequency (Hz). + [<1500000>, <3000000>] +- dlg,dmic2-data-sel : DMic2 channel select based on clock edge. + ["lrise_rfall", "lfall_rrise"] +- dlg,dmic2-samplephase : When to sample audio from DMic2. + ["on_clkedge", "between_clkedge"] +- dlg,dmic2-clkrate-hz : DMic2 clock frequency (Hz). + [<1500000>, <3000000>] +- dlg,hp-diff-single-supply : Boolean flag, use single supply for HP + (DA7217 only) + +====== + +Optional Child node - 'da7218_hpldet' (DA7218 only): + +Optional properties: +- dlg,jack-rate-us : Time between jack detect measurements (us) + [<5>, <10>, <20>, <40>, <80>, <160>, <320>, <640>] +- dlg,jack-debounce : Number of debounce measurements taken for jack detect + [<0>, <2>, <3>, <4>] +- dlg,jack-threshold-pct : Threshold level for jack detection (% of VDD) + [<84>, <88>, <92>, <96>] +- dlg,comp-inv : Boolean flag, invert comparator output +- dlg,hyst : Boolean flag, enable hysteresis +- dlg,discharge : Boolean flag, auto discharge of Mic Bias on jack removal + +====== + +Example: + + codec: da7218@1a { + compatible = "dlg,da7218"; + reg = <0x1a>; + interrupt-parent = <&gpio6>; + interrupts = <11 IRQ_TYPE_LEVEL_LOW>; + wakeup-source; + + VDD-supply = <®_audio>; + VDDMIC-supply = <®_audio>; + VDDIO-supply = <®_audio>; + + clocks = <&clks 201>; + clock-names = "mclk"; + + dlg,micbias1-lvl-millivolt = <2600>; + dlg,micbias2-lvl-millivolt = <2600>; + dlg,mic1-amp-in-sel = "diff"; + dlg,mic2-amp-in-sel = "diff"; + + dlg,dmic1-data-sel = "lrise_rfall"; + dlg,dmic1-samplephase = "on_clkedge"; + dlg,dmic1-clkrate-hz = <3000000>; + dlg,dmic2-data-sel = "lrise_rfall"; + dlg,dmic2-samplephase = "on_clkedge"; + dlg,dmic2-clkrate-hz = <3000000>; + + da7218_hpldet { + dlg,jack-rate-us = <40>; + dlg,jack-debounce = <2>; + dlg,jack-threshold-pct = <84>; + dlg,hyst; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.yaml index 85654531d..beef193aa 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.yaml @@ -1,202 +1,202 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/davinci-mcasp-audio.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: McASP Controller for TI SoCs - -maintainers: - - Jayesh Choudhary - -properties: - compatible: - enum: - - ti,dm646x-mcasp-audio - - ti,da830-mcasp-audio - - ti,am33xx-mcasp-audio - - ti,dra7-mcasp-audio - - ti,omap4-mcasp-audio - - reg: - minItems: 1 - items: - - description: CFG registers - - description: data registers - - reg-names: - minItems: 1 - items: - - const: mpu - - const: dat - - op-mode: - $ref: /schemas/types.yaml#/definitions/uint32 - description: 0 - I2S or 1 - DIT operation mode - enum: - - 0 - - 1 - - tdm-slots: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - number of channels over one serializer - the property is ignored in DIT mode - minimum: 2 - maximum: 32 - - serial-dir: - description: - A list of serializer configuration - Entry is indication for serializer pin direction - 0 - Inactive, 1 - TX, 2 - RX - All AXR pins should be present in the array even if inactive - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 25 - items: - minimum: 0 - maximum: 2 - - dmas: - minItems: 1 - items: - - description: transmission DMA channel - - description: reception DMA channel - - dma-names: - minItems: 1 - items: - - const: tx - - const: rx - - ti,hwmods: - $ref: /schemas/types.yaml#/definitions/string - description: Name of hwmod associated with McASP - maxItems: 1 - deprecated: true - - tx-num-evt: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - configures WFIFO threshold - 0 disables the FIFO use - if property is missing, then also FIFO use is disabled - - rx-num-evt: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - configures RFIFO threshold - 0 disables the FIFO use - if property is missing, then also FIFO use is disabled - - dismod: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - specify the drive on TX pin during inactive time slots - 0 - 3-state, 2 - logic low, 3 - logic high - enum: - - 0 - - 2 - - 3 - default: 2 - - interrupts: - minItems: 1 - maxItems: 2 - - interrupt-names: - oneOf: - - description: TX interrupt - const: tx - - description: RX interrupt - const: rx - - description: TX and RX interrupts - items: - - const: tx - - const: rx - - description: Common/combined interrupt - const: common - - fck_parent: - $ref: /schemas/types.yaml#/definitions/string - description: parent clock name for McASP fck - maxItems: 1 - - auxclk-fs-ratio: - $ref: /schemas/types.yaml#/definitions/uint32 - description: ratio of AUCLK and FS rate if applicable - - gpio-controller: true - - "#gpio-cells": - const: 2 - - clocks: - minItems: 1 - items: - - description: functional clock - - description: module specific optional ahclkx clock - - description: module specific optional ahclkr clock - - clock-names: - minItems: 1 - items: - - const: fck - - const: ahclkx - - const: ahclkr - - power-domains: - description: phandle to the corresponding power-domain - maxItems: 1 - - "#sound-dai-cells": - const: 0 - - port: - description: connection for when McASP is used via graph card - type: object - -required: - - compatible - - reg - - reg-names - - dmas - - dma-names - - interrupts - - interrupt-names - -allOf: - - $ref: dai-common.yaml# - - if: - properties: - opmode: - enum: - - 0 - - then: - required: - - tdm-slots - -unevaluatedProperties: false - -examples: - - | - mcasp0: mcasp0@1d00000 { - compatible = "ti,da830-mcasp-audio"; - reg = <0x100000 0x3000>; - reg-names = "mpu"; - interrupts = <82>, <83>; - interrupt-names = "tx", "rx"; - op-mode = <0>; /* MCASP_IIS_MODE */ - tdm-slots = <2>; - dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>; - dma-names = "tx", "rx"; - serial-dir = < - 0 0 0 0 /* 0: INACTIVE, 1: TX, 2: RX */ - 0 0 0 0 - 0 0 0 1 - 2 0 0 0 >; - tx-num-evt = <1>; - rx-num-evt = <1>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/davinci-mcasp-audio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: McASP Controller for TI SoCs + +maintainers: + - Jayesh Choudhary + +properties: + compatible: + enum: + - ti,dm646x-mcasp-audio + - ti,da830-mcasp-audio + - ti,am33xx-mcasp-audio + - ti,dra7-mcasp-audio + - ti,omap4-mcasp-audio + + reg: + minItems: 1 + items: + - description: CFG registers + - description: data registers + + reg-names: + minItems: 1 + items: + - const: mpu + - const: dat + + op-mode: + $ref: /schemas/types.yaml#/definitions/uint32 + description: 0 - I2S or 1 - DIT operation mode + enum: + - 0 + - 1 + + tdm-slots: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + number of channels over one serializer + the property is ignored in DIT mode + minimum: 2 + maximum: 32 + + serial-dir: + description: + A list of serializer configuration + Entry is indication for serializer pin direction + 0 - Inactive, 1 - TX, 2 - RX + All AXR pins should be present in the array even if inactive + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 25 + items: + minimum: 0 + maximum: 2 + + dmas: + minItems: 1 + items: + - description: transmission DMA channel + - description: reception DMA channel + + dma-names: + minItems: 1 + items: + - const: tx + - const: rx + + ti,hwmods: + $ref: /schemas/types.yaml#/definitions/string + description: Name of hwmod associated with McASP + maxItems: 1 + deprecated: true + + tx-num-evt: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + configures WFIFO threshold + 0 disables the FIFO use + if property is missing, then also FIFO use is disabled + + rx-num-evt: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + configures RFIFO threshold + 0 disables the FIFO use + if property is missing, then also FIFO use is disabled + + dismod: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + specify the drive on TX pin during inactive time slots + 0 - 3-state, 2 - logic low, 3 - logic high + enum: + - 0 + - 2 + - 3 + default: 2 + + interrupts: + minItems: 1 + maxItems: 2 + + interrupt-names: + oneOf: + - description: TX interrupt + const: tx + - description: RX interrupt + const: rx + - description: TX and RX interrupts + items: + - const: tx + - const: rx + - description: Common/combined interrupt + const: common + + fck_parent: + $ref: /schemas/types.yaml#/definitions/string + description: parent clock name for McASP fck + maxItems: 1 + + auxclk-fs-ratio: + $ref: /schemas/types.yaml#/definitions/uint32 + description: ratio of AUCLK and FS rate if applicable + + gpio-controller: true + + "#gpio-cells": + const: 2 + + clocks: + minItems: 1 + items: + - description: functional clock + - description: module specific optional ahclkx clock + - description: module specific optional ahclkr clock + + clock-names: + minItems: 1 + items: + - const: fck + - const: ahclkx + - const: ahclkr + + power-domains: + description: phandle to the corresponding power-domain + maxItems: 1 + + "#sound-dai-cells": + const: 0 + + port: + description: connection for when McASP is used via graph card + type: object + +required: + - compatible + - reg + - reg-names + - dmas + - dma-names + - interrupts + - interrupt-names + +allOf: + - $ref: dai-common.yaml# + - if: + properties: + opmode: + enum: + - 0 + + then: + required: + - tdm-slots + +unevaluatedProperties: false + +examples: + - | + mcasp0: mcasp0@1d00000 { + compatible = "ti,da830-mcasp-audio"; + reg = <0x100000 0x3000>; + reg-names = "mpu"; + interrupts = <82>, <83>; + interrupt-names = "tx", "rx"; + op-mode = <0>; /* MCASP_IIS_MODE */ + tdm-slots = <2>; + dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>; + dma-names = "tx", "rx"; + serial-dir = < + 0 0 0 0 /* 0: INACTIVE, 1: TX, 2: RX */ + 0 0 0 0 + 0 0 0 1 + 2 0 0 0 >; + tx-num-evt = <1>; + rx-num-evt = <1>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/fsl,qmc-audio.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/fsl,qmc-audio.yaml index bed39c1bc..a23e49198 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/fsl,qmc-audio.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/fsl,qmc-audio.yaml @@ -1,147 +1,147 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/fsl,qmc-audio.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: QMC audio - -maintainers: - - Herve Codina - -description: | - The QMC audio is an ASoC component which uses QMC (QUICC Multichannel - Controller) channels to transfer the audio data. - It provides several DAIs. For each DAI, the DAI is working in interleaved mode - if only one QMC channel is used by the DAI or it is working in non-interleaved - mode if several QMC channels are used by the DAI. - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - const: fsl,qmc-audio - - '#address-cells': - const: 1 - '#size-cells': - const: 0 - '#sound-dai-cells': - const: 1 - -patternProperties: - '^dai@([0-9]|[1-5][0-9]|6[0-3])$': - description: - A DAI managed by this controller - type: object - additionalProperties: false - - properties: - reg: - minimum: 0 - maximum: 63 - description: - The DAI number - - fsl,qmc-chan: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - items: - - description: phandle to QMC node - - description: Channel number - minItems: 1 - description: - Should be a phandle/number pair list. The list of phandle to QMC node - and the QMC channel pair to use for this DAI. - If only one phandle/number pair is provided, this DAI works in - interleaved mode, i.e. audio channels for this DAI are interleaved in - the QMC channel. If more than one pair is provided, this DAI works - in non-interleave mode. In that case the first audio channel uses the - the first QMC channel, the second audio channel uses the second QMC - channel, etc... - - required: - - reg - - fsl,qmc-chan - -required: - - compatible - - '#address-cells' - - '#size-cells' - - '#sound-dai-cells' - -additionalProperties: false - -examples: - - | - audio_controller: audio-controller { - compatible = "fsl,qmc-audio"; - #address-cells = <1>; - #size-cells = <0>; - #sound-dai-cells = <1>; - dai@16 { - reg = <16>; - fsl,qmc-chan = <&qmc 16>; - }; - dai@17 { - reg = <17>; - fsl,qmc-chan = <&qmc 17>; - }; - dai@18 { - reg = <18>; - /* Non-interleaved mode */ - fsl,qmc-chan = <&qmc 18>, <&qmc 19>; - }; - }; - - sound { - compatible = "simple-audio-card"; - #address-cells = <1>; - #size-cells = <0>; - simple-audio-card,dai-link@0 { - reg = <0>; - format = "dsp_b"; - cpu { - sound-dai = <&audio_controller 16>; - }; - codec { - sound-dai = <&codec1>; - dai-tdm-slot-num = <4>; - dai-tdm-slot-width = <8>; - /* TS 3, 5, 7, 9 */ - dai-tdm-slot-tx-mask = <0 0 0 1 0 1 0 1 0 1>; - dai-tdm-slot-rx-mask = <0 0 0 1 0 1 0 1 0 1>; - }; - }; - simple-audio-card,dai-link@1 { - reg = <1>; - format = "dsp_b"; - cpu { - sound-dai = <&audio_controller 17>; - }; - codec { - sound-dai = <&codec2>; - dai-tdm-slot-num = <4>; - dai-tdm-slot-width = <8>; - /* TS 2, 4, 6, 8 */ - dai-tdm-slot-tx-mask = <0 0 1 0 1 0 1 0 1>; - dai-tdm-slot-rx-mask = <0 0 1 0 1 0 1 0 1>; - }; - }; - simple-audio-card,dai-link@2 { - reg = <2>; - format = "dsp_b"; - cpu { - sound-dai = <&audio_controller 18>; - }; - codec { - sound-dai = <&codec3>; - dai-tdm-slot-num = <2>; - dai-tdm-slot-width = <8>; - /* TS 9, 10 */ - dai-tdm-slot-tx-mask = <0 0 0 0 0 0 0 0 0 1 1>; - dai-tdm-slot-rx-mask = <0 0 0 0 0 0 0 0 0 1 1>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/fsl,qmc-audio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: QMC audio + +maintainers: + - Herve Codina + +description: | + The QMC audio is an ASoC component which uses QMC (QUICC Multichannel + Controller) channels to transfer the audio data. + It provides several DAIs. For each DAI, the DAI is working in interleaved mode + if only one QMC channel is used by the DAI or it is working in non-interleaved + mode if several QMC channels are used by the DAI. + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: fsl,qmc-audio + + '#address-cells': + const: 1 + '#size-cells': + const: 0 + '#sound-dai-cells': + const: 1 + +patternProperties: + '^dai@([0-9]|[1-5][0-9]|6[0-3])$': + description: + A DAI managed by this controller + type: object + additionalProperties: false + + properties: + reg: + minimum: 0 + maximum: 63 + description: + The DAI number + + fsl,qmc-chan: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + items: + - description: phandle to QMC node + - description: Channel number + minItems: 1 + description: + Should be a phandle/number pair list. The list of phandle to QMC node + and the QMC channel pair to use for this DAI. + If only one phandle/number pair is provided, this DAI works in + interleaved mode, i.e. audio channels for this DAI are interleaved in + the QMC channel. If more than one pair is provided, this DAI works + in non-interleave mode. In that case the first audio channel uses the + the first QMC channel, the second audio channel uses the second QMC + channel, etc... + + required: + - reg + - fsl,qmc-chan + +required: + - compatible + - '#address-cells' + - '#size-cells' + - '#sound-dai-cells' + +additionalProperties: false + +examples: + - | + audio_controller: audio-controller { + compatible = "fsl,qmc-audio"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + dai@16 { + reg = <16>; + fsl,qmc-chan = <&qmc 16>; + }; + dai@17 { + reg = <17>; + fsl,qmc-chan = <&qmc 17>; + }; + dai@18 { + reg = <18>; + /* Non-interleaved mode */ + fsl,qmc-chan = <&qmc 18>, <&qmc 19>; + }; + }; + + sound { + compatible = "simple-audio-card"; + #address-cells = <1>; + #size-cells = <0>; + simple-audio-card,dai-link@0 { + reg = <0>; + format = "dsp_b"; + cpu { + sound-dai = <&audio_controller 16>; + }; + codec { + sound-dai = <&codec1>; + dai-tdm-slot-num = <4>; + dai-tdm-slot-width = <8>; + /* TS 3, 5, 7, 9 */ + dai-tdm-slot-tx-mask = <0 0 0 1 0 1 0 1 0 1>; + dai-tdm-slot-rx-mask = <0 0 0 1 0 1 0 1 0 1>; + }; + }; + simple-audio-card,dai-link@1 { + reg = <1>; + format = "dsp_b"; + cpu { + sound-dai = <&audio_controller 17>; + }; + codec { + sound-dai = <&codec2>; + dai-tdm-slot-num = <4>; + dai-tdm-slot-width = <8>; + /* TS 2, 4, 6, 8 */ + dai-tdm-slot-tx-mask = <0 0 1 0 1 0 1 0 1>; + dai-tdm-slot-rx-mask = <0 0 1 0 1 0 1 0 1>; + }; + }; + simple-audio-card,dai-link@2 { + reg = <2>; + format = "dsp_b"; + cpu { + sound-dai = <&audio_controller 18>; + }; + codec { + sound-dai = <&codec3>; + dai-tdm-slot-num = <2>; + dai-tdm-slot-width = <8>; + /* TS 9, 10 */ + dai-tdm-slot-tx-mask = <0 0 0 0 0 0 0 0 0 1 1>; + dai-tdm-slot-rx-mask = <0 0 0 0 0 0 0 0 0 1 1>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml index 1bd84603c..3d5d435c7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml @@ -1,134 +1,134 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/fsl,rpmsg.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NXP Audio RPMSG CPU DAI Controller - -maintainers: - - Shengjiu Wang - -description: | - fsl_rpmsg is a virtual audio device. Mapping to real hardware devices - are SAI, MICFIL, DMA controlled by Cortex M core. What we see from - Linux side is a device which provides audio service by rpmsg channel. - We can create different sound cards which access different hardwares - such as SAI, MICFIL, .etc through building rpmsg channels between - Cortex-A and Cortex-M. - -allOf: - - $ref: sound-card-common.yaml# - -properties: - compatible: - enum: - - fsl,imx7ulp-rpmsg-audio - - fsl,imx8mn-rpmsg-audio - - fsl,imx8mm-rpmsg-audio - - fsl,imx8mp-rpmsg-audio - - fsl,imx8ulp-rpmsg-audio - - fsl,imx93-rpmsg-audio - - fsl,imx95-rpmsg-audio - - clocks: - items: - - description: Peripheral clock for register access - - description: Master clock - - description: DMA clock for DMA register access - - description: Parent clock for multiple of 8kHz sample rates - - description: Parent clock for multiple of 11kHz sample rates - - clock-names: - items: - - const: ipg - - const: mclk - - const: dma - - const: pll8k - - const: pll11k - - power-domains: - description: - List of phandle and PM domain specifier as documented in - Documentation/devicetree/bindings/power/power_domain.txt - maxItems: 1 - - memory-region: - maxItems: 1 - description: - phandle to a node describing reserved memory (System RAM memory) - The M core can't access all the DDR memory space on some platform, - So reserved a specific memory for dma buffer which M core can - access. - (see bindings/reserved-memory/reserved-memory.txt) - - audio-codec: - $ref: /schemas/types.yaml#/definitions/phandle - description: The phandle to a node of audio codec - - fsl,enable-lpa: - $ref: /schemas/types.yaml#/definitions/flag - description: enable low power audio path. - - fsl,rpmsg-out: - $ref: /schemas/types.yaml#/definitions/flag - description: | - This is a boolean property. If present, the transmitting function - will be enabled. - - fsl,rpmsg-in: - $ref: /schemas/types.yaml#/definitions/flag - description: | - This is a boolean property. If present, the receiving function - will be enabled. - - fsl,rpmsg-channel-name: - $ref: /schemas/types.yaml#/definitions/string - description: | - A string property to assign rpmsg channel this sound card sits on. - This property can be omitted if there is only one sound card and it sits - on "rpmsg-audio-channel". - enum: - - rpmsg-audio-channel - - rpmsg-micfil-channel - -required: - - compatible - -unevaluatedProperties: false - -examples: - - | - #include - - rpmsg_audio: rpmsg_audio { - compatible = "fsl,imx8mn-rpmsg-audio"; - model = "wm8524-audio"; - fsl,enable-lpa; - fsl,rpmsg-out; - clocks = <&clk IMX8MN_CLK_SAI3_IPG>, - <&clk IMX8MN_CLK_SAI3_ROOT>, - <&clk IMX8MN_CLK_SDMA3_ROOT>, - <&clk IMX8MN_AUDIO_PLL1_OUT>, - <&clk IMX8MN_AUDIO_PLL2_OUT>; - clock-names = "ipg", "mclk", "dma", "pll8k", "pll11k"; - }; - - - | - #include - - rpmsg_micfil: audio-controller { - compatible = "fsl,imx8mm-rpmsg-audio"; - model = "micfil-audio"; - fsl,rpmsg-channel-name = "rpmsg-micfil-channel"; - fsl,enable-lpa; - fsl,rpmsg-in; - clocks = <&clk IMX8MM_CLK_PDM_IPG>, - <&clk IMX8MM_CLK_PDM_ROOT>, - <&clk IMX8MM_CLK_SDMA3_ROOT>, - <&clk IMX8MM_AUDIO_PLL1_OUT>, - <&clk IMX8MM_AUDIO_PLL2_OUT>; - clock-names = "ipg", "mclk", "dma", "pll8k", "pll11k"; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/fsl,rpmsg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP Audio RPMSG CPU DAI Controller + +maintainers: + - Shengjiu Wang + +description: | + fsl_rpmsg is a virtual audio device. Mapping to real hardware devices + are SAI, MICFIL, DMA controlled by Cortex M core. What we see from + Linux side is a device which provides audio service by rpmsg channel. + We can create different sound cards which access different hardwares + such as SAI, MICFIL, .etc through building rpmsg channels between + Cortex-A and Cortex-M. + +allOf: + - $ref: sound-card-common.yaml# + +properties: + compatible: + enum: + - fsl,imx7ulp-rpmsg-audio + - fsl,imx8mn-rpmsg-audio + - fsl,imx8mm-rpmsg-audio + - fsl,imx8mp-rpmsg-audio + - fsl,imx8ulp-rpmsg-audio + - fsl,imx93-rpmsg-audio + - fsl,imx95-rpmsg-audio + + clocks: + items: + - description: Peripheral clock for register access + - description: Master clock + - description: DMA clock for DMA register access + - description: Parent clock for multiple of 8kHz sample rates + - description: Parent clock for multiple of 11kHz sample rates + + clock-names: + items: + - const: ipg + - const: mclk + - const: dma + - const: pll8k + - const: pll11k + + power-domains: + description: + List of phandle and PM domain specifier as documented in + Documentation/devicetree/bindings/power/power_domain.txt + maxItems: 1 + + memory-region: + maxItems: 1 + description: + phandle to a node describing reserved memory (System RAM memory) + The M core can't access all the DDR memory space on some platform, + So reserved a specific memory for dma buffer which M core can + access. + (see bindings/reserved-memory/reserved-memory.txt) + + audio-codec: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle to a node of audio codec + + fsl,enable-lpa: + $ref: /schemas/types.yaml#/definitions/flag + description: enable low power audio path. + + fsl,rpmsg-out: + $ref: /schemas/types.yaml#/definitions/flag + description: | + This is a boolean property. If present, the transmitting function + will be enabled. + + fsl,rpmsg-in: + $ref: /schemas/types.yaml#/definitions/flag + description: | + This is a boolean property. If present, the receiving function + will be enabled. + + fsl,rpmsg-channel-name: + $ref: /schemas/types.yaml#/definitions/string + description: | + A string property to assign rpmsg channel this sound card sits on. + This property can be omitted if there is only one sound card and it sits + on "rpmsg-audio-channel". + enum: + - rpmsg-audio-channel + - rpmsg-micfil-channel + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + #include + + rpmsg_audio: rpmsg_audio { + compatible = "fsl,imx8mn-rpmsg-audio"; + model = "wm8524-audio"; + fsl,enable-lpa; + fsl,rpmsg-out; + clocks = <&clk IMX8MN_CLK_SAI3_IPG>, + <&clk IMX8MN_CLK_SAI3_ROOT>, + <&clk IMX8MN_CLK_SDMA3_ROOT>, + <&clk IMX8MN_AUDIO_PLL1_OUT>, + <&clk IMX8MN_AUDIO_PLL2_OUT>; + clock-names = "ipg", "mclk", "dma", "pll8k", "pll11k"; + }; + + - | + #include + + rpmsg_micfil: audio-controller { + compatible = "fsl,imx8mm-rpmsg-audio"; + model = "micfil-audio"; + fsl,rpmsg-channel-name = "rpmsg-micfil-channel"; + fsl,enable-lpa; + fsl,rpmsg-in; + clocks = <&clk IMX8MM_CLK_PDM_IPG>, + <&clk IMX8MM_CLK_PDM_ROOT>, + <&clk IMX8MM_CLK_SDMA3_ROOT>, + <&clk IMX8MM_AUDIO_PLL1_OUT>, + <&clk IMX8MM_AUDIO_PLL2_OUT>; + clock-names = "ipg", "mclk", "dma", "pll8k", "pll11k"; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/fsl,spdif.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/fsl,spdif.yaml index 14cad2248..204f361ce 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/fsl,spdif.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/fsl,spdif.yaml @@ -1,153 +1,153 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/fsl,spdif.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Freescale Sony/Philips Digital Interface Format (S/PDIF) Controller - -maintainers: - - Shengjiu Wang - -description: | - The Freescale S/PDIF audio block is a stereo transceiver that allows the - processor to receive and transmit digital audio via an coaxial cable or - a fibre cable. - -properties: - compatible: - enum: - - fsl,imx35-spdif - - fsl,vf610-spdif - - fsl,imx6sx-spdif - - fsl,imx8qm-spdif - - fsl,imx8qxp-spdif - - fsl,imx8mq-spdif - - fsl,imx8mm-spdif - - fsl,imx8mn-spdif - - fsl,imx8ulp-spdif - - reg: - maxItems: 1 - - interrupts: - minItems: 1 - items: - - description: Combined or receive interrupt - - description: Transmit interrupt - - dmas: - items: - - description: DMA controller phandle and request line for RX - - description: DMA controller phandle and request line for TX - - dma-names: - items: - - const: rx - - const: tx - - clocks: - items: - - description: The core clock of spdif controller. - - description: Clock for tx0 and rx0. - - description: Clock for tx1 and rx1. - - description: Clock for tx2 and rx2. - - description: Clock for tx3 and rx3. - - description: Clock for tx4 and rx4. - - description: Clock for tx5 and rx5. - - description: Clock for tx6 and rx6. - - description: Clock for tx7 and rx7. - - description: The spba clock is required when SPDIF is placed as a bus - slave of the Shared Peripheral Bus and when two or more bus masters - (CPU, DMA or DSP) try to access it. This property is optional depending - on the SoC design. - - description: PLL clock source for 8kHz series rate, optional. - - description: PLL clock source for 11khz series rate, optional. - minItems: 9 - - clock-names: - items: - - const: core - - const: rxtx0 - - const: rxtx1 - - const: rxtx2 - - const: rxtx3 - - const: rxtx4 - - const: rxtx5 - - const: rxtx6 - - const: rxtx7 - - const: spba - - const: pll8k - - const: pll11k - minItems: 9 - - big-endian: - $ref: /schemas/types.yaml#/definitions/flag - description: | - If this property is absent, the native endian mode will be in use - as default, or the big endian mode will be in use for all the device - registers. Set this flag for HCDs with big endian descriptors and big - endian registers. - - power-domains: - maxItems: 1 - -required: - - compatible - - reg - - interrupts - - dmas - - dma-names - - clocks - - clock-names - -additionalProperties: false - -allOf: - - if: - properties: - compatible: - enum: - - fsl,imx8qm-spdif - - fsl,imx8qxp-spdif - then: - properties: - interrupts: - minItems: 2 - else: - properties: - interrupts: - maxItems: 1 - - - if: - properties: - compatible: - contains: - enum: - - fsl,imx8qm-spdif - - fsl,imx8qxp-spdif - then: - required: - - power-domains - -examples: - - | - spdif@2004000 { - compatible = "fsl,imx35-spdif"; - reg = <0x02004000 0x4000>; - interrupts = <0 52 0x04>; - dmas = <&sdma 14 18 0>, - <&sdma 15 18 0>; - dma-names = "rx", "tx"; - clocks = <&clks 197>, <&clks 3>, - <&clks 197>, <&clks 107>, - <&clks 0>, <&clks 118>, - <&clks 62>, <&clks 139>, - <&clks 0>; - clock-names = "core", "rxtx0", - "rxtx1", "rxtx2", - "rxtx3", "rxtx4", - "rxtx5", "rxtx6", - "rxtx7"; - big-endian; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/fsl,spdif.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale Sony/Philips Digital Interface Format (S/PDIF) Controller + +maintainers: + - Shengjiu Wang + +description: | + The Freescale S/PDIF audio block is a stereo transceiver that allows the + processor to receive and transmit digital audio via an coaxial cable or + a fibre cable. + +properties: + compatible: + enum: + - fsl,imx35-spdif + - fsl,vf610-spdif + - fsl,imx6sx-spdif + - fsl,imx8qm-spdif + - fsl,imx8qxp-spdif + - fsl,imx8mq-spdif + - fsl,imx8mm-spdif + - fsl,imx8mn-spdif + - fsl,imx8ulp-spdif + + reg: + maxItems: 1 + + interrupts: + minItems: 1 + items: + - description: Combined or receive interrupt + - description: Transmit interrupt + + dmas: + items: + - description: DMA controller phandle and request line for RX + - description: DMA controller phandle and request line for TX + + dma-names: + items: + - const: rx + - const: tx + + clocks: + items: + - description: The core clock of spdif controller. + - description: Clock for tx0 and rx0. + - description: Clock for tx1 and rx1. + - description: Clock for tx2 and rx2. + - description: Clock for tx3 and rx3. + - description: Clock for tx4 and rx4. + - description: Clock for tx5 and rx5. + - description: Clock for tx6 and rx6. + - description: Clock for tx7 and rx7. + - description: The spba clock is required when SPDIF is placed as a bus + slave of the Shared Peripheral Bus and when two or more bus masters + (CPU, DMA or DSP) try to access it. This property is optional depending + on the SoC design. + - description: PLL clock source for 8kHz series rate, optional. + - description: PLL clock source for 11khz series rate, optional. + minItems: 9 + + clock-names: + items: + - const: core + - const: rxtx0 + - const: rxtx1 + - const: rxtx2 + - const: rxtx3 + - const: rxtx4 + - const: rxtx5 + - const: rxtx6 + - const: rxtx7 + - const: spba + - const: pll8k + - const: pll11k + minItems: 9 + + big-endian: + $ref: /schemas/types.yaml#/definitions/flag + description: | + If this property is absent, the native endian mode will be in use + as default, or the big endian mode will be in use for all the device + registers. Set this flag for HCDs with big endian descriptors and big + endian registers. + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - dmas + - dma-names + - clocks + - clock-names + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + enum: + - fsl,imx8qm-spdif + - fsl,imx8qxp-spdif + then: + properties: + interrupts: + minItems: 2 + else: + properties: + interrupts: + maxItems: 1 + + - if: + properties: + compatible: + contains: + enum: + - fsl,imx8qm-spdif + - fsl,imx8qxp-spdif + then: + required: + - power-domains + +examples: + - | + spdif@2004000 { + compatible = "fsl,imx35-spdif"; + reg = <0x02004000 0x4000>; + interrupts = <0 52 0x04>; + dmas = <&sdma 14 18 0>, + <&sdma 15 18 0>; + dma-names = "rx", "tx"; + clocks = <&clks 197>, <&clks 3>, + <&clks 197>, <&clks 107>, + <&clks 0>, <&clks 118>, + <&clks 62>, <&clks 139>, + <&clks 0>; + clock-names = "core", "rxtx0", + "rxtx1", "rxtx2", + "rxtx3", "rxtx4", + "rxtx5", "rxtx6", + "rxtx7"; + big-endian; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/fsl,xcvr.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/fsl,xcvr.yaml index ab5f443f2..5e2801014 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/fsl,xcvr.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/fsl,xcvr.yaml @@ -1,160 +1,160 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/fsl,xcvr.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NXP Audio Transceiver (XCVR) Controller - -maintainers: - - Viorel Suman - -description: | - NXP XCVR (Audio Transceiver) is a on-chip functional module - that allows CPU to receive and transmit digital audio via - HDMI2.1 eARC, HDMI1.4 ARC and SPDIF. - -properties: - $nodename: - pattern: "^xcvr@.*" - - compatible: - enum: - - fsl,imx8mp-xcvr - - fsl,imx93-xcvr - - fsl,imx95-xcvr - - reg: - items: - - description: 20K RAM for code and data - - description: registers space - - description: RX FIFO address - - description: TX FIFO address - - reg-names: - items: - - const: ram - - const: regs - - const: rxfifo - - const: txfifo - - interrupts: - items: - - description: WAKEUPMIX Audio XCVR Interrupt 1 - - description: WAKEUPMIX Audio XCVR Interrupt 2 - - description: SPDIF wakeup interrupt from PHY - minItems: 1 - - clocks: - items: - - description: Peripheral clock - - description: PHY clock - - description: SPBA clock - - description: PLL clock - - description: PLL clock source for 8kHz series - - description: PLL clock source for 11kHz series - minItems: 4 - - clock-names: - items: - - const: ipg - - const: phy - - const: spba - - const: pll_ipg - - const: pll8k - - const: pll11k - minItems: 4 - - dmas: - items: - - description: DMA controller phandle and request line for RX - - description: DMA controller phandle and request line for TX - - dma-names: - items: - - const: rx - - const: tx - - resets: - maxItems: 1 - -required: - - compatible - - reg - - reg-names - - interrupts - - clocks - - clock-names - - dmas - - dma-names - -allOf: - - $ref: dai-common.yaml# - - if: - properties: - compatible: - contains: - const: fsl,imx8mp-xcvr - then: - required: - - resets - - - if: - properties: - compatible: - contains: - enum: - - fsl,imx93-xcvr - - fsl,imx95-xcvr - then: - properties: - interrupts: - minItems: 2 - maxItems: 2 - else: - properties: - interrupts: - minItems: 3 - maxItems: 3 - - - if: - properties: - compatible: - contains: - enum: - - fsl,imx8mp-xcvr - - fsl,imx93-xcvr - then: - properties: - clocks: - maxItems: 4 - clock-names: - maxItems: 4 - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - - xcvr: xcvr@30cc0000 { - compatible = "fsl,imx8mp-xcvr"; - reg = <0x30cc0000 0x800>, - <0x30cc0800 0x400>, - <0x30cc0c00 0x080>, - <0x30cc0e00 0x080>; - reg-names = "ram", "regs", "rxfifo", "txfifo"; - interrupts = , - , - ; - clocks = <&audiomix_clk IMX8MP_CLK_AUDIOMIX_EARC_IPG>, - <&audiomix_clk IMX8MP_CLK_AUDIOMIX_EARC_PHY>, - <&audiomix_clk IMX8MP_CLK_AUDIOMIX_SPBA2_ROOT>, - <&audiomix_clk IMX8MP_CLK_AUDIOMIX_AUDPLL_ROOT>; - clock-names = "ipg", "phy", "spba", "pll_ipg"; - dmas = <&sdma2 30 2 0>, <&sdma2 31 2 0>; - dma-names = "rx", "tx"; - resets = <&audiomix_reset 0>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/fsl,xcvr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP Audio Transceiver (XCVR) Controller + +maintainers: + - Viorel Suman + +description: | + NXP XCVR (Audio Transceiver) is a on-chip functional module + that allows CPU to receive and transmit digital audio via + HDMI2.1 eARC, HDMI1.4 ARC and SPDIF. + +properties: + $nodename: + pattern: "^xcvr@.*" + + compatible: + enum: + - fsl,imx8mp-xcvr + - fsl,imx93-xcvr + - fsl,imx95-xcvr + + reg: + items: + - description: 20K RAM for code and data + - description: registers space + - description: RX FIFO address + - description: TX FIFO address + + reg-names: + items: + - const: ram + - const: regs + - const: rxfifo + - const: txfifo + + interrupts: + items: + - description: WAKEUPMIX Audio XCVR Interrupt 1 + - description: WAKEUPMIX Audio XCVR Interrupt 2 + - description: SPDIF wakeup interrupt from PHY + minItems: 1 + + clocks: + items: + - description: Peripheral clock + - description: PHY clock + - description: SPBA clock + - description: PLL clock + - description: PLL clock source for 8kHz series + - description: PLL clock source for 11kHz series + minItems: 4 + + clock-names: + items: + - const: ipg + - const: phy + - const: spba + - const: pll_ipg + - const: pll8k + - const: pll11k + minItems: 4 + + dmas: + items: + - description: DMA controller phandle and request line for RX + - description: DMA controller phandle and request line for TX + + dma-names: + items: + - const: rx + - const: tx + + resets: + maxItems: 1 + +required: + - compatible + - reg + - reg-names + - interrupts + - clocks + - clock-names + - dmas + - dma-names + +allOf: + - $ref: dai-common.yaml# + - if: + properties: + compatible: + contains: + const: fsl,imx8mp-xcvr + then: + required: + - resets + + - if: + properties: + compatible: + contains: + enum: + - fsl,imx93-xcvr + - fsl,imx95-xcvr + then: + properties: + interrupts: + minItems: 2 + maxItems: 2 + else: + properties: + interrupts: + minItems: 3 + maxItems: 3 + + - if: + properties: + compatible: + contains: + enum: + - fsl,imx8mp-xcvr + - fsl,imx93-xcvr + then: + properties: + clocks: + maxItems: 4 + clock-names: + maxItems: 4 + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + xcvr: xcvr@30cc0000 { + compatible = "fsl,imx8mp-xcvr"; + reg = <0x30cc0000 0x800>, + <0x30cc0800 0x400>, + <0x30cc0c00 0x080>, + <0x30cc0e00 0x080>; + reg-names = "ram", "regs", "rxfifo", "txfifo"; + interrupts = , + , + ; + clocks = <&audiomix_clk IMX8MP_CLK_AUDIOMIX_EARC_IPG>, + <&audiomix_clk IMX8MP_CLK_AUDIOMIX_EARC_PHY>, + <&audiomix_clk IMX8MP_CLK_AUDIOMIX_SPBA2_ROOT>, + <&audiomix_clk IMX8MP_CLK_AUDIOMIX_AUDPLL_ROOT>; + clock-names = "ipg", "phy", "spba", "pll_ipg"; + dmas = <&sdma2 30 2 0>, <&sdma2 31 2 0>; + dma-names = "rx", "tx"; + resets = <&audiomix_reset 0>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/google,sc7280-herobrine.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/google,sc7280-herobrine.yaml index 1281c06bd..cdcd7c6f2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/google,sc7280-herobrine.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/google,sc7280-herobrine.yaml @@ -1,182 +1,182 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/google,sc7280-herobrine.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Google SC7280-Herobrine ASoC sound card driver - -maintainers: - - Judy Hsiao - -description: - This binding describes the SC7280 sound card which uses LPASS for audio. - -allOf: - - $ref: sound-card-common.yaml# - -properties: - compatible: - enum: - - google,sc7280-herobrine - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - -patternProperties: - "^dai-link@[0-9a-f]$": - description: - Each subnode represents a dai link. Subnodes of each dai links would be - cpu/codec dais. - - type: object - - properties: - link-name: - description: Indicates dai-link name and PCM stream name. - $ref: /schemas/types.yaml#/definitions/string - maxItems: 1 - - reg: - maxItems: 1 - description: dai link address. - - cpu: - description: Holds subnode which indicates cpu dai. - type: object - properties: - sound-dai: true - - required: - - sound-dai - - additionalProperties: false - - codec: - description: Holds subnode which indicates codec dai. - type: object - properties: - sound-dai: true - - required: - - sound-dai - - additionalProperties: false - - platform: - description: Holds subnode which includes the phandle of q6apm platform device. - type: object - properties: - sound-dai: - maxItems: 1 - - required: - - sound-dai - - additionalProperties: false - - required: - - link-name - - cpu - - codec - - reg - - additionalProperties: false - -required: - - compatible - - "#address-cells" - - "#size-cells" - -unevaluatedProperties: false - -examples: - - - | - #include - sound { - compatible = "google,sc7280-herobrine"; - model = "sc7280-wcd938x-max98360a-4dmic"; - - audio-routing = - "IN1_HPHL", "HPHL_OUT", - "IN2_HPHR", "HPHR_OUT", - "AMIC1", "MIC BIAS1", - "AMIC2", "MIC BIAS2", - "VA DMIC0", "MIC BIAS3", - "VA DMIC1", "MIC BIAS3", - "VA DMIC2", "MIC BIAS4", - "VA DMIC3", "MIC BIAS4", - "TX SWR_ADC0", "ADC1_OUTPUT", - "TX SWR_ADC1", "ADC2_OUTPUT", - "TX SWR_ADC2", "ADC3_OUTPUT", - "TX SWR_DMIC0", "DMIC1_OUTPUT", - "TX SWR_DMIC1", "DMIC2_OUTPUT", - "TX SWR_DMIC2", "DMIC3_OUTPUT", - "TX SWR_DMIC3", "DMIC4_OUTPUT"; - - #address-cells = <1>; - #size-cells = <0>; - - dai-link@0 { - link-name = "WCD Playback"; - reg = ; - cpu { - sound-dai = <&lpass_cpu LPASS_CDC_DMA_RX0>; - }; - - codec { - sound-dai = <&wcd938x 0>, <&swr0 0>, <&rxmacro 0>; - }; - }; - dai-link@1 { - link-name = "WCD Capture"; - reg = ; - cpu { - sound-dai = <&lpass_cpu LPASS_CDC_DMA_TX3>; - }; - - codec { - sound-dai = <&wcd938x 1>, <&swr1 0>, <&txmacro 0>; - }; - }; - - dai-link@2 { - link-name = "MI2S Playback"; - reg = ; - cpu { - sound-dai = <&lpass_cpu MI2S_SECONDARY>; - }; - - codec { - sound-dai = <&max98360a>; - }; - }; - - dai-link@3 { - link-name = "DMIC Capture"; - reg = ; - cpu { - sound-dai = <&lpass_cpu LPASS_CDC_DMA_VA_TX0>; - }; - - codec { - sound-dai = <&vamacro 0>; - }; - }; - - dai-link@5 { - link-name = "DP Playback"; - reg = ; - cpu { - sound-dai = <&lpass_cpu LPASS_DP_RX>; - }; - - codec { - sound-dai = <&mdss_dp>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/google,sc7280-herobrine.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Google SC7280-Herobrine ASoC sound card driver + +maintainers: + - Judy Hsiao + +description: + This binding describes the SC7280 sound card which uses LPASS for audio. + +allOf: + - $ref: sound-card-common.yaml# + +properties: + compatible: + enum: + - google,sc7280-herobrine + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^dai-link@[0-9a-f]$": + description: + Each subnode represents a dai link. Subnodes of each dai links would be + cpu/codec dais. + + type: object + + properties: + link-name: + description: Indicates dai-link name and PCM stream name. + $ref: /schemas/types.yaml#/definitions/string + maxItems: 1 + + reg: + maxItems: 1 + description: dai link address. + + cpu: + description: Holds subnode which indicates cpu dai. + type: object + properties: + sound-dai: true + + required: + - sound-dai + + additionalProperties: false + + codec: + description: Holds subnode which indicates codec dai. + type: object + properties: + sound-dai: true + + required: + - sound-dai + + additionalProperties: false + + platform: + description: Holds subnode which includes the phandle of q6apm platform device. + type: object + properties: + sound-dai: + maxItems: 1 + + required: + - sound-dai + + additionalProperties: false + + required: + - link-name + - cpu + - codec + - reg + + additionalProperties: false + +required: + - compatible + - "#address-cells" + - "#size-cells" + +unevaluatedProperties: false + +examples: + + - | + #include + sound { + compatible = "google,sc7280-herobrine"; + model = "sc7280-wcd938x-max98360a-4dmic"; + + audio-routing = + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "AMIC1", "MIC BIAS1", + "AMIC2", "MIC BIAS2", + "VA DMIC0", "MIC BIAS3", + "VA DMIC1", "MIC BIAS3", + "VA DMIC2", "MIC BIAS4", + "VA DMIC3", "MIC BIAS4", + "TX SWR_ADC0", "ADC1_OUTPUT", + "TX SWR_ADC1", "ADC2_OUTPUT", + "TX SWR_ADC2", "ADC3_OUTPUT", + "TX SWR_DMIC0", "DMIC1_OUTPUT", + "TX SWR_DMIC1", "DMIC2_OUTPUT", + "TX SWR_DMIC2", "DMIC3_OUTPUT", + "TX SWR_DMIC3", "DMIC4_OUTPUT"; + + #address-cells = <1>; + #size-cells = <0>; + + dai-link@0 { + link-name = "WCD Playback"; + reg = ; + cpu { + sound-dai = <&lpass_cpu LPASS_CDC_DMA_RX0>; + }; + + codec { + sound-dai = <&wcd938x 0>, <&swr0 0>, <&rxmacro 0>; + }; + }; + dai-link@1 { + link-name = "WCD Capture"; + reg = ; + cpu { + sound-dai = <&lpass_cpu LPASS_CDC_DMA_TX3>; + }; + + codec { + sound-dai = <&wcd938x 1>, <&swr1 0>, <&txmacro 0>; + }; + }; + + dai-link@2 { + link-name = "MI2S Playback"; + reg = ; + cpu { + sound-dai = <&lpass_cpu MI2S_SECONDARY>; + }; + + codec { + sound-dai = <&max98360a>; + }; + }; + + dai-link@3 { + link-name = "DMIC Capture"; + reg = ; + cpu { + sound-dai = <&lpass_cpu LPASS_CDC_DMA_VA_TX0>; + }; + + codec { + sound-dai = <&vamacro 0>; + }; + }; + + dai-link@5 { + link-name = "DP Playback"; + reg = ; + cpu { + sound-dai = <&lpass_cpu LPASS_DP_RX>; + }; + + codec { + sound-dai = <&mdss_dp>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/mediatek,mt2701-audio.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/mediatek,mt2701-audio.yaml index 6d5864410..45382c4d8 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/mediatek,mt2701-audio.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/mediatek,mt2701-audio.yaml @@ -1,116 +1,116 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/mediatek,mt2701-audio.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MediaTek Audio Front End (AFE) PCM controller for mt2701 - -description: - The AFE PCM node must be a subnode of the MediaTek audsys device tree node. - -maintainers: - - Eugen Hristev - -properties: - compatible: - enum: - - mediatek,mt2701-audio - - mediatek,mt7622-audio - - interrupts: - items: - - description: AFE interrupt - - description: ASYS interrupt - - interrupt-names: - items: - - const: afe - - const: asys - - power-domains: - maxItems: 1 - - clocks: - items: - - description: audio infra sys clock - - description: top audio mux 1 - - description: top audio mux 2 - - description: top audio sys a1 clock - - description: top audio sys a2 clock - - description: i2s0 source selection - - description: i2s1 source selection - - description: i2s2 source selection - - description: i2s3 source selection - - description: i2s0 source divider - - description: i2s1 source divider - - description: i2s2 source divider - - description: i2s3 source divider - - description: i2s0 master clock - - description: i2s1 master clock - - description: i2s2 master clock - - description: i2s3 master clock - - description: i2so0 hopping clock - - description: i2so1 hopping clock - - description: i2so2 hopping clock - - description: i2so3 hopping clock - - description: i2si0 hopping clock - - description: i2si1 hopping clock - - description: i2si2 hopping clock - - description: i2si3 hopping clock - - description: asrc0 output clock - - description: asrc1 output clock - - description: asrc2 output clock - - description: asrc3 output clock - - description: audio front end pd clock - - description: audio front end conn pd clock - - description: top audio a1 sys pd - - description: top audio a2 sys pd - - description: audio merge interface pd - - clock-names: - items: - - const: infra_sys_audio_clk - - const: top_audio_mux1_sel - - const: top_audio_mux2_sel - - const: top_audio_a1sys_hp - - const: top_audio_a2sys_hp - - const: i2s0_src_sel - - const: i2s1_src_sel - - const: i2s2_src_sel - - const: i2s3_src_sel - - const: i2s0_src_div - - const: i2s1_src_div - - const: i2s2_src_div - - const: i2s3_src_div - - const: i2s0_mclk_en - - const: i2s1_mclk_en - - const: i2s2_mclk_en - - const: i2s3_mclk_en - - const: i2so0_hop_ck - - const: i2so1_hop_ck - - const: i2so2_hop_ck - - const: i2so3_hop_ck - - const: i2si0_hop_ck - - const: i2si1_hop_ck - - const: i2si2_hop_ck - - const: i2si3_hop_ck - - const: asrc0_out_ck - - const: asrc1_out_ck - - const: asrc2_out_ck - - const: asrc3_out_ck - - const: audio_afe_pd - - const: audio_afe_conn_pd - - const: audio_a1sys_pd - - const: audio_a2sys_pd - - const: audio_mrgif_pd - -required: - - compatible - - interrupts - - interrupt-names - - power-domains - - clocks - - clock-names - -additionalProperties: false +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/mediatek,mt2701-audio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Audio Front End (AFE) PCM controller for mt2701 + +description: + The AFE PCM node must be a subnode of the MediaTek audsys device tree node. + +maintainers: + - Eugen Hristev + +properties: + compatible: + enum: + - mediatek,mt2701-audio + - mediatek,mt7622-audio + + interrupts: + items: + - description: AFE interrupt + - description: ASYS interrupt + + interrupt-names: + items: + - const: afe + - const: asys + + power-domains: + maxItems: 1 + + clocks: + items: + - description: audio infra sys clock + - description: top audio mux 1 + - description: top audio mux 2 + - description: top audio sys a1 clock + - description: top audio sys a2 clock + - description: i2s0 source selection + - description: i2s1 source selection + - description: i2s2 source selection + - description: i2s3 source selection + - description: i2s0 source divider + - description: i2s1 source divider + - description: i2s2 source divider + - description: i2s3 source divider + - description: i2s0 master clock + - description: i2s1 master clock + - description: i2s2 master clock + - description: i2s3 master clock + - description: i2so0 hopping clock + - description: i2so1 hopping clock + - description: i2so2 hopping clock + - description: i2so3 hopping clock + - description: i2si0 hopping clock + - description: i2si1 hopping clock + - description: i2si2 hopping clock + - description: i2si3 hopping clock + - description: asrc0 output clock + - description: asrc1 output clock + - description: asrc2 output clock + - description: asrc3 output clock + - description: audio front end pd clock + - description: audio front end conn pd clock + - description: top audio a1 sys pd + - description: top audio a2 sys pd + - description: audio merge interface pd + + clock-names: + items: + - const: infra_sys_audio_clk + - const: top_audio_mux1_sel + - const: top_audio_mux2_sel + - const: top_audio_a1sys_hp + - const: top_audio_a2sys_hp + - const: i2s0_src_sel + - const: i2s1_src_sel + - const: i2s2_src_sel + - const: i2s3_src_sel + - const: i2s0_src_div + - const: i2s1_src_div + - const: i2s2_src_div + - const: i2s3_src_div + - const: i2s0_mclk_en + - const: i2s1_mclk_en + - const: i2s2_mclk_en + - const: i2s3_mclk_en + - const: i2so0_hop_ck + - const: i2so1_hop_ck + - const: i2so2_hop_ck + - const: i2so3_hop_ck + - const: i2si0_hop_ck + - const: i2si1_hop_ck + - const: i2si2_hop_ck + - const: i2si3_hop_ck + - const: asrc0_out_ck + - const: asrc1_out_ck + - const: asrc2_out_ck + - const: asrc3_out_ck + - const: audio_afe_pd + - const: audio_afe_conn_pd + - const: audio_a1sys_pd + - const: audio_a2sys_pd + - const: audio_mrgif_pd + +required: + - compatible + - interrupts + - interrupt-names + - power-domains + - clocks + - clock-names + +additionalProperties: false diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/mediatek,mt7986-afe.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/mediatek,mt7986-afe.yaml index b43f686a4..398efdfe0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/mediatek,mt7986-afe.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/mediatek,mt7986-afe.yaml @@ -1,160 +1,160 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/mediatek,mt7986-afe.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MediaTek AFE PCM controller for MT7986 - -maintainers: - - Maso Huang - -properties: - compatible: - oneOf: - - const: mediatek,mt7986-afe - - items: - - enum: - - mediatek,mt7981-afe - - mediatek,mt7988-afe - - const: mediatek,mt7986-afe - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - minItems: 5 - items: - - description: audio bus clock - - description: audio 26M clock - - description: audio intbus clock - - description: audio hopping clock - - description: audio pll clock - - description: mux for pcm_mck - - description: audio i2s/pcm mck - - clock-names: - minItems: 5 - items: - - const: bus_ck - - const: 26m_ck - - const: l_ck - - const: aud_ck - - const: eg2_ck - - const: sel - - const: i2s_m - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - -allOf: - - if: - properties: - compatible: - contains: - const: mediatek,mt7986-afe - then: - properties: - clocks: - items: - - description: audio bus clock - - description: audio 26M clock - - description: audio intbus clock - - description: audio hopping clock - - description: audio pll clock - clock-names: - items: - - const: bus_ck - - const: 26m_ck - - const: l_ck - - const: aud_ck - - const: eg2_ck - - - if: - properties: - compatible: - contains: - const: mediatek,mt7981-afe - then: - properties: - clocks: - items: - - description: audio bus clock - - description: audio 26M clock - - description: audio intbus clock - - description: audio hopping clock - - description: audio pll clock - - description: mux for pcm_mck - clock-names: - items: - - const: bus_ck - - const: 26m_ck - - const: l_ck - - const: aud_ck - - const: eg2_ck - - const: sel - - - if: - properties: - compatible: - contains: - const: mediatek,mt7988-afe - then: - properties: - clocks: - items: - - description: audio bus clock - - description: audio 26M clock - - description: audio intbus clock - - description: audio hopping clock - - description: audio pll clock - - description: mux for pcm_mck - - description: audio i2s/pcm mck - clock-names: - items: - - const: bus_ck - - const: 26m_ck - - const: l_ck - - const: aud_ck - - const: eg2_ck - - const: sel - - const: i2s_m - -additionalProperties: false - -examples: - - | - #include - #include - #include - - afe@11210000 { - compatible = "mediatek,mt7986-afe"; - reg = <0x11210000 0x9000>; - interrupts = ; - clocks = <&infracfg_ao CLK_INFRA_AUD_BUS_CK>, - <&infracfg_ao CLK_INFRA_AUD_26M_CK>, - <&infracfg_ao CLK_INFRA_AUD_L_CK>, - <&infracfg_ao CLK_INFRA_AUD_AUD_CK>, - <&infracfg_ao CLK_INFRA_AUD_EG2_CK>; - clock-names = "bus_ck", - "26m_ck", - "l_ck", - "aud_ck", - "eg2_ck"; - assigned-clocks = <&topckgen CLK_TOP_A1SYS_SEL>, - <&topckgen CLK_TOP_AUD_L_SEL>, - <&topckgen CLK_TOP_A_TUNER_SEL>; - assigned-clock-parents = <&topckgen CLK_TOP_APLL2_D4>, - <&apmixedsys CLK_APMIXED_APLL2>, - <&topckgen CLK_TOP_APLL2_D4>; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/mediatek,mt7986-afe.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek AFE PCM controller for MT7986 + +maintainers: + - Maso Huang + +properties: + compatible: + oneOf: + - const: mediatek,mt7986-afe + - items: + - enum: + - mediatek,mt7981-afe + - mediatek,mt7988-afe + - const: mediatek,mt7986-afe + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 5 + items: + - description: audio bus clock + - description: audio 26M clock + - description: audio intbus clock + - description: audio hopping clock + - description: audio pll clock + - description: mux for pcm_mck + - description: audio i2s/pcm mck + + clock-names: + minItems: 5 + items: + - const: bus_ck + - const: 26m_ck + - const: l_ck + - const: aud_ck + - const: eg2_ck + - const: sel + - const: i2s_m + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +allOf: + - if: + properties: + compatible: + contains: + const: mediatek,mt7986-afe + then: + properties: + clocks: + items: + - description: audio bus clock + - description: audio 26M clock + - description: audio intbus clock + - description: audio hopping clock + - description: audio pll clock + clock-names: + items: + - const: bus_ck + - const: 26m_ck + - const: l_ck + - const: aud_ck + - const: eg2_ck + + - if: + properties: + compatible: + contains: + const: mediatek,mt7981-afe + then: + properties: + clocks: + items: + - description: audio bus clock + - description: audio 26M clock + - description: audio intbus clock + - description: audio hopping clock + - description: audio pll clock + - description: mux for pcm_mck + clock-names: + items: + - const: bus_ck + - const: 26m_ck + - const: l_ck + - const: aud_ck + - const: eg2_ck + - const: sel + + - if: + properties: + compatible: + contains: + const: mediatek,mt7988-afe + then: + properties: + clocks: + items: + - description: audio bus clock + - description: audio 26M clock + - description: audio intbus clock + - description: audio hopping clock + - description: audio pll clock + - description: mux for pcm_mck + - description: audio i2s/pcm mck + clock-names: + items: + - const: bus_ck + - const: 26m_ck + - const: l_ck + - const: aud_ck + - const: eg2_ck + - const: sel + - const: i2s_m + +additionalProperties: false + +examples: + - | + #include + #include + #include + + afe@11210000 { + compatible = "mediatek,mt7986-afe"; + reg = <0x11210000 0x9000>; + interrupts = ; + clocks = <&infracfg_ao CLK_INFRA_AUD_BUS_CK>, + <&infracfg_ao CLK_INFRA_AUD_26M_CK>, + <&infracfg_ao CLK_INFRA_AUD_L_CK>, + <&infracfg_ao CLK_INFRA_AUD_AUD_CK>, + <&infracfg_ao CLK_INFRA_AUD_EG2_CK>; + clock-names = "bus_ck", + "26m_ck", + "l_ck", + "aud_ck", + "eg2_ck"; + assigned-clocks = <&topckgen CLK_TOP_A1SYS_SEL>, + <&topckgen CLK_TOP_AUD_L_SEL>, + <&topckgen CLK_TOP_A_TUNER_SEL>; + assigned-clock-parents = <&topckgen CLK_TOP_APLL2_D4>, + <&apmixedsys CLK_APMIXED_APLL2>, + <&topckgen CLK_TOP_APLL2_D4>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/mediatek,mt8365-afe.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/mediatek,mt8365-afe.yaml index afdabebbf..45ad56d37 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/mediatek,mt8365-afe.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/mediatek,mt8365-afe.yaml @@ -1,130 +1,130 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/mediatek,mt8365-afe.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MediaTek Audio Front End PCM controller for MT8365 - -maintainers: - - Alexandre Mergnat - -properties: - compatible: - const: mediatek,mt8365-afe-pcm - - reg: - maxItems: 1 - - "#sound-dai-cells": - const: 0 - - clocks: - items: - - description: 26M clock - - description: mux for audio clock - - description: audio i2s0 mck - - description: audio i2s1 mck - - description: audio i2s2 mck - - description: audio i2s3 mck - - description: engen 1 clock - - description: engen 2 clock - - description: audio 1 clock - - description: audio 2 clock - - description: mux for i2s0 - - description: mux for i2s1 - - description: mux for i2s2 - - description: mux for i2s3 - - clock-names: - items: - - const: top_clk26m_clk - - const: top_audio_sel - - const: audio_i2s0_m - - const: audio_i2s1_m - - const: audio_i2s2_m - - const: audio_i2s3_m - - const: engen1 - - const: engen2 - - const: aud1 - - const: aud2 - - const: i2s0_m_sel - - const: i2s1_m_sel - - const: i2s2_m_sel - - const: i2s3_m_sel - - interrupts: - maxItems: 1 - - power-domains: - maxItems: 1 - - mediatek,dmic-mode: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Indicates how many data pins are used to transmit two channels of PDM - signal. 1 means two wires, 0 means one wire. Default value is 0. - enum: - - 0 # one wire - - 1 # two wires - -required: - - compatible - - reg - - clocks - - clock-names - - interrupts - - power-domains - -additionalProperties: false - -examples: - - | - #include - #include - #include - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - - audio-controller@11220000 { - compatible = "mediatek,mt8365-afe-pcm"; - reg = <0 0x11220000 0 0x1000>; - #sound-dai-cells = <0>; - clocks = <&clk26m>, - <&topckgen CLK_TOP_AUDIO_SEL>, - <&topckgen CLK_TOP_AUD_I2S0_M>, - <&topckgen CLK_TOP_AUD_I2S1_M>, - <&topckgen CLK_TOP_AUD_I2S2_M>, - <&topckgen CLK_TOP_AUD_I2S3_M>, - <&topckgen CLK_TOP_AUD_ENGEN1_SEL>, - <&topckgen CLK_TOP_AUD_ENGEN2_SEL>, - <&topckgen CLK_TOP_AUD_1_SEL>, - <&topckgen CLK_TOP_AUD_2_SEL>, - <&topckgen CLK_TOP_APLL_I2S0_SEL>, - <&topckgen CLK_TOP_APLL_I2S1_SEL>, - <&topckgen CLK_TOP_APLL_I2S2_SEL>, - <&topckgen CLK_TOP_APLL_I2S3_SEL>; - clock-names = "top_clk26m_clk", - "top_audio_sel", - "audio_i2s0_m", - "audio_i2s1_m", - "audio_i2s2_m", - "audio_i2s3_m", - "engen1", - "engen2", - "aud1", - "aud2", - "i2s0_m_sel", - "i2s1_m_sel", - "i2s2_m_sel", - "i2s3_m_sel"; - interrupts = ; - power-domains = <&spm MT8365_POWER_DOMAIN_AUDIO>; - mediatek,dmic-mode = <1>; - }; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/mediatek,mt8365-afe.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Audio Front End PCM controller for MT8365 + +maintainers: + - Alexandre Mergnat + +properties: + compatible: + const: mediatek,mt8365-afe-pcm + + reg: + maxItems: 1 + + "#sound-dai-cells": + const: 0 + + clocks: + items: + - description: 26M clock + - description: mux for audio clock + - description: audio i2s0 mck + - description: audio i2s1 mck + - description: audio i2s2 mck + - description: audio i2s3 mck + - description: engen 1 clock + - description: engen 2 clock + - description: audio 1 clock + - description: audio 2 clock + - description: mux for i2s0 + - description: mux for i2s1 + - description: mux for i2s2 + - description: mux for i2s3 + + clock-names: + items: + - const: top_clk26m_clk + - const: top_audio_sel + - const: audio_i2s0_m + - const: audio_i2s1_m + - const: audio_i2s2_m + - const: audio_i2s3_m + - const: engen1 + - const: engen2 + - const: aud1 + - const: aud2 + - const: i2s0_m_sel + - const: i2s1_m_sel + - const: i2s2_m_sel + - const: i2s3_m_sel + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 1 + + mediatek,dmic-mode: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Indicates how many data pins are used to transmit two channels of PDM + signal. 1 means two wires, 0 means one wire. Default value is 0. + enum: + - 0 # one wire + - 1 # two wires + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + audio-controller@11220000 { + compatible = "mediatek,mt8365-afe-pcm"; + reg = <0 0x11220000 0 0x1000>; + #sound-dai-cells = <0>; + clocks = <&clk26m>, + <&topckgen CLK_TOP_AUDIO_SEL>, + <&topckgen CLK_TOP_AUD_I2S0_M>, + <&topckgen CLK_TOP_AUD_I2S1_M>, + <&topckgen CLK_TOP_AUD_I2S2_M>, + <&topckgen CLK_TOP_AUD_I2S3_M>, + <&topckgen CLK_TOP_AUD_ENGEN1_SEL>, + <&topckgen CLK_TOP_AUD_ENGEN2_SEL>, + <&topckgen CLK_TOP_AUD_1_SEL>, + <&topckgen CLK_TOP_AUD_2_SEL>, + <&topckgen CLK_TOP_APLL_I2S0_SEL>, + <&topckgen CLK_TOP_APLL_I2S1_SEL>, + <&topckgen CLK_TOP_APLL_I2S2_SEL>, + <&topckgen CLK_TOP_APLL_I2S3_SEL>; + clock-names = "top_clk26m_clk", + "top_audio_sel", + "audio_i2s0_m", + "audio_i2s1_m", + "audio_i2s2_m", + "audio_i2s3_m", + "engen1", + "engen2", + "aud1", + "aud2", + "i2s0_m_sel", + "i2s1_m_sel", + "i2s2_m_sel", + "i2s3_m_sel"; + interrupts = ; + power-domains = <&spm MT8365_POWER_DOMAIN_AUDIO>; + mediatek,dmic-mode = <1>; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml index e6d2f3e73..9f44168ef 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml @@ -1,148 +1,148 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/nuvoton,nau8821.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NAU88L21 audio codec - -maintainers: - - Seven Lee - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - const: nuvoton,nau8821 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - nuvoton,jkdet-enable: - description: Enable jack detection via JKDET pin. - type: boolean - - nuvoton,jkdet-pull-enable: - description: Enable JKDET pin pull. If set - pin pull enabled, - otherwise pin in high impedance state. - type: boolean - - nuvoton,jkdet-pull-up: - description: Pull-up JKDET pin. If set then JKDET pin is pull up, - otherwise pull down. - type: boolean - - nuvoton,key-enable: - description: handles key press detection. - type: boolean - - nuvoton,jkdet-polarity: - description: JKDET pin polarity. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: - - 0 # active high - - 1 # active low - default: 1 - - nuvoton,micbias-voltage: - description: MICBIAS output level select. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: - - 0 # VDDA - - 1 # VDDA * 1 - - 2 # VDDA * 1.1 - - 3 # VDDA * 1.2 - - 4 # VDDA * 1.3 - - 5 # VDDA * 1.4 - - 6 # VDDA * 1.53 - - 7 # VDDA * 1.53 - default: 6 - - nuvoton,vref-impedance: - description: VMID Tie-off impedance select. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: - - 0 # open - - 1 # 25KOhms - - 2 # 125KOhms - - 3 # 2.5KOhms - default: 2 - - nuvoton,jack-insert-debounce: - description: number from 0 to 7 that sets debounce time to 2^(n+2)ms. - $ref: /schemas/types.yaml#/definitions/uint32 - maximum: 7 - default: 7 - - nuvoton,jack-eject-debounce: - description: number from 0 to 7 that sets debounce time to 2^(n+2)ms. - $ref: /schemas/types.yaml#/definitions/uint32 - maximum: 7 - default: 0 - - nuvoton,dmic-clk-threshold: - description: DMIC clock speed expected value. Unit is Hz. - $ref: /schemas/types.yaml#/definitions/uint32 - default: 3072000 - - nuvoton,dmic-slew-rate: - description: The range 0 to 7 represents the speed of DMIC slew rate. - The lowest value 0 means the slowest rate and the highest value - 7 means the fastest rate. - $ref: /schemas/types.yaml#/definitions/uint32 - maximum: 7 - default: 0 - - nuvoton,left-input-single-end: - description: Enable left input with single-ended settings if set. - For the headset mic application, the single-ended control is - just limited to the left adc for design demand. - type: boolean - - nuvoton,adc-delay-ms: - description: Delay (in ms) to make input path stable and avoid pop noise. - minimum: 125 - maximum: 500 - default: 125 - - '#sound-dai-cells': - const: 0 - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - codec@1b { - compatible = "nuvoton,nau8821"; - reg = <0x1b>; - interrupt-parent = <&gpio>; - interrupts = <23 IRQ_TYPE_LEVEL_LOW>; - nuvoton,jkdet-enable; - nuvoton,jkdet-pull-enable; - nuvoton,jkdet-pull-up; - nuvoton,key-enable; - nuvoton,left-input-single-end; - nuvoton,jkdet-polarity = ; - nuvoton,micbias-voltage = <6>; - nuvoton,vref-impedance = <2>; - nuvoton,jack-insert-debounce = <7>; - nuvoton,jack-eject-debounce = <0>; - nuvoton,dmic-clk-threshold = <3072000>; - nuvoton,dmic-slew-rate = <0>; - nuvoton,adc-delay-ms = <125>; - #sound-dai-cells = <0>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/nuvoton,nau8821.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NAU88L21 audio codec + +maintainers: + - Seven Lee + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: nuvoton,nau8821 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + nuvoton,jkdet-enable: + description: Enable jack detection via JKDET pin. + type: boolean + + nuvoton,jkdet-pull-enable: + description: Enable JKDET pin pull. If set - pin pull enabled, + otherwise pin in high impedance state. + type: boolean + + nuvoton,jkdet-pull-up: + description: Pull-up JKDET pin. If set then JKDET pin is pull up, + otherwise pull down. + type: boolean + + nuvoton,key-enable: + description: handles key press detection. + type: boolean + + nuvoton,jkdet-polarity: + description: JKDET pin polarity. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: + - 0 # active high + - 1 # active low + default: 1 + + nuvoton,micbias-voltage: + description: MICBIAS output level select. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: + - 0 # VDDA + - 1 # VDDA * 1 + - 2 # VDDA * 1.1 + - 3 # VDDA * 1.2 + - 4 # VDDA * 1.3 + - 5 # VDDA * 1.4 + - 6 # VDDA * 1.53 + - 7 # VDDA * 1.53 + default: 6 + + nuvoton,vref-impedance: + description: VMID Tie-off impedance select. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: + - 0 # open + - 1 # 25KOhms + - 2 # 125KOhms + - 3 # 2.5KOhms + default: 2 + + nuvoton,jack-insert-debounce: + description: number from 0 to 7 that sets debounce time to 2^(n+2)ms. + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 7 + default: 7 + + nuvoton,jack-eject-debounce: + description: number from 0 to 7 that sets debounce time to 2^(n+2)ms. + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 7 + default: 0 + + nuvoton,dmic-clk-threshold: + description: DMIC clock speed expected value. Unit is Hz. + $ref: /schemas/types.yaml#/definitions/uint32 + default: 3072000 + + nuvoton,dmic-slew-rate: + description: The range 0 to 7 represents the speed of DMIC slew rate. + The lowest value 0 means the slowest rate and the highest value + 7 means the fastest rate. + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 7 + default: 0 + + nuvoton,left-input-single-end: + description: Enable left input with single-ended settings if set. + For the headset mic application, the single-ended control is + just limited to the left adc for design demand. + type: boolean + + nuvoton,adc-delay-ms: + description: Delay (in ms) to make input path stable and avoid pop noise. + minimum: 125 + maximum: 500 + default: 125 + + '#sound-dai-cells': + const: 0 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + codec@1b { + compatible = "nuvoton,nau8821"; + reg = <0x1b>; + interrupt-parent = <&gpio>; + interrupts = <23 IRQ_TYPE_LEVEL_LOW>; + nuvoton,jkdet-enable; + nuvoton,jkdet-pull-enable; + nuvoton,jkdet-pull-up; + nuvoton,key-enable; + nuvoton,left-input-single-end; + nuvoton,jkdet-polarity = ; + nuvoton,micbias-voltage = <6>; + nuvoton,vref-impedance = <2>; + nuvoton,jack-insert-debounce = <7>; + nuvoton,jack-eject-debounce = <0>; + nuvoton,dmic-clk-threshold = <3072000>; + nuvoton,dmic-slew-rate = <0>; + nuvoton,adc-delay-ms = <125>; + #sound-dai-cells = <0>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/nuvoton,nau8824.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/nuvoton,nau8824.yaml index f4c3bb2d3..232dc16a9 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/nuvoton,nau8824.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/nuvoton,nau8824.yaml @@ -1,190 +1,190 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/nuvoton,nau8824.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NAU8824 audio CODEC - -maintainers: - - John Hsu - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - enum: - - nuvoton,nau8824 - - reg: - maxItems: 1 - - '#sound-dai-cells': - const: 0 - - clocks: - items: - - description: The phandle of the master clock to the CODEC - - clock-names: - items: - - const: mclk - - interrupts: - maxItems: 1 - - nuvoton,jkdet-polarity: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - JKDET pin polarity. - enum: - - 0 # active high - - 1 # active low - default: 1 - - nuvoton,vref-impedance: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - VREF Impedance selection. - enum: - - 0 # Open - - 1 # 25 kOhm - - 2 # 125 kOhm - - 3 # 2.5 kOhm - default: 2 - - nuvoton,micbias-voltage: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Micbias voltage level. - enum: - - 0 # VDDA - - 1 # VDDA - - 2 # VDDA * 1.1 - - 3 # VDDA * 1.2 - - 4 # VDDA * 1.3 - - 5 # VDDA * 1.4 - - 6 # VDDA * 1.53 - - 7 # VDDA * 1.53 - default: 6 - - nuvoton,sar-threshold-num: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Number of buttons supported. - minimum: 1 - maximum: 8 - default: 4 - - nuvoton,sar-threshold: - $ref: /schemas/types.yaml#/definitions/uint32-array - description: - Impedance threshold for each button. Array that contains up to 8 buttons - configuration. SAR value is calculated as - SAR = 255 * MICBIAS / SAR_VOLTAGE * R / (2000 + R) where MICBIAS is - configured by 'nuvoton,micbias-voltage', SAR_VOLTAGE is configured by - 'nuvoton,sar-voltage', R - button impedance. - Refer datasheet section 10.2 for more information about threshold - calculation. - minItems: 1 - maxItems: 8 - items: - minimum: 0 - maximum: 255 - - nuvoton,sar-hysteresis: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Button impedance measurement hysteresis. - default: 0 - - nuvoton,sar-voltage: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Reference voltage for button impedance measurement. - enum: - - 0 # VDDA - - 1 # VDDA - - 2 # VDDA * 1.1 - - 3 # VDDA * 1.2 - - 4 # VDDA * 1.3 - - 5 # VDDA * 1.4 - - 6 # VDDA * 1.53 - - 7 # VDDA * 1.53 - default: 6 - - nuvoton,sar-compare-time: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - SAR compare time. - enum: - - 0 # 500ns - - 1 # 1us - - 2 # 2us - - 3 # 4us - default: 1 - - nuvoton,sar-sampling-time: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - SAR sampling time. - enum: - - 0 # 2us - - 1 # 4us - - 2 # 8us - - 3 # 16us - default: 1 - - nuvoton,short-key-debounce: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Button short key press debounce time. - enum: - - 0 # 30 ms - - 1 # 50 ms - - 2 # 100 ms - default: 0 - - nuvoton,jack-eject-debounce: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Jack ejection debounce time. - enum: - - 0 # 0 ms - - 1 # 1 ms - - 2 # 10 ms - default: 1 - -required: - - compatible - - reg - -unevaluatedProperties: false - -examples: - - | - #include - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - codec@1a { - #sound-dai-cells = <0>; - compatible = "nuvoton,nau8824"; - reg = <0x1a>; - interrupt-parent = <&gpio>; - interrupts = <38 IRQ_TYPE_LEVEL_LOW>; - nuvoton,vref-impedance = <2>; - nuvoton,micbias-voltage = <6>; - nuvoton,sar-threshold-num = <4>; - // Setup 4 buttons impedance according to Android specification - nuvoton,sar-threshold = <0xc 0x1e 0x38 0x60>; - nuvoton,sar-hysteresis = <0>; - nuvoton,sar-voltage = <6>; - nuvoton,sar-compare-time = <1>; - nuvoton,sar-sampling-time = <1>; - nuvoton,short-key-debounce = <0>; - nuvoton,jack-eject-debounce = <1>; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/nuvoton,nau8824.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NAU8824 audio CODEC + +maintainers: + - John Hsu + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - nuvoton,nau8824 + + reg: + maxItems: 1 + + '#sound-dai-cells': + const: 0 + + clocks: + items: + - description: The phandle of the master clock to the CODEC + + clock-names: + items: + - const: mclk + + interrupts: + maxItems: 1 + + nuvoton,jkdet-polarity: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + JKDET pin polarity. + enum: + - 0 # active high + - 1 # active low + default: 1 + + nuvoton,vref-impedance: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + VREF Impedance selection. + enum: + - 0 # Open + - 1 # 25 kOhm + - 2 # 125 kOhm + - 3 # 2.5 kOhm + default: 2 + + nuvoton,micbias-voltage: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Micbias voltage level. + enum: + - 0 # VDDA + - 1 # VDDA + - 2 # VDDA * 1.1 + - 3 # VDDA * 1.2 + - 4 # VDDA * 1.3 + - 5 # VDDA * 1.4 + - 6 # VDDA * 1.53 + - 7 # VDDA * 1.53 + default: 6 + + nuvoton,sar-threshold-num: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Number of buttons supported. + minimum: 1 + maximum: 8 + default: 4 + + nuvoton,sar-threshold: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + Impedance threshold for each button. Array that contains up to 8 buttons + configuration. SAR value is calculated as + SAR = 255 * MICBIAS / SAR_VOLTAGE * R / (2000 + R) where MICBIAS is + configured by 'nuvoton,micbias-voltage', SAR_VOLTAGE is configured by + 'nuvoton,sar-voltage', R - button impedance. + Refer datasheet section 10.2 for more information about threshold + calculation. + minItems: 1 + maxItems: 8 + items: + minimum: 0 + maximum: 255 + + nuvoton,sar-hysteresis: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Button impedance measurement hysteresis. + default: 0 + + nuvoton,sar-voltage: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Reference voltage for button impedance measurement. + enum: + - 0 # VDDA + - 1 # VDDA + - 2 # VDDA * 1.1 + - 3 # VDDA * 1.2 + - 4 # VDDA * 1.3 + - 5 # VDDA * 1.4 + - 6 # VDDA * 1.53 + - 7 # VDDA * 1.53 + default: 6 + + nuvoton,sar-compare-time: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + SAR compare time. + enum: + - 0 # 500ns + - 1 # 1us + - 2 # 2us + - 3 # 4us + default: 1 + + nuvoton,sar-sampling-time: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + SAR sampling time. + enum: + - 0 # 2us + - 1 # 4us + - 2 # 8us + - 3 # 16us + default: 1 + + nuvoton,short-key-debounce: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Button short key press debounce time. + enum: + - 0 # 30 ms + - 1 # 50 ms + - 2 # 100 ms + default: 0 + + nuvoton,jack-eject-debounce: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Jack ejection debounce time. + enum: + - 0 # 0 ms + - 1 # 1 ms + - 2 # 10 ms + default: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + codec@1a { + #sound-dai-cells = <0>; + compatible = "nuvoton,nau8824"; + reg = <0x1a>; + interrupt-parent = <&gpio>; + interrupts = <38 IRQ_TYPE_LEVEL_LOW>; + nuvoton,vref-impedance = <2>; + nuvoton,micbias-voltage = <6>; + nuvoton,sar-threshold-num = <4>; + // Setup 4 buttons impedance according to Android specification + nuvoton,sar-threshold = <0xc 0x1e 0x38 0x60>; + nuvoton,sar-hysteresis = <0>; + nuvoton,sar-voltage = <6>; + nuvoton,sar-compare-time = <1>; + nuvoton,sar-sampling-time = <1>; + nuvoton,short-key-debounce = <0>; + nuvoton,jack-eject-debounce = <1>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/nvidia,tegra210-admaif.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/nvidia,tegra210-admaif.yaml index 61644aa4c..15ab40aea 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/nvidia,tegra210-admaif.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/nvidia,tegra210-admaif.yaml @@ -1,129 +1,129 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/nvidia,tegra210-admaif.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Tegra210 ADMAIF - -description: | - ADMAIF is the interface between ADMA and AHUB. Each ADMA channel - that sends/receives data to/from AHUB must interface through an - ADMAIF channel. ADMA channel sending data to AHUB pairs with ADMAIF - Tx channel and ADMA channel receiving data from AHUB pairs with - ADMAIF Rx channel. - -maintainers: - - Jon Hunter - - Sameer Pujar - -properties: - $nodename: - pattern: "^admaif@[0-9a-f]*$" - - compatible: - oneOf: - - enum: - - nvidia,tegra210-admaif - - nvidia,tegra186-admaif - - items: - - enum: - - nvidia,tegra234-admaif - - nvidia,tegra194-admaif - - const: nvidia,tegra186-admaif - - reg: - maxItems: 1 - - dmas: true - - dma-names: true - - ports: - $ref: /schemas/graph.yaml#/properties/ports - description: | - Contains list of ACIF (Audio CIF) port nodes for ADMAIF channels. - The number of port nodes depends on the number of ADMAIF channels - that SoC may have. These are interfaced with respective ACIF ports - in AHUB (Audio Hub). Each port is capable of data transfers in - both directions. - - patternProperties: - '^port@[0-9]': - $ref: audio-graph-port.yaml# - unevaluatedProperties: false - -if: - properties: - compatible: - contains: - const: nvidia,tegra210-admaif - -then: - properties: - dmas: - description: - DMA channel specifiers, equally divided for Tx and Rx. - minItems: 1 - maxItems: 20 - dma-names: - items: - pattern: "^[rt]x(10|[1-9])$" - description: - Should be "rx1", "rx2" ... "rx10" for DMA Rx channel - Should be "tx1", "tx2" ... "tx10" for DMA Tx channel - minItems: 1 - maxItems: 20 - -else: - properties: - dmas: - description: - DMA channel specifiers, equally divided for Tx and Rx. - minItems: 1 - maxItems: 40 - dma-names: - items: - pattern: "^[rt]x(1[0-9]|[1-9]|20)$" - description: - Should be "rx1", "rx2" ... "rx20" for DMA Rx channel - Should be "tx1", "tx2" ... "tx20" for DMA Tx channel - minItems: 1 - maxItems: 40 - -required: - - compatible - - reg - - dmas - - dma-names - -additionalProperties: false - -examples: - - | - admaif@702d0000 { - compatible = "nvidia,tegra210-admaif"; - reg = <0x702d0000 0x800>; - dmas = <&adma 1>, <&adma 1>, - <&adma 2>, <&adma 2>, - <&adma 3>, <&adma 3>, - <&adma 4>, <&adma 4>, - <&adma 5>, <&adma 5>, - <&adma 6>, <&adma 6>, - <&adma 7>, <&adma 7>, - <&adma 8>, <&adma 8>, - <&adma 9>, <&adma 9>, - <&adma 10>, <&adma 10>; - dma-names = "rx1", "tx1", - "rx2", "tx2", - "rx3", "tx3", - "rx4", "tx4", - "rx5", "tx5", - "rx6", "tx6", - "rx7", "tx7", - "rx8", "tx8", - "rx9", "tx9", - "rx10", "tx10"; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/nvidia,tegra210-admaif.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Tegra210 ADMAIF + +description: | + ADMAIF is the interface between ADMA and AHUB. Each ADMA channel + that sends/receives data to/from AHUB must interface through an + ADMAIF channel. ADMA channel sending data to AHUB pairs with ADMAIF + Tx channel and ADMA channel receiving data from AHUB pairs with + ADMAIF Rx channel. + +maintainers: + - Jon Hunter + - Sameer Pujar + +properties: + $nodename: + pattern: "^admaif@[0-9a-f]*$" + + compatible: + oneOf: + - enum: + - nvidia,tegra210-admaif + - nvidia,tegra186-admaif + - items: + - enum: + - nvidia,tegra234-admaif + - nvidia,tegra194-admaif + - const: nvidia,tegra186-admaif + + reg: + maxItems: 1 + + dmas: true + + dma-names: true + + ports: + $ref: /schemas/graph.yaml#/properties/ports + description: | + Contains list of ACIF (Audio CIF) port nodes for ADMAIF channels. + The number of port nodes depends on the number of ADMAIF channels + that SoC may have. These are interfaced with respective ACIF ports + in AHUB (Audio Hub). Each port is capable of data transfers in + both directions. + + patternProperties: + '^port@[0-9]': + $ref: audio-graph-port.yaml# + unevaluatedProperties: false + +if: + properties: + compatible: + contains: + const: nvidia,tegra210-admaif + +then: + properties: + dmas: + description: + DMA channel specifiers, equally divided for Tx and Rx. + minItems: 1 + maxItems: 20 + dma-names: + items: + pattern: "^[rt]x(10|[1-9])$" + description: + Should be "rx1", "rx2" ... "rx10" for DMA Rx channel + Should be "tx1", "tx2" ... "tx10" for DMA Tx channel + minItems: 1 + maxItems: 20 + +else: + properties: + dmas: + description: + DMA channel specifiers, equally divided for Tx and Rx. + minItems: 1 + maxItems: 40 + dma-names: + items: + pattern: "^[rt]x(1[0-9]|[1-9]|20)$" + description: + Should be "rx1", "rx2" ... "rx20" for DMA Rx channel + Should be "tx1", "tx2" ... "tx20" for DMA Tx channel + minItems: 1 + maxItems: 40 + +required: + - compatible + - reg + - dmas + - dma-names + +additionalProperties: false + +examples: + - | + admaif@702d0000 { + compatible = "nvidia,tegra210-admaif"; + reg = <0x702d0000 0x800>; + dmas = <&adma 1>, <&adma 1>, + <&adma 2>, <&adma 2>, + <&adma 3>, <&adma 3>, + <&adma 4>, <&adma 4>, + <&adma 5>, <&adma 5>, + <&adma 6>, <&adma 6>, + <&adma 7>, <&adma 7>, + <&adma 8>, <&adma 8>, + <&adma 9>, <&adma 9>, + <&adma 10>, <&adma 10>; + dma-names = "rx1", "tx1", + "rx2", "tx2", + "rx3", "tx3", + "rx4", "tx4", + "rx5", "tx5", + "rx6", "tx6", + "rx7", "tx7", + "rx8", "tx8", + "rx9", "tx9", + "rx10", "tx10"; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml index 199d670ae..3e2ae16c6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml @@ -1,160 +1,160 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/qcom,lpass-tx-macro.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: LPASS(Low Power Audio Subsystem) TX Macro audio codec - -maintainers: - - Srinivas Kandagatla - -properties: - compatible: - oneOf: - - enum: - - qcom,sc7280-lpass-tx-macro - - qcom,sm6115-lpass-tx-macro - - qcom,sm8250-lpass-tx-macro - - qcom,sm8450-lpass-tx-macro - - qcom,sm8550-lpass-tx-macro - - qcom,sc8280xp-lpass-tx-macro - - items: - - enum: - - qcom,sm8650-lpass-tx-macro - - qcom,x1e80100-lpass-tx-macro - - const: qcom,sm8550-lpass-tx-macro - - reg: - maxItems: 1 - - "#sound-dai-cells": - const: 1 - - '#clock-cells': - const: 0 - - clocks: - minItems: 3 - maxItems: 5 - - clock-names: - minItems: 3 - maxItems: 5 - - clock-output-names: - maxItems: 1 - - power-domains: - maxItems: 2 - - power-domain-names: - items: - - const: macro - - const: dcodec - - qcom,dmic-sample-rate: - description: dmic sample rate - $ref: /schemas/types.yaml#/definitions/uint32 - -required: - - compatible - - reg - - "#sound-dai-cells" - -allOf: - - $ref: dai-common.yaml# - - if: - properties: - compatible: - enum: - - qcom,sc7280-lpass-tx-macro - then: - properties: - clock-names: - oneOf: - - items: # for ADSP based platforms - - const: mclk - - const: npl - - const: macro - - const: dcodec - - const: fsgen - - items: # for ADSP bypass based platforms - - const: mclk - - const: npl - - const: fsgen - - - if: - properties: - compatible: - enum: - - qcom,sc8280xp-lpass-tx-macro - - qcom,sm8250-lpass-tx-macro - - qcom,sm8450-lpass-tx-macro - then: - properties: - clocks: - minItems: 5 - maxItems: 5 - clock-names: - items: - - const: mclk - - const: npl - - const: macro - - const: dcodec - - const: fsgen - - - if: - properties: - compatible: - enum: - - qcom,sm6115-lpass-tx-macro - then: - properties: - clocks: - minItems: 4 - maxItems: 4 - clock-names: - items: - - const: mclk - - const: npl - - const: dcodec - - const: fsgen - - - if: - properties: - compatible: - contains: - enum: - - qcom,sm8550-lpass-tx-macro - then: - properties: - clocks: - minItems: 4 - maxItems: 4 - clock-names: - items: - - const: mclk - - const: macro - - const: dcodec - - const: fsgen - -unevaluatedProperties: false - -examples: - - | - #include - codec@3220000 { - compatible = "qcom,sm8250-lpass-tx-macro"; - reg = <0x3220000 0x1000>; - #sound-dai-cells = <1>; - #clock-cells = <0>; - clocks = <&aoncc 0>, - <&aoncc 1>, - <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&vamacro>; - clock-names = "mclk", "npl", "macro", "dcodec", "fsgen"; - clock-output-names = "mclk"; - qcom,dmic-sample-rate = <600000>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,lpass-tx-macro.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LPASS(Low Power Audio Subsystem) TX Macro audio codec + +maintainers: + - Srinivas Kandagatla + +properties: + compatible: + oneOf: + - enum: + - qcom,sc7280-lpass-tx-macro + - qcom,sm6115-lpass-tx-macro + - qcom,sm8250-lpass-tx-macro + - qcom,sm8450-lpass-tx-macro + - qcom,sm8550-lpass-tx-macro + - qcom,sc8280xp-lpass-tx-macro + - items: + - enum: + - qcom,sm8650-lpass-tx-macro + - qcom,x1e80100-lpass-tx-macro + - const: qcom,sm8550-lpass-tx-macro + + reg: + maxItems: 1 + + "#sound-dai-cells": + const: 1 + + '#clock-cells': + const: 0 + + clocks: + minItems: 3 + maxItems: 5 + + clock-names: + minItems: 3 + maxItems: 5 + + clock-output-names: + maxItems: 1 + + power-domains: + maxItems: 2 + + power-domain-names: + items: + - const: macro + - const: dcodec + + qcom,dmic-sample-rate: + description: dmic sample rate + $ref: /schemas/types.yaml#/definitions/uint32 + +required: + - compatible + - reg + - "#sound-dai-cells" + +allOf: + - $ref: dai-common.yaml# + - if: + properties: + compatible: + enum: + - qcom,sc7280-lpass-tx-macro + then: + properties: + clock-names: + oneOf: + - items: # for ADSP based platforms + - const: mclk + - const: npl + - const: macro + - const: dcodec + - const: fsgen + - items: # for ADSP bypass based platforms + - const: mclk + - const: npl + - const: fsgen + + - if: + properties: + compatible: + enum: + - qcom,sc8280xp-lpass-tx-macro + - qcom,sm8250-lpass-tx-macro + - qcom,sm8450-lpass-tx-macro + then: + properties: + clocks: + minItems: 5 + maxItems: 5 + clock-names: + items: + - const: mclk + - const: npl + - const: macro + - const: dcodec + - const: fsgen + + - if: + properties: + compatible: + enum: + - qcom,sm6115-lpass-tx-macro + then: + properties: + clocks: + minItems: 4 + maxItems: 4 + clock-names: + items: + - const: mclk + - const: npl + - const: dcodec + - const: fsgen + + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8550-lpass-tx-macro + then: + properties: + clocks: + minItems: 4 + maxItems: 4 + clock-names: + items: + - const: mclk + - const: macro + - const: dcodec + - const: fsgen + +unevaluatedProperties: false + +examples: + - | + #include + codec@3220000 { + compatible = "qcom,sm8250-lpass-tx-macro"; + reg = <0x3220000 0x1000>; + #sound-dai-cells = <1>; + #clock-cells = <0>; + clocks = <&aoncc 0>, + <&aoncc 1>, + <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&vamacro>; + clock-names = "mclk", "npl", "macro", "dcodec", "fsgen"; + clock-output-names = "mclk"; + qcom,dmic-sample-rate = <600000>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml index 665a1340e..6b483fa3c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml @@ -1,154 +1,154 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/qcom,lpass-va-macro.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: LPASS(Low Power Audio Subsystem) VA Macro audio codec - -maintainers: - - Srinivas Kandagatla - -properties: - compatible: - oneOf: - - enum: - - qcom,sc7280-lpass-va-macro - - qcom,sm8250-lpass-va-macro - - qcom,sm8450-lpass-va-macro - - qcom,sm8550-lpass-va-macro - - qcom,sc8280xp-lpass-va-macro - - items: - - enum: - - qcom,sm8650-lpass-va-macro - - qcom,x1e80100-lpass-va-macro - - const: qcom,sm8550-lpass-va-macro - - reg: - maxItems: 1 - - "#sound-dai-cells": - const: 1 - - '#clock-cells': - const: 0 - - clocks: - minItems: 1 - maxItems: 4 - - clock-names: - minItems: 1 - maxItems: 4 - - clock-output-names: - maxItems: 1 - - power-domains: - maxItems: 2 - - power-domain-names: - items: - - const: macro - - const: dcodec - - qcom,dmic-sample-rate: - description: dmic sample rate - $ref: /schemas/types.yaml#/definitions/uint32 - - vdd-micb-supply: - description: phandle to voltage regulator of MIC Bias - -required: - - compatible - - reg - - "#sound-dai-cells" - - clock-names - - clocks - -allOf: - - $ref: dai-common.yaml# - - - if: - properties: - compatible: - contains: - const: qcom,sc7280-lpass-va-macro - then: - properties: - clocks: - maxItems: 1 - clock-names: - items: - - const: mclk - - - if: - properties: - compatible: - contains: - const: qcom,sm8250-lpass-va-macro - then: - properties: - clocks: - minItems: 3 - maxItems: 3 - clock-names: - items: - - const: mclk - - const: macro - - const: dcodec - - - if: - properties: - compatible: - contains: - enum: - - qcom,sc8280xp-lpass-va-macro - - qcom,sm8450-lpass-va-macro - then: - properties: - clocks: - minItems: 4 - maxItems: 4 - clock-names: - items: - - const: mclk - - const: macro - - const: dcodec - - const: npl - - - if: - properties: - compatible: - contains: - enum: - - qcom,sm8550-lpass-va-macro - then: - properties: - clocks: - minItems: 3 - maxItems: 3 - clock-names: - items: - - const: mclk - - const: macro - - const: dcodec - -unevaluatedProperties: false - -examples: - - | - #include - codec@3370000 { - compatible = "qcom,sm8250-lpass-va-macro"; - reg = <0x3370000 0x1000>; - #sound-dai-cells = <1>; - #clock-cells = <0>; - clocks = <&aoncc 0>, - <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; - clock-names = "mclk", "macro", "dcodec"; - clock-output-names = "fsgen"; - qcom,dmic-sample-rate = <600000>; - vdd-micb-supply = <&vreg_s4a_1p8>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,lpass-va-macro.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LPASS(Low Power Audio Subsystem) VA Macro audio codec + +maintainers: + - Srinivas Kandagatla + +properties: + compatible: + oneOf: + - enum: + - qcom,sc7280-lpass-va-macro + - qcom,sm8250-lpass-va-macro + - qcom,sm8450-lpass-va-macro + - qcom,sm8550-lpass-va-macro + - qcom,sc8280xp-lpass-va-macro + - items: + - enum: + - qcom,sm8650-lpass-va-macro + - qcom,x1e80100-lpass-va-macro + - const: qcom,sm8550-lpass-va-macro + + reg: + maxItems: 1 + + "#sound-dai-cells": + const: 1 + + '#clock-cells': + const: 0 + + clocks: + minItems: 1 + maxItems: 4 + + clock-names: + minItems: 1 + maxItems: 4 + + clock-output-names: + maxItems: 1 + + power-domains: + maxItems: 2 + + power-domain-names: + items: + - const: macro + - const: dcodec + + qcom,dmic-sample-rate: + description: dmic sample rate + $ref: /schemas/types.yaml#/definitions/uint32 + + vdd-micb-supply: + description: phandle to voltage regulator of MIC Bias + +required: + - compatible + - reg + - "#sound-dai-cells" + - clock-names + - clocks + +allOf: + - $ref: dai-common.yaml# + + - if: + properties: + compatible: + contains: + const: qcom,sc7280-lpass-va-macro + then: + properties: + clocks: + maxItems: 1 + clock-names: + items: + - const: mclk + + - if: + properties: + compatible: + contains: + const: qcom,sm8250-lpass-va-macro + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + items: + - const: mclk + - const: macro + - const: dcodec + + - if: + properties: + compatible: + contains: + enum: + - qcom,sc8280xp-lpass-va-macro + - qcom,sm8450-lpass-va-macro + then: + properties: + clocks: + minItems: 4 + maxItems: 4 + clock-names: + items: + - const: mclk + - const: macro + - const: dcodec + - const: npl + + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8550-lpass-va-macro + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + items: + - const: mclk + - const: macro + - const: dcodec + +unevaluatedProperties: false + +examples: + - | + #include + codec@3370000 { + compatible = "qcom,sm8250-lpass-va-macro"; + reg = <0x3370000 0x1000>; + #sound-dai-cells = <1>; + #clock-cells = <0>; + clocks = <&aoncc 0>, + <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "mclk", "macro", "dcodec"; + clock-output-names = "fsgen"; + qcom,dmic-sample-rate = <600000>; + vdd-micb-supply = <&vreg_s4a_1p8>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,pm8916-wcd-analog-codec.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,pm8916-wcd-analog-codec.yaml index fbc892de0..94e7a1860 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,pm8916-wcd-analog-codec.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,pm8916-wcd-analog-codec.yaml @@ -1,153 +1,153 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/qcom,pm8916-wcd-analog-codec.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm PM8916 WCD Analog Audio Codec - -maintainers: - - Konrad Dybcio - -description: - The analog WCD audio codec found on Qualcomm PM8916 PMIC. - -properties: - compatible: - const: qcom,pm8916-wcd-analog-codec - - reg: - maxItems: 1 - - interrupts: - maxItems: 14 - - interrupt-names: - items: - - const: cdc_spk_cnp_int - - const: cdc_spk_clip_int - - const: cdc_spk_ocp_int - - const: mbhc_ins_rem_det1 - - const: mbhc_but_rel_det - - const: mbhc_but_press_det - - const: mbhc_ins_rem_det - - const: mbhc_switch_int - - const: cdc_ear_ocp_int - - const: cdc_hphr_ocp_int - - const: cdc_hphl_ocp_det - - const: cdc_ear_cnp_int - - const: cdc_hphr_cnp_int - - const: cdc_hphl_cnp_int - - vdd-cdc-io-supply: - description: 1.8V buck supply - - vdd-cdc-tx-rx-cx-supply: - description: 1.8V SIDO buck supply - - vdd-micbias-supply: - description: micbias supply - - qcom,mbhc-vthreshold-low: - $ref: /schemas/types.yaml#/definitions/uint32-array - description: - Array of 5 threshold voltages in mV for 5-button detection on - headset when MBHC is powered by an internal current source. - minItems: 5 - maxItems: 5 - - qcom,mbhc-vthreshold-high: - $ref: /schemas/types.yaml#/definitions/uint32-array - description: - Array of 5 threshold voltages in mV for 5-button detection on - headset when MBHC is powered from micbias. - minItems: 5 - maxItems: 5 - - qcom,micbias-lvl: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Voltage (mV) for Mic Bias - - qcom,hphl-jack-type-normally-open: - type: boolean - description: - True if the HPHL pin on the jack is NO (Normally Open), false if it's - NC (Normally Closed). - - qcom,gnd-jack-type-normally-open: - type: boolean - description: - True if the GND pin on the jack is NO (Normally Open), false if it's - NC (Normally Closed). - - qcom,micbias1-ext-cap: - type: boolean - description: - True if micbias1 has an external capacitor. - - qcom,micbias2-ext-cap: - type: boolean - description: - True if micbias2 has an external capacitor. - - "#sound-dai-cells": - const: 1 - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - #include - #include - - pmic@1 { - compatible = "qcom,pm8916", "qcom,spmi-pmic"; - reg = <0x1 SPMI_USID>; - #address-cells = <1>; - #size-cells = <0>; - - audio-codec@f000 { - compatible = "qcom,pm8916-wcd-analog-codec"; - reg = <0xf000>; - qcom,mbhc-vthreshold-low = <75 150 237 450 500>; - qcom,mbhc-vthreshold-high = <75 150 237 450 500>; - interrupt-parent = <&spmi_bus>; - interrupts = <0x1 0xf0 0x0 IRQ_TYPE_NONE>, - <0x1 0xf0 0x1 IRQ_TYPE_NONE>, - <0x1 0xf0 0x2 IRQ_TYPE_NONE>, - <0x1 0xf0 0x3 IRQ_TYPE_NONE>, - <0x1 0xf0 0x4 IRQ_TYPE_NONE>, - <0x1 0xf0 0x5 IRQ_TYPE_NONE>, - <0x1 0xf0 0x6 IRQ_TYPE_NONE>, - <0x1 0xf0 0x7 IRQ_TYPE_NONE>, - <0x1 0xf1 0x0 IRQ_TYPE_NONE>, - <0x1 0xf1 0x1 IRQ_TYPE_NONE>, - <0x1 0xf1 0x2 IRQ_TYPE_NONE>, - <0x1 0xf1 0x3 IRQ_TYPE_NONE>, - <0x1 0xf1 0x4 IRQ_TYPE_NONE>, - <0x1 0xf1 0x5 IRQ_TYPE_NONE>; - interrupt-names = "cdc_spk_cnp_int", - "cdc_spk_clip_int", - "cdc_spk_ocp_int", - "mbhc_ins_rem_det1", - "mbhc_but_rel_det", - "mbhc_but_press_det", - "mbhc_ins_rem_det", - "mbhc_switch_int", - "cdc_ear_ocp_int", - "cdc_hphr_ocp_int", - "cdc_hphl_ocp_det", - "cdc_ear_cnp_int", - "cdc_hphr_cnp_int", - "cdc_hphl_cnp_int"; - vdd-cdc-io-supply = <&pm8916_l5>; - vdd-cdc-tx-rx-cx-supply = <&pm8916_l5>; - vdd-micbias-supply = <&pm8916_l13>; - #sound-dai-cells = <1>; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,pm8916-wcd-analog-codec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm PM8916 WCD Analog Audio Codec + +maintainers: + - Konrad Dybcio + +description: + The analog WCD audio codec found on Qualcomm PM8916 PMIC. + +properties: + compatible: + const: qcom,pm8916-wcd-analog-codec + + reg: + maxItems: 1 + + interrupts: + maxItems: 14 + + interrupt-names: + items: + - const: cdc_spk_cnp_int + - const: cdc_spk_clip_int + - const: cdc_spk_ocp_int + - const: mbhc_ins_rem_det1 + - const: mbhc_but_rel_det + - const: mbhc_but_press_det + - const: mbhc_ins_rem_det + - const: mbhc_switch_int + - const: cdc_ear_ocp_int + - const: cdc_hphr_ocp_int + - const: cdc_hphl_ocp_det + - const: cdc_ear_cnp_int + - const: cdc_hphr_cnp_int + - const: cdc_hphl_cnp_int + + vdd-cdc-io-supply: + description: 1.8V buck supply + + vdd-cdc-tx-rx-cx-supply: + description: 1.8V SIDO buck supply + + vdd-micbias-supply: + description: micbias supply + + qcom,mbhc-vthreshold-low: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + Array of 5 threshold voltages in mV for 5-button detection on + headset when MBHC is powered by an internal current source. + minItems: 5 + maxItems: 5 + + qcom,mbhc-vthreshold-high: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + Array of 5 threshold voltages in mV for 5-button detection on + headset when MBHC is powered from micbias. + minItems: 5 + maxItems: 5 + + qcom,micbias-lvl: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Voltage (mV) for Mic Bias + + qcom,hphl-jack-type-normally-open: + type: boolean + description: + True if the HPHL pin on the jack is NO (Normally Open), false if it's + NC (Normally Closed). + + qcom,gnd-jack-type-normally-open: + type: boolean + description: + True if the GND pin on the jack is NO (Normally Open), false if it's + NC (Normally Closed). + + qcom,micbias1-ext-cap: + type: boolean + description: + True if micbias1 has an external capacitor. + + qcom,micbias2-ext-cap: + type: boolean + description: + True if micbias2 has an external capacitor. + + "#sound-dai-cells": + const: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + #include + + pmic@1 { + compatible = "qcom,pm8916", "qcom,spmi-pmic"; + reg = <0x1 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + audio-codec@f000 { + compatible = "qcom,pm8916-wcd-analog-codec"; + reg = <0xf000>; + qcom,mbhc-vthreshold-low = <75 150 237 450 500>; + qcom,mbhc-vthreshold-high = <75 150 237 450 500>; + interrupt-parent = <&spmi_bus>; + interrupts = <0x1 0xf0 0x0 IRQ_TYPE_NONE>, + <0x1 0xf0 0x1 IRQ_TYPE_NONE>, + <0x1 0xf0 0x2 IRQ_TYPE_NONE>, + <0x1 0xf0 0x3 IRQ_TYPE_NONE>, + <0x1 0xf0 0x4 IRQ_TYPE_NONE>, + <0x1 0xf0 0x5 IRQ_TYPE_NONE>, + <0x1 0xf0 0x6 IRQ_TYPE_NONE>, + <0x1 0xf0 0x7 IRQ_TYPE_NONE>, + <0x1 0xf1 0x0 IRQ_TYPE_NONE>, + <0x1 0xf1 0x1 IRQ_TYPE_NONE>, + <0x1 0xf1 0x2 IRQ_TYPE_NONE>, + <0x1 0xf1 0x3 IRQ_TYPE_NONE>, + <0x1 0xf1 0x4 IRQ_TYPE_NONE>, + <0x1 0xf1 0x5 IRQ_TYPE_NONE>; + interrupt-names = "cdc_spk_cnp_int", + "cdc_spk_clip_int", + "cdc_spk_ocp_int", + "mbhc_ins_rem_det1", + "mbhc_but_rel_det", + "mbhc_but_press_det", + "mbhc_ins_rem_det", + "mbhc_switch_int", + "cdc_ear_ocp_int", + "cdc_hphr_ocp_int", + "cdc_hphl_ocp_det", + "cdc_ear_cnp_int", + "cdc_hphr_cnp_int", + "cdc_hphl_cnp_int"; + vdd-cdc-io-supply = <&pm8916_l5>; + vdd-cdc-tx-rx-cx-supply = <&pm8916_l5>; + vdd-micbias-supply = <&pm8916_l13>; + #sound-dai-cells = <1>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,q6dsp-lpass-ports.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,q6dsp-lpass-ports.yaml index f3dd6e257..08c618e7e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,q6dsp-lpass-ports.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,q6dsp-lpass-ports.yaml @@ -1,164 +1,164 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/qcom,q6dsp-lpass-ports.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm DSP LPASS(Low Power Audio SubSystem) Audio Ports - -maintainers: - - Srinivas Kandagatla - -description: | - This binding describes the Qualcomm DSP LPASS Audio ports - -properties: - compatible: - enum: - - qcom,q6afe-dais - - '#sound-dai-cells': - const: 1 - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - -# Digital Audio Interfaces -patternProperties: - '^dai@[0-9]+$': - type: object - description: - Q6DSP Digital Audio Interfaces. - - properties: - reg: - description: - Digital Audio Interface ID - - qcom,sd-lines: - $ref: /schemas/types.yaml#/definitions/uint32-array - description: - List of serial data lines used by this dai.should be one or more of the 0-3 sd lines. - minItems: 1 - maxItems: 4 - uniqueItems: true - items: - minimum: 0 - maximum: 3 - - qcom,tdm-sync-mode: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1, 2] - description: - TDM Synchronization mode - 0 = Short sync bit mode - 1 = Long sync mode - 2 = Short sync slot mode - - qcom,tdm-sync-src: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1] - description: - TDM Synchronization source - 0 = External source - 1 = Internal source - - qcom,tdm-data-out: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1] - description: - TDM Data out signal to drive with other masters - 0 = Disable - 1 = Enable - - qcom,tdm-invert-sync: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1] - description: - TDM Invert the sync - 0 = Normal - 1 = Invert - - qcom,tdm-data-delay: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1, 2] - description: - TDM Number of bit clock to delay data - 0 = 0 bit clock cycle - 1 = 1 bit clock cycle - 2 = 2 bit clock cycle - - qcom,tdm-data-align: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1] - description: - Indicate how data is packed within the slot. For example, 32 slot - width in case of sample bit width is 24TDM Invert the sync. - 0 = MSB - 1 = LSB - - required: - - reg - - allOf: - - if: - properties: - reg: - contains: - # TDM DAI ID range from PRIMARY_TDM_RX_0 - QUINARY_TDM_TX_7 - items: - minimum: 24 - maximum: 103 - then: - required: - - qcom,tdm-sync-mode - - qcom,tdm-sync-src - - qcom,tdm-data-out - - qcom,tdm-invert-sync - - qcom,tdm-data-delay - - qcom,tdm-data-align - - - if: - properties: - reg: - contains: - # MI2S DAI ID range PRIMARY_MI2S_RX - QUATERNARY_MI2S_TX and - # QUINARY_MI2S_RX - QUINARY_MI2S_TX - items: - oneOf: - - minimum: 16 - maximum: 23 - - minimum: 127 - maximum: 128 - then: - required: - - qcom,sd-lines - - additionalProperties: false - -required: - - compatible - - "#sound-dai-cells" - - "#address-cells" - - "#size-cells" - -additionalProperties: false - -examples: - - | - #include - - dais { - compatible = "qcom,q6afe-dais"; - #address-cells = <1>; - #size-cells = <0>; - #sound-dai-cells = <1>; - - dai@22 { - reg = ; - qcom,sd-lines = <0 1 2 3>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,q6dsp-lpass-ports.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm DSP LPASS(Low Power Audio SubSystem) Audio Ports + +maintainers: + - Srinivas Kandagatla + +description: | + This binding describes the Qualcomm DSP LPASS Audio ports + +properties: + compatible: + enum: + - qcom,q6afe-dais + + '#sound-dai-cells': + const: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +# Digital Audio Interfaces +patternProperties: + '^dai@[0-9]+$': + type: object + description: + Q6DSP Digital Audio Interfaces. + + properties: + reg: + description: + Digital Audio Interface ID + + qcom,sd-lines: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + List of serial data lines used by this dai.should be one or more of the 0-3 sd lines. + minItems: 1 + maxItems: 4 + uniqueItems: true + items: + minimum: 0 + maximum: 3 + + qcom,tdm-sync-mode: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2] + description: + TDM Synchronization mode + 0 = Short sync bit mode + 1 = Long sync mode + 2 = Short sync slot mode + + qcom,tdm-sync-src: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + description: + TDM Synchronization source + 0 = External source + 1 = Internal source + + qcom,tdm-data-out: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + description: + TDM Data out signal to drive with other masters + 0 = Disable + 1 = Enable + + qcom,tdm-invert-sync: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + description: + TDM Invert the sync + 0 = Normal + 1 = Invert + + qcom,tdm-data-delay: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2] + description: + TDM Number of bit clock to delay data + 0 = 0 bit clock cycle + 1 = 1 bit clock cycle + 2 = 2 bit clock cycle + + qcom,tdm-data-align: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + description: + Indicate how data is packed within the slot. For example, 32 slot + width in case of sample bit width is 24TDM Invert the sync. + 0 = MSB + 1 = LSB + + required: + - reg + + allOf: + - if: + properties: + reg: + contains: + # TDM DAI ID range from PRIMARY_TDM_RX_0 - QUINARY_TDM_TX_7 + items: + minimum: 24 + maximum: 103 + then: + required: + - qcom,tdm-sync-mode + - qcom,tdm-sync-src + - qcom,tdm-data-out + - qcom,tdm-invert-sync + - qcom,tdm-data-delay + - qcom,tdm-data-align + + - if: + properties: + reg: + contains: + # MI2S DAI ID range PRIMARY_MI2S_RX - QUATERNARY_MI2S_TX and + # QUINARY_MI2S_RX - QUINARY_MI2S_TX + items: + oneOf: + - minimum: 16 + maximum: 23 + - minimum: 127 + maximum: 128 + then: + required: + - qcom,sd-lines + + additionalProperties: false + +required: + - compatible + - "#sound-dai-cells" + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include + + dais { + compatible = "qcom,q6afe-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + + dai@22 { + reg = ; + qcom,sd-lines = <0 1 2 3>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,wcd9335.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,wcd9335.yaml index 8cd669b0a..34f8fe4da 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,wcd9335.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/qcom,wcd9335.yaml @@ -1,156 +1,156 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/qcom,wcd9335.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm WCD9335 Audio Codec - -maintainers: - - Srinivas Kandagatla - -description: - Qualcomm WCD9335 Codec is a standalone Hi-Fi audio codec IC with in-built - Soundwire controller and interrupt mux. It supports both I2S/I2C and SLIMbus - audio interfaces. - -properties: - compatible: - const: slim217,1a0 - - reg: - maxItems: 1 - - clocks: - maxItems: 2 - - clock-names: - items: - - const: mclk - - const: slimbus - - interrupts: - maxItems: 2 - - interrupt-names: - items: - - const: intr1 - - const: intr2 - - interrupt-controller: true - - '#interrupt-cells': - const: 1 - - reset-gpios: - maxItems: 1 - - slim-ifc-dev: - description: SLIM IFC device interface - $ref: /schemas/types.yaml#/definitions/phandle - - '#sound-dai-cells': - const: 1 - - vdd-buck-supply: - description: 1.8V buck supply - - vdd-buck-sido-supply: - description: 1.8V SIDO buck supply - - vdd-io-supply: - description: 1.8V I/O supply - - vdd-micbias-supply: - description: micbias supply - - vdd-rx-supply: - description: 1.8V rx supply - - vdd-tx-supply: - description: 1.8V tx supply - - vdd-vbat-supply: - description: vbat supply - -required: - - compatible - - reg - -allOf: - - $ref: dai-common.yaml# - - if: - required: - - slim-ifc-dev - then: - required: - - clocks - - clock-names - - interrupts - - interrupt-names - - interrupt-controller - - '#interrupt-cells' - - reset-gpios - - slim-ifc-dev - - '#sound-dai-cells' - - vdd-buck-supply - - vdd-buck-sido-supply - - vdd-io-supply - - vdd-rx-supply - - vdd-tx-supply - else: - properties: - clocks: false - clock-names: false - interrupts: false - interrupt-names: false - interrupt-controller: false - '#interrupt-cells': false - reset-gpios: false - slim-ifc-dev: false - '#sound-dai-cells': false - vdd-buck-supply: false - vdd-buck-sido-supply: false - vdd-io-supply: false - vdd-micbias-supply: false - vdd-rx-supply: false - vdd-tx-supply: false - vdd-vbat-supply: false - -additionalProperties: false - -examples: - - | - #include - #include - #include - - tasha_ifd: codec@0,0 { - compatible = "slim217,1a0"; - reg = <0 0>; - }; - - codec@1,0 { - compatible = "slim217,1a0"; - reg = <1 0>; - - clock-names = "mclk", "slimbus"; - clocks = <&div1_mclk>, <&rpmcc RPM_SMD_BB_CLK1>; - - interrupt-parent = <&tlmm>; - interrupts = <54 IRQ_TYPE_LEVEL_HIGH>, - <53 IRQ_TYPE_LEVEL_HIGH>; - interrupt-names = "intr1", "intr2"; - interrupt-controller; - #interrupt-cells = <1>; - - reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>; - slim-ifc-dev = <&tasha_ifd>; - #sound-dai-cells = <1>; - - vdd-buck-supply = <&vreg_s4a_1p8>; - vdd-buck-sido-supply = <&vreg_s4a_1p8>; - vdd-tx-supply = <&vreg_s4a_1p8>; - vdd-rx-supply = <&vreg_s4a_1p8>; - vdd-io-supply = <&vreg_s4a_1p8>; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,wcd9335.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm WCD9335 Audio Codec + +maintainers: + - Srinivas Kandagatla + +description: + Qualcomm WCD9335 Codec is a standalone Hi-Fi audio codec IC with in-built + Soundwire controller and interrupt mux. It supports both I2S/I2C and SLIMbus + audio interfaces. + +properties: + compatible: + const: slim217,1a0 + + reg: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: mclk + - const: slimbus + + interrupts: + maxItems: 2 + + interrupt-names: + items: + - const: intr1 + - const: intr2 + + interrupt-controller: true + + '#interrupt-cells': + const: 1 + + reset-gpios: + maxItems: 1 + + slim-ifc-dev: + description: SLIM IFC device interface + $ref: /schemas/types.yaml#/definitions/phandle + + '#sound-dai-cells': + const: 1 + + vdd-buck-supply: + description: 1.8V buck supply + + vdd-buck-sido-supply: + description: 1.8V SIDO buck supply + + vdd-io-supply: + description: 1.8V I/O supply + + vdd-micbias-supply: + description: micbias supply + + vdd-rx-supply: + description: 1.8V rx supply + + vdd-tx-supply: + description: 1.8V tx supply + + vdd-vbat-supply: + description: vbat supply + +required: + - compatible + - reg + +allOf: + - $ref: dai-common.yaml# + - if: + required: + - slim-ifc-dev + then: + required: + - clocks + - clock-names + - interrupts + - interrupt-names + - interrupt-controller + - '#interrupt-cells' + - reset-gpios + - slim-ifc-dev + - '#sound-dai-cells' + - vdd-buck-supply + - vdd-buck-sido-supply + - vdd-io-supply + - vdd-rx-supply + - vdd-tx-supply + else: + properties: + clocks: false + clock-names: false + interrupts: false + interrupt-names: false + interrupt-controller: false + '#interrupt-cells': false + reset-gpios: false + slim-ifc-dev: false + '#sound-dai-cells': false + vdd-buck-supply: false + vdd-buck-sido-supply: false + vdd-io-supply: false + vdd-micbias-supply: false + vdd-rx-supply: false + vdd-tx-supply: false + vdd-vbat-supply: false + +additionalProperties: false + +examples: + - | + #include + #include + #include + + tasha_ifd: codec@0,0 { + compatible = "slim217,1a0"; + reg = <0 0>; + }; + + codec@1,0 { + compatible = "slim217,1a0"; + reg = <1 0>; + + clock-names = "mclk", "slimbus"; + clocks = <&div1_mclk>, <&rpmcc RPM_SMD_BB_CLK1>; + + interrupt-parent = <&tlmm>; + interrupts = <54 IRQ_TYPE_LEVEL_HIGH>, + <53 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "intr1", "intr2"; + interrupt-controller; + #interrupt-cells = <1>; + + reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>; + slim-ifc-dev = <&tasha_ifd>; + #sound-dai-cells = <1>; + + vdd-buck-supply = <&vreg_s4a_1p8>; + vdd-buck-sido-supply = <&vreg_s4a_1p8>; + vdd-tx-supply = <&vreg_s4a_1p8>; + vdd-rx-supply = <&vreg_s4a_1p8>; + vdd-io-supply = <&vreg_s4a_1p8>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/realtek,rt5645.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/realtek,rt5645.yaml index f29c81a3c..0a698798c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/realtek,rt5645.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/realtek,rt5645.yaml @@ -1,131 +1,131 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/realtek,rt5645.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: RT5650/RT5645 audio CODEC - -maintainers: - - Animesh Agarwal - -description: | - This device supports I2C only. - - Pins on the device (for linking into audio routes) for RT5645/RT5650: - * DMIC L1 - * DMIC R1 - * DMIC L2 - * DMIC R2 - * IN1P - * IN1N - * IN2P - * IN2N - * Haptic Generator - * HPOL - * HPOR - * LOUTL - * LOUTR - * PDM1L - * PDM1R - * SPOL - * SPOR - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - enum: - - realtek,rt5645 - - realtek,rt5650 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - description: The CODEC's interrupt output. - - avdd-supply: - description: Power supply for AVDD, providing 1.8V. - - cpvdd-supply: - description: Power supply for CPVDD, providing 1.8V. - - hp-detect-gpios: - description: - A GPIO spec for the external headphone detect pin. If jd-mode = 0, we - will get the JD status by getting the value of hp-detect-gpios. - maxItems: 1 - - cbj-sleeve-gpios: - description: - A GPIO spec to control the external combo jack circuit to tie the - sleeve/ring2 contacts to the ground or floating. It could avoid some - electric noise from the active speaker jacks. - maxItems: 1 - - realtek,in2-differential: - description: - Indicate MIC2 input are differential, rather than single-ended. - type: boolean - - realtek,dmic1-data-pin: - description: Specify which pin to be used as DMIC1 data pin. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: - - 0 # dmic1 is not used - - 1 # using IN2P pin as dmic1 data pin - - 2 # using GPIO6 pin as dmic1 data pin - - 3 # using GPIO10 pin as dmic1 data pin - - 4 # using GPIO12 pin as dmic1 data pin - - realtek,dmic2-data-pin: - description: Specify which pin to be used as DMIC2 data pin. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: - - 0 # dmic2 is not used - - 1 # using IN2N pin as dmic2 data pin - - 2 # using GPIO5 pin as dmic2 data pin - - 3 # using GPIO11 pin as dmic2 data pin - - realtek,jd-mode: - description: The JD mode of rt5645/rt5650. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: - - 0 # rt5645/rt5650 JD function is not used - - 1 # Mode-0 (VDD=3.3V), two port jack detection - - 2 # Mode-1 (VDD=3.3V), one port jack detection - - 3 # Mode-2 (VDD=1.8V), one port jack detection - -required: - - compatible - - reg - - interrupts - - avdd-supply - - cpvdd-supply - -unevaluatedProperties: false - -examples: - - | - #include - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - codec@1a { - compatible = "realtek,rt5650"; - reg = <0x1a>; - hp-detect-gpios = <&gpio 19 0>; - cbj-sleeve-gpios = <&gpio 20 0>; - interrupt-parent = <&gpio>; - interrupts = <7 IRQ_TYPE_EDGE_FALLING>; - avdd-supply = <&avdd_reg>; - cpvdd-supply = <&cpvdd_supply>; - realtek,jd-mode = <3>; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/realtek,rt5645.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RT5650/RT5645 audio CODEC + +maintainers: + - Animesh Agarwal + +description: | + This device supports I2C only. + + Pins on the device (for linking into audio routes) for RT5645/RT5650: + * DMIC L1 + * DMIC R1 + * DMIC L2 + * DMIC R2 + * IN1P + * IN1N + * IN2P + * IN2N + * Haptic Generator + * HPOL + * HPOR + * LOUTL + * LOUTR + * PDM1L + * PDM1R + * SPOL + * SPOR + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - realtek,rt5645 + - realtek,rt5650 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + description: The CODEC's interrupt output. + + avdd-supply: + description: Power supply for AVDD, providing 1.8V. + + cpvdd-supply: + description: Power supply for CPVDD, providing 1.8V. + + hp-detect-gpios: + description: + A GPIO spec for the external headphone detect pin. If jd-mode = 0, we + will get the JD status by getting the value of hp-detect-gpios. + maxItems: 1 + + cbj-sleeve-gpios: + description: + A GPIO spec to control the external combo jack circuit to tie the + sleeve/ring2 contacts to the ground or floating. It could avoid some + electric noise from the active speaker jacks. + maxItems: 1 + + realtek,in2-differential: + description: + Indicate MIC2 input are differential, rather than single-ended. + type: boolean + + realtek,dmic1-data-pin: + description: Specify which pin to be used as DMIC1 data pin. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: + - 0 # dmic1 is not used + - 1 # using IN2P pin as dmic1 data pin + - 2 # using GPIO6 pin as dmic1 data pin + - 3 # using GPIO10 pin as dmic1 data pin + - 4 # using GPIO12 pin as dmic1 data pin + + realtek,dmic2-data-pin: + description: Specify which pin to be used as DMIC2 data pin. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: + - 0 # dmic2 is not used + - 1 # using IN2N pin as dmic2 data pin + - 2 # using GPIO5 pin as dmic2 data pin + - 3 # using GPIO11 pin as dmic2 data pin + + realtek,jd-mode: + description: The JD mode of rt5645/rt5650. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: + - 0 # rt5645/rt5650 JD function is not used + - 1 # Mode-0 (VDD=3.3V), two port jack detection + - 2 # Mode-1 (VDD=3.3V), one port jack detection + - 3 # Mode-2 (VDD=1.8V), one port jack detection + +required: + - compatible + - reg + - interrupts + - avdd-supply + - cpvdd-supply + +unevaluatedProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + codec@1a { + compatible = "realtek,rt5650"; + reg = <0x1a>; + hp-detect-gpios = <&gpio 19 0>; + cbj-sleeve-gpios = <&gpio 20 0>; + interrupt-parent = <&gpio>; + interrupts = <7 IRQ_TYPE_EDGE_FALLING>; + avdd-supply = <&avdd_reg>; + cpvdd-supply = <&cpvdd_supply>; + realtek,jd-mode = <3>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml index 3d4f19834..ecfa7a576 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml @@ -1,150 +1,150 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/realtek,rt5682s.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Realtek rt5682s codec - -maintainers: - - Derek Fang - -description: | - Rt5682s(ALC5682I-VS) is a rt5682i variant which supports I2C only. - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - const: realtek,rt5682s - - reg: - maxItems: 1 - description: I2C address of the device. - - interrupts: - maxItems: 1 - description: The CODEC's interrupt output. - - realtek,dmic1-data-pin: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: - - 0 # dmic1 data is not used - - 1 # using GPIO2 pin as dmic1 data pin - - 2 # using GPIO5 pin as dmic1 data pin - description: | - Specify which GPIO pin be used as DMIC1 data pin. - - realtek,dmic1-clk-pin: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: - - 0 # dmic1 clk is not used - - 1 # using GPIO1 pin as dmic1 clock pin - - 2 # using GPIO3 pin as dmic1 clock pin - description: | - Specify which GPIO pin be used as DMIC1 clk pin. - - realtek,jd-src: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: - - 0 # No JD is used - - 1 # using JD1 as JD source - description: | - Specify which JD source be used. - - realtek,ldo1-en-gpios: - description: | - The GPIO that controls the CODEC's LDO1_EN pin. - - realtek,dmic-clk-rate-hz: - description: | - Set the clock rate (hz) for the requirement of the particular DMIC. - - realtek,dmic-delay-ms: - description: | - Set the delay time (ms) for the requirement of the particular DMIC. - - realtek,amic-delay-ms: - description: | - Set the delay time (ms) for the requirement of the particular platform or AMIC. - - realtek,dmic-clk-driving-high: - type: boolean - description: | - Set the high driving of the DMIC clock out. - - clocks: - items: - - description: phandle and clock specifier for codec MCLK. - - clock-names: - items: - - const: mclk - - "#clock-cells": - const: 1 - - clock-output-names: - minItems: 2 - maxItems: 2 - description: Name given for DAI word clock and bit clock outputs. - - "#sound-dai-cells": - const: 1 - - AVDD-supply: - description: Regulator supplying analog power through the AVDD pin. - - MICVDD-supply: - description: Regulator supplying power for the microphone bias through the - MICVDD pin. - - DBVDD-supply: - description: Regulator supplying I/O power through the DBVDD pin. - - LDO1-IN-supply: - description: Regulator supplying power to the digital core and charge pump - through the LDO1_IN pin. - -unevaluatedProperties: false - -required: - - compatible - - reg - - AVDD-supply - - MICVDD-supply - - DBVDD-supply - - LDO1-IN-supply - -examples: - - | - #include - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - codec@1a { - compatible = "realtek,rt5682s"; - reg = <0x1a>; - interrupts = <6 IRQ_TYPE_LEVEL_HIGH>; - realtek,ldo1-en-gpios = - <&gpio 2 GPIO_ACTIVE_HIGH>; - realtek,dmic1-data-pin = <1>; - realtek,dmic1-clk-pin = <1>; - realtek,jd-src = <1>; - - #clock-cells = <1>; - clock-output-names = "rt5682-dai-wclk", "rt5682-dai-bclk"; - - clocks = <&osc>; - clock-names = "mclk"; - - AVDD-supply = <&avdd_reg>; - MICVDD-supply = <&micvdd_reg>; - DBVDD-supply = <&dbvdd_reg>; - LDO1-IN-supply = <&ldo1_in_reg>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/realtek,rt5682s.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek rt5682s codec + +maintainers: + - Derek Fang + +description: | + Rt5682s(ALC5682I-VS) is a rt5682i variant which supports I2C only. + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: realtek,rt5682s + + reg: + maxItems: 1 + description: I2C address of the device. + + interrupts: + maxItems: 1 + description: The CODEC's interrupt output. + + realtek,dmic1-data-pin: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: + - 0 # dmic1 data is not used + - 1 # using GPIO2 pin as dmic1 data pin + - 2 # using GPIO5 pin as dmic1 data pin + description: | + Specify which GPIO pin be used as DMIC1 data pin. + + realtek,dmic1-clk-pin: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: + - 0 # dmic1 clk is not used + - 1 # using GPIO1 pin as dmic1 clock pin + - 2 # using GPIO3 pin as dmic1 clock pin + description: | + Specify which GPIO pin be used as DMIC1 clk pin. + + realtek,jd-src: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: + - 0 # No JD is used + - 1 # using JD1 as JD source + description: | + Specify which JD source be used. + + realtek,ldo1-en-gpios: + description: | + The GPIO that controls the CODEC's LDO1_EN pin. + + realtek,dmic-clk-rate-hz: + description: | + Set the clock rate (hz) for the requirement of the particular DMIC. + + realtek,dmic-delay-ms: + description: | + Set the delay time (ms) for the requirement of the particular DMIC. + + realtek,amic-delay-ms: + description: | + Set the delay time (ms) for the requirement of the particular platform or AMIC. + + realtek,dmic-clk-driving-high: + type: boolean + description: | + Set the high driving of the DMIC clock out. + + clocks: + items: + - description: phandle and clock specifier for codec MCLK. + + clock-names: + items: + - const: mclk + + "#clock-cells": + const: 1 + + clock-output-names: + minItems: 2 + maxItems: 2 + description: Name given for DAI word clock and bit clock outputs. + + "#sound-dai-cells": + const: 1 + + AVDD-supply: + description: Regulator supplying analog power through the AVDD pin. + + MICVDD-supply: + description: Regulator supplying power for the microphone bias through the + MICVDD pin. + + DBVDD-supply: + description: Regulator supplying I/O power through the DBVDD pin. + + LDO1-IN-supply: + description: Regulator supplying power to the digital core and charge pump + through the LDO1_IN pin. + +unevaluatedProperties: false + +required: + - compatible + - reg + - AVDD-supply + - MICVDD-supply + - DBVDD-supply + - LDO1-IN-supply + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + codec@1a { + compatible = "realtek,rt5682s"; + reg = <0x1a>; + interrupts = <6 IRQ_TYPE_LEVEL_HIGH>; + realtek,ldo1-en-gpios = + <&gpio 2 GPIO_ACTIVE_HIGH>; + realtek,dmic1-data-pin = <1>; + realtek,dmic1-clk-pin = <1>; + realtek,jd-src = <1>; + + #clock-cells = <1>; + clock-output-names = "rt5682-dai-wclk", "rt5682-dai-bclk"; + + clocks = <&osc>; + clock-names = "mclk"; + + AVDD-supply = <&avdd_reg>; + MICVDD-supply = <&micvdd_reg>; + DBVDD-supply = <&dbvdd_reg>; + LDO1-IN-supply = <&ldo1_in_reg>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/renesas,rz-ssi.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/renesas,rz-ssi.yaml index 18d8b40bb..f4610eaed 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/renesas,rz-ssi.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/renesas,rz-ssi.yaml @@ -1,130 +1,130 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/renesas,rz-ssi.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas RZ/{G2L,V2L} ASoC Sound Serial Interface (SSIF-2) - -maintainers: - - Biju Das - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - items: - - enum: - - renesas,r9a07g043-ssi # RZ/G2UL and RZ/Five - - renesas,r9a07g044-ssi # RZ/G2{L,LC} - - renesas,r9a07g054-ssi # RZ/V2L - - const: renesas,rz-ssi - - reg: - maxItems: 1 - - interrupts: - minItems: 2 - maxItems: 3 - - interrupt-names: - oneOf: - - items: - - const: int_req - - const: dma_rx - - const: dma_tx - - items: - - const: int_req - - const: dma_rt - - clocks: - maxItems: 4 - - clock-names: - items: - - const: ssi - - const: ssi_sfr - - const: audio_clk1 - - const: audio_clk2 - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - dmas: - minItems: 1 - maxItems: 2 - description: - The first cell represents a phandle to dmac. - The second cell specifies the encoded MID/RID values of the SSI port - connected to the DMA client and the slave channel configuration - parameters. - bits[0:9] - Specifies MID/RID value of a SSI channel as below - MID/RID value of SSI rx0 = 0x256 - MID/RID value of SSI tx0 = 0x255 - MID/RID value of SSI rx1 = 0x25a - MID/RID value of SSI tx1 = 0x259 - MID/RID value of SSI rt2 = 0x25f - MID/RID value of SSI rx3 = 0x262 - MID/RID value of SSI tx3 = 0x261 - bit[10] - HIEN = 1, Detects a request in response to the rising edge - of the signal - bit[11] - LVL = 0, Detects based on the edge - bits[12:14] - AM = 2, Bus cycle mode - bit[15] - TM = 0, Single transfer mode - - dma-names: - oneOf: - - items: - - const: tx - - const: rx - - items: - - const: rt - - '#sound-dai-cells': - const: 0 - - port: - $ref: audio-graph-port.yaml#/definitions/port-base - description: Connection to controller providing I2S signals - -required: - - compatible - - reg - - interrupts - - interrupt-names - - clocks - - clock-names - - resets - - '#sound-dai-cells' - -unevaluatedProperties: false - -examples: - - | - #include - #include - - ssi0: ssi@10049c00 { - compatible = "renesas,r9a07g044-ssi", - "renesas,rz-ssi"; - reg = <0x10049c00 0x400>; - interrupts = , - , - ; - interrupt-names = "int_req", "dma_rx", "dma_tx"; - clocks = <&cpg CPG_MOD R9A07G044_SSI0_PCLK2>, - <&cpg CPG_MOD R9A07G044_SSI0_PCLK_SFR>, - <&audio_clk1>, - <&audio_clk2>; - clock-names = "ssi", "ssi_sfr", "audio_clk1", "audio_clk2"; - power-domains = <&cpg>; - resets = <&cpg R9A07G044_SSI0_RST_M2_REG>; - dmas = <&dmac 0x2655>, - <&dmac 0x2656>; - dma-names = "tx", "rx"; - #sound-dai-cells = <0>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/renesas,rz-ssi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/{G2L,V2L} ASoC Sound Serial Interface (SSIF-2) + +maintainers: + - Biju Das + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + items: + - enum: + - renesas,r9a07g043-ssi # RZ/G2UL and RZ/Five + - renesas,r9a07g044-ssi # RZ/G2{L,LC} + - renesas,r9a07g054-ssi # RZ/V2L + - const: renesas,rz-ssi + + reg: + maxItems: 1 + + interrupts: + minItems: 2 + maxItems: 3 + + interrupt-names: + oneOf: + - items: + - const: int_req + - const: dma_rx + - const: dma_tx + - items: + - const: int_req + - const: dma_rt + + clocks: + maxItems: 4 + + clock-names: + items: + - const: ssi + - const: ssi_sfr + - const: audio_clk1 + - const: audio_clk2 + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + dmas: + minItems: 1 + maxItems: 2 + description: + The first cell represents a phandle to dmac. + The second cell specifies the encoded MID/RID values of the SSI port + connected to the DMA client and the slave channel configuration + parameters. + bits[0:9] - Specifies MID/RID value of a SSI channel as below + MID/RID value of SSI rx0 = 0x256 + MID/RID value of SSI tx0 = 0x255 + MID/RID value of SSI rx1 = 0x25a + MID/RID value of SSI tx1 = 0x259 + MID/RID value of SSI rt2 = 0x25f + MID/RID value of SSI rx3 = 0x262 + MID/RID value of SSI tx3 = 0x261 + bit[10] - HIEN = 1, Detects a request in response to the rising edge + of the signal + bit[11] - LVL = 0, Detects based on the edge + bits[12:14] - AM = 2, Bus cycle mode + bit[15] - TM = 0, Single transfer mode + + dma-names: + oneOf: + - items: + - const: tx + - const: rx + - items: + - const: rt + + '#sound-dai-cells': + const: 0 + + port: + $ref: audio-graph-port.yaml#/definitions/port-base + description: Connection to controller providing I2S signals + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - clock-names + - resets + - '#sound-dai-cells' + +unevaluatedProperties: false + +examples: + - | + #include + #include + + ssi0: ssi@10049c00 { + compatible = "renesas,r9a07g044-ssi", + "renesas,rz-ssi"; + reg = <0x10049c00 0x400>; + interrupts = , + , + ; + interrupt-names = "int_req", "dma_rx", "dma_tx"; + clocks = <&cpg CPG_MOD R9A07G044_SSI0_PCLK2>, + <&cpg CPG_MOD R9A07G044_SSI0_PCLK_SFR>, + <&audio_clk1>, + <&audio_clk2>; + clock-names = "ssi", "ssi_sfr", "audio_clk1", "audio_clk2"; + power-domains = <&cpg>; + resets = <&cpg R9A07G044_SSI0_RST_M2_REG>; + dmas = <&dmac 0x2655>, + <&dmac 0x2656>; + dma-names = "tx", "rx"; + #sound-dai-cells = <0>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml index 5c4578701..5ea0819a2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml @@ -1,153 +1,153 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/samsung,aries-wm8994.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung Aries audio complex with WM8994 codec - -maintainers: - - Jonathan Bakker - -allOf: - - $ref: sound-card-common.yaml# - -properties: - compatible: - enum: - # With FM radio and modem master - - samsung,aries-wm8994 - # Without FM radio and modem slave - - samsung,fascinate4g-wm8994 - - cpu: - type: object - additionalProperties: false - properties: - sound-dai: - minItems: 2 - maxItems: 2 - description: | - phandles to the I2S controller and bluetooth codec, - in that order - required: - - sound-dai - - codec: - additionalProperties: false - type: object - properties: - sound-dai: - maxItems: 1 - description: phandle to the WM8994 CODEC - required: - - sound-dai - - samsung,audio-routing: - $ref: /schemas/types.yaml#/definitions/non-unique-string-array - deprecated: true - description: | - List of the connections between audio - components; each entry is a pair of strings, the first being the - connection's sink, the second being the connection's source; - valid names for sources and sinks are the WM8994's pins (as - documented in its binding), and the jacks on the board - - For samsung,aries-wm8994: HP, SPK, RCV, LINE, Main Mic, Headset Mic, - or FM In - For samsung,fascinate4g-wm8994: HP, SPK, RCV, LINE, Main Mic, - or HeadsetMic - Deprecated, use audio-routing. - - extcon: - description: Extcon phandle for dock detection - - main-micbias-supply: - description: Supply for the micbias on the main mic - - headset-micbias-supply: - description: Supply for the micbias on the headset mic - - earpath-sel-gpios: - maxItems: 1 - description: GPIO for switching between tv-out and mic paths - - headset-detect-gpios: - maxItems: 1 - description: GPIO for detection of headset insertion - - headset-key-gpios: - maxItems: 1 - description: GPIO for detection of headset key press - - io-channels: - maxItems: 1 - description: IO channel to read micbias voltage for headset detection - - io-channel-names: - const: headset-detect - -required: - - compatible - - cpu - - codec - - audio-routing - - extcon - - main-micbias-supply - - headset-micbias-supply - - earpath-sel-gpios - - headset-detect-gpios - - headset-key-gpios - -unevaluatedProperties: false - -examples: - - | - #include - - sound { - compatible = "samsung,fascinate4g-wm8994"; - - model = "Fascinate4G"; - - extcon = <&fsa9480>; - - main-micbias-supply = <&main_micbias_reg>; - headset-micbias-supply = <&headset_micbias_reg>; - - earpath-sel-gpios = <&gpj2 6 GPIO_ACTIVE_HIGH>; - - io-channels = <&adc 3>; - io-channel-names = "headset-detect"; - headset-detect-gpios = <&gph0 6 GPIO_ACTIVE_HIGH>; - headset-key-gpios = <&gph3 6 GPIO_ACTIVE_HIGH>; - - audio-routing = - "HP", "HPOUT1L", - "HP", "HPOUT1R", - - "SPK", "SPKOUTLN", - "SPK", "SPKOUTLP", - - "RCV", "HPOUT2N", - "RCV", "HPOUT2P", - - "LINE", "LINEOUT2N", - "LINE", "LINEOUT2P", - - "IN1LP", "Main Mic", - "IN1LN", "Main Mic", - - "IN1RP", "Headset Mic", - "IN1RN", "Headset Mic"; - - pinctrl-names = "default"; - pinctrl-0 = <&headset_det &earpath_sel>; - - cpu { - sound-dai = <&i2s0>, <&bt_codec>; - }; - - codec { - sound-dai = <&wm8994>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/samsung,aries-wm8994.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Aries audio complex with WM8994 codec + +maintainers: + - Jonathan Bakker + +allOf: + - $ref: sound-card-common.yaml# + +properties: + compatible: + enum: + # With FM radio and modem master + - samsung,aries-wm8994 + # Without FM radio and modem slave + - samsung,fascinate4g-wm8994 + + cpu: + type: object + additionalProperties: false + properties: + sound-dai: + minItems: 2 + maxItems: 2 + description: | + phandles to the I2S controller and bluetooth codec, + in that order + required: + - sound-dai + + codec: + additionalProperties: false + type: object + properties: + sound-dai: + maxItems: 1 + description: phandle to the WM8994 CODEC + required: + - sound-dai + + samsung,audio-routing: + $ref: /schemas/types.yaml#/definitions/non-unique-string-array + deprecated: true + description: | + List of the connections between audio + components; each entry is a pair of strings, the first being the + connection's sink, the second being the connection's source; + valid names for sources and sinks are the WM8994's pins (as + documented in its binding), and the jacks on the board - + For samsung,aries-wm8994: HP, SPK, RCV, LINE, Main Mic, Headset Mic, + or FM In + For samsung,fascinate4g-wm8994: HP, SPK, RCV, LINE, Main Mic, + or HeadsetMic + Deprecated, use audio-routing. + + extcon: + description: Extcon phandle for dock detection + + main-micbias-supply: + description: Supply for the micbias on the main mic + + headset-micbias-supply: + description: Supply for the micbias on the headset mic + + earpath-sel-gpios: + maxItems: 1 + description: GPIO for switching between tv-out and mic paths + + headset-detect-gpios: + maxItems: 1 + description: GPIO for detection of headset insertion + + headset-key-gpios: + maxItems: 1 + description: GPIO for detection of headset key press + + io-channels: + maxItems: 1 + description: IO channel to read micbias voltage for headset detection + + io-channel-names: + const: headset-detect + +required: + - compatible + - cpu + - codec + - audio-routing + - extcon + - main-micbias-supply + - headset-micbias-supply + - earpath-sel-gpios + - headset-detect-gpios + - headset-key-gpios + +unevaluatedProperties: false + +examples: + - | + #include + + sound { + compatible = "samsung,fascinate4g-wm8994"; + + model = "Fascinate4G"; + + extcon = <&fsa9480>; + + main-micbias-supply = <&main_micbias_reg>; + headset-micbias-supply = <&headset_micbias_reg>; + + earpath-sel-gpios = <&gpj2 6 GPIO_ACTIVE_HIGH>; + + io-channels = <&adc 3>; + io-channel-names = "headset-detect"; + headset-detect-gpios = <&gph0 6 GPIO_ACTIVE_HIGH>; + headset-key-gpios = <&gph3 6 GPIO_ACTIVE_HIGH>; + + audio-routing = + "HP", "HPOUT1L", + "HP", "HPOUT1R", + + "SPK", "SPKOUTLN", + "SPK", "SPKOUTLP", + + "RCV", "HPOUT2N", + "RCV", "HPOUT2P", + + "LINE", "LINEOUT2N", + "LINE", "LINEOUT2P", + + "IN1LP", "Main Mic", + "IN1LN", "Main Mic", + + "IN1RP", "Headset Mic", + "IN1RN", "Headset Mic"; + + pinctrl-names = "default"; + pinctrl-0 = <&headset_det &earpath_sel>; + + cpu { + sound-dai = <&i2s0>, <&bt_codec>; + }; + + codec { + sound-dai = <&wm8994>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml index 28eebfa8f..69ddfd4af 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml @@ -1,145 +1,145 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/samsung,midas-audio.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung Midas audio complex with WM1811 codec - -maintainers: - - Sylwester Nawrocki - -allOf: - - $ref: sound-card-common.yaml# - -properties: - compatible: - const: samsung,midas-audio - - cpu: - type: object - additionalProperties: false - properties: - sound-dai: - maxItems: 1 - description: phandle to the I2S controller - required: - - sound-dai - - codec: - type: object - additionalProperties: false - properties: - sound-dai: - maxItems: 1 - description: phandle to the WM1811 CODEC - required: - - sound-dai - - samsung,audio-routing: - deprecated: true - $ref: /schemas/types.yaml#/definitions/non-unique-string-array - description: | - List of the connections between audio components; each entry is - a pair of strings, the first being the connection's sink, the second - being the connection's source; valid names for sources and sinks are - the WM1811's pins (as documented in its binding), and the jacks - on the board: HP, SPK, Main Mic, Sub Mic, Headset Mic. - Deprecated, use audio-routing. - - mic-bias-supply: - description: Supply for the micbias on the Main microphone - - submic-bias-supply: - description: Supply for the micbias on the Sub microphone - - headset-mic-bias-supply: - description: Supply for the micbias on the Headset microphone - - fm-sel-gpios: - maxItems: 1 - description: GPIO pin for FM selection - - lineout-sel-gpios: - maxItems: 1 - description: GPIO pin for line out selection - - headset-detect-gpios: - maxItems: 1 - description: GPIO for detection of headset insertion - - headset-key-gpios: - maxItems: 1 - description: GPIO for detection of headset key press - - io-channels: - maxItems: 1 - description: IO channel to read micbias voltage for headset detection - - io-channel-names: - const: headset-detect - - samsung,headset-4pole-threshold-microvolt: - minItems: 2 - maxItems: 2 - description: - Array containing minimum and maximum IO channel value for 4-pole - (with microphone/button) headsets. If the IO channel value is - outside of this range, a 3-pole headset is assumed. - - samsung,headset-button-threshold-microvolt: - minItems: 3 - maxItems: 3 - description: | - Array of minimum (inclusive) IO channel values for headset button - detection, in order: "Media", "Volume Up" and "Volume Down". - -required: - - compatible - - cpu - - codec - - audio-routing - - mic-bias-supply - - submic-bias-supply - -unevaluatedProperties: false - -examples: - - | - #include - - sound { - compatible = "samsung,midas-audio"; - model = "Midas"; - - fm-sel-gpios = <&gpaa0 3 GPIO_ACTIVE_HIGH>; - - mic-bias-supply = <&mic_bias_reg>; - submic-bias-supply = <&submic_bias_reg>; - - audio-routing = - "HP", "HPOUT1L", - "HP", "HPOUT1R", - - "SPK", "SPKOUTLN", - "SPK", "SPKOUTLP", - "SPK", "SPKOUTRN", - "SPK", "SPKOUTRP", - - "RCV", "HPOUT2N", - "RCV", "HPOUT2P", - - "IN1LP", "Main Mic", - "IN1LN", "Main Mic", - "IN1RP", "Sub Mic", - "IN1LP", "Sub Mic"; - - cpu { - sound-dai = <&i2s0>; - }; - - codec { - sound-dai = <&wm1811>; - }; - - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/samsung,midas-audio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Midas audio complex with WM1811 codec + +maintainers: + - Sylwester Nawrocki + +allOf: + - $ref: sound-card-common.yaml# + +properties: + compatible: + const: samsung,midas-audio + + cpu: + type: object + additionalProperties: false + properties: + sound-dai: + maxItems: 1 + description: phandle to the I2S controller + required: + - sound-dai + + codec: + type: object + additionalProperties: false + properties: + sound-dai: + maxItems: 1 + description: phandle to the WM1811 CODEC + required: + - sound-dai + + samsung,audio-routing: + deprecated: true + $ref: /schemas/types.yaml#/definitions/non-unique-string-array + description: | + List of the connections between audio components; each entry is + a pair of strings, the first being the connection's sink, the second + being the connection's source; valid names for sources and sinks are + the WM1811's pins (as documented in its binding), and the jacks + on the board: HP, SPK, Main Mic, Sub Mic, Headset Mic. + Deprecated, use audio-routing. + + mic-bias-supply: + description: Supply for the micbias on the Main microphone + + submic-bias-supply: + description: Supply for the micbias on the Sub microphone + + headset-mic-bias-supply: + description: Supply for the micbias on the Headset microphone + + fm-sel-gpios: + maxItems: 1 + description: GPIO pin for FM selection + + lineout-sel-gpios: + maxItems: 1 + description: GPIO pin for line out selection + + headset-detect-gpios: + maxItems: 1 + description: GPIO for detection of headset insertion + + headset-key-gpios: + maxItems: 1 + description: GPIO for detection of headset key press + + io-channels: + maxItems: 1 + description: IO channel to read micbias voltage for headset detection + + io-channel-names: + const: headset-detect + + samsung,headset-4pole-threshold-microvolt: + minItems: 2 + maxItems: 2 + description: + Array containing minimum and maximum IO channel value for 4-pole + (with microphone/button) headsets. If the IO channel value is + outside of this range, a 3-pole headset is assumed. + + samsung,headset-button-threshold-microvolt: + minItems: 3 + maxItems: 3 + description: | + Array of minimum (inclusive) IO channel values for headset button + detection, in order: "Media", "Volume Up" and "Volume Down". + +required: + - compatible + - cpu + - codec + - audio-routing + - mic-bias-supply + - submic-bias-supply + +unevaluatedProperties: false + +examples: + - | + #include + + sound { + compatible = "samsung,midas-audio"; + model = "Midas"; + + fm-sel-gpios = <&gpaa0 3 GPIO_ACTIVE_HIGH>; + + mic-bias-supply = <&mic_bias_reg>; + submic-bias-supply = <&submic_bias_reg>; + + audio-routing = + "HP", "HPOUT1L", + "HP", "HPOUT1R", + + "SPK", "SPKOUTLN", + "SPK", "SPKOUTLP", + "SPK", "SPKOUTRN", + "SPK", "SPKOUTRP", + + "RCV", "HPOUT2N", + "RCV", "HPOUT2P", + + "IN1LP", "Main Mic", + "IN1LN", "Main Mic", + "IN1RP", "Sub Mic", + "IN1LP", "Sub Mic"; + + cpu { + sound-dai = <&i2s0>; + }; + + codec { + sound-dai = <&wm1811>; + }; + + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/samsung-i2s.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/samsung-i2s.yaml index ca5c82a5a..f45f73b50 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/samsung-i2s.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/samsung-i2s.yaml @@ -1,162 +1,162 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/samsung-i2s.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung SoC I2S controller - -maintainers: - - Krzysztof Kozlowski - - Sylwester Nawrocki - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - description: | - samsung,s3c6410-i2s: for 8/16/24bit stereo I2S. - - samsung,s5pv210-i2s: for 8/16/24bit multichannel (5.1) I2S with - secondary FIFO, s/w reset control and internal mux for root clock - source. - - samsung,exynos5420-i2s: for 8/16/24bit multichannel (5.1) I2S for - playback, stereo channel capture, secondary FIFO using internal - or external DMA, s/w reset control, internal mux for root clock - source and 7.1 channel TDM support for playback; TDM (Time division - multiplexing) is to allow transfer of multiple channel audio data on - single data line. - - samsung,exynos7-i2s: with all the available features of Exynos5 I2S. - Exynos7 I2S has 7.1 channel TDM support for capture, secondary FIFO - with only external DMA and more number of root clock sampling - frequencies. - - samsung,exynos7-i2s1: I2S1 on previous samsung platforms supports - stereo channels. Exynos7 I2S1 upgraded to 5.1 multichannel with - slightly modified bit offsets. - - tesla,fsd-i2s: for 8/16/24bit stereo channel I2S for playback and - capture, secondary FIFO using external DMA, s/w reset control, - internal mux for root clock source with all root clock sampling - frequencies supported by Exynos7 I2S and 7.1 channel TDM support - for playback and capture TDM (Time division multiplexing) to allow - transfer of multiple channel audio data on single data line. - oneOf: - - enum: - - samsung,s3c6410-i2s - - samsung,s5pv210-i2s - - samsung,exynos5420-i2s - - samsung,exynos7-i2s - - samsung,exynos7-i2s1 - - tesla,fsd-i2s - - items: - - enum: - - samsung,exynos5433-i2s - - const: samsung,exynos7-i2s - - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - - reg: - maxItems: 1 - - dmas: - minItems: 2 - maxItems: 3 - - dma-names: - oneOf: - - items: - - const: tx - - const: rx - - items: - - const: tx - - const: rx - - const: tx-sec - - clocks: - minItems: 1 - maxItems: 3 - - clock-names: - oneOf: - - items: - - const: iis - - items: # for I2S0 - - const: iis - - const: i2s_opclk0 - - const: i2s_opclk1 - - items: # for I2S1 and I2S2 - - const: iis - - const: i2s_opclk0 - description: | - "iis" is the I2S bus clock and i2s_opclk0, i2s_opclk1 are sources - of the root clock. I2S0 has internal mux to select the source - of root clock and I2S1 and I2S2 doesn't have any such mux. - - "#clock-cells": - const: 1 - - clock-output-names: - deprecated: true - oneOf: - - items: # for I2S0 - - const: i2s_cdclk0 - - items: # for I2S1 - - const: i2s_cdclk1 - - items: # for I2S2 - - const: i2s_cdclk2 - description: Names of the CDCLK I2S output clocks. - - interrupts: - maxItems: 1 - - samsung,idma-addr: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Internal DMA register base address of the audio - subsystem (used in secondary sound source). - - power-domains: - maxItems: 1 - - "#sound-dai-cells": - const: 1 - -required: - - compatible - - reg - - dmas - - dma-names - - clocks - - clock-names - -unevaluatedProperties: false - -examples: - - | - #include - - i2s0: i2s@3830000 { - compatible = "samsung,s5pv210-i2s"; - reg = <0x03830000 0x100>; - dmas = <&pdma0 10>, - <&pdma0 9>, - <&pdma0 8>; - dma-names = "tx", "rx", "tx-sec"; - clocks = <&clock_audss EXYNOS_I2S_BUS>, - <&clock_audss EXYNOS_I2S_BUS>, - <&clock_audss EXYNOS_SCLK_I2S>; - clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; - #clock-cells = <1>; - samsung,idma-addr = <0x03000000>; - pinctrl-names = "default"; - pinctrl-0 = <&i2s0_bus>; - #sound-dai-cells = <1>; - }; +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/samsung-i2s.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung SoC I2S controller + +maintainers: + - Krzysztof Kozlowski + - Sylwester Nawrocki + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + description: | + samsung,s3c6410-i2s: for 8/16/24bit stereo I2S. + + samsung,s5pv210-i2s: for 8/16/24bit multichannel (5.1) I2S with + secondary FIFO, s/w reset control and internal mux for root clock + source. + + samsung,exynos5420-i2s: for 8/16/24bit multichannel (5.1) I2S for + playback, stereo channel capture, secondary FIFO using internal + or external DMA, s/w reset control, internal mux for root clock + source and 7.1 channel TDM support for playback; TDM (Time division + multiplexing) is to allow transfer of multiple channel audio data on + single data line. + + samsung,exynos7-i2s: with all the available features of Exynos5 I2S. + Exynos7 I2S has 7.1 channel TDM support for capture, secondary FIFO + with only external DMA and more number of root clock sampling + frequencies. + + samsung,exynos7-i2s1: I2S1 on previous samsung platforms supports + stereo channels. Exynos7 I2S1 upgraded to 5.1 multichannel with + slightly modified bit offsets. + + tesla,fsd-i2s: for 8/16/24bit stereo channel I2S for playback and + capture, secondary FIFO using external DMA, s/w reset control, + internal mux for root clock source with all root clock sampling + frequencies supported by Exynos7 I2S and 7.1 channel TDM support + for playback and capture TDM (Time division multiplexing) to allow + transfer of multiple channel audio data on single data line. + oneOf: + - enum: + - samsung,s3c6410-i2s + - samsung,s5pv210-i2s + - samsung,exynos5420-i2s + - samsung,exynos7-i2s + - samsung,exynos7-i2s1 + - tesla,fsd-i2s + - items: + - enum: + - samsung,exynos5433-i2s + - const: samsung,exynos7-i2s + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + reg: + maxItems: 1 + + dmas: + minItems: 2 + maxItems: 3 + + dma-names: + oneOf: + - items: + - const: tx + - const: rx + - items: + - const: tx + - const: rx + - const: tx-sec + + clocks: + minItems: 1 + maxItems: 3 + + clock-names: + oneOf: + - items: + - const: iis + - items: # for I2S0 + - const: iis + - const: i2s_opclk0 + - const: i2s_opclk1 + - items: # for I2S1 and I2S2 + - const: iis + - const: i2s_opclk0 + description: | + "iis" is the I2S bus clock and i2s_opclk0, i2s_opclk1 are sources + of the root clock. I2S0 has internal mux to select the source + of root clock and I2S1 and I2S2 doesn't have any such mux. + + "#clock-cells": + const: 1 + + clock-output-names: + deprecated: true + oneOf: + - items: # for I2S0 + - const: i2s_cdclk0 + - items: # for I2S1 + - const: i2s_cdclk1 + - items: # for I2S2 + - const: i2s_cdclk2 + description: Names of the CDCLK I2S output clocks. + + interrupts: + maxItems: 1 + + samsung,idma-addr: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Internal DMA register base address of the audio + subsystem (used in secondary sound source). + + power-domains: + maxItems: 1 + + "#sound-dai-cells": + const: 1 + +required: + - compatible + - reg + - dmas + - dma-names + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + + i2s0: i2s@3830000 { + compatible = "samsung,s5pv210-i2s"; + reg = <0x03830000 0x100>; + dmas = <&pdma0 10>, + <&pdma0 9>, + <&pdma0 8>; + dma-names = "tx", "rx", "tx-sec"; + clocks = <&clock_audss EXYNOS_I2S_BUS>, + <&clock_audss EXYNOS_I2S_BUS>, + <&clock_audss EXYNOS_SCLK_I2S>; + clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; + #clock-cells = <1>; + samsung,idma-addr = <0x03000000>; + pinctrl-names = "default"; + pinctrl-0 = <&i2s0_bus>; + #sound-dai-cells = <1>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/snps,designware-i2s.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/snps,designware-i2s.yaml index 3bbe07d8f..a48d040b0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/snps,designware-i2s.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/snps,designware-i2s.yaml @@ -1,197 +1,197 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/snps,designware-i2s.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: DesignWare I2S controller - -maintainers: - - Jose Abreu - -properties: - compatible: - oneOf: - - items: - - const: canaan,k210-i2s - - const: snps,designware-i2s - - enum: - - snps,designware-i2s - - starfive,jh7110-i2stx0 - - starfive,jh7110-i2stx1 - - starfive,jh7110-i2srx - - reg: - maxItems: 1 - - interrupts: - description: | - The interrupt line number for the I2S controller. Add this - parameter if the I2S controller that you are using does not - support DMA. - maxItems: 1 - - clocks: - items: - - description: Sampling rate reference clock - - description: APB clock - - description: Audio master clock - - description: Inner audio master clock source - - description: External audio master clock source - - description: Bit clock - - description: Left/right channel clock - - description: External bit clock - - description: External left/right channel clock - minItems: 1 - - clock-names: - items: - - const: i2sclk - - const: apb - - const: mclk - - const: mclk_inner - - const: mclk_ext - - const: bclk - - const: lrck - - const: bclk_ext - - const: lrck_ext - minItems: 1 - - resets: - items: - - description: Optional controller resets - - description: controller reset of Sampling rate - minItems: 1 - - dmas: - items: - - description: TX DMA Channel - - description: RX DMA Channel - minItems: 1 - - dma-names: - items: - - const: tx - - const: rx - minItems: 1 - - starfive,syscon: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - - items: - - description: phandle to System Register Controller sys_syscon node. - - description: I2S-rx enabled control offset of SYS_SYSCONSAIF__SYSCFG register. - - description: I2S-rx enabled control mask - description: - The phandle to System Register Controller syscon node and the I2S-rx(ADC) - enabled control offset and mask of SYS_SYSCONSAIF__SYSCFG register. - -allOf: - - $ref: dai-common.yaml# - - if: - properties: - compatible: - contains: - const: canaan,k210-i2s - then: - properties: - "#sound-dai-cells": - const: 1 - else: - properties: - "#sound-dai-cells": - const: 0 - - if: - properties: - compatible: - contains: - const: snps,designware-i2s - then: - properties: - clocks: - maxItems: 1 - clock-names: - maxItems: 1 - resets: - maxItems: 1 - else: - properties: - resets: - minItems: 2 - maxItems: 2 - - if: - properties: - compatible: - contains: - const: starfive,jh7110-i2stx0 - then: - properties: - clocks: - minItems: 5 - maxItems: 5 - clock-names: - minItems: 5 - maxItems: 5 - required: - - resets - - if: - properties: - compatible: - contains: - const: starfive,jh7110-i2stx1 - then: - properties: - clocks: - minItems: 9 - maxItems: 9 - clock-names: - minItems: 9 - maxItems: 9 - required: - - resets - - if: - properties: - compatible: - contains: - const: starfive,jh7110-i2srx - then: - properties: - clocks: - minItems: 9 - maxItems: 9 - clock-names: - minItems: 9 - maxItems: 9 - required: - - resets - - starfive,syscon - else: - properties: - starfive,syscon: false - -required: - - compatible - - reg - - clocks - - clock-names - -oneOf: - - required: - - dmas - - dma-names - - required: - - interrupts - -unevaluatedProperties: false - -examples: - - | - soc_i2s: i2s@7ff90000 { - compatible = "snps,designware-i2s"; - reg = <0x7ff90000 0x1000>; - clocks = <&scpi_i2sclk 0>; - clock-names = "i2sclk"; - #sound-dai-cells = <0>; - dmas = <&dma0 5>; - dma-names = "tx"; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/snps,designware-i2s.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DesignWare I2S controller + +maintainers: + - Jose Abreu + +properties: + compatible: + oneOf: + - items: + - const: canaan,k210-i2s + - const: snps,designware-i2s + - enum: + - snps,designware-i2s + - starfive,jh7110-i2stx0 + - starfive,jh7110-i2stx1 + - starfive,jh7110-i2srx + + reg: + maxItems: 1 + + interrupts: + description: | + The interrupt line number for the I2S controller. Add this + parameter if the I2S controller that you are using does not + support DMA. + maxItems: 1 + + clocks: + items: + - description: Sampling rate reference clock + - description: APB clock + - description: Audio master clock + - description: Inner audio master clock source + - description: External audio master clock source + - description: Bit clock + - description: Left/right channel clock + - description: External bit clock + - description: External left/right channel clock + minItems: 1 + + clock-names: + items: + - const: i2sclk + - const: apb + - const: mclk + - const: mclk_inner + - const: mclk_ext + - const: bclk + - const: lrck + - const: bclk_ext + - const: lrck_ext + minItems: 1 + + resets: + items: + - description: Optional controller resets + - description: controller reset of Sampling rate + minItems: 1 + + dmas: + items: + - description: TX DMA Channel + - description: RX DMA Channel + minItems: 1 + + dma-names: + items: + - const: tx + - const: rx + minItems: 1 + + starfive,syscon: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to System Register Controller sys_syscon node. + - description: I2S-rx enabled control offset of SYS_SYSCONSAIF__SYSCFG register. + - description: I2S-rx enabled control mask + description: + The phandle to System Register Controller syscon node and the I2S-rx(ADC) + enabled control offset and mask of SYS_SYSCONSAIF__SYSCFG register. + +allOf: + - $ref: dai-common.yaml# + - if: + properties: + compatible: + contains: + const: canaan,k210-i2s + then: + properties: + "#sound-dai-cells": + const: 1 + else: + properties: + "#sound-dai-cells": + const: 0 + - if: + properties: + compatible: + contains: + const: snps,designware-i2s + then: + properties: + clocks: + maxItems: 1 + clock-names: + maxItems: 1 + resets: + maxItems: 1 + else: + properties: + resets: + minItems: 2 + maxItems: 2 + - if: + properties: + compatible: + contains: + const: starfive,jh7110-i2stx0 + then: + properties: + clocks: + minItems: 5 + maxItems: 5 + clock-names: + minItems: 5 + maxItems: 5 + required: + - resets + - if: + properties: + compatible: + contains: + const: starfive,jh7110-i2stx1 + then: + properties: + clocks: + minItems: 9 + maxItems: 9 + clock-names: + minItems: 9 + maxItems: 9 + required: + - resets + - if: + properties: + compatible: + contains: + const: starfive,jh7110-i2srx + then: + properties: + clocks: + minItems: 9 + maxItems: 9 + clock-names: + minItems: 9 + maxItems: 9 + required: + - resets + - starfive,syscon + else: + properties: + starfive,syscon: false + +required: + - compatible + - reg + - clocks + - clock-names + +oneOf: + - required: + - dmas + - dma-names + - required: + - interrupts + +unevaluatedProperties: false + +examples: + - | + soc_i2s: i2s@7ff90000 { + compatible = "snps,designware-i2s"; + reg = <0x7ff90000 0x1000>; + clocks = <&scpi_i2sclk 0>; + clock-names = "i2sclk"; + #sound-dai-cells = <0>; + dmas = <&dma0 5>; + dma-names = "tx"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/st,sta32x.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/st,sta32x.txt index 64cf549b1..52265fb75 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/st,sta32x.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/st,sta32x.txt @@ -1,101 +1,101 @@ -STA32X audio CODEC - -The driver for this device only supports I2C. - -Required properties: - - - compatible: "st,sta32x" - - reg: the I2C address of the device for I2C - - reset-gpios: a GPIO spec for the reset pin. If specified, it will be - deasserted before communication to the codec starts. - - - power-down-gpios: a GPIO spec for the power down pin. If specified, - it will be deasserted before communication to the codec - starts. - - - Vdda-supply: regulator spec, providing 3.3V - - Vdd3-supply: regulator spec, providing 3.3V - - Vcc-supply: regulator spec, providing 5V - 26V - -Optional properties: - - - clocks, clock-names: Clock specifier for XTI input clock. - If specified, the clock will be enabled when the codec is probed, - and disabled when it is removed. The 'clock-names' must be set to 'xti'. - - - st,output-conf: number, Selects the output configuration: - 0: 2-channel (full-bridge) power, 2-channel data-out - 1: 2 (half-bridge). 1 (full-bridge) on-board power - 2: 2 Channel (Full-Bridge) Power, 1 Channel FFX - 3: 1 Channel Mono-Parallel - If parameter is missing, mode 0 will be enabled. - This property has to be specified as '/bits/ 8' value. - - - st,ch1-output-mapping: Channel 1 output mapping - - st,ch2-output-mapping: Channel 2 output mapping - - st,ch3-output-mapping: Channel 3 output mapping - 0: Channel 1 - 1: Channel 2 - 2: Channel 3 - If parameter is missing, channel 1 is chosen. - This properties have to be specified as '/bits/ 8' values. - - - st,thermal-warning-recover: - If present, thermal warning recovery is enabled. - - - st,fault-detect-recovery: - If present, fault detect recovery is enabled. - - - st,thermal-warning-adjustment: - If present, thermal warning adjustment is enabled. - - - st,fault-detect-recovery: - If present, then fault recovery will be enabled. - - - st,drop-compensation-ns: number - Only required for "st,ffx-power-output-mode" == - "variable-drop-compensation". - Specifies the drop compensation in nanoseconds. - The value must be in the range of 0..300, and only - multiples of 20 are allowed. Default is 140ns. - - - st,max-power-use-mpcc: - If present, then MPCC bits are used for MPC coefficients, - otherwise standard MPC coefficients are used. - - - st,max-power-corr: - If present, power bridge correction for THD reduction near maximum - power output is enabled. - - - st,am-reduction-mode: - If present, FFX mode runs in AM reduction mode, otherwise normal - FFX mode is used. - - - st,odd-pwm-speed-mode: - If present, PWM speed mode run on odd speed mode (341.3 kHz) on all - channels. If not present, normal PWM spped mode (384 kHz) will be used. - - - st,invalid-input-detect-mute: - If present, automatic invalid input detect mute is enabled. - -Example: - -codec: sta32x@38 { - compatible = "st,sta32x"; - reg = <0x1c>; - clocks = <&clock>; - clock-names = "xti"; - reset-gpios = <&gpio1 19 0>; - power-down-gpios = <&gpio1 16 0>; - st,output-conf = /bits/ 8 <0x3>; // set output to 2-channel - // (full-bridge) power, - // 2-channel data-out - st,ch1-output-mapping = /bits/ 8 <0>; // set channel 1 output ch 1 - st,ch2-output-mapping = /bits/ 8 <0>; // set channel 2 output ch 1 - st,ch3-output-mapping = /bits/ 8 <0>; // set channel 3 output ch 1 - st,max-power-correction; // enables power bridge - // correction for THD reduction - // near maximum power output - st,invalid-input-detect-mute; // mute if no valid digital - // audio signal is provided. -}; +STA32X audio CODEC + +The driver for this device only supports I2C. + +Required properties: + + - compatible: "st,sta32x" + - reg: the I2C address of the device for I2C + - reset-gpios: a GPIO spec for the reset pin. If specified, it will be + deasserted before communication to the codec starts. + + - power-down-gpios: a GPIO spec for the power down pin. If specified, + it will be deasserted before communication to the codec + starts. + + - Vdda-supply: regulator spec, providing 3.3V + - Vdd3-supply: regulator spec, providing 3.3V + - Vcc-supply: regulator spec, providing 5V - 26V + +Optional properties: + + - clocks, clock-names: Clock specifier for XTI input clock. + If specified, the clock will be enabled when the codec is probed, + and disabled when it is removed. The 'clock-names' must be set to 'xti'. + + - st,output-conf: number, Selects the output configuration: + 0: 2-channel (full-bridge) power, 2-channel data-out + 1: 2 (half-bridge). 1 (full-bridge) on-board power + 2: 2 Channel (Full-Bridge) Power, 1 Channel FFX + 3: 1 Channel Mono-Parallel + If parameter is missing, mode 0 will be enabled. + This property has to be specified as '/bits/ 8' value. + + - st,ch1-output-mapping: Channel 1 output mapping + - st,ch2-output-mapping: Channel 2 output mapping + - st,ch3-output-mapping: Channel 3 output mapping + 0: Channel 1 + 1: Channel 2 + 2: Channel 3 + If parameter is missing, channel 1 is chosen. + This properties have to be specified as '/bits/ 8' values. + + - st,thermal-warning-recover: + If present, thermal warning recovery is enabled. + + - st,fault-detect-recovery: + If present, fault detect recovery is enabled. + + - st,thermal-warning-adjustment: + If present, thermal warning adjustment is enabled. + + - st,fault-detect-recovery: + If present, then fault recovery will be enabled. + + - st,drop-compensation-ns: number + Only required for "st,ffx-power-output-mode" == + "variable-drop-compensation". + Specifies the drop compensation in nanoseconds. + The value must be in the range of 0..300, and only + multiples of 20 are allowed. Default is 140ns. + + - st,max-power-use-mpcc: + If present, then MPCC bits are used for MPC coefficients, + otherwise standard MPC coefficients are used. + + - st,max-power-corr: + If present, power bridge correction for THD reduction near maximum + power output is enabled. + + - st,am-reduction-mode: + If present, FFX mode runs in AM reduction mode, otherwise normal + FFX mode is used. + + - st,odd-pwm-speed-mode: + If present, PWM speed mode run on odd speed mode (341.3 kHz) on all + channels. If not present, normal PWM spped mode (384 kHz) will be used. + + - st,invalid-input-detect-mute: + If present, automatic invalid input detect mute is enabled. + +Example: + +codec: sta32x@38 { + compatible = "st,sta32x"; + reg = <0x1c>; + clocks = <&clock>; + clock-names = "xti"; + reset-gpios = <&gpio1 19 0>; + power-down-gpios = <&gpio1 16 0>; + st,output-conf = /bits/ 8 <0x3>; // set output to 2-channel + // (full-bridge) power, + // 2-channel data-out + st,ch1-output-mapping = /bits/ 8 <0>; // set channel 1 output ch 1 + st,ch2-output-mapping = /bits/ 8 <0>; // set channel 2 output ch 1 + st,ch3-output-mapping = /bits/ 8 <0>; // set channel 3 output ch 1 + st,max-power-correction; // enables power bridge + // correction for THD reduction + // near maximum power output + st,invalid-input-detect-mute; // mute if no valid digital + // audio signal is provided. +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/ti,j721e-cpb-audio.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/ti,j721e-cpb-audio.yaml index 8312784b8..20ea5883b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/ti,j721e-cpb-audio.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/ti,j721e-cpb-audio.yaml @@ -1,139 +1,139 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (C) 2020 Texas Instruments Incorporated -# Author: Peter Ujfalusi -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/ti,j721e-cpb-audio.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Texas Instruments J721e Common Processor Board Audio Support - -maintainers: - - Peter Ujfalusi - -description: | - The audio support on the board is using pcm3168a codec connected to McASP10 - serializers in parallel setup. - The pcm3168a SCKI clock is sourced from j721e AUDIO_REFCLK2 pin. - In order to support 48KHz and 44.1KHz family of sampling rates the parent - clock for AUDIO_REFCLK2 needs to be changed between PLL4 (for 48KHz) and - PLL15 (for 44.1KHz). The same PLLs are used for McASP10's AUXCLK clock via - different HSDIVIDER. - - Clocking setup for j721e: - 48KHz family: - PLL4 ---> PLL4_HSDIV0 ---> MCASP10_AUXCLK ---> McASP10.auxclk - |-> PLL4_HSDIV2 ---> AUDIO_REFCLK2 ---> pcm3168a.SCKI - - 44.1KHz family: - PLL15 ---> PLL15_HSDIV0 ---> MCASP10_AUXCLK ---> McASP10.auxclk - |-> PLL15_HSDIV2 ---> AUDIO_REFCLK2 ---> pcm3168a.SCKI - - Clocking setup for j7200: - 48KHz family: - PLL4 ---> PLL4_HSDIV0 ---> MCASP0_AUXCLK ---> McASP0.auxclk - |-> PLL4_HSDIV2 ---> AUDIO_REFCLK2 ---> pcm3168a.SCKI - -properties: - compatible: - enum: - - ti,j721e-cpb-audio - - ti,j7200-cpb-audio - - model: - $ref: /schemas/types.yaml#/definitions/string - description: User specified audio sound card name - - ti,cpb-mcasp: - description: phandle to McASP used on CPB - $ref: /schemas/types.yaml#/definitions/phandle - - ti,cpb-codec: - description: phandle to the pcm3168a codec used on the CPB - $ref: /schemas/types.yaml#/definitions/phandle - - clocks: - minItems: 4 - maxItems: 6 - - clock-names: - minItems: 4 - maxItems: 6 - -required: - - compatible - - model - - ti,cpb-mcasp - - ti,cpb-codec - - clocks - - clock-names - -additionalProperties: false - -allOf: - - if: - properties: - compatible: - contains: - const: ti,j721e-cpb-audio - - then: - properties: - clocks: - items: - - description: AUXCLK clock for McASP used by CPB audio - - description: Parent for CPB_McASP auxclk (for 48KHz) - - description: Parent for CPB_McASP auxclk (for 44.1KHz) - - description: SCKI clock for the pcm3168a codec on CPB - - description: Parent for CPB_SCKI clock (for 48KHz) - - description: Parent for CPB_SCKI clock (for 44.1KHz) - - clock-names: - items: - - const: cpb-mcasp-auxclk - - const: cpb-mcasp-auxclk-48000 - - const: cpb-mcasp-auxclk-44100 - - const: cpb-codec-scki - - const: cpb-codec-scki-48000 - - const: cpb-codec-scki-44100 - - - if: - properties: - compatible: - contains: - const: ti,j7200-cpb-audio - - then: - properties: - clocks: - items: - - description: AUXCLK clock for McASP used by CPB audio - - description: Parent for CPB_McASP auxclk (for 48KHz) - - description: SCKI clock for the pcm3168a codec on CPB - - description: Parent for CPB_SCKI clock (for 48KHz) - - clock-names: - items: - - const: cpb-mcasp-auxclk - - const: cpb-mcasp-auxclk-48000 - - const: cpb-codec-scki - - const: cpb-codec-scki-48000 - -examples: - - |+ - sound { - compatible = "ti,j721e-cpb-audio"; - model = "j721e-cpb"; - - ti,cpb-mcasp = <&mcasp10>; - ti,cpb-codec = <&pcm3168a_1>; - - clocks = <&k3_clks 184 1>, - <&k3_clks 184 2>, <&k3_clks 184 4>, - <&k3_clks 157 371>, - <&k3_clks 157 400>, <&k3_clks 157 401>; - clock-names = "cpb-mcasp-auxclk", - "cpb-mcasp-auxclk-48000", "cpb-mcasp-auxclk-44100", - "cpb-codec-scki", - "cpb-codec-scki-48000", "cpb-codec-scki-44100"; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2020 Texas Instruments Incorporated +# Author: Peter Ujfalusi +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,j721e-cpb-audio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments J721e Common Processor Board Audio Support + +maintainers: + - Peter Ujfalusi + +description: | + The audio support on the board is using pcm3168a codec connected to McASP10 + serializers in parallel setup. + The pcm3168a SCKI clock is sourced from j721e AUDIO_REFCLK2 pin. + In order to support 48KHz and 44.1KHz family of sampling rates the parent + clock for AUDIO_REFCLK2 needs to be changed between PLL4 (for 48KHz) and + PLL15 (for 44.1KHz). The same PLLs are used for McASP10's AUXCLK clock via + different HSDIVIDER. + + Clocking setup for j721e: + 48KHz family: + PLL4 ---> PLL4_HSDIV0 ---> MCASP10_AUXCLK ---> McASP10.auxclk + |-> PLL4_HSDIV2 ---> AUDIO_REFCLK2 ---> pcm3168a.SCKI + + 44.1KHz family: + PLL15 ---> PLL15_HSDIV0 ---> MCASP10_AUXCLK ---> McASP10.auxclk + |-> PLL15_HSDIV2 ---> AUDIO_REFCLK2 ---> pcm3168a.SCKI + + Clocking setup for j7200: + 48KHz family: + PLL4 ---> PLL4_HSDIV0 ---> MCASP0_AUXCLK ---> McASP0.auxclk + |-> PLL4_HSDIV2 ---> AUDIO_REFCLK2 ---> pcm3168a.SCKI + +properties: + compatible: + enum: + - ti,j721e-cpb-audio + - ti,j7200-cpb-audio + + model: + $ref: /schemas/types.yaml#/definitions/string + description: User specified audio sound card name + + ti,cpb-mcasp: + description: phandle to McASP used on CPB + $ref: /schemas/types.yaml#/definitions/phandle + + ti,cpb-codec: + description: phandle to the pcm3168a codec used on the CPB + $ref: /schemas/types.yaml#/definitions/phandle + + clocks: + minItems: 4 + maxItems: 6 + + clock-names: + minItems: 4 + maxItems: 6 + +required: + - compatible + - model + - ti,cpb-mcasp + - ti,cpb-codec + - clocks + - clock-names + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + contains: + const: ti,j721e-cpb-audio + + then: + properties: + clocks: + items: + - description: AUXCLK clock for McASP used by CPB audio + - description: Parent for CPB_McASP auxclk (for 48KHz) + - description: Parent for CPB_McASP auxclk (for 44.1KHz) + - description: SCKI clock for the pcm3168a codec on CPB + - description: Parent for CPB_SCKI clock (for 48KHz) + - description: Parent for CPB_SCKI clock (for 44.1KHz) + + clock-names: + items: + - const: cpb-mcasp-auxclk + - const: cpb-mcasp-auxclk-48000 + - const: cpb-mcasp-auxclk-44100 + - const: cpb-codec-scki + - const: cpb-codec-scki-48000 + - const: cpb-codec-scki-44100 + + - if: + properties: + compatible: + contains: + const: ti,j7200-cpb-audio + + then: + properties: + clocks: + items: + - description: AUXCLK clock for McASP used by CPB audio + - description: Parent for CPB_McASP auxclk (for 48KHz) + - description: SCKI clock for the pcm3168a codec on CPB + - description: Parent for CPB_SCKI clock (for 48KHz) + + clock-names: + items: + - const: cpb-mcasp-auxclk + - const: cpb-mcasp-auxclk-48000 + - const: cpb-codec-scki + - const: cpb-codec-scki-48000 + +examples: + - |+ + sound { + compatible = "ti,j721e-cpb-audio"; + model = "j721e-cpb"; + + ti,cpb-mcasp = <&mcasp10>; + ti,cpb-codec = <&pcm3168a_1>; + + clocks = <&k3_clks 184 1>, + <&k3_clks 184 2>, <&k3_clks 184 4>, + <&k3_clks 157 371>, + <&k3_clks 157 400>, <&k3_clks 157 401>; + clock-names = "cpb-mcasp-auxclk", + "cpb-mcasp-auxclk-48000", "cpb-mcasp-auxclk-44100", + "cpb-codec-scki", + "cpb-codec-scki-48000", "cpb-codec-scki-44100"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/ti,tlv320aic3x.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/ti,tlv320aic3x.yaml index fa916d3fa..206f6d61e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/ti,tlv320aic3x.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/ti,tlv320aic3x.yaml @@ -1,166 +1,166 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -# Copyright (C) 2022 Texas Instruments Incorporated -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/ti,tlv320aic3x.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Texas Instruments TLV320AIC3x Codec - -description: | - TLV320AIC3x are a series of low-power stereo audio codecs with stereo - headphone amplifier, as well as multiple inputs and outputs programmable in - single-ended or fully differential configurations. - - The serial control bus supports SPI or I2C protocols, while the serial audio - data bus is programmable for I2S, left/right-justified, DSP, or TDM modes. - - The following pins can be referred in the sound node's audio routing property: - - CODEC output pins: - LLOUT - RLOUT - MONO_LOUT - HPLOUT - HPROUT - HPLCOM - HPRCOM - - CODEC input pins for TLV320AIC3104: - MIC2L - MIC2R - LINE1L - LINE1R - - CODEC input pins for other compatible codecs: - MIC3L - MIC3R - LINE1L - LINE2L - LINE1R - LINE2R - -maintainers: - - Jai Luthra - -properties: - compatible: - enum: - - ti,tlv320aic3x - - ti,tlv320aic33 - - ti,tlv320aic3007 - - ti,tlv320aic3106 - - ti,tlv320aic3104 - - reg: - maxItems: 1 - - reset-gpios: - maxItems: 1 - description: - GPIO specification for the active low RESET input. - - gpio-reset: - $ref: /schemas/types.yaml#/definitions/uint32-matrix - maxItems: 1 - description: - Deprecated, please use reset-gpios instead. - deprecated: true - - ai3x-gpio-func: - description: AIC3X_GPIO1 & AIC3X_GPIO2 Functionality - $ref: /schemas/types.yaml#/definitions/uint32-array - maxItems: 2 - - ai3x-micbias-vg: - description: MicBias required voltage. If node is omitted then MicBias is powered down. - $ref: /schemas/types.yaml#/definitions/uint32 - oneOf: - - const: 1 - description: MICBIAS output is powered to 2.0V. - - const: 2 - description: MICBIAS output is powered to 2.5V. - - const: 3 - description: MICBIAS output is connected to AVDD. - - ai3x-ocmv: - description: Output Common-Mode Voltage selection. - $ref: /schemas/types.yaml#/definitions/uint32 - oneOf: - - const: 0 - description: 1.35V - - const: 1 - description: 1.5V - - const: 2 - description: 1.65V - - const: 3 - description: 1.8V - - AVDD-supply: - description: Analog DAC voltage. - - IOVDD-supply: - description: I/O voltage. - - DRVDD-supply: - description: ADC analog and output driver voltage. - - DVDD-supply: - description: Digital core voltage. - - '#sound-dai-cells': - const: 0 - - clocks: - maxItems: 1 - - port: - $ref: audio-graph-port.yaml# - unevaluatedProperties: false - -required: - - compatible - - reg - -additionalProperties: false - -examples: - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - tlv320aic3x_i2c: audio-codec@1b { - compatible = "ti,tlv320aic3x"; - reg = <0x1b>; - - reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; - - AVDD-supply = <®ulator>; - IOVDD-supply = <®ulator>; - DRVDD-supply = <®ulator>; - DVDD-supply = <®ulator>; - }; - }; - - - | - #include - spi { - #address-cells = <1>; - #size-cells = <0>; - - tlv320aic3x_spi: audio-codec@0 { - compatible = "ti,tlv320aic3x"; - reg = <0>; /* CS number */ - #sound-dai-cells = <0>; - - AVDD-supply = <®ulator>; - IOVDD-supply = <®ulator>; - DRVDD-supply = <®ulator>; - DVDD-supply = <®ulator>; - ai3x-ocmv = <0>; - }; - }; - -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +# Copyright (C) 2022 Texas Instruments Incorporated +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,tlv320aic3x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TLV320AIC3x Codec + +description: | + TLV320AIC3x are a series of low-power stereo audio codecs with stereo + headphone amplifier, as well as multiple inputs and outputs programmable in + single-ended or fully differential configurations. + + The serial control bus supports SPI or I2C protocols, while the serial audio + data bus is programmable for I2S, left/right-justified, DSP, or TDM modes. + + The following pins can be referred in the sound node's audio routing property: + + CODEC output pins: + LLOUT + RLOUT + MONO_LOUT + HPLOUT + HPROUT + HPLCOM + HPRCOM + + CODEC input pins for TLV320AIC3104: + MIC2L + MIC2R + LINE1L + LINE1R + + CODEC input pins for other compatible codecs: + MIC3L + MIC3R + LINE1L + LINE2L + LINE1R + LINE2R + +maintainers: + - Jai Luthra + +properties: + compatible: + enum: + - ti,tlv320aic3x + - ti,tlv320aic33 + - ti,tlv320aic3007 + - ti,tlv320aic3106 + - ti,tlv320aic3104 + + reg: + maxItems: 1 + + reset-gpios: + maxItems: 1 + description: + GPIO specification for the active low RESET input. + + gpio-reset: + $ref: /schemas/types.yaml#/definitions/uint32-matrix + maxItems: 1 + description: + Deprecated, please use reset-gpios instead. + deprecated: true + + ai3x-gpio-func: + description: AIC3X_GPIO1 & AIC3X_GPIO2 Functionality + $ref: /schemas/types.yaml#/definitions/uint32-array + maxItems: 2 + + ai3x-micbias-vg: + description: MicBias required voltage. If node is omitted then MicBias is powered down. + $ref: /schemas/types.yaml#/definitions/uint32 + oneOf: + - const: 1 + description: MICBIAS output is powered to 2.0V. + - const: 2 + description: MICBIAS output is powered to 2.5V. + - const: 3 + description: MICBIAS output is connected to AVDD. + + ai3x-ocmv: + description: Output Common-Mode Voltage selection. + $ref: /schemas/types.yaml#/definitions/uint32 + oneOf: + - const: 0 + description: 1.35V + - const: 1 + description: 1.5V + - const: 2 + description: 1.65V + - const: 3 + description: 1.8V + + AVDD-supply: + description: Analog DAC voltage. + + IOVDD-supply: + description: I/O voltage. + + DRVDD-supply: + description: ADC analog and output driver voltage. + + DVDD-supply: + description: Digital core voltage. + + '#sound-dai-cells': + const: 0 + + clocks: + maxItems: 1 + + port: + $ref: audio-graph-port.yaml# + unevaluatedProperties: false + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + tlv320aic3x_i2c: audio-codec@1b { + compatible = "ti,tlv320aic3x"; + reg = <0x1b>; + + reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; + + AVDD-supply = <®ulator>; + IOVDD-supply = <®ulator>; + DRVDD-supply = <®ulator>; + DVDD-supply = <®ulator>; + }; + }; + + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + tlv320aic3x_spi: audio-codec@0 { + compatible = "ti,tlv320aic3x"; + reg = <0>; /* CS number */ + #sound-dai-cells = <0>; + + AVDD-supply = <®ulator>; + IOVDD-supply = <®ulator>; + DRVDD-supply = <®ulator>; + DVDD-supply = <®ulator>; + ai3x-ocmv = <0>; + }; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/wlf,arizona.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/wlf,arizona.yaml index 01bf6131a..8156f30ea 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/wlf,arizona.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/wlf,arizona.yaml @@ -1,119 +1,119 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/wlf,arizona.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs - -maintainers: - - patches@opensource.cirrus.com - -description: | - These devices are audio SoCs with extensive digital capabilities and a range - of analogue I/O. - - This document lists sound specific bindings, see the primary binding - document ../mfd/arizona.yaml - -allOf: - - $ref: dai-common.yaml# - -properties: - '#sound-dai-cells': - description: - The first cell indicating the audio interface. - const: 1 - - wlf,inmode: - description: - A list of INn_MODE register values, where n is the number of input - signals. Valid values are 0 (Differential), 1 (Single-ended) and - 2 (Digital Microphone). If absent, INn_MODE registers set to 0 by - default. If present, values must be specified less than or equal - to the number of input signals. If values less than the number of - input signals, elements that have not been specified are set to 0 by - default. Entries are (wm5102, wm5110, wm8280, - wm8997) and (wm8998, wm1814) - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 4 - items: - minimum: 0 - maximum: 2 - default: 0 - - wlf,out-mono: - description: - A list of boolean values indicating whether each output is mono - or stereo. Position within the list indicates the output affected - (eg. First entry in the list corresponds to output 1). A non-zero - value indicates a mono output. If present, the number of values - should be less than or equal to the number of outputs, if less values - are supplied the additional outputs will be treated as stereo. - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 6 - items: - minimum: 0 - maximum: 1 - default: 0 - - wlf,dmic-ref: - description: - DMIC reference voltage source for each input, can be selected from - either MICVDD or one of the MICBIAS's, defines (ARIZONA_DMIC_xxxx) - are provided in dt-bindings/mfd/arizona.h. If present, the number - of values should be less than or equal to the number of inputs, - unspecified inputs will use the chip default. - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 4 - items: - minimum: 0 - maximum: 3 - default: 0 - - wlf,max-channels-clocked: - description: - The maximum number of channels to be clocked on each AIF, useful for - I2S systems with multiple data lines being mastered. Specify one - cell for each AIF to be configured, specify zero for AIFs that should - be handled normally. If present, number of cells must be less than - or equal to the number of AIFs. If less than the number of AIFs, for - cells that have not been specified the corresponding AIFs will be - treated as default setting. - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 3 - items: - default: 0 - - wlf,spk-fmt: - description: - PDM speaker data format, must contain 2 cells (OUT5 and OUT6). See - the datasheet for values. The second cell is ignored for codecs that - do not have OUT6 (wm5102, wm8997, wm8998, wm1814) - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 2 - maxItems: 2 - - wlf,spk-mute: - description: - PDM speaker mute setting, must contain 2 cells (OUT5 and OUT6). See - the datasheet for values. The second cell is ignored for codecs that - do not have OUT6 (wm5102, wm8997, wm8998, wm1814) - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 2 - maxItems: 2 - - wlf,out-volume-limit: - description: - The volume limit value that should be applied to each output - channel. See the datasheet for exact values. Channels are specified - in the order OUT1L, OUT1R, OUT2L, OUT2R, etc. - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 12 - -additionalProperties: true +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/wlf,arizona.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs + +maintainers: + - patches@opensource.cirrus.com + +description: | + These devices are audio SoCs with extensive digital capabilities and a range + of analogue I/O. + + This document lists sound specific bindings, see the primary binding + document ../mfd/arizona.yaml + +allOf: + - $ref: dai-common.yaml# + +properties: + '#sound-dai-cells': + description: + The first cell indicating the audio interface. + const: 1 + + wlf,inmode: + description: + A list of INn_MODE register values, where n is the number of input + signals. Valid values are 0 (Differential), 1 (Single-ended) and + 2 (Digital Microphone). If absent, INn_MODE registers set to 0 by + default. If present, values must be specified less than or equal + to the number of input signals. If values less than the number of + input signals, elements that have not been specified are set to 0 by + default. Entries are (wm5102, wm5110, wm8280, + wm8997) and (wm8998, wm1814) + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 4 + items: + minimum: 0 + maximum: 2 + default: 0 + + wlf,out-mono: + description: + A list of boolean values indicating whether each output is mono + or stereo. Position within the list indicates the output affected + (eg. First entry in the list corresponds to output 1). A non-zero + value indicates a mono output. If present, the number of values + should be less than or equal to the number of outputs, if less values + are supplied the additional outputs will be treated as stereo. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 6 + items: + minimum: 0 + maximum: 1 + default: 0 + + wlf,dmic-ref: + description: + DMIC reference voltage source for each input, can be selected from + either MICVDD or one of the MICBIAS's, defines (ARIZONA_DMIC_xxxx) + are provided in dt-bindings/mfd/arizona.h. If present, the number + of values should be less than or equal to the number of inputs, + unspecified inputs will use the chip default. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 4 + items: + minimum: 0 + maximum: 3 + default: 0 + + wlf,max-channels-clocked: + description: + The maximum number of channels to be clocked on each AIF, useful for + I2S systems with multiple data lines being mastered. Specify one + cell for each AIF to be configured, specify zero for AIFs that should + be handled normally. If present, number of cells must be less than + or equal to the number of AIFs. If less than the number of AIFs, for + cells that have not been specified the corresponding AIFs will be + treated as default setting. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 3 + items: + default: 0 + + wlf,spk-fmt: + description: + PDM speaker data format, must contain 2 cells (OUT5 and OUT6). See + the datasheet for values. The second cell is ignored for codecs that + do not have OUT6 (wm5102, wm8997, wm8998, wm1814) + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 2 + maxItems: 2 + + wlf,spk-mute: + description: + PDM speaker mute setting, must contain 2 cells (OUT5 and OUT6). See + the datasheet for values. The second cell is ignored for codecs that + do not have OUT6 (wm5102, wm8997, wm8998, wm1814) + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 2 + maxItems: 2 + + wlf,out-volume-limit: + description: + The volume limit value that should be applied to each output + channel. See the datasheet for exact values. Channels are specified + in the order OUT1L, OUT1R, OUT2L, OUT2R, etc. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 12 + +additionalProperties: true diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/wlf,wm8994.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/wlf,wm8994.yaml index 881ef6c11..8f045de02 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/wlf,wm8994.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/sound/wlf,wm8994.yaml @@ -1,194 +1,194 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/wlf,wm8994.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Wolfson WM1811/WM8994/WM8958 audio codecs - -maintainers: - - Krzysztof Kozlowski - - patches@opensource.cirrus.com - -description: | - These devices support both I2C and SPI (configured with pin strapping on the - board). - - Pins on the device (for linking into audio routes): - IN1LN, IN1LP, IN2LN, IN2LP:VXRN, IN1RN, IN1RP, IN2RN, IN2RP:VXRP, SPKOUTLP, - SPKOUTLN, SPKOUTRP, SPKOUTRN, HPOUT1L, HPOUT1R, HPOUT2P, HPOUT2N, LINEOUT1P, - LINEOUT1N, LINEOUT2P, LINEOUT2N. - -properties: - compatible: - enum: - - wlf,wm1811 - - wlf,wm8994 - - wlf,wm8958 - - reg: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 2 - - clock-names: - minItems: 1 - items: - - const: MCLK1 - - const: MCLK2 - - gpio-controller: true - - '#gpio-cells': - const: 2 - - interrupts: - maxItems: 1 - - interrupt-controller: true - - '#interrupt-cells': - const: 2 - description: - The first cell is the IRQ number. The second cell is the flags, encoded - as the trigger masks. - - AVDD1-supply: true - AVDD2-supply: true - CPVDD-supply: true - DBVDD-supply: true - DBVDD1-supply: true - DBVDD2-supply: true - DBVDD3-supply: true - DCVDD-supply: true - LDO1VDD-supply: true - LDO2VDD-supply: true - SPKVDD1-supply: true - SPKVDD2-supply: true - - '#sound-dai-cells': - const: 0 - - wlf,gpio-cfg: - $ref: /schemas/types.yaml#/definitions/uint32-array - maxItems: 11 - description: - A list of GPIO configuration register values. If absent, no configuration - of these registers is performed. If any value is over 0xffff then the - register will be left as default. If present 11 values must be supplied. - - wlf,micbias-cfg: - $ref: /schemas/types.yaml#/definitions/uint32-array - maxItems: 2 - description: - Two MICBIAS register values for WM1811 or WM8958. If absent the register - defaults will be used. - - wlf,ldo1ena-gpios: - maxItems: 1 - description: - Control of LDO1ENA input to device. - - wlf,ldo2ena-gpios: - maxItems: 1 - description: - Control of LDO2ENA input to device. - - wlf,lineout1-se: - type: boolean - description: - LINEOUT1 is in single ended mode. - - wlf,lineout2-se: - type: boolean - description: - INEOUT2 is in single ended mode. - - wlf,lineout1-feedback: - type: boolean - description: - LINEOUT1 has common mode feedback connected. - - wlf,lineout2-feedback: - type: boolean - description: - LINEOUT2 has common mode feedback connected. - - wlf,ldoena-always-driven: - type: boolean - description: - LDOENA is always driven. - - wlf,spkmode-pu: - type: boolean - description: - Enable the internal pull-up resistor on the SPKMODE pin. - - wlf,csnaddr-pd: - type: boolean - description: - Enable the internal pull-down resistor on the CS/ADDR pin. - -required: - - compatible - - reg - - AVDD2-supply - - CPVDD-supply - - SPKVDD1-supply - - SPKVDD2-supply - -allOf: - - $ref: dai-common.yaml# - - if: - properties: - compatible: - enum: - - wlf,wm1811 - - wlf,wm8958 - then: - properties: - DBVDD-supply: false - LDO2VDD-supply: false - required: - - DBVDD1-supply - - DBVDD2-supply - - DBVDD3-supply - else: - properties: - DBVDD1-supply: false - DBVDD2-supply: false - DBVDD3-supply: false - required: - - DBVDD-supply - -unevaluatedProperties: false - -examples: - - | - #include - - i2c { - #address-cells = <1>; - #size-cells = <0>; - - audio-codec@1a { - compatible = "wlf,wm1811"; - reg = <0x1a>; - clocks = <&i2s0 0>; - clock-names = "MCLK1"; - - AVDD2-supply = <&main_dc_reg>; - CPVDD-supply = <&main_dc_reg>; - DBVDD1-supply = <&main_dc_reg>; - DBVDD2-supply = <&main_dc_reg>; - DBVDD3-supply = <&main_dc_reg>; - LDO1VDD-supply = <&main_dc_reg>; - SPKVDD1-supply = <&main_dc_reg>; - SPKVDD2-supply = <&main_dc_reg>; - - wlf,ldo1ena-gpios = <&gpb0 0 GPIO_ACTIVE_HIGH>; - wlf,ldo2ena-gpios = <&gpb0 1 GPIO_ACTIVE_HIGH>; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/wlf,wm8994.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Wolfson WM1811/WM8994/WM8958 audio codecs + +maintainers: + - Krzysztof Kozlowski + - patches@opensource.cirrus.com + +description: | + These devices support both I2C and SPI (configured with pin strapping on the + board). + + Pins on the device (for linking into audio routes): + IN1LN, IN1LP, IN2LN, IN2LP:VXRN, IN1RN, IN1RP, IN2RN, IN2RP:VXRP, SPKOUTLP, + SPKOUTLN, SPKOUTRP, SPKOUTRN, HPOUT1L, HPOUT1R, HPOUT2P, HPOUT2N, LINEOUT1P, + LINEOUT1N, LINEOUT2P, LINEOUT2N. + +properties: + compatible: + enum: + - wlf,wm1811 + - wlf,wm8994 + - wlf,wm8958 + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + items: + - const: MCLK1 + - const: MCLK2 + + gpio-controller: true + + '#gpio-cells': + const: 2 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + description: + The first cell is the IRQ number. The second cell is the flags, encoded + as the trigger masks. + + AVDD1-supply: true + AVDD2-supply: true + CPVDD-supply: true + DBVDD-supply: true + DBVDD1-supply: true + DBVDD2-supply: true + DBVDD3-supply: true + DCVDD-supply: true + LDO1VDD-supply: true + LDO2VDD-supply: true + SPKVDD1-supply: true + SPKVDD2-supply: true + + '#sound-dai-cells': + const: 0 + + wlf,gpio-cfg: + $ref: /schemas/types.yaml#/definitions/uint32-array + maxItems: 11 + description: + A list of GPIO configuration register values. If absent, no configuration + of these registers is performed. If any value is over 0xffff then the + register will be left as default. If present 11 values must be supplied. + + wlf,micbias-cfg: + $ref: /schemas/types.yaml#/definitions/uint32-array + maxItems: 2 + description: + Two MICBIAS register values for WM1811 or WM8958. If absent the register + defaults will be used. + + wlf,ldo1ena-gpios: + maxItems: 1 + description: + Control of LDO1ENA input to device. + + wlf,ldo2ena-gpios: + maxItems: 1 + description: + Control of LDO2ENA input to device. + + wlf,lineout1-se: + type: boolean + description: + LINEOUT1 is in single ended mode. + + wlf,lineout2-se: + type: boolean + description: + INEOUT2 is in single ended mode. + + wlf,lineout1-feedback: + type: boolean + description: + LINEOUT1 has common mode feedback connected. + + wlf,lineout2-feedback: + type: boolean + description: + LINEOUT2 has common mode feedback connected. + + wlf,ldoena-always-driven: + type: boolean + description: + LDOENA is always driven. + + wlf,spkmode-pu: + type: boolean + description: + Enable the internal pull-up resistor on the SPKMODE pin. + + wlf,csnaddr-pd: + type: boolean + description: + Enable the internal pull-down resistor on the CS/ADDR pin. + +required: + - compatible + - reg + - AVDD2-supply + - CPVDD-supply + - SPKVDD1-supply + - SPKVDD2-supply + +allOf: + - $ref: dai-common.yaml# + - if: + properties: + compatible: + enum: + - wlf,wm1811 + - wlf,wm8958 + then: + properties: + DBVDD-supply: false + LDO2VDD-supply: false + required: + - DBVDD1-supply + - DBVDD2-supply + - DBVDD3-supply + else: + properties: + DBVDD1-supply: false + DBVDD2-supply: false + DBVDD3-supply: false + required: + - DBVDD-supply + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + audio-codec@1a { + compatible = "wlf,wm1811"; + reg = <0x1a>; + clocks = <&i2s0 0>; + clock-names = "MCLK1"; + + AVDD2-supply = <&main_dc_reg>; + CPVDD-supply = <&main_dc_reg>; + DBVDD1-supply = <&main_dc_reg>; + DBVDD2-supply = <&main_dc_reg>; + DBVDD3-supply = <&main_dc_reg>; + LDO1VDD-supply = <&main_dc_reg>; + SPKVDD1-supply = <&main_dc_reg>; + SPKVDD2-supply = <&main_dc_reg>; + + wlf,ldo1ena-gpios = <&gpb0 0 GPIO_ACTIVE_HIGH>; + wlf,ldo2ena-gpios = <&gpb0 1 GPIO_ACTIVE_HIGH>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/brcm,bcm63xx-hsspi.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/brcm,bcm63xx-hsspi.yaml index 54bda76af..655497858 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/brcm,bcm63xx-hsspi.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/brcm,bcm63xx-hsspi.yaml @@ -1,134 +1,134 @@ -# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/spi/brcm,bcm63xx-hsspi.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Broadcom Broadband SoC High Speed SPI controller - -maintainers: - - William Zhang - - Kursad Oney - - Jonas Gorski - -description: | - Broadcom Broadband SoC supports High Speed SPI master controller since the - early MIPS based chips such as BCM6328 and BCM63268. This initial rev 1.0 - controller was carried over to recent ARM based chips, such as BCM63138, - BCM4908 and BCM6858. The old MIPS based chip should continue to use the - brcm,bcm6328-hsspi compatible string. The recent ARM based chip is required to - use the brcm,bcmbca-hsspi-v1.0 as part of its compatible string list as - defined below to match the specific chip along with ip revision info. - - This rev 1.0 controller has a limitation that can not keep the chip select line - active between the SPI transfers within the same SPI message. This can - terminate the transaction to some SPI devices prematurely. The issue can be - worked around by either the controller's prepend mode or using the dummy chip - select workaround. Driver automatically picks the suitable mode based on - transfer type so it is transparent to the user. - - The newer SoCs such as BCM6756, BCM4912 and BCM6855 include an updated SPI - controller rev 1.1 that add the capability to allow the driver to control chip - select explicitly. This solves the issue in the old controller. - -properties: - compatible: - oneOf: - - const: brcm,bcm6328-hsspi - - items: - - enum: - - brcm,bcm47622-hsspi - - brcm,bcm4908-hsspi - - brcm,bcm63138-hsspi - - brcm,bcm63146-hsspi - - brcm,bcm63148-hsspi - - brcm,bcm63158-hsspi - - brcm,bcm63178-hsspi - - brcm,bcm6846-hsspi - - brcm,bcm6856-hsspi - - brcm,bcm6858-hsspi - - brcm,bcm6878-hsspi - - const: brcm,bcmbca-hsspi-v1.0 - - items: - - enum: - - brcm,bcm4912-hsspi - - brcm,bcm6756-hsspi - - brcm,bcm6813-hsspi - - brcm,bcm6855-hsspi - - const: brcm,bcmbca-hsspi-v1.1 - - reg: - items: - - description: main registers - - description: miscellaneous control registers - minItems: 1 - - reg-names: - items: - - const: hsspi - - const: spim-ctrl - minItems: 1 - - clocks: - items: - - description: SPI master reference clock - - description: SPI master pll clock - - clock-names: - items: - - const: hsspi - - const: pll - - interrupts: - maxItems: 1 - -required: - - compatible - - reg - - clocks - - clock-names - - interrupts - -allOf: - - $ref: spi-controller.yaml# - - if: - properties: - compatible: - contains: - enum: - - brcm,bcm6328-hsspi - - brcm,bcmbca-hsspi-v1.0 - then: - properties: - reg: - maxItems: 1 - reg-names: - maxItems: 1 - else: - properties: - reg: - minItems: 2 - maxItems: 2 - reg-names: - minItems: 2 - maxItems: 2 - required: - - reg-names - -unevaluatedProperties: false - -examples: - - | - #include - spi@ff801000 { - compatible = "brcm,bcm6756-hsspi", "brcm,bcmbca-hsspi-v1.1"; - reg = <0xff801000 0x1000>, - <0xff802610 0x4>; - reg-names = "hsspi", "spim-ctrl"; - interrupts = ; - clocks = <&hsspi>, <&hsspi_pll>; - clock-names = "hsspi", "pll"; - num-cs = <8>; - #address-cells = <1>; - #size-cells = <0>; - }; +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/brcm,bcm63xx-hsspi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Broadband SoC High Speed SPI controller + +maintainers: + - William Zhang + - Kursad Oney + - Jonas Gorski + +description: | + Broadcom Broadband SoC supports High Speed SPI master controller since the + early MIPS based chips such as BCM6328 and BCM63268. This initial rev 1.0 + controller was carried over to recent ARM based chips, such as BCM63138, + BCM4908 and BCM6858. The old MIPS based chip should continue to use the + brcm,bcm6328-hsspi compatible string. The recent ARM based chip is required to + use the brcm,bcmbca-hsspi-v1.0 as part of its compatible string list as + defined below to match the specific chip along with ip revision info. + + This rev 1.0 controller has a limitation that can not keep the chip select line + active between the SPI transfers within the same SPI message. This can + terminate the transaction to some SPI devices prematurely. The issue can be + worked around by either the controller's prepend mode or using the dummy chip + select workaround. Driver automatically picks the suitable mode based on + transfer type so it is transparent to the user. + + The newer SoCs such as BCM6756, BCM4912 and BCM6855 include an updated SPI + controller rev 1.1 that add the capability to allow the driver to control chip + select explicitly. This solves the issue in the old controller. + +properties: + compatible: + oneOf: + - const: brcm,bcm6328-hsspi + - items: + - enum: + - brcm,bcm47622-hsspi + - brcm,bcm4908-hsspi + - brcm,bcm63138-hsspi + - brcm,bcm63146-hsspi + - brcm,bcm63148-hsspi + - brcm,bcm63158-hsspi + - brcm,bcm63178-hsspi + - brcm,bcm6846-hsspi + - brcm,bcm6856-hsspi + - brcm,bcm6858-hsspi + - brcm,bcm6878-hsspi + - const: brcm,bcmbca-hsspi-v1.0 + - items: + - enum: + - brcm,bcm4912-hsspi + - brcm,bcm6756-hsspi + - brcm,bcm6813-hsspi + - brcm,bcm6855-hsspi + - const: brcm,bcmbca-hsspi-v1.1 + + reg: + items: + - description: main registers + - description: miscellaneous control registers + minItems: 1 + + reg-names: + items: + - const: hsspi + - const: spim-ctrl + minItems: 1 + + clocks: + items: + - description: SPI master reference clock + - description: SPI master pll clock + + clock-names: + items: + - const: hsspi + - const: pll + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +allOf: + - $ref: spi-controller.yaml# + - if: + properties: + compatible: + contains: + enum: + - brcm,bcm6328-hsspi + - brcm,bcmbca-hsspi-v1.0 + then: + properties: + reg: + maxItems: 1 + reg-names: + maxItems: 1 + else: + properties: + reg: + minItems: 2 + maxItems: 2 + reg-names: + minItems: 2 + maxItems: 2 + required: + - reg-names + +unevaluatedProperties: false + +examples: + - | + #include + spi@ff801000 { + compatible = "brcm,bcm6756-hsspi", "brcm,bcmbca-hsspi-v1.1"; + reg = <0xff801000 0x1000>, + <0xff802610 0x4>; + reg-names = "hsspi", "spim-ctrl"; + interrupts = ; + clocks = <&hsspi>, <&hsspi_pll>; + clock-names = "hsspi", "pll"; + num-cs = <8>; + #address-cells = <1>; + #size-cells = <0>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml index 929873476..d48ecd6cd 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml @@ -1,176 +1,176 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/spi/cdns,qspi-nor.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Cadence Quad SPI controller - -maintainers: - - Vaishnav Achath - -allOf: - - $ref: spi-controller.yaml# - - if: - properties: - compatible: - contains: - const: xlnx,versal-ospi-1.0 - then: - required: - - power-domains - - if: - properties: - compatible: - contains: - const: starfive,jh7110-qspi - then: - properties: - resets: - minItems: 2 - maxItems: 3 - - reset-names: - minItems: 2 - maxItems: 3 - items: - enum: [ qspi, qspi-ocp, rstc_ref ] - - else: - properties: - resets: - maxItems: 2 - - reset-names: - minItems: 1 - maxItems: 2 - items: - enum: [ qspi, qspi-ocp ] - - if: - properties: - compatible: - contains: - const: amd,pensando-elba-qspi - then: - properties: - cdns,fifo-depth: - enum: [ 128, 256, 1024 ] - default: 1024 - else: - properties: - cdns,fifo-depth: - enum: [ 128, 256 ] - default: 128 - -properties: - compatible: - oneOf: - - items: - - enum: - - amd,pensando-elba-qspi - - intel,lgm-qspi - - intel,socfpga-qspi - - mobileye,eyeq5-ospi - - starfive,jh7110-qspi - - ti,am654-ospi - - ti,k2g-qspi - - xlnx,versal-ospi-1.0 - - const: cdns,qspi-nor - - const: cdns,qspi-nor - - reg: - items: - - description: the controller register set - - description: the controller data area - - interrupts: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 3 - - clock-names: - oneOf: - - items: - - const: ref - - items: - - const: ref - - const: ahb - - const: apb - - cdns,fifo-depth: - description: - Size of the data FIFO in words. - $ref: /schemas/types.yaml#/definitions/uint32 - - cdns,fifo-width: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Bus width of the data FIFO in bytes. - default: 4 - - cdns,trigger-address: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - 32-bit indirect AHB trigger address. - - cdns,is-decoded-cs: - type: boolean - description: - Flag to indicate whether decoder is used to select different chip select - for different memory regions. - - cdns,rclk-en: - type: boolean - description: - Flag to indicate that QSPI return clock is used to latch the read - data rather than the QSPI clock. Make sure that QSPI return clock - is populated on the board before using this property. - - power-domains: - maxItems: 1 - - resets: - minItems: 2 - maxItems: 3 - - reset-names: - minItems: 2 - maxItems: 3 - items: - enum: [ qspi, qspi-ocp, rstc_ref ] - -required: - - compatible - - reg - - interrupts - - clocks - - cdns,fifo-width - - cdns,trigger-address - - '#address-cells' - - '#size-cells' - -unevaluatedProperties: false - -examples: - - | - qspi: spi@ff705000 { - compatible = "cdns,qspi-nor"; - #address-cells = <1>; - #size-cells = <0>; - reg = <0xff705000 0x1000>, - <0xffa00000 0x1000>; - interrupts = <0 151 4>; - clocks = <&qspi_clk>; - cdns,fifo-depth = <128>; - cdns,fifo-width = <4>; - cdns,trigger-address = <0x00000000>; - resets = <&rst 0x1>, <&rst 0x2>; - reset-names = "qspi", "qspi-ocp"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0x0>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/cdns,qspi-nor.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cadence Quad SPI controller + +maintainers: + - Vaishnav Achath + +allOf: + - $ref: spi-controller.yaml# + - if: + properties: + compatible: + contains: + const: xlnx,versal-ospi-1.0 + then: + required: + - power-domains + - if: + properties: + compatible: + contains: + const: starfive,jh7110-qspi + then: + properties: + resets: + minItems: 2 + maxItems: 3 + + reset-names: + minItems: 2 + maxItems: 3 + items: + enum: [ qspi, qspi-ocp, rstc_ref ] + + else: + properties: + resets: + maxItems: 2 + + reset-names: + minItems: 1 + maxItems: 2 + items: + enum: [ qspi, qspi-ocp ] + - if: + properties: + compatible: + contains: + const: amd,pensando-elba-qspi + then: + properties: + cdns,fifo-depth: + enum: [ 128, 256, 1024 ] + default: 1024 + else: + properties: + cdns,fifo-depth: + enum: [ 128, 256 ] + default: 128 + +properties: + compatible: + oneOf: + - items: + - enum: + - amd,pensando-elba-qspi + - intel,lgm-qspi + - intel,socfpga-qspi + - mobileye,eyeq5-ospi + - starfive,jh7110-qspi + - ti,am654-ospi + - ti,k2g-qspi + - xlnx,versal-ospi-1.0 + - const: cdns,qspi-nor + - const: cdns,qspi-nor + + reg: + items: + - description: the controller register set + - description: the controller data area + + interrupts: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 3 + + clock-names: + oneOf: + - items: + - const: ref + - items: + - const: ref + - const: ahb + - const: apb + + cdns,fifo-depth: + description: + Size of the data FIFO in words. + $ref: /schemas/types.yaml#/definitions/uint32 + + cdns,fifo-width: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Bus width of the data FIFO in bytes. + default: 4 + + cdns,trigger-address: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + 32-bit indirect AHB trigger address. + + cdns,is-decoded-cs: + type: boolean + description: + Flag to indicate whether decoder is used to select different chip select + for different memory regions. + + cdns,rclk-en: + type: boolean + description: + Flag to indicate that QSPI return clock is used to latch the read + data rather than the QSPI clock. Make sure that QSPI return clock + is populated on the board before using this property. + + power-domains: + maxItems: 1 + + resets: + minItems: 2 + maxItems: 3 + + reset-names: + minItems: 2 + maxItems: 3 + items: + enum: [ qspi, qspi-ocp, rstc_ref ] + +required: + - compatible + - reg + - interrupts + - clocks + - cdns,fifo-width + - cdns,trigger-address + - '#address-cells' + - '#size-cells' + +unevaluatedProperties: false + +examples: + - | + qspi: spi@ff705000 { + compatible = "cdns,qspi-nor"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xff705000 0x1000>, + <0xffa00000 0x1000>; + interrupts = <0 151 4>; + clocks = <&qspi_clk>; + cdns,fifo-depth = <128>; + cdns,fifo-width = <4>; + cdns,trigger-address = <0x00000000>; + resets = <&rst 0x1>, <&rst 0x2>; + reset-names = "qspi", "qspi-ocp"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0x0>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/renesas,rspi.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/renesas,rspi.yaml index bdb7ef996..0ef3f8421 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/renesas,rspi.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/renesas,rspi.yaml @@ -1,155 +1,155 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/spi/renesas,rspi.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas (Quad) Serial Peripheral Interface (RSPI/QSPI) - -maintainers: - - Geert Uytterhoeven - -properties: - compatible: - oneOf: - - items: - - enum: - - renesas,rspi-sh7757 # SH7757 - - const: renesas,rspi # Legacy SH - - - items: - - enum: - - renesas,rspi-r7s72100 # RZ/A1H - - renesas,rspi-r7s9210 # RZ/A2 - - renesas,r9a07g043-rspi # RZ/G2UL and RZ/Five - - renesas,r9a07g044-rspi # RZ/G2{L,LC} - - renesas,r9a07g054-rspi # RZ/V2L - - const: renesas,rspi-rz - - - items: - - enum: - - renesas,qspi-r8a7742 # RZ/G1H - - renesas,qspi-r8a7743 # RZ/G1M - - renesas,qspi-r8a7744 # RZ/G1N - - renesas,qspi-r8a7745 # RZ/G1E - - renesas,qspi-r8a77470 # RZ/G1C - - renesas,qspi-r8a7790 # R-Car H2 - - renesas,qspi-r8a7791 # R-Car M2-W - - renesas,qspi-r8a7792 # R-Car V2H - - renesas,qspi-r8a7793 # R-Car M2-N - - renesas,qspi-r8a7794 # R-Car E2 - - const: renesas,qspi # R-Car Gen2 and RZ/G1 - - reg: - maxItems: 1 - - interrupts: - oneOf: - - items: - - description: A combined interrupt - - items: - - description: Error interrupt (SPEI) - - description: Receive Interrupt (SPRI) - - description: Transmit Interrupt (SPTI) - - interrupt-names: - oneOf: - - items: - - const: mux - - items: - - const: error - - const: rx - - const: tx - - clocks: - maxItems: 1 - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - dmas: - minItems: 2 - maxItems: 4 - description: - Must contain a list of pairs of references to DMA specifiers, one for - transmission, and one for reception. - - dma-names: - minItems: 2 - maxItems: 4 - items: - enum: - - tx - - rx - - num-cs: - description: | - Total number of native chip selects. - Hardware limitations related to chip selects: - - When using GPIO chip selects, at least one native chip select must - be left unused, as it will be driven anyway. - minimum: 1 - maximum: 2 - default: 1 - -required: - - compatible - - reg - - interrupts - - clocks - - power-domains - - '#address-cells' - - '#size-cells' - -allOf: - - $ref: spi-controller.yaml# - - if: - properties: - compatible: - contains: - enum: - - renesas,rspi-rz - then: - properties: - interrupts: - minItems: 3 - required: - - interrupt-names - - - if: - properties: - compatible: - contains: - enum: - - renesas,qspi - - renesas,r9a07g043-rspi - - renesas,r9a07g044-rspi - - renesas,r9a07g054-rspi - then: - required: - - resets - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - - qspi: spi@e6b10000 { - compatible = "renesas,qspi-r8a7791", "renesas,qspi"; - reg = <0xe6b10000 0x2c>; - interrupts = ; - clocks = <&cpg CPG_MOD 917>; - dmas = <&dmac0 0x17>, <&dmac0 0x18>, <&dmac1 0x17>, <&dmac1 0x18>; - dma-names = "tx", "rx", "tx", "rx"; - power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; - resets = <&cpg 917>; - num-cs = <1>; - #address-cells = <1>; - #size-cells = <0>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/renesas,rspi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas (Quad) Serial Peripheral Interface (RSPI/QSPI) + +maintainers: + - Geert Uytterhoeven + +properties: + compatible: + oneOf: + - items: + - enum: + - renesas,rspi-sh7757 # SH7757 + - const: renesas,rspi # Legacy SH + + - items: + - enum: + - renesas,rspi-r7s72100 # RZ/A1H + - renesas,rspi-r7s9210 # RZ/A2 + - renesas,r9a07g043-rspi # RZ/G2UL and RZ/Five + - renesas,r9a07g044-rspi # RZ/G2{L,LC} + - renesas,r9a07g054-rspi # RZ/V2L + - const: renesas,rspi-rz + + - items: + - enum: + - renesas,qspi-r8a7742 # RZ/G1H + - renesas,qspi-r8a7743 # RZ/G1M + - renesas,qspi-r8a7744 # RZ/G1N + - renesas,qspi-r8a7745 # RZ/G1E + - renesas,qspi-r8a77470 # RZ/G1C + - renesas,qspi-r8a7790 # R-Car H2 + - renesas,qspi-r8a7791 # R-Car M2-W + - renesas,qspi-r8a7792 # R-Car V2H + - renesas,qspi-r8a7793 # R-Car M2-N + - renesas,qspi-r8a7794 # R-Car E2 + - const: renesas,qspi # R-Car Gen2 and RZ/G1 + + reg: + maxItems: 1 + + interrupts: + oneOf: + - items: + - description: A combined interrupt + - items: + - description: Error interrupt (SPEI) + - description: Receive Interrupt (SPRI) + - description: Transmit Interrupt (SPTI) + + interrupt-names: + oneOf: + - items: + - const: mux + - items: + - const: error + - const: rx + - const: tx + + clocks: + maxItems: 1 + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + dmas: + minItems: 2 + maxItems: 4 + description: + Must contain a list of pairs of references to DMA specifiers, one for + transmission, and one for reception. + + dma-names: + minItems: 2 + maxItems: 4 + items: + enum: + - tx + - rx + + num-cs: + description: | + Total number of native chip selects. + Hardware limitations related to chip selects: + - When using GPIO chip selects, at least one native chip select must + be left unused, as it will be driven anyway. + minimum: 1 + maximum: 2 + default: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - power-domains + - '#address-cells' + - '#size-cells' + +allOf: + - $ref: spi-controller.yaml# + - if: + properties: + compatible: + contains: + enum: + - renesas,rspi-rz + then: + properties: + interrupts: + minItems: 3 + required: + - interrupt-names + + - if: + properties: + compatible: + contains: + enum: + - renesas,qspi + - renesas,r9a07g043-rspi + - renesas,r9a07g044-rspi + - renesas,r9a07g054-rspi + then: + required: + - resets + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + qspi: spi@e6b10000 { + compatible = "renesas,qspi-r8a7791", "renesas,qspi"; + reg = <0xe6b10000 0x2c>; + interrupts = ; + clocks = <&cpg CPG_MOD 917>; + dmas = <&dmac0 0x17>, <&dmac0 0x18>, <&dmac1 0x17>, <&dmac1 0x18>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; + resets = <&cpg 917>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/spi-davinci.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/spi-davinci.txt index 2831784bf..f01288865 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/spi-davinci.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/spi-davinci.txt @@ -1,100 +1,100 @@ -Davinci SPI controller device bindings - -Links on DM: -Keystone 2 - https://www.ti.com/lit/ug/sprugp2a/sprugp2a.pdf -dm644x - https://www.ti.com/lit/ug/sprue32a/sprue32a.pdf -OMAP-L138/da830 - http://www.ti.com/lit/ug/spruh77a/spruh77a.pdf - -Required properties: -- #address-cells: number of cells required to define a chip select - address on the SPI bus. Should be set to 1. -- #size-cells: should be zero. -- compatible: - - "ti,dm6441-spi" for SPI used similar to that on DM644x SoC family - - "ti,da830-spi" for SPI used similar to that on DA8xx SoC family - - "ti,keystone-spi" for SPI used similar to that on Keystone2 SoC - family -- reg: Offset and length of SPI controller register space -- num-cs: Number of chip selects. This includes internal as well as - GPIO chip selects. -- ti,davinci-spi-intr-line: interrupt line used to connect the SPI - IP to the interrupt controller within the SoC. Possible values - are 0 and 1. Manual says one of the two possible interrupt - lines can be tied to the interrupt controller. Set this - based on a specific SoC configuration. -- interrupts: interrupt number mapped to CPU. -- clocks: spi clk phandle - For 66AK2G this property should be set per binding, - Documentation/devicetree/bindings/clock/ti,sci-clk.yaml - -SoC-specific Required Properties: - -The following are mandatory properties for Keystone 2 66AK2G SoCs only: - -- power-domains: Should contain a phandle to a PM domain provider node - and an args specifier containing the SPI device id - value. This property is as per the binding, - -Optional: -- cs-gpios: gpio chip selects - For example to have 3 internal CS and 2 GPIO CS, user could define - cs-gpios = <0>, <0>, <0>, <&gpio1 30 0>, <&gpio1 31 0>; - where first three are internal CS and last two are GPIO CS. - -Optional properties for slave devices: -SPI slave nodes can contain the following properties. -Not all SPI Peripherals from Texas Instruments support this. -Please check SPI peripheral documentation for a device before using these. - -- ti,spi-wdelay : delay between transmission of words - (SPIFMTn.WDELAY, SPIDAT1.WDEL) must be specified in number of SPI module - clock periods. - - delay = WDELAY * SPI_module_clock_period + 2 * SPI_module_clock_period - -Below is timing diagram which shows functional meaning of -"ti,spi-wdelay" parameter. - - +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ -SPI_CLK | | | | | | | | | | | | | | | | - +----------+ +-+ +-+ +-+ +-+ +---------------------------+ +-+ +-+ +- - -SPI_SOMI/SIMO+-----------------+ +----------- - +----------+ word1 +---------------------------+word2 - +-----------------+ +----------- - WDELAY - <--------------------------> - -Example of a NOR flash slave device (n25q032) connected to DaVinci -SPI controller device over the SPI bus. - -spi0:spi@20bf0000 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "ti,dm6446-spi"; - reg = <0x20BF0000 0x1000>; - num-cs = <4>; - ti,davinci-spi-intr-line = <0>; - interrupts = <338>; - clocks = <&clkspi>; - - flash: flash@0 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "st,m25p32"; - spi-max-frequency = <25000000>; - reg = <0>; - ti,spi-wdelay = <8>; - - partition@0 { - label = "u-boot-spl"; - reg = <0x0 0x80000>; - read-only; - }; - - partition@1 { - label = "test"; - reg = <0x80000 0x380000>; - }; - }; -}; +Davinci SPI controller device bindings + +Links on DM: +Keystone 2 - https://www.ti.com/lit/ug/sprugp2a/sprugp2a.pdf +dm644x - https://www.ti.com/lit/ug/sprue32a/sprue32a.pdf +OMAP-L138/da830 - http://www.ti.com/lit/ug/spruh77a/spruh77a.pdf + +Required properties: +- #address-cells: number of cells required to define a chip select + address on the SPI bus. Should be set to 1. +- #size-cells: should be zero. +- compatible: + - "ti,dm6441-spi" for SPI used similar to that on DM644x SoC family + - "ti,da830-spi" for SPI used similar to that on DA8xx SoC family + - "ti,keystone-spi" for SPI used similar to that on Keystone2 SoC + family +- reg: Offset and length of SPI controller register space +- num-cs: Number of chip selects. This includes internal as well as + GPIO chip selects. +- ti,davinci-spi-intr-line: interrupt line used to connect the SPI + IP to the interrupt controller within the SoC. Possible values + are 0 and 1. Manual says one of the two possible interrupt + lines can be tied to the interrupt controller. Set this + based on a specific SoC configuration. +- interrupts: interrupt number mapped to CPU. +- clocks: spi clk phandle + For 66AK2G this property should be set per binding, + Documentation/devicetree/bindings/clock/ti,sci-clk.yaml + +SoC-specific Required Properties: + +The following are mandatory properties for Keystone 2 66AK2G SoCs only: + +- power-domains: Should contain a phandle to a PM domain provider node + and an args specifier containing the SPI device id + value. This property is as per the binding, + +Optional: +- cs-gpios: gpio chip selects + For example to have 3 internal CS and 2 GPIO CS, user could define + cs-gpios = <0>, <0>, <0>, <&gpio1 30 0>, <&gpio1 31 0>; + where first three are internal CS and last two are GPIO CS. + +Optional properties for slave devices: +SPI slave nodes can contain the following properties. +Not all SPI Peripherals from Texas Instruments support this. +Please check SPI peripheral documentation for a device before using these. + +- ti,spi-wdelay : delay between transmission of words + (SPIFMTn.WDELAY, SPIDAT1.WDEL) must be specified in number of SPI module + clock periods. + + delay = WDELAY * SPI_module_clock_period + 2 * SPI_module_clock_period + +Below is timing diagram which shows functional meaning of +"ti,spi-wdelay" parameter. + + +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ +SPI_CLK | | | | | | | | | | | | | | | | + +----------+ +-+ +-+ +-+ +-+ +---------------------------+ +-+ +-+ +- + +SPI_SOMI/SIMO+-----------------+ +----------- + +----------+ word1 +---------------------------+word2 + +-----------------+ +----------- + WDELAY + <--------------------------> + +Example of a NOR flash slave device (n25q032) connected to DaVinci +SPI controller device over the SPI bus. + +spi0:spi@20bf0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "ti,dm6446-spi"; + reg = <0x20BF0000 0x1000>; + num-cs = <4>; + ti,davinci-spi-intr-line = <0>; + interrupts = <338>; + clocks = <&clkspi>; + + flash: flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "st,m25p32"; + spi-max-frequency = <25000000>; + reg = <0>; + ti,spi-wdelay = <8>; + + partition@0 { + label = "u-boot-spl"; + reg = <0x0 0x80000>; + read-only; + }; + + partition@1 { + label = "test"; + reg = <0x80000 0x380000>; + }; + }; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/spi-orion.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/spi-orion.txt index 921c3b821..8434a65fc 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/spi-orion.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/spi-orion.txt @@ -1,79 +1,79 @@ -Marvell Orion SPI device - -Required properties: -- compatible : should be on of the following: - - "marvell,orion-spi" for the Orion, mv78x00, Kirkwood and Dove SoCs - - "marvell,armada-370-spi", for the Armada 370 SoCs - - "marvell,armada-375-spi", for the Armada 375 SoCs - - "marvell,armada-380-spi", for the Armada 38x SoCs - - "marvell,armada-390-spi", for the Armada 39x SoCs - - "marvell,armada-xp-spi", for the Armada XP SoCs -- reg : offset and length of the register set for the device. - This property can optionally have additional entries to configure - the SPI direct access mode that some of the Marvell SoCs support - additionally to the normal indirect access (PIO) mode. The values - for the MBus "target" and "attribute" are defined in the Marvell - SoC "Functional Specifications" Manual in the chapter "Marvell - Core Processor Address Decoding". - The eight register sets following the control registers refer to - chip-select lines 0 through 7 respectively. -- cell-index : Which of multiple SPI controllers is this. -- clocks : pointers to the reference clocks for this device, the first - one is the one used for the clock on the spi bus, the - second one is optional and is the clock used for the - functional part of the controller - -Optional properties: -- interrupts : Is currently not used. -- clock-names : names of used clocks, mandatory if the second clock is - used, the name must be "core", and "axi" (the latter - is only for Armada 7K/8K). - - -Example: - spi@10600 { - compatible = "marvell,orion-spi"; - #address-cells = <1>; - #size-cells = <0>; - cell-index = <0>; - reg = <0x10600 0x28>; - interrupts = <23>; - }; - -Example with SPI direct mode support (optionally): - spi0: spi@10600 { - compatible = "marvell,orion-spi"; - #address-cells = <1>; - #size-cells = <0>; - cell-index = <0>; - reg = , /* control */ - , /* CS0 */ - , /* CS1 */ - , /* CS2 */ - , /* CS3 */ - , /* CS4 */ - , /* CS5 */ - , /* CS6 */ - ; /* CS7 */ - interrupts = <23>; - }; - -To enable the direct mode, the board specific 'ranges' property in the -'soc' node needs to add the entries for the desired SPI controllers -and its chip-selects that are used in the direct mode instead of PIO -mode. Here an example for this (SPI controller 0, device 1 and SPI -controller 1, device 2 are used in direct mode. All other SPI device -are used in the default indirect (PIO) mode): - soc { - /* - * Enable the SPI direct access by configuring an entry - * here in the board-specific ranges property - */ - ranges = , /* internal regs */ - , /* BootROM */ - , /* SPI0-DEV1 */ - ; /* SPI1-DEV2 */ - -For further information on the MBus bindings, please see the MBus -DT documentation: -Documentation/devicetree/bindings/bus/mvebu-mbus.txt +Marvell Orion SPI device + +Required properties: +- compatible : should be on of the following: + - "marvell,orion-spi" for the Orion, mv78x00, Kirkwood and Dove SoCs + - "marvell,armada-370-spi", for the Armada 370 SoCs + - "marvell,armada-375-spi", for the Armada 375 SoCs + - "marvell,armada-380-spi", for the Armada 38x SoCs + - "marvell,armada-390-spi", for the Armada 39x SoCs + - "marvell,armada-xp-spi", for the Armada XP SoCs +- reg : offset and length of the register set for the device. + This property can optionally have additional entries to configure + the SPI direct access mode that some of the Marvell SoCs support + additionally to the normal indirect access (PIO) mode. The values + for the MBus "target" and "attribute" are defined in the Marvell + SoC "Functional Specifications" Manual in the chapter "Marvell + Core Processor Address Decoding". + The eight register sets following the control registers refer to + chip-select lines 0 through 7 respectively. +- cell-index : Which of multiple SPI controllers is this. +- clocks : pointers to the reference clocks for this device, the first + one is the one used for the clock on the spi bus, the + second one is optional and is the clock used for the + functional part of the controller + +Optional properties: +- interrupts : Is currently not used. +- clock-names : names of used clocks, mandatory if the second clock is + used, the name must be "core", and "axi" (the latter + is only for Armada 7K/8K). + + +Example: + spi@10600 { + compatible = "marvell,orion-spi"; + #address-cells = <1>; + #size-cells = <0>; + cell-index = <0>; + reg = <0x10600 0x28>; + interrupts = <23>; + }; + +Example with SPI direct mode support (optionally): + spi0: spi@10600 { + compatible = "marvell,orion-spi"; + #address-cells = <1>; + #size-cells = <0>; + cell-index = <0>; + reg = , /* control */ + , /* CS0 */ + , /* CS1 */ + , /* CS2 */ + , /* CS3 */ + , /* CS4 */ + , /* CS5 */ + , /* CS6 */ + ; /* CS7 */ + interrupts = <23>; + }; + +To enable the direct mode, the board specific 'ranges' property in the +'soc' node needs to add the entries for the desired SPI controllers +and its chip-selects that are used in the direct mode instead of PIO +mode. Here an example for this (SPI controller 0, device 1 and SPI +controller 1, device 2 are used in direct mode. All other SPI device +are used in the default indirect (PIO) mode): + soc { + /* + * Enable the SPI direct access by configuring an entry + * here in the board-specific ranges property + */ + ranges = , /* internal regs */ + , /* BootROM */ + , /* SPI0-DEV1 */ + ; /* SPI1-DEV2 */ + +For further information on the MBus bindings, please see the MBus +DT documentation: +Documentation/devicetree/bindings/bus/mvebu-mbus.txt diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml index 7e11da560..0bb443b8d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml @@ -1,129 +1,129 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/spi/spi-peripheral-props.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Peripheral-specific properties for a SPI bus. - -description: - Many SPI controllers need to add properties to peripheral devices. They could - be common properties like spi-max-frequency, spi-cpha, etc. or they could be - controller specific like delay in clock or data lines, etc. These properties - need to be defined in the peripheral node because they are per-peripheral and - there can be multiple peripherals attached to a controller. All those - properties are listed here. The controller specific properties should go in - their own separate schema that should be referenced from here. - -maintainers: - - Mark Brown - -properties: - reg: - minItems: 1 - maxItems: 256 - items: - items: - - minimum: 0 - maximum: 256 - description: - Chip select used by the device. - - spi-cs-high: - $ref: /schemas/types.yaml#/definitions/flag - description: - The device requires the chip select active high. - - spi-lsb-first: - $ref: /schemas/types.yaml#/definitions/flag - description: - The device requires the LSB first mode. - - spi-max-frequency: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Maximum SPI clocking speed of the device in Hz. - - spi-cs-setup-delay-ns: - description: - Delay in nanoseconds to be introduced by the controller after CS is - asserted. - - spi-cs-hold-delay-ns: - description: - Delay in nanoseconds to be introduced by the controller before CS is - de-asserted. - - spi-cs-inactive-delay-ns: - description: - Delay in nanoseconds to be introduced by the controller after CS is - de-asserted. - - spi-rx-bus-width: - description: - Bus width to the SPI bus used for read transfers. - If 0 is provided, then no RX will be possible on this device. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1, 2, 4, 8] - default: 1 - - spi-rx-delay-us: - description: - Delay, in microseconds, after a read transfer. - - rx-sample-delay-ns: - description: SPI Rx sample delay offset, unit is nanoseconds. - The delay from the default sample time before the actual - sample of the rxd input signal occurs. - - spi-tx-bus-width: - description: - Bus width to the SPI bus used for write transfers. - If 0 is provided, then no TX will be possible on this device. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1, 2, 4, 8] - default: 1 - - spi-tx-delay-us: - description: - Delay, in microseconds, after a write transfer. - - stacked-memories: - description: Several SPI memories can be wired in stacked mode. - This basically means that either a device features several chip - selects, or that different devices must be seen as a single - bigger chip. This basically doubles (or more) the total address - space with only a single additional wire, while still needing - to repeat the commands when crossing a chip boundary. The size of - each chip should be provided as members of the array. - $ref: /schemas/types.yaml#/definitions/uint64-array - minItems: 2 - maxItems: 4 - - parallel-memories: - description: Several SPI memories can be wired in parallel mode. - The devices are physically on a different buses but will always - act synchronously as each data word is spread across the - different memories (eg. even bits are stored in one memory, odd - bits in the other). This basically doubles the address space and - the throughput while greatly complexifying the wiring because as - many busses as devices must be wired. The size of each chip should - be provided as members of the array. - $ref: /schemas/types.yaml#/definitions/uint64-array - minItems: 2 - maxItems: 4 - - st,spi-midi-ns: - description: | - Only for STM32H7, (Master Inter-Data Idleness) minimum time - delay in nanoseconds inserted between two consecutive data frames. - -# The controller specific properties go here. -allOf: - - $ref: arm,pl022-peripheral-props.yaml# - - $ref: cdns,qspi-nor-peripheral-props.yaml# - - $ref: fsl,dspi-peripheral-props.yaml# - - $ref: samsung,spi-peripheral-props.yaml# - - $ref: nvidia,tegra210-quad-peripheral-props.yaml# - -additionalProperties: true +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/spi-peripheral-props.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Peripheral-specific properties for a SPI bus. + +description: + Many SPI controllers need to add properties to peripheral devices. They could + be common properties like spi-max-frequency, spi-cpha, etc. or they could be + controller specific like delay in clock or data lines, etc. These properties + need to be defined in the peripheral node because they are per-peripheral and + there can be multiple peripherals attached to a controller. All those + properties are listed here. The controller specific properties should go in + their own separate schema that should be referenced from here. + +maintainers: + - Mark Brown + +properties: + reg: + minItems: 1 + maxItems: 256 + items: + items: + - minimum: 0 + maximum: 256 + description: + Chip select used by the device. + + spi-cs-high: + $ref: /schemas/types.yaml#/definitions/flag + description: + The device requires the chip select active high. + + spi-lsb-first: + $ref: /schemas/types.yaml#/definitions/flag + description: + The device requires the LSB first mode. + + spi-max-frequency: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Maximum SPI clocking speed of the device in Hz. + + spi-cs-setup-delay-ns: + description: + Delay in nanoseconds to be introduced by the controller after CS is + asserted. + + spi-cs-hold-delay-ns: + description: + Delay in nanoseconds to be introduced by the controller before CS is + de-asserted. + + spi-cs-inactive-delay-ns: + description: + Delay in nanoseconds to be introduced by the controller after CS is + de-asserted. + + spi-rx-bus-width: + description: + Bus width to the SPI bus used for read transfers. + If 0 is provided, then no RX will be possible on this device. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 4, 8] + default: 1 + + spi-rx-delay-us: + description: + Delay, in microseconds, after a read transfer. + + rx-sample-delay-ns: + description: SPI Rx sample delay offset, unit is nanoseconds. + The delay from the default sample time before the actual + sample of the rxd input signal occurs. + + spi-tx-bus-width: + description: + Bus width to the SPI bus used for write transfers. + If 0 is provided, then no TX will be possible on this device. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 4, 8] + default: 1 + + spi-tx-delay-us: + description: + Delay, in microseconds, after a write transfer. + + stacked-memories: + description: Several SPI memories can be wired in stacked mode. + This basically means that either a device features several chip + selects, or that different devices must be seen as a single + bigger chip. This basically doubles (or more) the total address + space with only a single additional wire, while still needing + to repeat the commands when crossing a chip boundary. The size of + each chip should be provided as members of the array. + $ref: /schemas/types.yaml#/definitions/uint64-array + minItems: 2 + maxItems: 4 + + parallel-memories: + description: Several SPI memories can be wired in parallel mode. + The devices are physically on a different buses but will always + act synchronously as each data word is spread across the + different memories (eg. even bits are stored in one memory, odd + bits in the other). This basically doubles the address space and + the throughput while greatly complexifying the wiring because as + many busses as devices must be wired. The size of each chip should + be provided as members of the array. + $ref: /schemas/types.yaml#/definitions/uint64-array + minItems: 2 + maxItems: 4 + + st,spi-midi-ns: + description: | + Only for STM32H7, (Master Inter-Data Idleness) minimum time + delay in nanoseconds inserted between two consecutive data frames. + +# The controller specific properties go here. +allOf: + - $ref: arm,pl022-peripheral-props.yaml# + - $ref: cdns,qspi-nor-peripheral-props.yaml# + - $ref: fsl,dspi-peripheral-props.yaml# + - $ref: samsung,spi-peripheral-props.yaml# + - $ref: nvidia,tegra210-quad-peripheral-props.yaml# + +additionalProperties: true diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/sprd,spi-adi.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/sprd,spi-adi.yaml index 55e03ceb4..903b06f88 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/sprd,spi-adi.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spi/sprd,spi-adi.yaml @@ -1,103 +1,103 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/spi/sprd,spi-adi.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Spreadtrum ADI controller - -maintainers: - - Orson Zhai - - Baolin Wang - - Chunyan Zhang - -description: | - ADI is the abbreviation of Anolog-Digital interface, which is used to access - analog chip (such as PMIC) from digital chip. ADI controller follows the SPI - framework for its hardware implementation is alike to SPI bus and its timing - is compatile to SPI timing. - - ADI controller has 50 channels including 2 software read/write channels and - 48 hardware channels to access analog chip. For 2 software read/write channels, - users should set ADI registers to access analog chip. For hardware channels, - we can configure them to allow other hardware components to use it independently, - which means we can just link one analog chip address to one hardware channel, - then users can access the mapped analog chip address by this hardware channel - triggered by hardware components instead of ADI software channels. - - Thus we introduce one property named "sprd,hw-channels" to configure hardware - channels, the first value specifies the hardware channel id which is used to - transfer data triggered by hardware automatically, and the second value specifies - the analog chip address where user want to access by hardware components. - - Since we have multi-subsystems will use unique ADI to access analog chip, when - one system is reading/writing data by ADI software channels, that should be under - one hardware spinlock protection to prevent other systems from reading/writing - data by ADI software channels at the same time, or two parallel routine of setting - ADI registers will make ADI controller registers chaos to lead incorrect results. - Then we need one hardware spinlock to synchronize between the multiple subsystems. - - The new version ADI controller supplies multiple master channels for different - subsystem accessing, that means no need to add hardware spinlock to synchronize, - thus change the hardware spinlock support to be optional to keep backward - compatibility. - -allOf: - - $ref: /schemas/spi/spi-controller.yaml# - -properties: - compatible: - enum: - - sprd,sc9860-adi - - sprd,sc9863-adi - - sprd,ums512-adi - - reg: - maxItems: 1 - - hwlocks: - maxItems: 1 - - hwlock-names: - const: adi - - sprd,hw-channels: - $ref: /schemas/types.yaml#/definitions/uint32-matrix - description: A list of hardware channels - minItems: 1 - maxItems: 48 - items: - items: - - description: The hardware channel id which is used to transfer data - triggered by hardware automatically, channel id 0-1 are for software - use, 2-49 are hardware channels. - minimum: 2 - maximum: 49 - - description: The analog chip address where user want to access by - hardware components. - -required: - - compatible - - reg - - '#address-cells' - - '#size-cells' - -unevaluatedProperties: false - -examples: - - | - aon { - #address-cells = <2>; - #size-cells = <2>; - - adi_bus: spi@40030000 { - compatible = "sprd,sc9860-adi"; - reg = <0 0x40030000 0 0x10000>; - hwlocks = <&hwlock1 0>; - hwlock-names = "adi"; - #address-cells = <1>; - #size-cells = <0>; - sprd,hw-channels = <30 0x8c20>; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/sprd,spi-adi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Spreadtrum ADI controller + +maintainers: + - Orson Zhai + - Baolin Wang + - Chunyan Zhang + +description: | + ADI is the abbreviation of Anolog-Digital interface, which is used to access + analog chip (such as PMIC) from digital chip. ADI controller follows the SPI + framework for its hardware implementation is alike to SPI bus and its timing + is compatile to SPI timing. + + ADI controller has 50 channels including 2 software read/write channels and + 48 hardware channels to access analog chip. For 2 software read/write channels, + users should set ADI registers to access analog chip. For hardware channels, + we can configure them to allow other hardware components to use it independently, + which means we can just link one analog chip address to one hardware channel, + then users can access the mapped analog chip address by this hardware channel + triggered by hardware components instead of ADI software channels. + + Thus we introduce one property named "sprd,hw-channels" to configure hardware + channels, the first value specifies the hardware channel id which is used to + transfer data triggered by hardware automatically, and the second value specifies + the analog chip address where user want to access by hardware components. + + Since we have multi-subsystems will use unique ADI to access analog chip, when + one system is reading/writing data by ADI software channels, that should be under + one hardware spinlock protection to prevent other systems from reading/writing + data by ADI software channels at the same time, or two parallel routine of setting + ADI registers will make ADI controller registers chaos to lead incorrect results. + Then we need one hardware spinlock to synchronize between the multiple subsystems. + + The new version ADI controller supplies multiple master channels for different + subsystem accessing, that means no need to add hardware spinlock to synchronize, + thus change the hardware spinlock support to be optional to keep backward + compatibility. + +allOf: + - $ref: /schemas/spi/spi-controller.yaml# + +properties: + compatible: + enum: + - sprd,sc9860-adi + - sprd,sc9863-adi + - sprd,ums512-adi + + reg: + maxItems: 1 + + hwlocks: + maxItems: 1 + + hwlock-names: + const: adi + + sprd,hw-channels: + $ref: /schemas/types.yaml#/definitions/uint32-matrix + description: A list of hardware channels + minItems: 1 + maxItems: 48 + items: + items: + - description: The hardware channel id which is used to transfer data + triggered by hardware automatically, channel id 0-1 are for software + use, 2-49 are hardware channels. + minimum: 2 + maximum: 49 + - description: The analog chip address where user want to access by + hardware components. + +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' + +unevaluatedProperties: false + +examples: + - | + aon { + #address-cells = <2>; + #size-cells = <2>; + + adi_bus: spi@40030000 { + compatible = "sprd,sc9860-adi"; + reg = <0 0x40030000 0 0x10000>; + hwlocks = <&hwlock1 0>; + hwlock-names = "adi"; + #address-cells = <1>; + #size-cells = <0>; + sprd,hw-channels = <30 0x8c20>; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spmi/qcom,x1e80100-spmi-pmic-arb.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spmi/qcom,x1e80100-spmi-pmic-arb.yaml index 4e430b214..a28b70fb3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spmi/qcom,x1e80100-spmi-pmic-arb.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/spmi/qcom,x1e80100-spmi-pmic-arb.yaml @@ -1,136 +1,136 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/spmi/qcom,x1e80100-spmi-pmic-arb.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm X1E80100 SPMI Controller (PMIC Arbiter v7) - -maintainers: - - Stephen Boyd - -description: | - The X1E80100 SPMI PMIC Arbiter implements HW version 7 and it's an SPMI - controller with wrapping arbitration logic to allow for multiple on-chip - devices to control up to 2 SPMI separate buses. - - The PMIC Arbiter can also act as an interrupt controller, providing interrupts - to slave devices. - -properties: - compatible: - const: qcom,x1e80100-spmi-pmic-arb - - reg: - items: - - description: core registers - - description: tx-channel per virtual slave registers - - description: rx-channel (called observer) per virtual slave registers - - reg-names: - items: - - const: core - - const: chnls - - const: obsrvr - - ranges: true - - '#address-cells': - const: 2 - - '#size-cells': - const: 2 - - qcom,ee: - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 5 - description: > - indicates the active Execution Environment identifier - - qcom,channel: - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 5 - description: > - which of the PMIC Arb provided channels to use for accesses - -patternProperties: - "^spmi@[a-f0-9]+$": - type: object - $ref: /schemas/spmi/spmi.yaml - unevaluatedProperties: false - - properties: - reg: - items: - - description: configuration registers - - description: interrupt controller registers - - reg-names: - items: - - const: cnfg - - const: intr - - interrupts: - maxItems: 1 - - interrupt-names: - const: periph_irq - - interrupt-controller: true - - '#interrupt-cells': - const: 4 - description: | - cell 1: slave ID for the requested interrupt (0-15) - cell 2: peripheral ID for requested interrupt (0-255) - cell 3: the requested peripheral interrupt (0-7) - cell 4: interrupt flags indicating level-sense information, - as defined in dt-bindings/interrupt-controller/irq.h - -required: - - compatible - - reg-names - - qcom,ee - - qcom,channel - -additionalProperties: false - -examples: - - | - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - - spmi: arbiter@c400000 { - compatible = "qcom,x1e80100-spmi-pmic-arb"; - reg = <0 0x0c400000 0 0x3000>, - <0 0x0c500000 0 0x4000000>, - <0 0x0c440000 0 0x80000>; - reg-names = "core", "chnls", "obsrvr"; - - qcom,ee = <0>; - qcom,channel = <0>; - - #address-cells = <2>; - #size-cells = <2>; - ranges; - - spmi_bus0: spmi@c42d000 { - reg = <0 0x0c42d000 0 0x4000>, - <0 0x0c4c0000 0 0x10000>; - reg-names = "cnfg", "intr"; - - interrupt-names = "periph_irq"; - interrupts-extended = <&pdc 1 IRQ_TYPE_LEVEL_HIGH>; - interrupt-controller; - #interrupt-cells = <4>; - - #address-cells = <2>; - #size-cells = <0>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spmi/qcom,x1e80100-spmi-pmic-arb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm X1E80100 SPMI Controller (PMIC Arbiter v7) + +maintainers: + - Stephen Boyd + +description: | + The X1E80100 SPMI PMIC Arbiter implements HW version 7 and it's an SPMI + controller with wrapping arbitration logic to allow for multiple on-chip + devices to control up to 2 SPMI separate buses. + + The PMIC Arbiter can also act as an interrupt controller, providing interrupts + to slave devices. + +properties: + compatible: + const: qcom,x1e80100-spmi-pmic-arb + + reg: + items: + - description: core registers + - description: tx-channel per virtual slave registers + - description: rx-channel (called observer) per virtual slave registers + + reg-names: + items: + - const: core + - const: chnls + - const: obsrvr + + ranges: true + + '#address-cells': + const: 2 + + '#size-cells': + const: 2 + + qcom,ee: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 5 + description: > + indicates the active Execution Environment identifier + + qcom,channel: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 5 + description: > + which of the PMIC Arb provided channels to use for accesses + +patternProperties: + "^spmi@[a-f0-9]+$": + type: object + $ref: /schemas/spmi/spmi.yaml + unevaluatedProperties: false + + properties: + reg: + items: + - description: configuration registers + - description: interrupt controller registers + + reg-names: + items: + - const: cnfg + - const: intr + + interrupts: + maxItems: 1 + + interrupt-names: + const: periph_irq + + interrupt-controller: true + + '#interrupt-cells': + const: 4 + description: | + cell 1: slave ID for the requested interrupt (0-15) + cell 2: peripheral ID for requested interrupt (0-255) + cell 3: the requested peripheral interrupt (0-7) + cell 4: interrupt flags indicating level-sense information, + as defined in dt-bindings/interrupt-controller/irq.h + +required: + - compatible + - reg-names + - qcom,ee + - qcom,channel + +additionalProperties: false + +examples: + - | + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + spmi: arbiter@c400000 { + compatible = "qcom,x1e80100-spmi-pmic-arb"; + reg = <0 0x0c400000 0 0x3000>, + <0 0x0c500000 0 0x4000000>, + <0 0x0c440000 0 0x80000>; + reg-names = "core", "chnls", "obsrvr"; + + qcom,ee = <0>; + qcom,channel = <0>; + + #address-cells = <2>; + #size-cells = <2>; + ranges; + + spmi_bus0: spmi@c42d000 { + reg = <0 0x0c42d000 0 0x4000>, + <0 0x0c4c0000 0 0x10000>; + reg-names = "cnfg", "intr"; + + interrupt-names = "periph_irq"; + interrupts-extended = <&pdc 1 IRQ_TYPE_LEVEL_HIGH>; + interrupt-controller; + #interrupt-cells = <4>; + + #address-cells = <2>; + #size-cells = <0>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/submitting-patches.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/submitting-patches.rst index 75d6b7b19..a64f21a5f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/submitting-patches.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/submitting-patches.rst @@ -1,91 +1,91 @@ -.. SPDX-License-Identifier: GPL-2.0 - -========================================== -Submitting Devicetree (DT) binding patches -========================================== - -I. For patch submitters -======================= - - 0) Normal patch submission rules from - Documentation/process/submitting-patches.rst applies. - - 1) The Documentation/ and include/dt-bindings/ portion of the patch should - be a separate patch. The preferred subject prefix for binding patches is:: - - "dt-bindings: : ..." - - Few subsystems, like ASoC, media, regulators and SPI, expect reverse order - of the prefixes:: - - ": dt-bindings: ..." - - The 80 characters of the subject are precious. It is recommended to not - use "Documentation" or "doc" because that is implied. All bindings are - docs. Repeating "binding" again should also be avoided. - - 2) DT binding files are written in DT schema format using json-schema - vocabulary and YAML file format. The DT binding files must pass validation - by running:: - - make dt_binding_check - - See Documentation/devicetree/bindings/writing-schema.rst for more details - about schema and tools setup. - - 3) DT binding files should be dual licensed. The preferred license tag is - (GPL-2.0-only OR BSD-2-Clause). - - 4) Submit the entire series to the devicetree mailinglist at - - devicetree@vger.kernel.org - - and Cc: the DT maintainers. Use scripts/get_maintainer.pl to identify - all of the DT maintainers. - - 5) The Documentation/ portion of the patch should come in the series before - the code implementing the binding. - - 6) Any compatible strings used in a chip or board DTS file must be - previously documented in the corresponding DT binding file - in Documentation/devicetree/bindings. This rule applies even if - the Linux device driver does not yet match on the compatible - string. [ checkpatch will emit warnings if this step is not - followed as of commit bff5da4335256513497cc8c79f9a9d1665e09864 - ("checkpatch: add DT compatible string documentation checks"). ] - - 7) If a documented compatible string is not yet matched by the - driver, the documentation should also include a compatible - string that is matched by the driver. - - 8) Bindings are actively used by multiple projects other than the Linux - Kernel, extra care and consideration may need to be taken when making changes - to existing bindings. - -II. For kernel maintainers -========================== - - 1) If you aren't comfortable reviewing a given binding, reply to it and ask - the devicetree maintainers for guidance. This will help them prioritize - which ones to review and which ones are ok to let go. - - 2) For driver (not subsystem) bindings: If you are comfortable with the - binding, and it hasn't received an Acked-by from the devicetree - maintainers after a few weeks, go ahead and take it. - - For subsystem bindings (anything affecting more than a single device), - getting a devicetree maintainer to review it is required. - - 3) For a series going though multiple trees, the binding patch should be - kept with the driver using the binding. - -III. Notes -========== - - 0) Please see Documentation/devicetree/bindings/ABI.rst for details - regarding devicetree ABI. - - 1) This document is intended as a general familiarization with the process as - decided at the 2013 Kernel Summit. When in doubt, the current word of the - devicetree maintainers overrules this document. In that situation, a patch - updating this document would be appreciated. +.. SPDX-License-Identifier: GPL-2.0 + +========================================== +Submitting Devicetree (DT) binding patches +========================================== + +I. For patch submitters +======================= + + 0) Normal patch submission rules from + Documentation/process/submitting-patches.rst applies. + + 1) The Documentation/ and include/dt-bindings/ portion of the patch should + be a separate patch. The preferred subject prefix for binding patches is:: + + "dt-bindings: : ..." + + Few subsystems, like ASoC, media, regulators and SPI, expect reverse order + of the prefixes:: + + ": dt-bindings: ..." + + The 80 characters of the subject are precious. It is recommended to not + use "Documentation" or "doc" because that is implied. All bindings are + docs. Repeating "binding" again should also be avoided. + + 2) DT binding files are written in DT schema format using json-schema + vocabulary and YAML file format. The DT binding files must pass validation + by running:: + + make dt_binding_check + + See Documentation/devicetree/bindings/writing-schema.rst for more details + about schema and tools setup. + + 3) DT binding files should be dual licensed. The preferred license tag is + (GPL-2.0-only OR BSD-2-Clause). + + 4) Submit the entire series to the devicetree mailinglist at + + devicetree@vger.kernel.org + + and Cc: the DT maintainers. Use scripts/get_maintainer.pl to identify + all of the DT maintainers. + + 5) The Documentation/ portion of the patch should come in the series before + the code implementing the binding. + + 6) Any compatible strings used in a chip or board DTS file must be + previously documented in the corresponding DT binding file + in Documentation/devicetree/bindings. This rule applies even if + the Linux device driver does not yet match on the compatible + string. [ checkpatch will emit warnings if this step is not + followed as of commit bff5da4335256513497cc8c79f9a9d1665e09864 + ("checkpatch: add DT compatible string documentation checks"). ] + + 7) If a documented compatible string is not yet matched by the + driver, the documentation should also include a compatible + string that is matched by the driver. + + 8) Bindings are actively used by multiple projects other than the Linux + Kernel, extra care and consideration may need to be taken when making changes + to existing bindings. + +II. For kernel maintainers +========================== + + 1) If you aren't comfortable reviewing a given binding, reply to it and ask + the devicetree maintainers for guidance. This will help them prioritize + which ones to review and which ones are ok to let go. + + 2) For driver (not subsystem) bindings: If you are comfortable with the + binding, and it hasn't received an Acked-by from the devicetree + maintainers after a few weeks, go ahead and take it. + + For subsystem bindings (anything affecting more than a single device), + getting a devicetree maintainer to review it is required. + + 3) For a series going though multiple trees, the binding patch should be + kept with the driver using the binding. + +III. Notes +========== + + 0) Please see Documentation/devicetree/bindings/ABI.rst for details + regarding devicetree ABI. + + 1) This document is intended as a general familiarization with the process as + decided at the 2013 Kernel Summit. When in doubt, the current word of the + devicetree maintainers overrules this document. In that situation, a patch + updating this document would be appreciated. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml index dfe172e85..dad8de900 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml @@ -1,179 +1,179 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/thermal/allwinner,sun8i-a83t-ths.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Allwinner SUN8I Thermal Controller - -maintainers: - - Vasily Khoruzhick - - Yangtao Li - -$ref: thermal-sensor.yaml# - -properties: - compatible: - enum: - - allwinner,sun8i-a83t-ths - - allwinner,sun8i-h3-ths - - allwinner,sun8i-r40-ths - - allwinner,sun20i-d1-ths - - allwinner,sun50i-a64-ths - - allwinner,sun50i-a100-ths - - allwinner,sun50i-h5-ths - - allwinner,sun50i-h6-ths - - allwinner,sun50i-h616-ths - - clocks: - minItems: 1 - items: - - description: Bus Clock - - description: Module Clock - - clock-names: - minItems: 1 - items: - - const: bus - - const: mod - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - resets: - maxItems: 1 - - nvmem-cells: - maxItems: 1 - description: Calibration data for thermal sensors - - nvmem-cell-names: - const: calibration - - allwinner,sram: - maxItems: 1 - description: phandle to device controlling temperate offset SYS_CFG register - - "#thermal-sensor-cells": - enum: - - 0 - - 1 - -allOf: - - if: - properties: - compatible: - contains: - enum: - - allwinner,sun20i-d1-ths - - allwinner,sun50i-a100-ths - - allwinner,sun50i-h6-ths - - allwinner,sun50i-h616-ths - - then: - properties: - clocks: - maxItems: 1 - - clock-names: - maxItems: 1 - - else: - properties: - clocks: - minItems: 2 - - clock-names: - minItems: 2 - - - if: - not: - properties: - compatible: - contains: - const: allwinner,sun50i-h616-ths - - then: - properties: - allwinner,sram: false - - - if: - properties: - compatible: - contains: - enum: - - allwinner,sun8i-h3-ths - - allwinner,sun20i-d1-ths - - then: - properties: - "#thermal-sensor-cells": - const: 0 - - else: - properties: - "#thermal-sensor-cells": - const: 1 - - - if: - not: - properties: - compatible: - contains: - enum: - - allwinner,sun8i-a83t-ths - - then: - required: - - clocks - - clock-names - - resets - -required: - - compatible - - reg - - interrupts - -unevaluatedProperties: false - -examples: - - | - thermal-sensor@1f04000 { - compatible = "allwinner,sun8i-a83t-ths"; - reg = <0x01f04000 0x100>; - interrupts = <0 31 0>; - nvmem-cells = <&ths_calibration>; - nvmem-cell-names = "calibration"; - #thermal-sensor-cells = <1>; - }; - - - | - thermal-sensor@1c25000 { - compatible = "allwinner,sun8i-h3-ths"; - reg = <0x01c25000 0x400>; - clocks = <&ccu 0>, <&ccu 1>; - clock-names = "bus", "mod"; - resets = <&ccu 2>; - interrupts = <0 31 0>; - nvmem-cells = <&ths_calibration>; - nvmem-cell-names = "calibration"; - #thermal-sensor-cells = <0>; - }; - - - | - thermal-sensor@5070400 { - compatible = "allwinner,sun50i-h6-ths"; - reg = <0x05070400 0x100>; - clocks = <&ccu 0>; - clock-names = "bus"; - resets = <&ccu 2>; - interrupts = <0 15 0>; - nvmem-cells = <&ths_calibration>; - nvmem-cell-names = "calibration"; - #thermal-sensor-cells = <1>; - }; - -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/allwinner,sun8i-a83t-ths.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner SUN8I Thermal Controller + +maintainers: + - Vasily Khoruzhick + - Yangtao Li + +$ref: thermal-sensor.yaml# + +properties: + compatible: + enum: + - allwinner,sun8i-a83t-ths + - allwinner,sun8i-h3-ths + - allwinner,sun8i-r40-ths + - allwinner,sun20i-d1-ths + - allwinner,sun50i-a64-ths + - allwinner,sun50i-a100-ths + - allwinner,sun50i-h5-ths + - allwinner,sun50i-h6-ths + - allwinner,sun50i-h616-ths + + clocks: + minItems: 1 + items: + - description: Bus Clock + - description: Module Clock + + clock-names: + minItems: 1 + items: + - const: bus + - const: mod + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + resets: + maxItems: 1 + + nvmem-cells: + maxItems: 1 + description: Calibration data for thermal sensors + + nvmem-cell-names: + const: calibration + + allwinner,sram: + maxItems: 1 + description: phandle to device controlling temperate offset SYS_CFG register + + "#thermal-sensor-cells": + enum: + - 0 + - 1 + +allOf: + - if: + properties: + compatible: + contains: + enum: + - allwinner,sun20i-d1-ths + - allwinner,sun50i-a100-ths + - allwinner,sun50i-h6-ths + - allwinner,sun50i-h616-ths + + then: + properties: + clocks: + maxItems: 1 + + clock-names: + maxItems: 1 + + else: + properties: + clocks: + minItems: 2 + + clock-names: + minItems: 2 + + - if: + not: + properties: + compatible: + contains: + const: allwinner,sun50i-h616-ths + + then: + properties: + allwinner,sram: false + + - if: + properties: + compatible: + contains: + enum: + - allwinner,sun8i-h3-ths + - allwinner,sun20i-d1-ths + + then: + properties: + "#thermal-sensor-cells": + const: 0 + + else: + properties: + "#thermal-sensor-cells": + const: 1 + + - if: + not: + properties: + compatible: + contains: + enum: + - allwinner,sun8i-a83t-ths + + then: + required: + - clocks + - clock-names + - resets + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + thermal-sensor@1f04000 { + compatible = "allwinner,sun8i-a83t-ths"; + reg = <0x01f04000 0x100>; + interrupts = <0 31 0>; + nvmem-cells = <&ths_calibration>; + nvmem-cell-names = "calibration"; + #thermal-sensor-cells = <1>; + }; + + - | + thermal-sensor@1c25000 { + compatible = "allwinner,sun8i-h3-ths"; + reg = <0x01c25000 0x400>; + clocks = <&ccu 0>, <&ccu 1>; + clock-names = "bus", "mod"; + resets = <&ccu 2>; + interrupts = <0 31 0>; + nvmem-cells = <&ths_calibration>; + nvmem-cell-names = "calibration"; + #thermal-sensor-cells = <0>; + }; + + - | + thermal-sensor@5070400 { + compatible = "allwinner,sun50i-h6-ths"; + reg = <0x05070400 0x100>; + clocks = <&ccu 0>; + clock-names = "bus"; + resets = <&ccu 2>; + interrupts = <0 15 0>; + nvmem-cells = <&ths_calibration>; + nvmem-cell-names = "calibration"; + #thermal-sensor-cells = <1>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/mediatek,lvts-thermal.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/mediatek,lvts-thermal.yaml index efa482e88..0259cd3ce 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/mediatek,lvts-thermal.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/mediatek,lvts-thermal.yaml @@ -1,148 +1,148 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/thermal/mediatek,lvts-thermal.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: MediaTek SoC Low Voltage Thermal Sensor (LVTS) - -maintainers: - - Balsam CHIHI - -description: | - LVTS is a thermal management architecture composed of three subsystems, - a Sensing device - Thermal Sensing Micro Circuit Unit (TSMCU), - a Converter - Low Voltage Thermal Sensor converter (LVTS), and - a Digital controller (LVTS_CTRL). - -properties: - compatible: - enum: - - mediatek,mt7988-lvts-ap - - mediatek,mt8186-lvts - - mediatek,mt8188-lvts-ap - - mediatek,mt8188-lvts-mcu - - mediatek,mt8192-lvts-ap - - mediatek,mt8192-lvts-mcu - - mediatek,mt8195-lvts-ap - - mediatek,mt8195-lvts-mcu - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - maxItems: 1 - - resets: - maxItems: 1 - description: LVTS reset for clearing temporary data on AP/MCU. - - nvmem-cells: - minItems: 1 - items: - - description: Calibration eFuse data 1 for LVTS - - description: Calibration eFuse data 2 for LVTS - - nvmem-cell-names: - minItems: 1 - items: - - const: lvts-calib-data-1 - - const: lvts-calib-data-2 - - "#thermal-sensor-cells": - const: 1 - -allOf: - - $ref: thermal-sensor.yaml# - - - if: - properties: - compatible: - contains: - enum: - - mediatek,mt8188-lvts-ap - - mediatek,mt8188-lvts-mcu - - mediatek,mt8192-lvts-ap - - mediatek,mt8192-lvts-mcu - then: - properties: - nvmem-cells: - maxItems: 1 - - nvmem-cell-names: - maxItems: 1 - - - if: - properties: - compatible: - contains: - enum: - - mediatek,mt8186-lvts - - mediatek,mt8195-lvts-ap - - mediatek,mt8195-lvts-mcu - then: - properties: - nvmem-cells: - minItems: 2 - - nvmem-cell-names: - minItems: 2 - -required: - - compatible - - reg - - interrupts - - clocks - - resets - - nvmem-cells - - nvmem-cell-names - -additionalProperties: false - -examples: - - | - #include - #include - #include - #include - - soc { - #address-cells = <2>; - #size-cells = <2>; - - lvts_mcu: thermal-sensor@11278000 { - compatible = "mediatek,mt8195-lvts-mcu"; - reg = <0 0x11278000 0 0x1000>; - interrupts = ; - clocks = <&infracfg_ao CLK_INFRA_AO_THERM>; - resets = <&infracfg_ao MT8195_INFRA_RST4_THERM_CTRL_MCU_SWRST>; - nvmem-cells = <&lvts_efuse_data1 &lvts_efuse_data2>; - nvmem-cell-names = "lvts-calib-data-1", "lvts-calib-data-2"; - #thermal-sensor-cells = <1>; - }; - }; - - thermal_zones: thermal-zones { - cpu0-thermal { - polling-delay = <1000>; - polling-delay-passive = <250>; - thermal-sensors = <&lvts_mcu MT8195_MCU_LITTLE_CPU0>; - - trips { - cpu0_alert: trip-alert { - temperature = <85000>; - hysteresis = <2000>; - type = "passive"; - }; - - cpu0_crit: trip-crit { - temperature = <100000>; - hysteresis = <2000>; - type = "critical"; - }; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/mediatek,lvts-thermal.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek SoC Low Voltage Thermal Sensor (LVTS) + +maintainers: + - Balsam CHIHI + +description: | + LVTS is a thermal management architecture composed of three subsystems, + a Sensing device - Thermal Sensing Micro Circuit Unit (TSMCU), + a Converter - Low Voltage Thermal Sensor converter (LVTS), and + a Digital controller (LVTS_CTRL). + +properties: + compatible: + enum: + - mediatek,mt7988-lvts-ap + - mediatek,mt8186-lvts + - mediatek,mt8188-lvts-ap + - mediatek,mt8188-lvts-mcu + - mediatek,mt8192-lvts-ap + - mediatek,mt8192-lvts-mcu + - mediatek,mt8195-lvts-ap + - mediatek,mt8195-lvts-mcu + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + description: LVTS reset for clearing temporary data on AP/MCU. + + nvmem-cells: + minItems: 1 + items: + - description: Calibration eFuse data 1 for LVTS + - description: Calibration eFuse data 2 for LVTS + + nvmem-cell-names: + minItems: 1 + items: + - const: lvts-calib-data-1 + - const: lvts-calib-data-2 + + "#thermal-sensor-cells": + const: 1 + +allOf: + - $ref: thermal-sensor.yaml# + + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt8188-lvts-ap + - mediatek,mt8188-lvts-mcu + - mediatek,mt8192-lvts-ap + - mediatek,mt8192-lvts-mcu + then: + properties: + nvmem-cells: + maxItems: 1 + + nvmem-cell-names: + maxItems: 1 + + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt8186-lvts + - mediatek,mt8195-lvts-ap + - mediatek,mt8195-lvts-mcu + then: + properties: + nvmem-cells: + minItems: 2 + + nvmem-cell-names: + minItems: 2 + +required: + - compatible + - reg + - interrupts + - clocks + - resets + - nvmem-cells + - nvmem-cell-names + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + lvts_mcu: thermal-sensor@11278000 { + compatible = "mediatek,mt8195-lvts-mcu"; + reg = <0 0x11278000 0 0x1000>; + interrupts = ; + clocks = <&infracfg_ao CLK_INFRA_AO_THERM>; + resets = <&infracfg_ao MT8195_INFRA_RST4_THERM_CTRL_MCU_SWRST>; + nvmem-cells = <&lvts_efuse_data1 &lvts_efuse_data2>; + nvmem-cell-names = "lvts-calib-data-1", "lvts-calib-data-2"; + #thermal-sensor-cells = <1>; + }; + }; + + thermal_zones: thermal-zones { + cpu0-thermal { + polling-delay = <1000>; + polling-delay-passive = <250>; + thermal-sensors = <&lvts_mcu MT8195_MCU_LITTLE_CPU0>; + + trips { + cpu0_alert: trip-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu0_crit: trip-crit { + temperature = <100000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm-hc.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm-hc.yaml index 6b40ffc28..bfad8130a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm-hc.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm-hc.yaml @@ -1,149 +1,149 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/thermal/qcom-spmi-adc-tm-hc.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm's SPMI PMIC ADC HC Thermal Monitoring -maintainers: - - Dmitry Baryshkov - -$ref: thermal-sensor.yaml# - -properties: - compatible: - const: qcom,spmi-adc-tm-hc - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - "#thermal-sensor-cells": - const: 1 - - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - - qcom,avg-samples: - $ref: /schemas/types.yaml#/definitions/uint32 - description: Number of samples to be used for measurement. - enum: - - 1 - - 2 - - 4 - - 8 - - 16 - default: 1 - - qcom,decimation: - $ref: /schemas/types.yaml#/definitions/uint32 - description: This parameter is used to decrease ADC sampling rate. - Quicker measurements can be made by reducing decimation ratio. - enum: - - 256 - - 512 - - 1024 - default: 1024 - -patternProperties: - "^([-a-z0-9]*)@[0-7]$": - type: object - description: - Represent one thermal sensor. - - properties: - reg: - description: Specify the sensor channel. There are 8 channels in PMIC5's ADC TM - minimum: 0 - maximum: 7 - - io-channels: - description: - From common IIO binding. Used to pipe PMIC ADC channel to thermal monitor - - qcom,ratiometric: - $ref: /schemas/types.yaml#/definitions/flag - description: - Channel calibration type. - If this property is specified VADC will use the VDD reference - (1.875V) and GND for channel calibration. If property is not found, - channel will be calibrated with 0V and 1.25V reference channels, - also known as absolute calibration. - - qcom,hw-settle-time-us: - description: Time between AMUX getting configured and the ADC starting conversion. - enum: [0, 100, 200, 300, 400, 500, 600, 700, 1000, 2000, 4000, 6000, 8000, 10000] - - qcom,pre-scaling: - $ref: /schemas/types.yaml#/definitions/uint32-array - description: Used for scaling the channel input signal before the - signal is fed to VADC. The configuration for this node is to know the - pre-determined ratio and use it for post scaling. It is a pair of - integers, denoting the numerator and denominator of the fraction by - which input signal is multiplied. For example, <1 3> indicates the - signal is scaled down to 1/3 of its value before ADC measurement. If - property is not found default value depending on chip will be used. - items: - - const: 1 - - enum: [ 1, 3, 4, 6, 20, 8, 10 ] - - required: - - reg - - io-channels - - additionalProperties: - false - -required: - - compatible - - reg - - interrupts - - "#address-cells" - - "#size-cells" - -unevaluatedProperties: false - -examples: - - | - #include - #include - - pmic { - #address-cells = <1>; - #size-cells = <0>; - - pm8998_adc: adc@3100 { - compatible = "qcom,spmi-adc-rev2"; - reg = <0x3100>; - #address-cells = <1>; - #size-cells = <0>; - #io-channel-cells = <1>; - - /* Other properties are omitted */ - channel@4c { - reg = ; - }; - }; - - adc-tm@3400 { - compatible = "qcom,spmi-adc-tm-hc"; - reg = <0x3400>; - interrupts = <0x2 0x34 0x0 IRQ_TYPE_EDGE_RISING>; - #thermal-sensor-cells = <1>; - #address-cells = <1>; - #size-cells = <0>; - - thermistor@1 { - reg = <1>; - io-channels = <&pm8998_adc ADC5_XO_THERM_100K_PU>; - qcom,ratiometric; - qcom,hw-settle-time-us = <200>; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/qcom-spmi-adc-tm-hc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm's SPMI PMIC ADC HC Thermal Monitoring +maintainers: + - Dmitry Baryshkov + +$ref: thermal-sensor.yaml# + +properties: + compatible: + const: qcom,spmi-adc-tm-hc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + "#thermal-sensor-cells": + const: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + qcom,avg-samples: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Number of samples to be used for measurement. + enum: + - 1 + - 2 + - 4 + - 8 + - 16 + default: 1 + + qcom,decimation: + $ref: /schemas/types.yaml#/definitions/uint32 + description: This parameter is used to decrease ADC sampling rate. + Quicker measurements can be made by reducing decimation ratio. + enum: + - 256 + - 512 + - 1024 + default: 1024 + +patternProperties: + "^([-a-z0-9]*)@[0-7]$": + type: object + description: + Represent one thermal sensor. + + properties: + reg: + description: Specify the sensor channel. There are 8 channels in PMIC5's ADC TM + minimum: 0 + maximum: 7 + + io-channels: + description: + From common IIO binding. Used to pipe PMIC ADC channel to thermal monitor + + qcom,ratiometric: + $ref: /schemas/types.yaml#/definitions/flag + description: + Channel calibration type. + If this property is specified VADC will use the VDD reference + (1.875V) and GND for channel calibration. If property is not found, + channel will be calibrated with 0V and 1.25V reference channels, + also known as absolute calibration. + + qcom,hw-settle-time-us: + description: Time between AMUX getting configured and the ADC starting conversion. + enum: [0, 100, 200, 300, 400, 500, 600, 700, 1000, 2000, 4000, 6000, 8000, 10000] + + qcom,pre-scaling: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: Used for scaling the channel input signal before the + signal is fed to VADC. The configuration for this node is to know the + pre-determined ratio and use it for post scaling. It is a pair of + integers, denoting the numerator and denominator of the fraction by + which input signal is multiplied. For example, <1 3> indicates the + signal is scaled down to 1/3 of its value before ADC measurement. If + property is not found default value depending on chip will be used. + items: + - const: 1 + - enum: [ 1, 3, 4, 6, 20, 8, 10 ] + + required: + - reg + - io-channels + + additionalProperties: + false + +required: + - compatible + - reg + - interrupts + - "#address-cells" + - "#size-cells" + +unevaluatedProperties: false + +examples: + - | + #include + #include + + pmic { + #address-cells = <1>; + #size-cells = <0>; + + pm8998_adc: adc@3100 { + compatible = "qcom,spmi-adc-rev2"; + reg = <0x3100>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + + /* Other properties are omitted */ + channel@4c { + reg = ; + }; + }; + + adc-tm@3400 { + compatible = "qcom,spmi-adc-tm-hc"; + reg = <0x3400>; + interrupts = <0x2 0x34 0x0 IRQ_TYPE_EDGE_RISING>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + + thermistor@1 { + reg = <1>; + io-channels = <&pm8998_adc ADC5_XO_THERM_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml index 707f73e5c..aa756dae5 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml @@ -1,118 +1,118 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/thermal/qoriq-thermal.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Thermal Monitoring Unit (TMU) on Freescale QorIQ SoCs - -maintainers: - - Shawn Guo - - Sascha Hauer - - Fabio Estevam - -$ref: thermal-sensor.yaml# - -properties: - compatible: - description: | - The version of the device is determined by the TMU IP Block Revision - Register (IPBRR0) at offset 0x0BF8. - Table of correspondences between IPBRR0 values and example chips: - Value Device - ---------- ----- - 0x01900102 T1040 - enum: - - fsl,qoriq-tmu - - fsl,imx8mq-tmu - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - fsl,tmu-range: - $ref: /schemas/types.yaml#/definitions/uint32-array - description: | - The values to be programmed into TTRnCR, as specified by the SoC - reference manual. The first cell is TTR0CR, the second is TTR1CR, etc. - minItems: 2 - maxItems: 7 - - fsl,tmu-calibration: - $ref: /schemas/types.yaml#/definitions/uint32-matrix - description: | - A list of cell pairs containing temperature calibration data, as - specified by the SoC reference manual. The first cell of each pair - is the value to be written to TTCFGR, and the second is the value - to be written to TSCFGR. - items: - items: - - description: value for TTCFGR - - description: value for TSCFGR - minItems: 1 - maxItems: 64 - - little-endian: - description: | - boolean, if present, the TMU registers are little endian. If absent, - the default is big endian. - type: boolean - - clocks: - maxItems: 1 - - "#thermal-sensor-cells": - const: 1 - -required: - - compatible - - reg - - interrupts - - fsl,tmu-range - - fsl,tmu-calibration - -unevaluatedProperties: false - -examples: - - | - tmu@f0000 { - compatible = "fsl,qoriq-tmu"; - reg = <0xf0000 0x1000>; - interrupts = <18 2 0 0>; - fsl,tmu-range = <0x000a0000 0x00090026 0x0008004a 0x0001006a>; - fsl,tmu-calibration = <0x00000000 0x00000025>, - <0x00000001 0x00000028>, - <0x00000002 0x0000002d>, - <0x00000003 0x00000031>, - <0x00000004 0x00000036>, - <0x00000005 0x0000003a>, - <0x00000006 0x00000040>, - <0x00000007 0x00000044>, - <0x00000008 0x0000004a>, - <0x00000009 0x0000004f>, - <0x0000000a 0x00000054>, - <0x00010000 0x0000000d>, - <0x00010001 0x00000013>, - <0x00010002 0x00000019>, - <0x00010003 0x0000001f>, - <0x00010004 0x00000025>, - <0x00010005 0x0000002d>, - <0x00010006 0x00000033>, - <0x00010007 0x00000043>, - <0x00010008 0x0000004b>, - <0x00010009 0x00000053>, - <0x00020000 0x00000010>, - <0x00020001 0x00000017>, - <0x00020002 0x0000001f>, - <0x00020003 0x00000029>, - <0x00020004 0x00000031>, - <0x00020005 0x0000003c>, - <0x00020006 0x00000042>, - <0x00020007 0x0000004d>, - <0x00020008 0x00000056>, - <0x00030000 0x00000012>, - <0x00030001 0x0000001d>; - #thermal-sensor-cells = <1>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/qoriq-thermal.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Thermal Monitoring Unit (TMU) on Freescale QorIQ SoCs + +maintainers: + - Shawn Guo + - Sascha Hauer + - Fabio Estevam + +$ref: thermal-sensor.yaml# + +properties: + compatible: + description: | + The version of the device is determined by the TMU IP Block Revision + Register (IPBRR0) at offset 0x0BF8. + Table of correspondences between IPBRR0 values and example chips: + Value Device + ---------- ----- + 0x01900102 T1040 + enum: + - fsl,qoriq-tmu + - fsl,imx8mq-tmu + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + fsl,tmu-range: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: | + The values to be programmed into TTRnCR, as specified by the SoC + reference manual. The first cell is TTR0CR, the second is TTR1CR, etc. + minItems: 2 + maxItems: 7 + + fsl,tmu-calibration: + $ref: /schemas/types.yaml#/definitions/uint32-matrix + description: | + A list of cell pairs containing temperature calibration data, as + specified by the SoC reference manual. The first cell of each pair + is the value to be written to TTCFGR, and the second is the value + to be written to TSCFGR. + items: + items: + - description: value for TTCFGR + - description: value for TSCFGR + minItems: 1 + maxItems: 64 + + little-endian: + description: | + boolean, if present, the TMU registers are little endian. If absent, + the default is big endian. + type: boolean + + clocks: + maxItems: 1 + + "#thermal-sensor-cells": + const: 1 + +required: + - compatible + - reg + - interrupts + - fsl,tmu-range + - fsl,tmu-calibration + +unevaluatedProperties: false + +examples: + - | + tmu@f0000 { + compatible = "fsl,qoriq-tmu"; + reg = <0xf0000 0x1000>; + interrupts = <18 2 0 0>; + fsl,tmu-range = <0x000a0000 0x00090026 0x0008004a 0x0001006a>; + fsl,tmu-calibration = <0x00000000 0x00000025>, + <0x00000001 0x00000028>, + <0x00000002 0x0000002d>, + <0x00000003 0x00000031>, + <0x00000004 0x00000036>, + <0x00000005 0x0000003a>, + <0x00000006 0x00000040>, + <0x00000007 0x00000044>, + <0x00000008 0x0000004a>, + <0x00000009 0x0000004f>, + <0x0000000a 0x00000054>, + <0x00010000 0x0000000d>, + <0x00010001 0x00000013>, + <0x00010002 0x00000019>, + <0x00010003 0x0000001f>, + <0x00010004 0x00000025>, + <0x00010005 0x0000002d>, + <0x00010006 0x00000033>, + <0x00010007 0x00000043>, + <0x00010008 0x0000004b>, + <0x00010009 0x00000053>, + <0x00020000 0x00000010>, + <0x00020001 0x00000017>, + <0x00020002 0x0000001f>, + <0x00020003 0x00000029>, + <0x00020004 0x00000031>, + <0x00020005 0x0000003c>, + <0x00020006 0x00000042>, + <0x00020007 0x0000004d>, + <0x00020008 0x00000056>, + <0x00030000 0x00000012>, + <0x00030001 0x0000001d>; + #thermal-sensor-cells = <1>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml index e83cf82c1..b6657d64c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml @@ -1,153 +1,153 @@ -# SPDX-License-Identifier: GPL-2.0-only -# Copyright (C) 2020 Renesas Electronics Corp. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/thermal/rcar-gen3-thermal.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas R-Car Gen3 Thermal Sensor - -description: - On most R-Car Gen3 and later SoCs, the thermal sensor controllers (TSC) - control the thermal sensors (THS) which are the analog circuits for - measuring temperature (Tj) inside the LSI. - -maintainers: - - Niklas Söderlund - -$ref: thermal-sensor.yaml# - -properties: - compatible: - enum: - - renesas,r8a774a1-thermal # RZ/G2M - - renesas,r8a774b1-thermal # RZ/G2N - - renesas,r8a774e1-thermal # RZ/G2H - - renesas,r8a7795-thermal # R-Car H3 - - renesas,r8a7796-thermal # R-Car M3-W - - renesas,r8a77961-thermal # R-Car M3-W+ - - renesas,r8a77965-thermal # R-Car M3-N - - renesas,r8a77980-thermal # R-Car V3H - - renesas,r8a779a0-thermal # R-Car V3U - - renesas,r8a779f0-thermal # R-Car S4-8 - - renesas,r8a779g0-thermal # R-Car V4H - - renesas,r8a779h0-thermal # R-Car V4M - - reg: true - - interrupts: - items: - - description: TEMP1 interrupt - - description: TEMP2 interrupt - - description: TEMP3 interrupt - - clocks: - maxItems: 1 - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - "#thermal-sensor-cells": - const: 1 - -required: - - compatible - - reg - - clocks - - power-domains - - resets - -if: - properties: - compatible: - contains: - enum: - - renesas,r8a779a0-thermal -then: - properties: - reg: - items: - - description: TSC0 registers - - description: TSC1 registers - - description: TSC2 registers - - description: TSC3 registers - - description: TSC4 registers -else: - properties: - reg: - minItems: 2 - items: - - description: TSC1 registers - - description: TSC2 registers - - description: TSC3 registers - - description: TSC4 registers - if: - not: - properties: - compatible: - contains: - enum: - - renesas,r8a779f0-thermal - - renesas,r8a779g0-thermal - - renesas,r8a779h0-thermal - then: - required: - - interrupts - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - - tsc: thermal@e6198000 { - compatible = "renesas,r8a7795-thermal"; - reg = <0xe6198000 0x100>, - <0xe61a0000 0x100>, - <0xe61a8000 0x100>; - interrupts = , - , - ; - clocks = <&cpg CPG_MOD 522>; - power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; - resets = <&cpg 522>; - #thermal-sensor-cells = <1>; - }; - - thermal-zones { - sensor_thermal: sensor-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsc 0>; - - trips { - sensor1_crit: sensor1-crit { - temperature = <90000>; - hysteresis = <2000>; - type = "critical"; - }; - }; - }; - }; - - | - #include - #include - #include - - tsc_r8a779a0: thermal@e6190000 { - compatible = "renesas,r8a779a0-thermal"; - reg = <0xe6190000 0x200>, - <0xe6198000 0x200>, - <0xe61a0000 0x200>, - <0xe61a8000 0x200>, - <0xe61b0000 0x200>; - clocks = <&cpg CPG_MOD 919>; - power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>; - resets = <&cpg 919>; - #thermal-sensor-cells = <1>; - }; +# SPDX-License-Identifier: GPL-2.0-only +# Copyright (C) 2020 Renesas Electronics Corp. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/rcar-gen3-thermal.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas R-Car Gen3 Thermal Sensor + +description: + On most R-Car Gen3 and later SoCs, the thermal sensor controllers (TSC) + control the thermal sensors (THS) which are the analog circuits for + measuring temperature (Tj) inside the LSI. + +maintainers: + - Niklas Söderlund + +$ref: thermal-sensor.yaml# + +properties: + compatible: + enum: + - renesas,r8a774a1-thermal # RZ/G2M + - renesas,r8a774b1-thermal # RZ/G2N + - renesas,r8a774e1-thermal # RZ/G2H + - renesas,r8a7795-thermal # R-Car H3 + - renesas,r8a7796-thermal # R-Car M3-W + - renesas,r8a77961-thermal # R-Car M3-W+ + - renesas,r8a77965-thermal # R-Car M3-N + - renesas,r8a77980-thermal # R-Car V3H + - renesas,r8a779a0-thermal # R-Car V3U + - renesas,r8a779f0-thermal # R-Car S4-8 + - renesas,r8a779g0-thermal # R-Car V4H + - renesas,r8a779h0-thermal # R-Car V4M + + reg: true + + interrupts: + items: + - description: TEMP1 interrupt + - description: TEMP2 interrupt + - description: TEMP3 interrupt + + clocks: + maxItems: 1 + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + "#thermal-sensor-cells": + const: 1 + +required: + - compatible + - reg + - clocks + - power-domains + - resets + +if: + properties: + compatible: + contains: + enum: + - renesas,r8a779a0-thermal +then: + properties: + reg: + items: + - description: TSC0 registers + - description: TSC1 registers + - description: TSC2 registers + - description: TSC3 registers + - description: TSC4 registers +else: + properties: + reg: + minItems: 2 + items: + - description: TSC1 registers + - description: TSC2 registers + - description: TSC3 registers + - description: TSC4 registers + if: + not: + properties: + compatible: + contains: + enum: + - renesas,r8a779f0-thermal + - renesas,r8a779g0-thermal + - renesas,r8a779h0-thermal + then: + required: + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + tsc: thermal@e6198000 { + compatible = "renesas,r8a7795-thermal"; + reg = <0xe6198000 0x100>, + <0xe61a0000 0x100>, + <0xe61a8000 0x100>; + interrupts = , + , + ; + clocks = <&cpg CPG_MOD 522>; + power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <1>; + }; + + thermal-zones { + sensor_thermal: sensor-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&tsc 0>; + + trips { + sensor1_crit: sensor1-crit { + temperature = <90000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; + - | + #include + #include + #include + + tsc_r8a779a0: thermal@e6190000 { + compatible = "renesas,r8a779a0-thermal"; + reg = <0xe6190000 0x200>, + <0xe6198000 0x200>, + <0xe61a0000 0x200>, + <0xe61a8000 0x200>, + <0xe61b0000 0x200>; + clocks = <&cpg CPG_MOD 919>; + power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>; + resets = <&cpg 919>; + #thermal-sensor-cells = <1>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/rcar-thermal.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/rcar-thermal.yaml index cf0dcbaf8..221a58d18 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/rcar-thermal.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/thermal/rcar-thermal.yaml @@ -1,155 +1,155 @@ -# SPDX-License-Identifier: GPL-2.0-only -# Copyright (C) 2020 Renesas Electronics Corp. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/thermal/rcar-thermal.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas R-Car Thermal - -maintainers: - - Niklas Söderlund - -properties: - compatible: - oneOf: - - items: - - enum: - - renesas,thermal-r8a73a4 # R-Mobile APE6 - - renesas,thermal-r8a7779 # R-Car H1 - - const: renesas,rcar-thermal # Generic without thermal-zone - - items: - - enum: - - renesas,thermal-r8a7742 # RZ/G1H - - renesas,thermal-r8a7743 # RZ/G1M - - renesas,thermal-r8a7744 # RZ/G1N - - const: renesas,rcar-gen2-thermal # Generic thermal-zone - - items: - - enum: - - renesas,thermal-r8a7790 # R-Car H2 - - renesas,thermal-r8a7791 # R-Car M2-W - - renesas,thermal-r8a7792 # R-Car V2H - - renesas,thermal-r8a7793 # R-Car M2-N - - const: renesas,rcar-gen2-thermal # Generic thermal-zone - - const: renesas,rcar-thermal # Generic without thermal-zone - - items: - - enum: - - renesas,thermal-r8a774c0 # RZ/G2E - - renesas,thermal-r8a77970 # R-Car V3M - - renesas,thermal-r8a77990 # R-Car E3 - - renesas,thermal-r8a77995 # R-Car D3 - reg: - description: - Address ranges of the thermal registers. If more then one range is given - the first one must be the common registers followed by each sensor - according to the datasheet. - minItems: 1 - maxItems: 4 - - interrupts: - minItems: 1 - maxItems: 3 - - clocks: - maxItems: 1 - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - "#thermal-sensor-cells": - const: 0 - -required: - - compatible - - reg - -allOf: - - if: - not: - properties: - compatible: - contains: - enum: - - renesas,thermal-r8a73a4 # R-Mobile APE6 - - renesas,thermal-r8a7779 # R-Car H1 - then: - required: - - resets - - '#thermal-sensor-cells' - - - if: - not: - properties: - compatible: - contains: - const: renesas,thermal-r8a7779 # R-Car H1 - then: - required: - - interrupts - - clocks - - power-domains - -additionalProperties: false - -examples: - # Example (non interrupt support) - - | - thermal@ffc48000 { - compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal"; - reg = <0xffc48000 0x38>; - }; - - # Example (interrupt support) - - | - #include - #include - #include - - thermal@e61f0000 { - compatible = "renesas,thermal-r8a73a4", "renesas,rcar-thermal"; - reg = <0xe61f0000 0x14>, <0xe61f0100 0x38>, - <0xe61f0200 0x38>, <0xe61f0300 0x38>; - interrupts = ; - clocks = <&mstp5_clks R8A73A4_CLK_THERMAL>; - power-domains = <&pd_c5>; - }; - - # Example (with thermal-zone) - - | - #include - #include - #include - - thermal: thermal@e61f0000 { - compatible = "renesas,thermal-r8a7790", - "renesas,rcar-gen2-thermal", - "renesas,rcar-thermal"; - reg = <0xe61f0000 0x10>, <0xe61f0100 0x38>; - interrupts = ; - clocks = <&cpg CPG_MOD 522>; - power-domains = <&sysc R8A7790_PD_ALWAYS_ON>; - resets = <&cpg 522>; - #thermal-sensor-cells = <0>; - }; - - thermal-zones { - cpu_thermal: cpu-thermal { - polling-delay-passive = <1000>; - polling-delay = <5000>; - - thermal-sensors = <&thermal>; - - trips { - cpu-crit { - temperature = <115000>; - hysteresis = <0>; - type = "critical"; - }; - }; - cooling-maps { - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only +# Copyright (C) 2020 Renesas Electronics Corp. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/rcar-thermal.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas R-Car Thermal + +maintainers: + - Niklas Söderlund + +properties: + compatible: + oneOf: + - items: + - enum: + - renesas,thermal-r8a73a4 # R-Mobile APE6 + - renesas,thermal-r8a7779 # R-Car H1 + - const: renesas,rcar-thermal # Generic without thermal-zone + - items: + - enum: + - renesas,thermal-r8a7742 # RZ/G1H + - renesas,thermal-r8a7743 # RZ/G1M + - renesas,thermal-r8a7744 # RZ/G1N + - const: renesas,rcar-gen2-thermal # Generic thermal-zone + - items: + - enum: + - renesas,thermal-r8a7790 # R-Car H2 + - renesas,thermal-r8a7791 # R-Car M2-W + - renesas,thermal-r8a7792 # R-Car V2H + - renesas,thermal-r8a7793 # R-Car M2-N + - const: renesas,rcar-gen2-thermal # Generic thermal-zone + - const: renesas,rcar-thermal # Generic without thermal-zone + - items: + - enum: + - renesas,thermal-r8a774c0 # RZ/G2E + - renesas,thermal-r8a77970 # R-Car V3M + - renesas,thermal-r8a77990 # R-Car E3 + - renesas,thermal-r8a77995 # R-Car D3 + reg: + description: + Address ranges of the thermal registers. If more then one range is given + the first one must be the common registers followed by each sensor + according to the datasheet. + minItems: 1 + maxItems: 4 + + interrupts: + minItems: 1 + maxItems: 3 + + clocks: + maxItems: 1 + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + "#thermal-sensor-cells": + const: 0 + +required: + - compatible + - reg + +allOf: + - if: + not: + properties: + compatible: + contains: + enum: + - renesas,thermal-r8a73a4 # R-Mobile APE6 + - renesas,thermal-r8a7779 # R-Car H1 + then: + required: + - resets + - '#thermal-sensor-cells' + + - if: + not: + properties: + compatible: + contains: + const: renesas,thermal-r8a7779 # R-Car H1 + then: + required: + - interrupts + - clocks + - power-domains + +additionalProperties: false + +examples: + # Example (non interrupt support) + - | + thermal@ffc48000 { + compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal"; + reg = <0xffc48000 0x38>; + }; + + # Example (interrupt support) + - | + #include + #include + #include + + thermal@e61f0000 { + compatible = "renesas,thermal-r8a73a4", "renesas,rcar-thermal"; + reg = <0xe61f0000 0x14>, <0xe61f0100 0x38>, + <0xe61f0200 0x38>, <0xe61f0300 0x38>; + interrupts = ; + clocks = <&mstp5_clks R8A73A4_CLK_THERMAL>; + power-domains = <&pd_c5>; + }; + + # Example (with thermal-zone) + - | + #include + #include + #include + + thermal: thermal@e61f0000 { + compatible = "renesas,thermal-r8a7790", + "renesas,rcar-gen2-thermal", + "renesas,rcar-thermal"; + reg = <0xe61f0000 0x10>, <0xe61f0100 0x38>; + interrupts = ; + clocks = <&cpg CPG_MOD 522>; + power-domains = <&sysc R8A7790_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <0>; + }; + + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <1000>; + polling-delay = <5000>; + + thermal-sensors = <&thermal>; + + trips { + cpu-crit { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + cooling-maps { + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml index 7d7adead1..c5fc3b6c8 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml @@ -1,128 +1,128 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/timer/arm,arch_timer.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ARM architected timer - -maintainers: - - Marc Zyngier - - Mark Rutland -description: |+ - ARM cores may have a per-core architected timer, which provides per-cpu timers, - or a memory mapped architected timer, which provides up to 8 frames with a - physical and optional virtual timer per frame. - - The per-core architected timer is attached to a GIC to deliver its - per-processor interrupts via PPIs. The memory mapped timer is attached to a GIC - to deliver its interrupts via SPIs. - -properties: - compatible: - oneOf: - - items: - - const: arm,cortex-a15-timer - - const: arm,armv7-timer - - items: - - enum: - - arm,armv7-timer - - arm,armv8-timer - - items: - - const: arm,armv8-timer - - const: arm,armv7-timer - - interrupts: - minItems: 1 - items: - - description: secure timer irq - - description: non-secure timer irq - - description: virtual timer irq - - description: hypervisor timer irq - - description: hypervisor virtual timer irq - - interrupt-names: - oneOf: - - minItems: 2 - items: - - const: phys - - const: virt - - const: hyp-phys - - const: hyp-virt - - minItems: 3 - items: - - const: sec-phys - - const: phys - - const: virt - - const: hyp-phys - - const: hyp-virt - - clock-frequency: - description: The frequency of the main counter, in Hz. Should be present - only where necessary to work around broken firmware which does not configure - CNTFRQ on all CPUs to a uniform correct value. Use of this property is - strongly discouraged; fix your firmware unless absolutely impossible. - - always-on: - type: boolean - description: If present, the timer is powered through an always-on power - domain, therefore it never loses context. - - allwinner,erratum-unknown1: - type: boolean - description: Indicates the presence of an erratum found in Allwinner SoCs, - where reading certain values from the counter is unreliable. This also - affects writes to the tval register, due to the implicit counter read. - - fsl,erratum-a008585: - type: boolean - description: Indicates the presence of QorIQ erratum A-008585, which says - that reading the counter is unreliable unless the same value is returned - by back-to-back reads. This also affects writes to the tval register, due - to the implicit counter read. - - hisilicon,erratum-161010101: - type: boolean - description: Indicates the presence of Hisilicon erratum 161010101, which - says that reading the counters is unreliable in some cases, and reads may - return a value 32 beyond the correct value. This also affects writes to - the tval registers, due to the implicit counter read. - - arm,cpu-registers-not-fw-configured: - type: boolean - description: Firmware does not initialize any of the generic timer CPU - registers, which contain their architecturally-defined reset values. Only - supported for 32-bit systems which follow the ARMv7 architected reset - values. - - arm,no-tick-in-suspend: - type: boolean - description: The main counter does not tick when the system is in - low-power system suspend on some SoCs. This behavior does not match the - Architecture Reference Manual's specification that the system counter "must - be implemented in an always-on power domain." - -required: - - compatible - -additionalProperties: false - -oneOf: - - required: - - interrupts - - required: - - interrupts-extended - -examples: - - | - timer { - compatible = "arm,cortex-a15-timer", - "arm,armv7-timer"; - interrupts = <1 13 0xf08>, - <1 14 0xf08>, - <1 11 0xf08>, - <1 10 0xf08>; - clock-frequency = <100000000>; - }; - -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/arm,arch_timer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARM architected timer + +maintainers: + - Marc Zyngier + - Mark Rutland +description: |+ + ARM cores may have a per-core architected timer, which provides per-cpu timers, + or a memory mapped architected timer, which provides up to 8 frames with a + physical and optional virtual timer per frame. + + The per-core architected timer is attached to a GIC to deliver its + per-processor interrupts via PPIs. The memory mapped timer is attached to a GIC + to deliver its interrupts via SPIs. + +properties: + compatible: + oneOf: + - items: + - const: arm,cortex-a15-timer + - const: arm,armv7-timer + - items: + - enum: + - arm,armv7-timer + - arm,armv8-timer + - items: + - const: arm,armv8-timer + - const: arm,armv7-timer + + interrupts: + minItems: 1 + items: + - description: secure timer irq + - description: non-secure timer irq + - description: virtual timer irq + - description: hypervisor timer irq + - description: hypervisor virtual timer irq + + interrupt-names: + oneOf: + - minItems: 2 + items: + - const: phys + - const: virt + - const: hyp-phys + - const: hyp-virt + - minItems: 3 + items: + - const: sec-phys + - const: phys + - const: virt + - const: hyp-phys + - const: hyp-virt + + clock-frequency: + description: The frequency of the main counter, in Hz. Should be present + only where necessary to work around broken firmware which does not configure + CNTFRQ on all CPUs to a uniform correct value. Use of this property is + strongly discouraged; fix your firmware unless absolutely impossible. + + always-on: + type: boolean + description: If present, the timer is powered through an always-on power + domain, therefore it never loses context. + + allwinner,erratum-unknown1: + type: boolean + description: Indicates the presence of an erratum found in Allwinner SoCs, + where reading certain values from the counter is unreliable. This also + affects writes to the tval register, due to the implicit counter read. + + fsl,erratum-a008585: + type: boolean + description: Indicates the presence of QorIQ erratum A-008585, which says + that reading the counter is unreliable unless the same value is returned + by back-to-back reads. This also affects writes to the tval register, due + to the implicit counter read. + + hisilicon,erratum-161010101: + type: boolean + description: Indicates the presence of Hisilicon erratum 161010101, which + says that reading the counters is unreliable in some cases, and reads may + return a value 32 beyond the correct value. This also affects writes to + the tval registers, due to the implicit counter read. + + arm,cpu-registers-not-fw-configured: + type: boolean + description: Firmware does not initialize any of the generic timer CPU + registers, which contain their architecturally-defined reset values. Only + supported for 32-bit systems which follow the ARMv7 architected reset + values. + + arm,no-tick-in-suspend: + type: boolean + description: The main counter does not tick when the system is in + low-power system suspend on some SoCs. This behavior does not match the + Architecture Reference Manual's specification that the system counter "must + be implemented in an always-on power domain." + +required: + - compatible + +additionalProperties: false + +oneOf: + - required: + - interrupts + - required: + - interrupts-extended + +examples: + - | + timer { + compatible = "arm,cortex-a15-timer", + "arm,armv7-timer"; + interrupts = <1 13 0xf08>, + <1 14 0xf08>, + <1 11 0xf08>, + <1 10 0xf08>; + clock-frequency = <100000000>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timer/nvidia,tegra186-timer.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timer/nvidia,tegra186-timer.yaml index 7657e7927..76516e18e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timer/nvidia,tegra186-timer.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timer/nvidia,tegra186-timer.yaml @@ -1,109 +1,109 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/timer/nvidia,tegra186-timer.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NVIDIA Tegra186 timer - -maintainers: - - Thierry Reding - -description: > - The Tegra timer provides 29-bit timer counters and a 32-bit timestamp - counter. Each NV timer selects its timing reference signal from the 1 MHz - reference generated by USEC, TSC or either clk_m or OSC. Each TMR can be - programmed to generate one-shot, periodic, or watchdog interrupts. - - -properties: - compatible: - oneOf: - - const: nvidia,tegra186-timer - description: > - The Tegra186 timer provides ten 29-bit timer counters. - - const: nvidia,tegra234-timer - description: > - The Tegra234 timer provides sixteen 29-bit timer counters. - - reg: - maxItems: 1 - - interrupts: true - -allOf: - - if: - properties: - compatible: - contains: - const: nvidia,tegra186-timer - then: - properties: - interrupts: - maxItems: 10 - description: > - One per each timer channels 0 through 9. - - - if: - properties: - compatible: - contains: - const: nvidia,tegra234-timer - then: - properties: - interrupts: - maxItems: 16 - description: > - One per each timer channels 0 through 15. - -required: - - compatible - - reg - - interrupts - -additionalProperties: false - -examples: - - | - #include - #include - - timer@3010000 { - compatible = "nvidia,tegra186-timer"; - reg = <0x03010000 0x000e0000>; - interrupts = , - , - , - , - , - , - , - , - , - ; - }; - - - | - #include - #include - - timer@2080000 { - compatible = "nvidia,tegra234-timer"; - reg = <0x02080000 0x00121000>; - interrupts = , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - ; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/nvidia,tegra186-timer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra186 timer + +maintainers: + - Thierry Reding + +description: > + The Tegra timer provides 29-bit timer counters and a 32-bit timestamp + counter. Each NV timer selects its timing reference signal from the 1 MHz + reference generated by USEC, TSC or either clk_m or OSC. Each TMR can be + programmed to generate one-shot, periodic, or watchdog interrupts. + + +properties: + compatible: + oneOf: + - const: nvidia,tegra186-timer + description: > + The Tegra186 timer provides ten 29-bit timer counters. + - const: nvidia,tegra234-timer + description: > + The Tegra234 timer provides sixteen 29-bit timer counters. + + reg: + maxItems: 1 + + interrupts: true + +allOf: + - if: + properties: + compatible: + contains: + const: nvidia,tegra186-timer + then: + properties: + interrupts: + maxItems: 10 + description: > + One per each timer channels 0 through 9. + + - if: + properties: + compatible: + contains: + const: nvidia,tegra234-timer + then: + properties: + interrupts: + maxItems: 16 + description: > + One per each timer channels 0 through 15. + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + #include + + timer@3010000 { + compatible = "nvidia,tegra186-timer"; + reg = <0x03010000 0x000e0000>; + interrupts = , + , + , + , + , + , + , + , + , + ; + }; + + - | + #include + #include + + timer@2080000 { + compatible = "nvidia,tegra234-timer"; + reg = <0x02080000 0x00121000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timer/renesas,tmu.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timer/renesas,tmu.yaml index 8ad62bc9f..75b0e7c70 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timer/renesas,tmu.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timer/renesas,tmu.yaml @@ -1,136 +1,136 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/timer/renesas,tmu.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas R-Mobile/R-Car Timer Unit (TMU) - -maintainers: - - Geert Uytterhoeven - - Laurent Pinchart - -description: - The TMU is a 32-bit timer/counter with configurable clock inputs and - programmable compare match. - - Channels share hardware resources but their counter and compare match value - are independent. The TMU hardware supports up to three channels. - -properties: - compatible: - items: - - enum: - - renesas,tmu-r8a73a4 # R-Mobile APE6 - - renesas,tmu-r8a7740 # R-Mobile A1 - - renesas,tmu-r8a7742 # RZ/G1H - - renesas,tmu-r8a7743 # RZ/G1M - - renesas,tmu-r8a7744 # RZ/G1N - - renesas,tmu-r8a7745 # RZ/G1E - - renesas,tmu-r8a77470 # RZ/G1C - - renesas,tmu-r8a774a1 # RZ/G2M - - renesas,tmu-r8a774b1 # RZ/G2N - - renesas,tmu-r8a774c0 # RZ/G2E - - renesas,tmu-r8a774e1 # RZ/G2H - - renesas,tmu-r8a7778 # R-Car M1A - - renesas,tmu-r8a7779 # R-Car H1 - - renesas,tmu-r8a7790 # R-Car H2 - - renesas,tmu-r8a7791 # R-Car M2-W - - renesas,tmu-r8a7792 # R-Car V2H - - renesas,tmu-r8a7793 # R-Car M2-N - - renesas,tmu-r8a7794 # R-Car E2 - - renesas,tmu-r8a7795 # R-Car H3 - - renesas,tmu-r8a7796 # R-Car M3-W - - renesas,tmu-r8a77961 # R-Car M3-W+ - - renesas,tmu-r8a77965 # R-Car M3-N - - renesas,tmu-r8a77970 # R-Car V3M - - renesas,tmu-r8a77980 # R-Car V3H - - renesas,tmu-r8a77990 # R-Car E3 - - renesas,tmu-r8a77995 # R-Car D3 - - renesas,tmu-r8a779a0 # R-Car V3U - - renesas,tmu-r8a779f0 # R-Car S4-8 - - renesas,tmu-r8a779g0 # R-Car V4H - - renesas,tmu-r8a779h0 # R-Car V4M - - const: renesas,tmu - - reg: - maxItems: 1 - - interrupts: - minItems: 2 - items: - - description: Underflow interrupt, channel 0 - - description: Underflow interrupt, channel 1 - - description: Underflow interrupt, channel 2 - - description: Input capture interrupt, channel 2 - - interrupt-names: - minItems: 2 - items: - - const: tuni0 - - const: tuni1 - - const: tuni2 - - const: ticpi2 - - clocks: - maxItems: 1 - - clock-names: - const: fck - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - '#renesas,channels': - description: - Number of channels implemented by the timer. - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [ 2, 3 ] - default: 3 - -required: - - compatible - - reg - - interrupts - - interrupt-names - - clocks - - clock-names - - power-domains - -if: - not: - properties: - compatible: - contains: - enum: - - renesas,tmu-r8a73a4 - - renesas,tmu-r8a7740 - - renesas,tmu-r8a7778 - - renesas,tmu-r8a7779 -then: - required: - - resets - -additionalProperties: false - -examples: - - | - #include - #include - #include - tmu0: timer@ffd80000 { - compatible = "renesas,tmu-r8a7779", "renesas,tmu"; - reg = <0xffd80000 0x30>; - interrupts = , - , - , - ; - interrupt-names = "tuni0", "tuni1", "tuni2", "ticpi2"; - clocks = <&mstp0_clks R8A7779_CLK_TMU0>; - clock-names = "fck"; - power-domains = <&sysc R8A7779_PD_ALWAYS_ON>; - #renesas,channels = <3>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/renesas,tmu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas R-Mobile/R-Car Timer Unit (TMU) + +maintainers: + - Geert Uytterhoeven + - Laurent Pinchart + +description: + The TMU is a 32-bit timer/counter with configurable clock inputs and + programmable compare match. + + Channels share hardware resources but their counter and compare match value + are independent. The TMU hardware supports up to three channels. + +properties: + compatible: + items: + - enum: + - renesas,tmu-r8a73a4 # R-Mobile APE6 + - renesas,tmu-r8a7740 # R-Mobile A1 + - renesas,tmu-r8a7742 # RZ/G1H + - renesas,tmu-r8a7743 # RZ/G1M + - renesas,tmu-r8a7744 # RZ/G1N + - renesas,tmu-r8a7745 # RZ/G1E + - renesas,tmu-r8a77470 # RZ/G1C + - renesas,tmu-r8a774a1 # RZ/G2M + - renesas,tmu-r8a774b1 # RZ/G2N + - renesas,tmu-r8a774c0 # RZ/G2E + - renesas,tmu-r8a774e1 # RZ/G2H + - renesas,tmu-r8a7778 # R-Car M1A + - renesas,tmu-r8a7779 # R-Car H1 + - renesas,tmu-r8a7790 # R-Car H2 + - renesas,tmu-r8a7791 # R-Car M2-W + - renesas,tmu-r8a7792 # R-Car V2H + - renesas,tmu-r8a7793 # R-Car M2-N + - renesas,tmu-r8a7794 # R-Car E2 + - renesas,tmu-r8a7795 # R-Car H3 + - renesas,tmu-r8a7796 # R-Car M3-W + - renesas,tmu-r8a77961 # R-Car M3-W+ + - renesas,tmu-r8a77965 # R-Car M3-N + - renesas,tmu-r8a77970 # R-Car V3M + - renesas,tmu-r8a77980 # R-Car V3H + - renesas,tmu-r8a77990 # R-Car E3 + - renesas,tmu-r8a77995 # R-Car D3 + - renesas,tmu-r8a779a0 # R-Car V3U + - renesas,tmu-r8a779f0 # R-Car S4-8 + - renesas,tmu-r8a779g0 # R-Car V4H + - renesas,tmu-r8a779h0 # R-Car V4M + - const: renesas,tmu + + reg: + maxItems: 1 + + interrupts: + minItems: 2 + items: + - description: Underflow interrupt, channel 0 + - description: Underflow interrupt, channel 1 + - description: Underflow interrupt, channel 2 + - description: Input capture interrupt, channel 2 + + interrupt-names: + minItems: 2 + items: + - const: tuni0 + - const: tuni1 + - const: tuni2 + - const: ticpi2 + + clocks: + maxItems: 1 + + clock-names: + const: fck + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + '#renesas,channels': + description: + Number of channels implemented by the timer. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 2, 3 ] + default: 3 + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - clock-names + - power-domains + +if: + not: + properties: + compatible: + contains: + enum: + - renesas,tmu-r8a73a4 + - renesas,tmu-r8a7740 + - renesas,tmu-r8a7778 + - renesas,tmu-r8a7779 +then: + required: + - resets + +additionalProperties: false + +examples: + - | + #include + #include + #include + tmu0: timer@ffd80000 { + compatible = "renesas,tmu-r8a7779", "renesas,tmu"; + reg = <0xffd80000 0x30>; + interrupts = , + , + , + ; + interrupt-names = "tuni0", "tuni1", "tuni2", "ticpi2"; + clocks = <&mstp0_clks R8A7779_CLK_TMU0>; + clock-names = "fck"; + power-domains = <&sysc R8A7779_PD_ALWAYS_ON>; + #renesas,channels = <3>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timer/ti,timer-dm.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timer/ti,timer-dm.yaml index e8f69c48b..acbb6f899 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timer/ti,timer-dm.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timer/ti,timer-dm.yaml @@ -1,159 +1,159 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/timer/ti,timer-dm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: TI dual-mode timer - -maintainers: - - Tony Lindgren - -description: | - The TI dual-mode timer is a general purpose timer with PWM capabilities. - -properties: - compatible: - oneOf: - - items: - - enum: - - ti,am335x-timer - - ti,am335x-timer-1ms - - ti,am654-timer - - ti,dm814-timer - - ti,dm816-timer - - ti,omap2420-timer - - ti,omap3430-timer - - ti,omap4430-timer - - ti,omap5430-timer - - items: - - const: ti,am4372-timer - - const: ti,am335x-timer - - items: - - const: ti,am4372-timer-1ms - - const: ti,am335x-timer-1ms - - reg: - items: - - description: IO address - - description: L3 to L4 mapping for omap4/5 L4 ABE - minItems: 1 - - clocks: - items: - - description: Functional clock - - description: System clock for omap4/5 and dra7 - minItems: 1 - - clock-names: - items: - - const: fck - - const: timer_sys_ck - minItems: 1 - - power-domains: - description: - Power domain if available - maxItems: 1 - - interrupts: - description: - Interrupt if available. The timer PWM features may be usable - in a limited way even without interrupts. - maxItems: 1 - - ti,timer-alwon: - description: - Timer is always enabled when the SoC is powered. Note that some SoCs like - am335x can suspend to PM coprocessor RTC only mode and in that case the - SoC power is cut including timers. - type: boolean - - ti,timer-dsp: - description: - Timer is routable to the DSP in addition to the operating system. - type: boolean - - ti,timer-pwm: - description: - Timer has been wired for PWM capability. - type: boolean - - ti,timer-secure: - description: - Timer access has been limited to secure mode only. - type: boolean - - ti,hwmods: - description: - Name of the HWMOD associated with timer. This is for legacy - omap2/3 platforms only. - $ref: /schemas/types.yaml#/definitions/string - deprecated: true - -required: - - compatible - - reg - -additionalProperties: false - -allOf: - - if: - properties: - compatible: - contains: - const: ti,am654-timer - then: - required: - - power-domains - else: - required: - - interrupts - - - if: - not: - properties: - compatible: - contains: - enum: - - ti,omap3430-timer - - ti,omap4430-timer - - ti,omap5430-timer - then: - properties: - reg: - maxItems: 1 - clocks: - maxItems: 1 - clock-names: - maxItems: 1 - - - if: - properties: - compatible: - contains: - enum: - - ti,dm814-timer - - ti,dm816-timer - - ti,omap2420-timer - - ti,omap3430-timer - then: - properties: - ti,hwmods: - items: - - pattern: "^timer([1-9]|1[0-2])$" - else: - properties: - ti,hwmods: false - -examples: - - | - timer1: timer@0 { - compatible = "ti,am335x-timer-1ms"; - reg = <0x0 0x400>; - interrupts = <67>; - ti,timer-alwon; - clocks = <&timer1_fck>; - clock-names = "fck"; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/ti,timer-dm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI dual-mode timer + +maintainers: + - Tony Lindgren + +description: | + The TI dual-mode timer is a general purpose timer with PWM capabilities. + +properties: + compatible: + oneOf: + - items: + - enum: + - ti,am335x-timer + - ti,am335x-timer-1ms + - ti,am654-timer + - ti,dm814-timer + - ti,dm816-timer + - ti,omap2420-timer + - ti,omap3430-timer + - ti,omap4430-timer + - ti,omap5430-timer + - items: + - const: ti,am4372-timer + - const: ti,am335x-timer + - items: + - const: ti,am4372-timer-1ms + - const: ti,am335x-timer-1ms + + reg: + items: + - description: IO address + - description: L3 to L4 mapping for omap4/5 L4 ABE + minItems: 1 + + clocks: + items: + - description: Functional clock + - description: System clock for omap4/5 and dra7 + minItems: 1 + + clock-names: + items: + - const: fck + - const: timer_sys_ck + minItems: 1 + + power-domains: + description: + Power domain if available + maxItems: 1 + + interrupts: + description: + Interrupt if available. The timer PWM features may be usable + in a limited way even without interrupts. + maxItems: 1 + + ti,timer-alwon: + description: + Timer is always enabled when the SoC is powered. Note that some SoCs like + am335x can suspend to PM coprocessor RTC only mode and in that case the + SoC power is cut including timers. + type: boolean + + ti,timer-dsp: + description: + Timer is routable to the DSP in addition to the operating system. + type: boolean + + ti,timer-pwm: + description: + Timer has been wired for PWM capability. + type: boolean + + ti,timer-secure: + description: + Timer access has been limited to secure mode only. + type: boolean + + ti,hwmods: + description: + Name of the HWMOD associated with timer. This is for legacy + omap2/3 platforms only. + $ref: /schemas/types.yaml#/definitions/string + deprecated: true + +required: + - compatible + - reg + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + contains: + const: ti,am654-timer + then: + required: + - power-domains + else: + required: + - interrupts + + - if: + not: + properties: + compatible: + contains: + enum: + - ti,omap3430-timer + - ti,omap4430-timer + - ti,omap5430-timer + then: + properties: + reg: + maxItems: 1 + clocks: + maxItems: 1 + clock-names: + maxItems: 1 + + - if: + properties: + compatible: + contains: + enum: + - ti,dm814-timer + - ti,dm816-timer + - ti,omap2420-timer + - ti,omap3430-timer + then: + properties: + ti,hwmods: + items: + - pattern: "^timer([1-9]|1[0-2])$" + else: + properties: + ti,hwmods: false + +examples: + - | + timer1: timer@0 { + compatible = "ti,am335x-timer-1ms"; + reg = <0x0 0x400>; + interrupts = <67>; + ti,timer-alwon; + clocks = <&timer1_fck>; + clock-names = "fck"; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml index 03fee02dd..456797967 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml @@ -1,140 +1,140 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/timestamp/nvidia,tegra194-hte.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Tegra on chip generic hardware timestamping engine (HTE) provider - -maintainers: - - Dipen Patel - -description: - Tegra SoC has two instances of generic hardware timestamping engines (GTE) - known as GTE GPIO and GTE IRQ, which can monitor subset of GPIO and on chip - IRQ lines for the state change respectively, upon detection it will record - timestamp (taken from system counter) in its internal hardware FIFO. It has - a bitmap array arranged in 32bit slices where each bit represent signal/line - to enable or disable for the hardware timestamping. The GTE GPIO monitors - GPIO lines from the AON (always on) GPIO controller. - -properties: - compatible: - enum: - - nvidia,tegra194-gte-aon - - nvidia,tegra194-gte-lic - - nvidia,tegra234-gte-aon - - nvidia,tegra234-gte-lic - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - nvidia,int-threshold: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - HTE device generates its interrupt based on this u32 FIFO threshold - value. The recommended value is 1. - minimum: 1 - maximum: 256 - - nvidia,slices: - $ref: /schemas/types.yaml#/definitions/uint32 - deprecated: true - description: - HTE lines are arranged in 32 bit slice where each bit represents different - line/signal that it can enable/configure for the timestamp. It is u32 - property and the value depends on the HTE instance in the chip. The AON - GTE instances for both Tegra194 and Tegra234 has 3 slices. The Tegra194 - LIC instance has 11 slices and Tegra234 LIC has 17 slices. - enum: [3, 11, 17] - - nvidia,gpio-controller: - $ref: /schemas/types.yaml#/definitions/phandle - description: - The phandle to AON gpio controller instance. This is required to handle - namespace conversion between GPIO and GTE. - - '#timestamp-cells': - description: - This represents number of line id arguments as specified by the - consumers. For the GTE IRQ, this is IRQ number as mentioned in the - SoC technical reference manual. For the GTE GPIO, its value is same as - mentioned in the nvidia GPIO device tree binding document. - const: 1 - -required: - - compatible - - reg - - interrupts - - "#timestamp-cells" - -allOf: - - if: - properties: - compatible: - contains: - enum: - - nvidia,tegra194-gte-aon - - nvidia,tegra234-gte-aon - then: - properties: - nvidia,slices: - const: 3 - - - if: - properties: - compatible: - contains: - enum: - - nvidia,tegra194-gte-lic - then: - properties: - nvidia,slices: - const: 11 - - - if: - properties: - compatible: - contains: - enum: - - nvidia,tegra234-gte-lic - then: - properties: - nvidia,slices: - const: 17 - - - if: - properties: - compatible: - contains: - enum: - - nvidia,tegra234-gte-aon - then: - required: - - nvidia,gpio-controller - -additionalProperties: false - -examples: - - | - tegra_hte_aon: timestamp@c1e0000 { - compatible = "nvidia,tegra194-gte-aon"; - reg = <0xc1e0000 0x10000>; - interrupts = <0 13 0x4>; - nvidia,int-threshold = <1>; - #timestamp-cells = <1>; - }; - - - | - tegra_hte_lic: timestamp@3aa0000 { - compatible = "nvidia,tegra194-gte-lic"; - reg = <0x3aa0000 0x10000>; - interrupts = <0 11 0x4>; - nvidia,int-threshold = <1>; - #timestamp-cells = <1>; - }; - -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timestamp/nvidia,tegra194-hte.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Tegra on chip generic hardware timestamping engine (HTE) provider + +maintainers: + - Dipen Patel + +description: + Tegra SoC has two instances of generic hardware timestamping engines (GTE) + known as GTE GPIO and GTE IRQ, which can monitor subset of GPIO and on chip + IRQ lines for the state change respectively, upon detection it will record + timestamp (taken from system counter) in its internal hardware FIFO. It has + a bitmap array arranged in 32bit slices where each bit represent signal/line + to enable or disable for the hardware timestamping. The GTE GPIO monitors + GPIO lines from the AON (always on) GPIO controller. + +properties: + compatible: + enum: + - nvidia,tegra194-gte-aon + - nvidia,tegra194-gte-lic + - nvidia,tegra234-gte-aon + - nvidia,tegra234-gte-lic + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + nvidia,int-threshold: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + HTE device generates its interrupt based on this u32 FIFO threshold + value. The recommended value is 1. + minimum: 1 + maximum: 256 + + nvidia,slices: + $ref: /schemas/types.yaml#/definitions/uint32 + deprecated: true + description: + HTE lines are arranged in 32 bit slice where each bit represents different + line/signal that it can enable/configure for the timestamp. It is u32 + property and the value depends on the HTE instance in the chip. The AON + GTE instances for both Tegra194 and Tegra234 has 3 slices. The Tegra194 + LIC instance has 11 slices and Tegra234 LIC has 17 slices. + enum: [3, 11, 17] + + nvidia,gpio-controller: + $ref: /schemas/types.yaml#/definitions/phandle + description: + The phandle to AON gpio controller instance. This is required to handle + namespace conversion between GPIO and GTE. + + '#timestamp-cells': + description: + This represents number of line id arguments as specified by the + consumers. For the GTE IRQ, this is IRQ number as mentioned in the + SoC technical reference manual. For the GTE GPIO, its value is same as + mentioned in the nvidia GPIO device tree binding document. + const: 1 + +required: + - compatible + - reg + - interrupts + - "#timestamp-cells" + +allOf: + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra194-gte-aon + - nvidia,tegra234-gte-aon + then: + properties: + nvidia,slices: + const: 3 + + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra194-gte-lic + then: + properties: + nvidia,slices: + const: 11 + + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra234-gte-lic + then: + properties: + nvidia,slices: + const: 17 + + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra234-gte-aon + then: + required: + - nvidia,gpio-controller + +additionalProperties: false + +examples: + - | + tegra_hte_aon: timestamp@c1e0000 { + compatible = "nvidia,tegra194-gte-aon"; + reg = <0xc1e0000 0x10000>; + interrupts = <0 13 0x4>; + nvidia,int-threshold = <1>; + #timestamp-cells = <1>; + }; + + - | + tegra_hte_lic: timestamp@3aa0000 { + compatible = "nvidia,tegra194-gte-lic"; + reg = <0x3aa0000 0x10000>; + interrupts = <0 11 0x4>; + nvidia,int-threshold = <1>; + #timestamp-cells = <1>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml index ef7b4f4ca..a86bcd951 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml @@ -1,139 +1,139 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (c) 2020 Facebook Inc. -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/usb/aspeed,usb-vhub.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ASPEED USB 2.0 Virtual Hub Controller - -maintainers: - - Benjamin Herrenschmidt - -description: |+ - The ASPEED USB 2.0 Virtual Hub Controller implements 1 set of USB Hub - register and several sets of Device and Endpoint registers to support - the Virtual Hub's downstream USB devices. - - Supported number of devices and endpoints vary depending on hardware - revisions. AST2400 and AST2500 Virtual Hub supports 5 downstream devices - and 15 generic endpoints, while AST2600 Virtual Hub supports 7 downstream - devices and 21 generic endpoints. - -properties: - compatible: - enum: - - aspeed,ast2400-usb-vhub - - aspeed,ast2500-usb-vhub - - aspeed,ast2600-usb-vhub - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - interrupts: - maxItems: 1 - - aspeed,vhub-downstream-ports: - description: Number of downstream ports supported by the Virtual Hub - $ref: /schemas/types.yaml#/definitions/uint32 - default: 5 - minimum: 1 - maximum: 7 - - aspeed,vhub-generic-endpoints: - description: Number of generic endpoints supported by the Virtual Hub - $ref: /schemas/types.yaml#/definitions/uint32 - default: 15 - minimum: 1 - maximum: 21 - - vhub-vendor-id: - description: vhub Vendor ID - $ref: /schemas/types.yaml#/definitions/uint32 - maximum: 65535 - - vhub-product-id: - description: vhub Product ID - $ref: /schemas/types.yaml#/definitions/uint32 - maximum: 65535 - - vhub-device-revision: - description: vhub Device Revision in binary-coded decimal - $ref: /schemas/types.yaml#/definitions/uint32 - maximum: 65535 - - vhub-strings: - type: object - additionalProperties: false - - properties: - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - - patternProperties: - '^string@[0-9a-f]+$': - type: object - additionalProperties: false - description: string descriptors of the specific language - - properties: - reg: - maxItems: 1 - description: 16-bit Language Identifier defined by USB-IF - - manufacturer: - description: vhub manufacturer - $ref: /schemas/types.yaml#/definitions/string - - product: - description: vhub product name - $ref: /schemas/types.yaml#/definitions/string - - serial-number: - description: vhub device serial number - $ref: /schemas/types.yaml#/definitions/string - -required: - - compatible - - reg - - clocks - - interrupts - - aspeed,vhub-downstream-ports - - aspeed,vhub-generic-endpoints - -additionalProperties: false - -examples: - - | - #include - vhub: usb-vhub@1e6a0000 { - compatible = "aspeed,ast2500-usb-vhub"; - reg = <0x1e6a0000 0x300>; - interrupts = <5>; - clocks = <&syscon ASPEED_CLK_GATE_USBPORT1CLK>; - aspeed,vhub-downstream-ports = <5>; - aspeed,vhub-generic-endpoints = <15>; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_usb2ad_default>; - - vhub-vendor-id = <0x1d6b>; - vhub-product-id = <0x0107>; - vhub-device-revision = <0x0100>; - vhub-strings { - #address-cells = <1>; - #size-cells = <0>; - - string@409 { - reg = <0x409>; - manufacturer = "ASPEED"; - product = "USB Virtual Hub"; - serial-number = "0000"; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (c) 2020 Facebook Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/aspeed,usb-vhub.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ASPEED USB 2.0 Virtual Hub Controller + +maintainers: + - Benjamin Herrenschmidt + +description: |+ + The ASPEED USB 2.0 Virtual Hub Controller implements 1 set of USB Hub + register and several sets of Device and Endpoint registers to support + the Virtual Hub's downstream USB devices. + + Supported number of devices and endpoints vary depending on hardware + revisions. AST2400 and AST2500 Virtual Hub supports 5 downstream devices + and 15 generic endpoints, while AST2600 Virtual Hub supports 7 downstream + devices and 21 generic endpoints. + +properties: + compatible: + enum: + - aspeed,ast2400-usb-vhub + - aspeed,ast2500-usb-vhub + - aspeed,ast2600-usb-vhub + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + + aspeed,vhub-downstream-ports: + description: Number of downstream ports supported by the Virtual Hub + $ref: /schemas/types.yaml#/definitions/uint32 + default: 5 + minimum: 1 + maximum: 7 + + aspeed,vhub-generic-endpoints: + description: Number of generic endpoints supported by the Virtual Hub + $ref: /schemas/types.yaml#/definitions/uint32 + default: 15 + minimum: 1 + maximum: 21 + + vhub-vendor-id: + description: vhub Vendor ID + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 65535 + + vhub-product-id: + description: vhub Product ID + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 65535 + + vhub-device-revision: + description: vhub Device Revision in binary-coded decimal + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 65535 + + vhub-strings: + type: object + additionalProperties: false + + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + '^string@[0-9a-f]+$': + type: object + additionalProperties: false + description: string descriptors of the specific language + + properties: + reg: + maxItems: 1 + description: 16-bit Language Identifier defined by USB-IF + + manufacturer: + description: vhub manufacturer + $ref: /schemas/types.yaml#/definitions/string + + product: + description: vhub product name + $ref: /schemas/types.yaml#/definitions/string + + serial-number: + description: vhub device serial number + $ref: /schemas/types.yaml#/definitions/string + +required: + - compatible + - reg + - clocks + - interrupts + - aspeed,vhub-downstream-ports + - aspeed,vhub-generic-endpoints + +additionalProperties: false + +examples: + - | + #include + vhub: usb-vhub@1e6a0000 { + compatible = "aspeed,ast2500-usb-vhub"; + reg = <0x1e6a0000 0x300>; + interrupts = <5>; + clocks = <&syscon ASPEED_CLK_GATE_USBPORT1CLK>; + aspeed,vhub-downstream-ports = <5>; + aspeed,vhub-generic-endpoints = <15>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb2ad_default>; + + vhub-vendor-id = <0x1d6b>; + vhub-product-id = <0x0107>; + vhub-device-revision = <0x0100>; + vhub-strings { + #address-cells = <1>; + #size-cells = <0>; + + string@409 { + reg = <0x409>; + manufacturer = "ASPEED"; + product = "USB Virtual Hub"; + serial-number = "0000"; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/atmel-usb.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/atmel-usb.txt index e7e9fd02e..12183ef47 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/atmel-usb.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/atmel-usb.txt @@ -1,125 +1,125 @@ -Atmel SOC USB controllers - -OHCI - -Required properties: - - compatible: Should be "atmel,at91rm9200-ohci" for USB controllers - used in host mode. - - reg: Address and length of the register set for the device - - interrupts: Should contain ohci interrupt - - clocks: Should reference the peripheral, host and system clocks - - clock-names: Should contain three strings - "ohci_clk" for the peripheral clock - "hclk" for the host clock - "uhpck" for the system clock - - num-ports: Number of ports. - - atmel,vbus-gpio: If present, specifies a gpio that needs to be - activated for the bus to be powered. - - atmel,oc-gpio: If present, specifies a gpio that needs to be - activated for the overcurrent detection. - -usb0: ohci@500000 { - compatible = "atmel,at91rm9200-ohci", "usb-ohci"; - reg = <0x00500000 0x100000>; - clocks = <&uhphs_clk>, <&uhphs_clk>, <&uhpck>; - clock-names = "ohci_clk", "hclk", "uhpck"; - interrupts = <20 4>; - num-ports = <2>; -}; - -EHCI - -Required properties: - - compatible: Should be "atmel,at91sam9g45-ehci" for USB controllers - used in host mode. - - reg: Address and length of the register set for the device - - interrupts: Should contain ehci interrupt - - clocks: Should reference the peripheral and the UTMI clocks - - clock-names: Should contain two strings - "ehci_clk" for the peripheral clock - "usb_clk" for the UTMI clock - -Optional properties: - - phy_type : For multi port host USB controllers, should be one of - "utmi", or "hsic". - -usb1: ehci@800000 { - compatible = "atmel,at91sam9g45-ehci", "usb-ehci"; - reg = <0x00800000 0x100000>; - interrupts = <22 4>; - clocks = <&utmi>, <&uhphs_clk>; - clock-names = "usb_clk", "ehci_clk"; -}; - -AT91 USB device controller - -Required properties: - - compatible: Should be one of the following - "atmel,at91rm9200-udc" - "atmel,at91sam9260-udc" - "atmel,at91sam9261-udc" - "atmel,at91sam9263-udc" - - reg: Address and length of the register set for the device - - interrupts: Should contain macb interrupt - - clocks: Should reference the peripheral and the AHB clocks - - clock-names: Should contain two strings - "pclk" for the peripheral clock - "hclk" for the AHB clock - -Optional properties: - - atmel,vbus-gpio: If present, specifies a gpio that needs to be - activated for the bus to be powered. - -usb1: gadget@fffa4000 { - compatible = "atmel,at91rm9200-udc"; - reg = <0xfffa4000 0x4000>; - interrupts = <10 4>; - clocks = <&udc_clk>, <&udpck>; - clock-names = "pclk", "hclk"; - atmel,vbus-gpio = <&pioC 5 0>; -}; - -Atmel High-Speed USB device controller - -Required properties: - - compatible: Should be one of the following - "atmel,at91sam9rl-udc" - "atmel,at91sam9g45-udc" - "atmel,sama5d3-udc" - "microchip,sam9x60-udc" - "microchip,lan9662-udc" - For "microchip,lan9662-udc" the fallback "atmel,sama5d3-udc" - is required. - - reg: Address and length of the register set for the device - - interrupts: Should contain usba interrupt - - clocks: Should reference the peripheral and host clocks - - clock-names: Should contain two strings - "pclk" for the peripheral clock - "hclk" for the host clock - -Deprecated property: - - ep childnode: To specify the number of endpoints and their properties. - -Optional properties: - - atmel,vbus-gpio: If present, specifies a gpio that allows to detect whether - vbus is present (USB is connected). - -Deprecated child node properties: - - name: Name of the endpoint. - - reg: Num of the endpoint. - - atmel,fifo-size: Size of the fifo. - - atmel,nb-banks: Number of banks. - - atmel,can-dma: Boolean to specify if the endpoint support DMA. - - atmel,can-isoc: Boolean to specify if the endpoint support ISOC. - -usb2: gadget@fff78000 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "atmel,at91sam9rl-udc"; - reg = <0x00600000 0x80000 - 0xfff78000 0x400>; - interrupts = <27 4 0>; - clocks = <&utmi>, <&udphs_clk>; - clock-names = "hclk", "pclk"; - atmel,vbus-gpio = <&pioB 19 0>; -}; +Atmel SOC USB controllers + +OHCI + +Required properties: + - compatible: Should be "atmel,at91rm9200-ohci" for USB controllers + used in host mode. + - reg: Address and length of the register set for the device + - interrupts: Should contain ohci interrupt + - clocks: Should reference the peripheral, host and system clocks + - clock-names: Should contain three strings + "ohci_clk" for the peripheral clock + "hclk" for the host clock + "uhpck" for the system clock + - num-ports: Number of ports. + - atmel,vbus-gpio: If present, specifies a gpio that needs to be + activated for the bus to be powered. + - atmel,oc-gpio: If present, specifies a gpio that needs to be + activated for the overcurrent detection. + +usb0: ohci@500000 { + compatible = "atmel,at91rm9200-ohci", "usb-ohci"; + reg = <0x00500000 0x100000>; + clocks = <&uhphs_clk>, <&uhphs_clk>, <&uhpck>; + clock-names = "ohci_clk", "hclk", "uhpck"; + interrupts = <20 4>; + num-ports = <2>; +}; + +EHCI + +Required properties: + - compatible: Should be "atmel,at91sam9g45-ehci" for USB controllers + used in host mode. + - reg: Address and length of the register set for the device + - interrupts: Should contain ehci interrupt + - clocks: Should reference the peripheral and the UTMI clocks + - clock-names: Should contain two strings + "ehci_clk" for the peripheral clock + "usb_clk" for the UTMI clock + +Optional properties: + - phy_type : For multi port host USB controllers, should be one of + "utmi", or "hsic". + +usb1: ehci@800000 { + compatible = "atmel,at91sam9g45-ehci", "usb-ehci"; + reg = <0x00800000 0x100000>; + interrupts = <22 4>; + clocks = <&utmi>, <&uhphs_clk>; + clock-names = "usb_clk", "ehci_clk"; +}; + +AT91 USB device controller + +Required properties: + - compatible: Should be one of the following + "atmel,at91rm9200-udc" + "atmel,at91sam9260-udc" + "atmel,at91sam9261-udc" + "atmel,at91sam9263-udc" + - reg: Address and length of the register set for the device + - interrupts: Should contain macb interrupt + - clocks: Should reference the peripheral and the AHB clocks + - clock-names: Should contain two strings + "pclk" for the peripheral clock + "hclk" for the AHB clock + +Optional properties: + - atmel,vbus-gpio: If present, specifies a gpio that needs to be + activated for the bus to be powered. + +usb1: gadget@fffa4000 { + compatible = "atmel,at91rm9200-udc"; + reg = <0xfffa4000 0x4000>; + interrupts = <10 4>; + clocks = <&udc_clk>, <&udpck>; + clock-names = "pclk", "hclk"; + atmel,vbus-gpio = <&pioC 5 0>; +}; + +Atmel High-Speed USB device controller + +Required properties: + - compatible: Should be one of the following + "atmel,at91sam9rl-udc" + "atmel,at91sam9g45-udc" + "atmel,sama5d3-udc" + "microchip,sam9x60-udc" + "microchip,lan9662-udc" + For "microchip,lan9662-udc" the fallback "atmel,sama5d3-udc" + is required. + - reg: Address and length of the register set for the device + - interrupts: Should contain usba interrupt + - clocks: Should reference the peripheral and host clocks + - clock-names: Should contain two strings + "pclk" for the peripheral clock + "hclk" for the host clock + +Deprecated property: + - ep childnode: To specify the number of endpoints and their properties. + +Optional properties: + - atmel,vbus-gpio: If present, specifies a gpio that allows to detect whether + vbus is present (USB is connected). + +Deprecated child node properties: + - name: Name of the endpoint. + - reg: Num of the endpoint. + - atmel,fifo-size: Size of the fifo. + - atmel,nb-banks: Number of banks. + - atmel,can-dma: Boolean to specify if the endpoint support DMA. + - atmel,can-isoc: Boolean to specify if the endpoint support ISOC. + +usb2: gadget@fff78000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "atmel,at91sam9rl-udc"; + reg = <0x00600000 0x80000 + 0xfff78000 0x400>; + interrupts = <27 4 0>; + clocks = <&utmi>, <&udphs_clk>; + clock-names = "hclk", "pclk"; + atmel,vbus-gpio = <&pioB 19 0>; +}; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/dwc3-xilinx.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/dwc3-xilinx.yaml index 9536a18e1..00f87a558 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/dwc3-xilinx.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/dwc3-xilinx.yaml @@ -1,136 +1,136 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/usb/dwc3-xilinx.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Xilinx SuperSpeed DWC3 USB SoC controller - -maintainers: - - Mubin Sayyed - - Radhey Shyam Pandey - -properties: - compatible: - items: - - enum: - - xlnx,zynqmp-dwc3 - - xlnx,versal-dwc3 - reg: - maxItems: 1 - - "#address-cells": - enum: [ 1, 2 ] - - "#size-cells": - enum: [ 1, 2 ] - - ranges: true - - power-domains: - description: specifies a phandle to PM domain provider node - maxItems: 1 - - clocks: - description: - A list of phandle and clock-specifier pairs for the clocks - listed in clock-names. - items: - - description: Master/Core clock, has to be >= 125 MHz - for SS operation and >= 60MHz for HS operation. - - description: Clock source to core during PHY power down. - - clock-names: - items: - - const: bus_clk - - const: ref_clk - - resets: - description: - A list of phandles for resets listed in reset-names. - - items: - - description: USB core reset - - description: USB hibernation reset - - description: USB APB reset - - reset-names: - items: - - const: usb_crst - - const: usb_hibrst - - const: usb_apbrst - - phys: - minItems: 1 - maxItems: 2 - - phy-names: - minItems: 1 - maxItems: 2 - items: - enum: - - usb2-phy - - usb3-phy - - reset-gpios: - description: GPIO used for the reset ulpi-phy - maxItems: 1 - -# Required child node: - -patternProperties: - "^usb@[0-9a-f]+$": - $ref: snps,dwc3.yaml# - -required: - - compatible - - reg - - "#address-cells" - - "#size-cells" - - ranges - - power-domains - - clocks - - clock-names - - resets - - reset-names - -additionalProperties: false - -examples: - - | - #include - #include - #include - #include - #include - #include - axi { - #address-cells = <2>; - #size-cells = <2>; - - usb@0 { - #address-cells = <0x2>; - #size-cells = <0x2>; - compatible = "xlnx,zynqmp-dwc3"; - reg = <0x0 0xff9d0000 0x0 0x100>; - clocks = <&zynqmp_clk USB0_BUS_REF>, <&zynqmp_clk USB3_DUAL_REF>; - clock-names = "bus_clk", "ref_clk"; - power-domains = <&zynqmp_firmware PD_USB_0>; - resets = <&zynqmp_reset ZYNQMP_RESET_USB1_CORERESET>, - <&zynqmp_reset ZYNQMP_RESET_USB1_HIBERRESET>, - <&zynqmp_reset ZYNQMP_RESET_USB1_APB>; - reset-names = "usb_crst", "usb_hibrst", "usb_apbrst"; - phys = <&psgtr 2 PHY_TYPE_USB3 0 2>; - phy-names = "usb3-phy"; - ranges; - - usb@fe200000 { - compatible = "snps,dwc3"; - reg = <0x0 0xfe200000 0x0 0x40000>; - interrupt-names = "host", "otg"; - interrupts = <0 65 4>, <0 69 4>; - dr_mode = "host"; - dma-coherent; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/dwc3-xilinx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx SuperSpeed DWC3 USB SoC controller + +maintainers: + - Mubin Sayyed + - Radhey Shyam Pandey + +properties: + compatible: + items: + - enum: + - xlnx,zynqmp-dwc3 + - xlnx,versal-dwc3 + reg: + maxItems: 1 + + "#address-cells": + enum: [ 1, 2 ] + + "#size-cells": + enum: [ 1, 2 ] + + ranges: true + + power-domains: + description: specifies a phandle to PM domain provider node + maxItems: 1 + + clocks: + description: + A list of phandle and clock-specifier pairs for the clocks + listed in clock-names. + items: + - description: Master/Core clock, has to be >= 125 MHz + for SS operation and >= 60MHz for HS operation. + - description: Clock source to core during PHY power down. + + clock-names: + items: + - const: bus_clk + - const: ref_clk + + resets: + description: + A list of phandles for resets listed in reset-names. + + items: + - description: USB core reset + - description: USB hibernation reset + - description: USB APB reset + + reset-names: + items: + - const: usb_crst + - const: usb_hibrst + - const: usb_apbrst + + phys: + minItems: 1 + maxItems: 2 + + phy-names: + minItems: 1 + maxItems: 2 + items: + enum: + - usb2-phy + - usb3-phy + + reset-gpios: + description: GPIO used for the reset ulpi-phy + maxItems: 1 + +# Required child node: + +patternProperties: + "^usb@[0-9a-f]+$": + $ref: snps,dwc3.yaml# + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - ranges + - power-domains + - clocks + - clock-names + - resets + - reset-names + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + #include + #include + axi { + #address-cells = <2>; + #size-cells = <2>; + + usb@0 { + #address-cells = <0x2>; + #size-cells = <0x2>; + compatible = "xlnx,zynqmp-dwc3"; + reg = <0x0 0xff9d0000 0x0 0x100>; + clocks = <&zynqmp_clk USB0_BUS_REF>, <&zynqmp_clk USB3_DUAL_REF>; + clock-names = "bus_clk", "ref_clk"; + power-domains = <&zynqmp_firmware PD_USB_0>; + resets = <&zynqmp_reset ZYNQMP_RESET_USB1_CORERESET>, + <&zynqmp_reset ZYNQMP_RESET_USB1_HIBERRESET>, + <&zynqmp_reset ZYNQMP_RESET_USB1_APB>; + reset-names = "usb_crst", "usb_hibrst", "usb_apbrst"; + phys = <&psgtr 2 PHY_TYPE_USB3 0 2>; + phy-names = "usb3-phy"; + ranges; + + usb@fe200000 { + compatible = "snps,dwc3"; + reg = <0x0 0xfe200000 0x0 0x40000>; + interrupt-names = "host", "otg"; + interrupts = <0 65 4>, <0 69 4>; + dr_mode = "host"; + dma-coherent; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml index 3e5db49e9..9ea1e4cd0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml @@ -1,131 +1,131 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (c) 2020 NXP -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/usb/fsl,imx8mp-dwc3.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NXP iMX8MP Soc USB Controller - -maintainers: - - Li Jun - -properties: - compatible: - const: fsl,imx8mp-dwc3 - - reg: - items: - - description: Address and length of the register set for HSIO Block Control - - description: Address and length of the register set for the wrapper of dwc3 core on the SOC. - - "#address-cells": - enum: [ 1, 2 ] - - "#size-cells": - enum: [ 1, 2 ] - - dma-ranges: - description: - See section 2.3.9 of the DeviceTree Specification. - - ranges: true - - interrupts: - maxItems: 1 - description: The interrupt that is asserted when a wakeup event is - received. - - clocks: - description: - A list of phandle and clock-specifier pairs for the clocks - listed in clock-names. - items: - - description: system hsio root clock. - - description: suspend clock, used for usb wakeup logic. - - clock-names: - items: - - const: hsio - - const: suspend - - fsl,permanently-attached: - type: boolean - description: - Indicates if the device attached to a downstream port is - permanently attached. - - fsl,disable-port-power-control: - type: boolean - description: - Indicates whether the host controller implementation includes port - power control. Defines Bit 3 in capability register (HCCPARAMS). - - fsl,over-current-active-low: - type: boolean - description: - Over current signal polarity is active low. - - fsl,power-active-low: - type: boolean - description: - Power pad (PWR) polarity is active low. - - power-domains: - maxItems: 1 - -# Required child node: - -patternProperties: - "^usb@[0-9a-f]+$": - $ref: snps,dwc3.yaml# - -required: - - compatible - - reg - - "#address-cells" - - "#size-cells" - - dma-ranges - - ranges - - clocks - - clock-names - - interrupts - - power-domains - -additionalProperties: false - -examples: - - | - #include - #include - #include - usb3_0: usb@32f10100 { - compatible = "fsl,imx8mp-dwc3"; - reg = <0x32f10100 0x8>, - <0x381f0000 0x20>; - clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, - <&clk IMX8MP_CLK_USB_ROOT>; - clock-names = "hsio", "suspend"; - interrupts = ; - power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_USB>; - #address-cells = <1>; - #size-cells = <1>; - dma-ranges = <0x40000000 0x40000000 0xc0000000>; - ranges; - - usb@38100000 { - compatible = "snps,dwc3"; - reg = <0x38100000 0x10000>; - clocks = <&clk IMX8MP_CLK_HSIO_AXI>, - <&clk IMX8MP_CLK_USB_CORE_REF>, - <&clk IMX8MP_CLK_USB_ROOT>; - clock-names = "bus_early", "ref", "suspend"; - assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI>; - assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_500M>; - assigned-clock-rates = <500000000>; - interrupts = ; - phys = <&usb3_phy0>, <&usb3_phy0>; - phy-names = "usb2-phy", "usb3-phy"; - snps,dis-u2-freeclk-exists-quirk; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (c) 2020 NXP +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/fsl,imx8mp-dwc3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP iMX8MP Soc USB Controller + +maintainers: + - Li Jun + +properties: + compatible: + const: fsl,imx8mp-dwc3 + + reg: + items: + - description: Address and length of the register set for HSIO Block Control + - description: Address and length of the register set for the wrapper of dwc3 core on the SOC. + + "#address-cells": + enum: [ 1, 2 ] + + "#size-cells": + enum: [ 1, 2 ] + + dma-ranges: + description: + See section 2.3.9 of the DeviceTree Specification. + + ranges: true + + interrupts: + maxItems: 1 + description: The interrupt that is asserted when a wakeup event is + received. + + clocks: + description: + A list of phandle and clock-specifier pairs for the clocks + listed in clock-names. + items: + - description: system hsio root clock. + - description: suspend clock, used for usb wakeup logic. + + clock-names: + items: + - const: hsio + - const: suspend + + fsl,permanently-attached: + type: boolean + description: + Indicates if the device attached to a downstream port is + permanently attached. + + fsl,disable-port-power-control: + type: boolean + description: + Indicates whether the host controller implementation includes port + power control. Defines Bit 3 in capability register (HCCPARAMS). + + fsl,over-current-active-low: + type: boolean + description: + Over current signal polarity is active low. + + fsl,power-active-low: + type: boolean + description: + Power pad (PWR) polarity is active low. + + power-domains: + maxItems: 1 + +# Required child node: + +patternProperties: + "^usb@[0-9a-f]+$": + $ref: snps,dwc3.yaml# + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - dma-ranges + - ranges + - clocks + - clock-names + - interrupts + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + #include + usb3_0: usb@32f10100 { + compatible = "fsl,imx8mp-dwc3"; + reg = <0x32f10100 0x8>, + <0x381f0000 0x20>; + clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, + <&clk IMX8MP_CLK_USB_ROOT>; + clock-names = "hsio", "suspend"; + interrupts = ; + power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_USB>; + #address-cells = <1>; + #size-cells = <1>; + dma-ranges = <0x40000000 0x40000000 0xc0000000>; + ranges; + + usb@38100000 { + compatible = "snps,dwc3"; + reg = <0x38100000 0x10000>; + clocks = <&clk IMX8MP_CLK_HSIO_AXI>, + <&clk IMX8MP_CLK_USB_CORE_REF>, + <&clk IMX8MP_CLK_USB_ROOT>; + clock-names = "bus_early", "ref", "suspend"; + assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI>; + assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_500M>; + assigned-clock-rates = <500000000>; + interrupts = ; + phys = <&usb3_phy0>, <&usb3_phy0>; + phy-names = "usb2-phy", "usb3-phy"; + snps,dis-u2-freeclk-exists-quirk; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/generic-ohci.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/generic-ohci.yaml index 3e9e47afd..b95760157 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/generic-ohci.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/generic-ohci.yaml @@ -1,180 +1,180 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/usb/generic-ohci.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: USB OHCI Controller - -maintainers: - - Greg Kroah-Hartman - -properties: - compatible: - oneOf: - - items: - - enum: - - allwinner,sun4i-a10-ohci - - allwinner,sun50i-a64-ohci - - allwinner,sun50i-h6-ohci - - allwinner,sun50i-h616-ohci - - allwinner,sun5i-a13-ohci - - allwinner,sun6i-a31-ohci - - allwinner,sun7i-a20-ohci - - allwinner,sun8i-a23-ohci - - allwinner,sun8i-a83t-ohci - - allwinner,sun8i-h3-ohci - - allwinner,sun8i-r40-ohci - - allwinner,sun8i-v3s-ohci - - allwinner,sun9i-a80-ohci - - allwinner,sun20i-d1-ohci - - brcm,bcm3384-ohci - - brcm,bcm63268-ohci - - brcm,bcm6328-ohci - - brcm,bcm6358-ohci - - brcm,bcm6362-ohci - - brcm,bcm6368-ohci - - brcm,bcm7125-ohci - - brcm,bcm7346-ohci - - brcm,bcm7358-ohci - - brcm,bcm7360-ohci - - brcm,bcm7362-ohci - - brcm,bcm7420-ohci - - brcm,bcm7425-ohci - - brcm,bcm7435-ohci - - hpe,gxp-ohci - - ibm,476gtr-ohci - - ingenic,jz4740-ohci - - rockchip,rk3588-ohci - - snps,hsdk-v1.0-ohci - - const: generic-ohci - - enum: - - generic-ohci - - ti,ohci-omap3 - - items: - - enum: - - cavium,octeon-6335-ohci - - nintendo,hollywood-usb-ohci - - nxp,ohci-nxp - - st,spear600-ohci - - const: usb-ohci - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - resets: - minItems: 1 - maxItems: 2 - - clocks: - minItems: 1 - maxItems: 4 - description: | - In case the Renesas R-Car Gen3 SoCs: - - if a host only channel: first clock should be host. - - if a USB DRD channel: first clock should be host and second - one should be peripheral - - power-domains: - maxItems: 1 - - big-endian: - $ref: /schemas/types.yaml#/definitions/flag - description: - Set this flag for HCDs with big endian descriptors and big - endian registers. - - big-endian-desc: - $ref: /schemas/types.yaml#/definitions/flag - description: - Set this flag for HCDs with big endian descriptors. - - big-endian-regs: - $ref: /schemas/types.yaml#/definitions/flag - description: - Set this flag for HCDs with big endian registers. - - remote-wakeup-connected: - $ref: /schemas/types.yaml#/definitions/flag - description: - Remote wakeup is wired on the platform. - - no-big-frame-no: - $ref: /schemas/types.yaml#/definitions/flag - description: - Set if frame_no lives in bits [15:0] of HCCA - - num-ports: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Overrides the detected port count - - phys: - minItems: 1 - maxItems: 3 - - phy-names: - const: usb - - iommus: - maxItems: 1 - - dr_mode: - enum: - - host - - otg - - transceiver: - $ref: /schemas/types.yaml#/definitions/phandle - description: - The associated ISP1301 device. Necessary for the UDC controller for - connecting to the USB physical layer. - -required: - - compatible - - reg - - interrupts - -allOf: - - $ref: usb-hcd.yaml - - if: - not: - properties: - compatible: - contains: - const: nxp,ohci-nxp - then: - properties: - transceiver: false - - if: - properties: - compatible: - contains: - const: rockchip,rk3588-ohci - then: - properties: - clocks: - minItems: 4 - else: - properties: - clocks: - minItems: 1 - maxItems: 3 - -unevaluatedProperties: false - -examples: - - | - ohci0: usb@1c14400 { - compatible = "allwinner,sun4i-a10-ohci", "generic-ohci"; - reg = <0x01c14400 0x100>; - interrupts = <64>; - clocks = <&usb_clk 6>, <&ahb_gates 2>; - phys = <&usbphy 1>; - phy-names = "usb"; - }; - -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/generic-ohci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: USB OHCI Controller + +maintainers: + - Greg Kroah-Hartman + +properties: + compatible: + oneOf: + - items: + - enum: + - allwinner,sun4i-a10-ohci + - allwinner,sun50i-a64-ohci + - allwinner,sun50i-h6-ohci + - allwinner,sun50i-h616-ohci + - allwinner,sun5i-a13-ohci + - allwinner,sun6i-a31-ohci + - allwinner,sun7i-a20-ohci + - allwinner,sun8i-a23-ohci + - allwinner,sun8i-a83t-ohci + - allwinner,sun8i-h3-ohci + - allwinner,sun8i-r40-ohci + - allwinner,sun8i-v3s-ohci + - allwinner,sun9i-a80-ohci + - allwinner,sun20i-d1-ohci + - brcm,bcm3384-ohci + - brcm,bcm63268-ohci + - brcm,bcm6328-ohci + - brcm,bcm6358-ohci + - brcm,bcm6362-ohci + - brcm,bcm6368-ohci + - brcm,bcm7125-ohci + - brcm,bcm7346-ohci + - brcm,bcm7358-ohci + - brcm,bcm7360-ohci + - brcm,bcm7362-ohci + - brcm,bcm7420-ohci + - brcm,bcm7425-ohci + - brcm,bcm7435-ohci + - hpe,gxp-ohci + - ibm,476gtr-ohci + - ingenic,jz4740-ohci + - rockchip,rk3588-ohci + - snps,hsdk-v1.0-ohci + - const: generic-ohci + - enum: + - generic-ohci + - ti,ohci-omap3 + - items: + - enum: + - cavium,octeon-6335-ohci + - nintendo,hollywood-usb-ohci + - nxp,ohci-nxp + - st,spear600-ohci + - const: usb-ohci + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + resets: + minItems: 1 + maxItems: 2 + + clocks: + minItems: 1 + maxItems: 4 + description: | + In case the Renesas R-Car Gen3 SoCs: + - if a host only channel: first clock should be host. + - if a USB DRD channel: first clock should be host and second + one should be peripheral + + power-domains: + maxItems: 1 + + big-endian: + $ref: /schemas/types.yaml#/definitions/flag + description: + Set this flag for HCDs with big endian descriptors and big + endian registers. + + big-endian-desc: + $ref: /schemas/types.yaml#/definitions/flag + description: + Set this flag for HCDs with big endian descriptors. + + big-endian-regs: + $ref: /schemas/types.yaml#/definitions/flag + description: + Set this flag for HCDs with big endian registers. + + remote-wakeup-connected: + $ref: /schemas/types.yaml#/definitions/flag + description: + Remote wakeup is wired on the platform. + + no-big-frame-no: + $ref: /schemas/types.yaml#/definitions/flag + description: + Set if frame_no lives in bits [15:0] of HCCA + + num-ports: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Overrides the detected port count + + phys: + minItems: 1 + maxItems: 3 + + phy-names: + const: usb + + iommus: + maxItems: 1 + + dr_mode: + enum: + - host + - otg + + transceiver: + $ref: /schemas/types.yaml#/definitions/phandle + description: + The associated ISP1301 device. Necessary for the UDC controller for + connecting to the USB physical layer. + +required: + - compatible + - reg + - interrupts + +allOf: + - $ref: usb-hcd.yaml + - if: + not: + properties: + compatible: + contains: + const: nxp,ohci-nxp + then: + properties: + transceiver: false + - if: + properties: + compatible: + contains: + const: rockchip,rk3588-ohci + then: + properties: + clocks: + minItems: 4 + else: + properties: + clocks: + minItems: 1 + maxItems: 3 + +unevaluatedProperties: false + +examples: + - | + ohci0: usb@1c14400 { + compatible = "allwinner,sun4i-a10-ohci", "generic-ohci"; + reg = <0x01c14400 0x100>; + interrupts = <64>; + clocks = <&usb_clk 6>, <&ahb_gates 2>; + phys = <&usbphy 1>; + phy-names = "usb"; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/nvidia,tegra234-xusb.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/nvidia,tegra234-xusb.yaml index 2d7295cd4..db761dcbf 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/nvidia,tegra234-xusb.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/nvidia,tegra234-xusb.yaml @@ -1,159 +1,159 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/usb/nvidia,tegra234-xusb.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: NVIDIA Tegra234 xHCI controller - -maintainers: - - Thierry Reding - - Jon Hunter - -description: | - The Tegra xHCI controller supports both USB2 and USB3 interfaces exposed by - the Tegra XUSB pad controller. The xHCI controller controls up to eight - ports; there are four USB 2.0 ports and four USB 3.2 Gen1 x1 ports. - -properties: - compatible: - const: nvidia,tegra234-xusb - - reg: - items: - - description: xHCI host registers - - description: XUSB FPCI registers - - description: XUSB bar2 registers - - reg-names: - items: - - const: hcd - - const: fpci - - const: bar2 - - interrupts: - items: - - description: xHCI host interrupt - - description: mailbox interrupt - - clocks: - items: - - description: XUSB host clock - - description: XUSB Falcon source clock - - description: XUSB SuperSpeed clock - - description: XUSB SuperSpeed source clock - - description: XUSB HighSpeed clock source - - description: XUSB FullSpeed clock source - - description: USB PLL - - description: reference clock - - description: I/O PLL - - clock-names: - items: - - const: xusb_host - - const: xusb_falcon_src - - const: xusb_ss - - const: xusb_ss_src - - const: xusb_hs_src - - const: xusb_fs_src - - const: pll_u_480m - - const: clk_m - - const: pll_e - - interconnects: - items: - - description: read client - - description: write client - - interconnect-names: - items: - - const: dma-mem # read - - const: write - - iommus: - maxItems: 1 - - nvidia,xusb-padctl: - $ref: /schemas/types.yaml#/definitions/phandle - description: phandle to the XUSB pad controller that is used to configure - the USB pads used by the XHCI controller - - phys: - minItems: 1 - maxItems: 8 - - phy-names: - minItems: 1 - maxItems: 8 - items: - enum: - - usb2-0 - - usb2-1 - - usb2-2 - - usb2-3 - - usb3-0 - - usb3-1 - - usb3-2 - - usb3-3 - - power-domains: - items: - - description: XUSBC power domain (for Host and USB 2.0) - - description: XUSBA power domain (for SuperSpeed) - - power-domain-names: - items: - - const: xusb_host - - const: xusb_ss - - dma-coherent: true - -allOf: - - $ref: usb-xhci.yaml - -unevaluatedProperties: false - -examples: - - | - #include - #include - #include - #include - - usb@3610000 { - compatible = "nvidia,tegra234-xusb"; - reg = <0x03610000 0x40000>, - <0x03600000 0x10000>, - <0x03650000 0x10000>; - reg-names = "hcd", "fpci", "bar2"; - - interrupts = , - ; - - clocks = <&bpmp TEGRA234_CLK_XUSB_CORE_HOST>, - <&bpmp TEGRA234_CLK_XUSB_FALCON>, - <&bpmp TEGRA234_CLK_XUSB_CORE_SS>, - <&bpmp TEGRA234_CLK_XUSB_SS>, - <&bpmp TEGRA234_CLK_CLK_M>, - <&bpmp TEGRA234_CLK_XUSB_FS>, - <&bpmp TEGRA234_CLK_UTMIP_PLL>, - <&bpmp TEGRA234_CLK_CLK_M>, - <&bpmp TEGRA234_CLK_PLLE>; - clock-names = "xusb_host", "xusb_falcon_src", - "xusb_ss", "xusb_ss_src", "xusb_hs_src", - "xusb_fs_src", "pll_u_480m", "clk_m", - "pll_e"; - interconnects = <&mc TEGRA234_MEMORY_CLIENT_XUSB_HOSTR &emc>, - <&mc TEGRA234_MEMORY_CLIENT_XUSB_HOSTW &emc>; - interconnect-names = "dma-mem", "write"; - iommus = <&smmu_niso1 TEGRA234_SID_XUSB_HOST>; - - power-domains = <&bpmp TEGRA234_POWER_DOMAIN_XUSBC>, - <&bpmp TEGRA234_POWER_DOMAIN_XUSBA>; - power-domain-names = "xusb_host", "xusb_ss"; - - nvidia,xusb-padctl = <&xusb_padctl>; - - phys = <&pad_lanes_usb2_0>; - phy-names = "usb2-0"; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/nvidia,tegra234-xusb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra234 xHCI controller + +maintainers: + - Thierry Reding + - Jon Hunter + +description: | + The Tegra xHCI controller supports both USB2 and USB3 interfaces exposed by + the Tegra XUSB pad controller. The xHCI controller controls up to eight + ports; there are four USB 2.0 ports and four USB 3.2 Gen1 x1 ports. + +properties: + compatible: + const: nvidia,tegra234-xusb + + reg: + items: + - description: xHCI host registers + - description: XUSB FPCI registers + - description: XUSB bar2 registers + + reg-names: + items: + - const: hcd + - const: fpci + - const: bar2 + + interrupts: + items: + - description: xHCI host interrupt + - description: mailbox interrupt + + clocks: + items: + - description: XUSB host clock + - description: XUSB Falcon source clock + - description: XUSB SuperSpeed clock + - description: XUSB SuperSpeed source clock + - description: XUSB HighSpeed clock source + - description: XUSB FullSpeed clock source + - description: USB PLL + - description: reference clock + - description: I/O PLL + + clock-names: + items: + - const: xusb_host + - const: xusb_falcon_src + - const: xusb_ss + - const: xusb_ss_src + - const: xusb_hs_src + - const: xusb_fs_src + - const: pll_u_480m + - const: clk_m + - const: pll_e + + interconnects: + items: + - description: read client + - description: write client + + interconnect-names: + items: + - const: dma-mem # read + - const: write + + iommus: + maxItems: 1 + + nvidia,xusb-padctl: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle to the XUSB pad controller that is used to configure + the USB pads used by the XHCI controller + + phys: + minItems: 1 + maxItems: 8 + + phy-names: + minItems: 1 + maxItems: 8 + items: + enum: + - usb2-0 + - usb2-1 + - usb2-2 + - usb2-3 + - usb3-0 + - usb3-1 + - usb3-2 + - usb3-3 + + power-domains: + items: + - description: XUSBC power domain (for Host and USB 2.0) + - description: XUSBA power domain (for SuperSpeed) + + power-domain-names: + items: + - const: xusb_host + - const: xusb_ss + + dma-coherent: true + +allOf: + - $ref: usb-xhci.yaml + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + + usb@3610000 { + compatible = "nvidia,tegra234-xusb"; + reg = <0x03610000 0x40000>, + <0x03600000 0x10000>, + <0x03650000 0x10000>; + reg-names = "hcd", "fpci", "bar2"; + + interrupts = , + ; + + clocks = <&bpmp TEGRA234_CLK_XUSB_CORE_HOST>, + <&bpmp TEGRA234_CLK_XUSB_FALCON>, + <&bpmp TEGRA234_CLK_XUSB_CORE_SS>, + <&bpmp TEGRA234_CLK_XUSB_SS>, + <&bpmp TEGRA234_CLK_CLK_M>, + <&bpmp TEGRA234_CLK_XUSB_FS>, + <&bpmp TEGRA234_CLK_UTMIP_PLL>, + <&bpmp TEGRA234_CLK_CLK_M>, + <&bpmp TEGRA234_CLK_PLLE>; + clock-names = "xusb_host", "xusb_falcon_src", + "xusb_ss", "xusb_ss_src", "xusb_hs_src", + "xusb_fs_src", "pll_u_480m", "clk_m", + "pll_e"; + interconnects = <&mc TEGRA234_MEMORY_CLIENT_XUSB_HOSTR &emc>, + <&mc TEGRA234_MEMORY_CLIENT_XUSB_HOSTW &emc>; + interconnect-names = "dma-mem", "write"; + iommus = <&smmu_niso1 TEGRA234_SID_XUSB_HOST>; + + power-domains = <&bpmp TEGRA234_POWER_DOMAIN_XUSBC>, + <&bpmp TEGRA234_POWER_DOMAIN_XUSBA>; + power-domain-names = "xusb_host", "xusb_ss"; + + nvidia,xusb-padctl = <&xusb_padctl>; + + phys = <&pad_lanes_usb2_0>; + phy-names = "usb2-0"; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/onnn,nb7vpq904m.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/onnn,nb7vpq904m.yaml index eb963a1c8..589914d22 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/onnn,nb7vpq904m.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/onnn,nb7vpq904m.yaml @@ -1,138 +1,138 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/usb/onnn,nb7vpq904m.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: ON Semiconductor Type-C DisplayPort ALT Mode Linear Redriver - -maintainers: - - Neil Armstrong - -properties: - compatible: - enum: - - onnn,nb7vpq904m - - reg: - maxItems: 1 - - vcc-supply: - description: power supply (1.8V) - - enable-gpios: true - orientation-switch: true - retimer-switch: true - - ports: - $ref: /schemas/graph.yaml#/properties/ports - properties: - port@0: - $ref: /schemas/graph.yaml#/properties/port - description: Super Speed (SS) Output endpoint to the Type-C connector - - port@1: - $ref: /schemas/graph.yaml#/$defs/port-base - description: Super Speed (SS) Input endpoint from the Super-Speed PHY - unevaluatedProperties: false - - properties: - endpoint: - $ref: /schemas/graph.yaml#/$defs/endpoint-base - unevaluatedProperties: false - - properties: - data-lanes: - $ref: /schemas/types.yaml#/definitions/uint32-array - description: | - An array of physical data lane indexes. Position determines how - lanes are connected to the redriver, It is assumed the same order - is kept on the other side of the redriver. - Lane number represents the following - - 0 is RX2 lane - - 1 is TX2 lane - - 2 is TX1 lane - - 3 is RX1 lane - The position determines the physical port of the redriver, in the - order A, B, C & D. - oneOf: - - items: - - const: 0 - - const: 1 - - const: 2 - - const: 3 - description: | - This is the lanes default layout - - Port A to RX2 lane - - Port B to TX2 lane - - Port C to TX1 lane - - Port D to RX1 lane - - items: - - const: 3 - - const: 2 - - const: 1 - - const: 0 - description: | - This is the USBRX2/USBTX2 and USBRX1/USBTX1 swapped lanes layout - - Port A to RX1 lane - - Port B to TX1 lane - - Port C to TX2 lane - - Port D to RX2 lane - - port@2: - $ref: /schemas/graph.yaml#/properties/port - description: - Sideband Use (SBU) AUX lines endpoint to the Type-C connector for the purpose of - handling altmode muxing and orientation switching. - -required: - - compatible - - reg - -allOf: - - $ref: usb-switch.yaml# - -additionalProperties: false - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - typec-mux@32 { - compatible = "onnn,nb7vpq904m"; - reg = <0x32>; - - vcc-supply = <&vreg_l15b_1p8>; - - retimer-switch; - orientation-switch; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - usb_con_ss: endpoint { - remote-endpoint = <&typec_con_ss>; - }; - }; - port@1 { - reg = <1>; - phy_con_ss: endpoint { - remote-endpoint = <&usb_phy_ss>; - data-lanes = <3 2 1 0>; - }; - }; - port@2 { - reg = <2>; - usb_con_sbu: endpoint { - remote-endpoint = <&typec_dp_aux>; - }; - }; - }; - }; - }; -... +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/onnn,nb7vpq904m.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ON Semiconductor Type-C DisplayPort ALT Mode Linear Redriver + +maintainers: + - Neil Armstrong + +properties: + compatible: + enum: + - onnn,nb7vpq904m + + reg: + maxItems: 1 + + vcc-supply: + description: power supply (1.8V) + + enable-gpios: true + orientation-switch: true + retimer-switch: true + + ports: + $ref: /schemas/graph.yaml#/properties/ports + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Super Speed (SS) Output endpoint to the Type-C connector + + port@1: + $ref: /schemas/graph.yaml#/$defs/port-base + description: Super Speed (SS) Input endpoint from the Super-Speed PHY + unevaluatedProperties: false + + properties: + endpoint: + $ref: /schemas/graph.yaml#/$defs/endpoint-base + unevaluatedProperties: false + + properties: + data-lanes: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: | + An array of physical data lane indexes. Position determines how + lanes are connected to the redriver, It is assumed the same order + is kept on the other side of the redriver. + Lane number represents the following + - 0 is RX2 lane + - 1 is TX2 lane + - 2 is TX1 lane + - 3 is RX1 lane + The position determines the physical port of the redriver, in the + order A, B, C & D. + oneOf: + - items: + - const: 0 + - const: 1 + - const: 2 + - const: 3 + description: | + This is the lanes default layout + - Port A to RX2 lane + - Port B to TX2 lane + - Port C to TX1 lane + - Port D to RX1 lane + - items: + - const: 3 + - const: 2 + - const: 1 + - const: 0 + description: | + This is the USBRX2/USBTX2 and USBRX1/USBTX1 swapped lanes layout + - Port A to RX1 lane + - Port B to TX1 lane + - Port C to TX2 lane + - Port D to RX2 lane + + port@2: + $ref: /schemas/graph.yaml#/properties/port + description: + Sideband Use (SBU) AUX lines endpoint to the Type-C connector for the purpose of + handling altmode muxing and orientation switching. + +required: + - compatible + - reg + +allOf: + - $ref: usb-switch.yaml# + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + typec-mux@32 { + compatible = "onnn,nb7vpq904m"; + reg = <0x32>; + + vcc-supply = <&vreg_l15b_1p8>; + + retimer-switch; + orientation-switch; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + usb_con_ss: endpoint { + remote-endpoint = <&typec_con_ss>; + }; + }; + port@1 { + reg = <1>; + phy_con_ss: endpoint { + remote-endpoint = <&usb_phy_ss>; + data-lanes = <3 2 1 0>; + }; + }; + port@2 { + reg = <2>; + usb_con_sbu: endpoint { + remote-endpoint = <&typec_dp_aux>; + }; + }; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/renesas,rzv2m-usb3drd.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/renesas,rzv2m-usb3drd.yaml index 2cd1eb904..ff625600d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/renesas,rzv2m-usb3drd.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/renesas,rzv2m-usb3drd.yaml @@ -1,129 +1,129 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/usb/renesas,rzv2m-usb3drd.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas RZ/V2M USB 3.1 DRD controller - -maintainers: - - Biju Das - -description: | - The RZ/V2{M, MA} USB3.1 DRD module supports the following functions - * Role swapping function by the ID pin of the Micro-AB receptacle - * Battery Charging Specification Revision 1.2 - -properties: - compatible: - items: - - enum: - - renesas,r9a09g011-usb3drd # RZ/V2M - - renesas,r9a09g055-usb3drd # RZ/V2MA - - const: renesas,rzv2m-usb3drd - - reg: - maxItems: 1 - - interrupts: - items: - - description: Dual Role Device (DRD) - - description: Battery Charging - - description: Global Purpose Input - - interrupt-names: - items: - - const: drd - - const: bc - - const: gpi - - clocks: - items: - - description: Peripheral AXI clock - - description: APB clock - - clock-names: - items: - - const: axi - - const: reg - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - ranges: true - - '#address-cells': - enum: [ 1, 2 ] - - '#size-cells': - enum: [ 1, 2 ] - -patternProperties: - "^usb3peri@[0-9a-f]+$": - type: object - $ref: /schemas/usb/renesas,usb3-peri.yaml - - "^usb@[0-9a-f]+$": - type: object - $ref: renesas,usb-xhci.yaml# - -required: - - compatible - - reg - - interrupts - - interrupt-names - - clocks - - clock-names - - power-domains - - resets - -additionalProperties: false - -examples: - - | - #include - #include - - usb3drd: usb@85070400 { - compatible = "renesas,r9a09g011-usb3drd", "renesas,rzv2m-usb3drd"; - reg = <0x85070400 0x100>; - interrupts = , - , - ; - interrupt-names = "drd", "bc", "gpi"; - clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_P>, - <&cpg CPG_MOD R9A09G011_USB_PCLK>; - clock-names = "axi", "reg"; - power-domains = <&cpg>; - resets = <&cpg R9A09G011_USB_DRD_RESET>; - ranges; - #address-cells = <1>; - #size-cells = <1>; - - usb3host: usb@85060000 { - compatible = "renesas,r9a09g011-xhci", - "renesas,rzv2m-xhci"; - reg = <0x85060000 0x2000>; - interrupts = ; - clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_H>, - <&cpg CPG_MOD R9A09G011_USB_PCLK>; - clock-names = "axi", "reg"; - power-domains = <&cpg>; - resets = <&cpg R9A09G011_USB_ARESETN_H>; - }; - - usb3peri: usb3peri@85070000 { - compatible = "renesas,r9a09g011-usb3-peri", - "renesas,rzv2m-usb3-peri"; - reg = <0x85070000 0x400>; - interrupts = ; - clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_P>, - <&cpg CPG_MOD R9A09G011_USB_PCLK>; - clock-names = "axi", "reg"; - power-domains = <&cpg>; - resets = <&cpg R9A09G011_USB_ARESETN_P>; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/renesas,rzv2m-usb3drd.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/V2M USB 3.1 DRD controller + +maintainers: + - Biju Das + +description: | + The RZ/V2{M, MA} USB3.1 DRD module supports the following functions + * Role swapping function by the ID pin of the Micro-AB receptacle + * Battery Charging Specification Revision 1.2 + +properties: + compatible: + items: + - enum: + - renesas,r9a09g011-usb3drd # RZ/V2M + - renesas,r9a09g055-usb3drd # RZ/V2MA + - const: renesas,rzv2m-usb3drd + + reg: + maxItems: 1 + + interrupts: + items: + - description: Dual Role Device (DRD) + - description: Battery Charging + - description: Global Purpose Input + + interrupt-names: + items: + - const: drd + - const: bc + - const: gpi + + clocks: + items: + - description: Peripheral AXI clock + - description: APB clock + + clock-names: + items: + - const: axi + - const: reg + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + ranges: true + + '#address-cells': + enum: [ 1, 2 ] + + '#size-cells': + enum: [ 1, 2 ] + +patternProperties: + "^usb3peri@[0-9a-f]+$": + type: object + $ref: /schemas/usb/renesas,usb3-peri.yaml + + "^usb@[0-9a-f]+$": + type: object + $ref: renesas,usb-xhci.yaml# + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - clock-names + - power-domains + - resets + +additionalProperties: false + +examples: + - | + #include + #include + + usb3drd: usb@85070400 { + compatible = "renesas,r9a09g011-usb3drd", "renesas,rzv2m-usb3drd"; + reg = <0x85070400 0x100>; + interrupts = , + , + ; + interrupt-names = "drd", "bc", "gpi"; + clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_P>, + <&cpg CPG_MOD R9A09G011_USB_PCLK>; + clock-names = "axi", "reg"; + power-domains = <&cpg>; + resets = <&cpg R9A09G011_USB_DRD_RESET>; + ranges; + #address-cells = <1>; + #size-cells = <1>; + + usb3host: usb@85060000 { + compatible = "renesas,r9a09g011-xhci", + "renesas,rzv2m-xhci"; + reg = <0x85060000 0x2000>; + interrupts = ; + clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_H>, + <&cpg CPG_MOD R9A09G011_USB_PCLK>; + clock-names = "axi", "reg"; + power-domains = <&cpg>; + resets = <&cpg R9A09G011_USB_ARESETN_H>; + }; + + usb3peri: usb3peri@85070000 { + compatible = "renesas,r9a09g011-usb3-peri", + "renesas,rzv2m-usb3-peri"; + reg = <0x85070000 0x400>; + interrupts = ; + clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_P>, + <&cpg CPG_MOD R9A09G011_USB_PCLK>; + clock-names = "axi", "reg"; + power-domains = <&cpg>; + resets = <&cpg R9A09G011_USB_ARESETN_P>; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml index d01459f09..b2b811a0a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml @@ -1,150 +1,150 @@ -# SPDX-License-Identifier: GPL-2.0-only -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/usb/renesas,usb3-peri.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas USB 3.0 Peripheral controller - -maintainers: - - Yoshihiro Shimoda - -properties: - compatible: - oneOf: - - items: - - enum: - - renesas,r8a774a1-usb3-peri # RZ/G2M - - renesas,r8a774b1-usb3-peri # RZ/G2N - - renesas,r8a774c0-usb3-peri # RZ/G2E - - renesas,r8a774e1-usb3-peri # RZ/G2H - - renesas,r8a7795-usb3-peri # R-Car H3 - - renesas,r8a7796-usb3-peri # R-Car M3-W - - renesas,r8a77961-usb3-peri # R-Car M3-W+ - - renesas,r8a77965-usb3-peri # R-Car M3-N - - renesas,r8a77990-usb3-peri # R-Car E3 - - const: renesas,rcar-gen3-usb3-peri - - - items: - - enum: - - renesas,r9a09g011-usb3-peri # RZ/V2M - - renesas,r9a09g055-usb3-peri # RZ/V2MA - - const: renesas,rzv2m-usb3-peri - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - minItems: 1 - items: - - description: Main clock - - description: Register access clock - - clock-names: - minItems: 1 - items: - - const: axi - - const: reg - - phys: - maxItems: 1 - - phy-names: - const: usb - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - usb-role-switch: - $ref: /schemas/types.yaml#/definitions/flag - description: Support role switch. - - companion: - $ref: /schemas/types.yaml#/definitions/phandle - description: phandle of a companion. - - ports: - $ref: /schemas/graph.yaml#/properties/ports - description: | - any connector to the data bus of this controller should be modelled - using the OF graph bindings specified, if the "usb-role-switch" - property is used. - - properties: - port@0: - $ref: /schemas/graph.yaml#/properties/port - description: High Speed (HS) data bus. - - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: Super Speed (SS) data bus. - - required: - - port@0 - - port@1 - -required: - - compatible - - interrupts - - clocks - -allOf: - - if: - properties: - compatible: - contains: - enum: - - renesas,rzv2m-usb3-peri - then: - properties: - clocks: - minItems: 2 - clock-names: - minItems: 2 - required: - - clock-names - - resets - else: - properties: - clocks: - maxItems: 1 - -additionalProperties: false - -examples: - - | - #include - #include - #include - - usb3_peri0: usb@ee020000 { - compatible = "renesas,r8a774c0-usb3-peri", "renesas,rcar-gen3-usb3-peri"; - reg = <0xee020000 0x400>; - interrupts = ; - clocks = <&cpg CPG_MOD 328>; - companion = <&xhci0>; - usb-role-switch; - - ports { - #address-cells = <1>; - #size-cells = <0>; - port@0 { - reg = <0>; - usb3_hs_ep: endpoint { - remote-endpoint = <&hs_ep>; - }; - }; - port@1 { - reg = <1>; - usb3_role_switch: endpoint { - remote-endpoint = <&hd3ss3220_out_ep>; - }; - }; - }; - }; +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/renesas,usb3-peri.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas USB 3.0 Peripheral controller + +maintainers: + - Yoshihiro Shimoda + +properties: + compatible: + oneOf: + - items: + - enum: + - renesas,r8a774a1-usb3-peri # RZ/G2M + - renesas,r8a774b1-usb3-peri # RZ/G2N + - renesas,r8a774c0-usb3-peri # RZ/G2E + - renesas,r8a774e1-usb3-peri # RZ/G2H + - renesas,r8a7795-usb3-peri # R-Car H3 + - renesas,r8a7796-usb3-peri # R-Car M3-W + - renesas,r8a77961-usb3-peri # R-Car M3-W+ + - renesas,r8a77965-usb3-peri # R-Car M3-N + - renesas,r8a77990-usb3-peri # R-Car E3 + - const: renesas,rcar-gen3-usb3-peri + + - items: + - enum: + - renesas,r9a09g011-usb3-peri # RZ/V2M + - renesas,r9a09g055-usb3-peri # RZ/V2MA + - const: renesas,rzv2m-usb3-peri + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 1 + items: + - description: Main clock + - description: Register access clock + + clock-names: + minItems: 1 + items: + - const: axi + - const: reg + + phys: + maxItems: 1 + + phy-names: + const: usb + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + usb-role-switch: + $ref: /schemas/types.yaml#/definitions/flag + description: Support role switch. + + companion: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle of a companion. + + ports: + $ref: /schemas/graph.yaml#/properties/ports + description: | + any connector to the data bus of this controller should be modelled + using the OF graph bindings specified, if the "usb-role-switch" + property is used. + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: High Speed (HS) data bus. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Super Speed (SS) data bus. + + required: + - port@0 + - port@1 + +required: + - compatible + - interrupts + - clocks + +allOf: + - if: + properties: + compatible: + contains: + enum: + - renesas,rzv2m-usb3-peri + then: + properties: + clocks: + minItems: 2 + clock-names: + minItems: 2 + required: + - clock-names + - resets + else: + properties: + clocks: + maxItems: 1 + +additionalProperties: false + +examples: + - | + #include + #include + #include + + usb3_peri0: usb@ee020000 { + compatible = "renesas,r8a774c0-usb3-peri", "renesas,rcar-gen3-usb3-peri"; + reg = <0xee020000 0x400>; + interrupts = ; + clocks = <&cpg CPG_MOD 328>; + companion = <&xhci0>; + usb-role-switch; + + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + usb3_hs_ep: endpoint { + remote-endpoint = <&hs_ep>; + }; + }; + port@1 { + reg = <1>; + usb3_role_switch: endpoint { + remote-endpoint = <&hd3ss3220_out_ep>; + }; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/renesas,usbhs.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/renesas,usbhs.yaml index 5fae52bcc..c63db3ebd 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/renesas,usbhs.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/renesas,usbhs.yaml @@ -1,157 +1,157 @@ -# SPDX-License-Identifier: GPL-2.0-only -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/usb/renesas,usbhs.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Renesas USBHS (HS-USB) controller - -maintainers: - - Yoshihiro Shimoda - -properties: - compatible: - oneOf: - - items: - - const: renesas,usbhs-r7s72100 # RZ/A1 - - const: renesas,rza1-usbhs - - - items: - - enum: - - renesas,usbhs-r7s9210 # RZ/A2 - - const: renesas,rza2-usbhs - - - items: - - enum: - - renesas,usbhs-r9a07g043 # RZ/G2UL and RZ/Five - - renesas,usbhs-r9a07g044 # RZ/G2{L,LC} - - renesas,usbhs-r9a07g054 # RZ/V2L - - const: renesas,rzg2l-usbhs - - - items: - - enum: - - renesas,usbhs-r8a7742 # RZ/G1H - - renesas,usbhs-r8a7743 # RZ/G1M - - renesas,usbhs-r8a7744 # RZ/G1N - - renesas,usbhs-r8a7745 # RZ/G1E - - renesas,usbhs-r8a77470 # RZ/G1C - - renesas,usbhs-r8a7790 # R-Car H2 - - renesas,usbhs-r8a7791 # R-Car M2-W - - renesas,usbhs-r8a7792 # R-Car V2H - - renesas,usbhs-r8a7793 # R-Car M2-N - - renesas,usbhs-r8a7794 # R-Car E2 - - const: renesas,rcar-gen2-usbhs - - - items: - - enum: - - renesas,usbhs-r8a774a1 # RZ/G2M - - renesas,usbhs-r8a774b1 # RZ/G2N - - renesas,usbhs-r8a774c0 # RZ/G2E - - renesas,usbhs-r8a774e1 # RZ/G2H - - renesas,usbhs-r8a7795 # R-Car H3 - - renesas,usbhs-r8a7796 # R-Car M3-W - - renesas,usbhs-r8a77961 # R-Car M3-W+ - - renesas,usbhs-r8a77965 # R-Car M3-N - - renesas,usbhs-r8a77990 # R-Car E3 - - renesas,usbhs-r8a77995 # R-Car D3 - - const: renesas,rcar-gen3-usbhs - - reg: - maxItems: 1 - - clocks: - minItems: 1 - items: - - description: USB 2.0 host - - description: USB 2.0 peripheral - - description: USB 2.0 clock selector - - interrupts: - minItems: 1 - maxItems: 4 - - renesas,buswait: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - Integer to use BUSWAIT register. - - renesas,enable-gpio: - maxItems: 1 - description: | - gpio specifier to check GPIO determining if USB function should be - enabled. - - phys: - maxItems: 1 - - phy-names: - items: - - const: usb - - dmas: - minItems: 2 - maxItems: 4 - - dma-names: - minItems: 2 - items: - - const: ch0 - - const: ch1 - - const: ch2 - - const: ch3 - - dr_mode: true - - power-domains: - maxItems: 1 - - resets: - minItems: 1 - items: - - description: USB 2.0 host - - description: USB 2.0 peripheral - -required: - - compatible - - reg - - clocks - - interrupts - -allOf: - - if: - properties: - compatible: - contains: - enum: - - renesas,usbhs-r9a07g043 - - renesas,usbhs-r9a07g044 - - renesas,usbhs-r9a07g054 - then: - properties: - interrupts: - items: - - description: U2P_IXL_INT - - description: U2P_INT_DMA[0] - - description: U2P_INT_DMA[1] - - description: U2P_INT_DMAERR - required: - - resets - else: - properties: - interrupts: - maxItems: 1 - -additionalProperties: false - -examples: - - | - #include - #include - #include - - usbhs: usb@e6590000 { - compatible = "renesas,usbhs-r8a7790", "renesas,rcar-gen2-usbhs"; - reg = <0xe6590000 0x100>; - interrupts = ; - clocks = <&cpg CPG_MOD 704>; - }; +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/renesas,usbhs.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas USBHS (HS-USB) controller + +maintainers: + - Yoshihiro Shimoda + +properties: + compatible: + oneOf: + - items: + - const: renesas,usbhs-r7s72100 # RZ/A1 + - const: renesas,rza1-usbhs + + - items: + - enum: + - renesas,usbhs-r7s9210 # RZ/A2 + - const: renesas,rza2-usbhs + + - items: + - enum: + - renesas,usbhs-r9a07g043 # RZ/G2UL and RZ/Five + - renesas,usbhs-r9a07g044 # RZ/G2{L,LC} + - renesas,usbhs-r9a07g054 # RZ/V2L + - const: renesas,rzg2l-usbhs + + - items: + - enum: + - renesas,usbhs-r8a7742 # RZ/G1H + - renesas,usbhs-r8a7743 # RZ/G1M + - renesas,usbhs-r8a7744 # RZ/G1N + - renesas,usbhs-r8a7745 # RZ/G1E + - renesas,usbhs-r8a77470 # RZ/G1C + - renesas,usbhs-r8a7790 # R-Car H2 + - renesas,usbhs-r8a7791 # R-Car M2-W + - renesas,usbhs-r8a7792 # R-Car V2H + - renesas,usbhs-r8a7793 # R-Car M2-N + - renesas,usbhs-r8a7794 # R-Car E2 + - const: renesas,rcar-gen2-usbhs + + - items: + - enum: + - renesas,usbhs-r8a774a1 # RZ/G2M + - renesas,usbhs-r8a774b1 # RZ/G2N + - renesas,usbhs-r8a774c0 # RZ/G2E + - renesas,usbhs-r8a774e1 # RZ/G2H + - renesas,usbhs-r8a7795 # R-Car H3 + - renesas,usbhs-r8a7796 # R-Car M3-W + - renesas,usbhs-r8a77961 # R-Car M3-W+ + - renesas,usbhs-r8a77965 # R-Car M3-N + - renesas,usbhs-r8a77990 # R-Car E3 + - renesas,usbhs-r8a77995 # R-Car D3 + - const: renesas,rcar-gen3-usbhs + + reg: + maxItems: 1 + + clocks: + minItems: 1 + items: + - description: USB 2.0 host + - description: USB 2.0 peripheral + - description: USB 2.0 clock selector + + interrupts: + minItems: 1 + maxItems: 4 + + renesas,buswait: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Integer to use BUSWAIT register. + + renesas,enable-gpio: + maxItems: 1 + description: | + gpio specifier to check GPIO determining if USB function should be + enabled. + + phys: + maxItems: 1 + + phy-names: + items: + - const: usb + + dmas: + minItems: 2 + maxItems: 4 + + dma-names: + minItems: 2 + items: + - const: ch0 + - const: ch1 + - const: ch2 + - const: ch3 + + dr_mode: true + + power-domains: + maxItems: 1 + + resets: + minItems: 1 + items: + - description: USB 2.0 host + - description: USB 2.0 peripheral + +required: + - compatible + - reg + - clocks + - interrupts + +allOf: + - if: + properties: + compatible: + contains: + enum: + - renesas,usbhs-r9a07g043 + - renesas,usbhs-r9a07g044 + - renesas,usbhs-r9a07g054 + then: + properties: + interrupts: + items: + - description: U2P_IXL_INT + - description: U2P_INT_DMA[0] + - description: U2P_INT_DMA[1] + - description: U2P_INT_DMAERR + required: + - resets + else: + properties: + interrupts: + maxItems: 1 + +additionalProperties: false + +examples: + - | + #include + #include + #include + + usbhs: usb@e6590000 { + compatible = "renesas,usbhs-r8a7790", "renesas,rcar-gen2-usbhs"; + reg = <0xe6590000 0x100>; + interrupts = ; + clocks = <&cpg CPG_MOD 704>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml index e3db308d5..c4924113f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml @@ -1,158 +1,158 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/usb/rockchip,dwc3.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Rockchip SuperSpeed DWC3 USB SoC controller - -maintainers: - - Heiko Stuebner - -description: - The common content of the node is defined in snps,dwc3.yaml. - - Phy documentation is provided in the following places. - - USB2.0 PHY - Documentation/devicetree/bindings/phy/rockchip,inno-usb2phy.yaml - - Type-C PHY - Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt - -select: - properties: - compatible: - contains: - enum: - - rockchip,rk3328-dwc3 - - rockchip,rk3568-dwc3 - - rockchip,rk3588-dwc3 - required: - - compatible - -properties: - compatible: - items: - - enum: - - rockchip,rk3328-dwc3 - - rockchip,rk3568-dwc3 - - rockchip,rk3588-dwc3 - - const: snps,dwc3 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - - clocks: - minItems: 3 - items: - - description: - Controller reference clock, must to be 24 MHz - - description: - Controller suspend clock, must to be 24 MHz or 32 KHz - - description: - Master/Core clock, must to be >= 62.5 MHz for SS - operation and >= 30MHz for HS operation - - description: - Controller grf clock OR UTMI clock - - description: - PIPE clock - - clock-names: - minItems: 3 - items: - - const: ref_clk - - const: suspend_clk - - const: bus_clk - - enum: - - grf_clk - - utmi - - const: pipe - - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - - reset-names: - const: usb3-otg - -unevaluatedProperties: false - -required: - - compatible - - reg - - interrupts - - clocks - - clock-names - -allOf: - - $ref: snps,dwc3.yaml# - - if: - properties: - compatible: - contains: - const: rockchip,rk3328-dwc3 - then: - properties: - clocks: - minItems: 3 - maxItems: 4 - clock-names: - minItems: 3 - items: - - const: ref_clk - - const: suspend_clk - - const: bus_clk - - const: grf_clk - - if: - properties: - compatible: - contains: - const: rockchip,rk3568-dwc3 - then: - properties: - clocks: - maxItems: 3 - clock-names: - maxItems: 3 - - if: - properties: - compatible: - contains: - const: rockchip,rk3588-dwc3 - then: - properties: - clock-names: - minItems: 3 - items: - - const: ref_clk - - const: suspend_clk - - const: bus_clk - - const: utmi - - const: pipe - -examples: - - | - #include - #include - - bus { - #address-cells = <2>; - #size-cells = <2>; - - usbdrd3_0: usb@fe800000 { - compatible = "rockchip,rk3328-dwc3", "snps,dwc3"; - reg = <0x0 0xfe800000 0x0 0x100000>; - interrupts = ; - clocks = <&cru SCLK_USB3OTG_REF>, <&cru SCLK_USB3OTG_SUSPEND>, - <&cru ACLK_USB3OTG>; - clock-names = "ref_clk", "suspend_clk", - "bus_clk", "grf_clk"; - dr_mode = "otg"; - }; - }; +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/rockchip,dwc3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip SuperSpeed DWC3 USB SoC controller + +maintainers: + - Heiko Stuebner + +description: + The common content of the node is defined in snps,dwc3.yaml. + + Phy documentation is provided in the following places. + + USB2.0 PHY + Documentation/devicetree/bindings/phy/rockchip,inno-usb2phy.yaml + + Type-C PHY + Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt + +select: + properties: + compatible: + contains: + enum: + - rockchip,rk3328-dwc3 + - rockchip,rk3568-dwc3 + - rockchip,rk3588-dwc3 + required: + - compatible + +properties: + compatible: + items: + - enum: + - rockchip,rk3328-dwc3 + - rockchip,rk3568-dwc3 + - rockchip,rk3588-dwc3 + - const: snps,dwc3 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 3 + items: + - description: + Controller reference clock, must to be 24 MHz + - description: + Controller suspend clock, must to be 24 MHz or 32 KHz + - description: + Master/Core clock, must to be >= 62.5 MHz for SS + operation and >= 30MHz for HS operation + - description: + Controller grf clock OR UTMI clock + - description: + PIPE clock + + clock-names: + minItems: 3 + items: + - const: ref_clk + - const: suspend_clk + - const: bus_clk + - enum: + - grf_clk + - utmi + - const: pipe + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + reset-names: + const: usb3-otg + +unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +allOf: + - $ref: snps,dwc3.yaml# + - if: + properties: + compatible: + contains: + const: rockchip,rk3328-dwc3 + then: + properties: + clocks: + minItems: 3 + maxItems: 4 + clock-names: + minItems: 3 + items: + - const: ref_clk + - const: suspend_clk + - const: bus_clk + - const: grf_clk + - if: + properties: + compatible: + contains: + const: rockchip,rk3568-dwc3 + then: + properties: + clocks: + maxItems: 3 + clock-names: + maxItems: 3 + - if: + properties: + compatible: + contains: + const: rockchip,rk3588-dwc3 + then: + properties: + clock-names: + minItems: 3 + items: + - const: ref_clk + - const: suspend_clk + - const: bus_clk + - const: utmi + - const: pipe + +examples: + - | + #include + #include + + bus { + #address-cells = <2>; + #size-cells = <2>; + + usbdrd3_0: usb@fe800000 { + compatible = "rockchip,rk3328-dwc3", "snps,dwc3"; + reg = <0x0 0xfe800000 0x0 0x100000>; + interrupts = ; + clocks = <&cru SCLK_USB3OTG_REF>, <&cru SCLK_USB3OTG_SUSPEND>, + <&cru ACLK_USB3OTG>; + clock-names = "ref_clk", "suspend_clk", + "bus_clk", "grf_clk"; + dr_mode = "otg"; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml index d377138a3..2b3430ceb 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml @@ -1,163 +1,163 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/usb/samsung,exynos-dwc3.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung Exynos SoC USB 3.0 DWC3 Controller - -maintainers: - - Krzysztof Kozlowski - -properties: - compatible: - enum: - - google,gs101-dwusb3 - - samsung,exynos5250-dwusb3 - - samsung,exynos5433-dwusb3 - - samsung,exynos7-dwusb3 - - samsung,exynos850-dwusb3 - - '#address-cells': - const: 1 - - clocks: - minItems: 1 - maxItems: 4 - - clock-names: - minItems: 1 - maxItems: 4 - - ranges: true - - '#size-cells': - const: 1 - - vdd10-supply: - description: 1.0V power supply - - vdd33-supply: - description: 3.0V/3.3V power supply - -patternProperties: - "^usb@[0-9a-f]+$": - $ref: snps,dwc3.yaml# - description: Required child node - -required: - - compatible - - '#address-cells' - - clocks - - clock-names - - ranges - - '#size-cells' - - vdd10-supply - - vdd33-supply - -allOf: - - if: - properties: - compatible: - contains: - const: google,gs101-dwusb3 - then: - properties: - clocks: - minItems: 4 - maxItems: 4 - clock-names: - items: - - const: bus_early - - const: susp_clk - - const: link_aclk - - const: link_pclk - - - if: - properties: - compatible: - contains: - const: samsung,exynos5250-dwusb3 - then: - properties: - clocks: - minItems: 1 - maxItems: 1 - clock-names: - items: - - const: usbdrd30 - - - if: - properties: - compatible: - contains: - const: samsung,exynos5433-dwusb3 - then: - properties: - clocks: - minItems: 4 - maxItems: 4 - clock-names: - items: - - const: aclk - - const: susp_clk - - const: phyclk - - const: pipe_pclk - - - if: - properties: - compatible: - contains: - const: samsung,exynos7-dwusb3 - then: - properties: - clocks: - minItems: 3 - maxItems: 3 - clock-names: - items: - - const: usbdrd30 - - const: usbdrd30_susp_clk - - const: usbdrd30_axius_clk - - - if: - properties: - compatible: - contains: - const: samsung,exynos850-dwusb3 - then: - properties: - clocks: - minItems: 2 - maxItems: 2 - clock-names: - items: - - const: bus_early - - const: ref - -additionalProperties: false - -examples: - - | - #include - #include - - usb@12000000 { - compatible = "samsung,exynos5250-dwusb3"; - #address-cells = <1>; - #size-cells = <1>; - ranges = <0x0 0x12000000 0x10000>; - clocks = <&clock CLK_USBD300>; - clock-names = "usbdrd30"; - vdd33-supply = <&ldo9_reg>; - vdd10-supply = <&ldo11_reg>; - - usb@0 { - compatible = "snps,dwc3"; - reg = <0x0 0x10000>; - interrupts = ; - phys = <&usbdrd_phy0 0>, <&usbdrd_phy0 1>; - phy-names = "usb2-phy", "usb3-phy"; - snps,dis_u3_susphy_quirk; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/samsung,exynos-dwc3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Exynos SoC USB 3.0 DWC3 Controller + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + enum: + - google,gs101-dwusb3 + - samsung,exynos5250-dwusb3 + - samsung,exynos5433-dwusb3 + - samsung,exynos7-dwusb3 + - samsung,exynos850-dwusb3 + + '#address-cells': + const: 1 + + clocks: + minItems: 1 + maxItems: 4 + + clock-names: + minItems: 1 + maxItems: 4 + + ranges: true + + '#size-cells': + const: 1 + + vdd10-supply: + description: 1.0V power supply + + vdd33-supply: + description: 3.0V/3.3V power supply + +patternProperties: + "^usb@[0-9a-f]+$": + $ref: snps,dwc3.yaml# + description: Required child node + +required: + - compatible + - '#address-cells' + - clocks + - clock-names + - ranges + - '#size-cells' + - vdd10-supply + - vdd33-supply + +allOf: + - if: + properties: + compatible: + contains: + const: google,gs101-dwusb3 + then: + properties: + clocks: + minItems: 4 + maxItems: 4 + clock-names: + items: + - const: bus_early + - const: susp_clk + - const: link_aclk + - const: link_pclk + + - if: + properties: + compatible: + contains: + const: samsung,exynos5250-dwusb3 + then: + properties: + clocks: + minItems: 1 + maxItems: 1 + clock-names: + items: + - const: usbdrd30 + + - if: + properties: + compatible: + contains: + const: samsung,exynos5433-dwusb3 + then: + properties: + clocks: + minItems: 4 + maxItems: 4 + clock-names: + items: + - const: aclk + - const: susp_clk + - const: phyclk + - const: pipe_pclk + + - if: + properties: + compatible: + contains: + const: samsung,exynos7-dwusb3 + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + items: + - const: usbdrd30 + - const: usbdrd30_susp_clk + - const: usbdrd30_axius_clk + + - if: + properties: + compatible: + contains: + const: samsung,exynos850-dwusb3 + then: + properties: + clocks: + minItems: 2 + maxItems: 2 + clock-names: + items: + - const: bus_early + - const: ref + +additionalProperties: false + +examples: + - | + #include + #include + + usb@12000000 { + compatible = "samsung,exynos5250-dwusb3"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x12000000 0x10000>; + clocks = <&clock CLK_USBD300>; + clock-names = "usbdrd30"; + vdd33-supply = <&ldo9_reg>; + vdd10-supply = <&ldo11_reg>; + + usb@0 { + compatible = "snps,dwc3"; + reg = <0x0 0x10000>; + interrupts = ; + phys = <&usbdrd_phy0 0>, <&usbdrd_phy0 1>; + phy-names = "usb2-phy", "usb3-phy"; + snps,dis_u3_susphy_quirk; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/smsc,usb3503.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/smsc,usb3503.yaml index cd5650218..6156dc26e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/smsc,usb3503.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/smsc,usb3503.yaml @@ -1,159 +1,159 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/usb/smsc,usb3503.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: SMSC USB3503 High-Speed Hub Controller - -maintainers: - - Dongjin Kim - -properties: - compatible: - enum: - - smsc,usb3503 - - smsc,usb3503a - - smsc,usb3803 - - reg: - maxItems: 1 - - connect-gpios: - maxItems: 1 - description: > - GPIO for connect - - intn-gpios: - maxItems: 1 - description: > - GPIO for interrupt - - reset-gpios: - maxItems: 1 - description: > - GPIO for reset - - bypass-gpios: - maxItems: 1 - description: > - GPIO for bypass. - Control signal to select between HUB MODE and BYPASS MODE. - - disabled-ports: - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 3 - items: - minimum: 1 - maximum: 3 - description: > - Specifies the ports unused using their port number. Do not describe this - property if all ports have to be enabled. - - initial-mode: - $ref: /schemas/types.yaml#/definitions/uint32 - description: > - Specifies initial mode. 1 for Hub mode, 2 for standby mode and 3 for bypass mode. - In bypass mode the downstream port 3 is connected to the upstream port with low - switch resistance R_on. - - clocks: - maxItems: 1 - description: > - Clock used for driving REFCLK signal. If not provided the driver assumes - that clock signal is always available, its rate is specified by REF_SEL - pins and a value from the primary reference clock frequencies table is - used. - - clock-names: - const: refclk - - refclk-frequency: - $ref: /schemas/types.yaml#/definitions/uint32 - description: > - Frequency of the REFCLK signal as defined by REF_SEL pins. If not - provided, driver will not set rate of the REFCLK signal and assume that a - value from the primary reference clock frequencies table is used. - -required: - - compatible - -allOf: - - if: - not: - properties: - compatible: - enum: - - smsc,usb3803 - then: - properties: - bypass-gpios: false - - - if: - required: - - bypass-gpios - then: - properties: - initial-mode: - enum: [1, 2, 3] - else: - properties: - initial-mode: - enum: [1, 2] - -additionalProperties: false - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - usb-hub@8 { - compatible = "smsc,usb3503"; - reg = <0x08>; - connect-gpios = <&gpx3 0 1>; - disabled-ports = <2 3>; - intn-gpios = <&gpx3 4 1>; - reset-gpios = <&gpx3 5 1>; - initial-mode = <1>; - clocks = <&clks 80>; - clock-names = "refclk"; - }; - }; - - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - usb-hub@8 { - compatible = "smsc,usb3803"; - reg = <0x08>; - connect-gpios = <&gpx3 0 1>; - disabled-ports = <2 3>; - intn-gpios = <&gpx3 4 1>; - reset-gpios = <&gpx3 5 1>; - bypass-gpios = <&gpx3 6 1>; - initial-mode = <3>; - clocks = <&clks 80>; - clock-names = "refclk"; - }; - }; - - - | - #include - - usb-hub { - /* I2C is not connected */ - compatible = "smsc,usb3503"; - initial-mode = <1>; /* initialize in HUB mode */ - disabled-ports = <1>; - intn-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */ - reset-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */ - connect-gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */ - refclk-frequency = <19200000>; - }; - -... +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/smsc,usb3503.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SMSC USB3503 High-Speed Hub Controller + +maintainers: + - Dongjin Kim + +properties: + compatible: + enum: + - smsc,usb3503 + - smsc,usb3503a + - smsc,usb3803 + + reg: + maxItems: 1 + + connect-gpios: + maxItems: 1 + description: > + GPIO for connect + + intn-gpios: + maxItems: 1 + description: > + GPIO for interrupt + + reset-gpios: + maxItems: 1 + description: > + GPIO for reset + + bypass-gpios: + maxItems: 1 + description: > + GPIO for bypass. + Control signal to select between HUB MODE and BYPASS MODE. + + disabled-ports: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 3 + items: + minimum: 1 + maximum: 3 + description: > + Specifies the ports unused using their port number. Do not describe this + property if all ports have to be enabled. + + initial-mode: + $ref: /schemas/types.yaml#/definitions/uint32 + description: > + Specifies initial mode. 1 for Hub mode, 2 for standby mode and 3 for bypass mode. + In bypass mode the downstream port 3 is connected to the upstream port with low + switch resistance R_on. + + clocks: + maxItems: 1 + description: > + Clock used for driving REFCLK signal. If not provided the driver assumes + that clock signal is always available, its rate is specified by REF_SEL + pins and a value from the primary reference clock frequencies table is + used. + + clock-names: + const: refclk + + refclk-frequency: + $ref: /schemas/types.yaml#/definitions/uint32 + description: > + Frequency of the REFCLK signal as defined by REF_SEL pins. If not + provided, driver will not set rate of the REFCLK signal and assume that a + value from the primary reference clock frequencies table is used. + +required: + - compatible + +allOf: + - if: + not: + properties: + compatible: + enum: + - smsc,usb3803 + then: + properties: + bypass-gpios: false + + - if: + required: + - bypass-gpios + then: + properties: + initial-mode: + enum: [1, 2, 3] + else: + properties: + initial-mode: + enum: [1, 2] + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + usb-hub@8 { + compatible = "smsc,usb3503"; + reg = <0x08>; + connect-gpios = <&gpx3 0 1>; + disabled-ports = <2 3>; + intn-gpios = <&gpx3 4 1>; + reset-gpios = <&gpx3 5 1>; + initial-mode = <1>; + clocks = <&clks 80>; + clock-names = "refclk"; + }; + }; + + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + usb-hub@8 { + compatible = "smsc,usb3803"; + reg = <0x08>; + connect-gpios = <&gpx3 0 1>; + disabled-ports = <2 3>; + intn-gpios = <&gpx3 4 1>; + reset-gpios = <&gpx3 5 1>; + bypass-gpios = <&gpx3 6 1>; + initial-mode = <3>; + clocks = <&clks 80>; + clock-names = "refclk"; + }; + }; + + - | + #include + + usb-hub { + /* I2C is not connected */ + compatible = "smsc,usb3503"; + initial-mode = <1>; /* initialize in HUB mode */ + disabled-ports = <1>; + intn-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */ + reset-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */ + connect-gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */ + refclk-frequency = <19200000>; + }; + +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml index df0a04638..1745e28b3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml @@ -1,159 +1,159 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/usb/ti,tps6598x.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Texas Instruments 6598x Type-C Port Switch and Power Delivery controller - -maintainers: - - Bryan O'Donoghue - -description: | - Texas Instruments 6598x Type-C Port Switch and Power Delivery controller - - A variant of this controller known as Apple CD321x or Apple ACE is also - present on hardware with Apple SoCs such as the M1. - -properties: - compatible: - enum: - - ti,tps6598x - - apple,cd321x - - ti,tps25750 - - reg: - minItems: 1 - items: - - description: main PD controller address - - description: | - I2C slave address field in PBMs input data - which is used as the device address when writing the - patch for TPS25750. - The patch address can be any value except 0x00, 0x20, - 0x21, 0x22, and 0x23 - - reg-names: - items: - - const: main - - const: patch-address - - reset-gpios: - description: GPIO used for the HRESET pin. - maxItems: 1 - - wakeup-source: true - - interrupts: - maxItems: 1 - - interrupt-names: - items: - - const: irq - - connector: - $ref: /schemas/connector/usb-connector.yaml# - - firmware-name: - description: | - Should contain the name of the default patch binary - file located on the firmware search path which is - used to switch the controller into APP mode. - This is used when tps25750 doesn't have an EEPROM - connected to it. - maxItems: 1 - -required: - - compatible - - reg - -allOf: - - if: - properties: - compatible: - contains: - const: ti,tps25750 - then: - properties: - reg: - maxItems: 2 - - connector: - required: - - data-role - - required: - - connector - - reg-names - else: - properties: - reg: - maxItems: 1 - -additionalProperties: false - -examples: - - | - #include - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - tps6598x: tps6598x@38 { - compatible = "ti,tps6598x"; - reg = <0x38>; - wakeup-source; - - interrupt-parent = <&msmgpio>; - interrupts = <107 IRQ_TYPE_LEVEL_LOW>; - interrupt-names = "irq"; - - pinctrl-names = "default"; - pinctrl-0 = <&typec_pins>; - reset-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; - - typec_con: connector { - compatible = "usb-c-connector"; - label = "USB-C"; - port { - typec_ep: endpoint { - remote-endpoint = <&otg_ep>; - }; - }; - }; - }; - }; - - - | - #include - i2c { - #address-cells = <1>; - #size-cells = <0>; - - typec@21 { - compatible = "ti,tps25750"; - reg = <0x21>, <0x0f>; - reg-names = "main", "patch-address"; - - interrupt-parent = <&msmgpio>; - interrupts = <100 IRQ_TYPE_LEVEL_LOW>; - interrupt-names = "irq"; - firmware-name = "tps25750.bin"; - - pinctrl-names = "default"; - pinctrl-0 = <&typec_pins>; - - typec_con0: connector { - compatible = "usb-c-connector"; - label = "USB-C"; - data-role = "dual"; - port { - typec_ep0: endpoint { - remote-endpoint = <&otg_ep>; - }; - }; - }; - }; - }; -... +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/ti,tps6598x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments 6598x Type-C Port Switch and Power Delivery controller + +maintainers: + - Bryan O'Donoghue + +description: | + Texas Instruments 6598x Type-C Port Switch and Power Delivery controller + + A variant of this controller known as Apple CD321x or Apple ACE is also + present on hardware with Apple SoCs such as the M1. + +properties: + compatible: + enum: + - ti,tps6598x + - apple,cd321x + - ti,tps25750 + + reg: + minItems: 1 + items: + - description: main PD controller address + - description: | + I2C slave address field in PBMs input data + which is used as the device address when writing the + patch for TPS25750. + The patch address can be any value except 0x00, 0x20, + 0x21, 0x22, and 0x23 + + reg-names: + items: + - const: main + - const: patch-address + + reset-gpios: + description: GPIO used for the HRESET pin. + maxItems: 1 + + wakeup-source: true + + interrupts: + maxItems: 1 + + interrupt-names: + items: + - const: irq + + connector: + $ref: /schemas/connector/usb-connector.yaml# + + firmware-name: + description: | + Should contain the name of the default patch binary + file located on the firmware search path which is + used to switch the controller into APP mode. + This is used when tps25750 doesn't have an EEPROM + connected to it. + maxItems: 1 + +required: + - compatible + - reg + +allOf: + - if: + properties: + compatible: + contains: + const: ti,tps25750 + then: + properties: + reg: + maxItems: 2 + + connector: + required: + - data-role + + required: + - connector + - reg-names + else: + properties: + reg: + maxItems: 1 + +additionalProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + tps6598x: tps6598x@38 { + compatible = "ti,tps6598x"; + reg = <0x38>; + wakeup-source; + + interrupt-parent = <&msmgpio>; + interrupts = <107 IRQ_TYPE_LEVEL_LOW>; + interrupt-names = "irq"; + + pinctrl-names = "default"; + pinctrl-0 = <&typec_pins>; + reset-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; + + typec_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + port { + typec_ep: endpoint { + remote-endpoint = <&otg_ep>; + }; + }; + }; + }; + }; + + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + typec@21 { + compatible = "ti,tps25750"; + reg = <0x21>, <0x0f>; + reg-names = "main", "patch-address"; + + interrupt-parent = <&msmgpio>; + interrupts = <100 IRQ_TYPE_LEVEL_LOW>; + interrupt-names = "irq"; + firmware-name = "tps25750.bin"; + + pinctrl-names = "default"; + pinctrl-0 = <&typec_pins>; + + typec_con0: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + data-role = "dual"; + port { + typec_ep0: endpoint { + remote-endpoint = <&otg_ep>; + }; + }; + }; + }; + }; +... diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/usb-device.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/usb-device.yaml index 2a7f29f27..da890ee60 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/usb-device.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/usb/usb-device.yaml @@ -1,123 +1,123 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/usb/usb-device.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Generic USB Device - -maintainers: - - Greg Kroah-Hartman - -description: | - Usually, we only use device tree for hard wired USB device. - The reference binding doc is from: - http://www.devicetree.org/open-firmware/bindings/usb/usb-1_0.ps - - Four types of device-tree nodes are defined: "host-controller nodes" - representing USB host controllers, "device nodes" representing USB devices, - "interface nodes" representing USB interfaces and "combined nodes" - representing simple USB devices. - - A combined node shall be used instead of a device node and an interface node - for devices of class 0 or 9 (hub) with a single configuration and a single - interface. - - A "hub node" is a combined node or an interface node that represents a USB - hub. - -properties: - compatible: - pattern: "^usb[0-9a-f]{1,4},[0-9a-f]{1,4}$" - description: Device nodes or combined nodes. - "usbVID,PID", where VID is the vendor id and PID the product id. - The textual representation of VID and PID shall be in lower case - hexadecimal with leading zeroes suppressed. The other compatible - strings from the above standard binding could also be used, - but a device adhering to this binding may leave out all except - for "usbVID,PID". - - reg: - description: the number of the USB hub port or the USB host-controller - port to which this device is attached. The range is 1-255. - maxItems: 1 - - "#address-cells": - description: should be 1 for hub nodes with device nodes, - should be 2 for device nodes with interface nodes. - enum: [1, 2] - - "#size-cells": - const: 0 - -patternProperties: - "^interface@[0-9a-f]{1,2}(,[0-9a-f]{1,2})$": - type: object - description: USB interface nodes. - The configuration component is not included in the textual - representation of an interface-node unit address for configuration 1. - - properties: - compatible: - pattern: "^usbif[0-9a-f]{1,4},[0-9a-f]{1,4}.config[0-9a-f]{1,2}.[0-9a-f]{1,2}$" - description: Interface nodes. - "usbifVID,PID.configCN.IN", where VID is the vendor id, PID is - the product id, CN is the configuration value and IN is the interface - number. The textual representation of VID, PID, CN and IN shall be - in lower case hexadecimal with leading zeroes suppressed. - The other compatible strings from the above standard binding could - also be used, but a device adhering to this binding may leave out - all except for "usbifVID,PID.configCN.IN". - - reg: - description: should be 2 cells long, the first cell represents - the interface number and the second cell represents the - configuration value. - maxItems: 1 - -required: - - reg - -additionalProperties: true - -examples: - # hub connected to port 1 - # device connected to port 2 - # device connected to port 3 - # interface 0 of configuration 1 - # interface 0 of configuration 2 - - | - usb@11270000 { - reg = <0x11270000 0x1000>; - interrupts = <0x0 0x4e 0x0>; - #address-cells = <1>; - #size-cells = <0>; - - hub@1 { - compatible = "usb5e3,608"; - reg = <1>; - }; - - device@2 { - compatible = "usb123,4567"; - reg = <2>; - }; - - device@3 { - compatible = "usb123,abcd"; - reg = <3>; - - #address-cells = <2>; - #size-cells = <0>; - - interface@0 { - compatible = "usbif123,abcd.config1.0"; - reg = <0 1>; - }; - - interface@0,2 { - compatible = "usbif123,abcd.config2.0"; - reg = <0 2>; - }; - }; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/usb-device.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic USB Device + +maintainers: + - Greg Kroah-Hartman + +description: | + Usually, we only use device tree for hard wired USB device. + The reference binding doc is from: + http://www.devicetree.org/open-firmware/bindings/usb/usb-1_0.ps + + Four types of device-tree nodes are defined: "host-controller nodes" + representing USB host controllers, "device nodes" representing USB devices, + "interface nodes" representing USB interfaces and "combined nodes" + representing simple USB devices. + + A combined node shall be used instead of a device node and an interface node + for devices of class 0 or 9 (hub) with a single configuration and a single + interface. + + A "hub node" is a combined node or an interface node that represents a USB + hub. + +properties: + compatible: + pattern: "^usb[0-9a-f]{1,4},[0-9a-f]{1,4}$" + description: Device nodes or combined nodes. + "usbVID,PID", where VID is the vendor id and PID the product id. + The textual representation of VID and PID shall be in lower case + hexadecimal with leading zeroes suppressed. The other compatible + strings from the above standard binding could also be used, + but a device adhering to this binding may leave out all except + for "usbVID,PID". + + reg: + description: the number of the USB hub port or the USB host-controller + port to which this device is attached. The range is 1-255. + maxItems: 1 + + "#address-cells": + description: should be 1 for hub nodes with device nodes, + should be 2 for device nodes with interface nodes. + enum: [1, 2] + + "#size-cells": + const: 0 + +patternProperties: + "^interface@[0-9a-f]{1,2}(,[0-9a-f]{1,2})$": + type: object + description: USB interface nodes. + The configuration component is not included in the textual + representation of an interface-node unit address for configuration 1. + + properties: + compatible: + pattern: "^usbif[0-9a-f]{1,4},[0-9a-f]{1,4}.config[0-9a-f]{1,2}.[0-9a-f]{1,2}$" + description: Interface nodes. + "usbifVID,PID.configCN.IN", where VID is the vendor id, PID is + the product id, CN is the configuration value and IN is the interface + number. The textual representation of VID, PID, CN and IN shall be + in lower case hexadecimal with leading zeroes suppressed. + The other compatible strings from the above standard binding could + also be used, but a device adhering to this binding may leave out + all except for "usbifVID,PID.configCN.IN". + + reg: + description: should be 2 cells long, the first cell represents + the interface number and the second cell represents the + configuration value. + maxItems: 1 + +required: + - reg + +additionalProperties: true + +examples: + # hub connected to port 1 + # device connected to port 2 + # device connected to port 3 + # interface 0 of configuration 1 + # interface 0 of configuration 2 + - | + usb@11270000 { + reg = <0x11270000 0x1000>; + interrupts = <0x0 0x4e 0x0>; + #address-cells = <1>; + #size-cells = <0>; + + hub@1 { + compatible = "usb5e3,608"; + reg = <1>; + }; + + device@2 { + compatible = "usb123,4567"; + reg = <2>; + }; + + device@3 { + compatible = "usb123,abcd"; + reg = <3>; + + #address-cells = <2>; + #size-cells = <0>; + + interface@0 { + compatible = "usbif123,abcd.config1.0"; + reg = <0 1>; + }; + + interface@0,2 { + compatible = "usbif123,abcd.config2.0"; + reg = <0 2>; + }; + }; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/watchdog/aspeed,ast2400-wdt.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/watchdog/aspeed,ast2400-wdt.yaml index bb4749acd..be78a9865 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/watchdog/aspeed,ast2400-wdt.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/watchdog/aspeed,ast2400-wdt.yaml @@ -1,142 +1,142 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/watchdog/aspeed,ast2400-wdt.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Aspeed watchdog timer controllers - -maintainers: - - Andrew Jeffery - -properties: - compatible: - enum: - - aspeed,ast2400-wdt - - aspeed,ast2500-wdt - - aspeed,ast2600-wdt - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - description: > - The clock used to drive the watchdog counter. From the AST2500 no source - other than the 1MHz clock can be selected, so the clocks property is - optional. - - aspeed,reset-type: - $ref: /schemas/types.yaml#/definitions/string - enum: - - cpu - - soc - - system - - none - default: system - description: > - The watchdog can be programmed to generate one of three different types of - reset when a timeout occcurs. - - Specifying 'cpu' will only reset the processor on a timeout event. - - Specifying 'soc' will reset a configurable subset of the SoC's controllers - on a timeout event. Controllers critical to the SoC's operation may remain - untouched. The set of SoC controllers to reset may be specified via the - aspeed,reset-mask property if the node has the aspeed,ast2500-wdt or - aspeed,ast2600-wdt compatible. - - Specifying 'system' will reset all controllers on a timeout event, as if - EXTRST had been asserted. - - Specifying 'none' will cause the timeout event to have no reset effect. - Another watchdog engine on the chip must be used for chip reset operations. - - aspeed,alt-boot: - $ref: /schemas/types.yaml#/definitions/flag - description: > - Direct the watchdog to configure the SoC to boot from the alternative boot - region if a timeout occurs. - - aspeed,external-signal: - $ref: /schemas/types.yaml#/definitions/flag - description: > - Assert the timeout event on an external signal pin associated with the - watchdog controller instance. The pin must be muxed appropriately. - - aspeed,ext-pulse-duration: - $ref: /schemas/types.yaml#/definitions/uint32 - description: > - The duration, in microseconds, of the pulse emitted on the external signal - pin. - - aspeed,ext-push-pull: - $ref: /schemas/types.yaml#/definitions/flag - description: > - If aspeed,external-signal is specified in the node, set the external - signal pin's drive type to push-pull. If aspeed,ext-push-pull is not - specified then the pin is configured as open-drain. - - aspeed,ext-active-high: - $ref: /schemas/types.yaml#/definitions/flag - description: > - If both aspeed,external-signal and aspeed,ext-push-pull are specified in - the node, set the pulse polarity to active-high. If aspeed,ext-active-high - is not specified then the pin is configured as active-low. - - aspeed,reset-mask: - $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 2 - description: > - A bitmask indicating which peripherals will be reset if the watchdog - timer expires. On AST2500 SoCs this should be a single word defined using - the AST2500_WDT_RESET_* macros; on AST2600 SoCs this should be a two-word - array with the first word defined using the AST2600_WDT_RESET1_* macros, - and the second word defined using the AST2600_WDT_RESET2_* macros. - -required: - - compatible - - reg - -allOf: - - if: - anyOf: - - required: - - aspeed,ext-push-pull - - required: - - aspeed,ext-active-high - - required: - - aspeed,reset-mask - then: - properties: - compatible: - enum: - - aspeed,ast2500-wdt - - aspeed,ast2600-wdt - - if: - required: - - aspeed,ext-active-high - then: - required: - - aspeed,ext-push-pull - -additionalProperties: false - -examples: - - | - watchdog@1e785000 { - compatible = "aspeed,ast2400-wdt"; - reg = <0x1e785000 0x1c>; - aspeed,reset-type = "system"; - aspeed,external-signal; - }; - - | - #include - watchdog@1e785040 { - compatible = "aspeed,ast2600-wdt"; - reg = <0x1e785040 0x40>; - aspeed,reset-type = "soc"; - aspeed,reset-mask = ; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/aspeed,ast2400-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aspeed watchdog timer controllers + +maintainers: + - Andrew Jeffery + +properties: + compatible: + enum: + - aspeed,ast2400-wdt + - aspeed,ast2500-wdt + - aspeed,ast2600-wdt + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + description: > + The clock used to drive the watchdog counter. From the AST2500 no source + other than the 1MHz clock can be selected, so the clocks property is + optional. + + aspeed,reset-type: + $ref: /schemas/types.yaml#/definitions/string + enum: + - cpu + - soc + - system + - none + default: system + description: > + The watchdog can be programmed to generate one of three different types of + reset when a timeout occcurs. + + Specifying 'cpu' will only reset the processor on a timeout event. + + Specifying 'soc' will reset a configurable subset of the SoC's controllers + on a timeout event. Controllers critical to the SoC's operation may remain + untouched. The set of SoC controllers to reset may be specified via the + aspeed,reset-mask property if the node has the aspeed,ast2500-wdt or + aspeed,ast2600-wdt compatible. + + Specifying 'system' will reset all controllers on a timeout event, as if + EXTRST had been asserted. + + Specifying 'none' will cause the timeout event to have no reset effect. + Another watchdog engine on the chip must be used for chip reset operations. + + aspeed,alt-boot: + $ref: /schemas/types.yaml#/definitions/flag + description: > + Direct the watchdog to configure the SoC to boot from the alternative boot + region if a timeout occurs. + + aspeed,external-signal: + $ref: /schemas/types.yaml#/definitions/flag + description: > + Assert the timeout event on an external signal pin associated with the + watchdog controller instance. The pin must be muxed appropriately. + + aspeed,ext-pulse-duration: + $ref: /schemas/types.yaml#/definitions/uint32 + description: > + The duration, in microseconds, of the pulse emitted on the external signal + pin. + + aspeed,ext-push-pull: + $ref: /schemas/types.yaml#/definitions/flag + description: > + If aspeed,external-signal is specified in the node, set the external + signal pin's drive type to push-pull. If aspeed,ext-push-pull is not + specified then the pin is configured as open-drain. + + aspeed,ext-active-high: + $ref: /schemas/types.yaml#/definitions/flag + description: > + If both aspeed,external-signal and aspeed,ext-push-pull are specified in + the node, set the pulse polarity to active-high. If aspeed,ext-active-high + is not specified then the pin is configured as active-low. + + aspeed,reset-mask: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 2 + description: > + A bitmask indicating which peripherals will be reset if the watchdog + timer expires. On AST2500 SoCs this should be a single word defined using + the AST2500_WDT_RESET_* macros; on AST2600 SoCs this should be a two-word + array with the first word defined using the AST2600_WDT_RESET1_* macros, + and the second word defined using the AST2600_WDT_RESET2_* macros. + +required: + - compatible + - reg + +allOf: + - if: + anyOf: + - required: + - aspeed,ext-push-pull + - required: + - aspeed,ext-active-high + - required: + - aspeed,reset-mask + then: + properties: + compatible: + enum: + - aspeed,ast2500-wdt + - aspeed,ast2600-wdt + - if: + required: + - aspeed,ext-active-high + then: + required: + - aspeed,ext-push-pull + +additionalProperties: false + +examples: + - | + watchdog@1e785000 { + compatible = "aspeed,ast2400-wdt"; + reg = <0x1e785000 0x1c>; + aspeed,reset-type = "system"; + aspeed,external-signal; + }; + - | + #include + watchdog@1e785040 { + compatible = "aspeed,ast2600-wdt"; + reg = <0x1e785040 0x40>; + aspeed,reset-type = "soc"; + aspeed,reset-mask = ; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/watchdog/atmel,at91sam9-wdt.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/watchdog/atmel,at91sam9-wdt.yaml index d63006153..ad27bc518 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/watchdog/atmel,at91sam9-wdt.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/watchdog/atmel,at91sam9-wdt.yaml @@ -1,127 +1,127 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -# Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/watchdog/atmel,at91sam9-wdt.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Atmel Watchdog Timers - -maintainers: - - Eugen Hristev - -properties: - compatible: - const: atmel,at91sam9260-wdt - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - interrupts: - maxItems: 1 - - atmel,max-heartbeat-sec: - description: - Should contain the maximum heartbeat value in seconds. This value - should be less or equal to 16. It is used to compute the WDV field. - maximum: 16 - - atmel,min-heartbeat-sec: - description: - Should contain the minimum heartbeat value in seconds. This value - must be smaller than the max-heartbeat-sec value. It is used to - compute the WDD field. - maximum: 16 - - atmel,watchdog-type: - $ref: /schemas/types.yaml#/definitions/string - description: | - Should be hardware or software. - oneOf: - - description: - Hardware watchdog uses the at91 watchdog reset. - const: hardware - - description: | - Software watchdog uses the watchdog interrupt - to trigger a software reset. - const: software - default: hardware - - atmel,reset-type: - $ref: /schemas/types.yaml#/definitions/string - description: | - Should be proc or all. This is valid only when using hardware watchdog. - oneOf: - - description: - Assert peripherals and processor reset signals. - const: all - - description: - Assert the processor reset signal. - const: proc - default: all - - atmel,disable: - $ref: /schemas/types.yaml#/definitions/flag - description: - Should be present if you want to stop the watchdog. - - atmel,idle-halt: - $ref: /schemas/types.yaml#/definitions/flag - description: | - Should be present if you want to stop the watchdog when - entering idle state. - CAUTION: This property should be used with care, it actually makes the - watchdog not counting when the CPU is in idle state, therefore the - watchdog reset time depends on mean CPU usage and will not reset at all - if the CPU stops working while it is in idle state, which is probably - not what you want. - - atmel,dbg-halt: - $ref: /schemas/types.yaml#/definitions/flag - description: | - Should be present if you want to stop the watchdog when - entering debug state. - -required: - - compatible - - reg - - clocks - -allOf: - - $ref: watchdog.yaml# - - if: - properties: - atmel,reset-type: - enum: - - all - - proc - then: - properties: - atmel,watchdog-type: - const: hardware - -dependencies: - atmel,reset-type: ['atmel,watchdog-type'] - -unevaluatedProperties: false - -examples: - - | - #include - - watchdog@fffffd40 { - compatible = "atmel,at91sam9260-wdt"; - reg = <0xfffffd40 0x10>; - interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; - clocks = <&clk32k>; - timeout-sec = <15>; - atmel,watchdog-type = "hardware"; - atmel,reset-type = "all"; - atmel,dbg-halt; - atmel,idle-halt; - atmel,max-heartbeat-sec = <16>; - atmel,min-heartbeat-sec = <0>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/atmel,at91sam9-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel Watchdog Timers + +maintainers: + - Eugen Hristev + +properties: + compatible: + const: atmel,at91sam9260-wdt + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + + atmel,max-heartbeat-sec: + description: + Should contain the maximum heartbeat value in seconds. This value + should be less or equal to 16. It is used to compute the WDV field. + maximum: 16 + + atmel,min-heartbeat-sec: + description: + Should contain the minimum heartbeat value in seconds. This value + must be smaller than the max-heartbeat-sec value. It is used to + compute the WDD field. + maximum: 16 + + atmel,watchdog-type: + $ref: /schemas/types.yaml#/definitions/string + description: | + Should be hardware or software. + oneOf: + - description: + Hardware watchdog uses the at91 watchdog reset. + const: hardware + - description: | + Software watchdog uses the watchdog interrupt + to trigger a software reset. + const: software + default: hardware + + atmel,reset-type: + $ref: /schemas/types.yaml#/definitions/string + description: | + Should be proc or all. This is valid only when using hardware watchdog. + oneOf: + - description: + Assert peripherals and processor reset signals. + const: all + - description: + Assert the processor reset signal. + const: proc + default: all + + atmel,disable: + $ref: /schemas/types.yaml#/definitions/flag + description: + Should be present if you want to stop the watchdog. + + atmel,idle-halt: + $ref: /schemas/types.yaml#/definitions/flag + description: | + Should be present if you want to stop the watchdog when + entering idle state. + CAUTION: This property should be used with care, it actually makes the + watchdog not counting when the CPU is in idle state, therefore the + watchdog reset time depends on mean CPU usage and will not reset at all + if the CPU stops working while it is in idle state, which is probably + not what you want. + + atmel,dbg-halt: + $ref: /schemas/types.yaml#/definitions/flag + description: | + Should be present if you want to stop the watchdog when + entering debug state. + +required: + - compatible + - reg + - clocks + +allOf: + - $ref: watchdog.yaml# + - if: + properties: + atmel,reset-type: + enum: + - all + - proc + then: + properties: + atmel,watchdog-type: + const: hardware + +dependencies: + atmel,reset-type: ['atmel,watchdog-type'] + +unevaluatedProperties: false + +examples: + - | + #include + + watchdog@fffffd40 { + compatible = "atmel,at91sam9260-wdt"; + reg = <0xfffffd40 0x10>; + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; + clocks = <&clk32k>; + timeout-sec = <15>; + atmel,watchdog-type = "hardware"; + atmel,reset-type = "all"; + atmel,dbg-halt; + atmel,idle-halt; + atmel,max-heartbeat-sec = <16>; + atmel,min-heartbeat-sec = <0>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml index 7735b908d..932393f8c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml @@ -1,146 +1,146 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/watchdog/qcom-wdt.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Qualcomm Krait Processor Sub-system (KPSS) Watchdog timer - -maintainers: - - Rajendra Nayak - -properties: - $nodename: - pattern: "^(watchdog|timer)@[0-9a-f]+$" - - compatible: - oneOf: - - items: - - enum: - - qcom,kpss-wdt-ipq4019 - - qcom,apss-wdt-ipq5018 - - qcom,apss-wdt-ipq5332 - - qcom,apss-wdt-ipq9574 - - qcom,apss-wdt-msm8226 - - qcom,apss-wdt-msm8974 - - qcom,apss-wdt-msm8994 - - qcom,apss-wdt-qcm2290 - - qcom,apss-wdt-qcs404 - - qcom,apss-wdt-sa8255p - - qcom,apss-wdt-sa8775p - - qcom,apss-wdt-sc7180 - - qcom,apss-wdt-sc7280 - - qcom,apss-wdt-sc8180x - - qcom,apss-wdt-sc8280xp - - qcom,apss-wdt-sdm845 - - qcom,apss-wdt-sdx55 - - qcom,apss-wdt-sdx65 - - qcom,apss-wdt-sm6115 - - qcom,apss-wdt-sm6350 - - qcom,apss-wdt-sm8150 - - qcom,apss-wdt-sm8250 - - const: qcom,kpss-wdt - - const: qcom,kpss-wdt - deprecated: true - - items: - - const: qcom,scss-timer - - const: qcom,msm-timer - - items: - - enum: - - qcom,kpss-wdt-apq8064 - - qcom,kpss-wdt-ipq8064 - - qcom,kpss-wdt-mdm9615 - - qcom,kpss-wdt-msm8960 - - const: qcom,kpss-timer - - const: qcom,msm-timer - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - clock-names: - items: - - const: sleep - - clock-frequency: - description: - The frequency of the general purpose timer in Hz. - - cpu-offset: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Per-CPU offset used when the timer is accessed without the CPU remapping - facilities. The offset is cpu-offset + (0x10000 * cpu-nr). - - interrupts: - minItems: 1 - maxItems: 5 - -required: - - compatible - - reg - - clocks - -allOf: - - $ref: watchdog.yaml# - - - if: - properties: - compatible: - contains: - const: qcom,kpss-wdt - then: - properties: - clock-frequency: false - cpu-offset: false - interrupts: - minItems: 1 - items: - - description: Bark - - description: Bite - - else: - properties: - interrupts: - minItems: 3 - items: - - description: Debug - - description: First general purpose timer - - description: Second general purpose timer - - description: First watchdog - - description: Second watchdog - required: - - clock-frequency - -unevaluatedProperties: false - -examples: - - | - #include - - watchdog@17c10000 { - compatible = "qcom,apss-wdt-sm8150", "qcom,kpss-wdt"; - reg = <0x17c10000 0x1000>; - clocks = <&sleep_clk>; - interrupts = ; - timeout-sec = <10>; - }; - - - | - #include - - watchdog@200a000 { - compatible = "qcom,kpss-wdt-ipq8064", "qcom,kpss-timer", "qcom,msm-timer"; - interrupts = , - , - , - , - ; - reg = <0x0200a000 0x100>; - clock-frequency = <25000000>; - clocks = <&sleep_clk>; - clock-names = "sleep"; - cpu-offset = <0x80000>; - }; +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/qcom-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Krait Processor Sub-system (KPSS) Watchdog timer + +maintainers: + - Rajendra Nayak + +properties: + $nodename: + pattern: "^(watchdog|timer)@[0-9a-f]+$" + + compatible: + oneOf: + - items: + - enum: + - qcom,kpss-wdt-ipq4019 + - qcom,apss-wdt-ipq5018 + - qcom,apss-wdt-ipq5332 + - qcom,apss-wdt-ipq9574 + - qcom,apss-wdt-msm8226 + - qcom,apss-wdt-msm8974 + - qcom,apss-wdt-msm8994 + - qcom,apss-wdt-qcm2290 + - qcom,apss-wdt-qcs404 + - qcom,apss-wdt-sa8255p + - qcom,apss-wdt-sa8775p + - qcom,apss-wdt-sc7180 + - qcom,apss-wdt-sc7280 + - qcom,apss-wdt-sc8180x + - qcom,apss-wdt-sc8280xp + - qcom,apss-wdt-sdm845 + - qcom,apss-wdt-sdx55 + - qcom,apss-wdt-sdx65 + - qcom,apss-wdt-sm6115 + - qcom,apss-wdt-sm6350 + - qcom,apss-wdt-sm8150 + - qcom,apss-wdt-sm8250 + - const: qcom,kpss-wdt + - const: qcom,kpss-wdt + deprecated: true + - items: + - const: qcom,scss-timer + - const: qcom,msm-timer + - items: + - enum: + - qcom,kpss-wdt-apq8064 + - qcom,kpss-wdt-ipq8064 + - qcom,kpss-wdt-mdm9615 + - qcom,kpss-wdt-msm8960 + - const: qcom,kpss-timer + - const: qcom,msm-timer + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: sleep + + clock-frequency: + description: + The frequency of the general purpose timer in Hz. + + cpu-offset: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Per-CPU offset used when the timer is accessed without the CPU remapping + facilities. The offset is cpu-offset + (0x10000 * cpu-nr). + + interrupts: + minItems: 1 + maxItems: 5 + +required: + - compatible + - reg + - clocks + +allOf: + - $ref: watchdog.yaml# + + - if: + properties: + compatible: + contains: + const: qcom,kpss-wdt + then: + properties: + clock-frequency: false + cpu-offset: false + interrupts: + minItems: 1 + items: + - description: Bark + - description: Bite + + else: + properties: + interrupts: + minItems: 3 + items: + - description: Debug + - description: First general purpose timer + - description: Second general purpose timer + - description: First watchdog + - description: Second watchdog + required: + - clock-frequency + +unevaluatedProperties: false + +examples: + - | + #include + + watchdog@17c10000 { + compatible = "qcom,apss-wdt-sm8150", "qcom,kpss-wdt"; + reg = <0x17c10000 0x1000>; + clocks = <&sleep_clk>; + interrupts = ; + timeout-sec = <10>; + }; + + - | + #include + + watchdog@200a000 { + compatible = "qcom,kpss-wdt-ipq8064", "qcom,kpss-timer", "qcom,msm-timer"; + interrupts = , + , + , + , + ; + reg = <0x0200a000 0x100>; + clock-frequency = <25000000>; + clocks = <&sleep_clk>; + clock-names = "sleep"; + cpu-offset = <0x80000>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml index 8ee4d6cd2..77a5ddd04 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml @@ -1,126 +1,126 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/watchdog/samsung-wdt.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Samsung SoC Watchdog Timer Controller - -maintainers: - - Krzysztof Kozlowski - -description: |+ - The Samsung's Watchdog controller is used for resuming system operation - after a preset amount of time during which the WDT reset event has not - occurred. - -properties: - compatible: - oneOf: - - enum: - - google,gs101-wdt # for Google gs101 - - samsung,s3c2410-wdt # for S3C2410 - - samsung,s3c6410-wdt # for S3C6410, S5PV210 and Exynos4 - - samsung,exynos5250-wdt # for Exynos5250 - - samsung,exynos5420-wdt # for Exynos5420 - - samsung,exynos7-wdt # for Exynos7 - - samsung,exynos850-wdt # for Exynos850 - - samsung,exynosautov9-wdt # for Exynosautov9 - - items: - - enum: - - tesla,fsd-wdt - - const: samsung,exynos7-wdt - - reg: - maxItems: 1 - - clocks: - minItems: 1 - maxItems: 2 - - clock-names: - minItems: 1 - maxItems: 2 - - interrupts: - maxItems: 1 - - samsung,cluster-index: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Index of CPU cluster on which watchdog is running (in case of Exynos850 - or Google gs101). - - samsung,syscon-phandle: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Phandle to the PMU system controller node (in case of Exynos5250, - Exynos5420, Exynos7, Exynos850 and gs101). - -required: - - compatible - - clocks - - clock-names - - interrupts - - reg - -allOf: - - $ref: watchdog.yaml# - - if: - properties: - compatible: - contains: - enum: - - google,gs101-wdt - - samsung,exynos5250-wdt - - samsung,exynos5420-wdt - - samsung,exynos7-wdt - - samsung,exynos850-wdt - - samsung,exynosautov9-wdt - then: - required: - - samsung,syscon-phandle - - if: - properties: - compatible: - contains: - enum: - - google,gs101-wdt - - samsung,exynos850-wdt - - samsung,exynosautov9-wdt - then: - properties: - clocks: - items: - - description: Bus clock, used for register interface - - description: Source clock (driving watchdog counter) - clock-names: - items: - - const: watchdog - - const: watchdog_src - samsung,cluster-index: - enum: [0, 1] - required: - - samsung,cluster-index - else: - properties: - clocks: - items: - - description: Bus clock, which is also a source clock - clock-names: - items: - - const: watchdog - samsung,cluster-index: false - -unevaluatedProperties: false - -examples: - - | - watchdog@101d0000 { - compatible = "samsung,exynos5250-wdt"; - reg = <0x101D0000 0x100>; - interrupts = <0 42 0>; - clocks = <&clock 336>; - clock-names = "watchdog"; - samsung,syscon-phandle = <&pmu_syscon>; - }; +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/samsung-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung SoC Watchdog Timer Controller + +maintainers: + - Krzysztof Kozlowski + +description: |+ + The Samsung's Watchdog controller is used for resuming system operation + after a preset amount of time during which the WDT reset event has not + occurred. + +properties: + compatible: + oneOf: + - enum: + - google,gs101-wdt # for Google gs101 + - samsung,s3c2410-wdt # for S3C2410 + - samsung,s3c6410-wdt # for S3C6410, S5PV210 and Exynos4 + - samsung,exynos5250-wdt # for Exynos5250 + - samsung,exynos5420-wdt # for Exynos5420 + - samsung,exynos7-wdt # for Exynos7 + - samsung,exynos850-wdt # for Exynos850 + - samsung,exynosautov9-wdt # for Exynosautov9 + - items: + - enum: + - tesla,fsd-wdt + - const: samsung,exynos7-wdt + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + maxItems: 2 + + interrupts: + maxItems: 1 + + samsung,cluster-index: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Index of CPU cluster on which watchdog is running (in case of Exynos850 + or Google gs101). + + samsung,syscon-phandle: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the PMU system controller node (in case of Exynos5250, + Exynos5420, Exynos7, Exynos850 and gs101). + +required: + - compatible + - clocks + - clock-names + - interrupts + - reg + +allOf: + - $ref: watchdog.yaml# + - if: + properties: + compatible: + contains: + enum: + - google,gs101-wdt + - samsung,exynos5250-wdt + - samsung,exynos5420-wdt + - samsung,exynos7-wdt + - samsung,exynos850-wdt + - samsung,exynosautov9-wdt + then: + required: + - samsung,syscon-phandle + - if: + properties: + compatible: + contains: + enum: + - google,gs101-wdt + - samsung,exynos850-wdt + - samsung,exynosautov9-wdt + then: + properties: + clocks: + items: + - description: Bus clock, used for register interface + - description: Source clock (driving watchdog counter) + clock-names: + items: + - const: watchdog + - const: watchdog_src + samsung,cluster-index: + enum: [0, 1] + required: + - samsung,cluster-index + else: + properties: + clocks: + items: + - description: Bus clock, which is also a source clock + clock-names: + items: + - const: watchdog + samsung,cluster-index: false + +unevaluatedProperties: false + +examples: + - | + watchdog@101d0000 { + compatible = "samsung,exynos5250-wdt"; + reg = <0x101D0000 0x100>; + interrupts = <0 42 0>; + clocks = <&clock 336>; + clock-names = "watchdog"; + samsung,syscon-phandle = <&pmu_syscon>; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/writing-bindings.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/writing-bindings.rst index c1e48f681..1ad081de2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/writing-bindings.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/devicetree/bindings/writing-bindings.rst @@ -1,93 +1,93 @@ -.. SPDX-License-Identifier: GPL-2.0 - -============================================================ -DOs and DON'Ts for designing and writing Devicetree bindings -============================================================ - -This is a list of common review feedback items focused on binding design. With -every rule, there are exceptions and bindings have many gray areas. - -For guidelines related to patches, see -Documentation/devicetree/bindings/submitting-patches.rst - - -Overall design -============== - -- DO attempt to make bindings complete even if a driver doesn't support some - features. For example, if a device has an interrupt, then include the - 'interrupts' property even if the driver is only polled mode. - -- DON'T refer to Linux or "device driver" in bindings. Bindings should be - based on what the hardware has, not what an OS and driver currently support. - -- DO use node names matching the class of the device. Many standard names are - defined in the DT Spec. If there isn't one, consider adding it. - -- DO check that the example matches the documentation especially after making - review changes. - -- DON'T create nodes just for the sake of instantiating drivers. Multi-function - devices only need child nodes when the child nodes have their own DT - resources. A single node can be multiple providers (e.g. clocks and resets). - -- DON'T use 'syscon' alone without a specific compatible string. A 'syscon' - hardware block should have a compatible string unique enough to infer the - register layout of the entire block (at a minimum). - - -Properties -========== - -- DO make 'compatible' properties specific. DON'T use wildcards in compatible - strings. DO use fallback compatibles when devices are the same as or a subset - of prior implementations. DO add new compatibles in case there are new - features or bugs. - -- DO use a vendor prefix on device-specific property names. Consider if - properties could be common among devices of the same class. Check other - existing bindings for similar devices. - -- DON'T redefine common properties. Just reference the definition and define - constraints specific to the device. - -- DO use common property unit suffixes for properties with scientific units. - Recommended suffixes are listed at - https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/property-units.yaml - -- DO define properties in terms of constraints. How many entries? What are - possible values? What is the order? - -Typical cases and caveats -========================= - -- Phandle entries, like clocks/dmas/interrupts/resets, should always be - explicitly ordered. Include the {clock,dma,interrupt,reset}-names if there is - more than one phandle. When used, both of these fields need the same - constraints (e.g. list of items). - -- For names used in {clock,dma,interrupt,reset}-names, do not add any suffix, - e.g.: "tx" instead of "txirq" (for interrupt). - -- Properties without schema types (e.g. without standard suffix or not defined - by schema) need the type, even if this is an enum. - -- If schema includes other schema (e.g. /schemas/i2c/i2c-controller.yaml) use - "unevaluatedProperties:false". In other cases, usually use - "additionalProperties:false". - -- For sub-blocks/components of bigger device (e.g. SoC blocks) use rather - device-based compatible (e.g. SoC-based compatible), instead of custom - versioning of that component. - For example use "vendor,soc1234-i2c" instead of "vendor,i2c-v2". - -- "syscon" is not a generic property. Use vendor and type, e.g. - "vendor,power-manager-syscon". - -Board/SoC .dts Files -==================== - -- DO put all MMIO devices under a bus node and not at the top-level. - -- DO use non-empty 'ranges' to limit the size of child buses/devices. 64-bit - platforms don't need all devices to have 64-bit address and size. +.. SPDX-License-Identifier: GPL-2.0 + +============================================================ +DOs and DON'Ts for designing and writing Devicetree bindings +============================================================ + +This is a list of common review feedback items focused on binding design. With +every rule, there are exceptions and bindings have many gray areas. + +For guidelines related to patches, see +Documentation/devicetree/bindings/submitting-patches.rst + + +Overall design +============== + +- DO attempt to make bindings complete even if a driver doesn't support some + features. For example, if a device has an interrupt, then include the + 'interrupts' property even if the driver is only polled mode. + +- DON'T refer to Linux or "device driver" in bindings. Bindings should be + based on what the hardware has, not what an OS and driver currently support. + +- DO use node names matching the class of the device. Many standard names are + defined in the DT Spec. If there isn't one, consider adding it. + +- DO check that the example matches the documentation especially after making + review changes. + +- DON'T create nodes just for the sake of instantiating drivers. Multi-function + devices only need child nodes when the child nodes have their own DT + resources. A single node can be multiple providers (e.g. clocks and resets). + +- DON'T use 'syscon' alone without a specific compatible string. A 'syscon' + hardware block should have a compatible string unique enough to infer the + register layout of the entire block (at a minimum). + + +Properties +========== + +- DO make 'compatible' properties specific. DON'T use wildcards in compatible + strings. DO use fallback compatibles when devices are the same as or a subset + of prior implementations. DO add new compatibles in case there are new + features or bugs. + +- DO use a vendor prefix on device-specific property names. Consider if + properties could be common among devices of the same class. Check other + existing bindings for similar devices. + +- DON'T redefine common properties. Just reference the definition and define + constraints specific to the device. + +- DO use common property unit suffixes for properties with scientific units. + Recommended suffixes are listed at + https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/property-units.yaml + +- DO define properties in terms of constraints. How many entries? What are + possible values? What is the order? + +Typical cases and caveats +========================= + +- Phandle entries, like clocks/dmas/interrupts/resets, should always be + explicitly ordered. Include the {clock,dma,interrupt,reset}-names if there is + more than one phandle. When used, both of these fields need the same + constraints (e.g. list of items). + +- For names used in {clock,dma,interrupt,reset}-names, do not add any suffix, + e.g.: "tx" instead of "txirq" (for interrupt). + +- Properties without schema types (e.g. without standard suffix or not defined + by schema) need the type, even if this is an enum. + +- If schema includes other schema (e.g. /schemas/i2c/i2c-controller.yaml) use + "unevaluatedProperties:false". In other cases, usually use + "additionalProperties:false". + +- For sub-blocks/components of bigger device (e.g. SoC blocks) use rather + device-based compatible (e.g. SoC-based compatible), instead of custom + versioning of that component. + For example use "vendor,soc1234-i2c" instead of "vendor,i2c-v2". + +- "syscon" is not a generic property. Use vendor and type, e.g. + "vendor,power-manager-syscon". + +Board/SoC .dts Files +==================== + +- DO put all MMIO devices under a bus node and not at the top-level. + +- DO use non-empty 'ranges' to limit the size of child buses/devices. 64-bit + platforms don't need all devices to have 64-bit address and size. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/doc-guide/parse-headers.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/doc-guide/parse-headers.rst index 9690c8c31..204b025f1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/doc-guide/parse-headers.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/doc-guide/parse-headers.rst @@ -1,192 +1,192 @@ -=========================== -Including uAPI header files -=========================== - -Sometimes, it is useful to include header files and C example codes in -order to describe the userspace API and to generate cross-references -between the code and the documentation. Adding cross-references for -userspace API files has an additional vantage: Sphinx will generate warnings -if a symbol is not found at the documentation. That helps to keep the -uAPI documentation in sync with the Kernel changes. -The :ref:`parse_headers.pl ` provide a way to generate such -cross-references. It has to be called via Makefile, while building the -documentation. Please see ``Documentation/userspace-api/media/Makefile`` for an example -about how to use it inside the Kernel tree. - -.. _parse_headers: - -parse_headers.pl -^^^^^^^^^^^^^^^^ - -NAME -**** - - -parse_headers.pl - parse a C file, in order to identify functions, structs, -enums and defines and create cross-references to a Sphinx book. - - -SYNOPSIS -******** - - -\ **parse_headers.pl**\ [] [] - -Where can be: --debug, --help or --usage. - - -OPTIONS -******* - - - -\ **--debug**\ - - Put the script in verbose mode, useful for debugging. - - - -\ **--usage**\ - - Prints a brief help message and exits. - - - -\ **--help**\ - - Prints a more detailed help message and exits. - - -DESCRIPTION -*********** - - -Convert a C header or source file (C_FILE), into a reStructuredText -included via ..parsed-literal block with cross-references for the -documentation files that describe the API. It accepts an optional -EXCEPTIONS_FILE with describes what elements will be either ignored or -be pointed to a non-default reference. - -The output is written at the (OUT_FILE). - -It is capable of identifying defines, functions, structs, typedefs, -enums and enum symbols and create cross-references for all of them. -It is also capable of distinguish #define used for specifying a Linux -ioctl. - -The EXCEPTIONS_FILE contain two types of statements: \ **ignore**\ or \ **replace**\ . - -The syntax for the ignore tag is: - - -ignore \ **type**\ \ **name**\ - -The \ **ignore**\ means that it won't generate cross references for a -\ **name**\ symbol of type \ **type**\ . - -The syntax for the replace tag is: - - -replace \ **type**\ \ **name**\ \ **new_value**\ - -The \ **replace**\ means that it will generate cross references for a -\ **name**\ symbol of type \ **type**\ , but, instead of using the default -replacement rule, it will use \ **new_value**\ . - -For both statements, \ **type**\ can be either one of the following: - - -\ **ioctl**\ - - The ignore or replace statement will apply to ioctl definitions like: - - #define VIDIOC_DBG_S_REGISTER _IOW('V', 79, struct v4l2_dbg_register) - - - -\ **define**\ - - The ignore or replace statement will apply to any other #define found - at C_FILE. - - - -\ **typedef**\ - - The ignore or replace statement will apply to typedef statements at C_FILE. - - - -\ **struct**\ - - The ignore or replace statement will apply to the name of struct statements - at C_FILE. - - - -\ **enum**\ - - The ignore or replace statement will apply to the name of enum statements - at C_FILE. - - - -\ **symbol**\ - - The ignore or replace statement will apply to the name of enum value - at C_FILE. - - For replace statements, \ **new_value**\ will automatically use :c:type: - references for \ **typedef**\ , \ **enum**\ and \ **struct**\ types. It will use :ref: - for \ **ioctl**\ , \ **define**\ and \ **symbol**\ types. The type of reference can - also be explicitly defined at the replace statement. - - - -EXAMPLES -******** - - -ignore define _VIDEODEV2_H - - -Ignore a #define _VIDEODEV2_H at the C_FILE. - -ignore symbol PRIVATE - - -On a struct like: - -enum foo { BAR1, BAR2, PRIVATE }; - -It won't generate cross-references for \ **PRIVATE**\ . - -replace symbol BAR1 :c:type:\`foo\` -replace symbol BAR2 :c:type:\`foo\` - - -On a struct like: - -enum foo { BAR1, BAR2, PRIVATE }; - -It will make the BAR1 and BAR2 enum symbols to cross reference the foo -symbol at the C domain. - - -BUGS -**** - - -Report bugs to Mauro Carvalho Chehab - - -COPYRIGHT -********* - - -Copyright (c) 2016 by Mauro Carvalho Chehab . - -License GPLv2: GNU GPL version 2 . - -This is free software: you are free to change and redistribute it. -There is NO WARRANTY, to the extent permitted by law. +=========================== +Including uAPI header files +=========================== + +Sometimes, it is useful to include header files and C example codes in +order to describe the userspace API and to generate cross-references +between the code and the documentation. Adding cross-references for +userspace API files has an additional vantage: Sphinx will generate warnings +if a symbol is not found at the documentation. That helps to keep the +uAPI documentation in sync with the Kernel changes. +The :ref:`parse_headers.pl ` provide a way to generate such +cross-references. It has to be called via Makefile, while building the +documentation. Please see ``Documentation/userspace-api/media/Makefile`` for an example +about how to use it inside the Kernel tree. + +.. _parse_headers: + +parse_headers.pl +^^^^^^^^^^^^^^^^ + +NAME +**** + + +parse_headers.pl - parse a C file, in order to identify functions, structs, +enums and defines and create cross-references to a Sphinx book. + + +SYNOPSIS +******** + + +\ **parse_headers.pl**\ [] [] + +Where can be: --debug, --help or --usage. + + +OPTIONS +******* + + + +\ **--debug**\ + + Put the script in verbose mode, useful for debugging. + + + +\ **--usage**\ + + Prints a brief help message and exits. + + + +\ **--help**\ + + Prints a more detailed help message and exits. + + +DESCRIPTION +*********** + + +Convert a C header or source file (C_FILE), into a reStructuredText +included via ..parsed-literal block with cross-references for the +documentation files that describe the API. It accepts an optional +EXCEPTIONS_FILE with describes what elements will be either ignored or +be pointed to a non-default reference. + +The output is written at the (OUT_FILE). + +It is capable of identifying defines, functions, structs, typedefs, +enums and enum symbols and create cross-references for all of them. +It is also capable of distinguish #define used for specifying a Linux +ioctl. + +The EXCEPTIONS_FILE contain two types of statements: \ **ignore**\ or \ **replace**\ . + +The syntax for the ignore tag is: + + +ignore \ **type**\ \ **name**\ + +The \ **ignore**\ means that it won't generate cross references for a +\ **name**\ symbol of type \ **type**\ . + +The syntax for the replace tag is: + + +replace \ **type**\ \ **name**\ \ **new_value**\ + +The \ **replace**\ means that it will generate cross references for a +\ **name**\ symbol of type \ **type**\ , but, instead of using the default +replacement rule, it will use \ **new_value**\ . + +For both statements, \ **type**\ can be either one of the following: + + +\ **ioctl**\ + + The ignore or replace statement will apply to ioctl definitions like: + + #define VIDIOC_DBG_S_REGISTER _IOW('V', 79, struct v4l2_dbg_register) + + + +\ **define**\ + + The ignore or replace statement will apply to any other #define found + at C_FILE. + + + +\ **typedef**\ + + The ignore or replace statement will apply to typedef statements at C_FILE. + + + +\ **struct**\ + + The ignore or replace statement will apply to the name of struct statements + at C_FILE. + + + +\ **enum**\ + + The ignore or replace statement will apply to the name of enum statements + at C_FILE. + + + +\ **symbol**\ + + The ignore or replace statement will apply to the name of enum value + at C_FILE. + + For replace statements, \ **new_value**\ will automatically use :c:type: + references for \ **typedef**\ , \ **enum**\ and \ **struct**\ types. It will use :ref: + for \ **ioctl**\ , \ **define**\ and \ **symbol**\ types. The type of reference can + also be explicitly defined at the replace statement. + + + +EXAMPLES +******** + + +ignore define _VIDEODEV2_H + + +Ignore a #define _VIDEODEV2_H at the C_FILE. + +ignore symbol PRIVATE + + +On a struct like: + +enum foo { BAR1, BAR2, PRIVATE }; + +It won't generate cross-references for \ **PRIVATE**\ . + +replace symbol BAR1 :c:type:\`foo\` +replace symbol BAR2 :c:type:\`foo\` + + +On a struct like: + +enum foo { BAR1, BAR2, PRIVATE }; + +It will make the BAR1 and BAR2 enum symbols to cross reference the foo +symbol at the C domain. + + +BUGS +**** + + +Report bugs to Mauro Carvalho Chehab + + +COPYRIGHT +********* + + +Copyright (c) 2016 by Mauro Carvalho Chehab . + +License GPLv2: GNU GPL version 2 . + +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/80211/cfg80211.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/80211/cfg80211.rst index 1b9f70783..836f609c3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/80211/cfg80211.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/80211/cfg80211.rst @@ -1,178 +1,178 @@ -================== -cfg80211 subsystem -================== - -.. kernel-doc:: include/net/cfg80211.h - :doc: Introduction - -Device registration -=================== - -.. kernel-doc:: include/net/cfg80211.h - :doc: Device registration - -.. kernel-doc:: include/net/cfg80211.h - :functions: - ieee80211_channel_flags - ieee80211_channel - ieee80211_rate_flags - ieee80211_rate - ieee80211_sta_ht_cap - ieee80211_supported_band - cfg80211_signal_type - wiphy_params_flags - wiphy_flags - wiphy - wireless_dev - wiphy_new - wiphy_read_of_freq_limits - wiphy_register - wiphy_unregister - wiphy_free - wiphy_name - wiphy_dev - wiphy_priv - priv_to_wiphy - set_wiphy_dev - wdev_priv - ieee80211_iface_limit - ieee80211_iface_combination - cfg80211_check_combinations - -Actions and configuration -========================= - -.. kernel-doc:: include/net/cfg80211.h - :doc: Actions and configuration - -.. kernel-doc:: include/net/cfg80211.h - :functions: - cfg80211_ops - vif_params - key_params - survey_info_flags - survey_info - cfg80211_beacon_data - cfg80211_ap_settings - station_parameters - rate_info_flags - rate_info - station_info - monitor_flags - mpath_info_flags - mpath_info - bss_parameters - ieee80211_txq_params - cfg80211_crypto_settings - cfg80211_auth_request - cfg80211_assoc_request - cfg80211_deauth_request - cfg80211_disassoc_request - cfg80211_ibss_params - cfg80211_connect_params - cfg80211_pmksa - cfg80211_rx_mlme_mgmt - cfg80211_auth_timeout - cfg80211_rx_assoc_resp - cfg80211_assoc_timeout - cfg80211_tx_mlme_mgmt - cfg80211_ibss_joined - cfg80211_connect_resp_params - cfg80211_connect_done - cfg80211_connect_result - cfg80211_connect_bss - cfg80211_connect_timeout - cfg80211_roamed - cfg80211_disconnected - cfg80211_ready_on_channel - cfg80211_remain_on_channel_expired - cfg80211_new_sta - cfg80211_rx_mgmt - cfg80211_mgmt_tx_status - cfg80211_cqm_rssi_notify - cfg80211_cqm_pktloss_notify - cfg80211_michael_mic_failure - -Scanning and BSS list handling -============================== - -.. kernel-doc:: include/net/cfg80211.h - :doc: Scanning and BSS list handling - -.. kernel-doc:: include/net/cfg80211.h - :functions: - cfg80211_ssid - cfg80211_scan_request - cfg80211_scan_done - cfg80211_bss - cfg80211_inform_bss - cfg80211_inform_bss_frame_data - cfg80211_inform_bss_data - cfg80211_unlink_bss - cfg80211_find_ie - ieee80211_bss_get_ie - -Utility functions -================= - -.. kernel-doc:: include/net/cfg80211.h - :doc: Utility functions - -.. kernel-doc:: include/net/cfg80211.h - :functions: - ieee80211_channel_to_frequency - ieee80211_frequency_to_channel - ieee80211_get_channel - ieee80211_get_response_rate - ieee80211_hdrlen - ieee80211_get_hdrlen_from_skb - ieee80211_radiotap_iterator - -Data path helpers -================= - -.. kernel-doc:: include/net/cfg80211.h - :doc: Data path helpers - -.. kernel-doc:: include/net/cfg80211.h - :functions: - ieee80211_data_to_8023 - ieee80211_amsdu_to_8023s - cfg80211_classify8021d - -Regulatory enforcement infrastructure -===================================== - -.. kernel-doc:: include/net/cfg80211.h - :doc: Regulatory enforcement infrastructure - -.. kernel-doc:: include/net/cfg80211.h - :functions: - regulatory_hint - wiphy_apply_custom_regulatory - freq_reg_info - -RFkill integration -================== - -.. kernel-doc:: include/net/cfg80211.h - :doc: RFkill integration - -.. kernel-doc:: include/net/cfg80211.h - :functions: - wiphy_rfkill_set_hw_state - wiphy_rfkill_start_polling - wiphy_rfkill_stop_polling - -Test mode -========= - -.. kernel-doc:: include/net/cfg80211.h - :doc: Test mode - -.. kernel-doc:: include/net/cfg80211.h - :functions: - cfg80211_testmode_alloc_reply_skb - cfg80211_testmode_reply - cfg80211_testmode_alloc_event_skb - cfg80211_testmode_event +================== +cfg80211 subsystem +================== + +.. kernel-doc:: include/net/cfg80211.h + :doc: Introduction + +Device registration +=================== + +.. kernel-doc:: include/net/cfg80211.h + :doc: Device registration + +.. kernel-doc:: include/net/cfg80211.h + :functions: + ieee80211_channel_flags + ieee80211_channel + ieee80211_rate_flags + ieee80211_rate + ieee80211_sta_ht_cap + ieee80211_supported_band + cfg80211_signal_type + wiphy_params_flags + wiphy_flags + wiphy + wireless_dev + wiphy_new + wiphy_read_of_freq_limits + wiphy_register + wiphy_unregister + wiphy_free + wiphy_name + wiphy_dev + wiphy_priv + priv_to_wiphy + set_wiphy_dev + wdev_priv + ieee80211_iface_limit + ieee80211_iface_combination + cfg80211_check_combinations + +Actions and configuration +========================= + +.. kernel-doc:: include/net/cfg80211.h + :doc: Actions and configuration + +.. kernel-doc:: include/net/cfg80211.h + :functions: + cfg80211_ops + vif_params + key_params + survey_info_flags + survey_info + cfg80211_beacon_data + cfg80211_ap_settings + station_parameters + rate_info_flags + rate_info + station_info + monitor_flags + mpath_info_flags + mpath_info + bss_parameters + ieee80211_txq_params + cfg80211_crypto_settings + cfg80211_auth_request + cfg80211_assoc_request + cfg80211_deauth_request + cfg80211_disassoc_request + cfg80211_ibss_params + cfg80211_connect_params + cfg80211_pmksa + cfg80211_rx_mlme_mgmt + cfg80211_auth_timeout + cfg80211_rx_assoc_resp + cfg80211_assoc_timeout + cfg80211_tx_mlme_mgmt + cfg80211_ibss_joined + cfg80211_connect_resp_params + cfg80211_connect_done + cfg80211_connect_result + cfg80211_connect_bss + cfg80211_connect_timeout + cfg80211_roamed + cfg80211_disconnected + cfg80211_ready_on_channel + cfg80211_remain_on_channel_expired + cfg80211_new_sta + cfg80211_rx_mgmt + cfg80211_mgmt_tx_status + cfg80211_cqm_rssi_notify + cfg80211_cqm_pktloss_notify + cfg80211_michael_mic_failure + +Scanning and BSS list handling +============================== + +.. kernel-doc:: include/net/cfg80211.h + :doc: Scanning and BSS list handling + +.. kernel-doc:: include/net/cfg80211.h + :functions: + cfg80211_ssid + cfg80211_scan_request + cfg80211_scan_done + cfg80211_bss + cfg80211_inform_bss + cfg80211_inform_bss_frame_data + cfg80211_inform_bss_data + cfg80211_unlink_bss + cfg80211_find_ie + ieee80211_bss_get_ie + +Utility functions +================= + +.. kernel-doc:: include/net/cfg80211.h + :doc: Utility functions + +.. kernel-doc:: include/net/cfg80211.h + :functions: + ieee80211_channel_to_frequency + ieee80211_frequency_to_channel + ieee80211_get_channel + ieee80211_get_response_rate + ieee80211_hdrlen + ieee80211_get_hdrlen_from_skb + ieee80211_radiotap_iterator + +Data path helpers +================= + +.. kernel-doc:: include/net/cfg80211.h + :doc: Data path helpers + +.. kernel-doc:: include/net/cfg80211.h + :functions: + ieee80211_data_to_8023 + ieee80211_amsdu_to_8023s + cfg80211_classify8021d + +Regulatory enforcement infrastructure +===================================== + +.. kernel-doc:: include/net/cfg80211.h + :doc: Regulatory enforcement infrastructure + +.. kernel-doc:: include/net/cfg80211.h + :functions: + regulatory_hint + wiphy_apply_custom_regulatory + freq_reg_info + +RFkill integration +================== + +.. kernel-doc:: include/net/cfg80211.h + :doc: RFkill integration + +.. kernel-doc:: include/net/cfg80211.h + :functions: + wiphy_rfkill_set_hw_state + wiphy_rfkill_start_polling + wiphy_rfkill_stop_polling + +Test mode +========= + +.. kernel-doc:: include/net/cfg80211.h + :doc: Test mode + +.. kernel-doc:: include/net/cfg80211.h + :functions: + cfg80211_testmode_alloc_reply_skb + cfg80211_testmode_reply + cfg80211_testmode_alloc_event_skb + cfg80211_testmode_event diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/80211/mac80211.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/80211/mac80211.rst index 9220123a2..e38a22040 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/80211/mac80211.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/80211/mac80211.rst @@ -1,155 +1,155 @@ -=========================== -mac80211 subsystem (basics) -=========================== - -You should read and understand the information contained within this -part of the book while implementing a mac80211 driver. In some chapters, -advanced usage is noted, those may be skipped if this isn't needed. - -This part of the book only covers station and monitor mode -functionality, additional information required to implement the other -modes is covered in the second part of the book. - -Basic hardware handling -======================= - -TBD - -This chapter shall contain information on getting a hw struct allocated -and registered with mac80211. - -Since it is required to allocate rates/modes before registering a hw -struct, this chapter shall also contain information on setting up the -rate/mode structs. - -Additionally, some discussion about the callbacks and the general -programming model should be in here, including the definition of -ieee80211_ops which will be referred to a lot. - -Finally, a discussion of hardware capabilities should be done with -references to other parts of the book. - -.. kernel-doc:: include/net/mac80211.h - :functions: - ieee80211_hw - ieee80211_hw_flags - SET_IEEE80211_DEV - SET_IEEE80211_PERM_ADDR - ieee80211_ops - ieee80211_alloc_hw - ieee80211_register_hw - ieee80211_unregister_hw - ieee80211_free_hw - -PHY configuration -================= - -TBD - -This chapter should describe PHY handling including start/stop callbacks -and the various structures used. - -.. kernel-doc:: include/net/mac80211.h - :functions: - ieee80211_conf - ieee80211_conf_flags - -Virtual interfaces -================== - -TBD - -This chapter should describe virtual interface basics that are relevant -to the driver (VLANs, MGMT etc are not.) It should explain the use of -the add_iface/remove_iface callbacks as well as the interface -configuration callbacks. - -Things related to AP mode should be discussed there. - -Things related to supporting multiple interfaces should be in the -appropriate chapter, a BIG FAT note should be here about this though and -the recommendation to allow only a single interface in STA mode at -first! - -.. kernel-doc:: include/net/mac80211.h - :functions: ieee80211_vif - -Receive and transmit processing -=============================== - -what should be here -------------------- - -TBD - -This should describe the receive and transmit paths in mac80211/the -drivers as well as transmit status handling. - -Frame format ------------- - -.. kernel-doc:: include/net/mac80211.h - :doc: Frame format - -Packet alignment ----------------- - -.. kernel-doc:: net/mac80211/rx.c - :doc: Packet alignment - -Calling into mac80211 from interrupts -------------------------------------- - -.. kernel-doc:: include/net/mac80211.h - :doc: Calling mac80211 from interrupts - -functions/definitions ---------------------- - -.. kernel-doc:: include/net/mac80211.h - :functions: - ieee80211_rx_status - mac80211_rx_encoding_flags - mac80211_rx_flags - mac80211_tx_info_flags - mac80211_tx_control_flags - mac80211_rate_control_flags - ieee80211_tx_rate - ieee80211_tx_info - ieee80211_tx_info_clear_status - ieee80211_rx - ieee80211_rx_ni - ieee80211_rx_irqsafe - ieee80211_tx_status_skb - ieee80211_tx_status_ni - ieee80211_tx_status_irqsafe - ieee80211_rts_get - ieee80211_rts_duration - ieee80211_ctstoself_get - ieee80211_ctstoself_duration - ieee80211_generic_frame_duration - ieee80211_wake_queue - ieee80211_stop_queue - ieee80211_wake_queues - ieee80211_stop_queues - ieee80211_queue_stopped - -Frame filtering -=============== - -.. kernel-doc:: include/net/mac80211.h - :doc: Frame filtering - -.. kernel-doc:: include/net/mac80211.h - :functions: ieee80211_filter_flags - -The mac80211 workqueue -====================== - -.. kernel-doc:: include/net/mac80211.h - :doc: mac80211 workqueue - -.. kernel-doc:: include/net/mac80211.h - :functions: - ieee80211_queue_work - ieee80211_queue_delayed_work +=========================== +mac80211 subsystem (basics) +=========================== + +You should read and understand the information contained within this +part of the book while implementing a mac80211 driver. In some chapters, +advanced usage is noted, those may be skipped if this isn't needed. + +This part of the book only covers station and monitor mode +functionality, additional information required to implement the other +modes is covered in the second part of the book. + +Basic hardware handling +======================= + +TBD + +This chapter shall contain information on getting a hw struct allocated +and registered with mac80211. + +Since it is required to allocate rates/modes before registering a hw +struct, this chapter shall also contain information on setting up the +rate/mode structs. + +Additionally, some discussion about the callbacks and the general +programming model should be in here, including the definition of +ieee80211_ops which will be referred to a lot. + +Finally, a discussion of hardware capabilities should be done with +references to other parts of the book. + +.. kernel-doc:: include/net/mac80211.h + :functions: + ieee80211_hw + ieee80211_hw_flags + SET_IEEE80211_DEV + SET_IEEE80211_PERM_ADDR + ieee80211_ops + ieee80211_alloc_hw + ieee80211_register_hw + ieee80211_unregister_hw + ieee80211_free_hw + +PHY configuration +================= + +TBD + +This chapter should describe PHY handling including start/stop callbacks +and the various structures used. + +.. kernel-doc:: include/net/mac80211.h + :functions: + ieee80211_conf + ieee80211_conf_flags + +Virtual interfaces +================== + +TBD + +This chapter should describe virtual interface basics that are relevant +to the driver (VLANs, MGMT etc are not.) It should explain the use of +the add_iface/remove_iface callbacks as well as the interface +configuration callbacks. + +Things related to AP mode should be discussed there. + +Things related to supporting multiple interfaces should be in the +appropriate chapter, a BIG FAT note should be here about this though and +the recommendation to allow only a single interface in STA mode at +first! + +.. kernel-doc:: include/net/mac80211.h + :functions: ieee80211_vif + +Receive and transmit processing +=============================== + +what should be here +------------------- + +TBD + +This should describe the receive and transmit paths in mac80211/the +drivers as well as transmit status handling. + +Frame format +------------ + +.. kernel-doc:: include/net/mac80211.h + :doc: Frame format + +Packet alignment +---------------- + +.. kernel-doc:: net/mac80211/rx.c + :doc: Packet alignment + +Calling into mac80211 from interrupts +------------------------------------- + +.. kernel-doc:: include/net/mac80211.h + :doc: Calling mac80211 from interrupts + +functions/definitions +--------------------- + +.. kernel-doc:: include/net/mac80211.h + :functions: + ieee80211_rx_status + mac80211_rx_encoding_flags + mac80211_rx_flags + mac80211_tx_info_flags + mac80211_tx_control_flags + mac80211_rate_control_flags + ieee80211_tx_rate + ieee80211_tx_info + ieee80211_tx_info_clear_status + ieee80211_rx + ieee80211_rx_ni + ieee80211_rx_irqsafe + ieee80211_tx_status_skb + ieee80211_tx_status_ni + ieee80211_tx_status_irqsafe + ieee80211_rts_get + ieee80211_rts_duration + ieee80211_ctstoself_get + ieee80211_ctstoself_duration + ieee80211_generic_frame_duration + ieee80211_wake_queue + ieee80211_stop_queue + ieee80211_wake_queues + ieee80211_stop_queues + ieee80211_queue_stopped + +Frame filtering +=============== + +.. kernel-doc:: include/net/mac80211.h + :doc: Frame filtering + +.. kernel-doc:: include/net/mac80211.h + :functions: ieee80211_filter_flags + +The mac80211 workqueue +====================== + +.. kernel-doc:: include/net/mac80211.h + :doc: mac80211 workqueue + +.. kernel-doc:: include/net/mac80211.h + :functions: + ieee80211_queue_work + ieee80211_queue_delayed_work diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/driver-model/binding.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/driver-model/binding.rst index a9e48d763..7ea1d7a41 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/driver-model/binding.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/driver-model/binding.rst @@ -1,98 +1,98 @@ -============== -Driver Binding -============== - -Driver binding is the process of associating a device with a device -driver that can control it. Bus drivers have typically handled this -because there have been bus-specific structures to represent the -devices and the drivers. With generic device and device driver -structures, most of the binding can take place using common code. - - -Bus -~~~ - -The bus type structure contains a list of all devices that are on that bus -type in the system. When device_register is called for a device, it is -inserted into the end of this list. The bus object also contains a -list of all drivers of that bus type. When driver_register is called -for a driver, it is inserted at the end of this list. These are the -two events which trigger driver binding. - - -device_register -~~~~~~~~~~~~~~~ - -When a new device is added, the bus's list of drivers is iterated over -to find one that supports it. In order to determine that, the device -ID of the device must match one of the device IDs that the driver -supports. The format and semantics for comparing IDs is bus-specific. -Instead of trying to derive a complex state machine and matching -algorithm, it is up to the bus driver to provide a callback to compare -a device against the IDs of a driver. The bus returns 1 if a match was -found; 0 otherwise. - -int match(struct device * dev, struct device_driver * drv); - -If a match is found, the device's driver field is set to the driver -and the driver's probe callback is called. This gives the driver a -chance to verify that it really does support the hardware, and that -it's in a working state. - -Device Class -~~~~~~~~~~~~ - -Upon the successful completion of probe, the device is registered with -the class to which it belongs. Device drivers belong to one and only one -class, and that is set in the driver's devclass field. -devclass_add_device is called to enumerate the device within the class -and actually register it with the class, which happens with the -class's register_dev callback. - - -Driver -~~~~~~ - -When a driver is attached to a device, the device is inserted into the -driver's list of devices. - - -sysfs -~~~~~ - -A symlink is created in the bus's 'devices' directory that points to -the device's directory in the physical hierarchy. - -A symlink is created in the driver's 'devices' directory that points -to the device's directory in the physical hierarchy. - -A directory for the device is created in the class's directory. A -symlink is created in that directory that points to the device's -physical location in the sysfs tree. - -A symlink can be created (though this isn't done yet) in the device's -physical directory to either its class directory, or the class's -top-level directory. One can also be created to point to its driver's -directory also. - - -driver_register -~~~~~~~~~~~~~~~ - -The process is almost identical for when a new driver is added. -The bus's list of devices is iterated over to find a match. Devices -that already have a driver are skipped. All the devices are iterated -over, to bind as many devices as possible to the driver. - - -Removal -~~~~~~~ - -When a device is removed, the reference count for it will eventually -go to 0. When it does, the remove callback of the driver is called. It -is removed from the driver's list of devices and the reference count -of the driver is decremented. All symlinks between the two are removed. - -When a driver is removed, the list of devices that it supports is -iterated over, and the driver's remove callback is called for each -one. The device is removed from that list and the symlinks removed. +============== +Driver Binding +============== + +Driver binding is the process of associating a device with a device +driver that can control it. Bus drivers have typically handled this +because there have been bus-specific structures to represent the +devices and the drivers. With generic device and device driver +structures, most of the binding can take place using common code. + + +Bus +~~~ + +The bus type structure contains a list of all devices that are on that bus +type in the system. When device_register is called for a device, it is +inserted into the end of this list. The bus object also contains a +list of all drivers of that bus type. When driver_register is called +for a driver, it is inserted at the end of this list. These are the +two events which trigger driver binding. + + +device_register +~~~~~~~~~~~~~~~ + +When a new device is added, the bus's list of drivers is iterated over +to find one that supports it. In order to determine that, the device +ID of the device must match one of the device IDs that the driver +supports. The format and semantics for comparing IDs is bus-specific. +Instead of trying to derive a complex state machine and matching +algorithm, it is up to the bus driver to provide a callback to compare +a device against the IDs of a driver. The bus returns 1 if a match was +found; 0 otherwise. + +int match(struct device * dev, struct device_driver * drv); + +If a match is found, the device's driver field is set to the driver +and the driver's probe callback is called. This gives the driver a +chance to verify that it really does support the hardware, and that +it's in a working state. + +Device Class +~~~~~~~~~~~~ + +Upon the successful completion of probe, the device is registered with +the class to which it belongs. Device drivers belong to one and only one +class, and that is set in the driver's devclass field. +devclass_add_device is called to enumerate the device within the class +and actually register it with the class, which happens with the +class's register_dev callback. + + +Driver +~~~~~~ + +When a driver is attached to a device, the device is inserted into the +driver's list of devices. + + +sysfs +~~~~~ + +A symlink is created in the bus's 'devices' directory that points to +the device's directory in the physical hierarchy. + +A symlink is created in the driver's 'devices' directory that points +to the device's directory in the physical hierarchy. + +A directory for the device is created in the class's directory. A +symlink is created in that directory that points to the device's +physical location in the sysfs tree. + +A symlink can be created (though this isn't done yet) in the device's +physical directory to either its class directory, or the class's +top-level directory. One can also be created to point to its driver's +directory also. + + +driver_register +~~~~~~~~~~~~~~~ + +The process is almost identical for when a new driver is added. +The bus's list of devices is iterated over to find a match. Devices +that already have a driver are skipped. All the devices are iterated +over, to bind as many devices as possible to the driver. + + +Removal +~~~~~~~ + +When a device is removed, the reference count for it will eventually +go to 0. When it does, the remove callback of the driver is called. It +is removed from the driver's list of devices and the reference count +of the driver is decremented. All symlinks between the two are removed. + +When a driver is removed, the list of devices that it supports is +iterated over, and the driver's remove callback is called for each +one. The device is removed from that list and the symlinks removed. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/driver-model/bus.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/driver-model/bus.rst index d6f2acd4e..9709ab62a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/driver-model/bus.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/driver-model/bus.rst @@ -1,146 +1,146 @@ -========= -Bus Types -========= - -Definition -~~~~~~~~~~ -See the kerneldoc for the struct bus_type. - -int bus_register(struct bus_type * bus); - - -Declaration -~~~~~~~~~~~ - -Each bus type in the kernel (PCI, USB, etc) should declare one static -object of this type. They must initialize the name field, and may -optionally initialize the match callback:: - - struct bus_type pci_bus_type = { - .name = "pci", - .match = pci_bus_match, - }; - -The structure should be exported to drivers in a header file: - -extern struct bus_type pci_bus_type; - - -Registration -~~~~~~~~~~~~ - -When a bus driver is initialized, it calls bus_register. This -initializes the rest of the fields in the bus object and inserts it -into a global list of bus types. Once the bus object is registered, -the fields in it are usable by the bus driver. - - -Callbacks -~~~~~~~~~ - -match(): Attaching Drivers to Devices -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -The format of device ID structures and the semantics for comparing -them are inherently bus-specific. Drivers typically declare an array -of device IDs of devices they support that reside in a bus-specific -driver structure. - -The purpose of the match callback is to give the bus an opportunity to -determine if a particular driver supports a particular device by -comparing the device IDs the driver supports with the device ID of a -particular device, without sacrificing bus-specific functionality or -type-safety. - -When a driver is registered with the bus, the bus's list of devices is -iterated over, and the match callback is called for each device that -does not have a driver associated with it. - - - -Device and Driver Lists -~~~~~~~~~~~~~~~~~~~~~~~ - -The lists of devices and drivers are intended to replace the local -lists that many buses keep. They are lists of struct devices and -struct device_drivers, respectively. Bus drivers are free to use the -lists as they please, but conversion to the bus-specific type may be -necessary. - -The LDM core provides helper functions for iterating over each list:: - - int bus_for_each_dev(struct bus_type * bus, struct device * start, - void * data, - int (*fn)(struct device *, void *)); - - int bus_for_each_drv(struct bus_type * bus, struct device_driver * start, - void * data, int (*fn)(struct device_driver *, void *)); - -These helpers iterate over the respective list, and call the callback -for each device or driver in the list. All list accesses are -synchronized by taking the bus's lock (read currently). The reference -count on each object in the list is incremented before the callback is -called; it is decremented after the next object has been obtained. The -lock is not held when calling the callback. - - -sysfs -~~~~~~~~ -There is a top-level directory named 'bus'. - -Each bus gets a directory in the bus directory, along with two default -directories:: - - /sys/bus/pci/ - |-- devices - `-- drivers - -Drivers registered with the bus get a directory in the bus's drivers -directory:: - - /sys/bus/pci/ - |-- devices - `-- drivers - |-- Intel ICH - |-- Intel ICH Joystick - |-- agpgart - `-- e100 - -Each device that is discovered on a bus of that type gets a symlink in -the bus's devices directory to the device's directory in the physical -hierarchy:: - - /sys/bus/pci/ - |-- devices - | |-- 00:00.0 -> ../../../root/pci0/00:00.0 - | |-- 00:01.0 -> ../../../root/pci0/00:01.0 - | `-- 00:02.0 -> ../../../root/pci0/00:02.0 - `-- drivers - - -Exporting Attributes -~~~~~~~~~~~~~~~~~~~~ - -:: - - struct bus_attribute { - struct attribute attr; - ssize_t (*show)(const struct bus_type *, char * buf); - ssize_t (*store)(const struct bus_type *, const char * buf, size_t count); - }; - -Bus drivers can export attributes using the BUS_ATTR_RW macro that works -similarly to the DEVICE_ATTR_RW macro for devices. For example, a -definition like this:: - - static BUS_ATTR_RW(debug); - -is equivalent to declaring:: - - static bus_attribute bus_attr_debug; - -This can then be used to add and remove the attribute from the bus's -sysfs directory using:: - - int bus_create_file(struct bus_type *, struct bus_attribute *); - void bus_remove_file(struct bus_type *, struct bus_attribute *); +========= +Bus Types +========= + +Definition +~~~~~~~~~~ +See the kerneldoc for the struct bus_type. + +int bus_register(struct bus_type * bus); + + +Declaration +~~~~~~~~~~~ + +Each bus type in the kernel (PCI, USB, etc) should declare one static +object of this type. They must initialize the name field, and may +optionally initialize the match callback:: + + struct bus_type pci_bus_type = { + .name = "pci", + .match = pci_bus_match, + }; + +The structure should be exported to drivers in a header file: + +extern struct bus_type pci_bus_type; + + +Registration +~~~~~~~~~~~~ + +When a bus driver is initialized, it calls bus_register. This +initializes the rest of the fields in the bus object and inserts it +into a global list of bus types. Once the bus object is registered, +the fields in it are usable by the bus driver. + + +Callbacks +~~~~~~~~~ + +match(): Attaching Drivers to Devices +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The format of device ID structures and the semantics for comparing +them are inherently bus-specific. Drivers typically declare an array +of device IDs of devices they support that reside in a bus-specific +driver structure. + +The purpose of the match callback is to give the bus an opportunity to +determine if a particular driver supports a particular device by +comparing the device IDs the driver supports with the device ID of a +particular device, without sacrificing bus-specific functionality or +type-safety. + +When a driver is registered with the bus, the bus's list of devices is +iterated over, and the match callback is called for each device that +does not have a driver associated with it. + + + +Device and Driver Lists +~~~~~~~~~~~~~~~~~~~~~~~ + +The lists of devices and drivers are intended to replace the local +lists that many buses keep. They are lists of struct devices and +struct device_drivers, respectively. Bus drivers are free to use the +lists as they please, but conversion to the bus-specific type may be +necessary. + +The LDM core provides helper functions for iterating over each list:: + + int bus_for_each_dev(struct bus_type * bus, struct device * start, + void * data, + int (*fn)(struct device *, void *)); + + int bus_for_each_drv(struct bus_type * bus, struct device_driver * start, + void * data, int (*fn)(struct device_driver *, void *)); + +These helpers iterate over the respective list, and call the callback +for each device or driver in the list. All list accesses are +synchronized by taking the bus's lock (read currently). The reference +count on each object in the list is incremented before the callback is +called; it is decremented after the next object has been obtained. The +lock is not held when calling the callback. + + +sysfs +~~~~~~~~ +There is a top-level directory named 'bus'. + +Each bus gets a directory in the bus directory, along with two default +directories:: + + /sys/bus/pci/ + |-- devices + `-- drivers + +Drivers registered with the bus get a directory in the bus's drivers +directory:: + + /sys/bus/pci/ + |-- devices + `-- drivers + |-- Intel ICH + |-- Intel ICH Joystick + |-- agpgart + `-- e100 + +Each device that is discovered on a bus of that type gets a symlink in +the bus's devices directory to the device's directory in the physical +hierarchy:: + + /sys/bus/pci/ + |-- devices + | |-- 00:00.0 -> ../../../root/pci0/00:00.0 + | |-- 00:01.0 -> ../../../root/pci0/00:01.0 + | `-- 00:02.0 -> ../../../root/pci0/00:02.0 + `-- drivers + + +Exporting Attributes +~~~~~~~~~~~~~~~~~~~~ + +:: + + struct bus_attribute { + struct attribute attr; + ssize_t (*show)(const struct bus_type *, char * buf); + ssize_t (*store)(const struct bus_type *, const char * buf, size_t count); + }; + +Bus drivers can export attributes using the BUS_ATTR_RW macro that works +similarly to the DEVICE_ATTR_RW macro for devices. For example, a +definition like this:: + + static BUS_ATTR_RW(debug); + +is equivalent to declaring:: + + static bus_attribute bus_attr_debug; + +This can then be used to add and remove the attribute from the bus's +sysfs directory using:: + + int bus_create_file(struct bus_type *, struct bus_attribute *); + void bus_remove_file(struct bus_type *, struct bus_attribute *); diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/driver-model/device.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/driver-model/device.rst index 5d5dc71aa..0833be568 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/driver-model/device.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/driver-model/device.rst @@ -1,120 +1,120 @@ -========================== -The Basic Device Structure -========================== - -See the kerneldoc for the struct device. - - -Programming Interface -~~~~~~~~~~~~~~~~~~~~~ -The bus driver that discovers the device uses this to register the -device with the core:: - - int device_register(struct device * dev); - -The bus should initialize the following fields: - - - parent - - name - - bus_id - - bus - -A device is removed from the core when its reference count goes to -0. The reference count can be adjusted using:: - - struct device * get_device(struct device * dev); - void put_device(struct device * dev); - -get_device() will return a pointer to the struct device passed to it -if the reference is not already 0 (if it's in the process of being -removed already). - -A driver can access the lock in the device structure using:: - - void lock_device(struct device * dev); - void unlock_device(struct device * dev); - - -Attributes -~~~~~~~~~~ - -:: - - struct device_attribute { - struct attribute attr; - ssize_t (*show)(struct device *dev, struct device_attribute *attr, - char *buf); - ssize_t (*store)(struct device *dev, struct device_attribute *attr, - const char *buf, size_t count); - }; - -Attributes of devices can be exported by a device driver through sysfs. - -Please see Documentation/filesystems/sysfs.rst for more information -on how sysfs works. - -As explained in Documentation/core-api/kobject.rst, device attributes must be -created before the KOBJ_ADD uevent is generated. The only way to realize -that is by defining an attribute group. - -Attributes are declared using a macro called DEVICE_ATTR:: - - #define DEVICE_ATTR(name,mode,show,store) - -Example::: - - static DEVICE_ATTR(type, 0444, type_show, NULL); - static DEVICE_ATTR(power, 0644, power_show, power_store); - -Helper macros are available for common values of mode, so the above examples -can be simplified to::: - - static DEVICE_ATTR_RO(type); - static DEVICE_ATTR_RW(power); - -This declares two structures of type struct device_attribute with respective -names 'dev_attr_type' and 'dev_attr_power'. These two attributes can be -organized as follows into a group:: - - static struct attribute *dev_attrs[] = { - &dev_attr_type.attr, - &dev_attr_power.attr, - NULL, - }; - - static struct attribute_group dev_group = { - .attrs = dev_attrs, - }; - - static const struct attribute_group *dev_groups[] = { - &dev_group, - NULL, - }; - -A helper macro is available for the common case of a single group, so the -above two structures can be declared using::: - - ATTRIBUTE_GROUPS(dev); - -This array of groups can then be associated with a device by setting the -group pointer in struct device before device_register() is invoked:: - - dev->groups = dev_groups; - device_register(dev); - -The device_register() function will use the 'groups' pointer to create the -device attributes and the device_unregister() function will use this pointer -to remove the device attributes. - -Word of warning: While the kernel allows device_create_file() and -device_remove_file() to be called on a device at any time, userspace has -strict expectations on when attributes get created. When a new device is -registered in the kernel, a uevent is generated to notify userspace (like -udev) that a new device is available. If attributes are added after the -device is registered, then userspace won't get notified and userspace will -not know about the new attributes. - -This is important for device driver that need to publish additional -attributes for a device at driver probe time. If the device driver simply -calls device_create_file() on the device structure passed to it, then -userspace will never be notified of the new attributes. +========================== +The Basic Device Structure +========================== + +See the kerneldoc for the struct device. + + +Programming Interface +~~~~~~~~~~~~~~~~~~~~~ +The bus driver that discovers the device uses this to register the +device with the core:: + + int device_register(struct device * dev); + +The bus should initialize the following fields: + + - parent + - name + - bus_id + - bus + +A device is removed from the core when its reference count goes to +0. The reference count can be adjusted using:: + + struct device * get_device(struct device * dev); + void put_device(struct device * dev); + +get_device() will return a pointer to the struct device passed to it +if the reference is not already 0 (if it's in the process of being +removed already). + +A driver can access the lock in the device structure using:: + + void lock_device(struct device * dev); + void unlock_device(struct device * dev); + + +Attributes +~~~~~~~~~~ + +:: + + struct device_attribute { + struct attribute attr; + ssize_t (*show)(struct device *dev, struct device_attribute *attr, + char *buf); + ssize_t (*store)(struct device *dev, struct device_attribute *attr, + const char *buf, size_t count); + }; + +Attributes of devices can be exported by a device driver through sysfs. + +Please see Documentation/filesystems/sysfs.rst for more information +on how sysfs works. + +As explained in Documentation/core-api/kobject.rst, device attributes must be +created before the KOBJ_ADD uevent is generated. The only way to realize +that is by defining an attribute group. + +Attributes are declared using a macro called DEVICE_ATTR:: + + #define DEVICE_ATTR(name,mode,show,store) + +Example::: + + static DEVICE_ATTR(type, 0444, type_show, NULL); + static DEVICE_ATTR(power, 0644, power_show, power_store); + +Helper macros are available for common values of mode, so the above examples +can be simplified to::: + + static DEVICE_ATTR_RO(type); + static DEVICE_ATTR_RW(power); + +This declares two structures of type struct device_attribute with respective +names 'dev_attr_type' and 'dev_attr_power'. These two attributes can be +organized as follows into a group:: + + static struct attribute *dev_attrs[] = { + &dev_attr_type.attr, + &dev_attr_power.attr, + NULL, + }; + + static struct attribute_group dev_group = { + .attrs = dev_attrs, + }; + + static const struct attribute_group *dev_groups[] = { + &dev_group, + NULL, + }; + +A helper macro is available for the common case of a single group, so the +above two structures can be declared using::: + + ATTRIBUTE_GROUPS(dev); + +This array of groups can then be associated with a device by setting the +group pointer in struct device before device_register() is invoked:: + + dev->groups = dev_groups; + device_register(dev); + +The device_register() function will use the 'groups' pointer to create the +device attributes and the device_unregister() function will use this pointer +to remove the device attributes. + +Word of warning: While the kernel allows device_create_file() and +device_remove_file() to be called on a device at any time, userspace has +strict expectations on when attributes get created. When a new device is +registered in the kernel, a uevent is generated to notify userspace (like +udev) that a new device is available. If attributes are added after the +device is registered, then userspace won't get notified and userspace will +not know about the new attributes. + +This is important for device driver that need to publish additional +attributes for a device at driver probe time. If the device driver simply +calls device_create_file() on the device structure passed to it, then +userspace will never be notified of the new attributes. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/firmware/fw_upload.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/firmware/fw_upload.rst index 875bccce7..edf1d0c5e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/firmware/fw_upload.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/firmware/fw_upload.rst @@ -1,127 +1,127 @@ -.. SPDX-License-Identifier: GPL-2.0 - -=================== -Firmware Upload API -=================== - -A device driver that registers with the firmware loader will expose -persistent sysfs nodes to enable users to initiate firmware updates for -that device. It is the responsibility of the device driver and/or the -device itself to perform any validation on the data received. Firmware -upload uses the same *loading* and *data* sysfs files described in the -documentation for firmware fallback. It also adds additional sysfs files -to provide status on the transfer of the firmware image to the device. - -Register for firmware upload -============================ - -A device driver registers for firmware upload by calling -firmware_upload_register(). Among the parameter list is a name to -identify the device under /sys/class/firmware. A user may initiate a -firmware upload by echoing a 1 to the *loading* sysfs file for the target -device. Next, the user writes the firmware image to the *data* sysfs -file. After writing the firmware data, the user echos 0 to the *loading* -sysfs file to signal completion. Echoing 0 to *loading* also triggers the -transfer of the firmware to the lower-lever device driver in the context -of a kernel worker thread. - -To use the firmware upload API, write a driver that implements a set of -ops. The probe function calls firmware_upload_register() and the remove -function calls firmware_upload_unregister() such as:: - - static const struct fw_upload_ops m10bmc_ops = { - .prepare = m10bmc_sec_prepare, - .write = m10bmc_sec_write, - .poll_complete = m10bmc_sec_poll_complete, - .cancel = m10bmc_sec_cancel, - .cleanup = m10bmc_sec_cleanup, - }; - - static int m10bmc_sec_probe(struct platform_device *pdev) - { - const char *fw_name, *truncate; - struct m10bmc_sec *sec; - struct fw_upload *fwl; - unsigned int len; - - sec = devm_kzalloc(&pdev->dev, sizeof(*sec), GFP_KERNEL); - if (!sec) - return -ENOMEM; - - sec->dev = &pdev->dev; - sec->m10bmc = dev_get_drvdata(pdev->dev.parent); - dev_set_drvdata(&pdev->dev, sec); - - fw_name = dev_name(sec->dev); - truncate = strstr(fw_name, ".auto"); - len = (truncate) ? truncate - fw_name : strlen(fw_name); - sec->fw_name = kmemdup_nul(fw_name, len, GFP_KERNEL); - - fwl = firmware_upload_register(THIS_MODULE, sec->dev, sec->fw_name, - &m10bmc_ops, sec); - if (IS_ERR(fwl)) { - dev_err(sec->dev, "Firmware Upload driver failed to start\n"); - kfree(sec->fw_name); - return PTR_ERR(fwl); - } - - sec->fwl = fwl; - return 0; - } - - static int m10bmc_sec_remove(struct platform_device *pdev) - { - struct m10bmc_sec *sec = dev_get_drvdata(&pdev->dev); - - firmware_upload_unregister(sec->fwl); - kfree(sec->fw_name); - return 0; - } - -firmware_upload_register ------------------------- -.. kernel-doc:: drivers/base/firmware_loader/sysfs_upload.c - :identifiers: firmware_upload_register - -firmware_upload_unregister --------------------------- -.. kernel-doc:: drivers/base/firmware_loader/sysfs_upload.c - :identifiers: firmware_upload_unregister - -Firmware Upload Ops -------------------- -.. kernel-doc:: include/linux/firmware.h - :identifiers: fw_upload_ops - -Firmware Upload Progress Codes ------------------------------- -The following progress codes are used internally by the firmware loader. -Corresponding strings are reported through the status sysfs node that -is described below and are documented in the ABI documentation. - -.. kernel-doc:: drivers/base/firmware_loader/sysfs_upload.h - :identifiers: fw_upload_prog - -Firmware Upload Error Codes ---------------------------- -The following error codes may be returned by the driver ops in case of -failure: - -.. kernel-doc:: include/linux/firmware.h - :identifiers: fw_upload_err - -Sysfs Attributes -================ - -In addition to the *loading* and *data* sysfs files, there are additional -sysfs files to monitor the status of the data transfer to the target -device and to determine the final pass/fail status of the transfer. -Depending on the device and the size of the firmware image, a firmware -update could take milliseconds or minutes. - -The additional sysfs files are: - -* status - provides an indication of the progress of a firmware update -* error - provides error information for a failed firmware update -* remaining_size - tracks the data transfer portion of an update -* cancel - echo 1 to this file to cancel the update +.. SPDX-License-Identifier: GPL-2.0 + +=================== +Firmware Upload API +=================== + +A device driver that registers with the firmware loader will expose +persistent sysfs nodes to enable users to initiate firmware updates for +that device. It is the responsibility of the device driver and/or the +device itself to perform any validation on the data received. Firmware +upload uses the same *loading* and *data* sysfs files described in the +documentation for firmware fallback. It also adds additional sysfs files +to provide status on the transfer of the firmware image to the device. + +Register for firmware upload +============================ + +A device driver registers for firmware upload by calling +firmware_upload_register(). Among the parameter list is a name to +identify the device under /sys/class/firmware. A user may initiate a +firmware upload by echoing a 1 to the *loading* sysfs file for the target +device. Next, the user writes the firmware image to the *data* sysfs +file. After writing the firmware data, the user echos 0 to the *loading* +sysfs file to signal completion. Echoing 0 to *loading* also triggers the +transfer of the firmware to the lower-lever device driver in the context +of a kernel worker thread. + +To use the firmware upload API, write a driver that implements a set of +ops. The probe function calls firmware_upload_register() and the remove +function calls firmware_upload_unregister() such as:: + + static const struct fw_upload_ops m10bmc_ops = { + .prepare = m10bmc_sec_prepare, + .write = m10bmc_sec_write, + .poll_complete = m10bmc_sec_poll_complete, + .cancel = m10bmc_sec_cancel, + .cleanup = m10bmc_sec_cleanup, + }; + + static int m10bmc_sec_probe(struct platform_device *pdev) + { + const char *fw_name, *truncate; + struct m10bmc_sec *sec; + struct fw_upload *fwl; + unsigned int len; + + sec = devm_kzalloc(&pdev->dev, sizeof(*sec), GFP_KERNEL); + if (!sec) + return -ENOMEM; + + sec->dev = &pdev->dev; + sec->m10bmc = dev_get_drvdata(pdev->dev.parent); + dev_set_drvdata(&pdev->dev, sec); + + fw_name = dev_name(sec->dev); + truncate = strstr(fw_name, ".auto"); + len = (truncate) ? truncate - fw_name : strlen(fw_name); + sec->fw_name = kmemdup_nul(fw_name, len, GFP_KERNEL); + + fwl = firmware_upload_register(THIS_MODULE, sec->dev, sec->fw_name, + &m10bmc_ops, sec); + if (IS_ERR(fwl)) { + dev_err(sec->dev, "Firmware Upload driver failed to start\n"); + kfree(sec->fw_name); + return PTR_ERR(fwl); + } + + sec->fwl = fwl; + return 0; + } + + static int m10bmc_sec_remove(struct platform_device *pdev) + { + struct m10bmc_sec *sec = dev_get_drvdata(&pdev->dev); + + firmware_upload_unregister(sec->fwl); + kfree(sec->fw_name); + return 0; + } + +firmware_upload_register +------------------------ +.. kernel-doc:: drivers/base/firmware_loader/sysfs_upload.c + :identifiers: firmware_upload_register + +firmware_upload_unregister +-------------------------- +.. kernel-doc:: drivers/base/firmware_loader/sysfs_upload.c + :identifiers: firmware_upload_unregister + +Firmware Upload Ops +------------------- +.. kernel-doc:: include/linux/firmware.h + :identifiers: fw_upload_ops + +Firmware Upload Progress Codes +------------------------------ +The following progress codes are used internally by the firmware loader. +Corresponding strings are reported through the status sysfs node that +is described below and are documented in the ABI documentation. + +.. kernel-doc:: drivers/base/firmware_loader/sysfs_upload.h + :identifiers: fw_upload_prog + +Firmware Upload Error Codes +--------------------------- +The following error codes may be returned by the driver ops in case of +failure: + +.. kernel-doc:: include/linux/firmware.h + :identifiers: fw_upload_err + +Sysfs Attributes +================ + +In addition to the *loading* and *data* sysfs files, there are additional +sysfs files to monitor the status of the data transfer to the target +device and to determine the final pass/fail status of the transfer. +Depending on the device and the size of the firmware image, a firmware +update could take milliseconds or minutes. + +The additional sysfs files are: + +* status - provides an indication of the progress of a firmware update +* error - provides error information for a failed firmware update +* remaining_size - tracks the data transfer portion of an update +* cancel - echo 1 to this file to cancel the update diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/fpga/fpga-region.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/fpga/fpga-region.rst index 2d3905564..2d03b5fb7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/fpga/fpga-region.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/fpga/fpga-region.rst @@ -1,112 +1,112 @@ -FPGA Region -=========== - -Overview --------- - -This document is meant to be a brief overview of the FPGA region API usage. A -more conceptual look at regions can be found in the Device Tree binding -document [#f1]_. - -For the purposes of this API document, let's just say that a region associates -an FPGA Manager and a bridge (or bridges) with a reprogrammable region of an -FPGA or the whole FPGA. The API provides a way to register a region and to -program a region. - -Currently the only layer above fpga-region.c in the kernel is the Device Tree -support (of-fpga-region.c) described in [#f1]_. The DT support layer uses regions -to program the FPGA and then DT to handle enumeration. The common region code -is intended to be used by other schemes that have other ways of accomplishing -enumeration after programming. - -An fpga-region can be set up to know the following things: - - * which FPGA manager to use to do the programming - - * which bridges to disable before programming and enable afterwards. - -Additional info needed to program the FPGA image is passed in the struct -fpga_image_info including: - - * pointers to the image as either a scatter-gather buffer, a contiguous - buffer, or the name of firmware file - - * flags indicating specifics such as whether the image is for partial - reconfiguration. - -How to add a new FPGA region ----------------------------- - -An example of usage can be seen in the probe function of [#f2]_. - -.. [#f1] ../devicetree/bindings/fpga/fpga-region.txt -.. [#f2] ../../drivers/fpga/of-fpga-region.c - -API to add a new FPGA region ----------------------------- - -* struct fpga_region - The FPGA region struct -* struct fpga_region_info - Parameter structure for __fpga_region_register_full() -* __fpga_region_register_full() - Create and register an FPGA region using the - fpga_region_info structure to provide the full flexibility of options -* __fpga_region_register() - Create and register an FPGA region using standard - arguments -* fpga_region_unregister() - Unregister an FPGA region - -Helper macros ``fpga_region_register()`` and ``fpga_region_register_full()`` -automatically set the module that registers the FPGA region as the owner. - -The FPGA region's probe function will need to get a reference to the FPGA -Manager it will be using to do the programming. This usually would happen -during the region's probe function. - -* fpga_mgr_get() - Get a reference to an FPGA manager, raise ref count -* of_fpga_mgr_get() - Get a reference to an FPGA manager, raise ref count, - given a device node. -* fpga_mgr_put() - Put an FPGA manager - -The FPGA region will need to specify which bridges to control while programming -the FPGA. The region driver can build a list of bridges during probe time -(:c:expr:`fpga_region->bridge_list`) or it can have a function that creates -the list of bridges to program just before programming -(:c:expr:`fpga_region->get_bridges`). The FPGA bridge framework supplies the -following APIs to handle building or tearing down that list. - -* fpga_bridge_get_to_list() - Get a ref of an FPGA bridge, add it to a - list -* of_fpga_bridge_get_to_list() - Get a ref of an FPGA bridge, add it to a - list, given a device node -* fpga_bridges_put() - Given a list of bridges, put them - -.. kernel-doc:: include/linux/fpga/fpga-region.h - :functions: fpga_region - -.. kernel-doc:: include/linux/fpga/fpga-region.h - :functions: fpga_region_info - -.. kernel-doc:: drivers/fpga/fpga-region.c - :functions: __fpga_region_register_full - -.. kernel-doc:: drivers/fpga/fpga-region.c - :functions: __fpga_region_register - -.. kernel-doc:: drivers/fpga/fpga-region.c - :functions: fpga_region_unregister - -.. kernel-doc:: drivers/fpga/fpga-mgr.c - :functions: fpga_mgr_get - -.. kernel-doc:: drivers/fpga/fpga-mgr.c - :functions: of_fpga_mgr_get - -.. kernel-doc:: drivers/fpga/fpga-mgr.c - :functions: fpga_mgr_put - -.. kernel-doc:: drivers/fpga/fpga-bridge.c - :functions: fpga_bridge_get_to_list - -.. kernel-doc:: drivers/fpga/fpga-bridge.c - :functions: of_fpga_bridge_get_to_list - -.. kernel-doc:: drivers/fpga/fpga-bridge.c - :functions: fpga_bridges_put +FPGA Region +=========== + +Overview +-------- + +This document is meant to be a brief overview of the FPGA region API usage. A +more conceptual look at regions can be found in the Device Tree binding +document [#f1]_. + +For the purposes of this API document, let's just say that a region associates +an FPGA Manager and a bridge (or bridges) with a reprogrammable region of an +FPGA or the whole FPGA. The API provides a way to register a region and to +program a region. + +Currently the only layer above fpga-region.c in the kernel is the Device Tree +support (of-fpga-region.c) described in [#f1]_. The DT support layer uses regions +to program the FPGA and then DT to handle enumeration. The common region code +is intended to be used by other schemes that have other ways of accomplishing +enumeration after programming. + +An fpga-region can be set up to know the following things: + + * which FPGA manager to use to do the programming + + * which bridges to disable before programming and enable afterwards. + +Additional info needed to program the FPGA image is passed in the struct +fpga_image_info including: + + * pointers to the image as either a scatter-gather buffer, a contiguous + buffer, or the name of firmware file + + * flags indicating specifics such as whether the image is for partial + reconfiguration. + +How to add a new FPGA region +---------------------------- + +An example of usage can be seen in the probe function of [#f2]_. + +.. [#f1] ../devicetree/bindings/fpga/fpga-region.txt +.. [#f2] ../../drivers/fpga/of-fpga-region.c + +API to add a new FPGA region +---------------------------- + +* struct fpga_region - The FPGA region struct +* struct fpga_region_info - Parameter structure for __fpga_region_register_full() +* __fpga_region_register_full() - Create and register an FPGA region using the + fpga_region_info structure to provide the full flexibility of options +* __fpga_region_register() - Create and register an FPGA region using standard + arguments +* fpga_region_unregister() - Unregister an FPGA region + +Helper macros ``fpga_region_register()`` and ``fpga_region_register_full()`` +automatically set the module that registers the FPGA region as the owner. + +The FPGA region's probe function will need to get a reference to the FPGA +Manager it will be using to do the programming. This usually would happen +during the region's probe function. + +* fpga_mgr_get() - Get a reference to an FPGA manager, raise ref count +* of_fpga_mgr_get() - Get a reference to an FPGA manager, raise ref count, + given a device node. +* fpga_mgr_put() - Put an FPGA manager + +The FPGA region will need to specify which bridges to control while programming +the FPGA. The region driver can build a list of bridges during probe time +(:c:expr:`fpga_region->bridge_list`) or it can have a function that creates +the list of bridges to program just before programming +(:c:expr:`fpga_region->get_bridges`). The FPGA bridge framework supplies the +following APIs to handle building or tearing down that list. + +* fpga_bridge_get_to_list() - Get a ref of an FPGA bridge, add it to a + list +* of_fpga_bridge_get_to_list() - Get a ref of an FPGA bridge, add it to a + list, given a device node +* fpga_bridges_put() - Given a list of bridges, put them + +.. kernel-doc:: include/linux/fpga/fpga-region.h + :functions: fpga_region + +.. kernel-doc:: include/linux/fpga/fpga-region.h + :functions: fpga_region_info + +.. kernel-doc:: drivers/fpga/fpga-region.c + :functions: __fpga_region_register_full + +.. kernel-doc:: drivers/fpga/fpga-region.c + :functions: __fpga_region_register + +.. kernel-doc:: drivers/fpga/fpga-region.c + :functions: fpga_region_unregister + +.. kernel-doc:: drivers/fpga/fpga-mgr.c + :functions: fpga_mgr_get + +.. kernel-doc:: drivers/fpga/fpga-mgr.c + :functions: of_fpga_mgr_get + +.. kernel-doc:: drivers/fpga/fpga-mgr.c + :functions: fpga_mgr_put + +.. kernel-doc:: drivers/fpga/fpga-bridge.c + :functions: fpga_bridge_get_to_list + +.. kernel-doc:: drivers/fpga/fpga-bridge.c + :functions: of_fpga_bridge_get_to_list + +.. kernel-doc:: drivers/fpga/fpga-bridge.c + :functions: fpga_bridges_put diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/gpio/bt8xxgpio.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/gpio/bt8xxgpio.rst index 062cce192..d7e75f123 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/gpio/bt8xxgpio.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/gpio/bt8xxgpio.rst @@ -1,62 +1,62 @@ -=================================================================== -A driver for a selfmade cheap BT8xx based PCI GPIO-card (bt8xxgpio) -=================================================================== - -For advanced documentation, see https://bues.ch/cms/unmaintained/btgpio.html - -A generic digital 24-port PCI GPIO card can be built out of an ordinary -Brooktree bt848, bt849, bt878 or bt879 based analog TV tuner card. The -Brooktree chip is used in old analog Hauppauge WinTV PCI cards. You can easily -find them used for low prices on the net. - -The bt8xx chip does have 24 digital GPIO ports. -These ports are accessible via 24 pins on the SMD chip package. - - -How to physically access the GPIO pins -====================================== - -The are several ways to access these pins. One might unsolder the whole chip -and put it on a custom PCI board, or one might only unsolder each individual -GPIO pin and solder that to some tiny wire. As the chip package really is tiny -there are some advanced soldering skills needed in any case. - -The physical pinouts are drawn in the following ASCII art. -The GPIO pins are marked with G00-G23:: - - G G G G G G G G G G G G G G G G G G - 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 - | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - --------------------------------------------------------------------------- - --| ^ ^ |-- - --| pin 86 pin 67 |-- - --| |-- - --| pin 61 > |-- G18 - --| |-- G19 - --| |-- G20 - --| |-- G21 - --| |-- G22 - --| pin 56 > |-- G23 - --| |-- - --| Brooktree 878/879 |-- - --| |-- - --| |-- - --| |-- - --| |-- - --| |-- - --| |-- - --| |-- - --| |-- - --| |-- - --| |-- - --| |-- - --| |-- - --| |-- - --| O |-- - --| |-- - --------------------------------------------------------------------------- - | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - ^ - This is pin 1 - +=================================================================== +A driver for a selfmade cheap BT8xx based PCI GPIO-card (bt8xxgpio) +=================================================================== + +For advanced documentation, see https://bues.ch/cms/unmaintained/btgpio.html + +A generic digital 24-port PCI GPIO card can be built out of an ordinary +Brooktree bt848, bt849, bt878 or bt879 based analog TV tuner card. The +Brooktree chip is used in old analog Hauppauge WinTV PCI cards. You can easily +find them used for low prices on the net. + +The bt8xx chip does have 24 digital GPIO ports. +These ports are accessible via 24 pins on the SMD chip package. + + +How to physically access the GPIO pins +====================================== + +The are several ways to access these pins. One might unsolder the whole chip +and put it on a custom PCI board, or one might only unsolder each individual +GPIO pin and solder that to some tiny wire. As the chip package really is tiny +there are some advanced soldering skills needed in any case. + +The physical pinouts are drawn in the following ASCII art. +The GPIO pins are marked with G00-G23:: + + G G G G G G G G G G G G G G G G G G + 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 + | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + --------------------------------------------------------------------------- + --| ^ ^ |-- + --| pin 86 pin 67 |-- + --| |-- + --| pin 61 > |-- G18 + --| |-- G19 + --| |-- G20 + --| |-- G21 + --| |-- G22 + --| pin 56 > |-- G23 + --| |-- + --| Brooktree 878/879 |-- + --| |-- + --| |-- + --| |-- + --| |-- + --| |-- + --| |-- + --| |-- + --| |-- + --| |-- + --| |-- + --| |-- + --| |-- + --| |-- + --| O |-- + --| |-- + --------------------------------------------------------------------------- + | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + ^ + This is pin 1 + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/ipmb.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/ipmb.rst index d8473cde9..209c49e05 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/ipmb.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/ipmb.rst @@ -1,109 +1,109 @@ -============================== -IPMB Driver for a Satellite MC -============================== - -The Intelligent Platform Management Bus or IPMB, is an -I2C bus that provides a standardized interconnection between -different boards within a chassis. This interconnection is -between the baseboard management (BMC) and chassis electronics. -IPMB is also associated with the messaging protocol through the -IPMB bus. - -The devices using the IPMB are usually management -controllers that perform management functions such as servicing -the front panel interface, monitoring the baseboard, -hot-swapping disk drivers in the system chassis, etc... - -When an IPMB is implemented in the system, the BMC serves as -a controller to give system software access to the IPMB. The BMC -sends IPMI requests to a device (usually a Satellite Management -Controller or Satellite MC) via IPMB and the device -sends a response back to the BMC. - -For more information on IPMB and the format of an IPMB message, -refer to the IPMB and IPMI specifications. - -IPMB driver for Satellite MC ----------------------------- - -ipmb-dev-int - This is the driver needed on a Satellite MC to -receive IPMB messages from a BMC and send a response back. -This driver works with the I2C driver and a userspace -program such as OpenIPMI: - -1) It is an I2C slave backend driver. So, it defines a callback - function to set the Satellite MC as an I2C slave. - This callback function handles the received IPMI requests. - -2) It defines the read and write functions to enable a user - space program (such as OpenIPMI) to communicate with the kernel. - - -Load the IPMB driver --------------------- - -The driver needs to be loaded at boot time or manually first. -First, make sure you have the following in your config file: -CONFIG_IPMB_DEVICE_INTERFACE=y - -1) If you want the driver to be loaded at boot time: - -a) Add this entry to your ACPI table, under the appropriate SMBus:: - - Device (SMB0) // Example SMBus host controller - { - Name (_HID, "") // Vendor-Specific HID - Name (_UID, 0) // Unique ID of particular host controller - : - : - Device (IPMB) - { - Name (_HID, "IPMB0001") // IPMB device interface - Name (_UID, 0) // Unique device identifier - } - } - -b) Example for device tree:: - - &i2c2 { - status = "okay"; - - ipmb@10 { - compatible = "ipmb-dev"; - reg = <0x10>; - i2c-protocol; - }; - }; - -If xmit of data to be done using raw i2c block vs smbus -then "i2c-protocol" needs to be defined as above. - -2) Manually from Linux:: - - modprobe ipmb-dev-int - - -Instantiate the device ----------------------- - -After loading the driver, you can instantiate the device as -described in 'Documentation/i2c/instantiating-devices.rst'. -If you have multiple BMCs, each connected to your Satellite MC via -a different I2C bus, you can instantiate a device for each of -those BMCs. - -The name of the instantiated device contains the I2C bus number -associated with it as follows:: - - BMC1 ------ IPMB/I2C bus 1 ---------| /dev/ipmb-1 - Satellite MC - BMC1 ------ IPMB/I2C bus 2 ---------| /dev/ipmb-2 - -For instance, you can instantiate the ipmb-dev-int device from -user space at the 7 bit address 0x10 on bus 2:: - - # echo ipmb-dev 0x1010 > /sys/bus/i2c/devices/i2c-2/new_device - -This will create the device file /dev/ipmb-2, which can be accessed -by the user space program. The device needs to be instantiated -before running the user space program. +============================== +IPMB Driver for a Satellite MC +============================== + +The Intelligent Platform Management Bus or IPMB, is an +I2C bus that provides a standardized interconnection between +different boards within a chassis. This interconnection is +between the baseboard management (BMC) and chassis electronics. +IPMB is also associated with the messaging protocol through the +IPMB bus. + +The devices using the IPMB are usually management +controllers that perform management functions such as servicing +the front panel interface, monitoring the baseboard, +hot-swapping disk drivers in the system chassis, etc... + +When an IPMB is implemented in the system, the BMC serves as +a controller to give system software access to the IPMB. The BMC +sends IPMI requests to a device (usually a Satellite Management +Controller or Satellite MC) via IPMB and the device +sends a response back to the BMC. + +For more information on IPMB and the format of an IPMB message, +refer to the IPMB and IPMI specifications. + +IPMB driver for Satellite MC +---------------------------- + +ipmb-dev-int - This is the driver needed on a Satellite MC to +receive IPMB messages from a BMC and send a response back. +This driver works with the I2C driver and a userspace +program such as OpenIPMI: + +1) It is an I2C slave backend driver. So, it defines a callback + function to set the Satellite MC as an I2C slave. + This callback function handles the received IPMI requests. + +2) It defines the read and write functions to enable a user + space program (such as OpenIPMI) to communicate with the kernel. + + +Load the IPMB driver +-------------------- + +The driver needs to be loaded at boot time or manually first. +First, make sure you have the following in your config file: +CONFIG_IPMB_DEVICE_INTERFACE=y + +1) If you want the driver to be loaded at boot time: + +a) Add this entry to your ACPI table, under the appropriate SMBus:: + + Device (SMB0) // Example SMBus host controller + { + Name (_HID, "") // Vendor-Specific HID + Name (_UID, 0) // Unique ID of particular host controller + : + : + Device (IPMB) + { + Name (_HID, "IPMB0001") // IPMB device interface + Name (_UID, 0) // Unique device identifier + } + } + +b) Example for device tree:: + + &i2c2 { + status = "okay"; + + ipmb@10 { + compatible = "ipmb-dev"; + reg = <0x10>; + i2c-protocol; + }; + }; + +If xmit of data to be done using raw i2c block vs smbus +then "i2c-protocol" needs to be defined as above. + +2) Manually from Linux:: + + modprobe ipmb-dev-int + + +Instantiate the device +---------------------- + +After loading the driver, you can instantiate the device as +described in 'Documentation/i2c/instantiating-devices.rst'. +If you have multiple BMCs, each connected to your Satellite MC via +a different I2C bus, you can instantiate a device for each of +those BMCs. + +The name of the instantiated device contains the I2C bus number +associated with it as follows:: + + BMC1 ------ IPMB/I2C bus 1 ---------| /dev/ipmb-1 + Satellite MC + BMC1 ------ IPMB/I2C bus 2 ---------| /dev/ipmb-2 + +For instance, you can instantiate the ipmb-dev-int device from +user space at the 7 bit address 0x10 on bus 2:: + + # echo ipmb-dev 0x1010 > /sys/bus/i2c/devices/i2c-2/new_device + +This will create the device file /dev/ipmb-2, which can be accessed +by the user space program. The device needs to be instantiated +before running the user space program. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/mailbox.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/mailbox.rst index 75adf1591..0ed95009c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/mailbox.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/mailbox.rst @@ -1,129 +1,129 @@ -============================ -The Common Mailbox Framework -============================ - -:Author: Jassi Brar - -This document aims to help developers write client and controller -drivers for the API. But before we start, let us note that the -client (especially) and controller drivers are likely going to be -very platform specific because the remote firmware is likely to be -proprietary and implement non-standard protocol. So even if two -platforms employ, say, PL320 controller, the client drivers can't -be shared across them. Even the PL320 driver might need to accommodate -some platform specific quirks. So the API is meant mainly to avoid -similar copies of code written for each platform. Having said that, -nothing prevents the remote f/w to also be Linux based and use the -same api there. However none of that helps us locally because we only -ever deal at client's protocol level. - -Some of the choices made during implementation are the result of this -peculiarity of this "common" framework. - - - -Controller Driver (See include/linux/mailbox_controller.h) -========================================================== - - -Allocate mbox_controller and the array of mbox_chan. -Populate mbox_chan_ops, except peek_data() all are mandatory. -The controller driver might know a message has been consumed -by the remote by getting an IRQ or polling some hardware flag -or it can never know (the client knows by way of the protocol). -The method in order of preference is IRQ -> Poll -> None, which -the controller driver should set via 'txdone_irq' or 'txdone_poll' -or neither. - - -Client Driver (See include/linux/mailbox_client.h) -================================================== - - -The client might want to operate in blocking mode (synchronously -send a message through before returning) or non-blocking/async mode (submit -a message and a callback function to the API and return immediately). - -:: - - struct demo_client { - struct mbox_client cl; - struct mbox_chan *mbox; - struct completion c; - bool async; - /* ... */ - }; - - /* - * This is the handler for data received from remote. The behaviour is purely - * dependent upon the protocol. This is just an example. - */ - static void message_from_remote(struct mbox_client *cl, void *mssg) - { - struct demo_client *dc = container_of(cl, struct demo_client, cl); - if (dc->async) { - if (is_an_ack(mssg)) { - /* An ACK to our last sample sent */ - return; /* Or do something else here */ - } else { /* A new message from remote */ - queue_req(mssg); - } - } else { - /* Remote f/w sends only ACK packets on this channel */ - return; - } - } - - static void sample_sent(struct mbox_client *cl, void *mssg, int r) - { - struct demo_client *dc = container_of(cl, struct demo_client, cl); - complete(&dc->c); - } - - static void client_demo(struct platform_device *pdev) - { - struct demo_client *dc_sync, *dc_async; - /* The controller already knows async_pkt and sync_pkt */ - struct async_pkt ap; - struct sync_pkt sp; - - dc_sync = kzalloc(sizeof(*dc_sync), GFP_KERNEL); - dc_async = kzalloc(sizeof(*dc_async), GFP_KERNEL); - - /* Populate non-blocking mode client */ - dc_async->cl.dev = &pdev->dev; - dc_async->cl.rx_callback = message_from_remote; - dc_async->cl.tx_done = sample_sent; - dc_async->cl.tx_block = false; - dc_async->cl.tx_tout = 0; /* doesn't matter here */ - dc_async->cl.knows_txdone = false; /* depending upon protocol */ - dc_async->async = true; - init_completion(&dc_async->c); - - /* Populate blocking mode client */ - dc_sync->cl.dev = &pdev->dev; - dc_sync->cl.rx_callback = message_from_remote; - dc_sync->cl.tx_done = NULL; /* operate in blocking mode */ - dc_sync->cl.tx_block = true; - dc_sync->cl.tx_tout = 500; /* by half a second */ - dc_sync->cl.knows_txdone = false; /* depending upon protocol */ - dc_sync->async = false; - - /* ASync mailbox is listed second in 'mboxes' property */ - dc_async->mbox = mbox_request_channel(&dc_async->cl, 1); - /* Populate data packet */ - /* ap.xxx = 123; etc */ - /* Send async message to remote */ - mbox_send_message(dc_async->mbox, &ap); - - /* Sync mailbox is listed first in 'mboxes' property */ - dc_sync->mbox = mbox_request_channel(&dc_sync->cl, 0); - /* Populate data packet */ - /* sp.abc = 123; etc */ - /* Send message to remote in blocking mode */ - mbox_send_message(dc_sync->mbox, &sp); - /* At this point 'sp' has been sent */ - - /* Now wait for async chan to be done */ - wait_for_completion(&dc_async->c); - } +============================ +The Common Mailbox Framework +============================ + +:Author: Jassi Brar + +This document aims to help developers write client and controller +drivers for the API. But before we start, let us note that the +client (especially) and controller drivers are likely going to be +very platform specific because the remote firmware is likely to be +proprietary and implement non-standard protocol. So even if two +platforms employ, say, PL320 controller, the client drivers can't +be shared across them. Even the PL320 driver might need to accommodate +some platform specific quirks. So the API is meant mainly to avoid +similar copies of code written for each platform. Having said that, +nothing prevents the remote f/w to also be Linux based and use the +same api there. However none of that helps us locally because we only +ever deal at client's protocol level. + +Some of the choices made during implementation are the result of this +peculiarity of this "common" framework. + + + +Controller Driver (See include/linux/mailbox_controller.h) +========================================================== + + +Allocate mbox_controller and the array of mbox_chan. +Populate mbox_chan_ops, except peek_data() all are mandatory. +The controller driver might know a message has been consumed +by the remote by getting an IRQ or polling some hardware flag +or it can never know (the client knows by way of the protocol). +The method in order of preference is IRQ -> Poll -> None, which +the controller driver should set via 'txdone_irq' or 'txdone_poll' +or neither. + + +Client Driver (See include/linux/mailbox_client.h) +================================================== + + +The client might want to operate in blocking mode (synchronously +send a message through before returning) or non-blocking/async mode (submit +a message and a callback function to the API and return immediately). + +:: + + struct demo_client { + struct mbox_client cl; + struct mbox_chan *mbox; + struct completion c; + bool async; + /* ... */ + }; + + /* + * This is the handler for data received from remote. The behaviour is purely + * dependent upon the protocol. This is just an example. + */ + static void message_from_remote(struct mbox_client *cl, void *mssg) + { + struct demo_client *dc = container_of(cl, struct demo_client, cl); + if (dc->async) { + if (is_an_ack(mssg)) { + /* An ACK to our last sample sent */ + return; /* Or do something else here */ + } else { /* A new message from remote */ + queue_req(mssg); + } + } else { + /* Remote f/w sends only ACK packets on this channel */ + return; + } + } + + static void sample_sent(struct mbox_client *cl, void *mssg, int r) + { + struct demo_client *dc = container_of(cl, struct demo_client, cl); + complete(&dc->c); + } + + static void client_demo(struct platform_device *pdev) + { + struct demo_client *dc_sync, *dc_async; + /* The controller already knows async_pkt and sync_pkt */ + struct async_pkt ap; + struct sync_pkt sp; + + dc_sync = kzalloc(sizeof(*dc_sync), GFP_KERNEL); + dc_async = kzalloc(sizeof(*dc_async), GFP_KERNEL); + + /* Populate non-blocking mode client */ + dc_async->cl.dev = &pdev->dev; + dc_async->cl.rx_callback = message_from_remote; + dc_async->cl.tx_done = sample_sent; + dc_async->cl.tx_block = false; + dc_async->cl.tx_tout = 0; /* doesn't matter here */ + dc_async->cl.knows_txdone = false; /* depending upon protocol */ + dc_async->async = true; + init_completion(&dc_async->c); + + /* Populate blocking mode client */ + dc_sync->cl.dev = &pdev->dev; + dc_sync->cl.rx_callback = message_from_remote; + dc_sync->cl.tx_done = NULL; /* operate in blocking mode */ + dc_sync->cl.tx_block = true; + dc_sync->cl.tx_tout = 500; /* by half a second */ + dc_sync->cl.knows_txdone = false; /* depending upon protocol */ + dc_sync->async = false; + + /* ASync mailbox is listed second in 'mboxes' property */ + dc_async->mbox = mbox_request_channel(&dc_async->cl, 1); + /* Populate data packet */ + /* ap.xxx = 123; etc */ + /* Send async message to remote */ + mbox_send_message(dc_async->mbox, &ap); + + /* Sync mailbox is listed first in 'mboxes' property */ + dc_sync->mbox = mbox_request_channel(&dc_sync->cl, 0); + /* Populate data packet */ + /* sp.abc = 123; etc */ + /* Send message to remote in blocking mode */ + mbox_send_message(dc_sync->mbox, &sp); + /* At this point 'sp' has been sent */ + + /* Now wait for async chan to be done */ + wait_for_completion(&dc_async->c); + } diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/drivers/contributors.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/drivers/contributors.rst index a922f4a17..f23b6e6fa 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/drivers/contributors.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/drivers/contributors.rst @@ -1,131 +1,131 @@ -.. SPDX-License-Identifier: GPL-2.0 - -Contributors -============ - -.. note:: - - This documentation is outdated. There are several other DVB contributors - that aren't listed below. - -Thanks go to the following people for patches and contributions: - -- Michael Hunold - - - for the initial saa7146 driver and its recent overhaul - -- Christian Theiss - - - for his work on the initial Linux DVB driver - -- Marcus Metzler and - Ralph Metzler - - - for their continuing work on the DVB driver - -- Michael Holzt - - - for his contributions to the dvb-net driver - -- Diego Picciani - - - for CyberLogin for Linux which allows logging onto EON - (in case you are wondering where CyberLogin is, EON changed its login - procedure and CyberLogin is no longer used.) - -- Martin Schaller - - - for patching the cable card decoder driver - -- Klaus Schmidinger - - - for various fixes regarding tuning, OSD and CI stuff and his work on VDR - -- Steve Brown - - - for his AFC kernel thread - -- Christoph Martin - - - for his LIRC infrared handler - -- Andreas Oberritter , - Dennis Noermann , - Felix Domke , - Florian Schirmer , - Ronny Strutz <3des@elitedvb.de>, - Wolfram Joost - and all the other dbox2 people - - - for many bugfixes in the generic DVB Core, frontend drivers and - their work on the dbox2 port of the DVB driver - -- Oliver Endriss - - - for many bugfixes - -- Andrew de Quincey - - - for the tda1004x frontend driver, and various bugfixes - -- Peter Schildmann - - - for the driver for the Technisat SkyStar2 PCI DVB card - -- Vadim Catana , - Roberto Ragusa and - Augusto Cardoso - - - for all the work for the FlexCopII chipset by B2C2,Inc. - -- Davor Emard - - - for his work on the budget drivers, the demux code, - the module unloading problems, ... - -- Hans-Frieder Vogt - - - for his work on calculating and checking the crc's for the - TechnoTrend/Hauppauge DEC driver firmware - -- Michael Dreher and - Andreas 'randy' Weinberger - - - for the support of the Fujitsu-Siemens Activy budget DVB-S - -- Kenneth Aafløy - - - for adding support for Typhoon DVB-S budget card - -- Ernst Peinlich - - - for tuning/DiSEqC support for the DEC 3000-s - -- Peter Beutner - - - for the IR code for the ttusb-dec driver - -- Wilson Michaels - - - for the lgdt330x frontend driver, and various bugfixes - -- Michael Krufky - - - for maintaining v4l/dvb inter-tree dependencies - -- Taylor Jacob - - - for the nxt2002 frontend driver - -- Jean-Francois Thibert - - - for the nxt2004 frontend driver - -- Kirk Lapray - - - for the or51211 and or51132 frontend drivers, and - for merging the nxt2002 and nxt2004 modules into a - single nxt200x frontend driver. - -(If you think you should be in this list, but you are not, drop a -line to the DVB mailing list) +.. SPDX-License-Identifier: GPL-2.0 + +Contributors +============ + +.. note:: + + This documentation is outdated. There are several other DVB contributors + that aren't listed below. + +Thanks go to the following people for patches and contributions: + +- Michael Hunold + + - for the initial saa7146 driver and its recent overhaul + +- Christian Theiss + + - for his work on the initial Linux DVB driver + +- Marcus Metzler and + Ralph Metzler + + - for their continuing work on the DVB driver + +- Michael Holzt + + - for his contributions to the dvb-net driver + +- Diego Picciani + + - for CyberLogin for Linux which allows logging onto EON + (in case you are wondering where CyberLogin is, EON changed its login + procedure and CyberLogin is no longer used.) + +- Martin Schaller + + - for patching the cable card decoder driver + +- Klaus Schmidinger + + - for various fixes regarding tuning, OSD and CI stuff and his work on VDR + +- Steve Brown + + - for his AFC kernel thread + +- Christoph Martin + + - for his LIRC infrared handler + +- Andreas Oberritter , + Dennis Noermann , + Felix Domke , + Florian Schirmer , + Ronny Strutz <3des@elitedvb.de>, + Wolfram Joost + and all the other dbox2 people + + - for many bugfixes in the generic DVB Core, frontend drivers and + their work on the dbox2 port of the DVB driver + +- Oliver Endriss + + - for many bugfixes + +- Andrew de Quincey + + - for the tda1004x frontend driver, and various bugfixes + +- Peter Schildmann + + - for the driver for the Technisat SkyStar2 PCI DVB card + +- Vadim Catana , + Roberto Ragusa and + Augusto Cardoso + + - for all the work for the FlexCopII chipset by B2C2,Inc. + +- Davor Emard + + - for his work on the budget drivers, the demux code, + the module unloading problems, ... + +- Hans-Frieder Vogt + + - for his work on calculating and checking the crc's for the + TechnoTrend/Hauppauge DEC driver firmware + +- Michael Dreher and + Andreas 'randy' Weinberger + + - for the support of the Fujitsu-Siemens Activy budget DVB-S + +- Kenneth Aafløy + + - for adding support for Typhoon DVB-S budget card + +- Ernst Peinlich + + - for tuning/DiSEqC support for the DEC 3000-s + +- Peter Beutner + + - for the IR code for the ttusb-dec driver + +- Wilson Michaels + + - for the lgdt330x frontend driver, and various bugfixes + +- Michael Krufky + + - for maintaining v4l/dvb inter-tree dependencies + +- Taylor Jacob + + - for the nxt2002 frontend driver + +- Jean-Francois Thibert + + - for the nxt2004 frontend driver + +- Kirk Lapray + + - for the or51211 and or51132 frontend drivers, and + for merging the nxt2002 and nxt2004 modules into a + single nxt200x frontend driver. + +(If you think you should be in this list, but you are not, drop a +line to the DVB mailing list) diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/drivers/sh_mobile_ceu_camera.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/drivers/sh_mobile_ceu_camera.rst index d76374d35..822fcb836 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/drivers/sh_mobile_ceu_camera.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/drivers/sh_mobile_ceu_camera.rst @@ -1,142 +1,142 @@ -.. SPDX-License-Identifier: GPL-2.0 - -Cropping and Scaling algorithm, used in the sh_mobile_ceu_camera driver -======================================================================= - -Author: Guennadi Liakhovetski - -Terminology ------------ - -sensor scales: horizontal and vertical scales, configured by the sensor driver -host scales: -"- host driver -combined scales: sensor_scale * host_scale - - -Generic scaling / cropping scheme ---------------------------------- - -.. code-block:: none - - -1-- - | - -2-- -\ - | --\ - | --\ - +-5-- . -- -3-- -\ - | `... -\ - | `... -4-- . - -7.. - | `. - | `. .6-- - | - | . .6'- - | .´ - | ... -4'- .´ - | ...´ - -7'. - +-5'- .´ -/ - | -- -3'- -/ - | --/ - | --/ - -2'- -/ - | - | - -1'- - -In the above chart minuses and slashes represent "real" data amounts, points and -accents represent "useful" data, basically, CEU scaled and cropped output, -mapped back onto the client's source plane. - -Such a configuration can be produced by user requests: - -S_CROP(left / top = (5) - (1), width / height = (5') - (5)) -S_FMT(width / height = (6') - (6)) - -Here: - -(1) to (1') - whole max width or height -(1) to (2) - sensor cropped left or top -(2) to (2') - sensor cropped width or height -(3) to (3') - sensor scale -(3) to (4) - CEU cropped left or top -(4) to (4') - CEU cropped width or height -(5) to (5') - reverse sensor scale applied to CEU cropped width or height -(2) to (5) - reverse sensor scale applied to CEU cropped left or top -(6) to (6') - CEU scale - user window - - -S_FMT ------ - -Do not touch input rectangle - it is already optimal. - -1. Calculate current sensor scales: - - scale_s = ((2') - (2)) / ((3') - (3)) - -2. Calculate "effective" input crop (sensor subwindow) - CEU crop scaled back at -current sensor scales onto input window - this is user S_CROP: - - width_u = (5') - (5) = ((4') - (4)) * scale_s - -3. Calculate new combined scales from "effective" input window to requested user -window: - - scale_comb = width_u / ((6') - (6)) - -4. Calculate sensor output window by applying combined scales to real input -window: - - width_s_out = ((7') - (7)) = ((2') - (2)) / scale_comb - -5. Apply iterative sensor S_FMT for sensor output window. - - subdev->video_ops->s_fmt(.width = width_s_out) - -6. Retrieve sensor output window (g_fmt) - -7. Calculate new sensor scales: - - scale_s_new = ((3')_new - (3)_new) / ((2') - (2)) - -8. Calculate new CEU crop - apply sensor scales to previously calculated -"effective" crop: - - width_ceu = (4')_new - (4)_new = width_u / scale_s_new - left_ceu = (4)_new - (3)_new = ((5) - (2)) / scale_s_new - -9. Use CEU cropping to crop to the new window: - - ceu_crop(.width = width_ceu, .left = left_ceu) - -10. Use CEU scaling to scale to the requested user window: - - scale_ceu = width_ceu / width - - -S_CROP ------- - -The :ref:`V4L2 crop API ` says: - -"...specification does not define an origin or units. However by convention -drivers should horizontally count unscaled samples relative to 0H." - -We choose to follow the advise and interpret cropping units as client input -pixels. - -Cropping is performed in the following 6 steps: - -1. Request exactly user rectangle from the sensor. - -2. If smaller - iterate until a larger one is obtained. Result: sensor cropped - to 2 : 2', target crop 5 : 5', current output format 6' - 6. - -3. In the previous step the sensor has tried to preserve its output frame as - good as possible, but it could have changed. Retrieve it again. - -4. Sensor scaled to 3 : 3'. Sensor's scale is (2' - 2) / (3' - 3). Calculate - intermediate window: 4' - 4 = (5' - 5) * (3' - 3) / (2' - 2) - -5. Calculate and apply host scale = (6' - 6) / (4' - 4) - -6. Calculate and apply host crop: 6 - 7 = (5 - 2) * (6' - 6) / (5' - 5) +.. SPDX-License-Identifier: GPL-2.0 + +Cropping and Scaling algorithm, used in the sh_mobile_ceu_camera driver +======================================================================= + +Author: Guennadi Liakhovetski + +Terminology +----------- + +sensor scales: horizontal and vertical scales, configured by the sensor driver +host scales: -"- host driver +combined scales: sensor_scale * host_scale + + +Generic scaling / cropping scheme +--------------------------------- + +.. code-block:: none + + -1-- + | + -2-- -\ + | --\ + | --\ + +-5-- . -- -3-- -\ + | `... -\ + | `... -4-- . - -7.. + | `. + | `. .6-- + | + | . .6'- + | .´ + | ... -4'- .´ + | ...´ - -7'. + +-5'- .´ -/ + | -- -3'- -/ + | --/ + | --/ + -2'- -/ + | + | + -1'- + +In the above chart minuses and slashes represent "real" data amounts, points and +accents represent "useful" data, basically, CEU scaled and cropped output, +mapped back onto the client's source plane. + +Such a configuration can be produced by user requests: + +S_CROP(left / top = (5) - (1), width / height = (5') - (5)) +S_FMT(width / height = (6') - (6)) + +Here: + +(1) to (1') - whole max width or height +(1) to (2) - sensor cropped left or top +(2) to (2') - sensor cropped width or height +(3) to (3') - sensor scale +(3) to (4) - CEU cropped left or top +(4) to (4') - CEU cropped width or height +(5) to (5') - reverse sensor scale applied to CEU cropped width or height +(2) to (5) - reverse sensor scale applied to CEU cropped left or top +(6) to (6') - CEU scale - user window + + +S_FMT +----- + +Do not touch input rectangle - it is already optimal. + +1. Calculate current sensor scales: + + scale_s = ((2') - (2)) / ((3') - (3)) + +2. Calculate "effective" input crop (sensor subwindow) - CEU crop scaled back at +current sensor scales onto input window - this is user S_CROP: + + width_u = (5') - (5) = ((4') - (4)) * scale_s + +3. Calculate new combined scales from "effective" input window to requested user +window: + + scale_comb = width_u / ((6') - (6)) + +4. Calculate sensor output window by applying combined scales to real input +window: + + width_s_out = ((7') - (7)) = ((2') - (2)) / scale_comb + +5. Apply iterative sensor S_FMT for sensor output window. + + subdev->video_ops->s_fmt(.width = width_s_out) + +6. Retrieve sensor output window (g_fmt) + +7. Calculate new sensor scales: + + scale_s_new = ((3')_new - (3)_new) / ((2') - (2)) + +8. Calculate new CEU crop - apply sensor scales to previously calculated +"effective" crop: + + width_ceu = (4')_new - (4)_new = width_u / scale_s_new + left_ceu = (4)_new - (3)_new = ((5) - (2)) / scale_s_new + +9. Use CEU cropping to crop to the new window: + + ceu_crop(.width = width_ceu, .left = left_ceu) + +10. Use CEU scaling to scale to the requested user window: + + scale_ceu = width_ceu / width + + +S_CROP +------ + +The :ref:`V4L2 crop API ` says: + +"...specification does not define an origin or units. However by convention +drivers should horizontally count unscaled samples relative to 0H." + +We choose to follow the advise and interpret cropping units as client input +pixels. + +Cropping is performed in the following 6 steps: + +1. Request exactly user rectangle from the sensor. + +2. If smaller - iterate until a larger one is obtained. Result: sensor cropped + to 2 : 2', target crop 5 : 5', current output format 6' - 6. + +3. In the previous step the sensor has tried to preserve its output frame as + good as possible, but it could have changed. Retrieve it again. + +4. Sensor scaled to 3 : 3'. Sensor's scale is (2' - 2) / (3' - 3). Calculate + intermediate window: 4' - 4 = (5' - 5) * (3' - 3) / (2' - 2) + +5. Calculate and apply host scale = (6' - 6) / (4' - 4) + +6. Calculate and apply host crop: 6 - 7 = (5 - 2) * (6' - 6) / (5' - 5) diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/drivers/tuners.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/drivers/tuners.rst index 1ce541302..d7924141c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/drivers/tuners.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/drivers/tuners.rst @@ -1,133 +1,133 @@ -.. SPDX-License-Identifier: GPL-2.0 - -Tuner drivers -============= - -Simple tuner Programming ------------------------- - -There are some flavors of Tuner programming APIs. -These differ mainly by the bandswitch byte. - -- L= LG_API (VHF_LO=0x01, VHF_HI=0x02, UHF=0x08, radio=0x04) -- P= PHILIPS_API (VHF_LO=0xA0, VHF_HI=0x90, UHF=0x30, radio=0x04) -- T= TEMIC_API (VHF_LO=0x02, VHF_HI=0x04, UHF=0x01) -- A= ALPS_API (VHF_LO=0x14, VHF_HI=0x12, UHF=0x11) -- M= PHILIPS_MK3 (VHF_LO=0x01, VHF_HI=0x02, UHF=0x04, radio=0x19) - -Tuner Manufacturers -------------------- - -- Samsung Tuner identification: (e.g. TCPM9091PD27) - -.. code-block:: none - - TCP [ABCJLMNQ] 90[89][125] [DP] [ACD] 27 [ABCD] - [ABCJLMNQ]: - A= BG+DK - B= BG - C= I+DK - J= NTSC-Japan - L= Secam LL - M= BG+I+DK - N= NTSC - Q= BG+I+DK+LL - [89]: ? - [125]: - 2: No FM - 5: With FM - [DP]: - D= NTSC - P= PAL - [ACD]: - A= F-connector - C= Phono connector - D= Din Jack - [ABCD]: - 3-wire/I2C tuning, 2-band/3-band - -These Tuners are PHILIPS_API compatible. - -Philips Tuner identification: (e.g. FM1216MF) - -.. code-block:: none - - F[IRMQ]12[1345]6{MF|ME|MP} - F[IRMQ]: - FI12x6: Tuner Series - FR12x6: Tuner + Radio IF - FM12x6: Tuner + FM - FQ12x6: special - FMR12x6: special - TD15xx: Digital Tuner ATSC - 12[1345]6: - 1216: PAL BG - 1236: NTSC - 1246: PAL I - 1256: Pal DK - {MF|ME|MP} - MF: BG LL w/ Secam (Multi France) - ME: BG DK I LL (Multi Europe) - MP: BG DK I (Multi PAL) - MR: BG DK M (?) - MG: BG DKI M (?) - MK2 series PHILIPS_API, most tuners are compatible to this one ! - MK3 series introduced in 2002 w/ PHILIPS_MK3_API - -Temic Tuner identification: (.e.g 4006FH5) - -.. code-block:: none - - 4[01][0136][269]F[HYNR]5 - 40x2: Tuner (5V/33V), TEMIC_API. - 40x6: Tuner 5V - 41xx: Tuner compact - 40x9: Tuner+FM compact - [0136] - xx0x: PAL BG - xx1x: Pal DK, Secam LL - xx3x: NTSC - xx6x: PAL I - F[HYNR]5 - FH5: Pal BG - FY5: others - FN5: multistandard - FR5: w/ FM radio - 3X xxxx: order number with specific connector - Note: Only 40x2 series has TEMIC_API, all newer tuners have PHILIPS_API. - -LG Innotek Tuner: - -- TPI8NSR11 : NTSC J/M (TPI8NSR01 w/FM) (P,210/497) -- TPI8PSB11 : PAL B/G (TPI8PSB01 w/FM) (P,170/450) -- TAPC-I701 : PAL I (TAPC-I001 w/FM) (P,170/450) -- TPI8PSB12 : PAL D/K+B/G (TPI8PSB02 w/FM) (P,170/450) -- TAPC-H701P: NTSC_JP (TAPC-H001P w/FM) (L,170/450) -- TAPC-G701P: PAL B/G (TAPC-G001P w/FM) (L,170/450) -- TAPC-W701P: PAL I (TAPC-W001P w/FM) (L,170/450) -- TAPC-Q703P: PAL D/K (TAPC-Q001P w/FM) (L,170/450) -- TAPC-Q704P: PAL D/K+I (L,170/450) -- TAPC-G702P: PAL D/K+B/G (L,170/450) - -- TADC-H002F: NTSC (L,175/410?; 2-B, C-W+11, W+12-69) -- TADC-M201D: PAL D/K+B/G+I (L,143/425) (sound control at I2C address 0xc8) -- TADC-T003F: NTSC Taiwan (L,175/410?; 2-B, C-W+11, W+12-69) - -Suffix: - - P= Standard phono female socket - - D= IEC female socket - - F= F-connector - -Other Tuners: - -- TCL2002MB-1 : PAL BG + DK =TUNER_LG_PAL_NEW_TAPC -- TCL2002MB-1F: PAL BG + DK w/FM =PHILIPS_PAL -- TCL2002MI-2 : PAL I = ?? - -ALPS Tuners: - -- Most are LG_API compatible -- TSCH6 has ALPS_API (TSCH5 ?) -- TSBE1 has extra API 05,02,08 Control_byte=0xCB Source:[#f1]_ - -.. [#f1] conexant100029b-PCI-Decoder-ApplicationNote.pdf +.. SPDX-License-Identifier: GPL-2.0 + +Tuner drivers +============= + +Simple tuner Programming +------------------------ + +There are some flavors of Tuner programming APIs. +These differ mainly by the bandswitch byte. + +- L= LG_API (VHF_LO=0x01, VHF_HI=0x02, UHF=0x08, radio=0x04) +- P= PHILIPS_API (VHF_LO=0xA0, VHF_HI=0x90, UHF=0x30, radio=0x04) +- T= TEMIC_API (VHF_LO=0x02, VHF_HI=0x04, UHF=0x01) +- A= ALPS_API (VHF_LO=0x14, VHF_HI=0x12, UHF=0x11) +- M= PHILIPS_MK3 (VHF_LO=0x01, VHF_HI=0x02, UHF=0x04, radio=0x19) + +Tuner Manufacturers +------------------- + +- Samsung Tuner identification: (e.g. TCPM9091PD27) + +.. code-block:: none + + TCP [ABCJLMNQ] 90[89][125] [DP] [ACD] 27 [ABCD] + [ABCJLMNQ]: + A= BG+DK + B= BG + C= I+DK + J= NTSC-Japan + L= Secam LL + M= BG+I+DK + N= NTSC + Q= BG+I+DK+LL + [89]: ? + [125]: + 2: No FM + 5: With FM + [DP]: + D= NTSC + P= PAL + [ACD]: + A= F-connector + C= Phono connector + D= Din Jack + [ABCD]: + 3-wire/I2C tuning, 2-band/3-band + +These Tuners are PHILIPS_API compatible. + +Philips Tuner identification: (e.g. FM1216MF) + +.. code-block:: none + + F[IRMQ]12[1345]6{MF|ME|MP} + F[IRMQ]: + FI12x6: Tuner Series + FR12x6: Tuner + Radio IF + FM12x6: Tuner + FM + FQ12x6: special + FMR12x6: special + TD15xx: Digital Tuner ATSC + 12[1345]6: + 1216: PAL BG + 1236: NTSC + 1246: PAL I + 1256: Pal DK + {MF|ME|MP} + MF: BG LL w/ Secam (Multi France) + ME: BG DK I LL (Multi Europe) + MP: BG DK I (Multi PAL) + MR: BG DK M (?) + MG: BG DKI M (?) + MK2 series PHILIPS_API, most tuners are compatible to this one ! + MK3 series introduced in 2002 w/ PHILIPS_MK3_API + +Temic Tuner identification: (.e.g 4006FH5) + +.. code-block:: none + + 4[01][0136][269]F[HYNR]5 + 40x2: Tuner (5V/33V), TEMIC_API. + 40x6: Tuner 5V + 41xx: Tuner compact + 40x9: Tuner+FM compact + [0136] + xx0x: PAL BG + xx1x: Pal DK, Secam LL + xx3x: NTSC + xx6x: PAL I + F[HYNR]5 + FH5: Pal BG + FY5: others + FN5: multistandard + FR5: w/ FM radio + 3X xxxx: order number with specific connector + Note: Only 40x2 series has TEMIC_API, all newer tuners have PHILIPS_API. + +LG Innotek Tuner: + +- TPI8NSR11 : NTSC J/M (TPI8NSR01 w/FM) (P,210/497) +- TPI8PSB11 : PAL B/G (TPI8PSB01 w/FM) (P,170/450) +- TAPC-I701 : PAL I (TAPC-I001 w/FM) (P,170/450) +- TPI8PSB12 : PAL D/K+B/G (TPI8PSB02 w/FM) (P,170/450) +- TAPC-H701P: NTSC_JP (TAPC-H001P w/FM) (L,170/450) +- TAPC-G701P: PAL B/G (TAPC-G001P w/FM) (L,170/450) +- TAPC-W701P: PAL I (TAPC-W001P w/FM) (L,170/450) +- TAPC-Q703P: PAL D/K (TAPC-Q001P w/FM) (L,170/450) +- TAPC-Q704P: PAL D/K+I (L,170/450) +- TAPC-G702P: PAL D/K+B/G (L,170/450) + +- TADC-H002F: NTSC (L,175/410?; 2-B, C-W+11, W+12-69) +- TADC-M201D: PAL D/K+B/G+I (L,143/425) (sound control at I2C address 0xc8) +- TADC-T003F: NTSC Taiwan (L,175/410?; 2-B, C-W+11, W+12-69) + +Suffix: + - P= Standard phono female socket + - D= IEC female socket + - F= F-connector + +Other Tuners: + +- TCL2002MB-1 : PAL BG + DK =TUNER_LG_PAL_NEW_TAPC +- TCL2002MB-1F: PAL BG + DK w/FM =PHILIPS_PAL +- TCL2002MI-2 : PAL I = ?? + +ALPS Tuners: + +- Most are LG_API compatible +- TSCH6 has ALPS_API (TSCH5 ?) +- TSBE1 has extra API 05,02,08 Control_byte=0xCB Source:[#f1]_ + +.. [#f1] conexant100029b-PCI-Decoder-ApplicationNote.pdf diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/dtv-demux.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/dtv-demux.rst index 8475fc585..144124142 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/dtv-demux.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/dtv-demux.rst @@ -1,84 +1,84 @@ -.. SPDX-License-Identifier: GPL-2.0 - -Digital TV Demux kABI ---------------------- - -Digital TV Demux -~~~~~~~~~~~~~~~~ - -The Kernel Digital TV Demux kABI defines a driver-internal interface for -registering low-level, hardware specific driver to a hardware independent -demux layer. It is only of interest for Digital TV device driver writers. -The header file for this kABI is named ``demux.h`` and located in -``include/media``. - -The demux kABI should be implemented for each demux in the system. It is -used to select the TS source of a demux and to manage the demux resources. -When the demux client allocates a resource via the demux kABI, it receives -a pointer to the kABI of that resource. - -Each demux receives its TS input from a DVB front-end or from memory, as -set via this demux kABI. In a system with more than one front-end, the kABI -can be used to select one of the DVB front-ends as a TS source for a demux, -unless this is fixed in the HW platform. - -The demux kABI only controls front-ends regarding to their connections with -demuxes; the kABI used to set the other front-end parameters, such as -tuning, are defined via the Digital TV Frontend kABI. - -The functions that implement the abstract interface demux should be defined -static or module private and registered to the Demux core for external -access. It is not necessary to implement every function in the struct -:c:type:`dmx_demux`. For example, a demux interface might support Section filtering, -but not PES filtering. The kABI client is expected to check the value of any -function pointer before calling the function: the value of ``NULL`` means -that the function is not available. - -Whenever the functions of the demux API modify shared data, the -possibilities of lost update and race condition problems should be -addressed, e.g. by protecting parts of code with mutexes. - -Note that functions called from a bottom half context must not sleep. -Even a simple memory allocation without using ``GFP_ATOMIC`` can result in a -kernel thread being put to sleep if swapping is needed. For example, the -Linux Kernel calls the functions of a network device interface from a -bottom half context. Thus, if a demux kABI function is called from network -device code, the function must not sleep. - -Demux Callback API -~~~~~~~~~~~~~~~~~~ - -This kernel-space API comprises the callback functions that deliver filtered -data to the demux client. Unlike the other DVB kABIs, these functions are -provided by the client and called from the demux code. - -The function pointers of this abstract interface are not packed into a -structure as in the other demux APIs, because the callback functions are -registered and used independent of each other. As an example, it is possible -for the API client to provide several callback functions for receiving TS -packets and no callbacks for PES packets or sections. - -The functions that implement the callback API need not be re-entrant: when -a demux driver calls one of these functions, the driver is not allowed to -call the function again before the original call returns. If a callback is -triggered by a hardware interrupt, it is recommended to use the Linux -bottom half mechanism or start a tasklet instead of making the callback -function call directly from a hardware interrupt. - -This mechanism is implemented by :c:func:`dmx_ts_cb()` and :c:func:`dmx_section_cb()` -callbacks. - -Digital TV Demux device registration functions and data structures -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -.. kernel-doc:: include/media/dmxdev.h - -High-level Digital TV demux interface -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -.. kernel-doc:: include/media/dvb_demux.h - -Driver-internal low-level hardware specific driver demux interface -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -.. kernel-doc:: include/media/demux.h +.. SPDX-License-Identifier: GPL-2.0 + +Digital TV Demux kABI +--------------------- + +Digital TV Demux +~~~~~~~~~~~~~~~~ + +The Kernel Digital TV Demux kABI defines a driver-internal interface for +registering low-level, hardware specific driver to a hardware independent +demux layer. It is only of interest for Digital TV device driver writers. +The header file for this kABI is named ``demux.h`` and located in +``include/media``. + +The demux kABI should be implemented for each demux in the system. It is +used to select the TS source of a demux and to manage the demux resources. +When the demux client allocates a resource via the demux kABI, it receives +a pointer to the kABI of that resource. + +Each demux receives its TS input from a DVB front-end or from memory, as +set via this demux kABI. In a system with more than one front-end, the kABI +can be used to select one of the DVB front-ends as a TS source for a demux, +unless this is fixed in the HW platform. + +The demux kABI only controls front-ends regarding to their connections with +demuxes; the kABI used to set the other front-end parameters, such as +tuning, are defined via the Digital TV Frontend kABI. + +The functions that implement the abstract interface demux should be defined +static or module private and registered to the Demux core for external +access. It is not necessary to implement every function in the struct +:c:type:`dmx_demux`. For example, a demux interface might support Section filtering, +but not PES filtering. The kABI client is expected to check the value of any +function pointer before calling the function: the value of ``NULL`` means +that the function is not available. + +Whenever the functions of the demux API modify shared data, the +possibilities of lost update and race condition problems should be +addressed, e.g. by protecting parts of code with mutexes. + +Note that functions called from a bottom half context must not sleep. +Even a simple memory allocation without using ``GFP_ATOMIC`` can result in a +kernel thread being put to sleep if swapping is needed. For example, the +Linux Kernel calls the functions of a network device interface from a +bottom half context. Thus, if a demux kABI function is called from network +device code, the function must not sleep. + +Demux Callback API +~~~~~~~~~~~~~~~~~~ + +This kernel-space API comprises the callback functions that deliver filtered +data to the demux client. Unlike the other DVB kABIs, these functions are +provided by the client and called from the demux code. + +The function pointers of this abstract interface are not packed into a +structure as in the other demux APIs, because the callback functions are +registered and used independent of each other. As an example, it is possible +for the API client to provide several callback functions for receiving TS +packets and no callbacks for PES packets or sections. + +The functions that implement the callback API need not be re-entrant: when +a demux driver calls one of these functions, the driver is not allowed to +call the function again before the original call returns. If a callback is +triggered by a hardware interrupt, it is recommended to use the Linux +bottom half mechanism or start a tasklet instead of making the callback +function call directly from a hardware interrupt. + +This mechanism is implemented by :c:func:`dmx_ts_cb()` and :c:func:`dmx_section_cb()` +callbacks. + +Digital TV Demux device registration functions and data structures +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. kernel-doc:: include/media/dmxdev.h + +High-level Digital TV demux interface +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. kernel-doc:: include/media/dvb_demux.h + +Driver-internal low-level hardware specific driver demux interface +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. kernel-doc:: include/media/demux.h diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/rc-core.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/rc-core.rst index 29b9550e3..53f5e643b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/rc-core.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/rc-core.rst @@ -1,88 +1,88 @@ -.. SPDX-License-Identifier: GPL-2.0 - -Remote Controller devices -------------------------- - -Remote Controller core -~~~~~~~~~~~~~~~~~~~~~~ - -The remote controller core implements infrastructure to receive and send -remote controller keyboard keystrokes and mouse events. - -Every time a key is pressed on a remote controller, a scan code is produced. -Also, on most hardware, keeping a key pressed for more than a few dozens of -milliseconds produce a repeat key event. That's somewhat similar to what -a normal keyboard or mouse is handled internally on Linux\ [#f1]_. So, the -remote controller core is implemented on the top of the linux input/evdev -interface. - -.. [#f1] - - The main difference is that, on keyboard events, the keyboard controller - produces one event for a key press and another one for key release. On - infrared-based remote controllers, there's no key release event. Instead, - an extra code is produced to indicate key repeats. - -However, most of the remote controllers use infrared (IR) to transmit signals. -As there are several protocols used to modulate infrared signals, one -important part of the core is dedicated to adjust the driver and the core -system to support the infrared protocol used by the emitter. - -The infrared transmission is done by blinking a infrared emitter using a -carrier. The carrier can be switched on or off by the IR transmitter -hardware. When the carrier is switched on, it is called *PULSE*. -When the carrier is switched off, it is called *SPACE*. - -In other words, a typical IR transmission can be viewed as a sequence of -*PULSE* and *SPACE* events, each with a given duration. - -The carrier parameters (frequency, duty cycle) and the intervals for -*PULSE* and *SPACE* events depend on the protocol. -For example, the NEC protocol uses a carrier of 38kHz, and transmissions -start with a 9ms *PULSE* and a 4.5ms SPACE. It then transmits 16 bits of -scan code, being 8 bits for address (usually it is a fixed number for a -given remote controller), followed by 8 bits of code. A bit "1" is modulated -with 560µs *PULSE* followed by 1690µs *SPACE* and a bit "0" is modulated -with 560µs *PULSE* followed by 560µs *SPACE*. - -At receiver, a simple low-pass filter can be used to convert the received -signal in a sequence of *PULSE/SPACE* events, filtering out the carrier -frequency. Due to that, the receiver doesn't care about the carrier's -actual frequency parameters: all it has to do is to measure the amount -of time it receives *PULSE/SPACE* events. -So, a simple IR receiver hardware will just provide a sequence of timings -for those events to the Kernel. The drivers for hardware with such kind of -receivers are identified by ``RC_DRIVER_IR_RAW``, as defined by -:c:type:`rc_driver_type`\ [#f2]_. Other hardware come with a -microcontroller that decode the *PULSE/SPACE* sequence and return scan -codes to the Kernel. Such kind of receivers are identified -by ``RC_DRIVER_SCANCODE``. - -.. [#f2] - - The RC core also supports devices that have just IR emitters, - without any receivers. Right now, all such devices work only in - raw TX mode. Such kind of hardware is identified as - ``RC_DRIVER_IR_RAW_TX``. - -When the RC core receives events produced by ``RC_DRIVER_IR_RAW`` IR -receivers, it needs to decode the IR protocol, in order to obtain the -corresponding scan code. The protocols supported by the RC core are -defined at enum :c:type:`rc_proto`. - -When the RC code receives a scan code (either directly, by a driver -of the type ``RC_DRIVER_SCANCODE``, or via its IR decoders), it needs -to convert into a Linux input event code. This is done via a mapping -table. - -The Kernel has support for mapping tables available on most media -devices. It also supports loading a table in runtime, via some -sysfs nodes. See the :ref:`RC userspace API ` -for more details. - -Remote controller data structures and functions -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -.. kernel-doc:: include/media/rc-core.h - -.. kernel-doc:: include/media/rc-map.h +.. SPDX-License-Identifier: GPL-2.0 + +Remote Controller devices +------------------------- + +Remote Controller core +~~~~~~~~~~~~~~~~~~~~~~ + +The remote controller core implements infrastructure to receive and send +remote controller keyboard keystrokes and mouse events. + +Every time a key is pressed on a remote controller, a scan code is produced. +Also, on most hardware, keeping a key pressed for more than a few dozens of +milliseconds produce a repeat key event. That's somewhat similar to what +a normal keyboard or mouse is handled internally on Linux\ [#f1]_. So, the +remote controller core is implemented on the top of the linux input/evdev +interface. + +.. [#f1] + + The main difference is that, on keyboard events, the keyboard controller + produces one event for a key press and another one for key release. On + infrared-based remote controllers, there's no key release event. Instead, + an extra code is produced to indicate key repeats. + +However, most of the remote controllers use infrared (IR) to transmit signals. +As there are several protocols used to modulate infrared signals, one +important part of the core is dedicated to adjust the driver and the core +system to support the infrared protocol used by the emitter. + +The infrared transmission is done by blinking a infrared emitter using a +carrier. The carrier can be switched on or off by the IR transmitter +hardware. When the carrier is switched on, it is called *PULSE*. +When the carrier is switched off, it is called *SPACE*. + +In other words, a typical IR transmission can be viewed as a sequence of +*PULSE* and *SPACE* events, each with a given duration. + +The carrier parameters (frequency, duty cycle) and the intervals for +*PULSE* and *SPACE* events depend on the protocol. +For example, the NEC protocol uses a carrier of 38kHz, and transmissions +start with a 9ms *PULSE* and a 4.5ms SPACE. It then transmits 16 bits of +scan code, being 8 bits for address (usually it is a fixed number for a +given remote controller), followed by 8 bits of code. A bit "1" is modulated +with 560µs *PULSE* followed by 1690µs *SPACE* and a bit "0" is modulated +with 560µs *PULSE* followed by 560µs *SPACE*. + +At receiver, a simple low-pass filter can be used to convert the received +signal in a sequence of *PULSE/SPACE* events, filtering out the carrier +frequency. Due to that, the receiver doesn't care about the carrier's +actual frequency parameters: all it has to do is to measure the amount +of time it receives *PULSE/SPACE* events. +So, a simple IR receiver hardware will just provide a sequence of timings +for those events to the Kernel. The drivers for hardware with such kind of +receivers are identified by ``RC_DRIVER_IR_RAW``, as defined by +:c:type:`rc_driver_type`\ [#f2]_. Other hardware come with a +microcontroller that decode the *PULSE/SPACE* sequence and return scan +codes to the Kernel. Such kind of receivers are identified +by ``RC_DRIVER_SCANCODE``. + +.. [#f2] + + The RC core also supports devices that have just IR emitters, + without any receivers. Right now, all such devices work only in + raw TX mode. Such kind of hardware is identified as + ``RC_DRIVER_IR_RAW_TX``. + +When the RC core receives events produced by ``RC_DRIVER_IR_RAW`` IR +receivers, it needs to decode the IR protocol, in order to obtain the +corresponding scan code. The protocols supported by the RC core are +defined at enum :c:type:`rc_proto`. + +When the RC code receives a scan code (either directly, by a driver +of the type ``RC_DRIVER_SCANCODE``, or via its IR decoders), it needs +to convert into a Linux input event code. This is done via a mapping +table. + +The Kernel has support for mapping tables available on most media +devices. It also supports loading a table in runtime, via some +sysfs nodes. See the :ref:`RC userspace API ` +for more details. + +Remote controller data structures and functions +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +.. kernel-doc:: include/media/rc-core.h + +.. kernel-doc:: include/media/rc-map.h diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/v4l2-fh.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/v4l2-fh.rst index cf041286f..3eeaa8da0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/v4l2-fh.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/media/v4l2-fh.rst @@ -1,141 +1,141 @@ -.. SPDX-License-Identifier: GPL-2.0 - -V4L2 File handlers ------------------- - -struct v4l2_fh provides a way to easily keep file handle specific -data that is used by the V4L2 framework. - -.. attention:: - New drivers must use struct v4l2_fh - since it is also used to implement priority handling - (:ref:`VIDIOC_G_PRIORITY`). - -The users of :c:type:`v4l2_fh` (in the V4L2 framework, not the driver) know -whether a driver uses :c:type:`v4l2_fh` as its ``file->private_data`` pointer -by testing the ``V4L2_FL_USES_V4L2_FH`` bit in :c:type:`video_device`->flags. -This bit is set whenever :c:func:`v4l2_fh_init` is called. - -struct v4l2_fh is allocated as a part of the driver's own file handle -structure and ``file->private_data`` is set to it in the driver's ``open()`` -function by the driver. - -In many cases the struct v4l2_fh will be embedded in a larger -structure. In that case you should call: - -#) :c:func:`v4l2_fh_init` and :c:func:`v4l2_fh_add` in ``open()`` -#) :c:func:`v4l2_fh_del` and :c:func:`v4l2_fh_exit` in ``release()`` - -Drivers can extract their own file handle structure by using the container_of -macro. - -Example: - -.. code-block:: c - - struct my_fh { - int blah; - struct v4l2_fh fh; - }; - - ... - - int my_open(struct file *file) - { - struct my_fh *my_fh; - struct video_device *vfd; - int ret; - - ... - - my_fh = kzalloc(sizeof(*my_fh), GFP_KERNEL); - - ... - - v4l2_fh_init(&my_fh->fh, vfd); - - ... - - file->private_data = &my_fh->fh; - v4l2_fh_add(&my_fh->fh); - return 0; - } - - int my_release(struct file *file) - { - struct v4l2_fh *fh = file->private_data; - struct my_fh *my_fh = container_of(fh, struct my_fh, fh); - - ... - v4l2_fh_del(&my_fh->fh); - v4l2_fh_exit(&my_fh->fh); - kfree(my_fh); - return 0; - } - -Below is a short description of the :c:type:`v4l2_fh` functions used: - -:c:func:`v4l2_fh_init ` -(:c:type:`fh `, :c:type:`vdev `) - - -- Initialise the file handle. This **MUST** be performed in the driver's - :c:type:`v4l2_file_operations`->open() handler. - - -:c:func:`v4l2_fh_add ` -(:c:type:`fh `) - -- Add a :c:type:`v4l2_fh` to :c:type:`video_device` file handle list. - Must be called once the file handle is completely initialized. - -:c:func:`v4l2_fh_del ` -(:c:type:`fh `) - -- Unassociate the file handle from :c:type:`video_device`. The file handle - exit function may now be called. - -:c:func:`v4l2_fh_exit ` -(:c:type:`fh `) - -- Uninitialise the file handle. After uninitialisation the :c:type:`v4l2_fh` - memory can be freed. - - -If struct v4l2_fh is not embedded, then you can use these helper functions: - -:c:func:`v4l2_fh_open ` -(struct file \*filp) - -- This allocates a struct v4l2_fh, initializes it and adds it to - the struct video_device associated with the file struct. - -:c:func:`v4l2_fh_release ` -(struct file \*filp) - -- This deletes it from the struct video_device associated with the - file struct, uninitialised the :c:type:`v4l2_fh` and frees it. - -These two functions can be plugged into the v4l2_file_operation's ``open()`` -and ``release()`` ops. - -Several drivers need to do something when the first file handle is opened and -when the last file handle closes. Two helper functions were added to check -whether the :c:type:`v4l2_fh` struct is the only open filehandle of the -associated device node: - -:c:func:`v4l2_fh_is_singular ` -(:c:type:`fh `) - -- Returns 1 if the file handle is the only open file handle, else 0. - -:c:func:`v4l2_fh_is_singular_file ` -(struct file \*filp) - -- Same, but it calls v4l2_fh_is_singular with filp->private_data. - - -V4L2 fh functions and data structures -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -.. kernel-doc:: include/media/v4l2-fh.h +.. SPDX-License-Identifier: GPL-2.0 + +V4L2 File handlers +------------------ + +struct v4l2_fh provides a way to easily keep file handle specific +data that is used by the V4L2 framework. + +.. attention:: + New drivers must use struct v4l2_fh + since it is also used to implement priority handling + (:ref:`VIDIOC_G_PRIORITY`). + +The users of :c:type:`v4l2_fh` (in the V4L2 framework, not the driver) know +whether a driver uses :c:type:`v4l2_fh` as its ``file->private_data`` pointer +by testing the ``V4L2_FL_USES_V4L2_FH`` bit in :c:type:`video_device`->flags. +This bit is set whenever :c:func:`v4l2_fh_init` is called. + +struct v4l2_fh is allocated as a part of the driver's own file handle +structure and ``file->private_data`` is set to it in the driver's ``open()`` +function by the driver. + +In many cases the struct v4l2_fh will be embedded in a larger +structure. In that case you should call: + +#) :c:func:`v4l2_fh_init` and :c:func:`v4l2_fh_add` in ``open()`` +#) :c:func:`v4l2_fh_del` and :c:func:`v4l2_fh_exit` in ``release()`` + +Drivers can extract their own file handle structure by using the container_of +macro. + +Example: + +.. code-block:: c + + struct my_fh { + int blah; + struct v4l2_fh fh; + }; + + ... + + int my_open(struct file *file) + { + struct my_fh *my_fh; + struct video_device *vfd; + int ret; + + ... + + my_fh = kzalloc(sizeof(*my_fh), GFP_KERNEL); + + ... + + v4l2_fh_init(&my_fh->fh, vfd); + + ... + + file->private_data = &my_fh->fh; + v4l2_fh_add(&my_fh->fh); + return 0; + } + + int my_release(struct file *file) + { + struct v4l2_fh *fh = file->private_data; + struct my_fh *my_fh = container_of(fh, struct my_fh, fh); + + ... + v4l2_fh_del(&my_fh->fh); + v4l2_fh_exit(&my_fh->fh); + kfree(my_fh); + return 0; + } + +Below is a short description of the :c:type:`v4l2_fh` functions used: + +:c:func:`v4l2_fh_init ` +(:c:type:`fh `, :c:type:`vdev `) + + +- Initialise the file handle. This **MUST** be performed in the driver's + :c:type:`v4l2_file_operations`->open() handler. + + +:c:func:`v4l2_fh_add ` +(:c:type:`fh `) + +- Add a :c:type:`v4l2_fh` to :c:type:`video_device` file handle list. + Must be called once the file handle is completely initialized. + +:c:func:`v4l2_fh_del ` +(:c:type:`fh `) + +- Unassociate the file handle from :c:type:`video_device`. The file handle + exit function may now be called. + +:c:func:`v4l2_fh_exit ` +(:c:type:`fh `) + +- Uninitialise the file handle. After uninitialisation the :c:type:`v4l2_fh` + memory can be freed. + + +If struct v4l2_fh is not embedded, then you can use these helper functions: + +:c:func:`v4l2_fh_open ` +(struct file \*filp) + +- This allocates a struct v4l2_fh, initializes it and adds it to + the struct video_device associated with the file struct. + +:c:func:`v4l2_fh_release ` +(struct file \*filp) + +- This deletes it from the struct video_device associated with the + file struct, uninitialised the :c:type:`v4l2_fh` and frees it. + +These two functions can be plugged into the v4l2_file_operation's ``open()`` +and ``release()`` ops. + +Several drivers need to do something when the first file handle is opened and +when the last file handle closes. Two helper functions were added to check +whether the :c:type:`v4l2_fh` struct is the only open filehandle of the +associated device node: + +:c:func:`v4l2_fh_is_singular ` +(:c:type:`fh `) + +- Returns 1 if the file handle is the only open file handle, else 0. + +:c:func:`v4l2_fh_is_singular_file ` +(struct file \*filp) + +- Same, but it calls v4l2_fh_is_singular with filp->private_data. + + +V4L2 fh functions and data structures +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +.. kernel-doc:: include/media/v4l2-fh.h diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/memory-devices/ti-gpmc.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/memory-devices/ti-gpmc.rst index 1cc6a74db..b1bb86871 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/memory-devices/ti-gpmc.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/memory-devices/ti-gpmc.rst @@ -1,179 +1,179 @@ -.. SPDX-License-Identifier: GPL-2.0 - -======================================== -GPMC (General Purpose Memory Controller) -======================================== - -GPMC is an unified memory controller dedicated to interfacing external -memory devices like - - * Asynchronous SRAM like memories and application specific integrated - circuit devices. - * Asynchronous, synchronous, and page mode burst NOR flash devices - NAND flash - * Pseudo-SRAM devices - -GPMC is found on Texas Instruments SoC's (OMAP based) -IP details: https://www.ti.com/lit/pdf/spruh73 section 7.1 - - -GPMC generic timing calculation: -================================ - -GPMC has certain timings that has to be programmed for proper -functioning of the peripheral, while peripheral has another set of -timings. To have peripheral work with gpmc, peripheral timings has to -be translated to the form gpmc can understand. The way it has to be -translated depends on the connected peripheral. Also there is a -dependency for certain gpmc timings on gpmc clock frequency. Hence a -generic timing routine was developed to achieve above requirements. - -Generic routine provides a generic method to calculate gpmc timings -from gpmc peripheral timings. struct gpmc_device_timings fields has to -be updated with timings from the datasheet of the peripheral that is -connected to gpmc. A few of the peripheral timings can be fed either -in time or in cycles, provision to handle this scenario has been -provided (refer struct gpmc_device_timings definition). It may so -happen that timing as specified by peripheral datasheet is not present -in timing structure, in this scenario, try to correlate peripheral -timing to the one available. If that doesn't work, try to add a new -field as required by peripheral, educate generic timing routine to -handle it, make sure that it does not break any of the existing. -Then there may be cases where peripheral datasheet doesn't mention -certain fields of struct gpmc_device_timings, zero those entries. - -Generic timing routine has been verified to work properly on -multiple onenand's and tusb6010 peripherals. - -A word of caution: generic timing routine has been developed based -on understanding of gpmc timings, peripheral timings, available -custom timing routines, a kind of reverse engineering without -most of the datasheets & hardware (to be exact none of those supported -in mainline having custom timing routine) and by simulation. - -gpmc timing dependency on peripheral timings: - -[: , ...] - -1. common - -cs_on: - t_ceasu -adv_on: - t_avdasu, t_ceavd - -2. sync common - -sync_clk: - clk -page_burst_access: - t_bacc -clk_activation: - t_ces, t_avds - -3. read async muxed - -adv_rd_off: - t_avdp_r -oe_on: - t_oeasu, t_aavdh -access: - t_iaa, t_oe, t_ce, t_aa -rd_cycle: - t_rd_cycle, t_cez_r, t_oez - -4. read async non-muxed - -adv_rd_off: - t_avdp_r -oe_on: - t_oeasu -access: - t_iaa, t_oe, t_ce, t_aa -rd_cycle: - t_rd_cycle, t_cez_r, t_oez - -5. read sync muxed - -adv_rd_off: - t_avdp_r, t_avdh -oe_on: - t_oeasu, t_ach, cyc_aavdh_oe -access: - t_iaa, cyc_iaa, cyc_oe -rd_cycle: - t_cez_r, t_oez, t_ce_rdyz - -6. read sync non-muxed - -adv_rd_off: - t_avdp_r -oe_on: - t_oeasu -access: - t_iaa, cyc_iaa, cyc_oe -rd_cycle: - t_cez_r, t_oez, t_ce_rdyz - -7. write async muxed - -adv_wr_off: - t_avdp_w -we_on, wr_data_mux_bus: - t_weasu, t_aavdh, cyc_aavhd_we -we_off: - t_wpl -cs_wr_off: - t_wph -wr_cycle: - t_cez_w, t_wr_cycle - -8. write async non-muxed - -adv_wr_off: - t_avdp_w -we_on, wr_data_mux_bus: - t_weasu -we_off: - t_wpl -cs_wr_off: - t_wph -wr_cycle: - t_cez_w, t_wr_cycle - -9. write sync muxed - -adv_wr_off: - t_avdp_w, t_avdh -we_on, wr_data_mux_bus: - t_weasu, t_rdyo, t_aavdh, cyc_aavhd_we -we_off: - t_wpl, cyc_wpl -cs_wr_off: - t_wph -wr_cycle: - t_cez_w, t_ce_rdyz - -10. write sync non-muxed - -adv_wr_off: - t_avdp_w -we_on, wr_data_mux_bus: - t_weasu, t_rdyo -we_off: - t_wpl, cyc_wpl -cs_wr_off: - t_wph -wr_cycle: - t_cez_w, t_ce_rdyz - - -Note: - Many of gpmc timings are dependent on other gpmc timings (a few - gpmc timings purely dependent on other gpmc timings, a reason that - some of the gpmc timings are missing above), and it will result in - indirect dependency of peripheral timings to gpmc timings other than - mentioned above, refer timing routine for more details. To know what - these peripheral timings correspond to, please see explanations in - struct gpmc_device_timings definition. And for gpmc timings refer - IP details (link above). +.. SPDX-License-Identifier: GPL-2.0 + +======================================== +GPMC (General Purpose Memory Controller) +======================================== + +GPMC is an unified memory controller dedicated to interfacing external +memory devices like + + * Asynchronous SRAM like memories and application specific integrated + circuit devices. + * Asynchronous, synchronous, and page mode burst NOR flash devices + NAND flash + * Pseudo-SRAM devices + +GPMC is found on Texas Instruments SoC's (OMAP based) +IP details: https://www.ti.com/lit/pdf/spruh73 section 7.1 + + +GPMC generic timing calculation: +================================ + +GPMC has certain timings that has to be programmed for proper +functioning of the peripheral, while peripheral has another set of +timings. To have peripheral work with gpmc, peripheral timings has to +be translated to the form gpmc can understand. The way it has to be +translated depends on the connected peripheral. Also there is a +dependency for certain gpmc timings on gpmc clock frequency. Hence a +generic timing routine was developed to achieve above requirements. + +Generic routine provides a generic method to calculate gpmc timings +from gpmc peripheral timings. struct gpmc_device_timings fields has to +be updated with timings from the datasheet of the peripheral that is +connected to gpmc. A few of the peripheral timings can be fed either +in time or in cycles, provision to handle this scenario has been +provided (refer struct gpmc_device_timings definition). It may so +happen that timing as specified by peripheral datasheet is not present +in timing structure, in this scenario, try to correlate peripheral +timing to the one available. If that doesn't work, try to add a new +field as required by peripheral, educate generic timing routine to +handle it, make sure that it does not break any of the existing. +Then there may be cases where peripheral datasheet doesn't mention +certain fields of struct gpmc_device_timings, zero those entries. + +Generic timing routine has been verified to work properly on +multiple onenand's and tusb6010 peripherals. + +A word of caution: generic timing routine has been developed based +on understanding of gpmc timings, peripheral timings, available +custom timing routines, a kind of reverse engineering without +most of the datasheets & hardware (to be exact none of those supported +in mainline having custom timing routine) and by simulation. + +gpmc timing dependency on peripheral timings: + +[: , ...] + +1. common + +cs_on: + t_ceasu +adv_on: + t_avdasu, t_ceavd + +2. sync common + +sync_clk: + clk +page_burst_access: + t_bacc +clk_activation: + t_ces, t_avds + +3. read async muxed + +adv_rd_off: + t_avdp_r +oe_on: + t_oeasu, t_aavdh +access: + t_iaa, t_oe, t_ce, t_aa +rd_cycle: + t_rd_cycle, t_cez_r, t_oez + +4. read async non-muxed + +adv_rd_off: + t_avdp_r +oe_on: + t_oeasu +access: + t_iaa, t_oe, t_ce, t_aa +rd_cycle: + t_rd_cycle, t_cez_r, t_oez + +5. read sync muxed + +adv_rd_off: + t_avdp_r, t_avdh +oe_on: + t_oeasu, t_ach, cyc_aavdh_oe +access: + t_iaa, cyc_iaa, cyc_oe +rd_cycle: + t_cez_r, t_oez, t_ce_rdyz + +6. read sync non-muxed + +adv_rd_off: + t_avdp_r +oe_on: + t_oeasu +access: + t_iaa, cyc_iaa, cyc_oe +rd_cycle: + t_cez_r, t_oez, t_ce_rdyz + +7. write async muxed + +adv_wr_off: + t_avdp_w +we_on, wr_data_mux_bus: + t_weasu, t_aavdh, cyc_aavhd_we +we_off: + t_wpl +cs_wr_off: + t_wph +wr_cycle: + t_cez_w, t_wr_cycle + +8. write async non-muxed + +adv_wr_off: + t_avdp_w +we_on, wr_data_mux_bus: + t_weasu +we_off: + t_wpl +cs_wr_off: + t_wph +wr_cycle: + t_cez_w, t_wr_cycle + +9. write sync muxed + +adv_wr_off: + t_avdp_w, t_avdh +we_on, wr_data_mux_bus: + t_weasu, t_rdyo, t_aavdh, cyc_aavhd_we +we_off: + t_wpl, cyc_wpl +cs_wr_off: + t_wph +wr_cycle: + t_cez_w, t_ce_rdyz + +10. write sync non-muxed + +adv_wr_off: + t_avdp_w +we_on, wr_data_mux_bus: + t_weasu, t_rdyo +we_off: + t_wpl, cyc_wpl +cs_wr_off: + t_wph +wr_cycle: + t_cez_w, t_ce_rdyz + + +Note: + Many of gpmc timings are dependent on other gpmc timings (a few + gpmc timings purely dependent on other gpmc timings, a reason that + some of the gpmc timings are missing above), and it will result in + indirect dependency of peripheral timings to gpmc timings other than + mentioned above, refer timing routine for more details. To know what + these peripheral timings correspond to, please see explanations in + struct gpmc_device_timings definition. And for gpmc timings refer + IP details (link above). diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/mmc/mmc-async-req.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/mmc/mmc-async-req.rst index 0683f3f3e..0f7197c9c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/mmc/mmc-async-req.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/mmc/mmc-async-req.rst @@ -1,98 +1,98 @@ -======================== -MMC Asynchronous Request -======================== - -Rationale -========= - -How significant is the cache maintenance overhead? - -It depends. Fast eMMC and multiple cache levels with speculative cache -pre-fetch makes the cache overhead relatively significant. If the DMA -preparations for the next request are done in parallel with the current -transfer, the DMA preparation overhead would not affect the MMC performance. - -The intention of non-blocking (asynchronous) MMC requests is to minimize the -time between when an MMC request ends and another MMC request begins. - -Using mmc_wait_for_req(), the MMC controller is idle while dma_map_sg and -dma_unmap_sg are processing. Using non-blocking MMC requests makes it -possible to prepare the caches for next job in parallel with an active -MMC request. - -MMC block driver -================ - -The mmc_blk_issue_rw_rq() in the MMC block driver is made non-blocking. - -The increase in throughput is proportional to the time it takes to -prepare (major part of preparations are dma_map_sg() and dma_unmap_sg()) -a request and how fast the memory is. The faster the MMC/SD is the -more significant the prepare request time becomes. Roughly the expected -performance gain is 5% for large writes and 10% on large reads on a L2 cache -platform. In power save mode, when clocks run on a lower frequency, the DMA -preparation may cost even more. As long as these slower preparations are run -in parallel with the transfer performance won't be affected. - -Details on measurements from IOZone and mmc_test -================================================ - -https://wiki.linaro.org/WorkingGroups/Kernel/Specs/StoragePerfMMC-async-req - -MMC core API extension -====================== - -There is one new public function mmc_start_req(). - -It starts a new MMC command request for a host. The function isn't -truly non-blocking. If there is an ongoing async request it waits -for completion of that request and starts the new one and returns. It -doesn't wait for the new request to complete. If there is no ongoing -request it starts the new request and returns immediately. - -MMC host extensions -=================== - -There are two optional members in the mmc_host_ops -- pre_req() and -post_req() -- that the host driver may implement in order to move work -to before and after the actual mmc_host_ops.request() function is called. - -In the DMA case pre_req() may do dma_map_sg() and prepare the DMA -descriptor, and post_req() runs the dma_unmap_sg(). - -Optimize for the first request -============================== - -The first request in a series of requests can't be prepared in parallel -with the previous transfer, since there is no previous request. - -The argument is_first_req in pre_req() indicates that there is no previous -request. The host driver may optimize for this scenario to minimize -the performance loss. A way to optimize for this is to split the current -request in two chunks, prepare the first chunk and start the request, -and finally prepare the second chunk and start the transfer. - -Pseudocode to handle is_first_req scenario with minimal prepare overhead:: - - if (is_first_req && req->size > threshold) - /* start MMC transfer for the complete transfer size */ - mmc_start_command(MMC_CMD_TRANSFER_FULL_SIZE); - - /* - * Begin to prepare DMA while cmd is being processed by MMC. - * The first chunk of the request should take the same time - * to prepare as the "MMC process command time". - * If prepare time exceeds MMC cmd time - * the transfer is delayed, guesstimate max 4k as first chunk size. - */ - prepare_1st_chunk_for_dma(req); - /* flush pending desc to the DMAC (dmaengine.h) */ - dma_issue_pending(req->dma_desc); - - prepare_2nd_chunk_for_dma(req); - /* - * The second issue_pending should be called before MMC runs out - * of the first chunk. If the MMC runs out of the first data chunk - * before this call, the transfer is delayed. - */ - dma_issue_pending(req->dma_desc); +======================== +MMC Asynchronous Request +======================== + +Rationale +========= + +How significant is the cache maintenance overhead? + +It depends. Fast eMMC and multiple cache levels with speculative cache +pre-fetch makes the cache overhead relatively significant. If the DMA +preparations for the next request are done in parallel with the current +transfer, the DMA preparation overhead would not affect the MMC performance. + +The intention of non-blocking (asynchronous) MMC requests is to minimize the +time between when an MMC request ends and another MMC request begins. + +Using mmc_wait_for_req(), the MMC controller is idle while dma_map_sg and +dma_unmap_sg are processing. Using non-blocking MMC requests makes it +possible to prepare the caches for next job in parallel with an active +MMC request. + +MMC block driver +================ + +The mmc_blk_issue_rw_rq() in the MMC block driver is made non-blocking. + +The increase in throughput is proportional to the time it takes to +prepare (major part of preparations are dma_map_sg() and dma_unmap_sg()) +a request and how fast the memory is. The faster the MMC/SD is the +more significant the prepare request time becomes. Roughly the expected +performance gain is 5% for large writes and 10% on large reads on a L2 cache +platform. In power save mode, when clocks run on a lower frequency, the DMA +preparation may cost even more. As long as these slower preparations are run +in parallel with the transfer performance won't be affected. + +Details on measurements from IOZone and mmc_test +================================================ + +https://wiki.linaro.org/WorkingGroups/Kernel/Specs/StoragePerfMMC-async-req + +MMC core API extension +====================== + +There is one new public function mmc_start_req(). + +It starts a new MMC command request for a host. The function isn't +truly non-blocking. If there is an ongoing async request it waits +for completion of that request and starts the new one and returns. It +doesn't wait for the new request to complete. If there is no ongoing +request it starts the new request and returns immediately. + +MMC host extensions +=================== + +There are two optional members in the mmc_host_ops -- pre_req() and +post_req() -- that the host driver may implement in order to move work +to before and after the actual mmc_host_ops.request() function is called. + +In the DMA case pre_req() may do dma_map_sg() and prepare the DMA +descriptor, and post_req() runs the dma_unmap_sg(). + +Optimize for the first request +============================== + +The first request in a series of requests can't be prepared in parallel +with the previous transfer, since there is no previous request. + +The argument is_first_req in pre_req() indicates that there is no previous +request. The host driver may optimize for this scenario to minimize +the performance loss. A way to optimize for this is to split the current +request in two chunks, prepare the first chunk and start the request, +and finally prepare the second chunk and start the transfer. + +Pseudocode to handle is_first_req scenario with minimal prepare overhead:: + + if (is_first_req && req->size > threshold) + /* start MMC transfer for the complete transfer size */ + mmc_start_command(MMC_CMD_TRANSFER_FULL_SIZE); + + /* + * Begin to prepare DMA while cmd is being processed by MMC. + * The first chunk of the request should take the same time + * to prepare as the "MMC process command time". + * If prepare time exceeds MMC cmd time + * the transfer is delayed, guesstimate max 4k as first chunk size. + */ + prepare_1st_chunk_for_dma(req); + /* flush pending desc to the DMAC (dmaengine.h) */ + dma_issue_pending(req->dma_desc); + + prepare_2nd_chunk_for_dma(req); + /* + * The second issue_pending should be called before MMC runs out + * of the first chunk. If the MMC runs out of the first data chunk + * before this call, the transfer is delayed. + */ + dma_issue_pending(req->dma_desc); diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/mmc/mmc-dev-attrs.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/mmc/mmc-dev-attrs.rst index 9e0b0d3cf..4f44b1b73 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/mmc/mmc-dev-attrs.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/mmc/mmc-dev-attrs.rst @@ -1,91 +1,91 @@ -================================== -SD and MMC Block Device Attributes -================================== - -These attributes are defined for the block devices associated with the -SD or MMC device. - -The following attributes are read/write. - - ======== =============================================== - force_ro Enforce read-only access even if write protect switch is off. - ======== =============================================== - -SD and MMC Device Attributes -============================ - -All attributes are read-only. - - ====================== =============================================== - cid Card Identification Register - csd Card Specific Data Register - scr SD Card Configuration Register (SD only) - date Manufacturing Date (from CID Register) - fwrev Firmware/Product Revision (from CID Register) - (SD and MMCv1 only) - hwrev Hardware/Product Revision (from CID Register) - (SD and MMCv1 only) - manfid Manufacturer ID (from CID Register) - name Product Name (from CID Register) - oemid OEM/Application ID (from CID Register) - prv Product Revision (from CID Register) - (SD and MMCv4 only) - serial Product Serial Number (from CID Register) - erase_size Erase group size - preferred_erase_size Preferred erase size - raw_rpmb_size_mult RPMB partition size - rel_sectors Reliable write sector count - ocr Operation Conditions Register - dsr Driver Stage Register - cmdq_en Command Queue enabled: - - 1 => enabled, 0 => not enabled - ====================== =============================================== - -Note on Erase Size and Preferred Erase Size: - - "erase_size" is the minimum size, in bytes, of an erase - operation. For MMC, "erase_size" is the erase group size - reported by the card. Note that "erase_size" does not apply - to trim or secure trim operations where the minimum size is - always one 512 byte sector. For SD, "erase_size" is 512 - if the card is block-addressed, 0 otherwise. - - SD/MMC cards can erase an arbitrarily large area up to and - including the whole card. When erasing a large area it may - be desirable to do it in smaller chunks for three reasons: - - 1. A single erase command will make all other I/O on - the card wait. This is not a problem if the whole card - is being erased, but erasing one partition will make - I/O for another partition on the same card wait for the - duration of the erase - which could be a several - minutes. - 2. To be able to inform the user of erase progress. - 3. The erase timeout becomes too large to be very - useful. Because the erase timeout contains a margin - which is multiplied by the size of the erase area, - the value can end up being several minutes for large - areas. - - "erase_size" is not the most efficient unit to erase - (especially for SD where it is just one sector), - hence "preferred_erase_size" provides a good chunk - size for erasing large areas. - - For MMC, "preferred_erase_size" is the high-capacity - erase size if a card specifies one, otherwise it is - based on the capacity of the card. - - For SD, "preferred_erase_size" is the allocation unit - size specified by the card. - - "preferred_erase_size" is in bytes. - -Note on raw_rpmb_size_mult: - - "raw_rpmb_size_mult" is a multiple of 128kB block. - - RPMB size in byte is calculated by using the following equation: - - RPMB partition size = 128kB x raw_rpmb_size_mult +================================== +SD and MMC Block Device Attributes +================================== + +These attributes are defined for the block devices associated with the +SD or MMC device. + +The following attributes are read/write. + + ======== =============================================== + force_ro Enforce read-only access even if write protect switch is off. + ======== =============================================== + +SD and MMC Device Attributes +============================ + +All attributes are read-only. + + ====================== =============================================== + cid Card Identification Register + csd Card Specific Data Register + scr SD Card Configuration Register (SD only) + date Manufacturing Date (from CID Register) + fwrev Firmware/Product Revision (from CID Register) + (SD and MMCv1 only) + hwrev Hardware/Product Revision (from CID Register) + (SD and MMCv1 only) + manfid Manufacturer ID (from CID Register) + name Product Name (from CID Register) + oemid OEM/Application ID (from CID Register) + prv Product Revision (from CID Register) + (SD and MMCv4 only) + serial Product Serial Number (from CID Register) + erase_size Erase group size + preferred_erase_size Preferred erase size + raw_rpmb_size_mult RPMB partition size + rel_sectors Reliable write sector count + ocr Operation Conditions Register + dsr Driver Stage Register + cmdq_en Command Queue enabled: + + 1 => enabled, 0 => not enabled + ====================== =============================================== + +Note on Erase Size and Preferred Erase Size: + + "erase_size" is the minimum size, in bytes, of an erase + operation. For MMC, "erase_size" is the erase group size + reported by the card. Note that "erase_size" does not apply + to trim or secure trim operations where the minimum size is + always one 512 byte sector. For SD, "erase_size" is 512 + if the card is block-addressed, 0 otherwise. + + SD/MMC cards can erase an arbitrarily large area up to and + including the whole card. When erasing a large area it may + be desirable to do it in smaller chunks for three reasons: + + 1. A single erase command will make all other I/O on + the card wait. This is not a problem if the whole card + is being erased, but erasing one partition will make + I/O for another partition on the same card wait for the + duration of the erase - which could be a several + minutes. + 2. To be able to inform the user of erase progress. + 3. The erase timeout becomes too large to be very + useful. Because the erase timeout contains a margin + which is multiplied by the size of the erase area, + the value can end up being several minutes for large + areas. + + "erase_size" is not the most efficient unit to erase + (especially for SD where it is just one sector), + hence "preferred_erase_size" provides a good chunk + size for erasing large areas. + + For MMC, "preferred_erase_size" is the high-capacity + erase size if a card specifies one, otherwise it is + based on the capacity of the card. + + For SD, "preferred_erase_size" is the allocation unit + size specified by the card. + + "preferred_erase_size" is in bytes. + +Note on raw_rpmb_size_mult: + + "raw_rpmb_size_mult" is a multiple of 128kB block. + + RPMB size in byte is calculated by using the following equation: + + RPMB partition size = 128kB x raw_rpmb_size_mult diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/nvdimm/firmware-activate.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/nvdimm/firmware-activate.rst index bb1b390cd..7ee7decbb 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/nvdimm/firmware-activate.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/nvdimm/firmware-activate.rst @@ -1,86 +1,86 @@ -.. SPDX-License-Identifier: GPL-2.0 - -================================== -NVDIMM Runtime Firmware Activation -================================== - -Some persistent memory devices run a firmware locally on the device / -"DIMM" to perform tasks like media management, capacity provisioning, -and health monitoring. The process of updating that firmware typically -involves a reboot because it has implications for in-flight memory -transactions. However, reboots are disruptive and at least the Intel -persistent memory platform implementation, described by the Intel ACPI -DSM specification [1], has added support for activating firmware at -runtime. - -A native sysfs interface is implemented in libnvdimm to allow platform -to advertise and control their local runtime firmware activation -capability. - -The libnvdimm bus object, ndbusX, implements an ndbusX/firmware/activate -attribute that shows the state of the firmware activation as one of 'idle', -'armed', 'overflow', and 'busy'. - -- idle: - No devices are set / armed to activate firmware - -- armed: - At least one device is armed - -- busy: - In the busy state armed devices are in the process of transitioning - back to idle and completing an activation cycle. - -- overflow: - If the platform has a concept of incremental work needed to perform - the activation it could be the case that too many DIMMs are armed for - activation. In that scenario the potential for firmware activation to - timeout is indicated by the 'overflow' state. - -The 'ndbusX/firmware/activate' property can be written with a value of -either 'live', or 'quiesce'. A value of 'quiesce' triggers the kernel to -run firmware activation from within the equivalent of the hibernation -'freeze' state where drivers and applications are notified to stop their -modifications of system memory. A value of 'live' attempts -firmware activation without this hibernation cycle. The -'ndbusX/firmware/activate' property will be elided completely if no -firmware activation capability is detected. - -Another property 'ndbusX/firmware/capability' indicates a value of -'live' or 'quiesce', where 'live' indicates that the firmware -does not require or inflict any quiesce period on the system to update -firmware. A capability value of 'quiesce' indicates that firmware does -expect and injects a quiet period for the memory controller, but 'live' -may still be written to 'ndbusX/firmware/activate' as an override to -assume the risk of racing firmware update with in-flight device and -application activity. The 'ndbusX/firmware/capability' property will be -elided completely if no firmware activation capability is detected. - -The libnvdimm memory-device / DIMM object, nmemX, implements -'nmemX/firmware/activate' and 'nmemX/firmware/result' attributes to -communicate the per-device firmware activation state. Similar to the -'ndbusX/firmware/activate' attribute, the 'nmemX/firmware/activate' -attribute indicates 'idle', 'armed', or 'busy'. The state transitions -from 'armed' to 'idle' when the system is prepared to activate firmware, -firmware staged + state set to armed, and 'ndbusX/firmware/activate' is -triggered. After that activation event the nmemX/firmware/result -attribute reflects the state of the last activation as one of: - -- none: - No runtime activation triggered since the last time the device was reset - -- success: - The last runtime activation completed successfully. - -- fail: - The last runtime activation failed for device-specific reasons. - -- not_staged: - The last runtime activation failed due to a sequencing error of the - firmware image not being staged. - -- need_reset: - Runtime firmware activation failed, but the firmware can still be - activated via the legacy method of power-cycling the system. - -[1]: https://docs.pmem.io/persistent-memory/ +.. SPDX-License-Identifier: GPL-2.0 + +================================== +NVDIMM Runtime Firmware Activation +================================== + +Some persistent memory devices run a firmware locally on the device / +"DIMM" to perform tasks like media management, capacity provisioning, +and health monitoring. The process of updating that firmware typically +involves a reboot because it has implications for in-flight memory +transactions. However, reboots are disruptive and at least the Intel +persistent memory platform implementation, described by the Intel ACPI +DSM specification [1], has added support for activating firmware at +runtime. + +A native sysfs interface is implemented in libnvdimm to allow platform +to advertise and control their local runtime firmware activation +capability. + +The libnvdimm bus object, ndbusX, implements an ndbusX/firmware/activate +attribute that shows the state of the firmware activation as one of 'idle', +'armed', 'overflow', and 'busy'. + +- idle: + No devices are set / armed to activate firmware + +- armed: + At least one device is armed + +- busy: + In the busy state armed devices are in the process of transitioning + back to idle and completing an activation cycle. + +- overflow: + If the platform has a concept of incremental work needed to perform + the activation it could be the case that too many DIMMs are armed for + activation. In that scenario the potential for firmware activation to + timeout is indicated by the 'overflow' state. + +The 'ndbusX/firmware/activate' property can be written with a value of +either 'live', or 'quiesce'. A value of 'quiesce' triggers the kernel to +run firmware activation from within the equivalent of the hibernation +'freeze' state where drivers and applications are notified to stop their +modifications of system memory. A value of 'live' attempts +firmware activation without this hibernation cycle. The +'ndbusX/firmware/activate' property will be elided completely if no +firmware activation capability is detected. + +Another property 'ndbusX/firmware/capability' indicates a value of +'live' or 'quiesce', where 'live' indicates that the firmware +does not require or inflict any quiesce period on the system to update +firmware. A capability value of 'quiesce' indicates that firmware does +expect and injects a quiet period for the memory controller, but 'live' +may still be written to 'ndbusX/firmware/activate' as an override to +assume the risk of racing firmware update with in-flight device and +application activity. The 'ndbusX/firmware/capability' property will be +elided completely if no firmware activation capability is detected. + +The libnvdimm memory-device / DIMM object, nmemX, implements +'nmemX/firmware/activate' and 'nmemX/firmware/result' attributes to +communicate the per-device firmware activation state. Similar to the +'ndbusX/firmware/activate' attribute, the 'nmemX/firmware/activate' +attribute indicates 'idle', 'armed', or 'busy'. The state transitions +from 'armed' to 'idle' when the system is prepared to activate firmware, +firmware staged + state set to armed, and 'ndbusX/firmware/activate' is +triggered. After that activation event the nmemX/firmware/result +attribute reflects the state of the last activation as one of: + +- none: + No runtime activation triggered since the last time the device was reset + +- success: + The last runtime activation completed successfully. + +- fail: + The last runtime activation failed for device-specific reasons. + +- not_staged: + The last runtime activation failed due to a sequencing error of the + firmware image not being staged. + +- need_reset: + Runtime firmware activation failed, but the firmware can still be + activated via the legacy method of power-cycling the system. + +[1]: https://docs.pmem.io/persistent-memory/ diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/pwrseq.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/pwrseq.rst index ab2c2e4e5..a644084de 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/pwrseq.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/pwrseq.rst @@ -1,95 +1,95 @@ -.. SPDX-License-Identifier: GPL-2.0-only -.. Copyright 2024 Linaro Ltd. - -==================== -Power Sequencing API -==================== - -:Author: Bartosz Golaszewski - -Introduction -============ - -This framework is designed to abstract complex power-up sequences that are -shared between multiple logical devices in the linux kernel. - -The intention is to allow consumers to obtain a power sequencing handle -exposed by the power sequence provider and delegate the actual requesting and -control of the underlying resources as well as to allow the provider to -mitigate any potential conflicts between multiple users behind the scenes. - -Glossary --------- - -The power sequencing API uses a number of terms specific to the subsystem: - -Unit - - A unit is a discreet chunk of a power sequence. For instance one unit may - enable a set of regulators, another may enable a specific GPIO. Units can - define dependencies in the form of other units that must be enabled before - it itself can be. - -Target - - A target is a set of units (composed of the "final" unit and its - dependencies) that a consumer selects by its name when requesting a handle - to the power sequencer. Via the dependency system, multiple targets may - share the same parts of a power sequence but ignore parts that are - irrelevant. - -Descriptor - - A handle passed by the pwrseq core to every consumer that serves as the - entry point to the provider layer. It ensures coherence between different - users and keeps reference counting consistent. - -Consumer interface -================== - -The consumer API is aimed to be as simple as possible. The driver interested in -getting a descriptor from the power sequencer should call pwrseq_get() and -specify the name of the target it wants to reach in the sequence after calling -pwrseq_power_up(). The descriptor can be released by calling pwrseq_put() and -the consumer can request the powering down of its target with -pwrseq_power_off(). Note that there is no guarantee that pwrseq_power_off() -will have any effect as there may be multiple users of the underlying resources -who may keep them active. - -Provider interface -================== - -The provider API is admittedly not nearly as straightforward as the one for -consumers but it makes up for it in flexibility. - -Each provider can logically split the power-up sequence into descrete chunks -(units) and define their dependencies. They can then expose named targets that -consumers may use as the final point in the sequence that they wish to reach. - -To that end the providers fill out a set of configuration structures and -register with the pwrseq subsystem by calling pwrseq_device_register(). - -Dynamic consumer matching -------------------------- - -The main difference between pwrseq and other linux kernel providers is the -mechanism for dynamic matching of consumers and providers. Every power sequence -provider driver must implement the `match()` callback and pass it to the pwrseq -core when registering with the subsystems. - -When a client requests a sequencer handle, the core will call this callback for -every registered provider and let it flexibly figure out whether the proposed -client device is indeed its consumer. For example: if the provider binds to the -device-tree node representing a power management unit of a chipset and the -consumer driver controls one of its modules, the provider driver may parse the -relevant regulator supply properties in device tree and see if they lead from -the PMU to the consumer. - -API reference -============= - -.. kernel-doc:: include/linux/pwrseq/provider.h - :internal: - -.. kernel-doc:: drivers/power/sequencing/core.c - :export: +.. SPDX-License-Identifier: GPL-2.0-only +.. Copyright 2024 Linaro Ltd. + +==================== +Power Sequencing API +==================== + +:Author: Bartosz Golaszewski + +Introduction +============ + +This framework is designed to abstract complex power-up sequences that are +shared between multiple logical devices in the linux kernel. + +The intention is to allow consumers to obtain a power sequencing handle +exposed by the power sequence provider and delegate the actual requesting and +control of the underlying resources as well as to allow the provider to +mitigate any potential conflicts between multiple users behind the scenes. + +Glossary +-------- + +The power sequencing API uses a number of terms specific to the subsystem: + +Unit + + A unit is a discreet chunk of a power sequence. For instance one unit may + enable a set of regulators, another may enable a specific GPIO. Units can + define dependencies in the form of other units that must be enabled before + it itself can be. + +Target + + A target is a set of units (composed of the "final" unit and its + dependencies) that a consumer selects by its name when requesting a handle + to the power sequencer. Via the dependency system, multiple targets may + share the same parts of a power sequence but ignore parts that are + irrelevant. + +Descriptor + + A handle passed by the pwrseq core to every consumer that serves as the + entry point to the provider layer. It ensures coherence between different + users and keeps reference counting consistent. + +Consumer interface +================== + +The consumer API is aimed to be as simple as possible. The driver interested in +getting a descriptor from the power sequencer should call pwrseq_get() and +specify the name of the target it wants to reach in the sequence after calling +pwrseq_power_up(). The descriptor can be released by calling pwrseq_put() and +the consumer can request the powering down of its target with +pwrseq_power_off(). Note that there is no guarantee that pwrseq_power_off() +will have any effect as there may be multiple users of the underlying resources +who may keep them active. + +Provider interface +================== + +The provider API is admittedly not nearly as straightforward as the one for +consumers but it makes up for it in flexibility. + +Each provider can logically split the power-up sequence into descrete chunks +(units) and define their dependencies. They can then expose named targets that +consumers may use as the final point in the sequence that they wish to reach. + +To that end the providers fill out a set of configuration structures and +register with the pwrseq subsystem by calling pwrseq_device_register(). + +Dynamic consumer matching +------------------------- + +The main difference between pwrseq and other linux kernel providers is the +mechanism for dynamic matching of consumers and providers. Every power sequence +provider driver must implement the `match()` callback and pass it to the pwrseq +core when registering with the subsystems. + +When a client requests a sequencer handle, the core will call this callback for +every registered provider and let it flexibly figure out whether the proposed +client device is indeed its consumer. For example: if the provider binds to the +device-tree node representing a power management unit of a chipset and the +consumer driver controls one of its modules, the provider driver may parse the +relevant regulator supply properties in device tree and see if they lead from +the PMU to the consumer. + +API reference +============= + +.. kernel-doc:: include/linux/pwrseq/provider.h + :internal: + +.. kernel-doc:: drivers/power/sequencing/core.c + :export: diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/serial/driver.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/serial/driver.rst index 1753317dd..60434f2b0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/serial/driver.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/serial/driver.rst @@ -1,106 +1,106 @@ -==================== -Low Level Serial API -==================== - - -This document is meant as a brief overview of some aspects of the new serial -driver. It is not complete, any questions you have should be directed to - - -The reference implementation is contained within amba-pl011.c. - - - -Low Level Serial Hardware Driver --------------------------------- - -The low level serial hardware driver is responsible for supplying port -information (defined by uart_port) and a set of control methods (defined -by uart_ops) to the core serial driver. The low level driver is also -responsible for handling interrupts for the port, and providing any -console support. - - -Console Support ---------------- - -The serial core provides a few helper functions. This includes identifying -the correct port structure (via uart_get_console()) and decoding command line -arguments (uart_parse_options()). - -There is also a helper function (uart_console_write()) which performs a -character by character write, translating newlines to CRLF sequences. -Driver writers are recommended to use this function rather than implementing -their own version. - - -Locking -------- - -It is the responsibility of the low level hardware driver to perform the -necessary locking using port->lock. There are some exceptions (which -are described in the struct uart_ops listing below.) - -There are two locks. A per-port spinlock, and an overall semaphore. - -From the core driver perspective, the port->lock locks the following -data:: - - port->mctrl - port->icount - port->state->xmit.head (circ_buf->head) - port->state->xmit.tail (circ_buf->tail) - -The low level driver is free to use this lock to provide any additional -locking. - -The port_sem semaphore is used to protect against ports being added/ -removed or reconfigured at inappropriate times. Since v2.6.27, this -semaphore has been the 'mutex' member of the tty_port struct, and -commonly referred to as the port mutex. - - -uart_ops --------- - -.. kernel-doc:: include/linux/serial_core.h - :identifiers: uart_ops - -Other functions ---------------- - -.. kernel-doc:: drivers/tty/serial/serial_core.c - :identifiers: uart_update_timeout uart_get_baud_rate uart_get_divisor - uart_match_port uart_write_wakeup uart_register_driver - uart_unregister_driver uart_suspend_port uart_resume_port - uart_add_one_port uart_remove_one_port uart_console_write - uart_parse_earlycon uart_parse_options uart_set_options - uart_get_lsr_info uart_handle_dcd_change uart_handle_cts_change - uart_try_toggle_sysrq uart_get_console - -.. kernel-doc:: include/linux/serial_core.h - :identifiers: uart_port_tx_limited uart_port_tx - -Other notes ------------ - -It is intended some day to drop the 'unused' entries from uart_port, and -allow low level drivers to register their own individual uart_port's with -the core. This will allow drivers to use uart_port as a pointer to a -structure containing both the uart_port entry with their own extensions, -thus:: - - struct my_port { - struct uart_port port; - int my_stuff; - }; - -Modem control lines via GPIO ----------------------------- - -Some helpers are provided in order to set/get modem control lines via GPIO. - -.. kernel-doc:: drivers/tty/serial/serial_mctrl_gpio.c - :identifiers: mctrl_gpio_init mctrl_gpio_free mctrl_gpio_to_gpiod - mctrl_gpio_set mctrl_gpio_get mctrl_gpio_enable_ms - mctrl_gpio_disable_ms_sync mctrl_gpio_disable_ms_no_sync +==================== +Low Level Serial API +==================== + + +This document is meant as a brief overview of some aspects of the new serial +driver. It is not complete, any questions you have should be directed to + + +The reference implementation is contained within amba-pl011.c. + + + +Low Level Serial Hardware Driver +-------------------------------- + +The low level serial hardware driver is responsible for supplying port +information (defined by uart_port) and a set of control methods (defined +by uart_ops) to the core serial driver. The low level driver is also +responsible for handling interrupts for the port, and providing any +console support. + + +Console Support +--------------- + +The serial core provides a few helper functions. This includes identifying +the correct port structure (via uart_get_console()) and decoding command line +arguments (uart_parse_options()). + +There is also a helper function (uart_console_write()) which performs a +character by character write, translating newlines to CRLF sequences. +Driver writers are recommended to use this function rather than implementing +their own version. + + +Locking +------- + +It is the responsibility of the low level hardware driver to perform the +necessary locking using port->lock. There are some exceptions (which +are described in the struct uart_ops listing below.) + +There are two locks. A per-port spinlock, and an overall semaphore. + +From the core driver perspective, the port->lock locks the following +data:: + + port->mctrl + port->icount + port->state->xmit.head (circ_buf->head) + port->state->xmit.tail (circ_buf->tail) + +The low level driver is free to use this lock to provide any additional +locking. + +The port_sem semaphore is used to protect against ports being added/ +removed or reconfigured at inappropriate times. Since v2.6.27, this +semaphore has been the 'mutex' member of the tty_port struct, and +commonly referred to as the port mutex. + + +uart_ops +-------- + +.. kernel-doc:: include/linux/serial_core.h + :identifiers: uart_ops + +Other functions +--------------- + +.. kernel-doc:: drivers/tty/serial/serial_core.c + :identifiers: uart_update_timeout uart_get_baud_rate uart_get_divisor + uart_match_port uart_write_wakeup uart_register_driver + uart_unregister_driver uart_suspend_port uart_resume_port + uart_add_one_port uart_remove_one_port uart_console_write + uart_parse_earlycon uart_parse_options uart_set_options + uart_get_lsr_info uart_handle_dcd_change uart_handle_cts_change + uart_try_toggle_sysrq uart_get_console + +.. kernel-doc:: include/linux/serial_core.h + :identifiers: uart_port_tx_limited uart_port_tx + +Other notes +----------- + +It is intended some day to drop the 'unused' entries from uart_port, and +allow low level drivers to register their own individual uart_port's with +the core. This will allow drivers to use uart_port as a pointer to a +structure containing both the uart_port entry with their own extensions, +thus:: + + struct my_port { + struct uart_port port; + int my_stuff; + }; + +Modem control lines via GPIO +---------------------------- + +Some helpers are provided in order to set/get modem control lines via GPIO. + +.. kernel-doc:: drivers/tty/serial/serial_mctrl_gpio.c + :identifiers: mctrl_gpio_init mctrl_gpio_free mctrl_gpio_to_gpiod + mctrl_gpio_set mctrl_gpio_get mctrl_gpio_enable_ms + mctrl_gpio_disable_ms_sync mctrl_gpio_disable_ms_no_sync diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/soundwire/error_handling.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/soundwire/error_handling.rst index 928286866..aa3a0a23a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/soundwire/error_handling.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/soundwire/error_handling.rst @@ -1,65 +1,65 @@ -======================== -SoundWire Error Handling -======================== - -The SoundWire PHY was designed with care and errors on the bus are going to -be very unlikely, and if they happen it should be limited to single bit -errors. Examples of this design can be found in the synchronization -mechanism (sync loss after two errors) and short CRCs used for the Bulk -Register Access. - -The errors can be detected with multiple mechanisms: - -1. Bus clash or parity errors: This mechanism relies on low-level detectors - that are independent of the payload and usages, and they cover both control - and audio data. The current implementation only logs such errors. - Improvements could be invalidating an entire programming sequence and - restarting from a known position. In the case of such errors outside of a - control/command sequence, there is no concealment or recovery for audio - data enabled by the SoundWire protocol, the location of the error will also - impact its audibility (most-significant bits will be more impacted in PCM), - and after a number of such errors are detected the bus might be reset. Note - that bus clashes due to programming errors (two streams using the same bit - slots) or electrical issues during the transmit/receive transition cannot - be distinguished, although a recurring bus clash when audio is enabled is a - indication of a bus allocation issue. The interrupt mechanism can also help - identify Slaves which detected a Bus Clash or a Parity Error, but they may - not be responsible for the errors so resetting them individually is not a - viable recovery strategy. - -2. Command status: Each command is associated with a status, which only - covers transmission of the data between devices. The ACK status indicates - that the command was received and will be executed by the end of the - current frame. A NAK indicates that the command was in error and will not - be applied. In case of a bad programming (command sent to non-existent - Slave or to a non-implemented register) or electrical issue, no response - signals the command was ignored. Some Master implementations allow for a - command to be retransmitted several times. If the retransmission fails, - backtracking and restarting the entire programming sequence might be a - solution. Alternatively some implementations might directly issue a bus - reset and re-enumerate all devices. - -3. Timeouts: In a number of cases such as ChannelPrepare or - ClockStopPrepare, the bus driver is supposed to poll a register field until - it transitions to a NotFinished value of zero. The MIPI SoundWire spec 1.1 - does not define timeouts but the MIPI SoundWire DisCo document adds - recommendation on timeouts. If such configurations do not complete, the - driver will return a -ETIMEOUT. Such timeouts are symptoms of a faulty - Slave device and are likely impossible to recover from. - -Errors during global reconfiguration sequences are extremely difficult to -handle: - -1. BankSwitch: An error during the last command issuing a BankSwitch is - difficult to backtrack from. Retransmitting the Bank Switch command may be - possible in a single segment setup, but this can lead to synchronization - problems when enabling multiple bus segments (a command with side effects - such as frame reconfiguration would be handled at different times). A global - hard-reset might be the best solution. - -Note that SoundWire does not provide a mechanism to detect illegal values -written in valid registers. In a number of cases the standard even mentions -that the Slave might behave in implementation-defined ways. The bus -implementation does not provide a recovery mechanism for such errors, Slave -or Master driver implementers are responsible for writing valid values in -valid registers and implement additional range checking if needed. +======================== +SoundWire Error Handling +======================== + +The SoundWire PHY was designed with care and errors on the bus are going to +be very unlikely, and if they happen it should be limited to single bit +errors. Examples of this design can be found in the synchronization +mechanism (sync loss after two errors) and short CRCs used for the Bulk +Register Access. + +The errors can be detected with multiple mechanisms: + +1. Bus clash or parity errors: This mechanism relies on low-level detectors + that are independent of the payload and usages, and they cover both control + and audio data. The current implementation only logs such errors. + Improvements could be invalidating an entire programming sequence and + restarting from a known position. In the case of such errors outside of a + control/command sequence, there is no concealment or recovery for audio + data enabled by the SoundWire protocol, the location of the error will also + impact its audibility (most-significant bits will be more impacted in PCM), + and after a number of such errors are detected the bus might be reset. Note + that bus clashes due to programming errors (two streams using the same bit + slots) or electrical issues during the transmit/receive transition cannot + be distinguished, although a recurring bus clash when audio is enabled is a + indication of a bus allocation issue. The interrupt mechanism can also help + identify Slaves which detected a Bus Clash or a Parity Error, but they may + not be responsible for the errors so resetting them individually is not a + viable recovery strategy. + +2. Command status: Each command is associated with a status, which only + covers transmission of the data between devices. The ACK status indicates + that the command was received and will be executed by the end of the + current frame. A NAK indicates that the command was in error and will not + be applied. In case of a bad programming (command sent to non-existent + Slave or to a non-implemented register) or electrical issue, no response + signals the command was ignored. Some Master implementations allow for a + command to be retransmitted several times. If the retransmission fails, + backtracking and restarting the entire programming sequence might be a + solution. Alternatively some implementations might directly issue a bus + reset and re-enumerate all devices. + +3. Timeouts: In a number of cases such as ChannelPrepare or + ClockStopPrepare, the bus driver is supposed to poll a register field until + it transitions to a NotFinished value of zero. The MIPI SoundWire spec 1.1 + does not define timeouts but the MIPI SoundWire DisCo document adds + recommendation on timeouts. If such configurations do not complete, the + driver will return a -ETIMEOUT. Such timeouts are symptoms of a faulty + Slave device and are likely impossible to recover from. + +Errors during global reconfiguration sequences are extremely difficult to +handle: + +1. BankSwitch: An error during the last command issuing a BankSwitch is + difficult to backtrack from. Retransmitting the Bank Switch command may be + possible in a single segment setup, but this can lead to synchronization + problems when enabling multiple bus segments (a command with side effects + such as frame reconfiguration would be handled at different times). A global + hard-reset might be the best solution. + +Note that SoundWire does not provide a mechanism to detect illegal values +written in valid registers. In a number of cases the standard even mentions +that the Slave might behave in implementation-defined ways. The bus +implementation does not provide a recovery mechanism for such errors, Slave +or Master driver implementers are responsible for writing valid values in +valid registers and implement additional range checking if needed. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/soundwire/locking.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/soundwire/locking.rst index b388b2668..3a7ffb3d8 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/soundwire/locking.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/soundwire/locking.rst @@ -1,108 +1,108 @@ -================= -SoundWire Locking -================= - -This document explains locking mechanism of the SoundWire Bus. Bus uses -following locks in order to avoid race conditions in Bus operations on -shared resources. - - - Bus lock - - - Message lock - -Bus lock -======== - -SoundWire Bus lock is a mutex and is part of Bus data structure -(sdw_bus) which is used for every Bus instance. This lock is used to -serialize each of the following operations(s) within SoundWire Bus instance. - - - Addition and removal of Slave(s), changing Slave status. - - - Prepare, Enable, Disable and De-prepare stream operations. - - - Access of Stream data structure. - -Message lock -============ - -SoundWire message transfer lock. This mutex is part of -Bus data structure (sdw_bus). This lock is used to serialize the message -transfers (read/write) within a SoundWire Bus instance. - -Below examples show how locks are acquired. - -Example 1 ---------- - -Message transfer. - - 1. For every message transfer - - a. Acquire Message lock. - - b. Transfer message (Read/Write) to Slave1 or broadcast message on - Bus in case of bank switch. - - c. Release Message lock - - :: - - +----------+ +---------+ - | | | | - | Bus | | Master | - | | | Driver | - | | | | - +----+-----+ +----+----+ - | | - | bus->ops->xfer_msg() | - <-------------------------------+ a. Acquire Message lock - | | b. Transfer message - | | - +-------------------------------> c. Release Message lock - | return success/error | d. Return success/error - | | - + + - -Example 2 ---------- - -Prepare operation. - - 1. Acquire lock for Bus instance associated with Master 1. - - 2. For every message transfer in Prepare operation - - a. Acquire Message lock. - - b. Transfer message (Read/Write) to Slave1 or broadcast message on - Bus in case of bank switch. - - c. Release Message lock. - - 3. Release lock for Bus instance associated with Master 1 :: - - +----------+ +---------+ - | | | | - | Bus | | Master | - | | | Driver | - | | | | - +----+-----+ +----+----+ - | | - | sdw_prepare_stream() | - <-------------------------------+ 1. Acquire bus lock - | | 2. Perform stream prepare - | | - | | - | bus->ops->xfer_msg() | - <-------------------------------+ a. Acquire Message lock - | | b. Transfer message - | | - +-------------------------------> c. Release Message lock - | return success/error | d. Return success/error - | | - | | - | return success/error | 3. Release bus lock - +-------------------------------> 4. Return success/error - | | - + + +================= +SoundWire Locking +================= + +This document explains locking mechanism of the SoundWire Bus. Bus uses +following locks in order to avoid race conditions in Bus operations on +shared resources. + + - Bus lock + + - Message lock + +Bus lock +======== + +SoundWire Bus lock is a mutex and is part of Bus data structure +(sdw_bus) which is used for every Bus instance. This lock is used to +serialize each of the following operations(s) within SoundWire Bus instance. + + - Addition and removal of Slave(s), changing Slave status. + + - Prepare, Enable, Disable and De-prepare stream operations. + + - Access of Stream data structure. + +Message lock +============ + +SoundWire message transfer lock. This mutex is part of +Bus data structure (sdw_bus). This lock is used to serialize the message +transfers (read/write) within a SoundWire Bus instance. + +Below examples show how locks are acquired. + +Example 1 +--------- + +Message transfer. + + 1. For every message transfer + + a. Acquire Message lock. + + b. Transfer message (Read/Write) to Slave1 or broadcast message on + Bus in case of bank switch. + + c. Release Message lock + + :: + + +----------+ +---------+ + | | | | + | Bus | | Master | + | | | Driver | + | | | | + +----+-----+ +----+----+ + | | + | bus->ops->xfer_msg() | + <-------------------------------+ a. Acquire Message lock + | | b. Transfer message + | | + +-------------------------------> c. Release Message lock + | return success/error | d. Return success/error + | | + + + + +Example 2 +--------- + +Prepare operation. + + 1. Acquire lock for Bus instance associated with Master 1. + + 2. For every message transfer in Prepare operation + + a. Acquire Message lock. + + b. Transfer message (Read/Write) to Slave1 or broadcast message on + Bus in case of bank switch. + + c. Release Message lock. + + 3. Release lock for Bus instance associated with Master 1 :: + + +----------+ +---------+ + | | | | + | Bus | | Master | + | | | Driver | + | | | | + +----+-----+ +----+----+ + | | + | sdw_prepare_stream() | + <-------------------------------+ 1. Acquire bus lock + | | 2. Perform stream prepare + | | + | | + | bus->ops->xfer_msg() | + <-------------------------------+ a. Acquire Message lock + | | b. Transfer message + | | + +-------------------------------> c. Release Message lock + | return success/error | d. Return success/error + | | + | | + | return success/error | 3. Release bus lock + +-------------------------------> 4. Return success/error + | | + + + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/surface_aggregator/overview.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/surface_aggregator/overview.rst index c39c308a3..26415e1ab 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/surface_aggregator/overview.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/surface_aggregator/overview.rst @@ -1,79 +1,79 @@ -.. SPDX-License-Identifier: GPL-2.0+ - -======== -Overview -======== - -The Surface/System Aggregator Module (SAM, SSAM) is an (arguably *the*) -embedded controller (EC) on Microsoft Surface devices. It has been originally -introduced on 4th generation devices (Surface Pro 4, Surface Book 1), but -its responsibilities and feature-set have since been expanded significantly -with the following generations. - - -Features and Integration -======================== - -Not much is currently known about SAM on 4th generation devices (Surface Pro -4, Surface Book 1), due to the use of a different communication interface -between host and EC (as detailed below). On 5th (Surface Pro 2017, Surface -Book 2, Surface Laptop 1) and later generation devices, SAM is responsible -for providing battery information (both current status and static values, -such as maximum capacity etc.), as well as an assortment of temperature -sensors (e.g. skin temperature) and cooling/performance-mode setting to the -host. On the Surface Book 2, specifically, it additionally provides an -interface for properly handling clipboard detachment (i.e. separating the -display part from the keyboard part of the device), on the Surface Laptop 1 -and 2 it is required for keyboard HID input. This HID subsystem has been -restructured for 7th generation devices and on those, specifically Surface -Laptop 3 and Surface Book 3, is responsible for all major HID input (i.e. -keyboard and touchpad). - -While features have not changed much on a coarse level since the 5th -generation, internal interfaces have undergone some rather large changes. On -5th and 6th generation devices, both battery and temperature information is -exposed to ACPI via a shim driver (referred to as Surface ACPI Notify, or -SAN), translating ACPI generic serial bus write-/read-accesses to SAM -requests. On 7th generation devices, this additional layer is gone and these -devices require a driver hooking directly into the SAM interface. Equally, -on newer generations, less devices are declared in ACPI, making them a bit -harder to discover and requiring us to hard-code a sort of device registry. -Due to this, a SSAM bus and subsystem with client devices -(:c:type:`struct ssam_device `) has been implemented. - - -Communication -============= - -The type of communication interface between host and EC depends on the -generation of the Surface device. On 4th generation devices, host and EC -communicate via HID, specifically using a HID-over-I2C device, whereas on -5th and later generations, communication takes place via a USART serial -device. In accordance to the drivers found on other operating systems, we -refer to the serial device and its driver as Surface Serial Hub (SSH). When -needed, we differentiate between both types of SAM by referring to them as -SAM-over-SSH and SAM-over-HID. - -Currently, this subsystem only supports SAM-over-SSH. The SSH communication -interface is described in more detail below. The HID interface has not been -reverse engineered yet and it is, at the moment, unclear how many (and -which) concepts of the SSH interface detailed below can be transferred to -it. - -Surface Serial Hub ------------------- - -As already elaborated above, the Surface Serial Hub (SSH) is the -communication interface for SAM on 5th- and all later-generation Surface -devices. On the highest level, communication can be separated into two main -types: Requests, messages sent from host to EC that may trigger a direct -response from the EC (explicitly associated with the request), and events -(sometimes also referred to as notifications), sent from EC to host without -being a direct response to a previous request. We may also refer to requests -without response as commands. In general, events need to be enabled via one -of multiple dedicated requests before they are sent by the EC. - -See Documentation/driver-api/surface_aggregator/ssh.rst for a -more technical protocol documentation and -Documentation/driver-api/surface_aggregator/internal.rst for an -overview of the internal driver architecture. +.. SPDX-License-Identifier: GPL-2.0+ + +======== +Overview +======== + +The Surface/System Aggregator Module (SAM, SSAM) is an (arguably *the*) +embedded controller (EC) on Microsoft Surface devices. It has been originally +introduced on 4th generation devices (Surface Pro 4, Surface Book 1), but +its responsibilities and feature-set have since been expanded significantly +with the following generations. + + +Features and Integration +======================== + +Not much is currently known about SAM on 4th generation devices (Surface Pro +4, Surface Book 1), due to the use of a different communication interface +between host and EC (as detailed below). On 5th (Surface Pro 2017, Surface +Book 2, Surface Laptop 1) and later generation devices, SAM is responsible +for providing battery information (both current status and static values, +such as maximum capacity etc.), as well as an assortment of temperature +sensors (e.g. skin temperature) and cooling/performance-mode setting to the +host. On the Surface Book 2, specifically, it additionally provides an +interface for properly handling clipboard detachment (i.e. separating the +display part from the keyboard part of the device), on the Surface Laptop 1 +and 2 it is required for keyboard HID input. This HID subsystem has been +restructured for 7th generation devices and on those, specifically Surface +Laptop 3 and Surface Book 3, is responsible for all major HID input (i.e. +keyboard and touchpad). + +While features have not changed much on a coarse level since the 5th +generation, internal interfaces have undergone some rather large changes. On +5th and 6th generation devices, both battery and temperature information is +exposed to ACPI via a shim driver (referred to as Surface ACPI Notify, or +SAN), translating ACPI generic serial bus write-/read-accesses to SAM +requests. On 7th generation devices, this additional layer is gone and these +devices require a driver hooking directly into the SAM interface. Equally, +on newer generations, less devices are declared in ACPI, making them a bit +harder to discover and requiring us to hard-code a sort of device registry. +Due to this, a SSAM bus and subsystem with client devices +(:c:type:`struct ssam_device `) has been implemented. + + +Communication +============= + +The type of communication interface between host and EC depends on the +generation of the Surface device. On 4th generation devices, host and EC +communicate via HID, specifically using a HID-over-I2C device, whereas on +5th and later generations, communication takes place via a USART serial +device. In accordance to the drivers found on other operating systems, we +refer to the serial device and its driver as Surface Serial Hub (SSH). When +needed, we differentiate between both types of SAM by referring to them as +SAM-over-SSH and SAM-over-HID. + +Currently, this subsystem only supports SAM-over-SSH. The SSH communication +interface is described in more detail below. The HID interface has not been +reverse engineered yet and it is, at the moment, unclear how many (and +which) concepts of the SSH interface detailed below can be transferred to +it. + +Surface Serial Hub +------------------ + +As already elaborated above, the Surface Serial Hub (SSH) is the +communication interface for SAM on 5th- and all later-generation Surface +devices. On the highest level, communication can be separated into two main +types: Requests, messages sent from host to EC that may trigger a direct +response from the EC (explicitly associated with the request), and events +(sometimes also referred to as notifications), sent from EC to host without +being a direct response to a previous request. We may also refer to requests +without response as commands. In general, events need to be enabled via one +of multiple dedicated requests before they are sent by the EC. + +See Documentation/driver-api/surface_aggregator/ssh.rst for a +more technical protocol documentation and +Documentation/driver-api/surface_aggregator/internal.rst for an +overview of the internal driver architecture. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/switchtec.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/switchtec.rst index 703a4a719..7611fdc53 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/switchtec.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/switchtec.rst @@ -1,102 +1,102 @@ -======================== -Linux Switchtec Support -======================== - -Microsemi's "Switchtec" line of PCI switch devices is already -supported by the kernel with standard PCI switch drivers. However, the -Switchtec device advertises a special management endpoint which -enables some additional functionality. This includes: - -* Packet and Byte Counters -* Firmware Upgrades -* Event and Error logs -* Querying port link status -* Custom user firmware commands - -The switchtec kernel module implements this functionality. - - -Interface -========= - -The primary means of communicating with the Switchtec management firmware is -through the Memory-mapped Remote Procedure Call (MRPC) interface. -Commands are submitted to the interface with a 4-byte command -identifier and up to 1KB of command specific data. The firmware will -respond with a 4-byte return code and up to 1KB of command-specific -data. The interface only processes a single command at a time. - - -Userspace Interface -=================== - -The MRPC interface will be exposed to userspace through a simple char -device: /dev/switchtec#, one for each management endpoint in the system. - -The char device has the following semantics: - -* A write must consist of at least 4 bytes and no more than 1028 bytes. - The first 4 bytes will be interpreted as the Command ID and the - remainder will be used as the input data. A write will send the - command to the firmware to begin processing. - -* Each write must be followed by exactly one read. Any double write will - produce an error and any read that doesn't follow a write will - produce an error. - -* A read will block until the firmware completes the command and return - the 4-byte Command Return Value plus up to 1024 bytes of output - data. (The length will be specified by the size parameter of the read - call -- reading less than 4 bytes will produce an error.) - -* The poll call will also be supported for userspace applications that - need to do other things while waiting for the command to complete. - -The following IOCTLs are also supported by the device: - -* SWITCHTEC_IOCTL_FLASH_INFO - Retrieve firmware length and number - of partitions in the device. - -* SWITCHTEC_IOCTL_FLASH_PART_INFO - Retrieve address and lengeth for - any specified partition in flash. - -* SWITCHTEC_IOCTL_EVENT_SUMMARY - Read a structure of bitmaps - indicating all uncleared events. - -* SWITCHTEC_IOCTL_EVENT_CTL - Get the current count, clear and set flags - for any event. This ioctl takes in a switchtec_ioctl_event_ctl struct - with the event_id, index and flags set (index being the partition or PFF - number for non-global events). It returns whether the event has - occurred, the number of times and any event specific data. The flags - can be used to clear the count or enable and disable actions to - happen when the event occurs. - By using the SWITCHTEC_IOCTL_EVENT_FLAG_EN_POLL flag, - you can set an event to trigger a poll command to return with - POLLPRI. In this way, userspace can wait for events to occur. - -* SWITCHTEC_IOCTL_PFF_TO_PORT and SWITCHTEC_IOCTL_PORT_TO_PFF convert - between PCI Function Framework number (used by the event system) - and Switchtec Logic Port ID and Partition number (which is more - user friendly). - - -Non-Transparent Bridge (NTB) Driver -=================================== - -An NTB hardware driver is provided for the Switchtec hardware in -ntb_hw_switchtec. Currently, it only supports switches configured with -exactly 2 NT partitions and zero or more non-NT partitions. It also requires -the following configuration settings: - -* Both NT partitions must be able to access each other's GAS spaces. - Thus, the bits in the GAS Access Vector under Management Settings - must be set to support this. -* Kernel configuration MUST include support for NTB (CONFIG_NTB needs - to be set) - -NT EP BAR 2 will be dynamically configured as a Direct Window, and -the configuration file does not need to configure it explicitly. - -Please refer to Documentation/driver-api/ntb.rst in Linux source tree for an overall -understanding of the Linux NTB stack. ntb_hw_switchtec works as an NTB -Hardware Driver in this stack. +======================== +Linux Switchtec Support +======================== + +Microsemi's "Switchtec" line of PCI switch devices is already +supported by the kernel with standard PCI switch drivers. However, the +Switchtec device advertises a special management endpoint which +enables some additional functionality. This includes: + +* Packet and Byte Counters +* Firmware Upgrades +* Event and Error logs +* Querying port link status +* Custom user firmware commands + +The switchtec kernel module implements this functionality. + + +Interface +========= + +The primary means of communicating with the Switchtec management firmware is +through the Memory-mapped Remote Procedure Call (MRPC) interface. +Commands are submitted to the interface with a 4-byte command +identifier and up to 1KB of command specific data. The firmware will +respond with a 4-byte return code and up to 1KB of command-specific +data. The interface only processes a single command at a time. + + +Userspace Interface +=================== + +The MRPC interface will be exposed to userspace through a simple char +device: /dev/switchtec#, one for each management endpoint in the system. + +The char device has the following semantics: + +* A write must consist of at least 4 bytes and no more than 1028 bytes. + The first 4 bytes will be interpreted as the Command ID and the + remainder will be used as the input data. A write will send the + command to the firmware to begin processing. + +* Each write must be followed by exactly one read. Any double write will + produce an error and any read that doesn't follow a write will + produce an error. + +* A read will block until the firmware completes the command and return + the 4-byte Command Return Value plus up to 1024 bytes of output + data. (The length will be specified by the size parameter of the read + call -- reading less than 4 bytes will produce an error.) + +* The poll call will also be supported for userspace applications that + need to do other things while waiting for the command to complete. + +The following IOCTLs are also supported by the device: + +* SWITCHTEC_IOCTL_FLASH_INFO - Retrieve firmware length and number + of partitions in the device. + +* SWITCHTEC_IOCTL_FLASH_PART_INFO - Retrieve address and lengeth for + any specified partition in flash. + +* SWITCHTEC_IOCTL_EVENT_SUMMARY - Read a structure of bitmaps + indicating all uncleared events. + +* SWITCHTEC_IOCTL_EVENT_CTL - Get the current count, clear and set flags + for any event. This ioctl takes in a switchtec_ioctl_event_ctl struct + with the event_id, index and flags set (index being the partition or PFF + number for non-global events). It returns whether the event has + occurred, the number of times and any event specific data. The flags + can be used to clear the count or enable and disable actions to + happen when the event occurs. + By using the SWITCHTEC_IOCTL_EVENT_FLAG_EN_POLL flag, + you can set an event to trigger a poll command to return with + POLLPRI. In this way, userspace can wait for events to occur. + +* SWITCHTEC_IOCTL_PFF_TO_PORT and SWITCHTEC_IOCTL_PORT_TO_PFF convert + between PCI Function Framework number (used by the event system) + and Switchtec Logic Port ID and Partition number (which is more + user friendly). + + +Non-Transparent Bridge (NTB) Driver +=================================== + +An NTB hardware driver is provided for the Switchtec hardware in +ntb_hw_switchtec. Currently, it only supports switches configured with +exactly 2 NT partitions and zero or more non-NT partitions. It also requires +the following configuration settings: + +* Both NT partitions must be able to access each other's GAS spaces. + Thus, the bits in the GAS Access Vector under Management Settings + must be set to support this. +* Kernel configuration MUST include support for NTB (CONFIG_NTB needs + to be set) + +NT EP BAR 2 will be dynamically configured as a Direct Window, and +the configuration file does not need to configure it explicitly. + +Please refer to Documentation/driver-api/ntb.rst in Linux source tree for an overall +understanding of the Linux NTB stack. ntb_hw_switchtec works as an NTB +Hardware Driver in this stack. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/thermal/cpu-cooling-api.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/thermal/cpu-cooling-api.rst index dae66d169..645d914c4 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/thermal/cpu-cooling-api.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/thermal/cpu-cooling-api.rst @@ -1,107 +1,107 @@ -======================= -CPU cooling APIs How To -======================= - -Written by Amit Daniel Kachhap - -Updated: 6 Jan 2015 - -Copyright (c) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com) - -0. Introduction -=============== - -The generic cpu cooling(freq clipping) provides registration/unregistration APIs -to the caller. The binding of the cooling devices to the trip point is left for -the user. The registration APIs returns the cooling device pointer. - -1. cpu cooling APIs -=================== - -1.1 cpufreq registration/unregistration APIs --------------------------------------------- - - :: - - struct thermal_cooling_device - *cpufreq_cooling_register(struct cpumask *clip_cpus) - - This interface function registers the cpufreq cooling device with the name - "thermal-cpufreq-%x". This api can support multiple instances of cpufreq - cooling devices. - - clip_cpus: - cpumask of cpus where the frequency constraints will happen. - - :: - - struct thermal_cooling_device - *of_cpufreq_cooling_register(struct cpufreq_policy *policy) - - This interface function registers the cpufreq cooling device with - the name "thermal-cpufreq-%x" linking it with a device tree node, in - order to bind it via the thermal DT code. This api can support multiple - instances of cpufreq cooling devices. - - policy: - CPUFreq policy. - - - :: - - void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev) - - This interface function unregisters the "thermal-cpufreq-%x" cooling device. - - cdev: Cooling device pointer which has to be unregistered. - -2. Power models -=============== - -The power API registration functions provide a simple power model for -CPUs. The current power is calculated as dynamic power (static power isn't -supported currently). This power model requires that the operating-points of -the CPUs are registered using the kernel's opp library and the -`cpufreq_frequency_table` is assigned to the `struct device` of the -cpu. If you are using CONFIG_CPUFREQ_DT then the -`cpufreq_frequency_table` should already be assigned to the cpu -device. - -The dynamic power consumption of a processor depends on many factors. -For a given processor implementation the primary factors are: - -- The time the processor spends running, consuming dynamic power, as - compared to the time in idle states where dynamic consumption is - negligible. Herein we refer to this as 'utilisation'. -- The voltage and frequency levels as a result of DVFS. The DVFS - level is a dominant factor governing power consumption. -- In running time the 'execution' behaviour (instruction types, memory - access patterns and so forth) causes, in most cases, a second order - variation. In pathological cases this variation can be significant, - but typically it is of a much lesser impact than the factors above. - -A high level dynamic power consumption model may then be represented as:: - - Pdyn = f(run) * Voltage^2 * Frequency * Utilisation - -f(run) here represents the described execution behaviour and its -result has a units of Watts/Hz/Volt^2 (this often expressed in -mW/MHz/uVolt^2) - -The detailed behaviour for f(run) could be modelled on-line. However, -in practice, such an on-line model has dependencies on a number of -implementation specific processor support and characterisation -factors. Therefore, in initial implementation that contribution is -represented as a constant coefficient. This is a simplification -consistent with the relative contribution to overall power variation. - -In this simplified representation our model becomes:: - - Pdyn = Capacitance * Voltage^2 * Frequency * Utilisation - -Where `capacitance` is a constant that represents an indicative -running time dynamic power coefficient in fundamental units of -mW/MHz/uVolt^2. Typical values for mobile CPUs might lie in range -from 100 to 500. For reference, the approximate values for the SoC in -ARM's Juno Development Platform are 530 for the Cortex-A57 cluster and -140 for the Cortex-A53 cluster. +======================= +CPU cooling APIs How To +======================= + +Written by Amit Daniel Kachhap + +Updated: 6 Jan 2015 + +Copyright (c) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com) + +0. Introduction +=============== + +The generic cpu cooling(freq clipping) provides registration/unregistration APIs +to the caller. The binding of the cooling devices to the trip point is left for +the user. The registration APIs returns the cooling device pointer. + +1. cpu cooling APIs +=================== + +1.1 cpufreq registration/unregistration APIs +-------------------------------------------- + + :: + + struct thermal_cooling_device + *cpufreq_cooling_register(struct cpumask *clip_cpus) + + This interface function registers the cpufreq cooling device with the name + "thermal-cpufreq-%x". This api can support multiple instances of cpufreq + cooling devices. + + clip_cpus: + cpumask of cpus where the frequency constraints will happen. + + :: + + struct thermal_cooling_device + *of_cpufreq_cooling_register(struct cpufreq_policy *policy) + + This interface function registers the cpufreq cooling device with + the name "thermal-cpufreq-%x" linking it with a device tree node, in + order to bind it via the thermal DT code. This api can support multiple + instances of cpufreq cooling devices. + + policy: + CPUFreq policy. + + + :: + + void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev) + + This interface function unregisters the "thermal-cpufreq-%x" cooling device. + + cdev: Cooling device pointer which has to be unregistered. + +2. Power models +=============== + +The power API registration functions provide a simple power model for +CPUs. The current power is calculated as dynamic power (static power isn't +supported currently). This power model requires that the operating-points of +the CPUs are registered using the kernel's opp library and the +`cpufreq_frequency_table` is assigned to the `struct device` of the +cpu. If you are using CONFIG_CPUFREQ_DT then the +`cpufreq_frequency_table` should already be assigned to the cpu +device. + +The dynamic power consumption of a processor depends on many factors. +For a given processor implementation the primary factors are: + +- The time the processor spends running, consuming dynamic power, as + compared to the time in idle states where dynamic consumption is + negligible. Herein we refer to this as 'utilisation'. +- The voltage and frequency levels as a result of DVFS. The DVFS + level is a dominant factor governing power consumption. +- In running time the 'execution' behaviour (instruction types, memory + access patterns and so forth) causes, in most cases, a second order + variation. In pathological cases this variation can be significant, + but typically it is of a much lesser impact than the factors above. + +A high level dynamic power consumption model may then be represented as:: + + Pdyn = f(run) * Voltage^2 * Frequency * Utilisation + +f(run) here represents the described execution behaviour and its +result has a units of Watts/Hz/Volt^2 (this often expressed in +mW/MHz/uVolt^2) + +The detailed behaviour for f(run) could be modelled on-line. However, +in practice, such an on-line model has dependencies on a number of +implementation specific processor support and characterisation +factors. Therefore, in initial implementation that contribution is +represented as a constant coefficient. This is a simplification +consistent with the relative contribution to overall power variation. + +In this simplified representation our model becomes:: + + Pdyn = Capacitance * Voltage^2 * Frequency * Utilisation + +Where `capacitance` is a constant that represents an indicative +running time dynamic power coefficient in fundamental units of +mW/MHz/uVolt^2. Typical values for mobile CPUs might lie in range +from 100 to 500. For reference, the approximate values for the SoC in +ARM's Juno Development Platform are 530 for the Cortex-A57 cluster and +140 for the Cortex-A53 cluster. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/usb/bulk-streams.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/usb/bulk-streams.rst index 77d76ebfb..eeefe582f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/usb/bulk-streams.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/driver-api/usb/bulk-streams.rst @@ -1,83 +1,83 @@ -USB bulk streams -~~~~~~~~~~~~~~~~ - -Background -========== - -Bulk endpoint streams were added in the USB 3.0 specification. Streams allow a -device driver to overload a bulk endpoint so that multiple transfers can be -queued at once. - -Streams are defined in sections 4.4.6.4 and 8.12.1.4 of the Universal Serial Bus -3.0 specification at https://www.usb.org/developers/docs/ The USB Attached SCSI -Protocol, which uses streams to queue multiple SCSI commands, can be found on -the T10 website (https://t10.org/). - - -Device-side implications -======================== - -Once a buffer has been queued to a stream ring, the device is notified (through -an out-of-band mechanism on another endpoint) that data is ready for that stream -ID. The device then tells the host which "stream" it wants to start. The host -can also initiate a transfer on a stream without the device asking, but the -device can refuse that transfer. Devices can switch between streams at any -time. - - -Driver implications -=================== - -:: - - int usb_alloc_streams(struct usb_interface *interface, - struct usb_host_endpoint **eps, unsigned int num_eps, - unsigned int num_streams, gfp_t mem_flags); - -Device drivers will call this API to request that the host controller driver -allocate memory so the driver can use up to num_streams stream IDs. They must -pass an array of usb_host_endpoints that need to be setup with similar stream -IDs. This is to ensure that a UASP driver will be able to use the same stream -ID for the bulk IN and OUT endpoints used in a Bi-directional command sequence. - -The return value is an error condition (if one of the endpoints doesn't support -streams, or the xHCI driver ran out of memory), or the number of streams the -host controller allocated for this endpoint. The xHCI host controller hardware -declares how many stream IDs it can support, and each bulk endpoint on a -SuperSpeed device will say how many stream IDs it can handle. Therefore, -drivers should be able to deal with being allocated less stream IDs than they -requested. - -Do NOT call this function if you have URBs enqueued for any of the endpoints -passed in as arguments. Do not call this function to request less than two -streams. - -Drivers will only be allowed to call this API once for the same endpoint -without calling usb_free_streams(). This is a simplification for the xHCI host -controller driver, and may change in the future. - - -Picking new Stream IDs to use -============================= - -Stream ID 0 is reserved, and should not be used to communicate with devices. If -usb_alloc_streams() returns with a value of N, you may use streams 1 though N. -To queue an URB for a specific stream, set the urb->stream_id value. If the -endpoint does not support streams, an error will be returned. - -Note that new API to choose the next stream ID will have to be added if the xHCI -driver supports secondary stream IDs. - - -Clean up -======== - -If a driver wishes to stop using streams to communicate with the device, it -should call:: - - void usb_free_streams(struct usb_interface *interface, - struct usb_host_endpoint **eps, unsigned int num_eps, - gfp_t mem_flags); - -All stream IDs will be deallocated when the driver releases the interface, to -ensure that drivers that don't support streams will be able to use the endpoint. +USB bulk streams +~~~~~~~~~~~~~~~~ + +Background +========== + +Bulk endpoint streams were added in the USB 3.0 specification. Streams allow a +device driver to overload a bulk endpoint so that multiple transfers can be +queued at once. + +Streams are defined in sections 4.4.6.4 and 8.12.1.4 of the Universal Serial Bus +3.0 specification at https://www.usb.org/developers/docs/ The USB Attached SCSI +Protocol, which uses streams to queue multiple SCSI commands, can be found on +the T10 website (https://t10.org/). + + +Device-side implications +======================== + +Once a buffer has been queued to a stream ring, the device is notified (through +an out-of-band mechanism on another endpoint) that data is ready for that stream +ID. The device then tells the host which "stream" it wants to start. The host +can also initiate a transfer on a stream without the device asking, but the +device can refuse that transfer. Devices can switch between streams at any +time. + + +Driver implications +=================== + +:: + + int usb_alloc_streams(struct usb_interface *interface, + struct usb_host_endpoint **eps, unsigned int num_eps, + unsigned int num_streams, gfp_t mem_flags); + +Device drivers will call this API to request that the host controller driver +allocate memory so the driver can use up to num_streams stream IDs. They must +pass an array of usb_host_endpoints that need to be setup with similar stream +IDs. This is to ensure that a UASP driver will be able to use the same stream +ID for the bulk IN and OUT endpoints used in a Bi-directional command sequence. + +The return value is an error condition (if one of the endpoints doesn't support +streams, or the xHCI driver ran out of memory), or the number of streams the +host controller allocated for this endpoint. The xHCI host controller hardware +declares how many stream IDs it can support, and each bulk endpoint on a +SuperSpeed device will say how many stream IDs it can handle. Therefore, +drivers should be able to deal with being allocated less stream IDs than they +requested. + +Do NOT call this function if you have URBs enqueued for any of the endpoints +passed in as arguments. Do not call this function to request less than two +streams. + +Drivers will only be allowed to call this API once for the same endpoint +without calling usb_free_streams(). This is a simplification for the xHCI host +controller driver, and may change in the future. + + +Picking new Stream IDs to use +============================= + +Stream ID 0 is reserved, and should not be used to communicate with devices. If +usb_alloc_streams() returns with a value of N, you may use streams 1 though N. +To queue an URB for a specific stream, set the urb->stream_id value. If the +endpoint does not support streams, an error will be returned. + +Note that new API to choose the next stream ID will have to be added if the xHCI +driver supports secondary stream IDs. + + +Clean up +======== + +If a driver wishes to stop using streams to communicate with the device, it +should call:: + + void usb_free_streams(struct usb_interface *interface, + struct usb_host_endpoint **eps, unsigned int num_eps, + gfp_t mem_flags); + +All stream IDs will be deallocated when the driver releases the interface, to +ensure that drivers that don't support streams will be able to use the endpoint. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/fb/sh7760fb.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/fb/sh7760fb.rst index 33fbb746b..c3266485f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/fb/sh7760fb.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/fb/sh7760fb.rst @@ -1,130 +1,130 @@ -================================================ -SH7760/SH7763 integrated LCDC Framebuffer driver -================================================ - -0. Overview ------------ -The SH7760/SH7763 have an integrated LCD Display controller (LCDC) which -supports (in theory) resolutions ranging from 1x1 to 1024x1024, -with color depths ranging from 1 to 16 bits, on STN, DSTN and TFT Panels. - -Caveats: - -* Framebuffer memory must be a large chunk allocated at the top - of Area3 (HW requirement). Because of this requirement you should NOT - make the driver a module since at runtime it may become impossible to - get a large enough contiguous chunk of memory. - -* The driver does not support changing resolution while loaded - (displays aren't hotpluggable anyway) - -* Heavy flickering may be observed - a) if you're using 15/16bit color modes at >= 640x480 px resolutions, - b) during PCMCIA (or any other slow bus) activity. - -* Rotation works only 90degress clockwise, and only if horizontal - resolution is <= 320 pixels. - -Files: - - drivers/video/sh7760fb.c - - include/asm-sh/sh7760fb.h - - Documentation/fb/sh7760fb.rst - -1. Platform setup ------------------ -SH7760: - Video data is fetched via the DMABRG DMA engine, so you have to - configure the SH DMAC for DMABRG mode (write 0x94808080 to the - DMARSRA register somewhere at boot). - - PFC registers PCCR and PCDR must be set to peripheral mode. - (write zeros to both). - -The driver does NOT do the above for you since board setup is, well, job -of the board setup code. - -2. Panel definitions --------------------- -The LCDC must explicitly be told about the type of LCD panel -attached. Data must be wrapped in a "struct sh7760fb_platdata" and -passed to the driver as platform_data. - -Suggest you take a closer look at the SH7760 Manual, Section 30. -(http://documentation.renesas.com/eng/products/mpumcu/e602291_sh7760.pdf) - -The following code illustrates what needs to be done to -get the framebuffer working on a 640x480 TFT:: - - #include - #include - - /* - * NEC NL6440bc26-01 640x480 TFT - * dotclock 25175 kHz - * Xres 640 Yres 480 - * Htotal 800 Vtotal 525 - * HsynStart 656 VsynStart 490 - * HsynLenn 30 VsynLenn 2 - * - * The linux framebuffer layer does not use the syncstart/synclen - * values but right/left/upper/lower margin values. The comments - * for the x_margin explain how to calculate those from given - * panel sync timings. - */ - static struct fb_videomode nl6448bc26 = { - .name = "NL6448BC26", - .refresh = 60, - .xres = 640, - .yres = 480, - .pixclock = 39683, /* in picoseconds! */ - .hsync_len = 30, - .vsync_len = 2, - .left_margin = 114, /* HTOT - (HSYNSLEN + HSYNSTART) */ - .right_margin = 16, /* HSYNSTART - XRES */ - .upper_margin = 33, /* VTOT - (VSYNLEN + VSYNSTART) */ - .lower_margin = 10, /* VSYNSTART - YRES */ - .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, - .vmode = FB_VMODE_NONINTERLACED, - .flag = 0, - }; - - static struct sh7760fb_platdata sh7760fb_nl6448 = { - .def_mode = &nl6448bc26, - .ldmtr = LDMTR_TFT_COLOR_16, /* 16bit TFT panel */ - .lddfr = LDDFR_8BPP, /* we want 8bit output */ - .ldpmmr = 0x0070, - .ldpspr = 0x0500, - .ldaclnr = 0, - .ldickr = LDICKR_CLKSRC(LCDC_CLKSRC_EXTERNAL) | - LDICKR_CLKDIV(1), - .rotate = 0, - .novsync = 1, - .blank = NULL, - }; - - /* SH7760: - * 0xFE300800: 256 * 4byte xRGB palette ram - * 0xFE300C00: 42 bytes ctrl registers - */ - static struct resource sh7760_lcdc_res[] = { - [0] = { - .start = 0xFE300800, - .end = 0xFE300CFF, - .flags = IORESOURCE_MEM, - }, - [1] = { - .start = 65, - .end = 65, - .flags = IORESOURCE_IRQ, - }, - }; - - static struct platform_device sh7760_lcdc_dev = { - .dev = { - .platform_data = &sh7760fb_nl6448, - }, - .name = "sh7760-lcdc", - .id = -1, - .resource = sh7760_lcdc_res, - .num_resources = ARRAY_SIZE(sh7760_lcdc_res), - }; +================================================ +SH7760/SH7763 integrated LCDC Framebuffer driver +================================================ + +0. Overview +----------- +The SH7760/SH7763 have an integrated LCD Display controller (LCDC) which +supports (in theory) resolutions ranging from 1x1 to 1024x1024, +with color depths ranging from 1 to 16 bits, on STN, DSTN and TFT Panels. + +Caveats: + +* Framebuffer memory must be a large chunk allocated at the top + of Area3 (HW requirement). Because of this requirement you should NOT + make the driver a module since at runtime it may become impossible to + get a large enough contiguous chunk of memory. + +* The driver does not support changing resolution while loaded + (displays aren't hotpluggable anyway) + +* Heavy flickering may be observed + a) if you're using 15/16bit color modes at >= 640x480 px resolutions, + b) during PCMCIA (or any other slow bus) activity. + +* Rotation works only 90degress clockwise, and only if horizontal + resolution is <= 320 pixels. + +Files: + - drivers/video/sh7760fb.c + - include/asm-sh/sh7760fb.h + - Documentation/fb/sh7760fb.rst + +1. Platform setup +----------------- +SH7760: + Video data is fetched via the DMABRG DMA engine, so you have to + configure the SH DMAC for DMABRG mode (write 0x94808080 to the + DMARSRA register somewhere at boot). + + PFC registers PCCR and PCDR must be set to peripheral mode. + (write zeros to both). + +The driver does NOT do the above for you since board setup is, well, job +of the board setup code. + +2. Panel definitions +-------------------- +The LCDC must explicitly be told about the type of LCD panel +attached. Data must be wrapped in a "struct sh7760fb_platdata" and +passed to the driver as platform_data. + +Suggest you take a closer look at the SH7760 Manual, Section 30. +(http://documentation.renesas.com/eng/products/mpumcu/e602291_sh7760.pdf) + +The following code illustrates what needs to be done to +get the framebuffer working on a 640x480 TFT:: + + #include + #include + + /* + * NEC NL6440bc26-01 640x480 TFT + * dotclock 25175 kHz + * Xres 640 Yres 480 + * Htotal 800 Vtotal 525 + * HsynStart 656 VsynStart 490 + * HsynLenn 30 VsynLenn 2 + * + * The linux framebuffer layer does not use the syncstart/synclen + * values but right/left/upper/lower margin values. The comments + * for the x_margin explain how to calculate those from given + * panel sync timings. + */ + static struct fb_videomode nl6448bc26 = { + .name = "NL6448BC26", + .refresh = 60, + .xres = 640, + .yres = 480, + .pixclock = 39683, /* in picoseconds! */ + .hsync_len = 30, + .vsync_len = 2, + .left_margin = 114, /* HTOT - (HSYNSLEN + HSYNSTART) */ + .right_margin = 16, /* HSYNSTART - XRES */ + .upper_margin = 33, /* VTOT - (VSYNLEN + VSYNSTART) */ + .lower_margin = 10, /* VSYNSTART - YRES */ + .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, + .vmode = FB_VMODE_NONINTERLACED, + .flag = 0, + }; + + static struct sh7760fb_platdata sh7760fb_nl6448 = { + .def_mode = &nl6448bc26, + .ldmtr = LDMTR_TFT_COLOR_16, /* 16bit TFT panel */ + .lddfr = LDDFR_8BPP, /* we want 8bit output */ + .ldpmmr = 0x0070, + .ldpspr = 0x0500, + .ldaclnr = 0, + .ldickr = LDICKR_CLKSRC(LCDC_CLKSRC_EXTERNAL) | + LDICKR_CLKDIV(1), + .rotate = 0, + .novsync = 1, + .blank = NULL, + }; + + /* SH7760: + * 0xFE300800: 256 * 4byte xRGB palette ram + * 0xFE300C00: 42 bytes ctrl registers + */ + static struct resource sh7760_lcdc_res[] = { + [0] = { + .start = 0xFE300800, + .end = 0xFE300CFF, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = 65, + .end = 65, + .flags = IORESOURCE_IRQ, + }, + }; + + static struct platform_device sh7760_lcdc_dev = { + .dev = { + .platform_data = &sh7760fb_nl6448, + }, + .name = "sh7760-lcdc", + .id = -1, + .resource = sh7760_lcdc_res, + .num_resources = ARRAY_SIZE(sh7760_lcdc_res), + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/adfs.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/adfs.rst index 975adbb07..5b22cae38 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/adfs.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/adfs.rst @@ -1,108 +1,108 @@ -.. SPDX-License-Identifier: GPL-2.0 - -=============================== -Acorn Disc Filing System - ADFS -=============================== - -Filesystems supported by ADFS ------------------------------ - -The ADFS module supports the following Filecore formats which have: - -- new maps -- new directories or big directories - -In terms of the named formats, this means we support: - -- E and E+, with or without boot block -- F and F+ - -We fully support reading files from these filesystems, and writing to -existing files within their existing allocation. Essentially, we do -not support changing any of the filesystem metadata. - -This is intended to support loopback mounted Linux native filesystems -on a RISC OS Filecore filesystem, but will allow the data within files -to be changed. - -If write support (ADFS_FS_RW) is configured, we allow rudimentary -directory updates, specifically updating the access mode and timestamp. - -Mount options for ADFS ----------------------- - - ============ ====================================================== - uid=nnn All files in the partition will be owned by - user id nnn. Default 0 (root). - gid=nnn All files in the partition will be in group - nnn. Default 0 (root). - ownmask=nnn The permission mask for ADFS 'owner' permissions - will be nnn. Default 0700. - othmask=nnn The permission mask for ADFS 'other' permissions - will be nnn. Default 0077. - ftsuffix=n When ftsuffix=0, no file type suffix will be applied. - When ftsuffix=1, a hexadecimal suffix corresponding to - the RISC OS file type will be added. Default 0. - ============ ====================================================== - -Mapping of ADFS permissions to Linux permissions ------------------------------------------------- - - ADFS permissions consist of the following: - - - Owner read - - Owner write - - Other read - - Other write - - (In older versions, an 'execute' permission did exist, but this - does not hold the same meaning as the Linux 'execute' permission - and is now obsolete). - - The mapping is performed as follows:: - - Owner read -> -r--r--r-- - Owner write -> --w--w---w - Owner read and filetype UnixExec -> ---x--x--x - These are then masked by ownmask, eg 700 -> -rwx------ - Possible owner mode permissions -> -rwx------ - - Other read -> -r--r--r-- - Other write -> --w--w--w- - Other read and filetype UnixExec -> ---x--x--x - These are then masked by othmask, eg 077 -> ----rwxrwx - Possible other mode permissions -> ----rwxrwx - - Hence, with the default masks, if a file is owner read/write, and - not a UnixExec filetype, then the permissions will be:: - - -rw------- - - However, if the masks were ownmask=0770,othmask=0007, then this would - be modified to:: - - -rw-rw---- - - There is no restriction on what you can do with these masks. You may - wish that either read bits give read access to the file for all, but - keep the default write protection (ownmask=0755,othmask=0577):: - - -rw-r--r-- - - You can therefore tailor the permission translation to whatever you - desire the permissions should be under Linux. - -RISC OS file type suffix ------------------------- - - RISC OS file types are stored in bits 19..8 of the file load address. - - To enable non-RISC OS systems to be used to store files without losing - file type information, a file naming convention was devised (initially - for use with NFS) such that a hexadecimal suffix of the form ,xyz - denoted the file type: e.g. BasicFile,ffb is a BASIC (0xffb) file. This - naming convention is now also used by RISC OS emulators such as RPCEmu. - - Mounting an ADFS disc with option ftsuffix=1 will cause appropriate file - type suffixes to be appended to file names read from a directory. If the - ftsuffix option is zero or omitted, no file type suffixes will be added. +.. SPDX-License-Identifier: GPL-2.0 + +=============================== +Acorn Disc Filing System - ADFS +=============================== + +Filesystems supported by ADFS +----------------------------- + +The ADFS module supports the following Filecore formats which have: + +- new maps +- new directories or big directories + +In terms of the named formats, this means we support: + +- E and E+, with or without boot block +- F and F+ + +We fully support reading files from these filesystems, and writing to +existing files within their existing allocation. Essentially, we do +not support changing any of the filesystem metadata. + +This is intended to support loopback mounted Linux native filesystems +on a RISC OS Filecore filesystem, but will allow the data within files +to be changed. + +If write support (ADFS_FS_RW) is configured, we allow rudimentary +directory updates, specifically updating the access mode and timestamp. + +Mount options for ADFS +---------------------- + + ============ ====================================================== + uid=nnn All files in the partition will be owned by + user id nnn. Default 0 (root). + gid=nnn All files in the partition will be in group + nnn. Default 0 (root). + ownmask=nnn The permission mask for ADFS 'owner' permissions + will be nnn. Default 0700. + othmask=nnn The permission mask for ADFS 'other' permissions + will be nnn. Default 0077. + ftsuffix=n When ftsuffix=0, no file type suffix will be applied. + When ftsuffix=1, a hexadecimal suffix corresponding to + the RISC OS file type will be added. Default 0. + ============ ====================================================== + +Mapping of ADFS permissions to Linux permissions +------------------------------------------------ + + ADFS permissions consist of the following: + + - Owner read + - Owner write + - Other read + - Other write + + (In older versions, an 'execute' permission did exist, but this + does not hold the same meaning as the Linux 'execute' permission + and is now obsolete). + + The mapping is performed as follows:: + + Owner read -> -r--r--r-- + Owner write -> --w--w---w + Owner read and filetype UnixExec -> ---x--x--x + These are then masked by ownmask, eg 700 -> -rwx------ + Possible owner mode permissions -> -rwx------ + + Other read -> -r--r--r-- + Other write -> --w--w--w- + Other read and filetype UnixExec -> ---x--x--x + These are then masked by othmask, eg 077 -> ----rwxrwx + Possible other mode permissions -> ----rwxrwx + + Hence, with the default masks, if a file is owner read/write, and + not a UnixExec filetype, then the permissions will be:: + + -rw------- + + However, if the masks were ownmask=0770,othmask=0007, then this would + be modified to:: + + -rw-rw---- + + There is no restriction on what you can do with these masks. You may + wish that either read bits give read access to the file for all, but + keep the default write protection (ownmask=0755,othmask=0577):: + + -rw-r--r-- + + You can therefore tailor the permission translation to whatever you + desire the permissions should be under Linux. + +RISC OS file type suffix +------------------------ + + RISC OS file types are stored in bits 19..8 of the file load address. + + To enable non-RISC OS systems to be used to store files without losing + file type information, a file naming convention was devised (initially + for use with NFS) such that a hexadecimal suffix of the form ,xyz + denoted the file type: e.g. BasicFile,ffb is a BASIC (0xffb) file. This + naming convention is now also used by RISC OS emulators such as RPCEmu. + + Mounting an ADFS disc with option ftsuffix=1 will cause appropriate file + type suffixes to be appended to file names read from a directory. If the + ftsuffix option is zero or omitted, no file type suffixes will be added. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/automount-support.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/automount-support.rst index 14a95a664..430f0b407 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/automount-support.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/automount-support.rst @@ -1,98 +1,98 @@ -.. SPDX-License-Identifier: GPL-2.0 - -================= -Automount Support -================= - - -Support is available for filesystems that wish to do automounting -support (such as kAFS which can be found in fs/afs/ and NFS in -fs/nfs/). This facility includes allowing in-kernel mounts to be -performed and mountpoint degradation to be requested. The latter can -also be requested by userspace. - - -In-Kernel Automounting -====================== - -See section "Mount Traps" of Documentation/filesystems/autofs.rst - -Then from userspace, you can just do something like:: - - [root@andromeda root]# mount -t afs \#root.afs. /afs - [root@andromeda root]# ls /afs - asd cambridge cambridge.redhat.com grand.central.org - [root@andromeda root]# ls /afs/cambridge - afsdoc - [root@andromeda root]# ls /afs/cambridge/afsdoc/ - ChangeLog html LICENSE pdf RELNOTES-1.2.2 - -And then if you look in the mountpoint catalogue, you'll see something like:: - - [root@andromeda root]# cat /proc/mounts - ... - #root.afs. /afs afs rw 0 0 - #root.cell. /afs/cambridge.redhat.com afs rw 0 0 - #afsdoc. /afs/cambridge.redhat.com/afsdoc afs rw 0 0 - - -Automatic Mountpoint Expiry -=========================== - -Automatic expiration of mountpoints is easy, provided you've mounted the -mountpoint to be expired in the automounting procedure outlined separately. - -To do expiration, you need to follow these steps: - - (1) Create at least one list off which the vfsmounts to be expired can be - hung. - - (2) When a new mountpoint is created in the ->d_automount method, add - the mnt to the list using mnt_set_expiry():: - - mnt_set_expiry(newmnt, &afs_vfsmounts); - - (3) When you want mountpoints to be expired, call mark_mounts_for_expiry() - with a pointer to this list. This will process the list, marking every - vfsmount thereon for potential expiry on the next call. - - If a vfsmount was already flagged for expiry, and if its usage count is 1 - (it's only referenced by its parent vfsmount), then it will be deleted - from the namespace and thrown away (effectively unmounted). - - It may prove simplest to simply call this at regular intervals, using - some sort of timed event to drive it. - -The expiration flag is cleared by calls to mntput. This means that expiration -will only happen on the second expiration request after the last time the -mountpoint was accessed. - -If a mountpoint is moved, it gets removed from the expiration list. If a bind -mount is made on an expirable mount, the new vfsmount will not be on the -expiration list and will not expire. - -If a namespace is copied, all mountpoints contained therein will be copied, -and the copies of those that are on an expiration list will be added to the -same expiration list. - - -Userspace Driven Expiry -======================= - -As an alternative, it is possible for userspace to request expiry of any -mountpoint (though some will be rejected - the current process's idea of the -rootfs for example). It does this by passing the MNT_EXPIRE flag to -umount(). This flag is considered incompatible with MNT_FORCE and MNT_DETACH. - -If the mountpoint in question is in referenced by something other than -umount() or its parent mountpoint, an EBUSY error will be returned and the -mountpoint will not be marked for expiration or unmounted. - -If the mountpoint was not already marked for expiry at that time, an EAGAIN -error will be given and it won't be unmounted. - -Otherwise if it was already marked and it wasn't referenced, unmounting will -take place as usual. - -Again, the expiration flag is cleared every time anything other than umount() -looks at a mountpoint. +.. SPDX-License-Identifier: GPL-2.0 + +================= +Automount Support +================= + + +Support is available for filesystems that wish to do automounting +support (such as kAFS which can be found in fs/afs/ and NFS in +fs/nfs/). This facility includes allowing in-kernel mounts to be +performed and mountpoint degradation to be requested. The latter can +also be requested by userspace. + + +In-Kernel Automounting +====================== + +See section "Mount Traps" of Documentation/filesystems/autofs.rst + +Then from userspace, you can just do something like:: + + [root@andromeda root]# mount -t afs \#root.afs. /afs + [root@andromeda root]# ls /afs + asd cambridge cambridge.redhat.com grand.central.org + [root@andromeda root]# ls /afs/cambridge + afsdoc + [root@andromeda root]# ls /afs/cambridge/afsdoc/ + ChangeLog html LICENSE pdf RELNOTES-1.2.2 + +And then if you look in the mountpoint catalogue, you'll see something like:: + + [root@andromeda root]# cat /proc/mounts + ... + #root.afs. /afs afs rw 0 0 + #root.cell. /afs/cambridge.redhat.com afs rw 0 0 + #afsdoc. /afs/cambridge.redhat.com/afsdoc afs rw 0 0 + + +Automatic Mountpoint Expiry +=========================== + +Automatic expiration of mountpoints is easy, provided you've mounted the +mountpoint to be expired in the automounting procedure outlined separately. + +To do expiration, you need to follow these steps: + + (1) Create at least one list off which the vfsmounts to be expired can be + hung. + + (2) When a new mountpoint is created in the ->d_automount method, add + the mnt to the list using mnt_set_expiry():: + + mnt_set_expiry(newmnt, &afs_vfsmounts); + + (3) When you want mountpoints to be expired, call mark_mounts_for_expiry() + with a pointer to this list. This will process the list, marking every + vfsmount thereon for potential expiry on the next call. + + If a vfsmount was already flagged for expiry, and if its usage count is 1 + (it's only referenced by its parent vfsmount), then it will be deleted + from the namespace and thrown away (effectively unmounted). + + It may prove simplest to simply call this at regular intervals, using + some sort of timed event to drive it. + +The expiration flag is cleared by calls to mntput. This means that expiration +will only happen on the second expiration request after the last time the +mountpoint was accessed. + +If a mountpoint is moved, it gets removed from the expiration list. If a bind +mount is made on an expirable mount, the new vfsmount will not be on the +expiration list and will not expire. + +If a namespace is copied, all mountpoints contained therein will be copied, +and the copies of those that are on an expiration list will be added to the +same expiration list. + + +Userspace Driven Expiry +======================= + +As an alternative, it is possible for userspace to request expiry of any +mountpoint (though some will be rejected - the current process's idea of the +rootfs for example). It does this by passing the MNT_EXPIRE flag to +umount(). This flag is considered incompatible with MNT_FORCE and MNT_DETACH. + +If the mountpoint in question is in referenced by something other than +umount() or its parent mountpoint, an EBUSY error will be returned and the +mountpoint will not be marked for expiration or unmounted. + +If the mountpoint was not already marked for expiry at that time, an EAGAIN +error will be given and it won't be unmounted. + +Otherwise if it was already marked and it wasn't referenced, unmounting will +take place as usual. + +Again, the expiration flag is cleared every time anything other than umount() +looks at a mountpoint. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/befs.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/befs.rst index c1c905d51..a22f603b2 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/befs.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/befs.rst @@ -1,128 +1,128 @@ -.. SPDX-License-Identifier: GPL-2.0 - -========================= -BeOS filesystem for Linux -========================= - -Document last updated: Dec 6, 2001 - -Warning -======= -Make sure you understand that this is alpha software. This means that the -implementation is neither complete nor well-tested. - -I DISCLAIM ALL RESPONSIBILITY FOR ANY POSSIBLE BAD EFFECTS OF THIS CODE! - -License -======= -This software is covered by the GNU General Public License. -See the file COPYING for the complete text of the license. -Or the GNU website: - -Author -====== -The largest part of the code written by Will Dyson -He has been working on the code since Aug 13, 2001. See the changelog for -details. - -Original Author: Makoto Kato - -His original code can still be found at: - - -Does anyone know of a more current email address for Makoto? He doesn't -respond to the address given above... - -This filesystem doesn't have a maintainer. - -What is this Driver? -==================== -This module implements the native filesystem of BeOS http://www.beincorporated.com/ -for the linux 2.4.1 and later kernels. Currently it is a read-only -implementation. - -Which is it, BFS or BEFS? -========================= -Be, Inc said, "BeOS Filesystem is officially called BFS, not BeFS". -But Unixware Boot Filesystem is called bfs, too. And they are already in -the kernel. Because of this naming conflict, on Linux the BeOS -filesystem is called befs. - -How to Install -============== -step 1. Install the BeFS patch into the source code tree of linux. - -Apply the patchfile to your kernel source tree. -Assuming that your kernel source is in /foo/bar/linux and the patchfile -is called patch-befs-xxx, you would do the following: - - cd /foo/bar/linux - patch -p1 < /path/to/patch-befs-xxx - -if the patching step fails (i.e. there are rejected hunks), you can try to -figure it out yourself (it shouldn't be hard), or mail the maintainer -(Will Dyson ) for help. - -step 2. Configuration & make kernel - -The linux kernel has many compile-time options. Most of them are beyond the -scope of this document. I suggest the Kernel-HOWTO document as a good general -reference on this topic. http://www.linuxdocs.org/HOWTOs/Kernel-HOWTO-4.html - -However, to use the BeFS module, you must enable it at configure time:: - - cd /foo/bar/linux - make menuconfig (or xconfig) - -The BeFS module is not a standard part of the linux kernel, so you must first -enable support for experimental code under the "Code maturity level" menu. - -Then, under the "Filesystems" menu will be an option called "BeFS -filesystem (experimental)", or something like that. Enable that option -(it is fine to make it a module). - -Save your kernel configuration and then build your kernel. - -step 3. Install - -See the kernel howto for -instructions on this critical step. - -Using BFS -========= -To use the BeOS filesystem, use filesystem type 'befs'. - -ex:: - - mount -t befs /dev/fd0 /beos - -Mount Options -============= - -============= =========================================================== -uid=nnn All files in the partition will be owned by user id nnn. -gid=nnn All files in the partition will be in group nnn. -iocharset=xxx Use xxx as the name of the NLS translation table. -debug The driver will output debugging information to the syslog. -============= =========================================================== - -How to Get Latest Version -========================= - -The latest version is currently available at: - - -Any Known Bugs? -=============== -As of Jan 20, 2002: - - None - -Special Thanks -============== -Dominic Giampalo ... Writing "Practical file system design with Be filesystem" - -Hiroyuki Yamada ... Testing LinuxPPC. - - - +.. SPDX-License-Identifier: GPL-2.0 + +========================= +BeOS filesystem for Linux +========================= + +Document last updated: Dec 6, 2001 + +Warning +======= +Make sure you understand that this is alpha software. This means that the +implementation is neither complete nor well-tested. + +I DISCLAIM ALL RESPONSIBILITY FOR ANY POSSIBLE BAD EFFECTS OF THIS CODE! + +License +======= +This software is covered by the GNU General Public License. +See the file COPYING for the complete text of the license. +Or the GNU website: + +Author +====== +The largest part of the code written by Will Dyson +He has been working on the code since Aug 13, 2001. See the changelog for +details. + +Original Author: Makoto Kato + +His original code can still be found at: + + +Does anyone know of a more current email address for Makoto? He doesn't +respond to the address given above... + +This filesystem doesn't have a maintainer. + +What is this Driver? +==================== +This module implements the native filesystem of BeOS http://www.beincorporated.com/ +for the linux 2.4.1 and later kernels. Currently it is a read-only +implementation. + +Which is it, BFS or BEFS? +========================= +Be, Inc said, "BeOS Filesystem is officially called BFS, not BeFS". +But Unixware Boot Filesystem is called bfs, too. And they are already in +the kernel. Because of this naming conflict, on Linux the BeOS +filesystem is called befs. + +How to Install +============== +step 1. Install the BeFS patch into the source code tree of linux. + +Apply the patchfile to your kernel source tree. +Assuming that your kernel source is in /foo/bar/linux and the patchfile +is called patch-befs-xxx, you would do the following: + + cd /foo/bar/linux + patch -p1 < /path/to/patch-befs-xxx + +if the patching step fails (i.e. there are rejected hunks), you can try to +figure it out yourself (it shouldn't be hard), or mail the maintainer +(Will Dyson ) for help. + +step 2. Configuration & make kernel + +The linux kernel has many compile-time options. Most of them are beyond the +scope of this document. I suggest the Kernel-HOWTO document as a good general +reference on this topic. http://www.linuxdocs.org/HOWTOs/Kernel-HOWTO-4.html + +However, to use the BeFS module, you must enable it at configure time:: + + cd /foo/bar/linux + make menuconfig (or xconfig) + +The BeFS module is not a standard part of the linux kernel, so you must first +enable support for experimental code under the "Code maturity level" menu. + +Then, under the "Filesystems" menu will be an option called "BeFS +filesystem (experimental)", or something like that. Enable that option +(it is fine to make it a module). + +Save your kernel configuration and then build your kernel. + +step 3. Install + +See the kernel howto for +instructions on this critical step. + +Using BFS +========= +To use the BeOS filesystem, use filesystem type 'befs'. + +ex:: + + mount -t befs /dev/fd0 /beos + +Mount Options +============= + +============= =========================================================== +uid=nnn All files in the partition will be owned by user id nnn. +gid=nnn All files in the partition will be in group nnn. +iocharset=xxx Use xxx as the name of the NLS translation table. +debug The driver will output debugging information to the syslog. +============= =========================================================== + +How to Get Latest Version +========================= + +The latest version is currently available at: + + +Any Known Bugs? +=============== +As of Jan 20, 2002: + + None + +Special Thanks +============== +Dominic Giampalo ... Writing "Practical file system design with Be filesystem" + +Hiroyuki Yamada ... Testing LinuxPPC. + + + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/gfs2-uevents.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/gfs2-uevents.rst index 94fbfbd24..f162a2c76 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/gfs2-uevents.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/gfs2-uevents.rst @@ -1,112 +1,112 @@ -.. SPDX-License-Identifier: GPL-2.0 - -================ -uevents and GFS2 -================ - -During the lifetime of a GFS2 mount, a number of uevents are generated. -This document explains what the events are and what they are used -for (by gfs_controld in gfs2-utils). - -A list of GFS2 uevents -====================== - -1. ADD ------- - -The ADD event occurs at mount time. It will always be the first -uevent generated by the newly created filesystem. If the mount -is successful, an ONLINE uevent will follow. If it is not successful -then a REMOVE uevent will follow. - -The ADD uevent has two environment variables: SPECTATOR=[0|1] -and RDONLY=[0|1] that specify the spectator status (a read-only mount -with no journal assigned), and read-only (with journal assigned) status -of the filesystem respectively. - -2. ONLINE ---------- - -The ONLINE uevent is generated after a successful mount or remount. It -has the same environment variables as the ADD uevent. The ONLINE -uevent, along with the two environment variables for spectator and -RDONLY are a relatively recent addition (2.6.32-rc+) and will not -be generated by older kernels. - -3. CHANGE ---------- - -The CHANGE uevent is used in two places. One is when reporting the -successful mount of the filesystem by the first node (FIRSTMOUNT=Done). -This is used as a signal by gfs_controld that it is then ok for other -nodes in the cluster to mount the filesystem. - -The other CHANGE uevent is used to inform of the completion -of journal recovery for one of the filesystems journals. It has -two environment variables, JID= which specifies the journal id which -has just been recovered, and RECOVERY=[Done|Failed] to indicate the -success (or otherwise) of the operation. These uevents are generated -for every journal recovered, whether it is during the initial mount -process or as the result of gfs_controld requesting a specific journal -recovery via the /sys/fs/gfs2//lock_module/recovery file. - -Because the CHANGE uevent was used (in early versions of gfs_controld) -without checking the environment variables to discover the state, we -cannot add any more functions to it without running the risk of -someone using an older version of the user tools and breaking their -cluster. For this reason the ONLINE uevent was used when adding a new -uevent for a successful mount or remount. - -4. OFFLINE ----------- - -The OFFLINE uevent is only generated due to filesystem errors and is used -as part of the "withdraw" mechanism. Currently this doesn't give any -information about what the error is, which is something that needs to -be fixed. - -5. REMOVE ---------- - -The REMOVE uevent is generated at the end of an unsuccessful mount -or at the end of a umount of the filesystem. All REMOVE uevents will -have been preceded by at least an ADD uevent for the same filesystem, -and unlike the other uevents is generated automatically by the kernel's -kobject subsystem. - - -Information common to all GFS2 uevents (uevent environment variables) -===================================================================== - -1. LOCKTABLE= --------------- - -The LOCKTABLE is a string, as supplied on the mount command -line (locktable=) or via fstab. It is used as a filesystem label -as well as providing the information for a lock_dlm mount to be -able to join the cluster. - -2. LOCKPROTO= -------------- - -The LOCKPROTO is a string, and its value depends on what is set -on the mount command line, or via fstab. It will be either -lock_nolock or lock_dlm. In the future other lock managers -may be supported. - -3. JOURNALID= -------------- - -If a journal is in use by the filesystem (journals are not -assigned for spectator mounts) then this will give the -numeric journal id in all GFS2 uevents. - -4. UUID= --------- - -With recent versions of gfs2-utils, mkfs.gfs2 writes a UUID -into the filesystem superblock. If it exists, this will -be included in every uevent relating to the filesystem. - - - +.. SPDX-License-Identifier: GPL-2.0 + +================ +uevents and GFS2 +================ + +During the lifetime of a GFS2 mount, a number of uevents are generated. +This document explains what the events are and what they are used +for (by gfs_controld in gfs2-utils). + +A list of GFS2 uevents +====================== + +1. ADD +------ + +The ADD event occurs at mount time. It will always be the first +uevent generated by the newly created filesystem. If the mount +is successful, an ONLINE uevent will follow. If it is not successful +then a REMOVE uevent will follow. + +The ADD uevent has two environment variables: SPECTATOR=[0|1] +and RDONLY=[0|1] that specify the spectator status (a read-only mount +with no journal assigned), and read-only (with journal assigned) status +of the filesystem respectively. + +2. ONLINE +--------- + +The ONLINE uevent is generated after a successful mount or remount. It +has the same environment variables as the ADD uevent. The ONLINE +uevent, along with the two environment variables for spectator and +RDONLY are a relatively recent addition (2.6.32-rc+) and will not +be generated by older kernels. + +3. CHANGE +--------- + +The CHANGE uevent is used in two places. One is when reporting the +successful mount of the filesystem by the first node (FIRSTMOUNT=Done). +This is used as a signal by gfs_controld that it is then ok for other +nodes in the cluster to mount the filesystem. + +The other CHANGE uevent is used to inform of the completion +of journal recovery for one of the filesystems journals. It has +two environment variables, JID= which specifies the journal id which +has just been recovered, and RECOVERY=[Done|Failed] to indicate the +success (or otherwise) of the operation. These uevents are generated +for every journal recovered, whether it is during the initial mount +process or as the result of gfs_controld requesting a specific journal +recovery via the /sys/fs/gfs2//lock_module/recovery file. + +Because the CHANGE uevent was used (in early versions of gfs_controld) +without checking the environment variables to discover the state, we +cannot add any more functions to it without running the risk of +someone using an older version of the user tools and breaking their +cluster. For this reason the ONLINE uevent was used when adding a new +uevent for a successful mount or remount. + +4. OFFLINE +---------- + +The OFFLINE uevent is only generated due to filesystem errors and is used +as part of the "withdraw" mechanism. Currently this doesn't give any +information about what the error is, which is something that needs to +be fixed. + +5. REMOVE +--------- + +The REMOVE uevent is generated at the end of an unsuccessful mount +or at the end of a umount of the filesystem. All REMOVE uevents will +have been preceded by at least an ADD uevent for the same filesystem, +and unlike the other uevents is generated automatically by the kernel's +kobject subsystem. + + +Information common to all GFS2 uevents (uevent environment variables) +===================================================================== + +1. LOCKTABLE= +-------------- + +The LOCKTABLE is a string, as supplied on the mount command +line (locktable=) or via fstab. It is used as a filesystem label +as well as providing the information for a lock_dlm mount to be +able to join the cluster. + +2. LOCKPROTO= +------------- + +The LOCKPROTO is a string, and its value depends on what is set +on the mount command line, or via fstab. It will be either +lock_nolock or lock_dlm. In the future other lock managers +may be supported. + +3. JOURNALID= +------------- + +If a journal is in use by the filesystem (journals are not +assigned for spectator mounts) then this will give the +numeric journal id in all GFS2 uevents. + +4. UUID= +-------- + +With recent versions of gfs2-utils, mkfs.gfs2 writes a UUID +into the filesystem superblock. If it exists, this will +be included in every uevent relating to the filesystem. + + + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/inotify.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/inotify.rst index f2a0315e9..7f7ef8af0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/inotify.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/inotify.rst @@ -1,90 +1,90 @@ -.. SPDX-License-Identifier: GPL-2.0 - -=============================================================== -Inotify - A Powerful yet Simple File Change Notification System -=============================================================== - - - -Document started 15 Mar 2005 by Robert Love - -Document updated 4 Jan 2015 by Zhang Zhen - - - Deleted obsoleted interface, just refer to manpages for user interface. - -(i) Rationale - -Q: - What is the design decision behind not tying the watch to the open fd of - the watched object? - -A: - Watches are associated with an open inotify device, not an open file. - This solves the primary problem with dnotify: keeping the file open pins - the file and thus, worse, pins the mount. Dnotify is therefore infeasible - for use on a desktop system with removable media as the media cannot be - unmounted. Watching a file should not require that it be open. - -Q: - What is the design decision behind using an-fd-per-instance as opposed to - an fd-per-watch? - -A: - An fd-per-watch quickly consumes more file descriptors than are allowed, - more fd's than are feasible to manage, and more fd's than are optimally - select()-able. Yes, root can bump the per-process fd limit and yes, users - can use epoll, but requiring both is a silly and extraneous requirement. - A watch consumes less memory than an open file, separating the number - spaces is thus sensible. The current design is what user-space developers - want: Users initialize inotify, once, and add n watches, requiring but one - fd and no twiddling with fd limits. Initializing an inotify instance two - thousand times is silly. If we can implement user-space's preferences - cleanly--and we can, the idr layer makes stuff like this trivial--then we - should. - - There are other good arguments. With a single fd, there is a single - item to block on, which is mapped to a single queue of events. The single - fd returns all watch events and also any potential out-of-band data. If - every fd was a separate watch, - - - There would be no way to get event ordering. Events on file foo and - file bar would pop poll() on both fd's, but there would be no way to tell - which happened first. A single queue trivially gives you ordering. Such - ordering is crucial to existing applications such as Beagle. Imagine - "mv a b ; mv b a" events without ordering. - - - We'd have to maintain n fd's and n internal queues with state, - versus just one. It is a lot messier in the kernel. A single, linear - queue is the data structure that makes sense. - - - User-space developers prefer the current API. The Beagle guys, for - example, love it. Trust me, I asked. It is not a surprise: Who'd want - to manage and block on 1000 fd's via select? - - - No way to get out of band data. - - - 1024 is still too low. ;-) - - When you talk about designing a file change notification system that - scales to 1000s of directories, juggling 1000s of fd's just does not seem - the right interface. It is too heavy. - - Additionally, it _is_ possible to more than one instance and - juggle more than one queue and thus more than one associated fd. There - need not be a one-fd-per-process mapping; it is one-fd-per-queue and a - process can easily want more than one queue. - -Q: - Why the system call approach? - -A: - The poor user-space interface is the second biggest problem with dnotify. - Signals are a terrible, terrible interface for file notification. Or for - anything, for that matter. The ideal solution, from all perspectives, is a - file descriptor-based one that allows basic file I/O and poll/select. - Obtaining the fd and managing the watches could have been done either via a - device file or a family of new system calls. We decided to implement a - family of system calls because that is the preferred approach for new kernel - interfaces. The only real difference was whether we wanted to use open(2) - and ioctl(2) or a couple of new system calls. System calls beat ioctls. - +.. SPDX-License-Identifier: GPL-2.0 + +=============================================================== +Inotify - A Powerful yet Simple File Change Notification System +=============================================================== + + + +Document started 15 Mar 2005 by Robert Love + +Document updated 4 Jan 2015 by Zhang Zhen + + - Deleted obsoleted interface, just refer to manpages for user interface. + +(i) Rationale + +Q: + What is the design decision behind not tying the watch to the open fd of + the watched object? + +A: + Watches are associated with an open inotify device, not an open file. + This solves the primary problem with dnotify: keeping the file open pins + the file and thus, worse, pins the mount. Dnotify is therefore infeasible + for use on a desktop system with removable media as the media cannot be + unmounted. Watching a file should not require that it be open. + +Q: + What is the design decision behind using an-fd-per-instance as opposed to + an fd-per-watch? + +A: + An fd-per-watch quickly consumes more file descriptors than are allowed, + more fd's than are feasible to manage, and more fd's than are optimally + select()-able. Yes, root can bump the per-process fd limit and yes, users + can use epoll, but requiring both is a silly and extraneous requirement. + A watch consumes less memory than an open file, separating the number + spaces is thus sensible. The current design is what user-space developers + want: Users initialize inotify, once, and add n watches, requiring but one + fd and no twiddling with fd limits. Initializing an inotify instance two + thousand times is silly. If we can implement user-space's preferences + cleanly--and we can, the idr layer makes stuff like this trivial--then we + should. + + There are other good arguments. With a single fd, there is a single + item to block on, which is mapped to a single queue of events. The single + fd returns all watch events and also any potential out-of-band data. If + every fd was a separate watch, + + - There would be no way to get event ordering. Events on file foo and + file bar would pop poll() on both fd's, but there would be no way to tell + which happened first. A single queue trivially gives you ordering. Such + ordering is crucial to existing applications such as Beagle. Imagine + "mv a b ; mv b a" events without ordering. + + - We'd have to maintain n fd's and n internal queues with state, + versus just one. It is a lot messier in the kernel. A single, linear + queue is the data structure that makes sense. + + - User-space developers prefer the current API. The Beagle guys, for + example, love it. Trust me, I asked. It is not a surprise: Who'd want + to manage and block on 1000 fd's via select? + + - No way to get out of band data. + + - 1024 is still too low. ;-) + + When you talk about designing a file change notification system that + scales to 1000s of directories, juggling 1000s of fd's just does not seem + the right interface. It is too heavy. + + Additionally, it _is_ possible to more than one instance and + juggle more than one queue and thus more than one associated fd. There + need not be a one-fd-per-process mapping; it is one-fd-per-queue and a + process can easily want more than one queue. + +Q: + Why the system call approach? + +A: + The poor user-space interface is the second biggest problem with dnotify. + Signals are a terrible, terrible interface for file notification. Or for + anything, for that matter. The ideal solution, from all perspectives, is a + file descriptor-based one that allows basic file I/O and poll/select. + Obtaining the fd and managing the watches could have been done either via a + device file or a family of new system calls. We decided to implement a + family of system calls because that is the preferred approach for new kernel + interfaces. The only real difference was whether we wanted to use open(2) + and ioctl(2) or a couple of new system calls. System calls beat ioctls. + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/nfs/reexport.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/nfs/reexport.rst index a21e4e628..ff9ae4a46 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/nfs/reexport.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/nfs/reexport.rst @@ -1,113 +1,113 @@ -Reexporting NFS filesystems -=========================== - -Overview --------- - -It is possible to reexport an NFS filesystem over NFS. However, this -feature comes with a number of limitations. Before trying it, we -recommend some careful research to determine whether it will work for -your purposes. - -A discussion of current known limitations follows. - -"fsid=" required, crossmnt broken ---------------------------------- - -We require the "fsid=" export option on any reexport of an NFS -filesystem. You can use "uuidgen -r" to generate a unique argument. - -The "crossmnt" export does not propagate "fsid=", so it will not allow -traversing into further nfs filesystems; if you wish to export nfs -filesystems mounted under the exported filesystem, you'll need to export -them explicitly, assigning each its own unique "fsid= option. - -Reboot recovery ---------------- - -The NFS protocol's normal reboot recovery mechanisms don't work for the -case when the reexport server reboots. Clients will lose any locks -they held before the reboot, and further IO will result in errors. -Closing and reopening files should clear the errors. - -Filehandle limits ------------------ - -If the original server uses an X byte filehandle for a given object, the -reexport server's filehandle for the reexported object will be X+22 -bytes, rounded up to the nearest multiple of four bytes. - -The result must fit into the RFC-mandated filehandle size limits: - -+-------+-----------+ -| NFSv2 | 32 bytes | -+-------+-----------+ -| NFSv3 | 64 bytes | -+-------+-----------+ -| NFSv4 | 128 bytes | -+-------+-----------+ - -So, for example, you will only be able to reexport a filesystem over -NFSv2 if the original server gives you filehandles that fit in 10 -bytes--which is unlikely. - -In general there's no way to know the maximum filehandle size given out -by an NFS server without asking the server vendor. - -But the following table gives a few examples. The first column is the -typical length of the filehandle from a Linux server exporting the given -filesystem, the second is the length after that nfs export is reexported -by another Linux host: - -+--------+-------------------+----------------+ -| | filehandle length | after reexport | -+========+===================+================+ -| ext4: | 28 bytes | 52 bytes | -+--------+-------------------+----------------+ -| xfs: | 32 bytes | 56 bytes | -+--------+-------------------+----------------+ -| btrfs: | 40 bytes | 64 bytes | -+--------+-------------------+----------------+ - -All will therefore fit in an NFSv3 or NFSv4 filehandle after reexport, -but none are reexportable over NFSv2. - -Linux server filehandles are a bit more complicated than this, though; -for example: - - - The (non-default) "subtreecheck" export option generally - requires another 4 to 8 bytes in the filehandle. - - If you export a subdirectory of a filesystem (instead of - exporting the filesystem root), that also usually adds 4 to 8 - bytes. - - If you export over NFSv2, knfsd usually uses a shorter - filesystem identifier that saves 8 bytes. - - The root directory of an export uses a filehandle that is - shorter. - -As you can see, the 128-byte NFSv4 filehandle is large enough that -you're unlikely to have trouble using NFSv4 to reexport any filesystem -exported from a Linux server. In general, if the original server is -something that also supports NFSv3, you're *probably* OK. Re-exporting -over NFSv3 may be dicier, and reexporting over NFSv2 will probably -never work. - -For more details of Linux filehandle structure, the best reference is -the source code and comments; see in particular: - - - include/linux/exportfs.h:enum fid_type - - include/uapi/linux/nfsd/nfsfh.h:struct nfs_fhbase_new - - fs/nfsd/nfsfh.c:set_version_and_fsid_type - - fs/nfs/export.c:nfs_encode_fh - -Open DENY bits ignored ----------------------- - -NFS since NFSv4 supports ALLOW and DENY bits taken from Windows, which -allow you, for example, to open a file in a mode which forbids other -read opens or write opens. The Linux client doesn't use them, and the -server's support has always been incomplete: they are enforced only -against other NFS users, not against processes accessing the exported -filesystem locally. A reexport server will also not pass them along to -the original server, so they will not be enforced between clients of -different reexport servers. +Reexporting NFS filesystems +=========================== + +Overview +-------- + +It is possible to reexport an NFS filesystem over NFS. However, this +feature comes with a number of limitations. Before trying it, we +recommend some careful research to determine whether it will work for +your purposes. + +A discussion of current known limitations follows. + +"fsid=" required, crossmnt broken +--------------------------------- + +We require the "fsid=" export option on any reexport of an NFS +filesystem. You can use "uuidgen -r" to generate a unique argument. + +The "crossmnt" export does not propagate "fsid=", so it will not allow +traversing into further nfs filesystems; if you wish to export nfs +filesystems mounted under the exported filesystem, you'll need to export +them explicitly, assigning each its own unique "fsid= option. + +Reboot recovery +--------------- + +The NFS protocol's normal reboot recovery mechanisms don't work for the +case when the reexport server reboots. Clients will lose any locks +they held before the reboot, and further IO will result in errors. +Closing and reopening files should clear the errors. + +Filehandle limits +----------------- + +If the original server uses an X byte filehandle for a given object, the +reexport server's filehandle for the reexported object will be X+22 +bytes, rounded up to the nearest multiple of four bytes. + +The result must fit into the RFC-mandated filehandle size limits: + ++-------+-----------+ +| NFSv2 | 32 bytes | ++-------+-----------+ +| NFSv3 | 64 bytes | ++-------+-----------+ +| NFSv4 | 128 bytes | ++-------+-----------+ + +So, for example, you will only be able to reexport a filesystem over +NFSv2 if the original server gives you filehandles that fit in 10 +bytes--which is unlikely. + +In general there's no way to know the maximum filehandle size given out +by an NFS server without asking the server vendor. + +But the following table gives a few examples. The first column is the +typical length of the filehandle from a Linux server exporting the given +filesystem, the second is the length after that nfs export is reexported +by another Linux host: + ++--------+-------------------+----------------+ +| | filehandle length | after reexport | ++========+===================+================+ +| ext4: | 28 bytes | 52 bytes | ++--------+-------------------+----------------+ +| xfs: | 32 bytes | 56 bytes | ++--------+-------------------+----------------+ +| btrfs: | 40 bytes | 64 bytes | ++--------+-------------------+----------------+ + +All will therefore fit in an NFSv3 or NFSv4 filehandle after reexport, +but none are reexportable over NFSv2. + +Linux server filehandles are a bit more complicated than this, though; +for example: + + - The (non-default) "subtreecheck" export option generally + requires another 4 to 8 bytes in the filehandle. + - If you export a subdirectory of a filesystem (instead of + exporting the filesystem root), that also usually adds 4 to 8 + bytes. + - If you export over NFSv2, knfsd usually uses a shorter + filesystem identifier that saves 8 bytes. + - The root directory of an export uses a filehandle that is + shorter. + +As you can see, the 128-byte NFSv4 filehandle is large enough that +you're unlikely to have trouble using NFSv4 to reexport any filesystem +exported from a Linux server. In general, if the original server is +something that also supports NFSv3, you're *probably* OK. Re-exporting +over NFSv3 may be dicier, and reexporting over NFSv2 will probably +never work. + +For more details of Linux filehandle structure, the best reference is +the source code and comments; see in particular: + + - include/linux/exportfs.h:enum fid_type + - include/uapi/linux/nfsd/nfsfh.h:struct nfs_fhbase_new + - fs/nfsd/nfsfh.c:set_version_and_fsid_type + - fs/nfs/export.c:nfs_encode_fh + +Open DENY bits ignored +---------------------- + +NFS since NFSv4 supports ALLOW and DENY bits taken from Windows, which +allow you, for example, to open a file in a mode which forbids other +read opens or write opens. The Linux client doesn't use them, and the +server's support has always been incomplete: they are enforced only +against other NFS users, not against processes accessing the exported +filesystem locally. A reexport server will also not pass them along to +the original server, so they will not be enforced between clients of +different reexport servers. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/nfs/rpc-server-gss.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/nfs/rpc-server-gss.rst index 0b1436146..5c1a1c58f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/nfs/rpc-server-gss.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/nfs/rpc-server-gss.rst @@ -1,93 +1,93 @@ -========================================= -rpcsec_gss support for kernel RPC servers -========================================= - -This document gives references to the standards and protocols used to -implement RPCGSS authentication in kernel RPC servers such as the NFS -server and the NFS client's NFSv4.0 callback server. (But note that -NFSv4.1 and higher don't require the client to act as a server for the -purposes of authentication.) - -RPCGSS is specified in a few IETF documents: - - - RFC2203 v1: https://tools.ietf.org/rfc/rfc2203.txt - - RFC5403 v2: https://tools.ietf.org/rfc/rfc5403.txt - -There is a third version that we don't currently implement: - - - RFC7861 v3: https://tools.ietf.org/rfc/rfc7861.txt - -Background -========== - -The RPCGSS Authentication method describes a way to perform GSSAPI -Authentication for NFS. Although GSSAPI is itself completely mechanism -agnostic, in many cases only the KRB5 mechanism is supported by NFS -implementations. - -The Linux kernel, at the moment, supports only the KRB5 mechanism, and -depends on GSSAPI extensions that are KRB5 specific. - -GSSAPI is a complex library, and implementing it completely in kernel is -unwarranted. However GSSAPI operations are fundamentally separable in 2 -parts: - -- initial context establishment -- integrity/privacy protection (signing and encrypting of individual - packets) - -The former is more complex and policy-independent, but less -performance-sensitive. The latter is simpler and needs to be very fast. - -Therefore, we perform per-packet integrity and privacy protection in the -kernel, but leave the initial context establishment to userspace. We -need upcalls to request userspace to perform context establishment. - -NFS Server Legacy Upcall Mechanism -================================== - -The classic upcall mechanism uses a custom text based upcall mechanism -to talk to a custom daemon called rpc.svcgssd that is provide by the -nfs-utils package. - -This upcall mechanism has 2 limitations: - -A) It can handle tokens that are no bigger than 2KiB - -In some Kerberos deployment GSSAPI tokens can be quite big, up and -beyond 64KiB in size due to various authorization extensions attacked to -the Kerberos tickets, that needs to be sent through the GSS layer in -order to perform context establishment. - -B) It does not properly handle creds where the user is member of more -than a few thousand groups (the current hard limit in the kernel is 65K -groups) due to limitation on the size of the buffer that can be send -back to the kernel (4KiB). - -NFS Server New RPC Upcall Mechanism -=================================== - -The newer upcall mechanism uses RPC over a unix socket to a daemon -called gss-proxy, implemented by a userspace program called Gssproxy. - -The gss_proxy RPC protocol is currently documented `here -`_. - -This upcall mechanism uses the kernel rpc client and connects to the gssproxy -userspace program over a regular unix socket. The gssproxy protocol does not -suffer from the size limitations of the legacy protocol. - -Negotiating Upcall Mechanisms -============================= - -To provide backward compatibility, the kernel defaults to using the -legacy mechanism. To switch to the new mechanism, gss-proxy must bind -to /var/run/gssproxy.sock and then write "1" to -/proc/net/rpc/use-gss-proxy. If gss-proxy dies, it must repeat both -steps. - -Once the upcall mechanism is chosen, it cannot be changed. To prevent -locking into the legacy mechanisms, the above steps must be performed -before starting nfsd. Whoever starts nfsd can guarantee this by reading -from /proc/net/rpc/use-gss-proxy and checking that it contains a -"1"--the read will block until gss-proxy has done its write to the file. +========================================= +rpcsec_gss support for kernel RPC servers +========================================= + +This document gives references to the standards and protocols used to +implement RPCGSS authentication in kernel RPC servers such as the NFS +server and the NFS client's NFSv4.0 callback server. (But note that +NFSv4.1 and higher don't require the client to act as a server for the +purposes of authentication.) + +RPCGSS is specified in a few IETF documents: + + - RFC2203 v1: https://tools.ietf.org/rfc/rfc2203.txt + - RFC5403 v2: https://tools.ietf.org/rfc/rfc5403.txt + +There is a third version that we don't currently implement: + + - RFC7861 v3: https://tools.ietf.org/rfc/rfc7861.txt + +Background +========== + +The RPCGSS Authentication method describes a way to perform GSSAPI +Authentication for NFS. Although GSSAPI is itself completely mechanism +agnostic, in many cases only the KRB5 mechanism is supported by NFS +implementations. + +The Linux kernel, at the moment, supports only the KRB5 mechanism, and +depends on GSSAPI extensions that are KRB5 specific. + +GSSAPI is a complex library, and implementing it completely in kernel is +unwarranted. However GSSAPI operations are fundamentally separable in 2 +parts: + +- initial context establishment +- integrity/privacy protection (signing and encrypting of individual + packets) + +The former is more complex and policy-independent, but less +performance-sensitive. The latter is simpler and needs to be very fast. + +Therefore, we perform per-packet integrity and privacy protection in the +kernel, but leave the initial context establishment to userspace. We +need upcalls to request userspace to perform context establishment. + +NFS Server Legacy Upcall Mechanism +================================== + +The classic upcall mechanism uses a custom text based upcall mechanism +to talk to a custom daemon called rpc.svcgssd that is provide by the +nfs-utils package. + +This upcall mechanism has 2 limitations: + +A) It can handle tokens that are no bigger than 2KiB + +In some Kerberos deployment GSSAPI tokens can be quite big, up and +beyond 64KiB in size due to various authorization extensions attacked to +the Kerberos tickets, that needs to be sent through the GSS layer in +order to perform context establishment. + +B) It does not properly handle creds where the user is member of more +than a few thousand groups (the current hard limit in the kernel is 65K +groups) due to limitation on the size of the buffer that can be send +back to the kernel (4KiB). + +NFS Server New RPC Upcall Mechanism +=================================== + +The newer upcall mechanism uses RPC over a unix socket to a daemon +called gss-proxy, implemented by a userspace program called Gssproxy. + +The gss_proxy RPC protocol is currently documented `here +`_. + +This upcall mechanism uses the kernel rpc client and connects to the gssproxy +userspace program over a regular unix socket. The gssproxy protocol does not +suffer from the size limitations of the legacy protocol. + +Negotiating Upcall Mechanisms +============================= + +To provide backward compatibility, the kernel defaults to using the +legacy mechanism. To switch to the new mechanism, gss-proxy must bind +to /var/run/gssproxy.sock and then write "1" to +/proc/net/rpc/use-gss-proxy. If gss-proxy dies, it must repeat both +steps. + +Once the upcall mechanism is chosen, it cannot be changed. To prevent +locking into the legacy mechanisms, the above steps must be performed +before starting nfsd. Whoever starts nfsd can guarantee this by reading +from /proc/net/rpc/use-gss-proxy and checking that it contains a +"1"--the read will block until gss-proxy has done its write to the file. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/ntfs3.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/ntfs3.rst index 042553b00..2b86a9b3a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/ntfs3.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/ntfs3.rst @@ -1,123 +1,123 @@ -.. SPDX-License-Identifier: GPL-2.0 - -===== -NTFS3 -===== - -Summary and Features -==================== - -NTFS3 is fully functional NTFS Read-Write driver. The driver works with NTFS -versions up to 3.1. File system type to use on mount is *ntfs3*. - -- This driver implements NTFS read/write support for normal, sparse and - compressed files. -- Supports native journal replaying. -- Supports NFS export of mounted NTFS volumes. -- Supports extended attributes. Predefined extended attributes: - - - *system.ntfs_security* gets/sets security - - Descriptor: SECURITY_DESCRIPTOR_RELATIVE - - - *system.ntfs_attrib* gets/sets ntfs file/dir attributes. - - Note: Applied to empty files, this allows to switch type between - sparse(0x200), compressed(0x800) and normal. - - - *system.ntfs_attrib_be* gets/sets ntfs file/dir attributes. - - Same value as system.ntfs_attrib but always represent as big-endian - (endianness of system.ntfs_attrib is the same as of the CPU). - -Mount Options -============= - -The list below describes mount options supported by NTFS3 driver in addition to -generic ones. You can use every mount option with **no** option. If it is in -this table marked with no it means default is without **no**. - -.. flat-table:: - :widths: 1 5 - :fill-cells: - - * - iocharset=name - - This option informs the driver how to interpret path strings and - translate them to Unicode and back. If this option is not set, the - default codepage will be used (CONFIG_NLS_DEFAULT). - - Example: iocharset=utf8 - - * - uid= - - :rspan:`1` - * - gid= - - * - umask= - - Controls the default permissions for files/directories created after - the NTFS volume is mounted. - - * - dmask= - - :rspan:`1` Instead of specifying umask which applies both to files and - directories, fmask applies only to files and dmask only to directories. - * - fmask= - - * - nohidden - - Files with the Windows-specific HIDDEN (FILE_ATTRIBUTE_HIDDEN) attribute - will not be shown under Linux. - - * - sys_immutable - - Files with the Windows-specific SYSTEM (FILE_ATTRIBUTE_SYSTEM) attribute - will be marked as system immutable files. - - * - hide_dot_files - - Updates the Windows-specific HIDDEN (FILE_ATTRIBUTE_HIDDEN) attribute - when creating and moving or renaming files. Files whose names start - with a dot will have the HIDDEN attribute set and files whose names - do not start with a dot will have it unset. - - * - windows_names - - Prevents the creation of files and directories with a name not allowed - by Windows, either because it contains some not allowed character (which - are the characters " * / : < > ? \\ | and those whose code is less than - 0x20), because the name (with or without extension) is a reserved file - name (CON, AUX, NUL, PRN, LPT1-9, COM1-9) or because the last character - is a space or a dot. Existing such files can still be read and renamed. - - * - discard - - Enable support of the TRIM command for improved performance on delete - operations, which is recommended for use with the solid-state drives - (SSD). - - * - force - - Forces the driver to mount partitions even if volume is marked dirty. - Not recommended for use. - - * - sparse - - Create new files as sparse. - - * - showmeta - - Use this parameter to show all meta-files (System Files) on a mounted - NTFS partition. By default, all meta-files are hidden. - - * - prealloc - - Preallocate space for files excessively when file size is increasing on - writes. Decreases fragmentation in case of parallel write operations to - different files. - - * - acl - - Support POSIX ACLs (Access Control Lists). Effective if supported by - Kernel. Not to be confused with NTFS ACLs. The option specified as acl - enables support for POSIX ACLs. - -Todo list -========= -- Full journaling support over JBD. Currently journal replaying is supported - which is not necessarily as effective as JBD would be. - -References -========== -- Commercial version of the NTFS driver for Linux. - https://www.paragon-software.com/home/ntfs-linux-professional/ - -- Direct e-mail address for feedback and requests on the NTFS3 implementation. - almaz.alexandrovich@paragon-software.com +.. SPDX-License-Identifier: GPL-2.0 + +===== +NTFS3 +===== + +Summary and Features +==================== + +NTFS3 is fully functional NTFS Read-Write driver. The driver works with NTFS +versions up to 3.1. File system type to use on mount is *ntfs3*. + +- This driver implements NTFS read/write support for normal, sparse and + compressed files. +- Supports native journal replaying. +- Supports NFS export of mounted NTFS volumes. +- Supports extended attributes. Predefined extended attributes: + + - *system.ntfs_security* gets/sets security + + Descriptor: SECURITY_DESCRIPTOR_RELATIVE + + - *system.ntfs_attrib* gets/sets ntfs file/dir attributes. + + Note: Applied to empty files, this allows to switch type between + sparse(0x200), compressed(0x800) and normal. + + - *system.ntfs_attrib_be* gets/sets ntfs file/dir attributes. + + Same value as system.ntfs_attrib but always represent as big-endian + (endianness of system.ntfs_attrib is the same as of the CPU). + +Mount Options +============= + +The list below describes mount options supported by NTFS3 driver in addition to +generic ones. You can use every mount option with **no** option. If it is in +this table marked with no it means default is without **no**. + +.. flat-table:: + :widths: 1 5 + :fill-cells: + + * - iocharset=name + - This option informs the driver how to interpret path strings and + translate them to Unicode and back. If this option is not set, the + default codepage will be used (CONFIG_NLS_DEFAULT). + + Example: iocharset=utf8 + + * - uid= + - :rspan:`1` + * - gid= + + * - umask= + - Controls the default permissions for files/directories created after + the NTFS volume is mounted. + + * - dmask= + - :rspan:`1` Instead of specifying umask which applies both to files and + directories, fmask applies only to files and dmask only to directories. + * - fmask= + + * - nohidden + - Files with the Windows-specific HIDDEN (FILE_ATTRIBUTE_HIDDEN) attribute + will not be shown under Linux. + + * - sys_immutable + - Files with the Windows-specific SYSTEM (FILE_ATTRIBUTE_SYSTEM) attribute + will be marked as system immutable files. + + * - hide_dot_files + - Updates the Windows-specific HIDDEN (FILE_ATTRIBUTE_HIDDEN) attribute + when creating and moving or renaming files. Files whose names start + with a dot will have the HIDDEN attribute set and files whose names + do not start with a dot will have it unset. + + * - windows_names + - Prevents the creation of files and directories with a name not allowed + by Windows, either because it contains some not allowed character (which + are the characters " * / : < > ? \\ | and those whose code is less than + 0x20), because the name (with or without extension) is a reserved file + name (CON, AUX, NUL, PRN, LPT1-9, COM1-9) or because the last character + is a space or a dot. Existing such files can still be read and renamed. + + * - discard + - Enable support of the TRIM command for improved performance on delete + operations, which is recommended for use with the solid-state drives + (SSD). + + * - force + - Forces the driver to mount partitions even if volume is marked dirty. + Not recommended for use. + + * - sparse + - Create new files as sparse. + + * - showmeta + - Use this parameter to show all meta-files (System Files) on a mounted + NTFS partition. By default, all meta-files are hidden. + + * - prealloc + - Preallocate space for files excessively when file size is increasing on + writes. Decreases fragmentation in case of parallel write operations to + different files. + + * - acl + - Support POSIX ACLs (Access Control Lists). Effective if supported by + Kernel. Not to be confused with NTFS ACLs. The option specified as acl + enables support for POSIX ACLs. + +Todo list +========= +- Full journaling support over JBD. Currently journal replaying is supported + which is not necessarily as effective as JBD would be. + +References +========== +- Commercial version of the NTFS driver for Linux. + https://www.paragon-software.com/home/ntfs-linux-professional/ + +- Direct e-mail address for feedback and requests on the NTFS3 implementation. + almaz.alexandrovich@paragon-software.com diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/ocfs2-online-filecheck.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/ocfs2-online-filecheck.rst index ad1771cab..2257bb53e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/ocfs2-online-filecheck.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/ocfs2-online-filecheck.rst @@ -1,99 +1,99 @@ -.. SPDX-License-Identifier: GPL-2.0 - -===================================== -OCFS2 file system - online file check -===================================== - -This document will describe OCFS2 online file check feature. - -Introduction -============ -OCFS2 is often used in high-availability systems. However, OCFS2 usually -converts the filesystem to read-only when encounters an error. This may not be -necessary, since turning the filesystem read-only would affect other running -processes as well, decreasing availability. -Then, a mount option (errors=continue) is introduced, which would return the --EIO errno to the calling process and terminate further processing so that the -filesystem is not corrupted further. The filesystem is not converted to -read-only, and the problematic file's inode number is reported in the kernel -log. The user can try to check/fix this file via online filecheck feature. - -Scope -===== -This effort is to check/fix small issues which may hinder day-to-day operations -of a cluster filesystem by turning the filesystem read-only. The scope of -checking/fixing is at the file level, initially for regular files and eventually -to all files (including system files) of the filesystem. - -In case of directory to file links is incorrect, the directory inode is -reported as erroneous. - -This feature is not suited for extravagant checks which involve dependency of -other components of the filesystem, such as but not limited to, checking if the -bits for file blocks in the allocation has been set. In case of such an error, -the offline fsck should/would be recommended. - -Finally, such an operation/feature should not be automated lest the filesystem -may end up with more damage than before the repair attempt. So, this has to -be performed using user interaction and consent. - -User interface -============== -When there are errors in the OCFS2 filesystem, they are usually accompanied -by the inode number which caused the error. This inode number would be the -input to check/fix the file. - -There is a sysfs directory for each OCFS2 file system mounting:: - - /sys/fs/ocfs2//filecheck - -Here, indicates the name of OCFS2 volume device which has been already -mounted. The file above would accept inode numbers. This could be used to -communicate with kernel space, tell which file(inode number) will be checked or -fixed. Currently, three operations are supported, which includes checking -inode, fixing inode and setting the size of result record history. - -1. If you want to know what error exactly happened to before fixing, do:: - - # echo "" > /sys/fs/ocfs2//filecheck/check - # cat /sys/fs/ocfs2//filecheck/check - -The output is like this:: - - INO DONE ERROR - 39502 1 GENERATION - - lists the inode numbers. - indicates whether the operation has been finished. - says what kind of errors was found. For the detailed error numbers, - please refer to the file linux/fs/ocfs2/filecheck.h. - -2. If you determine to fix this inode, do:: - - # echo "" > /sys/fs/ocfs2//filecheck/fix - # cat /sys/fs/ocfs2//filecheck/fix - -The output is like this::: - - INO DONE ERROR - 39502 1 SUCCESS - -This time, the column indicates whether this fix is successful or not. - -3. The record cache is used to store the history of check/fix results. It's -default size is 10, and can be adjust between the range of 10 ~ 100. You can -adjust the size like this:: - - # echo "" > /sys/fs/ocfs2//filecheck/set - -Fixing stuff -============ -On receiving the inode, the filesystem would read the inode and the -file metadata. In case of errors, the filesystem would fix the errors -and report the problems it fixed in the kernel log. As a precautionary measure, -the inode must first be checked for errors before performing a final fix. - -The inode and the result history will be maintained temporarily in a -small linked list buffer which would contain the last (N) inodes -fixed/checked, the detailed errors which were fixed/checked are printed in the -kernel log. +.. SPDX-License-Identifier: GPL-2.0 + +===================================== +OCFS2 file system - online file check +===================================== + +This document will describe OCFS2 online file check feature. + +Introduction +============ +OCFS2 is often used in high-availability systems. However, OCFS2 usually +converts the filesystem to read-only when encounters an error. This may not be +necessary, since turning the filesystem read-only would affect other running +processes as well, decreasing availability. +Then, a mount option (errors=continue) is introduced, which would return the +-EIO errno to the calling process and terminate further processing so that the +filesystem is not corrupted further. The filesystem is not converted to +read-only, and the problematic file's inode number is reported in the kernel +log. The user can try to check/fix this file via online filecheck feature. + +Scope +===== +This effort is to check/fix small issues which may hinder day-to-day operations +of a cluster filesystem by turning the filesystem read-only. The scope of +checking/fixing is at the file level, initially for regular files and eventually +to all files (including system files) of the filesystem. + +In case of directory to file links is incorrect, the directory inode is +reported as erroneous. + +This feature is not suited for extravagant checks which involve dependency of +other components of the filesystem, such as but not limited to, checking if the +bits for file blocks in the allocation has been set. In case of such an error, +the offline fsck should/would be recommended. + +Finally, such an operation/feature should not be automated lest the filesystem +may end up with more damage than before the repair attempt. So, this has to +be performed using user interaction and consent. + +User interface +============== +When there are errors in the OCFS2 filesystem, they are usually accompanied +by the inode number which caused the error. This inode number would be the +input to check/fix the file. + +There is a sysfs directory for each OCFS2 file system mounting:: + + /sys/fs/ocfs2//filecheck + +Here, indicates the name of OCFS2 volume device which has been already +mounted. The file above would accept inode numbers. This could be used to +communicate with kernel space, tell which file(inode number) will be checked or +fixed. Currently, three operations are supported, which includes checking +inode, fixing inode and setting the size of result record history. + +1. If you want to know what error exactly happened to before fixing, do:: + + # echo "" > /sys/fs/ocfs2//filecheck/check + # cat /sys/fs/ocfs2//filecheck/check + +The output is like this:: + + INO DONE ERROR + 39502 1 GENERATION + + lists the inode numbers. + indicates whether the operation has been finished. + says what kind of errors was found. For the detailed error numbers, + please refer to the file linux/fs/ocfs2/filecheck.h. + +2. If you determine to fix this inode, do:: + + # echo "" > /sys/fs/ocfs2//filecheck/fix + # cat /sys/fs/ocfs2//filecheck/fix + +The output is like this::: + + INO DONE ERROR + 39502 1 SUCCESS + +This time, the column indicates whether this fix is successful or not. + +3. The record cache is used to store the history of check/fix results. It's +default size is 10, and can be adjust between the range of 10 ~ 100. You can +adjust the size like this:: + + # echo "" > /sys/fs/ocfs2//filecheck/set + +Fixing stuff +============ +On receiving the inode, the filesystem would read the inode and the +file metadata. In case of errors, the filesystem would fix the errors +and report the problems it fixed in the kernel log. As a precautionary measure, +the inode must first be checked for errors before performing a final fix. + +The inode and the result history will be maintained temporarily in a +small linked list buffer which would contain the last (N) inodes +fixed/checked, the detailed errors which were fixed/checked are printed in the +kernel log. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/omfs.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/omfs.rst index 436b5eaf8..a104c25b7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/omfs.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/omfs.rst @@ -1,112 +1,112 @@ -.. SPDX-License-Identifier: GPL-2.0 - -================================ -Optimized MPEG Filesystem (OMFS) -================================ - -Overview -======== - -OMFS is a filesystem created by SonicBlue for use in the ReplayTV DVR -and Rio Karma MP3 player. The filesystem is extent-based, utilizing -block sizes from 2k to 8k, with hash-based directories. This -filesystem driver may be used to read and write disks from these -devices. - -Note, it is not recommended that this FS be used in place of a general -filesystem for your own streaming media device. Native Linux filesystems -will likely perform better. - -More information is available at: - - http://linux-karma.sf.net/ - -Various utilities, including mkomfs and omfsck, are included with -omfsprogs, available at: - - https://bobcopeland.com/karma/ - -Instructions are included in its README. - -Options -======= - -OMFS supports the following mount-time options: - - ============ ======================================== - uid=n make all files owned by specified user - gid=n make all files owned by specified group - umask=xxx set permission umask to xxx - fmask=xxx set umask to xxx for files - dmask=xxx set umask to xxx for directories - ============ ======================================== - -Disk format -=========== - -OMFS discriminates between "sysblocks" and normal data blocks. The sysblock -group consists of super block information, file metadata, directory structures, -and extents. Each sysblock has a header containing CRCs of the entire -sysblock, and may be mirrored in successive blocks on the disk. A sysblock may -have a smaller size than a data block, but since they are both addressed by the -same 64-bit block number, any remaining space in the smaller sysblock is -unused. - -Sysblock header information:: - - struct omfs_header { - __be64 h_self; /* FS block where this is located */ - __be32 h_body_size; /* size of useful data after header */ - __be16 h_crc; /* crc-ccitt of body_size bytes */ - char h_fill1[2]; - u8 h_version; /* version, always 1 */ - char h_type; /* OMFS_INODE_X */ - u8 h_magic; /* OMFS_IMAGIC */ - u8 h_check_xor; /* XOR of header bytes before this */ - __be32 h_fill2; - }; - -Files and directories are both represented by omfs_inode:: - - struct omfs_inode { - struct omfs_header i_head; /* header */ - __be64 i_parent; /* parent containing this inode */ - __be64 i_sibling; /* next inode in hash bucket */ - __be64 i_ctime; /* ctime, in milliseconds */ - char i_fill1[35]; - char i_type; /* OMFS_[DIR,FILE] */ - __be32 i_fill2; - char i_fill3[64]; - char i_name[OMFS_NAMELEN]; /* filename */ - __be64 i_size; /* size of file, in bytes */ - }; - -Directories in OMFS are implemented as a large hash table. Filenames are -hashed then prepended into the bucket list beginning at OMFS_DIR_START. -Lookup requires hashing the filename, then seeking across i_sibling pointers -until a match is found on i_name. Empty buckets are represented by block -pointers with all-1s (~0). - -A file is an omfs_inode structure followed by an extent table beginning at -OMFS_EXTENT_START:: - - struct omfs_extent_entry { - __be64 e_cluster; /* start location of a set of blocks */ - __be64 e_blocks; /* number of blocks after e_cluster */ - }; - - struct omfs_extent { - __be64 e_next; /* next extent table location */ - __be32 e_extent_count; /* total # extents in this table */ - __be32 e_fill; - struct omfs_extent_entry e_entry; /* start of extent entries */ - }; - -Each extent holds the block offset followed by number of blocks allocated to -the extent. The final extent in each table is a terminator with e_cluster -being ~0 and e_blocks being ones'-complement of the total number of blocks -in the table. - -If this table overflows, a continuation inode is written and pointed to by -e_next. These have a header but lack the rest of the inode structure. - +.. SPDX-License-Identifier: GPL-2.0 + +================================ +Optimized MPEG Filesystem (OMFS) +================================ + +Overview +======== + +OMFS is a filesystem created by SonicBlue for use in the ReplayTV DVR +and Rio Karma MP3 player. The filesystem is extent-based, utilizing +block sizes from 2k to 8k, with hash-based directories. This +filesystem driver may be used to read and write disks from these +devices. + +Note, it is not recommended that this FS be used in place of a general +filesystem for your own streaming media device. Native Linux filesystems +will likely perform better. + +More information is available at: + + http://linux-karma.sf.net/ + +Various utilities, including mkomfs and omfsck, are included with +omfsprogs, available at: + + https://bobcopeland.com/karma/ + +Instructions are included in its README. + +Options +======= + +OMFS supports the following mount-time options: + + ============ ======================================== + uid=n make all files owned by specified user + gid=n make all files owned by specified group + umask=xxx set permission umask to xxx + fmask=xxx set umask to xxx for files + dmask=xxx set umask to xxx for directories + ============ ======================================== + +Disk format +=========== + +OMFS discriminates between "sysblocks" and normal data blocks. The sysblock +group consists of super block information, file metadata, directory structures, +and extents. Each sysblock has a header containing CRCs of the entire +sysblock, and may be mirrored in successive blocks on the disk. A sysblock may +have a smaller size than a data block, but since they are both addressed by the +same 64-bit block number, any remaining space in the smaller sysblock is +unused. + +Sysblock header information:: + + struct omfs_header { + __be64 h_self; /* FS block where this is located */ + __be32 h_body_size; /* size of useful data after header */ + __be16 h_crc; /* crc-ccitt of body_size bytes */ + char h_fill1[2]; + u8 h_version; /* version, always 1 */ + char h_type; /* OMFS_INODE_X */ + u8 h_magic; /* OMFS_IMAGIC */ + u8 h_check_xor; /* XOR of header bytes before this */ + __be32 h_fill2; + }; + +Files and directories are both represented by omfs_inode:: + + struct omfs_inode { + struct omfs_header i_head; /* header */ + __be64 i_parent; /* parent containing this inode */ + __be64 i_sibling; /* next inode in hash bucket */ + __be64 i_ctime; /* ctime, in milliseconds */ + char i_fill1[35]; + char i_type; /* OMFS_[DIR,FILE] */ + __be32 i_fill2; + char i_fill3[64]; + char i_name[OMFS_NAMELEN]; /* filename */ + __be64 i_size; /* size of file, in bytes */ + }; + +Directories in OMFS are implemented as a large hash table. Filenames are +hashed then prepended into the bucket list beginning at OMFS_DIR_START. +Lookup requires hashing the filename, then seeking across i_sibling pointers +until a match is found on i_name. Empty buckets are represented by block +pointers with all-1s (~0). + +A file is an omfs_inode structure followed by an extent table beginning at +OMFS_EXTENT_START:: + + struct omfs_extent_entry { + __be64 e_cluster; /* start location of a set of blocks */ + __be64 e_blocks; /* number of blocks after e_cluster */ + }; + + struct omfs_extent { + __be64 e_next; /* next extent table location */ + __be32 e_extent_count; /* total # extents in this table */ + __be32 e_fill; + struct omfs_extent_entry e_entry; /* start of extent entries */ + }; + +Each extent holds the block offset followed by number of blocks allocated to +the extent. The final extent in each table is a terminator with e_cluster +being ~0 and e_blocks being ones'-complement of the total number of blocks +in the table. + +If this table overflows, a continuation inode is written and pointed to by +e_next. These have a header but lack the rest of the inode structure. + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/quota.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/quota.rst index e80d65686..abd4303c5 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/quota.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/quota.rst @@ -1,85 +1,85 @@ -.. SPDX-License-Identifier: GPL-2.0 - -=============== -Quota subsystem -=============== - -Quota subsystem allows system administrator to set limits on used space and -number of used inodes (inode is a filesystem structure which is associated with -each file or directory) for users and/or groups. For both used space and number -of used inodes there are actually two limits. The first one is called softlimit -and the second one hardlimit. A user can never exceed a hardlimit for any -resource (unless he has CAP_SYS_RESOURCE capability). User is allowed to exceed -softlimit but only for limited period of time. This period is called "grace -period" or "grace time". When grace time is over, user is not able to allocate -more space/inodes until he frees enough of them to get below softlimit. - -Quota limits (and amount of grace time) are set independently for each -filesystem. - -For more details about quota design, see the documentation in quota-tools package -(https://sourceforge.net/projects/linuxquota). - -Quota netlink interface -======================= -When user exceeds a softlimit, runs out of grace time or reaches hardlimit, -quota subsystem traditionally printed a message to the controlling terminal of -the process which caused the excess. This method has the disadvantage that -when user is using a graphical desktop he usually cannot see the message. -Thus quota netlink interface has been designed to pass information about -the above events to userspace. There they can be captured by an application -and processed accordingly. - -The interface uses generic netlink framework (see -https://lwn.net/Articles/208755/ and http://www.infradead.org/~tgr/libnl/ for -more details about this layer). The name of the quota generic netlink interface -is "VFS_DQUOT". Definitions of constants below are in . Since -the quota netlink protocol is not namespace aware, quota netlink messages are -sent only in initial network namespace. - -Currently, the interface supports only one message type QUOTA_NL_C_WARNING. -This command is used to send a notification about any of the above mentioned -events. Each message has six attributes. These are (type of the argument is -in parentheses): - - QUOTA_NL_A_QTYPE (u32) - - type of quota being exceeded (one of USRQUOTA, GRPQUOTA) - QUOTA_NL_A_EXCESS_ID (u64) - - UID/GID (depends on quota type) of user / group whose limit - is being exceeded. - QUOTA_NL_A_CAUSED_ID (u64) - - UID of a user who caused the event - QUOTA_NL_A_WARNING (u32) - - what kind of limit is exceeded: - - QUOTA_NL_IHARDWARN - inode hardlimit - QUOTA_NL_ISOFTLONGWARN - inode softlimit is exceeded longer - than given grace period - QUOTA_NL_ISOFTWARN - inode softlimit - QUOTA_NL_BHARDWARN - space (block) hardlimit - QUOTA_NL_BSOFTLONGWARN - space (block) softlimit is exceeded - longer than given grace period. - QUOTA_NL_BSOFTWARN - space (block) softlimit - - - four warnings are also defined for the event when user stops - exceeding some limit: - - QUOTA_NL_IHARDBELOW - inode hardlimit - QUOTA_NL_ISOFTBELOW - inode softlimit - QUOTA_NL_BHARDBELOW - space (block) hardlimit - QUOTA_NL_BSOFTBELOW - space (block) softlimit - - QUOTA_NL_A_DEV_MAJOR (u32) - - major number of a device with the affected filesystem - QUOTA_NL_A_DEV_MINOR (u32) - - minor number of a device with the affected filesystem +.. SPDX-License-Identifier: GPL-2.0 + +=============== +Quota subsystem +=============== + +Quota subsystem allows system administrator to set limits on used space and +number of used inodes (inode is a filesystem structure which is associated with +each file or directory) for users and/or groups. For both used space and number +of used inodes there are actually two limits. The first one is called softlimit +and the second one hardlimit. A user can never exceed a hardlimit for any +resource (unless he has CAP_SYS_RESOURCE capability). User is allowed to exceed +softlimit but only for limited period of time. This period is called "grace +period" or "grace time". When grace time is over, user is not able to allocate +more space/inodes until he frees enough of them to get below softlimit. + +Quota limits (and amount of grace time) are set independently for each +filesystem. + +For more details about quota design, see the documentation in quota-tools package +(https://sourceforge.net/projects/linuxquota). + +Quota netlink interface +======================= +When user exceeds a softlimit, runs out of grace time or reaches hardlimit, +quota subsystem traditionally printed a message to the controlling terminal of +the process which caused the excess. This method has the disadvantage that +when user is using a graphical desktop he usually cannot see the message. +Thus quota netlink interface has been designed to pass information about +the above events to userspace. There they can be captured by an application +and processed accordingly. + +The interface uses generic netlink framework (see +https://lwn.net/Articles/208755/ and http://www.infradead.org/~tgr/libnl/ for +more details about this layer). The name of the quota generic netlink interface +is "VFS_DQUOT". Definitions of constants below are in . Since +the quota netlink protocol is not namespace aware, quota netlink messages are +sent only in initial network namespace. + +Currently, the interface supports only one message type QUOTA_NL_C_WARNING. +This command is used to send a notification about any of the above mentioned +events. Each message has six attributes. These are (type of the argument is +in parentheses): + + QUOTA_NL_A_QTYPE (u32) + - type of quota being exceeded (one of USRQUOTA, GRPQUOTA) + QUOTA_NL_A_EXCESS_ID (u64) + - UID/GID (depends on quota type) of user / group whose limit + is being exceeded. + QUOTA_NL_A_CAUSED_ID (u64) + - UID of a user who caused the event + QUOTA_NL_A_WARNING (u32) + - what kind of limit is exceeded: + + QUOTA_NL_IHARDWARN + inode hardlimit + QUOTA_NL_ISOFTLONGWARN + inode softlimit is exceeded longer + than given grace period + QUOTA_NL_ISOFTWARN + inode softlimit + QUOTA_NL_BHARDWARN + space (block) hardlimit + QUOTA_NL_BSOFTLONGWARN + space (block) softlimit is exceeded + longer than given grace period. + QUOTA_NL_BSOFTWARN + space (block) softlimit + + - four warnings are also defined for the event when user stops + exceeding some limit: + + QUOTA_NL_IHARDBELOW + inode hardlimit + QUOTA_NL_ISOFTBELOW + inode softlimit + QUOTA_NL_BHARDBELOW + space (block) hardlimit + QUOTA_NL_BSOFTBELOW + space (block) softlimit + + QUOTA_NL_A_DEV_MAJOR (u32) + - major number of a device with the affected filesystem + QUOTA_NL_A_DEV_MINOR (u32) + - minor number of a device with the affected filesystem diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/spufs/spu_create.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/spufs/spu_create.rst index 3ba73f507..83108c099 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/spufs/spu_create.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/spufs/spu_create.rst @@ -1,131 +1,131 @@ -.. SPDX-License-Identifier: GPL-2.0 - -========== -spu_create -========== - -Name -==== - spu_create - create a new spu context - - -Synopsis -======== - - :: - - #include - #include - - int spu_create(const char *pathname, int flags, mode_t mode); - -Description -=========== - The spu_create system call is used on PowerPC machines that implement - the Cell Broadband Engine Architecture in order to access Synergistic - Processor Units (SPUs). It creates a new logical context for an SPU in - pathname and returns a handle to associated with it. pathname must - point to a non-existing directory in the mount point of the SPU file - system (spufs). When spu_create is successful, a directory gets cre- - ated on pathname and it is populated with files. - - The returned file handle can only be passed to spu_run(2) or closed, - other operations are not defined on it. When it is closed, all associ- - ated directory entries in spufs are removed. When the last file handle - pointing either inside of the context directory or to this file - descriptor is closed, the logical SPU context is destroyed. - - The parameter flags can be zero or any bitwise or'd combination of the - following constants: - - SPU_RAWIO - Allow mapping of some of the hardware registers of the SPU into - user space. This flag requires the CAP_SYS_RAWIO capability, see - capabilities(7). - - The mode parameter specifies the permissions used for creating the new - directory in spufs. mode is modified with the user's umask(2) value - and then used for both the directory and the files contained in it. The - file permissions mask out some more bits of mode because they typically - support only read or write access. See stat(2) for a full list of the - possible mode values. - - -Return Value -============ - spu_create returns a new file descriptor. It may return -1 to indicate - an error condition and set errno to one of the error codes listed - below. - - -Errors -====== - EACCES - The current user does not have write access on the spufs mount - point. - - EEXIST An SPU context already exists at the given path name. - - EFAULT pathname is not a valid string pointer in the current address - space. - - EINVAL pathname is not a directory in the spufs mount point. - - ELOOP Too many symlinks were found while resolving pathname. - - EMFILE The process has reached its maximum open file limit. - - ENAMETOOLONG - pathname was too long. - - ENFILE The system has reached the global open file limit. - - ENOENT Part of pathname could not be resolved. - - ENOMEM The kernel could not allocate all resources required. - - ENOSPC There are not enough SPU resources available to create a new - context or the user specific limit for the number of SPU con- - texts has been reached. - - ENOSYS the functionality is not provided by the current system, because - either the hardware does not provide SPUs or the spufs module is - not loaded. - - ENOTDIR - A part of pathname is not a directory. - - - -Notes -===== - spu_create is meant to be used from libraries that implement a more - abstract interface to SPUs, not to be used from regular applications. - See http://www.bsc.es/projects/deepcomputing/linuxoncell/ for the rec- - ommended libraries. - - -Files -===== - pathname must point to a location beneath the mount point of spufs. By - convention, it gets mounted in /spu. - - -Conforming to -============= - This call is Linux specific and only implemented by the ppc64 architec- - ture. Programs using this system call are not portable. - - -Bugs -==== - The code does not yet fully implement all features lined out here. - - -Author -====== - Arnd Bergmann - -See Also -======== - capabilities(7), close(2), spu_run(2), spufs(7) +.. SPDX-License-Identifier: GPL-2.0 + +========== +spu_create +========== + +Name +==== + spu_create - create a new spu context + + +Synopsis +======== + + :: + + #include + #include + + int spu_create(const char *pathname, int flags, mode_t mode); + +Description +=========== + The spu_create system call is used on PowerPC machines that implement + the Cell Broadband Engine Architecture in order to access Synergistic + Processor Units (SPUs). It creates a new logical context for an SPU in + pathname and returns a handle to associated with it. pathname must + point to a non-existing directory in the mount point of the SPU file + system (spufs). When spu_create is successful, a directory gets cre- + ated on pathname and it is populated with files. + + The returned file handle can only be passed to spu_run(2) or closed, + other operations are not defined on it. When it is closed, all associ- + ated directory entries in spufs are removed. When the last file handle + pointing either inside of the context directory or to this file + descriptor is closed, the logical SPU context is destroyed. + + The parameter flags can be zero or any bitwise or'd combination of the + following constants: + + SPU_RAWIO + Allow mapping of some of the hardware registers of the SPU into + user space. This flag requires the CAP_SYS_RAWIO capability, see + capabilities(7). + + The mode parameter specifies the permissions used for creating the new + directory in spufs. mode is modified with the user's umask(2) value + and then used for both the directory and the files contained in it. The + file permissions mask out some more bits of mode because they typically + support only read or write access. See stat(2) for a full list of the + possible mode values. + + +Return Value +============ + spu_create returns a new file descriptor. It may return -1 to indicate + an error condition and set errno to one of the error codes listed + below. + + +Errors +====== + EACCES + The current user does not have write access on the spufs mount + point. + + EEXIST An SPU context already exists at the given path name. + + EFAULT pathname is not a valid string pointer in the current address + space. + + EINVAL pathname is not a directory in the spufs mount point. + + ELOOP Too many symlinks were found while resolving pathname. + + EMFILE The process has reached its maximum open file limit. + + ENAMETOOLONG + pathname was too long. + + ENFILE The system has reached the global open file limit. + + ENOENT Part of pathname could not be resolved. + + ENOMEM The kernel could not allocate all resources required. + + ENOSPC There are not enough SPU resources available to create a new + context or the user specific limit for the number of SPU con- + texts has been reached. + + ENOSYS the functionality is not provided by the current system, because + either the hardware does not provide SPUs or the spufs module is + not loaded. + + ENOTDIR + A part of pathname is not a directory. + + + +Notes +===== + spu_create is meant to be used from libraries that implement a more + abstract interface to SPUs, not to be used from regular applications. + See http://www.bsc.es/projects/deepcomputing/linuxoncell/ for the rec- + ommended libraries. + + +Files +===== + pathname must point to a location beneath the mount point of spufs. By + convention, it gets mounted in /spu. + + +Conforming to +============= + This call is Linux specific and only implemented by the ppc64 architec- + ture. Programs using this system call are not portable. + + +Bugs +==== + The code does not yet fully implement all features lined out here. + + +Author +====== + Arnd Bergmann + +See Also +======== + capabilities(7), close(2), spu_run(2), spufs(7) diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/spufs/spu_run.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/spufs/spu_run.rst index 71db0f515..7fdb1c31c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/spufs/spu_run.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/filesystems/spufs/spu_run.rst @@ -1,138 +1,138 @@ -.. SPDX-License-Identifier: GPL-2.0 - -======= -spu_run -======= - - -Name -==== - spu_run - execute an spu context - - -Synopsis -======== - - :: - - #include - - int spu_run(int fd, unsigned int *npc, unsigned int *event); - -Description -=========== - The spu_run system call is used on PowerPC machines that implement the - Cell Broadband Engine Architecture in order to access Synergistic Pro- - cessor Units (SPUs). It uses the fd that was returned from spu_cre- - ate(2) to address a specific SPU context. When the context gets sched- - uled to a physical SPU, it starts execution at the instruction pointer - passed in npc. - - Execution of SPU code happens synchronously, meaning that spu_run does - not return while the SPU is still running. If there is a need to exe- - cute SPU code in parallel with other code on either the main CPU or - other SPUs, you need to create a new thread of execution first, e.g. - using the pthread_create(3) call. - - When spu_run returns, the current value of the SPU instruction pointer - is written back to npc, so you can call spu_run again without updating - the pointers. - - event can be a NULL pointer or point to an extended status code that - gets filled when spu_run returns. It can be one of the following con- - stants: - - SPE_EVENT_DMA_ALIGNMENT - A DMA alignment error - - SPE_EVENT_SPE_DATA_SEGMENT - A DMA segmentation error - - SPE_EVENT_SPE_DATA_STORAGE - A DMA storage error - - If NULL is passed as the event argument, these errors will result in a - signal delivered to the calling process. - -Return Value -============ - spu_run returns the value of the spu_status register or -1 to indicate - an error and set errno to one of the error codes listed below. The - spu_status register value contains a bit mask of status codes and - optionally a 14 bit code returned from the stop-and-signal instruction - on the SPU. The bit masks for the status codes are: - - 0x02 - SPU was stopped by stop-and-signal. - - 0x04 - SPU was stopped by halt. - - 0x08 - SPU is waiting for a channel. - - 0x10 - SPU is in single-step mode. - - 0x20 - SPU has tried to execute an invalid instruction. - - 0x40 - SPU has tried to access an invalid channel. - - 0x3fff0000 - The bits masked with this value contain the code returned from - stop-and-signal. - - There are always one or more of the lower eight bits set or an error - code is returned from spu_run. - -Errors -====== - EAGAIN or EWOULDBLOCK - fd is in non-blocking mode and spu_run would block. - - EBADF fd is not a valid file descriptor. - - EFAULT npc is not a valid pointer or status is neither NULL nor a valid - pointer. - - EINTR A signal occurred while spu_run was in progress. The npc value - has been updated to the new program counter value if necessary. - - EINVAL fd is not a file descriptor returned from spu_create(2). - - ENOMEM Insufficient memory was available to handle a page fault result- - ing from an MFC direct memory access. - - ENOSYS the functionality is not provided by the current system, because - either the hardware does not provide SPUs or the spufs module is - not loaded. - - -Notes -===== - spu_run is meant to be used from libraries that implement a more - abstract interface to SPUs, not to be used from regular applications. - See http://www.bsc.es/projects/deepcomputing/linuxoncell/ for the rec- - ommended libraries. - - -Conforming to -============= - This call is Linux specific and only implemented by the ppc64 architec- - ture. Programs using this system call are not portable. - - -Bugs -==== - The code does not yet fully implement all features lined out here. - - -Author -====== - Arnd Bergmann - -See Also -======== - capabilities(7), close(2), spu_create(2), spufs(7) +.. SPDX-License-Identifier: GPL-2.0 + +======= +spu_run +======= + + +Name +==== + spu_run - execute an spu context + + +Synopsis +======== + + :: + + #include + + int spu_run(int fd, unsigned int *npc, unsigned int *event); + +Description +=========== + The spu_run system call is used on PowerPC machines that implement the + Cell Broadband Engine Architecture in order to access Synergistic Pro- + cessor Units (SPUs). It uses the fd that was returned from spu_cre- + ate(2) to address a specific SPU context. When the context gets sched- + uled to a physical SPU, it starts execution at the instruction pointer + passed in npc. + + Execution of SPU code happens synchronously, meaning that spu_run does + not return while the SPU is still running. If there is a need to exe- + cute SPU code in parallel with other code on either the main CPU or + other SPUs, you need to create a new thread of execution first, e.g. + using the pthread_create(3) call. + + When spu_run returns, the current value of the SPU instruction pointer + is written back to npc, so you can call spu_run again without updating + the pointers. + + event can be a NULL pointer or point to an extended status code that + gets filled when spu_run returns. It can be one of the following con- + stants: + + SPE_EVENT_DMA_ALIGNMENT + A DMA alignment error + + SPE_EVENT_SPE_DATA_SEGMENT + A DMA segmentation error + + SPE_EVENT_SPE_DATA_STORAGE + A DMA storage error + + If NULL is passed as the event argument, these errors will result in a + signal delivered to the calling process. + +Return Value +============ + spu_run returns the value of the spu_status register or -1 to indicate + an error and set errno to one of the error codes listed below. The + spu_status register value contains a bit mask of status codes and + optionally a 14 bit code returned from the stop-and-signal instruction + on the SPU. The bit masks for the status codes are: + + 0x02 + SPU was stopped by stop-and-signal. + + 0x04 + SPU was stopped by halt. + + 0x08 + SPU is waiting for a channel. + + 0x10 + SPU is in single-step mode. + + 0x20 + SPU has tried to execute an invalid instruction. + + 0x40 + SPU has tried to access an invalid channel. + + 0x3fff0000 + The bits masked with this value contain the code returned from + stop-and-signal. + + There are always one or more of the lower eight bits set or an error + code is returned from spu_run. + +Errors +====== + EAGAIN or EWOULDBLOCK + fd is in non-blocking mode and spu_run would block. + + EBADF fd is not a valid file descriptor. + + EFAULT npc is not a valid pointer or status is neither NULL nor a valid + pointer. + + EINTR A signal occurred while spu_run was in progress. The npc value + has been updated to the new program counter value if necessary. + + EINVAL fd is not a file descriptor returned from spu_create(2). + + ENOMEM Insufficient memory was available to handle a page fault result- + ing from an MFC direct memory access. + + ENOSYS the functionality is not provided by the current system, because + either the hardware does not provide SPUs or the spufs module is + not loaded. + + +Notes +===== + spu_run is meant to be used from libraries that implement a more + abstract interface to SPUs, not to be used from regular applications. + See http://www.bsc.es/projects/deepcomputing/linuxoncell/ for the rec- + ommended libraries. + + +Conforming to +============= + This call is Linux specific and only implemented by the ppc64 architec- + ture. Programs using this system call are not portable. + + +Bugs +==== + The code does not yet fully implement all features lined out here. + + +Author +====== + Arnd Bergmann + +See Also +======== + capabilities(7), close(2), spu_create(2), spufs(7) diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/firmware-guide/acpi/video_extension.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/firmware-guide/acpi/video_extension.rst index 608842c9e..099b8607e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/firmware-guide/acpi/video_extension.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/firmware-guide/acpi/video_extension.rst @@ -1,121 +1,121 @@ -.. SPDX-License-Identifier: GPL-2.0 - -===================== -ACPI video extensions -===================== - -This driver implement the ACPI Extensions For Display Adapters for -integrated graphics devices on motherboard, as specified in ACPI 2.0 -Specification, Appendix B, allowing to perform some basic control like -defining the video POST device, retrieving EDID information or to -setup a video output, etc. Note that this is an ref. implementation -only. It may or may not work for your integrated video device. - -The ACPI video driver does 3 things regarding backlight control. - -Export a sysfs interface for user space to control backlight level -================================================================== - -If the ACPI table has a video device, and acpi_backlight=vendor kernel -command line is not present, the driver will register a backlight device -and set the required backlight operation structure for it for the sysfs -interface control. For every registered class device, there will be a -directory named acpi_videoX under /sys/class/backlight. - -The backlight sysfs interface has a standard definition here: -Documentation/ABI/stable/sysfs-class-backlight. - -And what ACPI video driver does is: - -actual_brightness: - on read, control method _BQC will be evaluated to - get the brightness level the firmware thinks it is at; -bl_power: - not implemented, will set the current brightness instead; -brightness: - on write, control method _BCM will run to set the requested brightness level; -max_brightness: - Derived from the _BCL package(see below); -type: - firmware - -Note that ACPI video backlight driver will always use index for -brightness, actual_brightness and max_brightness. So if we have -the following _BCL package:: - - Method (_BCL, 0, NotSerialized) - { - Return (Package (0x0C) - { - 0x64, - 0x32, - 0x0A, - 0x14, - 0x1E, - 0x28, - 0x32, - 0x3C, - 0x46, - 0x50, - 0x5A, - 0x64 - }) - } - -The first two levels are for when laptop are on AC or on battery and are -not used by Linux currently. The remaining 10 levels are supported levels -that we can choose from. The applicable index values are from 0 (that -corresponds to the 0x0A brightness value) to 9 (that corresponds to the -0x64 brightness value) inclusive. Each of those index values is regarded -as a "brightness level" indicator. Thus from the user space perspective -the range of available brightness levels is from 0 to 9 (max_brightness) -inclusive. - -Notify user space about hotkey event -==================================== - -There are generally two cases for hotkey event reporting: - -i) For some laptops, when user presses the hotkey, a scancode will be - generated and sent to user space through the input device created by - the keyboard driver as a key type input event, with proper remap, the - following key code will appear to user space:: - - EV_KEY, KEY_BRIGHTNESSUP - EV_KEY, KEY_BRIGHTNESSDOWN - etc. - -For this case, ACPI video driver does not need to do anything(actually, -it doesn't even know this happened). - -ii) For some laptops, the press of the hotkey will not generate the - scancode, instead, firmware will notify the video device ACPI node - about the event. The event value is defined in the ACPI spec. ACPI - video driver will generate an key type input event according to the - notify value it received and send the event to user space through the - input device it created: - - ===== ================== - event keycode - ===== ================== - 0x86 KEY_BRIGHTNESSUP - 0x87 KEY_BRIGHTNESSDOWN - etc. - ===== ================== - -so this would lead to the same effect as case i) now. - -Once user space tool receives this event, it can modify the backlight -level through the sysfs interface. - -Change backlight level in the kernel -==================================== - -This works for machines covered by case ii) in Section 2. Once the driver -received a notification, it will set the backlight level accordingly. This does -not affect the sending of event to user space, they are always sent to user -space regardless of whether or not the video module controls the backlight level -directly. This behaviour can be controlled through the brightness_switch_enabled -module parameter as documented in admin-guide/kernel-parameters.rst. It is -recommended to disable this behaviour once a GUI environment starts up and -wants to have full control of the backlight level. +.. SPDX-License-Identifier: GPL-2.0 + +===================== +ACPI video extensions +===================== + +This driver implement the ACPI Extensions For Display Adapters for +integrated graphics devices on motherboard, as specified in ACPI 2.0 +Specification, Appendix B, allowing to perform some basic control like +defining the video POST device, retrieving EDID information or to +setup a video output, etc. Note that this is an ref. implementation +only. It may or may not work for your integrated video device. + +The ACPI video driver does 3 things regarding backlight control. + +Export a sysfs interface for user space to control backlight level +================================================================== + +If the ACPI table has a video device, and acpi_backlight=vendor kernel +command line is not present, the driver will register a backlight device +and set the required backlight operation structure for it for the sysfs +interface control. For every registered class device, there will be a +directory named acpi_videoX under /sys/class/backlight. + +The backlight sysfs interface has a standard definition here: +Documentation/ABI/stable/sysfs-class-backlight. + +And what ACPI video driver does is: + +actual_brightness: + on read, control method _BQC will be evaluated to + get the brightness level the firmware thinks it is at; +bl_power: + not implemented, will set the current brightness instead; +brightness: + on write, control method _BCM will run to set the requested brightness level; +max_brightness: + Derived from the _BCL package(see below); +type: + firmware + +Note that ACPI video backlight driver will always use index for +brightness, actual_brightness and max_brightness. So if we have +the following _BCL package:: + + Method (_BCL, 0, NotSerialized) + { + Return (Package (0x0C) + { + 0x64, + 0x32, + 0x0A, + 0x14, + 0x1E, + 0x28, + 0x32, + 0x3C, + 0x46, + 0x50, + 0x5A, + 0x64 + }) + } + +The first two levels are for when laptop are on AC or on battery and are +not used by Linux currently. The remaining 10 levels are supported levels +that we can choose from. The applicable index values are from 0 (that +corresponds to the 0x0A brightness value) to 9 (that corresponds to the +0x64 brightness value) inclusive. Each of those index values is regarded +as a "brightness level" indicator. Thus from the user space perspective +the range of available brightness levels is from 0 to 9 (max_brightness) +inclusive. + +Notify user space about hotkey event +==================================== + +There are generally two cases for hotkey event reporting: + +i) For some laptops, when user presses the hotkey, a scancode will be + generated and sent to user space through the input device created by + the keyboard driver as a key type input event, with proper remap, the + following key code will appear to user space:: + + EV_KEY, KEY_BRIGHTNESSUP + EV_KEY, KEY_BRIGHTNESSDOWN + etc. + +For this case, ACPI video driver does not need to do anything(actually, +it doesn't even know this happened). + +ii) For some laptops, the press of the hotkey will not generate the + scancode, instead, firmware will notify the video device ACPI node + about the event. The event value is defined in the ACPI spec. ACPI + video driver will generate an key type input event according to the + notify value it received and send the event to user space through the + input device it created: + + ===== ================== + event keycode + ===== ================== + 0x86 KEY_BRIGHTNESSUP + 0x87 KEY_BRIGHTNESSDOWN + etc. + ===== ================== + +so this would lead to the same effect as case i) now. + +Once user space tool receives this event, it can modify the backlight +level through the sysfs interface. + +Change backlight level in the kernel +==================================== + +This works for machines covered by case ii) in Section 2. Once the driver +received a notification, it will set the backlight level accordingly. This does +not affect the sending of event to user space, they are always sent to user +space regardless of whether or not the video module controls the backlight level +directly. This behaviour can be controlled through the brightness_switch_enabled +module parameter as documented in admin-guide/kernel-parameters.rst. It is +recommended to disable this behaviour once a GUI environment starts up and +wants to have full control of the backlight level. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/gpu/amdgpu/display/dc-debug.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/gpu/amdgpu/display/dc-debug.rst index 5ae7b8e4e..817631b1d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/gpu/amdgpu/display/dc-debug.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/gpu/amdgpu/display/dc-debug.rst @@ -1,118 +1,118 @@ -======================== -Display Core Debug tools -======================== - -DC Visual Confirmation -====================== - -Display core provides a feature named visual confirmation, which is a set of -bars added at the scanout time by the driver to convey some specific -information. In general, you can enable this debug option by using:: - - echo > /sys/kernel/debug/dri/0/amdgpu_dm_visual_confirm - -Where `N` is an integer number for some specific scenarios that the developer -wants to enable, you will see some of these debug cases in the following -subsection. - -Multiple Planes Debug ---------------------- - -If you want to enable or debug multiple planes in a specific user-space -application, you can leverage a debug feature named visual confirm. For -enabling it, you will need:: - - echo 1 > /sys/kernel/debug/dri/0/amdgpu_dm_visual_confirm - -You need to reload your GUI to see the visual confirmation. When the plane -configuration changes or a full update occurs there will be a colored bar at -the bottom of each hardware plane being drawn on the screen. - -* The color indicates the format - For example, red is AR24 and green is NV12 -* The height of the bar indicates the index of the plane -* Pipe split can be observed if there are two bars with a difference in height - covering the same plane - -Consider the video playback case in which a video is played in a specific -plane, and the desktop is drawn in another plane. The video plane should -feature one or two green bars at the bottom of the video depending on pipe -split configuration. - -* There should **not** be any visual corruption -* There should **not** be any underflow or screen flashes -* There should **not** be any black screens -* There should **not** be any cursor corruption -* Multiple plane **may** be briefly disabled during window transitions or - resizing but should come back after the action has finished - -Pipe Split Debug ----------------- - -Sometimes we need to debug if DCN is splitting pipes correctly, and visual -confirmation is also handy for this case. Similar to the MPO case, you can use -the below command to enable visual confirmation:: - - echo 1 > /sys/kernel/debug/dri/0/amdgpu_dm_visual_confirm - -In this case, if you have a pipe split, you will see one small red bar at the -bottom of the display covering the entire display width and another bar -covering the second pipe. In other words, you will see a bit high bar in the -second pipe. - -DTN Debug -========= - -DC (DCN) provides an extensive log that dumps multiple details from our -hardware configuration. Via debugfs, you can capture those status values by -using Display Test Next (DTN) log, which can be captured via debugfs by using:: - - cat /sys/kernel/debug/dri/0/amdgpu_dm_dtn_log - -Since this log is updated accordingly with DCN status, you can also follow the -change in real-time by using something like:: - - sudo watch -d cat /sys/kernel/debug/dri/0/amdgpu_dm_dtn_log - -When reporting a bug related to DC, consider attaching this log before and -after you reproduce the bug. - -DMUB Firmware Debug -=================== - -Sometimes, dmesg logs aren't enough. This is especially true if a feature is -implemented primarily in DMUB firmware. In such cases, all we see in dmesg when -an issue arises is some generic timeout error. So, to get more relevant -information, we can trace DMUB commands by enabling the relevant bits in -`amdgpu_dm_dmub_trace_mask`. - -Currently, we support the tracing of the following groups: - -Trace Groups ------------- - -.. csv-table:: - :header-rows: 1 - :widths: 1, 1 - :file: ./trace-groups-table.csv - -**Note: Not all ASICs support all of the listed trace groups** - -So, to enable just PSR tracing you can use the following command:: - - # echo 0x8020 > /sys/kernel/debug/dri/0/amdgpu_dm_dmub_trace_mask - -Then, you need to enable logging trace events to the buffer, which you can do -using the following:: - - # echo 1 > /sys/kernel/debug/dri/0/amdgpu_dm_dmcub_trace_event_en - -Lastly, after you are able to reproduce the issue you are trying to debug, -you can disable tracing and read the trace log by using the following:: - - # echo 0 > /sys/kernel/debug/dri/0/amdgpu_dm_dmcub_trace_event_en - # cat /sys/kernel/debug/dri/0/amdgpu_dm_dmub_tracebuffer - -So, when reporting bugs related to features such as PSR and ABM, consider -enabling the relevant bits in the mask before reproducing the issue and -attach the log that you obtain from the trace buffer in any bug reports that you -create. +======================== +Display Core Debug tools +======================== + +DC Visual Confirmation +====================== + +Display core provides a feature named visual confirmation, which is a set of +bars added at the scanout time by the driver to convey some specific +information. In general, you can enable this debug option by using:: + + echo > /sys/kernel/debug/dri/0/amdgpu_dm_visual_confirm + +Where `N` is an integer number for some specific scenarios that the developer +wants to enable, you will see some of these debug cases in the following +subsection. + +Multiple Planes Debug +--------------------- + +If you want to enable or debug multiple planes in a specific user-space +application, you can leverage a debug feature named visual confirm. For +enabling it, you will need:: + + echo 1 > /sys/kernel/debug/dri/0/amdgpu_dm_visual_confirm + +You need to reload your GUI to see the visual confirmation. When the plane +configuration changes or a full update occurs there will be a colored bar at +the bottom of each hardware plane being drawn on the screen. + +* The color indicates the format - For example, red is AR24 and green is NV12 +* The height of the bar indicates the index of the plane +* Pipe split can be observed if there are two bars with a difference in height + covering the same plane + +Consider the video playback case in which a video is played in a specific +plane, and the desktop is drawn in another plane. The video plane should +feature one or two green bars at the bottom of the video depending on pipe +split configuration. + +* There should **not** be any visual corruption +* There should **not** be any underflow or screen flashes +* There should **not** be any black screens +* There should **not** be any cursor corruption +* Multiple plane **may** be briefly disabled during window transitions or + resizing but should come back after the action has finished + +Pipe Split Debug +---------------- + +Sometimes we need to debug if DCN is splitting pipes correctly, and visual +confirmation is also handy for this case. Similar to the MPO case, you can use +the below command to enable visual confirmation:: + + echo 1 > /sys/kernel/debug/dri/0/amdgpu_dm_visual_confirm + +In this case, if you have a pipe split, you will see one small red bar at the +bottom of the display covering the entire display width and another bar +covering the second pipe. In other words, you will see a bit high bar in the +second pipe. + +DTN Debug +========= + +DC (DCN) provides an extensive log that dumps multiple details from our +hardware configuration. Via debugfs, you can capture those status values by +using Display Test Next (DTN) log, which can be captured via debugfs by using:: + + cat /sys/kernel/debug/dri/0/amdgpu_dm_dtn_log + +Since this log is updated accordingly with DCN status, you can also follow the +change in real-time by using something like:: + + sudo watch -d cat /sys/kernel/debug/dri/0/amdgpu_dm_dtn_log + +When reporting a bug related to DC, consider attaching this log before and +after you reproduce the bug. + +DMUB Firmware Debug +=================== + +Sometimes, dmesg logs aren't enough. This is especially true if a feature is +implemented primarily in DMUB firmware. In such cases, all we see in dmesg when +an issue arises is some generic timeout error. So, to get more relevant +information, we can trace DMUB commands by enabling the relevant bits in +`amdgpu_dm_dmub_trace_mask`. + +Currently, we support the tracing of the following groups: + +Trace Groups +------------ + +.. csv-table:: + :header-rows: 1 + :widths: 1, 1 + :file: ./trace-groups-table.csv + +**Note: Not all ASICs support all of the listed trace groups** + +So, to enable just PSR tracing you can use the following command:: + + # echo 0x8020 > /sys/kernel/debug/dri/0/amdgpu_dm_dmub_trace_mask + +Then, you need to enable logging trace events to the buffer, which you can do +using the following:: + + # echo 1 > /sys/kernel/debug/dri/0/amdgpu_dm_dmcub_trace_event_en + +Lastly, after you are able to reproduce the issue you are trying to debug, +you can disable tracing and read the trace log by using the following:: + + # echo 0 > /sys/kernel/debug/dri/0/amdgpu_dm_dmcub_trace_event_en + # cat /sys/kernel/debug/dri/0/amdgpu_dm_dmub_tracebuffer + +So, when reporting bugs related to features such as PSR and ABM, consider +enabling the relevant bits in the mask before reproducing the issue and +attach the log that you obtain from the trace buffer in any bug reports that you +create. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/gpu/amdgpu/display/dc-glossary.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/gpu/amdgpu/display/dc-glossary.rst index d7cea2276..0b0ffd428 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/gpu/amdgpu/display/dc-glossary.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/gpu/amdgpu/display/dc-glossary.rst @@ -1,237 +1,237 @@ -=========== -DC Glossary -=========== - -On this page, we try to keep track of acronyms related to the display -component. If you do not find what you are looking for, look at the -'Documentation/gpu/amdgpu/amdgpu-glossary.rst'; if you cannot find it anywhere, -consider asking in the amdgfx and update this page. - -.. glossary:: - - ABM - Adaptive Backlight Modulation - - APU - Accelerated Processing Unit - - ASIC - Application-Specific Integrated Circuit - - ASSR - Alternate Scrambler Seed Reset - - AZ - Azalia (HD audio DMA engine) - - BPC - Bits Per Colour/Component - - BPP - Bits Per Pixel - - Clocks - * PCLK: Pixel Clock - * SYMCLK: Symbol Clock - * SOCCLK: GPU Engine Clock - * DISPCLK: Display Clock - * DPPCLK: DPP Clock - * DCFCLK: Display Controller Fabric Clock - * REFCLK: Real Time Reference Clock - * PPLL: Pixel PLL - * FCLK: Fabric Clock - * MCLK: Memory Clock - - CRC - Cyclic Redundancy Check - - CRTC - Cathode Ray Tube Controller - commonly called "Controller" - Generates - raw stream of pixels, clocked at pixel clock - - CVT - Coordinated Video Timings - - DAL - Display Abstraction layer - - DC (Software) - Display Core - - DC (Hardware) - Display Controller - - DCC - Delta Colour Compression - - DCE - Display Controller Engine - - DCHUB - Display Controller HUB - - ARB - Arbiter - - VTG - Vertical Timing Generator - - DCN - Display Core Next - - DCCG - Display Clock Generator block - - DDC - Display Data Channel - - DIO - Display IO - - DPP - Display Pipes and Planes - - DSC - Display Stream Compression (Reduce the amount of bits to represent pixel - count while at the same pixel clock) - - dGPU - discrete GPU - - DMIF - Display Memory Interface - - DML - Display Mode Library - - DMCU - Display Micro-Controller Unit - - DMCUB - Display Micro-Controller Unit, version B - - DPCD - DisplayPort Configuration Data - - DPM(S) - Display Power Management (Signaling) - - DRR - Dynamic Refresh Rate - - DWB - Display Writeback - - FB - Frame Buffer - - FBC - Frame Buffer Compression - - FEC - Forward Error Correction - - FRL - Fixed Rate Link - - GCO - Graphical Controller Object - - GSL - Global Swap Lock - - iGPU - integrated GPU - - ISR - Interrupt Service Request - - ISV - Independent Software Vendor - - KMD - Kernel Mode Driver - - LB - Line Buffer - - LFC - Low Framerate Compensation - - LTTPR - Link Training Tunable Phy Repeater - - LUT - Lookup Table - - MALL - Memory Access at Last Level - - MC - Memory Controller - - MPC/MPCC - Multiple pipes and plane combine - - MPO - Multi Plane Overlay - - MST - Multi Stream Transport - - NBP State - Northbridge Power State - - NBIO - North Bridge Input/Output - - ODM - Output Data Mapping - - OPM - Output Protection Manager - - OPP - Output Plane Processor - - OPTC - Output Pipe Timing Combiner - - OTG - Output Timing Generator - - PCON - Power Controller - - PGFSM - Power Gate Finite State Machine - - PSR - Panel Self Refresh - - SCL - Scaler - - SDP - Scalable Data Port - - SLS - Single Large Surface - - SST - Single Stream Transport - - TMDS - Transition-Minimized Differential Signaling - - TMZ - Trusted Memory Zone - - TTU - Time to Underflow - - VRR - Variable Refresh Rate - - UVD - Unified Video Decoder +=========== +DC Glossary +=========== + +On this page, we try to keep track of acronyms related to the display +component. If you do not find what you are looking for, look at the +'Documentation/gpu/amdgpu/amdgpu-glossary.rst'; if you cannot find it anywhere, +consider asking in the amdgfx and update this page. + +.. glossary:: + + ABM + Adaptive Backlight Modulation + + APU + Accelerated Processing Unit + + ASIC + Application-Specific Integrated Circuit + + ASSR + Alternate Scrambler Seed Reset + + AZ + Azalia (HD audio DMA engine) + + BPC + Bits Per Colour/Component + + BPP + Bits Per Pixel + + Clocks + * PCLK: Pixel Clock + * SYMCLK: Symbol Clock + * SOCCLK: GPU Engine Clock + * DISPCLK: Display Clock + * DPPCLK: DPP Clock + * DCFCLK: Display Controller Fabric Clock + * REFCLK: Real Time Reference Clock + * PPLL: Pixel PLL + * FCLK: Fabric Clock + * MCLK: Memory Clock + + CRC + Cyclic Redundancy Check + + CRTC + Cathode Ray Tube Controller - commonly called "Controller" - Generates + raw stream of pixels, clocked at pixel clock + + CVT + Coordinated Video Timings + + DAL + Display Abstraction layer + + DC (Software) + Display Core + + DC (Hardware) + Display Controller + + DCC + Delta Colour Compression + + DCE + Display Controller Engine + + DCHUB + Display Controller HUB + + ARB + Arbiter + + VTG + Vertical Timing Generator + + DCN + Display Core Next + + DCCG + Display Clock Generator block + + DDC + Display Data Channel + + DIO + Display IO + + DPP + Display Pipes and Planes + + DSC + Display Stream Compression (Reduce the amount of bits to represent pixel + count while at the same pixel clock) + + dGPU + discrete GPU + + DMIF + Display Memory Interface + + DML + Display Mode Library + + DMCU + Display Micro-Controller Unit + + DMCUB + Display Micro-Controller Unit, version B + + DPCD + DisplayPort Configuration Data + + DPM(S) + Display Power Management (Signaling) + + DRR + Dynamic Refresh Rate + + DWB + Display Writeback + + FB + Frame Buffer + + FBC + Frame Buffer Compression + + FEC + Forward Error Correction + + FRL + Fixed Rate Link + + GCO + Graphical Controller Object + + GSL + Global Swap Lock + + iGPU + integrated GPU + + ISR + Interrupt Service Request + + ISV + Independent Software Vendor + + KMD + Kernel Mode Driver + + LB + Line Buffer + + LFC + Low Framerate Compensation + + LTTPR + Link Training Tunable Phy Repeater + + LUT + Lookup Table + + MALL + Memory Access at Last Level + + MC + Memory Controller + + MPC/MPCC + Multiple pipes and plane combine + + MPO + Multi Plane Overlay + + MST + Multi Stream Transport + + NBP State + Northbridge Power State + + NBIO + North Bridge Input/Output + + ODM + Output Data Mapping + + OPM + Output Protection Manager + + OPP + Output Plane Processor + + OPTC + Output Pipe Timing Combiner + + OTG + Output Timing Generator + + PCON + Power Controller + + PGFSM + Power Gate Finite State Machine + + PSR + Panel Self Refresh + + SCL + Scaler + + SDP + Scalable Data Port + + SLS + Single Large Surface + + SST + Single Stream Transport + + TMDS + Transition-Minimized Differential Signaling + + TMZ + Trusted Memory Zone + + TTU + Time to Underflow + + VRR + Variable Refresh Rate + + UVD + Unified Video Decoder diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/gpu/amdgpu/display/index.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/gpu/amdgpu/display/index.rst index eacf3f81f..f0c342e00 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/gpu/amdgpu/display/index.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/gpu/amdgpu/display/index.rst @@ -1,96 +1,96 @@ -.. _amdgpu-display-core: - -=================================== -drm/amd/display - Display Core (DC) -=================================== - -AMD display engine is partially shared with other operating systems; for this -reason, our Display Core Driver is divided into two pieces: - -#. **Display Core (DC)** contains the OS-agnostic components. Things like - hardware programming and resource management are handled here. -#. **Display Manager (DM)** contains the OS-dependent components. Hooks to the - amdgpu base driver and DRM are implemented here. For example, you can check - display/amdgpu_dm/ folder. - ------------------- -DC Code validation ------------------- - -Maintaining the same code base across multiple OSes requires a lot of -synchronization effort between repositories and exhaustive validation. In the -DC case, we maintain a tree to centralize code from different parts. The shared -repository has integration tests with our Internal Linux CI farm, and we run a -comprehensive set of IGT tests in various AMD GPUs/APUs (mostly recent dGPUs -and APUs). Our CI also checks ARM64/32, PPC64/32, and x86_64/32 compilation -with DCN enabled and disabled. - -When we upstream a new feature or some patches, we pack them in a patchset with -the prefix **DC Patches for **, which is created based on the latest -`amd-staging-drm-next `_. All of -those patches are under a DC version tested as follows: - -* Ensure that every patch compiles and the entire series pass our set of IGT - test in different hardware. -* Prepare a branch with those patches for our validation team. If there is an - error, a developer will debug as fast as possible; usually, a simple bisect - in the series is enough to point to a bad change, and two possible actions - emerge: fix the issue or drop the patch. If it is not an easy fix, the bad - patch is dropped. -* Finally, developers wait a few days for community feedback before we merge - the series. - -It is good to stress that the test phase is something that we take extremely -seriously, and we never merge anything that fails our validation. Follows an -overview of our test set: - -#. Manual test - * Multiple Hotplugs with DP and HDMI. - * Stress test with multiple display configuration changes via the user interface. - * Validate VRR behaviour. - * Check PSR. - * Validate MPO when playing video. - * Test more than two displays connected at the same time. - * Check suspend/resume. - * Validate FPO. - * Check MST. -#. Automated test - * IGT tests in a farm with GPUs and APUs that support DCN and DCE. - * Compilation validation with the latest GCC and Clang from LTS distro. - * Cross-compilation for PowerPC 64/32, ARM 64/32, and x86 32. - -In terms of test setup for CI and manual tests, we usually use: - -#. The latest Ubuntu LTS. -#. In terms of userspace, we only use fully updated open-source components - provided by the distribution official package manager. -#. Regarding IGT, we use the latest code from the upstream. -#. Most of the manual tests are conducted in the GNome but we also use KDE. - -Notice that someone from our test team will always reply to the cover letter -with the test report. - --------------- -DC Information --------------- - -The display pipe is responsible for "scanning out" a rendered frame from the -GPU memory (also called VRAM, FrameBuffer, etc.) to a display. In other words, -it would: - -#. Read frame information from memory; -#. Perform required transformation; -#. Send pixel data to sink devices. - -If you want to learn more about our driver details, take a look at the below -table of content: - -.. toctree:: - - display-manager.rst - dcn-overview.rst - dcn-blocks.rst - mpo-overview.rst - dc-debug.rst - display-contributing.rst - dc-glossary.rst +.. _amdgpu-display-core: + +=================================== +drm/amd/display - Display Core (DC) +=================================== + +AMD display engine is partially shared with other operating systems; for this +reason, our Display Core Driver is divided into two pieces: + +#. **Display Core (DC)** contains the OS-agnostic components. Things like + hardware programming and resource management are handled here. +#. **Display Manager (DM)** contains the OS-dependent components. Hooks to the + amdgpu base driver and DRM are implemented here. For example, you can check + display/amdgpu_dm/ folder. + +------------------ +DC Code validation +------------------ + +Maintaining the same code base across multiple OSes requires a lot of +synchronization effort between repositories and exhaustive validation. In the +DC case, we maintain a tree to centralize code from different parts. The shared +repository has integration tests with our Internal Linux CI farm, and we run a +comprehensive set of IGT tests in various AMD GPUs/APUs (mostly recent dGPUs +and APUs). Our CI also checks ARM64/32, PPC64/32, and x86_64/32 compilation +with DCN enabled and disabled. + +When we upstream a new feature or some patches, we pack them in a patchset with +the prefix **DC Patches for **, which is created based on the latest +`amd-staging-drm-next `_. All of +those patches are under a DC version tested as follows: + +* Ensure that every patch compiles and the entire series pass our set of IGT + test in different hardware. +* Prepare a branch with those patches for our validation team. If there is an + error, a developer will debug as fast as possible; usually, a simple bisect + in the series is enough to point to a bad change, and two possible actions + emerge: fix the issue or drop the patch. If it is not an easy fix, the bad + patch is dropped. +* Finally, developers wait a few days for community feedback before we merge + the series. + +It is good to stress that the test phase is something that we take extremely +seriously, and we never merge anything that fails our validation. Follows an +overview of our test set: + +#. Manual test + * Multiple Hotplugs with DP and HDMI. + * Stress test with multiple display configuration changes via the user interface. + * Validate VRR behaviour. + * Check PSR. + * Validate MPO when playing video. + * Test more than two displays connected at the same time. + * Check suspend/resume. + * Validate FPO. + * Check MST. +#. Automated test + * IGT tests in a farm with GPUs and APUs that support DCN and DCE. + * Compilation validation with the latest GCC and Clang from LTS distro. + * Cross-compilation for PowerPC 64/32, ARM 64/32, and x86 32. + +In terms of test setup for CI and manual tests, we usually use: + +#. The latest Ubuntu LTS. +#. In terms of userspace, we only use fully updated open-source components + provided by the distribution official package manager. +#. Regarding IGT, we use the latest code from the upstream. +#. Most of the manual tests are conducted in the GNome but we also use KDE. + +Notice that someone from our test team will always reply to the cover letter +with the test report. + +-------------- +DC Information +-------------- + +The display pipe is responsible for "scanning out" a rendered frame from the +GPU memory (also called VRAM, FrameBuffer, etc.) to a display. In other words, +it would: + +#. Read frame information from memory; +#. Perform required transformation; +#. Send pixel data to sink devices. + +If you want to learn more about our driver details, take a look at the below +table of content: + +.. toctree:: + + display-manager.rst + dcn-overview.rst + dcn-blocks.rst + mpo-overview.rst + dc-debug.rst + display-contributing.rst + dc-glossary.rst diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/gpu/amdgpu/thermal.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/gpu/amdgpu/thermal.rst index 60d7f4517..6d942b5c5 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/gpu/amdgpu/thermal.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/gpu/amdgpu/thermal.rst @@ -1,158 +1,158 @@ -=========================================== - GPU Power/Thermal Controls and Monitoring -=========================================== - -HWMON Interfaces -================ - -.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c - :doc: hwmon - -GPU sysfs Power State Interfaces -================================ - -GPU power controls are exposed via sysfs files. - -power_dpm_state ---------------- - -.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c - :doc: power_dpm_state - -power_dpm_force_performance_level ---------------------------------- - -.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c - :doc: power_dpm_force_performance_level - -pp_table --------- - -.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c - :doc: pp_table - -pp_od_clk_voltage ------------------ - -.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c - :doc: pp_od_clk_voltage - -pp_dpm_* --------- - -.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c - :doc: pp_dpm_sclk pp_dpm_mclk pp_dpm_socclk pp_dpm_fclk pp_dpm_dcefclk pp_dpm_pcie - -pp_power_profile_mode ---------------------- - -.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c - :doc: pp_power_profile_mode - -pm_policy ---------------------- - -.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c - :doc: pm_policy - -\*_busy_percent ---------------- - -.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c - :doc: gpu_busy_percent - -.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c - :doc: mem_busy_percent - -gpu_metrics ------------ - -.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c - :doc: gpu_metrics - -fan_curve ---------- - -.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c - :doc: fan_curve - -acoustic_limit_rpm_threshold ----------------------------- - -.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c - :doc: acoustic_limit_rpm_threshold - -acoustic_target_rpm_threshold ------------------------------ - -.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c - :doc: acoustic_target_rpm_threshold - -fan_target_temperature ----------------------- - -.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c - :doc: fan_target_temperature - -fan_minimum_pwm ---------------- - -.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c - :doc: fan_minimum_pwm - -GFXOFF -====== - -GFXOFF is a feature found in most recent GPUs that saves power at runtime. The -card's RLC (RunList Controller) firmware powers off the gfx engine -dynamically when there is no workload on gfx or compute pipes. GFXOFF is on by -default on supported GPUs. - -Userspace can interact with GFXOFF through a debugfs interface (all values in -`uint32_t`, unless otherwise noted): - -``amdgpu_gfxoff`` ------------------ - -Use it to enable/disable GFXOFF, and to check if it's current enabled/disabled:: - - $ xxd -l1 -p /sys/kernel/debug/dri/0/amdgpu_gfxoff - 01 - -- Write 0 to disable it, and 1 to enable it. -- Read 0 means it's disabled, 1 it's enabled. - -If it's enabled, that means that the GPU is free to enter into GFXOFF mode as -needed. Disabled means that it will never enter GFXOFF mode. - -``amdgpu_gfxoff_status`` ------------------------- - -Read it to check current GFXOFF's status of a GPU:: - - $ xxd -l1 -p /sys/kernel/debug/dri/0/amdgpu_gfxoff_status - 02 - -- 0: GPU is in GFXOFF state, the gfx engine is powered down. -- 1: Transition out of GFXOFF state -- 2: Not in GFXOFF state -- 3: Transition into GFXOFF state - -If GFXOFF is enabled, the value will be transitioning around [0, 3], always -getting into 0 when possible. When it's disabled, it's always at 2. Returns -``-EINVAL`` if it's not supported. - -``amdgpu_gfxoff_count`` ------------------------ - -Read it to get the total GFXOFF entry count at the time of query since system -power-up. The value is an `uint64_t` type, however, due to firmware limitations, -it can currently overflow as an `uint32_t`. *Only supported in vangogh* - -``amdgpu_gfxoff_residency`` ---------------------------- - -Write 1 to amdgpu_gfxoff_residency to start logging, and 0 to stop. Read it to -get average GFXOFF residency % multiplied by 100 during the last logging -interval. E.g. a value of 7854 means 78.54% of the time in the last logging -interval the GPU was in GFXOFF mode. *Only supported in vangogh* +=========================================== + GPU Power/Thermal Controls and Monitoring +=========================================== + +HWMON Interfaces +================ + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: hwmon + +GPU sysfs Power State Interfaces +================================ + +GPU power controls are exposed via sysfs files. + +power_dpm_state +--------------- + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: power_dpm_state + +power_dpm_force_performance_level +--------------------------------- + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: power_dpm_force_performance_level + +pp_table +-------- + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: pp_table + +pp_od_clk_voltage +----------------- + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: pp_od_clk_voltage + +pp_dpm_* +-------- + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: pp_dpm_sclk pp_dpm_mclk pp_dpm_socclk pp_dpm_fclk pp_dpm_dcefclk pp_dpm_pcie + +pp_power_profile_mode +--------------------- + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: pp_power_profile_mode + +pm_policy +--------------------- + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: pm_policy + +\*_busy_percent +--------------- + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: gpu_busy_percent + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: mem_busy_percent + +gpu_metrics +----------- + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: gpu_metrics + +fan_curve +--------- + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: fan_curve + +acoustic_limit_rpm_threshold +---------------------------- + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: acoustic_limit_rpm_threshold + +acoustic_target_rpm_threshold +----------------------------- + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: acoustic_target_rpm_threshold + +fan_target_temperature +---------------------- + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: fan_target_temperature + +fan_minimum_pwm +--------------- + +.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c + :doc: fan_minimum_pwm + +GFXOFF +====== + +GFXOFF is a feature found in most recent GPUs that saves power at runtime. The +card's RLC (RunList Controller) firmware powers off the gfx engine +dynamically when there is no workload on gfx or compute pipes. GFXOFF is on by +default on supported GPUs. + +Userspace can interact with GFXOFF through a debugfs interface (all values in +`uint32_t`, unless otherwise noted): + +``amdgpu_gfxoff`` +----------------- + +Use it to enable/disable GFXOFF, and to check if it's current enabled/disabled:: + + $ xxd -l1 -p /sys/kernel/debug/dri/0/amdgpu_gfxoff + 01 + +- Write 0 to disable it, and 1 to enable it. +- Read 0 means it's disabled, 1 it's enabled. + +If it's enabled, that means that the GPU is free to enter into GFXOFF mode as +needed. Disabled means that it will never enter GFXOFF mode. + +``amdgpu_gfxoff_status`` +------------------------ + +Read it to check current GFXOFF's status of a GPU:: + + $ xxd -l1 -p /sys/kernel/debug/dri/0/amdgpu_gfxoff_status + 02 + +- 0: GPU is in GFXOFF state, the gfx engine is powered down. +- 1: Transition out of GFXOFF state +- 2: Not in GFXOFF state +- 3: Transition into GFXOFF state + +If GFXOFF is enabled, the value will be transitioning around [0, 3], always +getting into 0 when possible. When it's disabled, it's always at 2. Returns +``-EINVAL`` if it's not supported. + +``amdgpu_gfxoff_count`` +----------------------- + +Read it to get the total GFXOFF entry count at the time of query since system +power-up. The value is an `uint64_t` type, however, due to firmware limitations, +it can currently overflow as an `uint32_t`. *Only supported in vangogh* + +``amdgpu_gfxoff_residency`` +--------------------------- + +Write 1 to amdgpu_gfxoff_residency to start logging, and 0 to stop. Read it to +get average GFXOFF residency % multiplied by 100 during the last logging +interval. E.g. a value of 7854 means 78.54% of the time in the last logging +interval the GPU was in GFXOFF mode. *Only supported in vangogh* diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/abituguru.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/abituguru.rst index 4d3c53b31..cfda60b75 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/abituguru.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/abituguru.rst @@ -1,113 +1,113 @@ -Kernel driver abituguru -======================= - -Supported chips: - - * Abit uGuru revision 1 & 2 (Hardware Monitor part only) - - Prefix: 'abituguru' - - Addresses scanned: ISA 0x0E0 - - Datasheet: Not available, this driver is based on reverse engineering. - A "Datasheet" has been written based on the reverse engineering it - should be available in the same dir as this file under the name - abituguru-datasheet. - - Note: - The uGuru is a microcontroller with onboard firmware which programs - it to behave as a hwmon IC. There are many different revisions of the - firmware and thus effectively many different revisions of the uGuru. - Below is an incomplete list with which revisions are used for which - Motherboards: - - - uGuru 1.00 ~ 1.24 (AI7, KV8-MAX3, AN7) [1]_ - - uGuru 2.0.0.0 ~ 2.0.4.2 (KV8-PRO) - - uGuru 2.1.0.0 ~ 2.1.2.8 (AS8, AV8, AA8, AG8, AA8XE, AX8) - - uGuru 2.2.0.0 ~ 2.2.0.6 (AA8 Fatal1ty) - - uGuru 2.3.0.0 ~ 2.3.0.9 (AN8) - - uGuru 3.0.0.0 ~ 3.0.x.x (AW8, AL8, AT8, NI8 SLI, AT8 32X, AN8 32X, - AW9D-MAX) [2]_ - -.. [1] For revisions 2 and 3 uGuru's the driver can autodetect the - sensortype (Volt or Temp) for bank1 sensors, for revision 1 uGuru's - this does not always work. For these uGuru's the autodetection can - be overridden with the bank1_types module param. For all 3 known - revision 1 motherboards the correct use of this param is: - bank1_types=1,1,0,0,0,0,0,2,0,0,0,0,2,0,0,1 - You may also need to specify the fan_sensors option for these boards - fan_sensors=5 - -.. [2] There is a separate abituguru3 driver for these motherboards, - the abituguru (without the 3 !) driver will not work on these - motherboards (and visa versa)! - -Authors: - - Hans de Goede , - - (Initial reverse engineering done by Olle Sandberg - ) - - -Module Parameters ------------------ - -* force: bool - Force detection. Note this parameter only causes the - detection to be skipped, and thus the insmod to - succeed. If the uGuru can't be read the actual hwmon - driver will not load and thus no hwmon device will get - registered. -* bank1_types: int[] - Bank1 sensortype autodetection override: - - * -1 autodetect (default) - * 0 volt sensor - * 1 temp sensor - * 2 not connected -* fan_sensors: int - Tell the driver how many fan speed sensors there are - on your motherboard. Default: 0 (autodetect). -* pwms: int - Tell the driver how many fan speed controls (fan - pwms) your motherboard has. Default: 0 (autodetect). -* verbose: int - How verbose should the driver be? (0-3): - - * 0 normal output - * 1 + verbose error reporting - * 2 + sensors type probing info (default) - * 3 + retryable error reporting - - Default: 2 (the driver is still in the testing phase) - -Notice: if you need any of the first three options above please insmod the -driver with verbose set to 3 and mail me the output of: -dmesg | grep abituguru - - -Description ------------ - -This driver supports the hardware monitoring features of the first and -second revision of the Abit uGuru chip found on Abit uGuru featuring -motherboards (most modern Abit motherboards). - -The first and second revision of the uGuru chip in reality is a Winbond -W83L950D in disguise (despite Abit claiming it is "a new microprocessor -designed by the ABIT Engineers"). Unfortunately this doesn't help since the -W83L950D is a generic microcontroller with a custom Abit application running -on it. - -Despite Abit not releasing any information regarding the uGuru, Olle -Sandberg has managed to reverse engineer the sensor part -of the uGuru. Without his work this driver would not have been possible. - -Known Issues ------------- - -The voltage and frequency control parts of the Abit uGuru are not supported. - -.. toctree:: - :maxdepth: 1 - - abituguru-datasheet.rst +Kernel driver abituguru +======================= + +Supported chips: + + * Abit uGuru revision 1 & 2 (Hardware Monitor part only) + + Prefix: 'abituguru' + + Addresses scanned: ISA 0x0E0 + + Datasheet: Not available, this driver is based on reverse engineering. + A "Datasheet" has been written based on the reverse engineering it + should be available in the same dir as this file under the name + abituguru-datasheet. + + Note: + The uGuru is a microcontroller with onboard firmware which programs + it to behave as a hwmon IC. There are many different revisions of the + firmware and thus effectively many different revisions of the uGuru. + Below is an incomplete list with which revisions are used for which + Motherboards: + + - uGuru 1.00 ~ 1.24 (AI7, KV8-MAX3, AN7) [1]_ + - uGuru 2.0.0.0 ~ 2.0.4.2 (KV8-PRO) + - uGuru 2.1.0.0 ~ 2.1.2.8 (AS8, AV8, AA8, AG8, AA8XE, AX8) + - uGuru 2.2.0.0 ~ 2.2.0.6 (AA8 Fatal1ty) + - uGuru 2.3.0.0 ~ 2.3.0.9 (AN8) + - uGuru 3.0.0.0 ~ 3.0.x.x (AW8, AL8, AT8, NI8 SLI, AT8 32X, AN8 32X, + AW9D-MAX) [2]_ + +.. [1] For revisions 2 and 3 uGuru's the driver can autodetect the + sensortype (Volt or Temp) for bank1 sensors, for revision 1 uGuru's + this does not always work. For these uGuru's the autodetection can + be overridden with the bank1_types module param. For all 3 known + revision 1 motherboards the correct use of this param is: + bank1_types=1,1,0,0,0,0,0,2,0,0,0,0,2,0,0,1 + You may also need to specify the fan_sensors option for these boards + fan_sensors=5 + +.. [2] There is a separate abituguru3 driver for these motherboards, + the abituguru (without the 3 !) driver will not work on these + motherboards (and visa versa)! + +Authors: + - Hans de Goede , + - (Initial reverse engineering done by Olle Sandberg + ) + + +Module Parameters +----------------- + +* force: bool + Force detection. Note this parameter only causes the + detection to be skipped, and thus the insmod to + succeed. If the uGuru can't be read the actual hwmon + driver will not load and thus no hwmon device will get + registered. +* bank1_types: int[] + Bank1 sensortype autodetection override: + + * -1 autodetect (default) + * 0 volt sensor + * 1 temp sensor + * 2 not connected +* fan_sensors: int + Tell the driver how many fan speed sensors there are + on your motherboard. Default: 0 (autodetect). +* pwms: int + Tell the driver how many fan speed controls (fan + pwms) your motherboard has. Default: 0 (autodetect). +* verbose: int + How verbose should the driver be? (0-3): + + * 0 normal output + * 1 + verbose error reporting + * 2 + sensors type probing info (default) + * 3 + retryable error reporting + + Default: 2 (the driver is still in the testing phase) + +Notice: if you need any of the first three options above please insmod the +driver with verbose set to 3 and mail me the output of: +dmesg | grep abituguru + + +Description +----------- + +This driver supports the hardware monitoring features of the first and +second revision of the Abit uGuru chip found on Abit uGuru featuring +motherboards (most modern Abit motherboards). + +The first and second revision of the uGuru chip in reality is a Winbond +W83L950D in disguise (despite Abit claiming it is "a new microprocessor +designed by the ABIT Engineers"). Unfortunately this doesn't help since the +W83L950D is a generic microcontroller with a custom Abit application running +on it. + +Despite Abit not releasing any information regarding the uGuru, Olle +Sandberg has managed to reverse engineer the sensor part +of the uGuru. Without his work this driver would not have been possible. + +Known Issues +------------ + +The voltage and frequency control parts of the Abit uGuru are not supported. + +.. toctree:: + :maxdepth: 1 + + abituguru-datasheet.rst diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/adt7410.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/adt7410.rst index 5c835eda7..3f5a43561 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/adt7410.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/adt7410.rst @@ -1,94 +1,94 @@ -Kernel driver adt7410 -===================== - -Supported chips: - - * Analog Devices ADT7410 - - Prefix: 'adt7410' - - Addresses scanned: None - - Datasheet: Publicly available at the Analog Devices website - - https://www.analog.com/static/imported-files/data_sheets/ADT7410.pdf - * Analog Devices ADT7420 - - Prefix: 'adt7420' - - Addresses scanned: None - - Datasheet: Publicly available at the Analog Devices website - - https://www.analog.com/static/imported-files/data_sheets/ADT7420.pdf - - * Analog Devices ADT7310 - - Prefix: 'adt7310' - - Addresses scanned: None - - Datasheet: Publicly available at the Analog Devices website - - https://www.analog.com/static/imported-files/data_sheets/ADT7310.pdf - - * Analog Devices ADT7320 - - Prefix: 'adt7320' - - Addresses scanned: None - - Datasheet: Publicly available at the Analog Devices website - - https://www.analog.com/static/imported-files/data_sheets/ADT7320.pdf - -Author: Hartmut Knaack - -Description ------------ - -The ADT7310/ADT7410 is a temperature sensor with rated temperature range of --55°C to +150°C. It has a high accuracy of +/-0.5°C and can be operated at a -resolution of 13 bits (0.0625°C) or 16 bits (0.0078°C). The sensor provides an -INT pin to indicate that a minimum or maximum temperature set point has been -exceeded, as well as a critical temperature (CT) pin to indicate that the -critical temperature set point has been exceeded. Both pins can be set up with a -common hysteresis of 0°C - 15°C and a fault queue, ranging from 1 to 4 events. -Both pins can individually set to be active-low or active-high, while the whole -device can either run in comparator mode or interrupt mode. The ADT7410 supports -continuous temperature sampling, as well as sampling one temperature value per -second or even just get one sample on demand for power saving. Besides, it can -completely power down its ADC, if power management is required. - -The ADT7320/ADT7420 is register compatible, the only differences being the -package, a slightly narrower operating temperature range (-40°C to +150°C), and -a better accuracy (0.25°C instead of 0.50°C.) - -The difference between the ADT7310/ADT7320 and ADT7410/ADT7420 is the control -interface, the ADT7310 and ADT7320 use SPI while the ADT7410 and ADT7420 use -I2C. - -Configuration Notes -------------------- - -Since the device uses one hysteresis value, which is an offset to minimum, -maximum and critical temperature, it can only be set for temp#_max_hyst. -However, temp#_min_hyst and temp#_crit_hyst show their corresponding -hysteresis. -The device is set to 16 bit resolution and comparator mode. - -sysfs-Interface ---------------- - -======================== ==================================================== -temp#_input temperature input -temp#_min temperature minimum setpoint -temp#_max temperature maximum setpoint -temp#_crit critical temperature setpoint -temp#_min_hyst hysteresis for temperature minimum (read-only) -temp#_max_hyst hysteresis for temperature maximum (read/write) -temp#_crit_hyst hysteresis for critical temperature (read-only) -temp#_min_alarm temperature minimum alarm flag -temp#_max_alarm temperature maximum alarm flag -temp#_crit_alarm critical temperature alarm flag -======================== ==================================================== +Kernel driver adt7410 +===================== + +Supported chips: + + * Analog Devices ADT7410 + + Prefix: 'adt7410' + + Addresses scanned: None + + Datasheet: Publicly available at the Analog Devices website + + https://www.analog.com/static/imported-files/data_sheets/ADT7410.pdf + * Analog Devices ADT7420 + + Prefix: 'adt7420' + + Addresses scanned: None + + Datasheet: Publicly available at the Analog Devices website + + https://www.analog.com/static/imported-files/data_sheets/ADT7420.pdf + + * Analog Devices ADT7310 + + Prefix: 'adt7310' + + Addresses scanned: None + + Datasheet: Publicly available at the Analog Devices website + + https://www.analog.com/static/imported-files/data_sheets/ADT7310.pdf + + * Analog Devices ADT7320 + + Prefix: 'adt7320' + + Addresses scanned: None + + Datasheet: Publicly available at the Analog Devices website + + https://www.analog.com/static/imported-files/data_sheets/ADT7320.pdf + +Author: Hartmut Knaack + +Description +----------- + +The ADT7310/ADT7410 is a temperature sensor with rated temperature range of +-55°C to +150°C. It has a high accuracy of +/-0.5°C and can be operated at a +resolution of 13 bits (0.0625°C) or 16 bits (0.0078°C). The sensor provides an +INT pin to indicate that a minimum or maximum temperature set point has been +exceeded, as well as a critical temperature (CT) pin to indicate that the +critical temperature set point has been exceeded. Both pins can be set up with a +common hysteresis of 0°C - 15°C and a fault queue, ranging from 1 to 4 events. +Both pins can individually set to be active-low or active-high, while the whole +device can either run in comparator mode or interrupt mode. The ADT7410 supports +continuous temperature sampling, as well as sampling one temperature value per +second or even just get one sample on demand for power saving. Besides, it can +completely power down its ADC, if power management is required. + +The ADT7320/ADT7420 is register compatible, the only differences being the +package, a slightly narrower operating temperature range (-40°C to +150°C), and +a better accuracy (0.25°C instead of 0.50°C.) + +The difference between the ADT7310/ADT7320 and ADT7410/ADT7420 is the control +interface, the ADT7310 and ADT7320 use SPI while the ADT7410 and ADT7420 use +I2C. + +Configuration Notes +------------------- + +Since the device uses one hysteresis value, which is an offset to minimum, +maximum and critical temperature, it can only be set for temp#_max_hyst. +However, temp#_min_hyst and temp#_crit_hyst show their corresponding +hysteresis. +The device is set to 16 bit resolution and comparator mode. + +sysfs-Interface +--------------- + +======================== ==================================================== +temp#_input temperature input +temp#_min temperature minimum setpoint +temp#_max temperature maximum setpoint +temp#_crit critical temperature setpoint +temp#_min_hyst hysteresis for temperature minimum (read-only) +temp#_max_hyst hysteresis for temperature maximum (read/write) +temp#_crit_hyst hysteresis for critical temperature (read-only) +temp#_min_alarm temperature minimum alarm flag +temp#_max_alarm temperature maximum alarm flag +temp#_crit_alarm critical temperature alarm flag +======================== ==================================================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/amc6821.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/amc6821.rst index 2ebbef133..dbd544cd1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/amc6821.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/amc6821.rst @@ -1,113 +1,113 @@ -Kernel driver amc6821 -===================== - -Supported chips: - - Texas Instruments AMC6821 - - Prefix: 'amc6821' - - Addresses scanned: 0x18, 0x19, 0x1a, 0x2c, 0x2d, 0x2e, 0x4c, 0x4d, 0x4e - - Datasheet: http://focus.ti.com/docs/prod/folders/print/amc6821.html - -Authors: - Tomaz Mertelj - - -Description ------------ - -This driver implements support for the Texas Instruments amc6821 chip. -The chip has one on-chip and one remote temperature sensor and one pwm fan -regulator. -The pwm can be controlled either from software or automatically. - -The driver provides the following sensor accesses in sysfs: - -======================= == =============================================== -temp1_input ro on-chip temperature -temp1_min rw " -temp1_max rw " -temp1_crit rw " -temp1_min_alarm ro " -temp1_max_alarm ro " -temp1_crit_alarm ro " - -temp2_input ro remote temperature -temp2_min rw " -temp2_max rw " -temp2_crit rw " -temp2_min_alarm ro " -temp2_max_alarm ro " -temp2_crit_alarm ro " -temp2_fault ro " - -fan1_input ro tachometer speed -fan1_min rw " -fan1_max rw " -fan1_fault ro " -fan1_pulses rw Pulses per revolution can be either 2 or 4. -fan1_target rw Target fan speed, to be used with pwm1_enable - mode 4. - -pwm1 rw pwm1 -pwm1_enable rw regulator mode, 1=open loop, 2=fan controlled - by remote temperature, 3=fan controlled by - combination of the on-chip temperature and - remote-sensor temperature, - 4=fan controlled by target rpm set with - fan1_target attribute. -pwm1_mode rw Fan duty control mode (0=DC, 1=PWM) -pwm1_auto_channels_temp ro 1 if pwm_enable==2, 3 if pwm_enable==3 -pwm1_auto_point1_pwm ro Hardwired to 0, shared for both - temperature channels. -pwm1_auto_point2_pwm rw This value is shared for both temperature - channels. -pwm1_auto_point3_pwm rw Hardwired to 255, shared for both - temperature channels. - -temp1_auto_point1_temp ro Hardwired to temp2_auto_point1_temp - which is rw. Below this temperature fan stops. -temp1_auto_point2_temp rw The low-temperature limit of the proportional - range. Below this temperature - pwm1 = pwm1_auto_point2_pwm. It can go from - 0 degree C to 124 degree C in steps of - 4 degree C. Read it out after writing to get - the actual value. -temp1_auto_point3_temp rw Above this temperature fan runs at maximum - speed. It can go from temp1_auto_point2_temp. - It can only have certain discrete values - which depend on temp1_auto_point2_temp and - pwm1_auto_point2_pwm. Read it out after - writing to get the actual value. - -temp2_auto_point1_temp rw Must be between 0 degree C and 63 degree C and - it defines the passive cooling temperature. - Below this temperature the fan stops in - the closed loop mode. -temp2_auto_point2_temp rw The low-temperature limit of the proportional - range. Below this temperature - pwm1 = pwm1_auto_point2_pwm. It can go from - 0 degree C to 124 degree C in steps - of 4 degree C. - -temp2_auto_point3_temp rw Above this temperature fan runs at maximum - speed. It can only have certain discrete - values which depend on temp2_auto_point2_temp - and pwm1_auto_point2_pwm. Read it out after - writing to get actual value. -======================= == =============================================== - - -Module parameters ------------------ - -If your board has a BIOS that initializes the amc6821 correctly, you should -load the module with: init=0. - -If your board BIOS doesn't initialize the chip, or you want -different settings, you can set the following parameters: - -- init=1, -- pwminv: 0 default pwm output, 1 inverts pwm output. +Kernel driver amc6821 +===================== + +Supported chips: + + Texas Instruments AMC6821 + + Prefix: 'amc6821' + + Addresses scanned: 0x18, 0x19, 0x1a, 0x2c, 0x2d, 0x2e, 0x4c, 0x4d, 0x4e + + Datasheet: http://focus.ti.com/docs/prod/folders/print/amc6821.html + +Authors: + Tomaz Mertelj + + +Description +----------- + +This driver implements support for the Texas Instruments amc6821 chip. +The chip has one on-chip and one remote temperature sensor and one pwm fan +regulator. +The pwm can be controlled either from software or automatically. + +The driver provides the following sensor accesses in sysfs: + +======================= == =============================================== +temp1_input ro on-chip temperature +temp1_min rw " +temp1_max rw " +temp1_crit rw " +temp1_min_alarm ro " +temp1_max_alarm ro " +temp1_crit_alarm ro " + +temp2_input ro remote temperature +temp2_min rw " +temp2_max rw " +temp2_crit rw " +temp2_min_alarm ro " +temp2_max_alarm ro " +temp2_crit_alarm ro " +temp2_fault ro " + +fan1_input ro tachometer speed +fan1_min rw " +fan1_max rw " +fan1_fault ro " +fan1_pulses rw Pulses per revolution can be either 2 or 4. +fan1_target rw Target fan speed, to be used with pwm1_enable + mode 4. + +pwm1 rw pwm1 +pwm1_enable rw regulator mode, 1=open loop, 2=fan controlled + by remote temperature, 3=fan controlled by + combination of the on-chip temperature and + remote-sensor temperature, + 4=fan controlled by target rpm set with + fan1_target attribute. +pwm1_mode rw Fan duty control mode (0=DC, 1=PWM) +pwm1_auto_channels_temp ro 1 if pwm_enable==2, 3 if pwm_enable==3 +pwm1_auto_point1_pwm ro Hardwired to 0, shared for both + temperature channels. +pwm1_auto_point2_pwm rw This value is shared for both temperature + channels. +pwm1_auto_point3_pwm rw Hardwired to 255, shared for both + temperature channels. + +temp1_auto_point1_temp ro Hardwired to temp2_auto_point1_temp + which is rw. Below this temperature fan stops. +temp1_auto_point2_temp rw The low-temperature limit of the proportional + range. Below this temperature + pwm1 = pwm1_auto_point2_pwm. It can go from + 0 degree C to 124 degree C in steps of + 4 degree C. Read it out after writing to get + the actual value. +temp1_auto_point3_temp rw Above this temperature fan runs at maximum + speed. It can go from temp1_auto_point2_temp. + It can only have certain discrete values + which depend on temp1_auto_point2_temp and + pwm1_auto_point2_pwm. Read it out after + writing to get the actual value. + +temp2_auto_point1_temp rw Must be between 0 degree C and 63 degree C and + it defines the passive cooling temperature. + Below this temperature the fan stops in + the closed loop mode. +temp2_auto_point2_temp rw The low-temperature limit of the proportional + range. Below this temperature + pwm1 = pwm1_auto_point2_pwm. It can go from + 0 degree C to 124 degree C in steps + of 4 degree C. + +temp2_auto_point3_temp rw Above this temperature fan runs at maximum + speed. It can only have certain discrete + values which depend on temp2_auto_point2_temp + and pwm1_auto_point2_pwm. Read it out after + writing to get actual value. +======================= == =============================================== + + +Module parameters +----------------- + +If your board has a BIOS that initializes the amc6821 correctly, you should +load the module with: init=0. + +If your board BIOS doesn't initialize the chip, or you want +different settings, you can set the following parameters: + +- init=1, +- pwminv: 0 default pwm output, 1 inverts pwm output. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/fam15h_power.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/fam15h_power.rst index 5708fd573..fdde632c9 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/fam15h_power.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/fam15h_power.rst @@ -1,131 +1,131 @@ -Kernel driver fam15h_power -========================== - -Supported chips: - -* AMD Family 15h Processors - -* AMD Family 16h Processors - - Prefix: 'fam15h_power' - - Addresses scanned: PCI space - - Datasheets: - - - BIOS and Kernel Developer's Guide (BKDG) For AMD Family 15h Processors - - BIOS and Kernel Developer's Guide (BKDG) For AMD Family 16h Processors - - AMD64 Architecture Programmer's Manual Volume 2: System Programming - -Author: Andreas Herrmann - -Description ------------ - -1) Processor TDP (Thermal design power) - -Given a fixed frequency and voltage, the power consumption of a -processor varies based on the workload being executed. Derated power -is the power consumed when running a specific application. Thermal -design power (TDP) is an example of derated power. - -This driver permits reading of registers providing power information -of AMD Family 15h and 16h processors via TDP algorithm. - -For AMD Family 15h and 16h processors the following power values can -be calculated using different processor northbridge function -registers: - -* BasePwrWatts: - Specifies in watts the maximum amount of power - consumed by the processor for NB and logic external to the core. - -* ProcessorPwrWatts: - Specifies in watts the maximum amount of power - the processor can support. -* CurrPwrWatts: - Specifies in watts the current amount of power being - consumed by the processor. - -This driver provides ProcessorPwrWatts and CurrPwrWatts: - -* power1_crit (ProcessorPwrWatts) -* power1_input (CurrPwrWatts) - -On multi-node processors the calculated value is for the entire -package and not for a single node. Thus the driver creates sysfs -attributes only for internal node0 of a multi-node processor. - -2) Accumulated Power Mechanism - -This driver also introduces an algorithm that should be used to -calculate the average power consumed by a processor during a -measurement interval Tm. The feature of accumulated power mechanism is -indicated by CPUID Fn8000_0007_EDX[12]. - -* Tsample: - compute unit power accumulator sample period - -* Tref: - the PTSC counter period - -* PTSC: - performance timestamp counter - -* N: - the ratio of compute unit power accumulator sample period to the - PTSC period - -* Jmax: - max compute unit accumulated power which is indicated by - MaxCpuSwPwrAcc MSR C001007b - -* Jx/Jy: - compute unit accumulated power which is indicated by - CpuSwPwrAcc MSR C001007a -* Tx/Ty: - the value of performance timestamp counter which is indicated - by CU_PTSC MSR C0010280 - -* PwrCPUave: - CPU average power - -i. Determine the ratio of Tsample to Tref by executing CPUID Fn8000_0007. - - N = value of CPUID Fn8000_0007_ECX[CpuPwrSampleTimeRatio[15:0]]. - -ii. Read the full range of the cumulative energy value from the new - MSR MaxCpuSwPwrAcc. - - Jmax = value returned. - -iii. At time x, SW reads CpuSwPwrAcc MSR and samples the PTSC. - - Jx = value read from CpuSwPwrAcc and Tx = value read from PTSC. - -iv. At time y, SW reads CpuSwPwrAcc MSR and samples the PTSC. - - Jy = value read from CpuSwPwrAcc and Ty = value read from PTSC. - -v. Calculate the average power consumption for a compute unit over - time period (y-x). Unit of result is uWatt:: - - if (Jy < Jx) // Rollover has occurred - Jdelta = (Jy + Jmax) - Jx - else - Jdelta = Jy - Jx - PwrCPUave = N * Jdelta * 1000 / (Ty - Tx) - -This driver provides PwrCPUave and interval(default is 10 millisecond -and maximum is 1 second): - -* power1_average (PwrCPUave) -* power1_average_interval (Interval) - -The power1_average_interval can be updated at /etc/sensors3.conf file -as below: - -chip `fam15h_power-*` - set power1_average_interval 0.01 - -Then save it with "sensors -s". +Kernel driver fam15h_power +========================== + +Supported chips: + +* AMD Family 15h Processors + +* AMD Family 16h Processors + + Prefix: 'fam15h_power' + + Addresses scanned: PCI space + + Datasheets: + + - BIOS and Kernel Developer's Guide (BKDG) For AMD Family 15h Processors + - BIOS and Kernel Developer's Guide (BKDG) For AMD Family 16h Processors + - AMD64 Architecture Programmer's Manual Volume 2: System Programming + +Author: Andreas Herrmann + +Description +----------- + +1) Processor TDP (Thermal design power) + +Given a fixed frequency and voltage, the power consumption of a +processor varies based on the workload being executed. Derated power +is the power consumed when running a specific application. Thermal +design power (TDP) is an example of derated power. + +This driver permits reading of registers providing power information +of AMD Family 15h and 16h processors via TDP algorithm. + +For AMD Family 15h and 16h processors the following power values can +be calculated using different processor northbridge function +registers: + +* BasePwrWatts: + Specifies in watts the maximum amount of power + consumed by the processor for NB and logic external to the core. + +* ProcessorPwrWatts: + Specifies in watts the maximum amount of power + the processor can support. +* CurrPwrWatts: + Specifies in watts the current amount of power being + consumed by the processor. + +This driver provides ProcessorPwrWatts and CurrPwrWatts: + +* power1_crit (ProcessorPwrWatts) +* power1_input (CurrPwrWatts) + +On multi-node processors the calculated value is for the entire +package and not for a single node. Thus the driver creates sysfs +attributes only for internal node0 of a multi-node processor. + +2) Accumulated Power Mechanism + +This driver also introduces an algorithm that should be used to +calculate the average power consumed by a processor during a +measurement interval Tm. The feature of accumulated power mechanism is +indicated by CPUID Fn8000_0007_EDX[12]. + +* Tsample: + compute unit power accumulator sample period + +* Tref: + the PTSC counter period + +* PTSC: + performance timestamp counter + +* N: + the ratio of compute unit power accumulator sample period to the + PTSC period + +* Jmax: + max compute unit accumulated power which is indicated by + MaxCpuSwPwrAcc MSR C001007b + +* Jx/Jy: + compute unit accumulated power which is indicated by + CpuSwPwrAcc MSR C001007a +* Tx/Ty: + the value of performance timestamp counter which is indicated + by CU_PTSC MSR C0010280 + +* PwrCPUave: + CPU average power + +i. Determine the ratio of Tsample to Tref by executing CPUID Fn8000_0007. + + N = value of CPUID Fn8000_0007_ECX[CpuPwrSampleTimeRatio[15:0]]. + +ii. Read the full range of the cumulative energy value from the new + MSR MaxCpuSwPwrAcc. + + Jmax = value returned. + +iii. At time x, SW reads CpuSwPwrAcc MSR and samples the PTSC. + + Jx = value read from CpuSwPwrAcc and Tx = value read from PTSC. + +iv. At time y, SW reads CpuSwPwrAcc MSR and samples the PTSC. + + Jy = value read from CpuSwPwrAcc and Ty = value read from PTSC. + +v. Calculate the average power consumption for a compute unit over + time period (y-x). Unit of result is uWatt:: + + if (Jy < Jx) // Rollover has occurred + Jdelta = (Jy + Jmax) - Jx + else + Jdelta = Jy - Jx + PwrCPUave = N * Jdelta * 1000 / (Ty - Tx) + +This driver provides PwrCPUave and interval(default is 10 millisecond +and maximum is 1 second): + +* power1_average (PwrCPUave) +* power1_average_interval (Interval) + +The power1_average_interval can be updated at /etc/sensors3.conf file +as below: + +chip `fam15h_power-*` + set power1_average_interval 0.01 + +Then save it with "sensors -s". diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/ina209.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/ina209.rst index c7b5fa2e0..162256131 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/ina209.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/ina209.rst @@ -1,99 +1,99 @@ -Kernel driver ina209 -==================== - -Supported chips: - - * Burr-Brown / Texas Instruments INA209 - - Prefix: 'ina209' - - Addresses scanned: - - - Datasheet: - https://www.ti.com/lit/gpn/ina209 - -Author: - - Paul Hays - - Ira W. Snyder - - Guenter Roeck - - -Description ------------ - -The TI / Burr-Brown INA209 monitors voltage, current, and power on the high side -of a D.C. power supply. It can perform measurements and calculations in the -background to supply readings at any time. It includes a programmable -calibration multiplier to scale the displayed current and power values. - - -Sysfs entries -------------- - -The INA209 chip is highly configurable both via hardwiring and via -the I2C bus. See the datasheet for details. - -This tries to expose most monitoring features of the hardware via -sysfs. It does not support every feature of this chip. - -======================= ======================================================= -in0_input shunt voltage (mV) -in0_input_highest shunt voltage historical maximum reading (mV) -in0_input_lowest shunt voltage historical minimum reading (mV) -in0_reset_history reset shunt voltage history -in0_max shunt voltage max alarm limit (mV) -in0_min shunt voltage min alarm limit (mV) -in0_crit_max shunt voltage crit max alarm limit (mV) -in0_crit_min shunt voltage crit min alarm limit (mV) -in0_max_alarm shunt voltage max alarm limit exceeded -in0_min_alarm shunt voltage min alarm limit exceeded -in0_crit_max_alarm shunt voltage crit max alarm limit exceeded -in0_crit_min_alarm shunt voltage crit min alarm limit exceeded - -in1_input bus voltage (mV) -in1_input_highest bus voltage historical maximum reading (mV) -in1_input_lowest bus voltage historical minimum reading (mV) -in1_reset_history reset bus voltage history -in1_max bus voltage max alarm limit (mV) -in1_min bus voltage min alarm limit (mV) -in1_crit_max bus voltage crit max alarm limit (mV) -in1_crit_min bus voltage crit min alarm limit (mV) -in1_max_alarm bus voltage max alarm limit exceeded -in1_min_alarm bus voltage min alarm limit exceeded -in1_crit_max_alarm bus voltage crit max alarm limit exceeded -in1_crit_min_alarm bus voltage crit min alarm limit exceeded - -power1_input power measurement (uW) -power1_input_highest power historical maximum reading (uW) -power1_reset_history reset power history -power1_max power max alarm limit (uW) -power1_crit power crit alarm limit (uW) -power1_max_alarm power max alarm limit exceeded -power1_crit_alarm power crit alarm limit exceeded - -curr1_input current measurement (mA) - -update_interval data conversion time; affects number of samples used - to average results for shunt and bus voltages. -======================= ======================================================= - -General Remarks ---------------- - -The power and current registers in this chip require that the calibration -register is programmed correctly before they are used. Normally this is expected -to be done in the BIOS. In the absence of BIOS programming, the shunt resistor -voltage can be provided using platform data. The driver uses platform data from -the ina2xx driver for this purpose. If calibration register data is not provided -via platform data, the driver checks if the calibration register has been -programmed (ie has a value not equal to zero). If so, this value is retained. -Otherwise, a default value reflecting a shunt resistor value of 10 mOhm is -programmed into the calibration register. - - -Output Pins ------------ - -Output pin programming is a board feature which depends on the BIOS. It is -outside the scope of a hardware monitoring driver to enable or disable output -pins. +Kernel driver ina209 +==================== + +Supported chips: + + * Burr-Brown / Texas Instruments INA209 + + Prefix: 'ina209' + + Addresses scanned: - + + Datasheet: + https://www.ti.com/lit/gpn/ina209 + +Author: + - Paul Hays + - Ira W. Snyder + - Guenter Roeck + + +Description +----------- + +The TI / Burr-Brown INA209 monitors voltage, current, and power on the high side +of a D.C. power supply. It can perform measurements and calculations in the +background to supply readings at any time. It includes a programmable +calibration multiplier to scale the displayed current and power values. + + +Sysfs entries +------------- + +The INA209 chip is highly configurable both via hardwiring and via +the I2C bus. See the datasheet for details. + +This tries to expose most monitoring features of the hardware via +sysfs. It does not support every feature of this chip. + +======================= ======================================================= +in0_input shunt voltage (mV) +in0_input_highest shunt voltage historical maximum reading (mV) +in0_input_lowest shunt voltage historical minimum reading (mV) +in0_reset_history reset shunt voltage history +in0_max shunt voltage max alarm limit (mV) +in0_min shunt voltage min alarm limit (mV) +in0_crit_max shunt voltage crit max alarm limit (mV) +in0_crit_min shunt voltage crit min alarm limit (mV) +in0_max_alarm shunt voltage max alarm limit exceeded +in0_min_alarm shunt voltage min alarm limit exceeded +in0_crit_max_alarm shunt voltage crit max alarm limit exceeded +in0_crit_min_alarm shunt voltage crit min alarm limit exceeded + +in1_input bus voltage (mV) +in1_input_highest bus voltage historical maximum reading (mV) +in1_input_lowest bus voltage historical minimum reading (mV) +in1_reset_history reset bus voltage history +in1_max bus voltage max alarm limit (mV) +in1_min bus voltage min alarm limit (mV) +in1_crit_max bus voltage crit max alarm limit (mV) +in1_crit_min bus voltage crit min alarm limit (mV) +in1_max_alarm bus voltage max alarm limit exceeded +in1_min_alarm bus voltage min alarm limit exceeded +in1_crit_max_alarm bus voltage crit max alarm limit exceeded +in1_crit_min_alarm bus voltage crit min alarm limit exceeded + +power1_input power measurement (uW) +power1_input_highest power historical maximum reading (uW) +power1_reset_history reset power history +power1_max power max alarm limit (uW) +power1_crit power crit alarm limit (uW) +power1_max_alarm power max alarm limit exceeded +power1_crit_alarm power crit alarm limit exceeded + +curr1_input current measurement (mA) + +update_interval data conversion time; affects number of samples used + to average results for shunt and bus voltages. +======================= ======================================================= + +General Remarks +--------------- + +The power and current registers in this chip require that the calibration +register is programmed correctly before they are used. Normally this is expected +to be done in the BIOS. In the absence of BIOS programming, the shunt resistor +voltage can be provided using platform data. The driver uses platform data from +the ina2xx driver for this purpose. If calibration register data is not provided +via platform data, the driver checks if the calibration register has been +programmed (ie has a value not equal to zero). If so, this value is retained. +Otherwise, a default value reflecting a shunt resistor value of 10 mOhm is +programmed into the calibration register. + + +Output Pins +----------- + +Output pin programming is a board feature which depends on the BIOS. It is +outside the scope of a hardware monitoring driver to enable or disable output +pins. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/ina2xx.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/ina2xx.rst index 8610c7435..7f1939b40 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/ina2xx.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/ina2xx.rst @@ -1,127 +1,127 @@ -Kernel driver ina2xx -==================== - -Supported chips: - - * Texas Instruments INA219 - - - Prefix: 'ina219' - Addresses: I2C 0x40 - 0x4f - - Datasheet: Publicly available at the Texas Instruments website - - https://www.ti.com/ - - * Texas Instruments INA220 - - Prefix: 'ina220' - - Addresses: I2C 0x40 - 0x4f - - Datasheet: Publicly available at the Texas Instruments website - - https://www.ti.com/ - - * Texas Instruments INA226 - - Prefix: 'ina226' - - Addresses: I2C 0x40 - 0x4f - - Datasheet: Publicly available at the Texas Instruments website - - https://www.ti.com/ - - * Texas Instruments INA230 - - Prefix: 'ina230' - - Addresses: I2C 0x40 - 0x4f - - Datasheet: Publicly available at the Texas Instruments website - - https://www.ti.com/ - - * Texas Instruments INA231 - - Prefix: 'ina231' - - Addresses: I2C 0x40 - 0x4f - - Datasheet: Publicly available at the Texas Instruments website - - https://www.ti.com/ - -Author: Lothar Felten - -Description ------------ - -The INA219 is a high-side current shunt and power monitor with an I2C -interface. The INA219 monitors both shunt drop and supply voltage, with -programmable conversion times and filtering. - -The INA220 is a high or low side current shunt and power monitor with an I2C -interface. The INA220 monitors both shunt drop and supply voltage. - -The INA226 is a current shunt and power monitor with an I2C interface. -The INA226 monitors both a shunt voltage drop and bus supply voltage. - -INA230 and INA231 are high or low side current shunt and power monitors -with an I2C interface. The chips monitor both a shunt voltage drop and -bus supply voltage. - -The shunt value in micro-ohms can be set via platform data or device tree at -compile-time or via the shunt_resistor attribute in sysfs at run-time. Please -refer to the Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml for bindings -if the device tree is used. - -Additionally ina226 supports update_interval attribute as described in -Documentation/hwmon/sysfs-interface.rst. Internally the interval is the sum of -bus and shunt voltage conversion times multiplied by the averaging rate. We -don't touch the conversion times and only modify the number of averages. The -lower limit of the update_interval is 2 ms, the upper limit is 2253 ms. -The actual programmed interval may vary from the desired value. - -General sysfs entries ---------------------- - -======================= =============================== -in0_input Shunt voltage(mV) channel -in1_input Bus voltage(mV) channel -curr1_input Current(mA) measurement channel -power1_input Power(uW) measurement channel -shunt_resistor Shunt resistance(uOhm) channel -======================= =============================== - -Sysfs entries for ina226, ina230 and ina231 only ------------------------------------------------- - -======================= ==================================================== -curr1_lcrit Critical low current -curr1_crit Critical high current -curr1_lcrit_alarm Current critical low alarm -curr1_crit_alarm Current critical high alarm -in0_lcrit Critical low shunt voltage -in0_crit Critical high shunt voltage -in0_lcrit_alarm Shunt voltage critical low alarm -in0_crit_alarm Shunt voltage critical high alarm -in1_lcrit Critical low bus voltage -in1_crit Critical high bus voltage -in1_lcrit_alarm Bus voltage critical low alarm -in1_crit_alarm Bus voltage critical high alarm -power1_crit Critical high power -power1_crit_alarm Power critical high alarm -update_interval data conversion time; affects number of samples used - to average results for shunt and bus voltages. -======================= ==================================================== - -.. note:: - - - Configure `shunt_resistor` before configure `power1_crit`, because power - value is calculated based on `shunt_resistor` set. - - Because of the underlying register implementation, only one `*crit` setting - and its `alarm` can be active. Writing to one `*crit` setting clears other - `*crit` settings and alarms. Writing 0 to any `*crit` setting clears all - `*crit` settings and alarms. +Kernel driver ina2xx +==================== + +Supported chips: + + * Texas Instruments INA219 + + + Prefix: 'ina219' + Addresses: I2C 0x40 - 0x4f + + Datasheet: Publicly available at the Texas Instruments website + + https://www.ti.com/ + + * Texas Instruments INA220 + + Prefix: 'ina220' + + Addresses: I2C 0x40 - 0x4f + + Datasheet: Publicly available at the Texas Instruments website + + https://www.ti.com/ + + * Texas Instruments INA226 + + Prefix: 'ina226' + + Addresses: I2C 0x40 - 0x4f + + Datasheet: Publicly available at the Texas Instruments website + + https://www.ti.com/ + + * Texas Instruments INA230 + + Prefix: 'ina230' + + Addresses: I2C 0x40 - 0x4f + + Datasheet: Publicly available at the Texas Instruments website + + https://www.ti.com/ + + * Texas Instruments INA231 + + Prefix: 'ina231' + + Addresses: I2C 0x40 - 0x4f + + Datasheet: Publicly available at the Texas Instruments website + + https://www.ti.com/ + +Author: Lothar Felten + +Description +----------- + +The INA219 is a high-side current shunt and power monitor with an I2C +interface. The INA219 monitors both shunt drop and supply voltage, with +programmable conversion times and filtering. + +The INA220 is a high or low side current shunt and power monitor with an I2C +interface. The INA220 monitors both shunt drop and supply voltage. + +The INA226 is a current shunt and power monitor with an I2C interface. +The INA226 monitors both a shunt voltage drop and bus supply voltage. + +INA230 and INA231 are high or low side current shunt and power monitors +with an I2C interface. The chips monitor both a shunt voltage drop and +bus supply voltage. + +The shunt value in micro-ohms can be set via platform data or device tree at +compile-time or via the shunt_resistor attribute in sysfs at run-time. Please +refer to the Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml for bindings +if the device tree is used. + +Additionally ina226 supports update_interval attribute as described in +Documentation/hwmon/sysfs-interface.rst. Internally the interval is the sum of +bus and shunt voltage conversion times multiplied by the averaging rate. We +don't touch the conversion times and only modify the number of averages. The +lower limit of the update_interval is 2 ms, the upper limit is 2253 ms. +The actual programmed interval may vary from the desired value. + +General sysfs entries +--------------------- + +======================= =============================== +in0_input Shunt voltage(mV) channel +in1_input Bus voltage(mV) channel +curr1_input Current(mA) measurement channel +power1_input Power(uW) measurement channel +shunt_resistor Shunt resistance(uOhm) channel +======================= =============================== + +Sysfs entries for ina226, ina230 and ina231 only +------------------------------------------------ + +======================= ==================================================== +curr1_lcrit Critical low current +curr1_crit Critical high current +curr1_lcrit_alarm Current critical low alarm +curr1_crit_alarm Current critical high alarm +in0_lcrit Critical low shunt voltage +in0_crit Critical high shunt voltage +in0_lcrit_alarm Shunt voltage critical low alarm +in0_crit_alarm Shunt voltage critical high alarm +in1_lcrit Critical low bus voltage +in1_crit Critical high bus voltage +in1_lcrit_alarm Bus voltage critical low alarm +in1_crit_alarm Bus voltage critical high alarm +power1_crit Critical high power +power1_crit_alarm Power critical high alarm +update_interval data conversion time; affects number of samples used + to average results for shunt and bus voltages. +======================= ==================================================== + +.. note:: + + - Configure `shunt_resistor` before configure `power1_crit`, because power + value is calculated based on `shunt_resistor` set. + - Because of the underlying register implementation, only one `*crit` setting + and its `alarm` can be active. Writing to one `*crit` setting clears other + `*crit` settings and alarms. Writing 0 to any `*crit` setting clears all + `*crit` settings and alarms. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/jc42.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/jc42.rst index 9ddbd78f3..19d10512f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/jc42.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/jc42.rst @@ -1,152 +1,152 @@ -Kernel driver jc42 -================== - -Supported chips: - - * Analog Devices ADT7408 - - Datasheets: - - https://www.analog.com/static/imported-files/data_sheets/ADT7408.pdf - - * Atmel AT30TS00, AT30TS002A/B, AT30TSE004A - - Datasheets: - - http://www.atmel.com/Images/doc8585.pdf - - http://www.atmel.com/Images/doc8711.pdf - - http://www.atmel.com/Images/Atmel-8852-SEEPROM-AT30TSE002A-Datasheet.pdf - - http://www.atmel.com/Images/Atmel-8868-DTS-AT30TSE004A-Datasheet.pdf - - * IDT TSE2002B3, TSE2002GB2, TSE2004GB2, TS3000B3, TS3000GB0, TS3000GB2, - - TS3001GB2 - - Datasheets: - - Available from IDT web site - - * Maxim MAX6604 - - Datasheets: - - http://datasheets.maxim-ic.com/en/ds/MAX6604.pdf - - * Microchip MCP9804, MCP9805, MCP9808, MCP98242, MCP98243, MCP98244, MCP9843 - - Datasheets: - - https://ww1.microchip.com/downloads/en/DeviceDoc/22203C.pdf - - https://ww1.microchip.com/downloads/en/DeviceDoc/21977b.pdf - - https://ww1.microchip.com/downloads/en/DeviceDoc/25095A.pdf - - https://ww1.microchip.com/downloads/en/DeviceDoc/21996a.pdf - - https://ww1.microchip.com/downloads/en/DeviceDoc/22153c.pdf - - https://ww1.microchip.com/downloads/en/DeviceDoc/22327A.pdf - - * NXP Semiconductors SE97, SE97B, SE98, SE98A - - Datasheets: - - https://www.nxp.com/documents/data_sheet/SE97.pdf - - https://www.nxp.com/documents/data_sheet/SE97B.pdf - - https://www.nxp.com/documents/data_sheet/SE98.pdf - - https://www.nxp.com/documents/data_sheet/SE98A.pdf - - * ON Semiconductor CAT34TS02, CAT6095 - - Datasheet: - - https://www.onsemi.com/pub_link/Collateral/CAT34TS02-D.PDF - - https://www.onsemi.com/pub/Collateral/CAT6095-D.PDF - - * ST Microelectronics STTS424, STTS424E02, STTS2002, STTS2004, STTS3000 - - Datasheets: - - http://www.st.com/web/en/resource/technical/document/datasheet/CD00157556.pdf - - http://www.st.com/web/en/resource/technical/document/datasheet/CD00157558.pdf - - http://www.st.com/web/en/resource/technical/document/datasheet/CD00266638.pdf - - http://www.st.com/web/en/resource/technical/document/datasheet/CD00225278.pdf - - http://www.st.com/web/en/resource/technical/document/datasheet/DM00076709.pdf - - * JEDEC JC 42.4 compliant temperature sensor chips - - Datasheet: - - http://www.jedec.org/sites/default/files/docs/4_01_04R19.pdf - - - Common for all chips: - - Prefix: 'jc42' - - Addresses scanned: I2C 0x18 - 0x1f - -Author: - Guenter Roeck - - -Description ------------ - -This driver implements support for JEDEC JC 42.4 compliant temperature sensors, -which are used on many DDR3 memory modules for mobile devices and servers. Some -systems use the sensor to prevent memory overheating by automatically throttling -the memory controller. - -The driver auto-detects the chips listed above, but can be manually instantiated -to support other JC 42.4 compliant chips. - -Example: the following will load the driver for a generic JC 42.4 compliant -temperature sensor at address 0x18 on I2C bus #1:: - - # modprobe jc42 - # echo jc42 0x18 > /sys/bus/i2c/devices/i2c-1/new_device - -A JC 42.4 compliant chip supports a single temperature sensor. Minimum, maximum, -and critical temperature can be configured. There are alarms for high, low, -and critical thresholds. - -There is also an hysteresis to control the thresholds for resetting alarms. -Per JC 42.4 specification, the hysteresis threshold can be configured to 0, 1.5, -3.0, and 6.0 degrees C. Configured hysteresis values will be rounded to those -limits. The chip supports only a single register to configure the hysteresis, -which applies to all limits. This register can be written by writing into -temp1_crit_hyst. Other hysteresis attributes are read-only. - -If the BIOS has configured the sensor for automatic temperature management, it -is likely that it has locked the registers, i.e., that the temperature limits -cannot be changed. - -Sysfs entries -------------- - -======================= =========================================== -temp1_input Temperature (RO) -temp1_min Minimum temperature (RO or RW) -temp1_max Maximum temperature (RO or RW) -temp1_crit Critical high temperature (RO or RW) - -temp1_crit_hyst Critical hysteresis temperature (RO or RW) -temp1_max_hyst Maximum hysteresis temperature (RO) - -temp1_min_alarm Temperature low alarm -temp1_max_alarm Temperature high alarm -temp1_crit_alarm Temperature critical alarm -======================= =========================================== +Kernel driver jc42 +================== + +Supported chips: + + * Analog Devices ADT7408 + + Datasheets: + + https://www.analog.com/static/imported-files/data_sheets/ADT7408.pdf + + * Atmel AT30TS00, AT30TS002A/B, AT30TSE004A + + Datasheets: + + http://www.atmel.com/Images/doc8585.pdf + + http://www.atmel.com/Images/doc8711.pdf + + http://www.atmel.com/Images/Atmel-8852-SEEPROM-AT30TSE002A-Datasheet.pdf + + http://www.atmel.com/Images/Atmel-8868-DTS-AT30TSE004A-Datasheet.pdf + + * IDT TSE2002B3, TSE2002GB2, TSE2004GB2, TS3000B3, TS3000GB0, TS3000GB2, + + TS3001GB2 + + Datasheets: + + Available from IDT web site + + * Maxim MAX6604 + + Datasheets: + + http://datasheets.maxim-ic.com/en/ds/MAX6604.pdf + + * Microchip MCP9804, MCP9805, MCP9808, MCP98242, MCP98243, MCP98244, MCP9843 + + Datasheets: + + https://ww1.microchip.com/downloads/en/DeviceDoc/22203C.pdf + + https://ww1.microchip.com/downloads/en/DeviceDoc/21977b.pdf + + https://ww1.microchip.com/downloads/en/DeviceDoc/25095A.pdf + + https://ww1.microchip.com/downloads/en/DeviceDoc/21996a.pdf + + https://ww1.microchip.com/downloads/en/DeviceDoc/22153c.pdf + + https://ww1.microchip.com/downloads/en/DeviceDoc/22327A.pdf + + * NXP Semiconductors SE97, SE97B, SE98, SE98A + + Datasheets: + + https://www.nxp.com/documents/data_sheet/SE97.pdf + + https://www.nxp.com/documents/data_sheet/SE97B.pdf + + https://www.nxp.com/documents/data_sheet/SE98.pdf + + https://www.nxp.com/documents/data_sheet/SE98A.pdf + + * ON Semiconductor CAT34TS02, CAT6095 + + Datasheet: + + https://www.onsemi.com/pub_link/Collateral/CAT34TS02-D.PDF + + https://www.onsemi.com/pub/Collateral/CAT6095-D.PDF + + * ST Microelectronics STTS424, STTS424E02, STTS2002, STTS2004, STTS3000 + + Datasheets: + + http://www.st.com/web/en/resource/technical/document/datasheet/CD00157556.pdf + + http://www.st.com/web/en/resource/technical/document/datasheet/CD00157558.pdf + + http://www.st.com/web/en/resource/technical/document/datasheet/CD00266638.pdf + + http://www.st.com/web/en/resource/technical/document/datasheet/CD00225278.pdf + + http://www.st.com/web/en/resource/technical/document/datasheet/DM00076709.pdf + + * JEDEC JC 42.4 compliant temperature sensor chips + + Datasheet: + + http://www.jedec.org/sites/default/files/docs/4_01_04R19.pdf + + + Common for all chips: + + Prefix: 'jc42' + + Addresses scanned: I2C 0x18 - 0x1f + +Author: + Guenter Roeck + + +Description +----------- + +This driver implements support for JEDEC JC 42.4 compliant temperature sensors, +which are used on many DDR3 memory modules for mobile devices and servers. Some +systems use the sensor to prevent memory overheating by automatically throttling +the memory controller. + +The driver auto-detects the chips listed above, but can be manually instantiated +to support other JC 42.4 compliant chips. + +Example: the following will load the driver for a generic JC 42.4 compliant +temperature sensor at address 0x18 on I2C bus #1:: + + # modprobe jc42 + # echo jc42 0x18 > /sys/bus/i2c/devices/i2c-1/new_device + +A JC 42.4 compliant chip supports a single temperature sensor. Minimum, maximum, +and critical temperature can be configured. There are alarms for high, low, +and critical thresholds. + +There is also an hysteresis to control the thresholds for resetting alarms. +Per JC 42.4 specification, the hysteresis threshold can be configured to 0, 1.5, +3.0, and 6.0 degrees C. Configured hysteresis values will be rounded to those +limits. The chip supports only a single register to configure the hysteresis, +which applies to all limits. This register can be written by writing into +temp1_crit_hyst. Other hysteresis attributes are read-only. + +If the BIOS has configured the sensor for automatic temperature management, it +is likely that it has locked the registers, i.e., that the temperature limits +cannot be changed. + +Sysfs entries +------------- + +======================= =========================================== +temp1_input Temperature (RO) +temp1_min Minimum temperature (RO or RW) +temp1_max Maximum temperature (RO or RW) +temp1_crit Critical high temperature (RO or RW) + +temp1_crit_hyst Critical hysteresis temperature (RO or RW) +temp1_max_hyst Maximum hysteresis temperature (RO) + +temp1_min_alarm Temperature low alarm +temp1_max_alarm Temperature high alarm +temp1_crit_alarm Temperature critical alarm +======================= =========================================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/lm25066.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/lm25066.rst index f04775a13..a2098eb24 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/lm25066.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/lm25066.rst @@ -1,139 +1,139 @@ -Kernel driver lm25066 -===================== - -Supported chips: - - * TI LM25056 - - Prefix: 'lm25056' - - Addresses scanned: - - - Datasheets: - - https://www.ti.com/lit/gpn/lm25056 - - https://www.ti.com/lit/gpn/lm25056a - - * National Semiconductor LM25066 - - Prefix: 'lm25066' - - Addresses scanned: - - - Datasheets: - - http://www.national.com/pf/LM/LM25066.html - - http://www.national.com/pf/LM/LM25066A.html - - * National Semiconductor LM5064 - - Prefix: 'lm5064' - - Addresses scanned: - - - Datasheet: - - http://www.national.com/pf/LM/LM5064.html - - * National Semiconductor LM5066 - - Prefix: 'lm5066' - - Addresses scanned: - - - Datasheet: - - http://www.national.com/pf/LM/LM5066.html - - * Texas Instruments LM5066I - - Prefix: 'lm5066i' - - Addresses scanned: - - - Datasheet: - - https://www.ti.com/product/LM5066I - - -Author: Guenter Roeck - - -Description ------------ - -This driver supports hardware monitoring for National Semiconductor / TI LM25056, -LM25066, LM5064, and LM5066/LM5066I Power Management, Monitoring, -Control, and Protection ICs. - -The driver is a client driver to the core PMBus driver. Please see -Documentation/hwmon/pmbus.rst for details on PMBus client drivers. - - -Usage Notes ------------ - -This driver does not auto-detect devices. You will have to instantiate the -devices explicitly. Please see Documentation/i2c/instantiating-devices.rst for -details. - -The shunt (sense) resistor value can be configured by a device tree property; -see Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml for details. - -Platform data support ---------------------- - -The driver supports standard PMBus driver platform data. - - -Sysfs entries -------------- - -The following attributes are supported. Limits are read-write; all other -attributes are read-only. - -======================= ======================================================= -in1_label "vin" -in1_input Measured input voltage. -in1_average Average measured input voltage. -in1_min Minimum input voltage. -in1_max Maximum input voltage. -in1_min_alarm Input voltage low alarm. -in1_max_alarm Input voltage high alarm. - -in2_label "vmon" -in2_input Measured voltage on VAUX pin -in2_min Minimum VAUX voltage (LM25056 only). -in2_max Maximum VAUX voltage (LM25056 only). -in2_min_alarm VAUX voltage low alarm (LM25056 only). -in2_max_alarm VAUX voltage high alarm (LM25056 only). - -in3_label "vout1" - Not supported on LM25056. -in3_input Measured output voltage. -in3_average Average measured output voltage. -in3_min Minimum output voltage. -in3_min_alarm Output voltage low alarm. - -curr1_label "iin" -curr1_input Measured input current. -curr1_average Average measured input current. -curr1_max Maximum input current. -curr1_max_alarm Input current high alarm. - -power1_label "pin" -power1_input Measured input power. -power1_average Average measured input power. -power1_max Maximum input power limit. -power1_alarm Input power alarm -power1_input_highest Historical maximum power. -power1_reset_history Write any value to reset maximum power history. - -temp1_input Measured temperature. -temp1_max Maximum temperature. -temp1_crit Critical high temperature. -temp1_max_alarm Chip temperature high alarm. -temp1_crit_alarm Chip temperature critical high alarm. -======================= ======================================================= +Kernel driver lm25066 +===================== + +Supported chips: + + * TI LM25056 + + Prefix: 'lm25056' + + Addresses scanned: - + + Datasheets: + + https://www.ti.com/lit/gpn/lm25056 + + https://www.ti.com/lit/gpn/lm25056a + + * National Semiconductor LM25066 + + Prefix: 'lm25066' + + Addresses scanned: - + + Datasheets: + + http://www.national.com/pf/LM/LM25066.html + + http://www.national.com/pf/LM/LM25066A.html + + * National Semiconductor LM5064 + + Prefix: 'lm5064' + + Addresses scanned: - + + Datasheet: + + http://www.national.com/pf/LM/LM5064.html + + * National Semiconductor LM5066 + + Prefix: 'lm5066' + + Addresses scanned: - + + Datasheet: + + http://www.national.com/pf/LM/LM5066.html + + * Texas Instruments LM5066I + + Prefix: 'lm5066i' + + Addresses scanned: - + + Datasheet: + + https://www.ti.com/product/LM5066I + + +Author: Guenter Roeck + + +Description +----------- + +This driver supports hardware monitoring for National Semiconductor / TI LM25056, +LM25066, LM5064, and LM5066/LM5066I Power Management, Monitoring, +Control, and Protection ICs. + +The driver is a client driver to the core PMBus driver. Please see +Documentation/hwmon/pmbus.rst for details on PMBus client drivers. + + +Usage Notes +----------- + +This driver does not auto-detect devices. You will have to instantiate the +devices explicitly. Please see Documentation/i2c/instantiating-devices.rst for +details. + +The shunt (sense) resistor value can be configured by a device tree property; +see Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml for details. + +Platform data support +--------------------- + +The driver supports standard PMBus driver platform data. + + +Sysfs entries +------------- + +The following attributes are supported. Limits are read-write; all other +attributes are read-only. + +======================= ======================================================= +in1_label "vin" +in1_input Measured input voltage. +in1_average Average measured input voltage. +in1_min Minimum input voltage. +in1_max Maximum input voltage. +in1_min_alarm Input voltage low alarm. +in1_max_alarm Input voltage high alarm. + +in2_label "vmon" +in2_input Measured voltage on VAUX pin +in2_min Minimum VAUX voltage (LM25056 only). +in2_max Maximum VAUX voltage (LM25056 only). +in2_min_alarm VAUX voltage low alarm (LM25056 only). +in2_max_alarm VAUX voltage high alarm (LM25056 only). + +in3_label "vout1" + Not supported on LM25056. +in3_input Measured output voltage. +in3_average Average measured output voltage. +in3_min Minimum output voltage. +in3_min_alarm Output voltage low alarm. + +curr1_label "iin" +curr1_input Measured input current. +curr1_average Average measured input current. +curr1_max Maximum input current. +curr1_max_alarm Input current high alarm. + +power1_label "pin" +power1_input Measured input power. +power1_average Average measured input power. +power1_max Maximum input power limit. +power1_alarm Input power alarm +power1_input_highest Historical maximum power. +power1_reset_history Write any value to reset maximum power history. + +temp1_input Measured temperature. +temp1_max Maximum temperature. +temp1_crit Critical high temperature. +temp1_max_alarm Chip temperature high alarm. +temp1_crit_alarm Chip temperature critical high alarm. +======================= ======================================================= diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/lm63.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/lm63.rst index ef1cc8197..9e27367d7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/lm63.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/lm63.rst @@ -1,95 +1,95 @@ -Kernel driver lm63 -================== - -Supported chips: - - * National Semiconductor LM63 - - Prefix: 'lm63' - - Addresses scanned: I2C 0x4c - - Datasheet: Publicly available at the National Semiconductor website - - http://www.national.com/pf/LM/LM63.html - - * National Semiconductor LM64 - - Prefix: 'lm64' - - Addresses scanned: I2C 0x18 and 0x4e - - Datasheet: Publicly available at the National Semiconductor website - - http://www.national.com/pf/LM/LM64.html - - * National Semiconductor LM96163 - - Prefix: 'lm96163' - - Addresses scanned: I2C 0x4c - - Datasheet: Publicly available at the National Semiconductor website - - http://www.national.com/pf/LM/LM96163.html - - -Author: Jean Delvare - -Thanks go to Tyan and especially Alex Buckingham for setting up a remote -access to their S4882 test platform for this driver. - - https://www.tyan.com/ - -Description ------------ - -The LM63 is a digital temperature sensor with integrated fan monitoring -and control. - -The LM63 is basically an LM86 with fan speed monitoring and control -capabilities added. It misses some of the LM86 features though: - - - No low limit for local temperature. - - No critical limit for local temperature. - - Critical limit for remote temperature can be changed only once. We - will consider that the critical limit is read-only. - -The datasheet isn't very clear about what the tachometer reading is. - -An explanation from National Semiconductor: The two lower bits of the read -value have to be masked out. The value is still 16 bit in width. - -All temperature values are given in degrees Celsius. Resolution is 1.0 -degree for the local temperature, 0.125 degree for the remote temperature. - -The fan speed is measured using a tachometer. Contrary to most chips which -store the value in an 8-bit register and have a selectable clock divider -to make sure that the result will fit in the register, the LM63 uses 16-bit -value for measuring the speed of the fan. It can measure fan speeds down to -83 RPM, at least in theory. - -Note that the pin used for fan monitoring is shared with an alert out -function. Depending on how the board designer wanted to use the chip, fan -speed monitoring will or will not be possible. The proper chip configuration -is left to the BIOS, and the driver will blindly trust it. Only the original -LM63 suffers from this limitation, the LM64 and LM96163 have separate pins -for fan monitoring and alert out. On the LM64, monitoring is always enabled; -on the LM96163 it can be disabled. - -A PWM output can be used to control the speed of the fan. The LM63 has two -PWM modes: manual and automatic. Automatic mode is not fully implemented yet -(you cannot define your custom PWM/temperature curve), and mode change isn't -supported either. - -The lm63 driver will not update its values more frequently than configured with -the update_interval sysfs attribute; reading them more often will do no harm, -but will return 'old' values. Values in the automatic fan control lookup table -(attributes pwm1_auto_*) have their own independent lifetime of 5 seconds. - -The LM64 is effectively an LM63 with GPIO lines. The driver does not -support these GPIO lines at present. - -The LM96163 is an enhanced version of LM63 with improved temperature accuracy -and better PWM resolution. For LM96163, the external temperature sensor type is -configurable as CPU embedded diode(1) or 3904 transistor(2). +Kernel driver lm63 +================== + +Supported chips: + + * National Semiconductor LM63 + + Prefix: 'lm63' + + Addresses scanned: I2C 0x4c + + Datasheet: Publicly available at the National Semiconductor website + + http://www.national.com/pf/LM/LM63.html + + * National Semiconductor LM64 + + Prefix: 'lm64' + + Addresses scanned: I2C 0x18 and 0x4e + + Datasheet: Publicly available at the National Semiconductor website + + http://www.national.com/pf/LM/LM64.html + + * National Semiconductor LM96163 + + Prefix: 'lm96163' + + Addresses scanned: I2C 0x4c + + Datasheet: Publicly available at the National Semiconductor website + + http://www.national.com/pf/LM/LM96163.html + + +Author: Jean Delvare + +Thanks go to Tyan and especially Alex Buckingham for setting up a remote +access to their S4882 test platform for this driver. + + https://www.tyan.com/ + +Description +----------- + +The LM63 is a digital temperature sensor with integrated fan monitoring +and control. + +The LM63 is basically an LM86 with fan speed monitoring and control +capabilities added. It misses some of the LM86 features though: + + - No low limit for local temperature. + - No critical limit for local temperature. + - Critical limit for remote temperature can be changed only once. We + will consider that the critical limit is read-only. + +The datasheet isn't very clear about what the tachometer reading is. + +An explanation from National Semiconductor: The two lower bits of the read +value have to be masked out. The value is still 16 bit in width. + +All temperature values are given in degrees Celsius. Resolution is 1.0 +degree for the local temperature, 0.125 degree for the remote temperature. + +The fan speed is measured using a tachometer. Contrary to most chips which +store the value in an 8-bit register and have a selectable clock divider +to make sure that the result will fit in the register, the LM63 uses 16-bit +value for measuring the speed of the fan. It can measure fan speeds down to +83 RPM, at least in theory. + +Note that the pin used for fan monitoring is shared with an alert out +function. Depending on how the board designer wanted to use the chip, fan +speed monitoring will or will not be possible. The proper chip configuration +is left to the BIOS, and the driver will blindly trust it. Only the original +LM63 suffers from this limitation, the LM64 and LM96163 have separate pins +for fan monitoring and alert out. On the LM64, monitoring is always enabled; +on the LM96163 it can be disabled. + +A PWM output can be used to control the speed of the fan. The LM63 has two +PWM modes: manual and automatic. Automatic mode is not fully implemented yet +(you cannot define your custom PWM/temperature curve), and mode change isn't +supported either. + +The lm63 driver will not update its values more frequently than configured with +the update_interval sysfs attribute; reading them more often will do no harm, +but will return 'old' values. Values in the automatic fan control lookup table +(attributes pwm1_auto_*) have their own independent lifetime of 5 seconds. + +The LM64 is effectively an LM63 with GPIO lines. The driver does not +support these GPIO lines at present. + +The LM96163 is an enhanced version of LM63 with improved temperature accuracy +and better PWM resolution. For LM96163, the external temperature sensor type is +configurable as CPU embedded diode(1) or 3904 transistor(2). diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/lm83.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/lm83.rst index 5e58c87ec..ecf838199 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/lm83.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/lm83.rst @@ -1,97 +1,97 @@ -Kernel driver lm83 -================== - -Supported chips: - - * National Semiconductor LM83 - - Prefix: 'lm83' - - Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e - - Datasheet: Publicly available at the National Semiconductor website - - http://www.national.com/pf/LM/LM83.html - - * National Semiconductor LM82 - - Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e - - Datasheet: Publicly available at the National Semiconductor website - - http://www.national.com/pf/LM/LM82.html - -Author: Jean Delvare - -Description ------------ - -The LM83 is a digital temperature sensor. It senses its own temperature as -well as the temperature of up to three external diodes. The LM82 is -a stripped down version of the LM83 that only supports one external diode. -Both are compatible with many other devices such as the LM84 and all -other ADM1021 clones. The main difference between the LM83 and the LM84 -in that the later can only sense the temperature of one external diode. - -Using the adm1021 driver for a LM83 should work, but only two temperatures -will be reported instead of four. - -The LM83 is only found on a handful of motherboards. Both a confirmed -list and an unconfirmed list follow. If you can confirm or infirm the -fact that any of these motherboards do actually have an LM83, please -contact us. Note that the LM90 can easily be misdetected as a LM83. - -Confirmed motherboards: - === ===== - SBS P014 - SBS PSL09 - === ===== - -Unconfirmed motherboards: - =========== ========== - Gigabyte GA-8IK1100 - Iwill MPX2 - Soltek SL-75DRV5 - =========== ========== - -The LM82 is confirmed to have been found on most AMD Geode reference -designs and test platforms. - -The driver has been successfully tested by Magnus Forsström, who I'd -like to thank here. More testers will be of course welcome. - -The fact that the LM83 is only scarcely used can be easily explained. -Most motherboards come with more than just temperature sensors for -health monitoring. They also have voltage and fan rotation speed -sensors. This means that temperature-only chips are usually used as -secondary chips coupled with another chip such as an IT8705F or similar -chip, which provides more features. Since systems usually need three -temperature sensors (motherboard, processor, power supply) and primary -chips provide some temperature sensors, the secondary chip, if needed, -won't have to handle more than two temperatures. Thus, ADM1021 clones -are sufficient, and there is no need for a four temperatures sensor -chip such as the LM83. The only case where using an LM83 would make -sense is on SMP systems, such as the above-mentioned Iwill MPX2, -because you want an additional temperature sensor for each additional -CPU. - -On the SBS P014, this is different, since the LM83 is the only hardware -monitoring chipset. One temperature sensor is used for the motherboard -(actually measuring the LM83's own temperature), one is used for the -CPU. The two other sensors must be used to measure the temperature of -two other points of the motherboard. We suspect these points to be the -north and south bridges, but this couldn't be confirmed. - -All temperature values are given in degrees Celsius. Local temperature -is given within a range of 0 to +85 degrees. Remote temperatures are -given within a range of 0 to +125 degrees. Resolution is 1.0 degree, -accuracy is guaranteed to 3.0 degrees (see the datasheet for more -details). - -Each sensor has its own high limit, but the critical limit is common to -all four sensors. There is no hysteresis mechanism as found on most -recent temperature sensors. - -The lm83 driver will not update its values more frequently than every -other second; reading them more often will do no harm, but will return -'old' values. +Kernel driver lm83 +================== + +Supported chips: + + * National Semiconductor LM83 + + Prefix: 'lm83' + + Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e + + Datasheet: Publicly available at the National Semiconductor website + + http://www.national.com/pf/LM/LM83.html + + * National Semiconductor LM82 + + Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e + + Datasheet: Publicly available at the National Semiconductor website + + http://www.national.com/pf/LM/LM82.html + +Author: Jean Delvare + +Description +----------- + +The LM83 is a digital temperature sensor. It senses its own temperature as +well as the temperature of up to three external diodes. The LM82 is +a stripped down version of the LM83 that only supports one external diode. +Both are compatible with many other devices such as the LM84 and all +other ADM1021 clones. The main difference between the LM83 and the LM84 +in that the later can only sense the temperature of one external diode. + +Using the adm1021 driver for a LM83 should work, but only two temperatures +will be reported instead of four. + +The LM83 is only found on a handful of motherboards. Both a confirmed +list and an unconfirmed list follow. If you can confirm or infirm the +fact that any of these motherboards do actually have an LM83, please +contact us. Note that the LM90 can easily be misdetected as a LM83. + +Confirmed motherboards: + === ===== + SBS P014 + SBS PSL09 + === ===== + +Unconfirmed motherboards: + =========== ========== + Gigabyte GA-8IK1100 + Iwill MPX2 + Soltek SL-75DRV5 + =========== ========== + +The LM82 is confirmed to have been found on most AMD Geode reference +designs and test platforms. + +The driver has been successfully tested by Magnus Forsström, who I'd +like to thank here. More testers will be of course welcome. + +The fact that the LM83 is only scarcely used can be easily explained. +Most motherboards come with more than just temperature sensors for +health monitoring. They also have voltage and fan rotation speed +sensors. This means that temperature-only chips are usually used as +secondary chips coupled with another chip such as an IT8705F or similar +chip, which provides more features. Since systems usually need three +temperature sensors (motherboard, processor, power supply) and primary +chips provide some temperature sensors, the secondary chip, if needed, +won't have to handle more than two temperatures. Thus, ADM1021 clones +are sufficient, and there is no need for a four temperatures sensor +chip such as the LM83. The only case where using an LM83 would make +sense is on SMP systems, such as the above-mentioned Iwill MPX2, +because you want an additional temperature sensor for each additional +CPU. + +On the SBS P014, this is different, since the LM83 is the only hardware +monitoring chipset. One temperature sensor is used for the motherboard +(actually measuring the LM83's own temperature), one is used for the +CPU. The two other sensors must be used to measure the temperature of +two other points of the motherboard. We suspect these points to be the +north and south bridges, but this couldn't be confirmed. + +All temperature values are given in degrees Celsius. Local temperature +is given within a range of 0 to +85 degrees. Remote temperatures are +given within a range of 0 to +125 degrees. Resolution is 1.0 degree, +accuracy is guaranteed to 3.0 degrees (see the datasheet for more +details). + +Each sensor has its own high limit, but the critical limit is common to +all four sensors. There is no hysteresis mechanism as found on most +recent temperature sensors. + +The lm83 driver will not update its values more frequently than every +other second; reading them more often will do no harm, but will return +'old' values. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/lochnagar.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/lochnagar.rst index c1ee9f2e8..1d609c4d1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/lochnagar.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/lochnagar.rst @@ -1,83 +1,83 @@ -Kernel Driver Lochnagar -======================= - -Supported systems: - * Cirrus Logic : Lochnagar 2 - -Author: Lucas A. Tanure Alves - -Description ------------ - -Lochnagar 2 features built-in Current Monitor circuitry that allows for the -measurement of both voltage and current on up to eight of the supply voltage -rails provided to the minicards. The Current Monitor does not require any -hardware modifications or external circuitry to operate. - -The current and voltage measurements are obtained through the standard register -map interface to the Lochnagar board controller, and can therefore be monitored -by software. - -Sysfs attributes ----------------- - -======================= ======================================================= -temp1_input The Lochnagar board temperature (milliCelsius) -in0_input Measured voltage for DBVDD1 (milliVolts) -in0_label "DBVDD1" -curr1_input Measured current for DBVDD1 (milliAmps) -curr1_label "DBVDD1" -power1_average Measured average power for DBVDD1 (microWatts) -power1_average_interval Power averaging time input valid from 1 to 1708mS -power1_label "DBVDD1" -in1_input Measured voltage for 1V8 DSP (milliVolts) -in1_label "1V8 DSP" -curr2_input Measured current for 1V8 DSP (milliAmps) -curr2_label "1V8 DSP" -power2_average Measured average power for 1V8 DSP (microWatts) -power2_average_interval Power averaging time input valid from 1 to 1708mS -power2_label "1V8 DSP" -in2_input Measured voltage for 1V8 CDC (milliVolts) -in2_label "1V8 CDC" -curr3_input Measured current for 1V8 CDC (milliAmps) -curr3_label "1V8 CDC" -power3_average Measured average power for 1V8 CDC (microWatts) -power3_average_interval Power averaging time input valid from 1 to 1708mS -power3_label "1V8 CDC" -in3_input Measured voltage for VDDCORE DSP (milliVolts) -in3_label "VDDCORE DSP" -curr4_input Measured current for VDDCORE DSP (milliAmps) -curr4_label "VDDCORE DSP" -power4_average Measured average power for VDDCORE DSP (microWatts) -power4_average_interval Power averaging time input valid from 1 to 1708mS -power4_label "VDDCORE DSP" -in4_input Measured voltage for AVDD 1V8 (milliVolts) -in4_label "AVDD 1V8" -curr5_input Measured current for AVDD 1V8 (milliAmps) -curr5_label "AVDD 1V8" -power5_average Measured average power for AVDD 1V8 (microWatts) -power5_average_interval Power averaging time input valid from 1 to 1708mS -power5_label "AVDD 1V8" -curr6_input Measured current for SYSVDD (milliAmps) -curr6_label "SYSVDD" -power6_average Measured average power for SYSVDD (microWatts) -power6_average_interval Power averaging time input valid from 1 to 1708mS -power6_label "SYSVDD" -in6_input Measured voltage for VDDCORE CDC (milliVolts) -in6_label "VDDCORE CDC" -curr7_input Measured current for VDDCORE CDC (milliAmps) -curr7_label "VDDCORE CDC" -power7_average Measured average power for VDDCORE CDC (microWatts) -power7_average_interval Power averaging time input valid from 1 to 1708mS -power7_label "VDDCORE CDC" -in7_input Measured voltage for MICVDD (milliVolts) -in7_label "MICVDD" -curr8_input Measured current for MICVDD (milliAmps) -curr8_label "MICVDD" -power8_average Measured average power for MICVDD (microWatts) -power8_average_interval Power averaging time input valid from 1 to 1708mS -power8_label "MICVDD" -======================= ======================================================= - -Note: - It is not possible to measure voltage on the SYSVDD rail. +Kernel Driver Lochnagar +======================= + +Supported systems: + * Cirrus Logic : Lochnagar 2 + +Author: Lucas A. Tanure Alves + +Description +----------- + +Lochnagar 2 features built-in Current Monitor circuitry that allows for the +measurement of both voltage and current on up to eight of the supply voltage +rails provided to the minicards. The Current Monitor does not require any +hardware modifications or external circuitry to operate. + +The current and voltage measurements are obtained through the standard register +map interface to the Lochnagar board controller, and can therefore be monitored +by software. + +Sysfs attributes +---------------- + +======================= ======================================================= +temp1_input The Lochnagar board temperature (milliCelsius) +in0_input Measured voltage for DBVDD1 (milliVolts) +in0_label "DBVDD1" +curr1_input Measured current for DBVDD1 (milliAmps) +curr1_label "DBVDD1" +power1_average Measured average power for DBVDD1 (microWatts) +power1_average_interval Power averaging time input valid from 1 to 1708mS +power1_label "DBVDD1" +in1_input Measured voltage for 1V8 DSP (milliVolts) +in1_label "1V8 DSP" +curr2_input Measured current for 1V8 DSP (milliAmps) +curr2_label "1V8 DSP" +power2_average Measured average power for 1V8 DSP (microWatts) +power2_average_interval Power averaging time input valid from 1 to 1708mS +power2_label "1V8 DSP" +in2_input Measured voltage for 1V8 CDC (milliVolts) +in2_label "1V8 CDC" +curr3_input Measured current for 1V8 CDC (milliAmps) +curr3_label "1V8 CDC" +power3_average Measured average power for 1V8 CDC (microWatts) +power3_average_interval Power averaging time input valid from 1 to 1708mS +power3_label "1V8 CDC" +in3_input Measured voltage for VDDCORE DSP (milliVolts) +in3_label "VDDCORE DSP" +curr4_input Measured current for VDDCORE DSP (milliAmps) +curr4_label "VDDCORE DSP" +power4_average Measured average power for VDDCORE DSP (microWatts) +power4_average_interval Power averaging time input valid from 1 to 1708mS +power4_label "VDDCORE DSP" +in4_input Measured voltage for AVDD 1V8 (milliVolts) +in4_label "AVDD 1V8" +curr5_input Measured current for AVDD 1V8 (milliAmps) +curr5_label "AVDD 1V8" +power5_average Measured average power for AVDD 1V8 (microWatts) +power5_average_interval Power averaging time input valid from 1 to 1708mS +power5_label "AVDD 1V8" +curr6_input Measured current for SYSVDD (milliAmps) +curr6_label "SYSVDD" +power6_average Measured average power for SYSVDD (microWatts) +power6_average_interval Power averaging time input valid from 1 to 1708mS +power6_label "SYSVDD" +in6_input Measured voltage for VDDCORE CDC (milliVolts) +in6_label "VDDCORE CDC" +curr7_input Measured current for VDDCORE CDC (milliAmps) +curr7_label "VDDCORE CDC" +power7_average Measured average power for VDDCORE CDC (microWatts) +power7_average_interval Power averaging time input valid from 1 to 1708mS +power7_label "VDDCORE CDC" +in7_input Measured voltage for MICVDD (milliVolts) +in7_label "MICVDD" +curr8_input Measured current for MICVDD (milliAmps) +curr8_label "MICVDD" +power8_average Measured average power for MICVDD (microWatts) +power8_average_interval Power averaging time input valid from 1 to 1708mS +power8_label "MICVDD" +======================= ======================================================= + +Note: + It is not possible to measure voltage on the SYSVDD rail. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/ltc2947.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/ltc2947.rst index 3a4fde546..419fc84fe 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/ltc2947.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/ltc2947.rst @@ -1,100 +1,100 @@ -Kernel drivers ltc2947-i2c and ltc2947-spi -========================================== - -Supported chips: - - * Analog Devices LTC2947 - - Prefix: 'ltc2947' - - Addresses scanned: - - - Datasheet: - - https://www.analog.com/media/en/technical-documentation/data-sheets/LTC2947.pdf - -Author: Nuno Sá - -Description -___________ - -The LTC2947 is a high precision power and energy monitor that measures current, -voltage, power, temperature, charge and energy. The device supports both SPI -and I2C depending on the chip configuration. -The device also measures accumulated quantities as energy. It has two banks of -register's to read/set energy related values. These banks can be configured -independently to have setups like: energy1 accumulates always and enrgy2 only -accumulates if current is positive (to check battery charging efficiency for -example). The device also supports a GPIO pin that can be configured as output -to control a fan as a function of measured temperature. Then, the GPIO becomes -active as soon as a temperature reading is higher than a defined threshold. The -temp2 channel is used to control this thresholds and to read the respective -alarms. - -Sysfs entries -_____________ - -The following attributes are supported. Limits are read-write, reset_history -is write-only and all the other attributes are read-only. - -======================= ========================================== -in0_input VP-VM voltage (mV). -in0_min Undervoltage threshold -in0_max Overvoltage threshold -in0_lowest Lowest measured voltage -in0_highest Highest measured voltage -in0_reset_history Write 1 to reset in1 history -in0_min_alarm Undervoltage alarm -in0_max_alarm Overvoltage alarm -in0_label Channel label (VP-VM) - -in1_input DVCC voltage (mV) -in1_min Undervoltage threshold -in1_max Overvoltage threshold -in1_lowest Lowest measured voltage -in1_highest Highest measured voltage -in1_reset_history Write 1 to reset in2 history -in1_min_alarm Undervoltage alarm -in1_max_alarm Overvoltage alarm -in1_label Channel label (DVCC) - -curr1_input IP-IM Sense current (mA) -curr1_min Undercurrent threshold -curr1_max Overcurrent threshold -curr1_lowest Lowest measured current -curr1_highest Highest measured current -curr1_reset_history Write 1 to reset curr1 history -curr1_min_alarm Undercurrent alarm -curr1_max_alarm Overcurrent alarm -curr1_label Channel label (IP-IM) - -power1_input Power (in uW) -power1_min Low power threshold -power1_max High power threshold -power1_input_lowest Historical minimum power use -power1_input_highest Historical maximum power use -power1_reset_history Write 1 to reset power1 history -power1_min_alarm Low power alarm -power1_max_alarm High power alarm -power1_label Channel label (Power) - -temp1_input Chip Temperature (in milliC) -temp1_min Low temperature threshold -temp1_max High temperature threshold -temp1_input_lowest Historical minimum temperature use -temp1_input_highest Historical maximum temperature use -temp1_reset_history Write 1 to reset temp1 history -temp1_min_alarm Low temperature alarm -temp1_max_alarm High temperature alarm -temp1_label Channel label (Ambient) - -temp2_min Low temperature threshold for fan control -temp2_max High temperature threshold for fan control -temp2_min_alarm Low temperature fan control alarm -temp2_max_alarm High temperature fan control alarm -temp2_label Channel label (TEMPFAN) - -energy1_input Measured energy over time (in microJoule) - -energy2_input Measured energy over time (in microJoule) -======================= ========================================== +Kernel drivers ltc2947-i2c and ltc2947-spi +========================================== + +Supported chips: + + * Analog Devices LTC2947 + + Prefix: 'ltc2947' + + Addresses scanned: - + + Datasheet: + + https://www.analog.com/media/en/technical-documentation/data-sheets/LTC2947.pdf + +Author: Nuno Sá + +Description +___________ + +The LTC2947 is a high precision power and energy monitor that measures current, +voltage, power, temperature, charge and energy. The device supports both SPI +and I2C depending on the chip configuration. +The device also measures accumulated quantities as energy. It has two banks of +register's to read/set energy related values. These banks can be configured +independently to have setups like: energy1 accumulates always and enrgy2 only +accumulates if current is positive (to check battery charging efficiency for +example). The device also supports a GPIO pin that can be configured as output +to control a fan as a function of measured temperature. Then, the GPIO becomes +active as soon as a temperature reading is higher than a defined threshold. The +temp2 channel is used to control this thresholds and to read the respective +alarms. + +Sysfs entries +_____________ + +The following attributes are supported. Limits are read-write, reset_history +is write-only and all the other attributes are read-only. + +======================= ========================================== +in0_input VP-VM voltage (mV). +in0_min Undervoltage threshold +in0_max Overvoltage threshold +in0_lowest Lowest measured voltage +in0_highest Highest measured voltage +in0_reset_history Write 1 to reset in1 history +in0_min_alarm Undervoltage alarm +in0_max_alarm Overvoltage alarm +in0_label Channel label (VP-VM) + +in1_input DVCC voltage (mV) +in1_min Undervoltage threshold +in1_max Overvoltage threshold +in1_lowest Lowest measured voltage +in1_highest Highest measured voltage +in1_reset_history Write 1 to reset in2 history +in1_min_alarm Undervoltage alarm +in1_max_alarm Overvoltage alarm +in1_label Channel label (DVCC) + +curr1_input IP-IM Sense current (mA) +curr1_min Undercurrent threshold +curr1_max Overcurrent threshold +curr1_lowest Lowest measured current +curr1_highest Highest measured current +curr1_reset_history Write 1 to reset curr1 history +curr1_min_alarm Undercurrent alarm +curr1_max_alarm Overcurrent alarm +curr1_label Channel label (IP-IM) + +power1_input Power (in uW) +power1_min Low power threshold +power1_max High power threshold +power1_input_lowest Historical minimum power use +power1_input_highest Historical maximum power use +power1_reset_history Write 1 to reset power1 history +power1_min_alarm Low power alarm +power1_max_alarm High power alarm +power1_label Channel label (Power) + +temp1_input Chip Temperature (in milliC) +temp1_min Low temperature threshold +temp1_max High temperature threshold +temp1_input_lowest Historical minimum temperature use +temp1_input_highest Historical maximum temperature use +temp1_reset_history Write 1 to reset temp1 history +temp1_min_alarm Low temperature alarm +temp1_max_alarm High temperature alarm +temp1_label Channel label (Ambient) + +temp2_min Low temperature threshold for fan control +temp2_max High temperature threshold for fan control +temp2_min_alarm Low temperature fan control alarm +temp2_max_alarm High temperature fan control alarm +temp2_label Channel label (TEMPFAN) + +energy1_input Measured energy over time (in microJoule) + +energy2_input Measured energy over time (in microJoule) +======================= ========================================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/ltc4245.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/ltc4245.rst index 2611eb6fe..3dafd08a4 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/ltc4245.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/ltc4245.rst @@ -1,111 +1,111 @@ -Kernel driver ltc4245 -===================== - -Supported chips: - - * Linear Technology LTC4245 - - Prefix: 'ltc4245' - - Addresses scanned: 0x20-0x3f - - Datasheet: - - http://www.linear.com/pc/downloadDocument.do?navId=H0,C1,C1003,C1006,C1140,P19392,D13517 - -Author: Ira W. Snyder - - -Description ------------ - -The LTC4245 controller allows a board to be safely inserted and removed -from a live backplane in multiple supply systems such as CompactPCI and -PCI Express. - - -Usage Notes ------------ - -This driver does not probe for LTC4245 devices, due to the fact that some -of the possible addresses are unfriendly to probing. You will have to -instantiate the devices explicitly. - -Example: the following will load the driver for an LTC4245 at address 0x23 -on I2C bus #1:: - - $ modprobe ltc4245 - $ echo ltc4245 0x23 > /sys/bus/i2c/devices/i2c-1/new_device - - -Sysfs entries -------------- - -The LTC4245 has built-in limits for over and under current warnings. This -makes it very likely that the reference circuit will be used. - -This driver uses the values in the datasheet to change the register values -into the values specified in the sysfs-interface document. The current readings -rely on the sense resistors listed in Table 2: "Sense Resistor Values". - -======================= ======================================================= -in1_input 12v input voltage (mV) -in2_input 5v input voltage (mV) -in3_input 3v input voltage (mV) -in4_input Vee (-12v) input voltage (mV) - -in1_min_alarm 12v input undervoltage alarm -in2_min_alarm 5v input undervoltage alarm -in3_min_alarm 3v input undervoltage alarm -in4_min_alarm Vee (-12v) input undervoltage alarm - -curr1_input 12v current (mA) -curr2_input 5v current (mA) -curr3_input 3v current (mA) -curr4_input Vee (-12v) current (mA) - -curr1_max_alarm 12v overcurrent alarm -curr2_max_alarm 5v overcurrent alarm -curr3_max_alarm 3v overcurrent alarm -curr4_max_alarm Vee (-12v) overcurrent alarm - -in5_input 12v output voltage (mV) -in6_input 5v output voltage (mV) -in7_input 3v output voltage (mV) -in8_input Vee (-12v) output voltage (mV) - -in5_min_alarm 12v output undervoltage alarm -in6_min_alarm 5v output undervoltage alarm -in7_min_alarm 3v output undervoltage alarm -in8_min_alarm Vee (-12v) output undervoltage alarm - -in9_input GPIO voltage data (see note 1) -in10_input GPIO voltage data (see note 1) -in11_input GPIO voltage data (see note 1) - -power1_input 12v power usage (mW) -power2_input 5v power usage (mW) -power3_input 3v power usage (mW) -power4_input Vee (-12v) power usage (mW) -======================= ======================================================= - - -Note 1 ------- - -If you have NOT configured the driver to sample all GPIO pins as analog -voltages, then the in10_input and in11_input sysfs attributes will not be -created. The driver will sample the GPIO pin that is currently connected to the -ADC as an analog voltage, and report the value in in9_input. - -If you have configured the driver to sample all GPIO pins as analog voltages, -then they will be sampled in round-robin fashion. If userspace reads too -slowly, -EAGAIN will be returned when you read the sysfs attribute containing -the sensor reading. - -The LTC4245 chip can be configured to sample all GPIO pins with two methods: - -1) platform data -- see include/linux/platform_data/ltc4245.h -2) OF device tree -- add the "ltc4245,use-extra-gpios" property to each chip - -The default mode of operation is to sample a single GPIO pin. +Kernel driver ltc4245 +===================== + +Supported chips: + + * Linear Technology LTC4245 + + Prefix: 'ltc4245' + + Addresses scanned: 0x20-0x3f + + Datasheet: + + http://www.linear.com/pc/downloadDocument.do?navId=H0,C1,C1003,C1006,C1140,P19392,D13517 + +Author: Ira W. Snyder + + +Description +----------- + +The LTC4245 controller allows a board to be safely inserted and removed +from a live backplane in multiple supply systems such as CompactPCI and +PCI Express. + + +Usage Notes +----------- + +This driver does not probe for LTC4245 devices, due to the fact that some +of the possible addresses are unfriendly to probing. You will have to +instantiate the devices explicitly. + +Example: the following will load the driver for an LTC4245 at address 0x23 +on I2C bus #1:: + + $ modprobe ltc4245 + $ echo ltc4245 0x23 > /sys/bus/i2c/devices/i2c-1/new_device + + +Sysfs entries +------------- + +The LTC4245 has built-in limits for over and under current warnings. This +makes it very likely that the reference circuit will be used. + +This driver uses the values in the datasheet to change the register values +into the values specified in the sysfs-interface document. The current readings +rely on the sense resistors listed in Table 2: "Sense Resistor Values". + +======================= ======================================================= +in1_input 12v input voltage (mV) +in2_input 5v input voltage (mV) +in3_input 3v input voltage (mV) +in4_input Vee (-12v) input voltage (mV) + +in1_min_alarm 12v input undervoltage alarm +in2_min_alarm 5v input undervoltage alarm +in3_min_alarm 3v input undervoltage alarm +in4_min_alarm Vee (-12v) input undervoltage alarm + +curr1_input 12v current (mA) +curr2_input 5v current (mA) +curr3_input 3v current (mA) +curr4_input Vee (-12v) current (mA) + +curr1_max_alarm 12v overcurrent alarm +curr2_max_alarm 5v overcurrent alarm +curr3_max_alarm 3v overcurrent alarm +curr4_max_alarm Vee (-12v) overcurrent alarm + +in5_input 12v output voltage (mV) +in6_input 5v output voltage (mV) +in7_input 3v output voltage (mV) +in8_input Vee (-12v) output voltage (mV) + +in5_min_alarm 12v output undervoltage alarm +in6_min_alarm 5v output undervoltage alarm +in7_min_alarm 3v output undervoltage alarm +in8_min_alarm Vee (-12v) output undervoltage alarm + +in9_input GPIO voltage data (see note 1) +in10_input GPIO voltage data (see note 1) +in11_input GPIO voltage data (see note 1) + +power1_input 12v power usage (mW) +power2_input 5v power usage (mW) +power3_input 3v power usage (mW) +power4_input Vee (-12v) power usage (mW) +======================= ======================================================= + + +Note 1 +------ + +If you have NOT configured the driver to sample all GPIO pins as analog +voltages, then the in10_input and in11_input sysfs attributes will not be +created. The driver will sample the GPIO pin that is currently connected to the +ADC as an analog voltage, and report the value in in9_input. + +If you have configured the driver to sample all GPIO pins as analog voltages, +then they will be sampled in round-robin fashion. If userspace reads too +slowly, -EAGAIN will be returned when you read the sysfs attribute containing +the sensor reading. + +The LTC4245 chip can be configured to sample all GPIO pins with two methods: + +1) platform data -- see include/linux/platform_data/ltc4245.h +2) OF device tree -- add the "ltc4245,use-extra-gpios" property to each chip + +The default mode of operation is to sample a single GPIO pin. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/max16065.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/max16065.rst index 76c23c424..45f69f334 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/max16065.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/max16065.rst @@ -1,127 +1,127 @@ -Kernel driver max16065 -====================== - - -Supported chips: - - * Maxim MAX16065, MAX16066 - - Prefixes: 'max16065', 'max16066' - - Addresses scanned: - - - Datasheet: - - http://datasheets.maxim-ic.com/en/ds/MAX16065-MAX16066.pdf - - * Maxim MAX16067 - - Prefix: 'max16067' - - Addresses scanned: - - - Datasheet: - - http://datasheets.maxim-ic.com/en/ds/MAX16067.pdf - - * Maxim MAX16068 - - Prefix: 'max16068' - - Addresses scanned: - - - Datasheet: - - http://datasheets.maxim-ic.com/en/ds/MAX16068.pdf - - * Maxim MAX16070/MAX16071 - - Prefixes: 'max16070', 'max16071' - - Addresses scanned: - - - Datasheet: - - http://datasheets.maxim-ic.com/en/ds/MAX16070-MAX16071.pdf - -Author: Guenter Roeck - - -Description ------------ - -[From datasheets] The MAX16065/MAX16066 flash-configurable system managers -monitor and sequence multiple system voltages. The MAX16065/MAX16066 can also -accurately monitor (+/-2.5%) one current channel using a dedicated high-side -current-sense amplifier. The MAX16065 manages up to twelve system voltages -simultaneously, and the MAX16066 manages up to eight supply voltages. - -The MAX16067 flash-configurable system manager monitors and sequences multiple -system voltages. The MAX16067 manages up to six system voltages simultaneously. - -The MAX16068 flash-configurable system manager monitors and manages up to six -system voltages simultaneously. - -The MAX16070/MAX16071 flash-configurable system monitors supervise multiple -system voltages. The MAX16070/MAX16071 can also accurately monitor (+/-2.5%) -one current channel using a dedicated high-side current-sense amplifier. The -MAX16070 monitors up to twelve system voltages simultaneously, and the MAX16071 -monitors up to eight supply voltages. - -Each monitored channel has its own low and high critical limits. MAX16065, -MAX16066, MAX16070, and MAX16071 support an additional limit which is -configurable as either low or high secondary limit. MAX16065, MAX16066, -MAX16070, and MAX16071 also support supply current monitoring. - - -Usage Notes ------------ - -This driver does not probe for devices, since there is no register which -can be safely used to identify the chip. You will have to instantiate -the devices explicitly. Please see Documentation/i2c/instantiating-devices.rst for -details. - -WARNING: Do not access chip registers using the i2cdump command, and do not use -any of the i2ctools commands on a command register (0xa5 to 0xac). The chips -supported by this driver interpret any access to a command register (including -read commands) as request to execute the command in question. This may result in -power loss, board resets, and/or Flash corruption. Worst case, your board may -turn into a brick. - - -Sysfs entries -------------- - -======================= ======================================================== -in[0-11]_input Input voltage measurements. - -in12_input Voltage on CSP (Current Sense Positive) pin. - Only if the chip supports current sensing and if - current sensing is enabled. - -in[0-11]_min Low warning limit. - Supported on MAX16065, MAX16066, MAX16070, and MAX16071 - only. - -in[0-11]_max High warning limit. - Supported on MAX16065, MAX16066, MAX16070, and MAX16071 - only. - - Either low or high warning limits are supported - (depending on chip configuration), but not both. - -in[0-11]_lcrit Low critical limit. - -in[0-11]_crit High critical limit. - -in[0-11]_alarm Input voltage alarm. - -curr1_input Current sense input; only if the chip supports current - sensing and if current sensing is enabled. - Displayed current assumes 0.001 Ohm current sense - resistor. - -curr1_alarm Overcurrent alarm; only if the chip supports current - sensing and if current sensing is enabled. -======================= ======================================================== +Kernel driver max16065 +====================== + + +Supported chips: + + * Maxim MAX16065, MAX16066 + + Prefixes: 'max16065', 'max16066' + + Addresses scanned: - + + Datasheet: + + http://datasheets.maxim-ic.com/en/ds/MAX16065-MAX16066.pdf + + * Maxim MAX16067 + + Prefix: 'max16067' + + Addresses scanned: - + + Datasheet: + + http://datasheets.maxim-ic.com/en/ds/MAX16067.pdf + + * Maxim MAX16068 + + Prefix: 'max16068' + + Addresses scanned: - + + Datasheet: + + http://datasheets.maxim-ic.com/en/ds/MAX16068.pdf + + * Maxim MAX16070/MAX16071 + + Prefixes: 'max16070', 'max16071' + + Addresses scanned: - + + Datasheet: + + http://datasheets.maxim-ic.com/en/ds/MAX16070-MAX16071.pdf + +Author: Guenter Roeck + + +Description +----------- + +[From datasheets] The MAX16065/MAX16066 flash-configurable system managers +monitor and sequence multiple system voltages. The MAX16065/MAX16066 can also +accurately monitor (+/-2.5%) one current channel using a dedicated high-side +current-sense amplifier. The MAX16065 manages up to twelve system voltages +simultaneously, and the MAX16066 manages up to eight supply voltages. + +The MAX16067 flash-configurable system manager monitors and sequences multiple +system voltages. The MAX16067 manages up to six system voltages simultaneously. + +The MAX16068 flash-configurable system manager monitors and manages up to six +system voltages simultaneously. + +The MAX16070/MAX16071 flash-configurable system monitors supervise multiple +system voltages. The MAX16070/MAX16071 can also accurately monitor (+/-2.5%) +one current channel using a dedicated high-side current-sense amplifier. The +MAX16070 monitors up to twelve system voltages simultaneously, and the MAX16071 +monitors up to eight supply voltages. + +Each monitored channel has its own low and high critical limits. MAX16065, +MAX16066, MAX16070, and MAX16071 support an additional limit which is +configurable as either low or high secondary limit. MAX16065, MAX16066, +MAX16070, and MAX16071 also support supply current monitoring. + + +Usage Notes +----------- + +This driver does not probe for devices, since there is no register which +can be safely used to identify the chip. You will have to instantiate +the devices explicitly. Please see Documentation/i2c/instantiating-devices.rst for +details. + +WARNING: Do not access chip registers using the i2cdump command, and do not use +any of the i2ctools commands on a command register (0xa5 to 0xac). The chips +supported by this driver interpret any access to a command register (including +read commands) as request to execute the command in question. This may result in +power loss, board resets, and/or Flash corruption. Worst case, your board may +turn into a brick. + + +Sysfs entries +------------- + +======================= ======================================================== +in[0-11]_input Input voltage measurements. + +in12_input Voltage on CSP (Current Sense Positive) pin. + Only if the chip supports current sensing and if + current sensing is enabled. + +in[0-11]_min Low warning limit. + Supported on MAX16065, MAX16066, MAX16070, and MAX16071 + only. + +in[0-11]_max High warning limit. + Supported on MAX16065, MAX16066, MAX16070, and MAX16071 + only. + + Either low or high warning limits are supported + (depending on chip configuration), but not both. + +in[0-11]_lcrit Low critical limit. + +in[0-11]_crit High critical limit. + +in[0-11]_alarm Input voltage alarm. + +curr1_input Current sense input; only if the chip supports current + sensing and if current sensing is enabled. + Displayed current assumes 0.001 Ohm current sense + resistor. + +curr1_alarm Overcurrent alarm; only if the chip supports current + sensing and if current sensing is enabled. +======================= ======================================================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/max16601.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/max16601.rst index 1bf6a91d0..c8c63a053 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/max16601.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/max16601.rst @@ -1,145 +1,145 @@ -.. SPDX-License-Identifier: GPL-2.0 - -Kernel driver max16601 -====================== - -Supported chips: - - * Maxim MAX16508 - - Prefix: 'max16508' - - Addresses scanned: - - - Datasheet: Not published - - * Maxim MAX16600 - - Prefix: 'max16600' - - Addresses scanned: - - - Datasheet: Not published - - * Maxim MAX16601 - - Prefix: 'max16601' - - Addresses scanned: - - - Datasheet: Not published - - * Maxim MAX16602 - - Prefix: 'max16602' - - Addresses scanned: - - - Datasheet: https://datasheets.maximintegrated.com/en/ds/MAX16602.pdf - -Author: Guenter Roeck - - -Description ------------ - -This driver supports the MAX16508 VR13 Dual-Output Voltage Regulator -as well as the MAX16600, MAX16601, and MAX16602 VR13.HC Dual-Output -Voltage Regulator chipsets. - -The driver is a client driver to the core PMBus driver. -Please see Documentation/hwmon/pmbus.rst for details on PMBus client drivers. - - -Usage Notes ------------ - -This driver does not auto-detect devices. You will have to instantiate the -devices explicitly. Please see Documentation/i2c/instantiating-devices.rst for -details. - - -Platform data support ---------------------- - -The driver supports standard PMBus driver platform data. - - -Sysfs entries -------------- - -The following attributes are supported. - -=============================== =============================================== -in1_label "vin1" -in1_input VCORE input voltage. -in1_alarm Input voltage alarm. - -in2_label "vout1" -in2_input VCORE output voltage. -in2_alarm Output voltage alarm. - -curr1_label "iin1" -curr1_input VCORE input current, derived from duty cycle - and output current. -curr1_max Maximum input current. -curr1_max_alarm Current high alarm. - -curr[P+2]_label "iin1.P" -curr[P+2]_input VCORE phase P input current. - -curr[N+2]_label "iin2" -curr[N+2]_input VCORE input current, derived from sensor - element. - 'N' is the number of enabled/populated phases. - -curr[N+3]_label "iin3" -curr[N+3]_input VSA input current. - -curr[N+4]_label "iout1" -curr[N+4]_input VCORE output current. -curr[N+4]_crit Critical output current. -curr[N+4]_crit_alarm Output current critical alarm. -curr[N+4]_max Maximum output current. -curr[N+4]_max_alarm Output current high alarm. - -curr[N+P+5]_label "iout1.P" -curr[N+P+5]_input VCORE phase P output current. - -curr[2*N+5]_label "iout3" -curr[2*N+5]_input VSA output current. -curr[2*N+5]_highest Historical maximum VSA output current. -curr[2*N+5]_reset_history Write any value to reset curr21_highest. -curr[2*N+5]_crit Critical output current. -curr[2*N+5]_crit_alarm Output current critical alarm. -curr[2*N+5]_max Maximum output current. -curr[2*N+5]_max_alarm Output current high alarm. - -power1_label "pin1" -power1_input Input power, derived from duty cycle and output - current. -power1_alarm Input power alarm. - -power2_label "pin2" -power2_input Input power, derived from input current sensor. - -power3_label "pout" -power3_input Output power. - -temp1_input VCORE temperature. -temp1_crit Critical high temperature. -temp1_crit_alarm Chip temperature critical high alarm. -temp1_max Maximum temperature. -temp1_max_alarm Chip temperature high alarm. - -temp2_input TSENSE_0 temperature -temp3_input TSENSE_1 temperature -temp4_input TSENSE_2 temperature -temp5_input TSENSE_3 temperature - -temp6_input VSA temperature. -temp6_crit Critical high temperature. -temp6_crit_alarm Chip temperature critical high alarm. -temp6_max Maximum temperature. -temp6_max_alarm Chip temperature high alarm. -=============================== =============================================== +.. SPDX-License-Identifier: GPL-2.0 + +Kernel driver max16601 +====================== + +Supported chips: + + * Maxim MAX16508 + + Prefix: 'max16508' + + Addresses scanned: - + + Datasheet: Not published + + * Maxim MAX16600 + + Prefix: 'max16600' + + Addresses scanned: - + + Datasheet: Not published + + * Maxim MAX16601 + + Prefix: 'max16601' + + Addresses scanned: - + + Datasheet: Not published + + * Maxim MAX16602 + + Prefix: 'max16602' + + Addresses scanned: - + + Datasheet: https://datasheets.maximintegrated.com/en/ds/MAX16602.pdf + +Author: Guenter Roeck + + +Description +----------- + +This driver supports the MAX16508 VR13 Dual-Output Voltage Regulator +as well as the MAX16600, MAX16601, and MAX16602 VR13.HC Dual-Output +Voltage Regulator chipsets. + +The driver is a client driver to the core PMBus driver. +Please see Documentation/hwmon/pmbus.rst for details on PMBus client drivers. + + +Usage Notes +----------- + +This driver does not auto-detect devices. You will have to instantiate the +devices explicitly. Please see Documentation/i2c/instantiating-devices.rst for +details. + + +Platform data support +--------------------- + +The driver supports standard PMBus driver platform data. + + +Sysfs entries +------------- + +The following attributes are supported. + +=============================== =============================================== +in1_label "vin1" +in1_input VCORE input voltage. +in1_alarm Input voltage alarm. + +in2_label "vout1" +in2_input VCORE output voltage. +in2_alarm Output voltage alarm. + +curr1_label "iin1" +curr1_input VCORE input current, derived from duty cycle + and output current. +curr1_max Maximum input current. +curr1_max_alarm Current high alarm. + +curr[P+2]_label "iin1.P" +curr[P+2]_input VCORE phase P input current. + +curr[N+2]_label "iin2" +curr[N+2]_input VCORE input current, derived from sensor + element. + 'N' is the number of enabled/populated phases. + +curr[N+3]_label "iin3" +curr[N+3]_input VSA input current. + +curr[N+4]_label "iout1" +curr[N+4]_input VCORE output current. +curr[N+4]_crit Critical output current. +curr[N+4]_crit_alarm Output current critical alarm. +curr[N+4]_max Maximum output current. +curr[N+4]_max_alarm Output current high alarm. + +curr[N+P+5]_label "iout1.P" +curr[N+P+5]_input VCORE phase P output current. + +curr[2*N+5]_label "iout3" +curr[2*N+5]_input VSA output current. +curr[2*N+5]_highest Historical maximum VSA output current. +curr[2*N+5]_reset_history Write any value to reset curr21_highest. +curr[2*N+5]_crit Critical output current. +curr[2*N+5]_crit_alarm Output current critical alarm. +curr[2*N+5]_max Maximum output current. +curr[2*N+5]_max_alarm Output current high alarm. + +power1_label "pin1" +power1_input Input power, derived from duty cycle and output + current. +power1_alarm Input power alarm. + +power2_label "pin2" +power2_input Input power, derived from input current sensor. + +power3_label "pout" +power3_input Output power. + +temp1_input VCORE temperature. +temp1_crit Critical high temperature. +temp1_crit_alarm Chip temperature critical high alarm. +temp1_max Maximum temperature. +temp1_max_alarm Chip temperature high alarm. + +temp2_input TSENSE_0 temperature +temp3_input TSENSE_1 temperature +temp4_input TSENSE_2 temperature +temp5_input TSENSE_3 temperature + +temp6_input VSA temperature. +temp6_crit Critical high temperature. +temp6_crit_alarm Chip temperature critical high alarm. +temp6_max Maximum temperature. +temp6_max_alarm Chip temperature high alarm. +=============================== =============================================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/max31760.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/max31760.rst index 45885052c..b1b55fb84 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/max31760.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/max31760.rst @@ -1,77 +1,77 @@ -.. SPDX-License-Identifier: GPL-2.0-or-later - -Kernel driver max31760 -====================== - -Supported chips: - * Analog Devices MAX31760 - - Prefix: 'max31760' - - Addresses scanned: none - - Datasheet: https://datasheets.maximintegrated.com/en/ds/MAX31760.pdf - - -Author: Ibrahim Tilki - -Description ------------ - -The MAX31760 integrates temperature sensing along with precision PWM fan -control. It accurately measures its local die temperature and the remote -temperature of a discrete diode-connected transistor, such as a 2N3906, -or a thermal diode commonly found on CPUs, graphics processor units (GPUs), -and other ASICs. Multiple temperature thresholds, such as local -high/overtemperature (OT) and remote high/overtemperature, can be set by an -I2C-compatible interface. Fan speed is controlled based on the temperature -reading as an index to a 48-byte lookup table (LUT) containing -user-programmed PWM values. The flexible LUT-based architecture enables -the user to program a smooth nonlinear fan speed vs. temperature transfer -function to minimize acoustic fan noise. Two tachometer inputs allow -measuring the speeds of two fans independently. When the local or remote -OT threshold is exceeded, the SHDN pin is asserted low and can be used to -shut down the system. A dedicated ALERT pin reports that either a local or -remote high-temperature threshold has been exceeded. - -Temperature measurement range: from -55°C to 125°C - -Temperature Resolution: 11 Bits, ±0.125°C - -Please refer how to instantiate this driver: Documentation/i2c/instantiating-devices.rst - -Lookup table for auto fan control ---------------------------------- - -========= ================================= -LUT Index Name -========= ================================= -1 PWM value for T < +18°C -2 PWM value for +18°C ≤ T < +20°C -3 PWM value for +20°C ≤ T < +22°C -... ... -47 PWM value for +108°C ≤ T < +110°C -48 PWM value for T ≥ +110°C -========= ================================= - -Sysfs entries -------------- - -=============================== ================================================================================= -fan[1-2]_input Fan speed (in RPM) -fan[1-2]_enable Enable fan readings and fan fault alarms -fan[1-2]_fault Fan fault status -temp[1-2]_label "Remote" and "Local" temperature channel labels -temp[1-2]_input Temperature sensor readings (in millidegrees Celsius) -temp1_fault Remote temperature sensor fault status -temp[1-2]_max Temperature max value. Asserts "ALERT" pin when exceeded -temp[1-2]_max_alarm Temperature max alarm status -temp[1-2]_crit Temperature critical value. Asserts "SHDN" pin when exceeded -temp[1-2]_crit_alarm Temperature critical alarm status -pwm1 PWM value for direct fan control -pwm1_enable 1: direct fan control, 2: temperature based auto fan control -pwm1_freq PWM frequency in hertz -pwm1_auto_channels_temp Temperature source for auto fan control. 1: temp1, 2: temp2, 3: max(temp1, temp2) -pwm1_auto_point[1-48]_pwm PWM value for LUT point -pwm1_auto_point_temp_hyst Temperature hysteresis for auto fan control. Can be either 2000mC or 4000mC -=============================== ================================================================================= +.. SPDX-License-Identifier: GPL-2.0-or-later + +Kernel driver max31760 +====================== + +Supported chips: + * Analog Devices MAX31760 + + Prefix: 'max31760' + + Addresses scanned: none + + Datasheet: https://datasheets.maximintegrated.com/en/ds/MAX31760.pdf + + +Author: Ibrahim Tilki + +Description +----------- + +The MAX31760 integrates temperature sensing along with precision PWM fan +control. It accurately measures its local die temperature and the remote +temperature of a discrete diode-connected transistor, such as a 2N3906, +or a thermal diode commonly found on CPUs, graphics processor units (GPUs), +and other ASICs. Multiple temperature thresholds, such as local +high/overtemperature (OT) and remote high/overtemperature, can be set by an +I2C-compatible interface. Fan speed is controlled based on the temperature +reading as an index to a 48-byte lookup table (LUT) containing +user-programmed PWM values. The flexible LUT-based architecture enables +the user to program a smooth nonlinear fan speed vs. temperature transfer +function to minimize acoustic fan noise. Two tachometer inputs allow +measuring the speeds of two fans independently. When the local or remote +OT threshold is exceeded, the SHDN pin is asserted low and can be used to +shut down the system. A dedicated ALERT pin reports that either a local or +remote high-temperature threshold has been exceeded. + +Temperature measurement range: from -55°C to 125°C + +Temperature Resolution: 11 Bits, ±0.125°C + +Please refer how to instantiate this driver: Documentation/i2c/instantiating-devices.rst + +Lookup table for auto fan control +--------------------------------- + +========= ================================= +LUT Index Name +========= ================================= +1 PWM value for T < +18°C +2 PWM value for +18°C ≤ T < +20°C +3 PWM value for +20°C ≤ T < +22°C +... ... +47 PWM value for +108°C ≤ T < +110°C +48 PWM value for T ≥ +110°C +========= ================================= + +Sysfs entries +------------- + +=============================== ================================================================================= +fan[1-2]_input Fan speed (in RPM) +fan[1-2]_enable Enable fan readings and fan fault alarms +fan[1-2]_fault Fan fault status +temp[1-2]_label "Remote" and "Local" temperature channel labels +temp[1-2]_input Temperature sensor readings (in millidegrees Celsius) +temp1_fault Remote temperature sensor fault status +temp[1-2]_max Temperature max value. Asserts "ALERT" pin when exceeded +temp[1-2]_max_alarm Temperature max alarm status +temp[1-2]_crit Temperature critical value. Asserts "SHDN" pin when exceeded +temp[1-2]_crit_alarm Temperature critical alarm status +pwm1 PWM value for direct fan control +pwm1_enable 1: direct fan control, 2: temperature based auto fan control +pwm1_freq PWM frequency in hertz +pwm1_auto_channels_temp Temperature source for auto fan control. 1: temp1, 2: temp2, 3: max(temp1, temp2) +pwm1_auto_point[1-48]_pwm PWM value for LUT point +pwm1_auto_point_temp_hyst Temperature hysteresis for auto fan control. Can be either 2000mC or 4000mC +=============================== ================================================================================= diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/mc13783-adc.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/mc13783-adc.rst index 024a76723..cae70350b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/mc13783-adc.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/mc13783-adc.rst @@ -1,89 +1,89 @@ -Kernel driver mc13783-adc -========================= - -Supported chips: - - * Freescale MC13783 - - Prefix: 'mc13783' - - Datasheet: https://www.nxp.com/docs/en/data-sheet/MC13783.pdf - - * Freescale MC13892 - - Prefix: 'mc13892' - - Datasheet: https://www.nxp.com/docs/en/data-sheet/MC13892.pdf - - - -Authors: - - - Sascha Hauer - - Luotao Fu - -Description ------------ - -The Freescale MC13783 and MC13892 are Power Management and Audio Circuits. -Among other things they contain a 10-bit A/D converter. The converter has 16 -(MC13783) resp. 12 (MC13892) channels which can be used in different modes. The -A/D converter has a resolution of 2.25mV. - -Some channels can be used as General Purpose inputs or in a dedicated mode with -a chip internal scaling applied . - -Currently the driver only supports the Application Supply channel (BP / BPSNS), -the General Purpose inputs and touchscreen. - -See the following tables for the meaning of the different channels and their -chip internal scaling: - -- MC13783: - -======= =============================================== =============== ======= -Channel Signal Input Range Scaling -======= =============================================== =============== ======= -0 Battery Voltage (BATT) 2.50 - 4.65V -2.40V -1 Battery Current (BATT - BATTISNS) -50 - 50 mV x20 -2 Application Supply (BP) 2.50 - 4.65V -2.40V -3 Charger Voltage (CHRGRAW) 0 - 10V / /5 - 0 - 20V /10 -4 Charger Current (CHRGISNSP-CHRGISNSN) -0.25 - 0.25V x4 -5 General Purpose ADIN5 / Battery Pack Thermistor 0 - 2.30V No -6 General Purpose ADIN6 / Backup Voltage (LICELL) 0 - 2.30V / No / - 1.50 - 3.50V -1.20V -7 General Purpose ADIN7 / UID / Die Temperature 0 - 2.30V / No / - 0 - 2.55V / x0.9 / No -8 General Purpose ADIN8 0 - 2.30V No -9 General Purpose ADIN9 0 - 2.30V No -10 General Purpose ADIN10 0 - 2.30V No -11 General Purpose ADIN11 0 - 2.30V No -12 General Purpose TSX1 / Touchscreen X-plate 1 0 - 2.30V No -13 General Purpose TSX2 / Touchscreen X-plate 2 0 - 2.30V No -14 General Purpose TSY1 / Touchscreen Y-plate 1 0 - 2.30V No -15 General Purpose TSY2 / Touchscreen Y-plate 2 0 - 2.30V No -======= =============================================== =============== ======= - -- MC13892: - -======= =============================================== =============== ======= -Channel Signal Input Range Scaling -======= =============================================== =============== ======= -0 Battery Voltage (BATT) 0 - 4.8V /2 -1 Battery Current (BATT - BATTISNSCC) -60 - 60 mV x20 -2 Application Supply (BPSNS) 0 - 4.8V /2 -3 Charger Voltage (CHRGRAW) 0 - 12V / /5 - 0 - 20V /10 -4 Charger Current (CHRGISNS-BPSNS) / -0.3 - 0.3V / x4 / - Touchscreen X-plate 1 0 - 2.4V No -5 General Purpose ADIN5 / Battery Pack Thermistor 0 - 2.4V No -6 General Purpose ADIN6 / Backup Voltage (LICELL) 0 - 2.4V / No - Backup Voltage (LICELL) 0 - 3.6V x2/3 -7 General Purpose ADIN7 / UID / Die Temperature 0 - 2.4V / No / - 0 - 4.8V /2 -12 General Purpose TSX1 / Touchscreen X-plate 1 0 - 2.4V No -13 General Purpose TSX2 / Touchscreen X-plate 2 0 - 2.4V No -14 General Purpose TSY1 / Touchscreen Y-plate 1 0 - 2.4V No -15 General Purpose TSY2 / Touchscreen Y-plate 2 0 - 2.4V No -======= =============================================== =============== ======= +Kernel driver mc13783-adc +========================= + +Supported chips: + + * Freescale MC13783 + + Prefix: 'mc13783' + + Datasheet: https://www.nxp.com/docs/en/data-sheet/MC13783.pdf + + * Freescale MC13892 + + Prefix: 'mc13892' + + Datasheet: https://www.nxp.com/docs/en/data-sheet/MC13892.pdf + + + +Authors: + + - Sascha Hauer + - Luotao Fu + +Description +----------- + +The Freescale MC13783 and MC13892 are Power Management and Audio Circuits. +Among other things they contain a 10-bit A/D converter. The converter has 16 +(MC13783) resp. 12 (MC13892) channels which can be used in different modes. The +A/D converter has a resolution of 2.25mV. + +Some channels can be used as General Purpose inputs or in a dedicated mode with +a chip internal scaling applied . + +Currently the driver only supports the Application Supply channel (BP / BPSNS), +the General Purpose inputs and touchscreen. + +See the following tables for the meaning of the different channels and their +chip internal scaling: + +- MC13783: + +======= =============================================== =============== ======= +Channel Signal Input Range Scaling +======= =============================================== =============== ======= +0 Battery Voltage (BATT) 2.50 - 4.65V -2.40V +1 Battery Current (BATT - BATTISNS) -50 - 50 mV x20 +2 Application Supply (BP) 2.50 - 4.65V -2.40V +3 Charger Voltage (CHRGRAW) 0 - 10V / /5 + 0 - 20V /10 +4 Charger Current (CHRGISNSP-CHRGISNSN) -0.25 - 0.25V x4 +5 General Purpose ADIN5 / Battery Pack Thermistor 0 - 2.30V No +6 General Purpose ADIN6 / Backup Voltage (LICELL) 0 - 2.30V / No / + 1.50 - 3.50V -1.20V +7 General Purpose ADIN7 / UID / Die Temperature 0 - 2.30V / No / + 0 - 2.55V / x0.9 / No +8 General Purpose ADIN8 0 - 2.30V No +9 General Purpose ADIN9 0 - 2.30V No +10 General Purpose ADIN10 0 - 2.30V No +11 General Purpose ADIN11 0 - 2.30V No +12 General Purpose TSX1 / Touchscreen X-plate 1 0 - 2.30V No +13 General Purpose TSX2 / Touchscreen X-plate 2 0 - 2.30V No +14 General Purpose TSY1 / Touchscreen Y-plate 1 0 - 2.30V No +15 General Purpose TSY2 / Touchscreen Y-plate 2 0 - 2.30V No +======= =============================================== =============== ======= + +- MC13892: + +======= =============================================== =============== ======= +Channel Signal Input Range Scaling +======= =============================================== =============== ======= +0 Battery Voltage (BATT) 0 - 4.8V /2 +1 Battery Current (BATT - BATTISNSCC) -60 - 60 mV x20 +2 Application Supply (BPSNS) 0 - 4.8V /2 +3 Charger Voltage (CHRGRAW) 0 - 12V / /5 + 0 - 20V /10 +4 Charger Current (CHRGISNS-BPSNS) / -0.3 - 0.3V / x4 / + Touchscreen X-plate 1 0 - 2.4V No +5 General Purpose ADIN5 / Battery Pack Thermistor 0 - 2.4V No +6 General Purpose ADIN6 / Backup Voltage (LICELL) 0 - 2.4V / No + Backup Voltage (LICELL) 0 - 3.6V x2/3 +7 General Purpose ADIN7 / UID / Die Temperature 0 - 2.4V / No / + 0 - 4.8V /2 +12 General Purpose TSX1 / Touchscreen X-plate 1 0 - 2.4V No +13 General Purpose TSX2 / Touchscreen X-plate 2 0 - 2.4V No +14 General Purpose TSY1 / Touchscreen Y-plate 1 0 - 2.4V No +15 General Purpose TSY2 / Touchscreen Y-plate 2 0 - 2.4V No +======= =============================================== =============== ======= diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/smpro-hwmon.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/smpro-hwmon.rst index 35c71f857..fb7b36657 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/smpro-hwmon.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/smpro-hwmon.rst @@ -1,102 +1,102 @@ -.. SPDX-License-Identifier: GPL-2.0-only - -Kernel driver Ampere(R)'s Altra(R) SMpro hwmon -============================================== - -Supported chips: - - * Ampere(R) Altra(R) - - Prefix: ``smpro`` - - Reference: `Altra SoC BMC Interface Specification` - -Author: Thu Nguyen - -Description ------------ -The smpro-hwmon driver supports hardware monitoring for Ampere(R) Altra(R) -SoCs based on the SMpro co-processor (SMpro). The following sensor metrics -are supported by the driver: - - * temperature - * voltage - * current - * power - -The interface provides the registers to query the various sensors and -their values which are then exported to userspace by this driver. - -Usage Notes ------------ - -The driver creates at least two sysfs files for each sensor. - -* ``_label`` reports the sensor label. -* ``_input`` returns the sensor value. - -The sysfs files are allocated in the SMpro rootfs folder, with one root -directory for each instance. - -When the SoC is turned off, the driver will fail to read registers and -return ``-ENXIO``. - -Sysfs entries -------------- - -The following sysfs files are supported: - -* Ampere(R) Altra(R): - - ============ ============= ====== =============================================== - Name Unit Perm Description - ============ ============= ====== =============================================== - temp1_input millicelsius RO SoC temperature - temp2_input millicelsius RO Max temperature reported among SoC VRDs - temp2_crit millicelsius RO SoC VRD HOT Threshold temperature - temp3_input millicelsius RO Max temperature reported among DIMM VRDs - temp4_input millicelsius RO Max temperature reported among Core VRDs - temp5_input millicelsius RO Temperature of DIMM0 on CH0 - temp5_crit millicelsius RO MEM HOT Threshold for all DIMMs - temp6_input millicelsius RO Temperature of DIMM0 on CH1 - temp6_crit millicelsius RO MEM HOT Threshold for all DIMMs - temp7_input millicelsius RO Temperature of DIMM0 on CH2 - temp7_crit millicelsius RO MEM HOT Threshold for all DIMMs - temp8_input millicelsius RO Temperature of DIMM0 on CH3 - temp8_crit millicelsius RO MEM HOT Threshold for all DIMMs - temp9_input millicelsius RO Temperature of DIMM0 on CH4 - temp9_crit millicelsius RO MEM HOT Threshold for all DIMMs - temp10_input millicelsius RO Temperature of DIMM0 on CH5 - temp10_crit millicelsius RO MEM HOT Threshold for all DIMMs - temp11_input millicelsius RO Temperature of DIMM0 on CH6 - temp11_crit millicelsius RO MEM HOT Threshold for all DIMMs - temp12_input millicelsius RO Temperature of DIMM0 on CH7 - temp12_crit millicelsius RO MEM HOT Threshold for all DIMMs - temp13_input millicelsius RO Max temperature reported among RCA VRDs - in0_input millivolts RO Core voltage - in1_input millivolts RO SoC voltage - in2_input millivolts RO DIMM VRD1 voltage - in3_input millivolts RO DIMM VRD2 voltage - in4_input millivolts RO RCA VRD voltage - cur1_input milliamperes RO Core VRD current - cur2_input milliamperes RO SoC VRD current - cur3_input milliamperes RO DIMM VRD1 current - cur4_input milliamperes RO DIMM VRD2 current - cur5_input milliamperes RO RCA VRD current - power1_input microwatts RO Core VRD power - power2_input microwatts RO SoC VRD power - power3_input microwatts RO DIMM VRD1 power - power4_input microwatts RO DIMM VRD2 power - power5_input microwatts RO RCA VRD power - ============ ============= ====== =============================================== - - Example:: - - # cat in0_input - 830 - # cat temp1_input - 37000 - # cat curr1_input - 9000 - # cat power5_input - 19500000 +.. SPDX-License-Identifier: GPL-2.0-only + +Kernel driver Ampere(R)'s Altra(R) SMpro hwmon +============================================== + +Supported chips: + + * Ampere(R) Altra(R) + + Prefix: ``smpro`` + + Reference: `Altra SoC BMC Interface Specification` + +Author: Thu Nguyen + +Description +----------- +The smpro-hwmon driver supports hardware monitoring for Ampere(R) Altra(R) +SoCs based on the SMpro co-processor (SMpro). The following sensor metrics +are supported by the driver: + + * temperature + * voltage + * current + * power + +The interface provides the registers to query the various sensors and +their values which are then exported to userspace by this driver. + +Usage Notes +----------- + +The driver creates at least two sysfs files for each sensor. + +* ``_label`` reports the sensor label. +* ``_input`` returns the sensor value. + +The sysfs files are allocated in the SMpro rootfs folder, with one root +directory for each instance. + +When the SoC is turned off, the driver will fail to read registers and +return ``-ENXIO``. + +Sysfs entries +------------- + +The following sysfs files are supported: + +* Ampere(R) Altra(R): + + ============ ============= ====== =============================================== + Name Unit Perm Description + ============ ============= ====== =============================================== + temp1_input millicelsius RO SoC temperature + temp2_input millicelsius RO Max temperature reported among SoC VRDs + temp2_crit millicelsius RO SoC VRD HOT Threshold temperature + temp3_input millicelsius RO Max temperature reported among DIMM VRDs + temp4_input millicelsius RO Max temperature reported among Core VRDs + temp5_input millicelsius RO Temperature of DIMM0 on CH0 + temp5_crit millicelsius RO MEM HOT Threshold for all DIMMs + temp6_input millicelsius RO Temperature of DIMM0 on CH1 + temp6_crit millicelsius RO MEM HOT Threshold for all DIMMs + temp7_input millicelsius RO Temperature of DIMM0 on CH2 + temp7_crit millicelsius RO MEM HOT Threshold for all DIMMs + temp8_input millicelsius RO Temperature of DIMM0 on CH3 + temp8_crit millicelsius RO MEM HOT Threshold for all DIMMs + temp9_input millicelsius RO Temperature of DIMM0 on CH4 + temp9_crit millicelsius RO MEM HOT Threshold for all DIMMs + temp10_input millicelsius RO Temperature of DIMM0 on CH5 + temp10_crit millicelsius RO MEM HOT Threshold for all DIMMs + temp11_input millicelsius RO Temperature of DIMM0 on CH6 + temp11_crit millicelsius RO MEM HOT Threshold for all DIMMs + temp12_input millicelsius RO Temperature of DIMM0 on CH7 + temp12_crit millicelsius RO MEM HOT Threshold for all DIMMs + temp13_input millicelsius RO Max temperature reported among RCA VRDs + in0_input millivolts RO Core voltage + in1_input millivolts RO SoC voltage + in2_input millivolts RO DIMM VRD1 voltage + in3_input millivolts RO DIMM VRD2 voltage + in4_input millivolts RO RCA VRD voltage + cur1_input milliamperes RO Core VRD current + cur2_input milliamperes RO SoC VRD current + cur3_input milliamperes RO DIMM VRD1 current + cur4_input milliamperes RO DIMM VRD2 current + cur5_input milliamperes RO RCA VRD current + power1_input microwatts RO Core VRD power + power2_input microwatts RO SoC VRD power + power3_input microwatts RO DIMM VRD1 power + power4_input microwatts RO DIMM VRD2 power + power5_input microwatts RO RCA VRD power + ============ ============= ====== =============================================== + + Example:: + + # cat in0_input + 830 + # cat temp1_input + 37000 + # cat curr1_input + 9000 + # cat power5_input + 19500000 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/smsc47m192.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/smsc47m192.rst index 95eb2f103..a2e86ab67 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/smsc47m192.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/smsc47m192.rst @@ -1,116 +1,116 @@ -Kernel driver smsc47m192 -======================== - -Supported chips: - - * SMSC LPC47M192, LPC47M15x, LPC47M292 and LPC47M997 - - Prefix: 'smsc47m192' - - Addresses scanned: I2C 0x2c - 0x2d - - Datasheet: The datasheet for LPC47M192 is publicly available from - - http://www.smsc.com/ - - The LPC47M15x, LPC47M292 and LPC47M997 are compatible for - - hardware monitoring. - - - -Author: - - Hartmut Rick - - - Special thanks to Jean Delvare for careful checking - of the code and many helpful comments and suggestions. - - -Description ------------ - -This driver implements support for the hardware sensor capabilities -of the SMSC LPC47M192 and compatible Super-I/O chips. - -These chips support 3 temperature channels and 8 voltage inputs -as well as CPU voltage VID input. - -They do also have fan monitoring and control capabilities, but the -these features are accessed via ISA bus and are not supported by this -driver. Use the 'smsc47m1' driver for fan monitoring and control. - -Voltages and temperatures are measured by an 8-bit ADC, the resolution -of the temperatures is 1 bit per degree C. -Voltages are scaled such that the nominal voltage corresponds to -192 counts, i.e. 3/4 of the full range. Thus the available range for -each voltage channel is 0V ... 255/192*(nominal voltage), the resolution -is 1 bit per (nominal voltage)/192. -Both voltage and temperature values are scaled by 1000, the sys files -show voltages in mV and temperatures in units of 0.001 degC. - -The +12V analog voltage input channel (in4_input) is multiplexed with -bit 4 of the encoded CPU voltage. This means that you either get -a +12V voltage measurement or a 5 bit CPU VID, but not both. -The default setting is to use the pin as 12V input, and use only 4 bit VID. -This driver assumes that the information in the configuration register -is correct, i.e. that the BIOS has updated the configuration if -the motherboard has this input wired to VID4. - -The temperature and voltage readings are updated once every 1.5 seconds. -Reading them more often repeats the same values. - - -sysfs interface ---------------- - -===================== ========================================================== -in0_input +2.5V voltage input -in1_input CPU voltage input (nominal 2.25V) -in2_input +3.3V voltage input -in3_input +5V voltage input -in4_input +12V voltage input (may be missing if used as VID4) -in5_input Vcc voltage input (nominal 3.3V) - This is the supply voltage of the sensor chip itself. -in6_input +1.5V voltage input -in7_input +1.8V voltage input - -in[0-7]_min, -in[0-7]_max lower and upper alarm thresholds for in[0-7]_input reading - - All voltages are read and written in mV. - -in[0-7]_alarm alarm flags for voltage inputs - These files read '1' in case of alarm, '0' otherwise. - -temp1_input chip temperature measured by on-chip diode -temp[2-3]_input temperature measured by external diodes (one of these - would typically be wired to the diode inside the CPU) - -temp[1-3]_min, -temp[1-3]_max lower and upper alarm thresholds for temperatures - -temp[1-3]_offset temperature offset registers - The chip adds the offsets stored in these registers to - the corresponding temperature readings. - Note that temp1 and temp2 offsets share the same register, - they cannot both be different from zero at the same time. - Writing a non-zero number to one of them will reset the other - offset to zero. - - All temperatures and offsets are read and written in - units of 0.001 degC. - -temp[1-3]_alarm alarm flags for temperature inputs, '1' in case of alarm, - '0' otherwise. -temp[2-3]_input_fault diode fault flags for temperature inputs 2 and 3. - A fault is detected if the two pins for the corresponding - sensor are open or shorted, or any of the two is shorted - to ground or Vcc. '1' indicates a diode fault. - -cpu0_vid CPU voltage as received from the CPU - -vrm CPU VID standard used for decoding CPU voltage -===================== ========================================================== - -The `*_min`, `*_max`, `*_offset` and `vrm` files can be read and written, -all others are read-only. +Kernel driver smsc47m192 +======================== + +Supported chips: + + * SMSC LPC47M192, LPC47M15x, LPC47M292 and LPC47M997 + + Prefix: 'smsc47m192' + + Addresses scanned: I2C 0x2c - 0x2d + + Datasheet: The datasheet for LPC47M192 is publicly available from + + http://www.smsc.com/ + + The LPC47M15x, LPC47M292 and LPC47M997 are compatible for + + hardware monitoring. + + + +Author: + - Hartmut Rick + + - Special thanks to Jean Delvare for careful checking + of the code and many helpful comments and suggestions. + + +Description +----------- + +This driver implements support for the hardware sensor capabilities +of the SMSC LPC47M192 and compatible Super-I/O chips. + +These chips support 3 temperature channels and 8 voltage inputs +as well as CPU voltage VID input. + +They do also have fan monitoring and control capabilities, but the +these features are accessed via ISA bus and are not supported by this +driver. Use the 'smsc47m1' driver for fan monitoring and control. + +Voltages and temperatures are measured by an 8-bit ADC, the resolution +of the temperatures is 1 bit per degree C. +Voltages are scaled such that the nominal voltage corresponds to +192 counts, i.e. 3/4 of the full range. Thus the available range for +each voltage channel is 0V ... 255/192*(nominal voltage), the resolution +is 1 bit per (nominal voltage)/192. +Both voltage and temperature values are scaled by 1000, the sys files +show voltages in mV and temperatures in units of 0.001 degC. + +The +12V analog voltage input channel (in4_input) is multiplexed with +bit 4 of the encoded CPU voltage. This means that you either get +a +12V voltage measurement or a 5 bit CPU VID, but not both. +The default setting is to use the pin as 12V input, and use only 4 bit VID. +This driver assumes that the information in the configuration register +is correct, i.e. that the BIOS has updated the configuration if +the motherboard has this input wired to VID4. + +The temperature and voltage readings are updated once every 1.5 seconds. +Reading them more often repeats the same values. + + +sysfs interface +--------------- + +===================== ========================================================== +in0_input +2.5V voltage input +in1_input CPU voltage input (nominal 2.25V) +in2_input +3.3V voltage input +in3_input +5V voltage input +in4_input +12V voltage input (may be missing if used as VID4) +in5_input Vcc voltage input (nominal 3.3V) + This is the supply voltage of the sensor chip itself. +in6_input +1.5V voltage input +in7_input +1.8V voltage input + +in[0-7]_min, +in[0-7]_max lower and upper alarm thresholds for in[0-7]_input reading + + All voltages are read and written in mV. + +in[0-7]_alarm alarm flags for voltage inputs + These files read '1' in case of alarm, '0' otherwise. + +temp1_input chip temperature measured by on-chip diode +temp[2-3]_input temperature measured by external diodes (one of these + would typically be wired to the diode inside the CPU) + +temp[1-3]_min, +temp[1-3]_max lower and upper alarm thresholds for temperatures + +temp[1-3]_offset temperature offset registers + The chip adds the offsets stored in these registers to + the corresponding temperature readings. + Note that temp1 and temp2 offsets share the same register, + they cannot both be different from zero at the same time. + Writing a non-zero number to one of them will reset the other + offset to zero. + + All temperatures and offsets are read and written in + units of 0.001 degC. + +temp[1-3]_alarm alarm flags for temperature inputs, '1' in case of alarm, + '0' otherwise. +temp[2-3]_input_fault diode fault flags for temperature inputs 2 and 3. + A fault is detected if the two pins for the corresponding + sensor are open or shorted, or any of the two is shorted + to ground or Vcc. '1' indicates a diode fault. + +cpu0_vid CPU voltage as received from the CPU + +vrm CPU VID standard used for decoding CPU voltage +===================== ========================================================== + +The `*_min`, `*_max`, `*_offset` and `vrm` files can be read and written, +all others are read-only. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/tps53679.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/tps53679.rst index e95793f2c..3b9561648 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/tps53679.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/tps53679.rst @@ -1,187 +1,187 @@ -Kernel driver tps53679 -====================== - -Supported chips: - - * Texas Instruments TPS53647 - - Prefix: 'tps53647' - - Addresses scanned: - - - Datasheet: https://www.ti.com/lit/gpn/tps53647 - - * Texas Instruments TPS53667 - - Prefix: 'tps53667' - - Addresses scanned: - - - Datasheet: https://www.ti.com/lit/gpn/TPS53667 - - * Texas Instruments TPS53676 - - Prefix: 'tps53676' - - Addresses scanned: - - - Datasheet: https://www.ti.com/lit/gpn/TPS53676 - - * Texas Instruments TPS53679 - - Prefix: 'tps53679' - - Addresses scanned: - - - Datasheet: https://www.ti.com/lit/gpn/TPS53679 (short version) - - * Texas Instruments TPS53681 - - Prefix: 'tps53681' - - Addresses scanned: - - - Datasheet: https://www.ti.com/lit/gpn/TPS53681 - - * Texas Instruments TPS53688 - - Prefix: 'tps53688' - - Addresses scanned: - - - Datasheet: Available under NDA - - -Authors: - Vadim Pasternak - Guenter Roeck - - -Description ------------ - -Chips in this series are multi-phase step-down converters with one or two -output channels and up to 8 phases per channel. - - -Usage Notes ------------ - -This driver does not probe for PMBus devices. You will have to instantiate -devices explicitly. - -Example: the following commands will load the driver for an TPS53681 at address -0x60 on I2C bus #1:: - - # modprobe tps53679 - # echo tps53681 0x60 > /sys/bus/i2c/devices/i2c-1/new_device - - -Sysfs attributes ----------------- - -======================= ======================================================== -in1_label "vin" - -in1_input Measured input voltage. - -in1_lcrit Critical minimum input voltage - - TPS53679, TPS53681, TPS53688 only. - -in1_lcrit_alarm Input voltage critical low alarm. - - TPS53679, TPS53681, TPS53688 only. - -in1_crit Critical maximum input voltage. - -in1_crit_alarm Input voltage critical high alarm. - -in[N]_label "vout[1-2]" - - - TPS53647, TPS53667: N=2 - - TPS53679, TPS53588: N=2,3 - -in[N]_input Measured output voltage. - -in[N]_lcrit Critical minimum input voltage. - - TPS53679, TPS53681, TPS53688 only. - -in[N]_lcrit_alarm Critical minimum voltage alarm. - - TPS53679, TPS53681, TPS53688 only. - -in[N]_alarm Output voltage alarm. - - TPS53647, TPS53667 only. - -in[N]_crit Critical maximum output voltage. - - TPS53679, TPS53681, TPS53688 only. - -in[N]_crit_alarm Output voltage critical high alarm. - - TPS53679, TPS53681, TPS53688 only. - -temp[N]_input Measured temperature. - - - TPS53647, TPS53667: N=1 - - TPS53679, TPS53681, TPS53588: N=1,2 - -temp[N]_max Maximum temperature. - -temp[N]_crit Critical high temperature. - -temp[N]_max_alarm Temperature high alarm. - -temp[N]_crit_alarm Temperature critical high alarm. - -power1_label "pin". - -power1_input Measured input power. - -power[N]_label "pout[1-2]". - - - TPS53647, TPS53667: N=2 - - TPS53676, TPS53679, TPS53681, TPS53588: N=2,3 - -power[N]_input Measured output power. - -curr1_label "iin". - -curr1_input Measured input current. - -curr1_max Maximum input current. - -curr1_max_alarm Input current high alarm. - -curr1_crit Critical input current. - -curr1_crit_alarm Input current critical alarm. - -curr[N]_label "iout[1-2]" or "iout1.[0-5]". - - The first digit is the output channel, the second - digit is the phase within the channel. Per-phase - telemetry supported on TPS53676 and TPS53681 only. - - - TPS53647, TPS53667: N=2 - - TPS53679, TPS53588: N=2,3 - - TPS53676: N=2-8 - - TPS53681: N=2-9 - -curr[N]_input Measured output current. - -curr[N]_max Maximum output current. - -curr[N]_crit Critical high output current. - -curr[N]_max_alarm Output current high alarm. - -curr[N]_crit_alarm Output current critical high alarm. - - Limit and alarm attributes are only available for - non-phase telemetry (iout1, iout2). - -======================= ======================================================== +Kernel driver tps53679 +====================== + +Supported chips: + + * Texas Instruments TPS53647 + + Prefix: 'tps53647' + + Addresses scanned: - + + Datasheet: https://www.ti.com/lit/gpn/tps53647 + + * Texas Instruments TPS53667 + + Prefix: 'tps53667' + + Addresses scanned: - + + Datasheet: https://www.ti.com/lit/gpn/TPS53667 + + * Texas Instruments TPS53676 + + Prefix: 'tps53676' + + Addresses scanned: - + + Datasheet: https://www.ti.com/lit/gpn/TPS53676 + + * Texas Instruments TPS53679 + + Prefix: 'tps53679' + + Addresses scanned: - + + Datasheet: https://www.ti.com/lit/gpn/TPS53679 (short version) + + * Texas Instruments TPS53681 + + Prefix: 'tps53681' + + Addresses scanned: - + + Datasheet: https://www.ti.com/lit/gpn/TPS53681 + + * Texas Instruments TPS53688 + + Prefix: 'tps53688' + + Addresses scanned: - + + Datasheet: Available under NDA + + +Authors: + Vadim Pasternak + Guenter Roeck + + +Description +----------- + +Chips in this series are multi-phase step-down converters with one or two +output channels and up to 8 phases per channel. + + +Usage Notes +----------- + +This driver does not probe for PMBus devices. You will have to instantiate +devices explicitly. + +Example: the following commands will load the driver for an TPS53681 at address +0x60 on I2C bus #1:: + + # modprobe tps53679 + # echo tps53681 0x60 > /sys/bus/i2c/devices/i2c-1/new_device + + +Sysfs attributes +---------------- + +======================= ======================================================== +in1_label "vin" + +in1_input Measured input voltage. + +in1_lcrit Critical minimum input voltage + + TPS53679, TPS53681, TPS53688 only. + +in1_lcrit_alarm Input voltage critical low alarm. + + TPS53679, TPS53681, TPS53688 only. + +in1_crit Critical maximum input voltage. + +in1_crit_alarm Input voltage critical high alarm. + +in[N]_label "vout[1-2]" + + - TPS53647, TPS53667: N=2 + - TPS53679, TPS53588: N=2,3 + +in[N]_input Measured output voltage. + +in[N]_lcrit Critical minimum input voltage. + + TPS53679, TPS53681, TPS53688 only. + +in[N]_lcrit_alarm Critical minimum voltage alarm. + + TPS53679, TPS53681, TPS53688 only. + +in[N]_alarm Output voltage alarm. + + TPS53647, TPS53667 only. + +in[N]_crit Critical maximum output voltage. + + TPS53679, TPS53681, TPS53688 only. + +in[N]_crit_alarm Output voltage critical high alarm. + + TPS53679, TPS53681, TPS53688 only. + +temp[N]_input Measured temperature. + + - TPS53647, TPS53667: N=1 + - TPS53679, TPS53681, TPS53588: N=1,2 + +temp[N]_max Maximum temperature. + +temp[N]_crit Critical high temperature. + +temp[N]_max_alarm Temperature high alarm. + +temp[N]_crit_alarm Temperature critical high alarm. + +power1_label "pin". + +power1_input Measured input power. + +power[N]_label "pout[1-2]". + + - TPS53647, TPS53667: N=2 + - TPS53676, TPS53679, TPS53681, TPS53588: N=2,3 + +power[N]_input Measured output power. + +curr1_label "iin". + +curr1_input Measured input current. + +curr1_max Maximum input current. + +curr1_max_alarm Input current high alarm. + +curr1_crit Critical input current. + +curr1_crit_alarm Input current critical alarm. + +curr[N]_label "iout[1-2]" or "iout1.[0-5]". + + The first digit is the output channel, the second + digit is the phase within the channel. Per-phase + telemetry supported on TPS53676 and TPS53681 only. + + - TPS53647, TPS53667: N=2 + - TPS53679, TPS53588: N=2,3 + - TPS53676: N=2-8 + - TPS53681: N=2-9 + +curr[N]_input Measured output current. + +curr[N]_max Maximum output current. + +curr[N]_crit Critical high output current. + +curr[N]_max_alarm Output current high alarm. + +curr[N]_crit_alarm Output current critical high alarm. + + Limit and alarm attributes are only available for + non-phase telemetry (iout1, iout2). + +======================= ======================================================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/via686a.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/via686a.rst index c16d67c0b..8c52a9207 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/via686a.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/via686a.rst @@ -1,84 +1,84 @@ -Kernel driver via686a -===================== - -Supported chips: - - * Via VT82C686A, VT82C686B Southbridge Integrated Hardware Monitor - - Prefix: 'via686a' - - Addresses scanned: ISA in PCI-space encoded address - - Datasheet: On request through web form (http://www.via.com.tw/en/resources/download-center/) - -Authors: - - Kyösti Mälkki , - - Mark D. Studebaker - - Bob Dougherty - - (Some conversion-factor data were contributed by - - Jonathan Teh Soon Yew - - and Alex van Kaam .) - -Module Parameters ------------------ - -======================= ======================================================= -force_addr=0xaddr Set the I/O base address. Useful for boards that - don't set the address in the BIOS. Look for a BIOS - upgrade before resorting to this. Does not do a - PCI force; the via686a must still be present in lspci. - Don't use this unless the driver complains that the - base address is not set. - Example: 'modprobe via686a force_addr=0x6000' -======================= ======================================================= - -Description ------------ - -The driver does not distinguish between the chips and reports -all as a 686A. - -The Via 686a southbridge has integrated hardware monitor functionality. -It also has an I2C bus, but this driver only supports the hardware monitor. -For the I2C bus driver, see - -The Via 686a implements three temperature sensors, two fan rotation speed -sensors, five voltage sensors and alarms. - -Temperatures are measured in degrees Celsius. An alarm is triggered once -when the Overtemperature Shutdown limit is crossed; it is triggered again -as soon as it drops below the hysteresis value. - -Fan rotation speeds are reported in RPM (rotations per minute). An alarm is -triggered if the rotation speed has dropped below a programmable limit. Fan -readings can be divided by a programmable divider (1, 2, 4 or 8) to give -the readings more range or accuracy. Not all RPM values can accurately be -represented, so some rounding is done. With a divider of 2, the lowest -representable value is around 2600 RPM. - -Voltage sensors (also known as IN sensors) report their values in volts. -An alarm is triggered if the voltage has crossed a programmable minimum -or maximum limit. Voltages are internally scaled, so each voltage channel -has a different resolution and range. - -If an alarm triggers, it will remain triggered until the hardware register -is read at least once. This means that the cause for the alarm may -already have disappeared! Note that in the current implementation, all -hardware registers are read whenever any data is read (unless it is less -than 1.5 seconds since the last update). This means that you can easily -miss once-only alarms. - -The driver only updates its values each 1.5 seconds; reading it more often -will do no harm, but will return 'old' values. - -Known Issues ------------- - -This driver handles sensors integrated in some VIA south bridges. It is -possible that a motherboard maker used a VT82C686A/B chip as part of a -product design but was not interested in its hardware monitoring features, -in which case the sensor inputs will not be wired. This is the case of -the Asus K7V, A7V and A7V133 motherboards, to name only a few of them. -So, if you need the force_addr parameter, and end up with values which -don't seem to make any sense, don't look any further: your chip is simply -not wired for hardware monitoring. +Kernel driver via686a +===================== + +Supported chips: + + * Via VT82C686A, VT82C686B Southbridge Integrated Hardware Monitor + + Prefix: 'via686a' + + Addresses scanned: ISA in PCI-space encoded address + + Datasheet: On request through web form (http://www.via.com.tw/en/resources/download-center/) + +Authors: + - Kyösti Mälkki , + - Mark D. Studebaker + - Bob Dougherty + - (Some conversion-factor data were contributed by + - Jonathan Teh Soon Yew + - and Alex van Kaam .) + +Module Parameters +----------------- + +======================= ======================================================= +force_addr=0xaddr Set the I/O base address. Useful for boards that + don't set the address in the BIOS. Look for a BIOS + upgrade before resorting to this. Does not do a + PCI force; the via686a must still be present in lspci. + Don't use this unless the driver complains that the + base address is not set. + Example: 'modprobe via686a force_addr=0x6000' +======================= ======================================================= + +Description +----------- + +The driver does not distinguish between the chips and reports +all as a 686A. + +The Via 686a southbridge has integrated hardware monitor functionality. +It also has an I2C bus, but this driver only supports the hardware monitor. +For the I2C bus driver, see + +The Via 686a implements three temperature sensors, two fan rotation speed +sensors, five voltage sensors and alarms. + +Temperatures are measured in degrees Celsius. An alarm is triggered once +when the Overtemperature Shutdown limit is crossed; it is triggered again +as soon as it drops below the hysteresis value. + +Fan rotation speeds are reported in RPM (rotations per minute). An alarm is +triggered if the rotation speed has dropped below a programmable limit. Fan +readings can be divided by a programmable divider (1, 2, 4 or 8) to give +the readings more range or accuracy. Not all RPM values can accurately be +represented, so some rounding is done. With a divider of 2, the lowest +representable value is around 2600 RPM. + +Voltage sensors (also known as IN sensors) report their values in volts. +An alarm is triggered if the voltage has crossed a programmable minimum +or maximum limit. Voltages are internally scaled, so each voltage channel +has a different resolution and range. + +If an alarm triggers, it will remain triggered until the hardware register +is read at least once. This means that the cause for the alarm may +already have disappeared! Note that in the current implementation, all +hardware registers are read whenever any data is read (unless it is less +than 1.5 seconds since the last update). This means that you can easily +miss once-only alarms. + +The driver only updates its values each 1.5 seconds; reading it more often +will do no harm, but will return 'old' values. + +Known Issues +------------ + +This driver handles sensors integrated in some VIA south bridges. It is +possible that a motherboard maker used a VT82C686A/B chip as part of a +product design but was not interested in its hardware monitoring features, +in which case the sensor inputs will not be wired. This is the case of +the Asus K7V, A7V and A7V133 motherboards, to name only a few of them. +So, if you need the force_addr parameter, and end up with values which +don't seem to make any sense, don't look any further: your chip is simply +not wired for hardware monitoring. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/w83627hf.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/w83627hf.rst index 8bfc91c6d..d1406c28d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/w83627hf.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/w83627hf.rst @@ -1,124 +1,124 @@ -Kernel driver w83627hf -====================== - -Supported chips: - * Winbond W83627HF (ISA accesses ONLY) - Prefix: 'w83627hf' - Addresses scanned: ISA address retrieved from Super I/O registers - * Winbond W83627THF - Prefix: 'w83627thf' - Addresses scanned: ISA address retrieved from Super I/O registers - * Winbond W83697HF - Prefix: 'w83697hf' - Addresses scanned: ISA address retrieved from Super I/O registers - * Winbond W83637HF - Prefix: 'w83637hf' - Addresses scanned: ISA address retrieved from Super I/O registers - * Winbond W83687THF - Prefix: 'w83687thf' - Addresses scanned: ISA address retrieved from Super I/O registers - Datasheet: Provided by Winbond on request(http://www.winbond.com/hq/enu) - -Authors: - Frodo Looijaard , - Philip Edelbrock , - Mark Studebaker , - Bernhard C. Schrenk - -Module Parameters ------------------ - -* force_i2c: int - Initialize the I2C address of the sensors -* init: int - (default is 1) - Use 'init=0' to bypass initializing the chip. - Try this if your computer crashes when you load the module. - -Description ------------ - -This driver implements support for ISA accesses *only* for -the Winbond W83627HF, W83627THF, W83697HF and W83637HF Super I/O chips. -We will refer to them collectively as Winbond chips. - -This driver supports ISA accesses, which should be more reliable -than i2c accesses. Also, for Tyan boards which contain both a -Super I/O chip and a second i2c-only Winbond chip (often a W83782D), -using this driver will avoid i2c address conflicts and complex -initialization that were required in the w83781d driver. - -If you really want i2c accesses for these Super I/O chips, -use the w83781d driver. However this is not the preferred method -now that this ISA driver has been developed. - -The `w83627_HF_` uses pins 110-106 as VID0-VID4. The `w83627_THF_` uses the -same pins as GPIO[0:4]. Technically, the `w83627_THF_` does not support a -VID reading. However the two chips have the identical 128 pin package. So, -it is possible or even likely for a w83627thf to have the VID signals routed -to these pins despite their not being labeled for that purpose. Therefore, -the w83627thf driver interprets these as VID. If the VID on your board -doesn't work, first see doc/vid in the lm_sensors package[1]. If that still -doesn't help, you may just ignore the bogus VID reading with no harm done. - -For further information on this driver see the w83781d driver documentation. - -[1] http://www.lm-sensors.org/browser/lm-sensors/trunk/doc/vid - -Forcing the address -------------------- - -The driver used to have a module parameter named force_addr, which could -be used to force the base I/O address of the hardware monitoring block. -This was meant as a workaround for mainboards with a broken BIOS. This -module parameter is gone for technical reasons. If you need this feature, -you can obtain the same result by using the isaset tool (part of -lm-sensors) before loading the driver: - -# Enter the Super I/O config space:: - - isaset -y -f 0x2e 0x87 - isaset -y -f 0x2e 0x87 - -# Select the hwmon logical device:: - - isaset -y 0x2e 0x2f 0x07 0x0b - -# Set the base I/O address (to 0x290 in this example):: - - isaset -y 0x2e 0x2f 0x60 0x02 - isaset -y 0x2e 0x2f 0x61 0x90 - -# Exit the Super-I/O config space:: - - isaset -y -f 0x2e 0xaa - -The above sequence assumes a Super-I/O config space at 0x2e/0x2f, but -0x4e/0x4f is also possible. - -Voltage pin mapping -------------------- - -Here is a summary of the voltage pin mapping for the W83627THF. This -can be useful to convert data provided by board manufacturers into -working libsensors configuration statements: - - -- W83627THF - - - ======== =============== =============== =============== - Pin Name Register Sysfs attribute - ======== =============== =============== =============== - 100 CPUVCORE 20h in0 - 99 VIN0 21h in1 - 98 VIN1 22h in2 - 97 VIN2 24h in4 - 114 AVCC 23h in3 - 61 5VSB 50h (bank 5) in7 - 74 VBAT 51h (bank 5) in8 - ======== =============== =============== =============== - -For other supported devices, you'll have to take the hard path and -look up the information in the datasheet yourself (and then add it -to this document please.) +Kernel driver w83627hf +====================== + +Supported chips: + * Winbond W83627HF (ISA accesses ONLY) + Prefix: 'w83627hf' + Addresses scanned: ISA address retrieved from Super I/O registers + * Winbond W83627THF + Prefix: 'w83627thf' + Addresses scanned: ISA address retrieved from Super I/O registers + * Winbond W83697HF + Prefix: 'w83697hf' + Addresses scanned: ISA address retrieved from Super I/O registers + * Winbond W83637HF + Prefix: 'w83637hf' + Addresses scanned: ISA address retrieved from Super I/O registers + * Winbond W83687THF + Prefix: 'w83687thf' + Addresses scanned: ISA address retrieved from Super I/O registers + Datasheet: Provided by Winbond on request(http://www.winbond.com/hq/enu) + +Authors: + Frodo Looijaard , + Philip Edelbrock , + Mark Studebaker , + Bernhard C. Schrenk + +Module Parameters +----------------- + +* force_i2c: int + Initialize the I2C address of the sensors +* init: int + (default is 1) + Use 'init=0' to bypass initializing the chip. + Try this if your computer crashes when you load the module. + +Description +----------- + +This driver implements support for ISA accesses *only* for +the Winbond W83627HF, W83627THF, W83697HF and W83637HF Super I/O chips. +We will refer to them collectively as Winbond chips. + +This driver supports ISA accesses, which should be more reliable +than i2c accesses. Also, for Tyan boards which contain both a +Super I/O chip and a second i2c-only Winbond chip (often a W83782D), +using this driver will avoid i2c address conflicts and complex +initialization that were required in the w83781d driver. + +If you really want i2c accesses for these Super I/O chips, +use the w83781d driver. However this is not the preferred method +now that this ISA driver has been developed. + +The `w83627_HF_` uses pins 110-106 as VID0-VID4. The `w83627_THF_` uses the +same pins as GPIO[0:4]. Technically, the `w83627_THF_` does not support a +VID reading. However the two chips have the identical 128 pin package. So, +it is possible or even likely for a w83627thf to have the VID signals routed +to these pins despite their not being labeled for that purpose. Therefore, +the w83627thf driver interprets these as VID. If the VID on your board +doesn't work, first see doc/vid in the lm_sensors package[1]. If that still +doesn't help, you may just ignore the bogus VID reading with no harm done. + +For further information on this driver see the w83781d driver documentation. + +[1] http://www.lm-sensors.org/browser/lm-sensors/trunk/doc/vid + +Forcing the address +------------------- + +The driver used to have a module parameter named force_addr, which could +be used to force the base I/O address of the hardware monitoring block. +This was meant as a workaround for mainboards with a broken BIOS. This +module parameter is gone for technical reasons. If you need this feature, +you can obtain the same result by using the isaset tool (part of +lm-sensors) before loading the driver: + +# Enter the Super I/O config space:: + + isaset -y -f 0x2e 0x87 + isaset -y -f 0x2e 0x87 + +# Select the hwmon logical device:: + + isaset -y 0x2e 0x2f 0x07 0x0b + +# Set the base I/O address (to 0x290 in this example):: + + isaset -y 0x2e 0x2f 0x60 0x02 + isaset -y 0x2e 0x2f 0x61 0x90 + +# Exit the Super-I/O config space:: + + isaset -y -f 0x2e 0xaa + +The above sequence assumes a Super-I/O config space at 0x2e/0x2f, but +0x4e/0x4f is also possible. + +Voltage pin mapping +------------------- + +Here is a summary of the voltage pin mapping for the W83627THF. This +can be useful to convert data provided by board manufacturers into +working libsensors configuration statements: + + +- W83627THF + + + ======== =============== =============== =============== + Pin Name Register Sysfs attribute + ======== =============== =============== =============== + 100 CPUVCORE 20h in0 + 99 VIN0 21h in1 + 98 VIN1 22h in2 + 97 VIN2 24h in4 + 114 AVCC 23h in3 + 61 5VSB 50h (bank 5) in7 + 74 VBAT 51h (bank 5) in8 + ======== =============== =============== =============== + +For other supported devices, you'll have to take the hard path and +look up the information in the datasheet yourself (and then add it +to this document please.) diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/w83793.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/w83793.rst index f234dbb64..83bb40c48 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/w83793.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/w83793.rst @@ -1,113 +1,113 @@ -Kernel driver w83793 -==================== - -Supported chips: - - * Winbond W83793G/W83793R - - Prefix: 'w83793' - - Addresses scanned: I2C 0x2c - 0x2f - - Datasheet: Still not published - -Authors: - - Yuan Mu (Winbond Electronics) - - Rudolf Marek - - -Module parameters ------------------ - -* reset int - (default 0) - - This parameter is not recommended, it will lose motherboard specific - settings. Use 'reset=1' to reset the chip when loading this module. - -* force_subclients=bus,caddr,saddr1,saddr2 - This is used to force the i2c addresses for subclients of - a certain chip. Typical usage is `force_subclients=0,0x2f,0x4a,0x4b` - to force the subclients of chip 0x2f on bus 0 to i2c addresses - 0x4a and 0x4b. - - -Description ------------ - -This driver implements support for Winbond W83793G/W83793R chips. - -* Exported features - This driver exports 10 voltage sensors, up to 12 fan tachometer inputs, - 6 remote temperatures, up to 8 sets of PWM fan controls, SmartFan - (automatic fan speed control) on all temperature/PWM combinations, 2 - sets of 6-pin CPU VID input. - -* Sensor resolutions - If your motherboard maker used the reference design, the resolution of - voltage0-2 is 2mV, resolution of voltage3/4/5 is 16mV, 8mV for voltage6, - 24mV for voltage7/8. Temp1-4 have a 0.25 degree Celsius resolution, - temp5-6 have a 1 degree Celsiis resolution. - -* Temperature sensor types - Temp1-4 have 2 possible types. It can be read from (and written to) - temp[1-4]_type. - - - If the value is 3, it starts monitoring using a remote termal diode - (default). - - If the value is 6, it starts monitoring using the temperature sensor - in Intel CPU and get result by PECI. - - Temp5-6 can be connected to external thermistors (value of - temp[5-6]_type is 4). - -* Alarm mechanism - For voltage sensors, an alarm triggers if the measured value is below - the low voltage limit or over the high voltage limit. - For temperature sensors, an alarm triggers if the measured value goes - above the high temperature limit, and wears off only after the measured - value drops below the hysteresis value. - For fan sensors, an alarm triggers if the measured value is below the - low speed limit. - -* SmartFan/PWM control - If you want to set a pwm fan to manual mode, you just need to make sure it - is not controlled by any temp channel, for example, you want to set fan1 - to manual mode, you need to check the value of temp[1-6]_fan_map, make - sure bit 0 is cleared in the 6 values. And then set the pwm1 value to - control the fan. - - Each temperature channel can control all the 8 PWM outputs (by setting the - corresponding bit in tempX_fan_map), you can set the temperature channel - mode using temp[1-6]_pwm_enable, 2 is Thermal Cruise mode and 3 - is the SmartFanII mode. Temperature channels will try to speed up or - slow down all controlled fans, this means one fan can receive different - PWM value requests from different temperature channels, but the chip - will always pick the safest (max) PWM value for each fan. - - In Thermal Cruise mode, the chip attempts to keep the temperature at a - predefined value, within a tolerance margin. So if tempX_input > - thermal_cruiseX + toleranceX, the chip will increase the PWM value, - if tempX_input < thermal_cruiseX - toleranceX, the chip will decrease - the PWM value. If the temperature is within the tolerance range, the PWM - value is left unchanged. - - SmartFanII works differently, you have to define up to 7 PWM, temperature - trip points, defining a PWM/temperature curve which the chip will follow. - While not fundamentally different from the Thermal Cruise mode, the - implementation is quite different, giving you a finer-grained control. - -* Chassis - If the case open alarm triggers, it will stay in this state unless cleared - by writing 0 to the sysfs file "intrusion0_alarm". - -* VID and VRM - The VRM version is detected automatically, don't modify the it unless you - *do* know the cpu VRM version and it's not properly detected. - - -Notes ------ - - Only Fan1-5 and PWM1-3 are guaranteed to always exist, other fan inputs and - PWM outputs may or may not exist depending on the chip pin configuration. +Kernel driver w83793 +==================== + +Supported chips: + + * Winbond W83793G/W83793R + + Prefix: 'w83793' + + Addresses scanned: I2C 0x2c - 0x2f + + Datasheet: Still not published + +Authors: + - Yuan Mu (Winbond Electronics) + - Rudolf Marek + + +Module parameters +----------------- + +* reset int + (default 0) + + This parameter is not recommended, it will lose motherboard specific + settings. Use 'reset=1' to reset the chip when loading this module. + +* force_subclients=bus,caddr,saddr1,saddr2 + This is used to force the i2c addresses for subclients of + a certain chip. Typical usage is `force_subclients=0,0x2f,0x4a,0x4b` + to force the subclients of chip 0x2f on bus 0 to i2c addresses + 0x4a and 0x4b. + + +Description +----------- + +This driver implements support for Winbond W83793G/W83793R chips. + +* Exported features + This driver exports 10 voltage sensors, up to 12 fan tachometer inputs, + 6 remote temperatures, up to 8 sets of PWM fan controls, SmartFan + (automatic fan speed control) on all temperature/PWM combinations, 2 + sets of 6-pin CPU VID input. + +* Sensor resolutions + If your motherboard maker used the reference design, the resolution of + voltage0-2 is 2mV, resolution of voltage3/4/5 is 16mV, 8mV for voltage6, + 24mV for voltage7/8. Temp1-4 have a 0.25 degree Celsius resolution, + temp5-6 have a 1 degree Celsiis resolution. + +* Temperature sensor types + Temp1-4 have 2 possible types. It can be read from (and written to) + temp[1-4]_type. + + - If the value is 3, it starts monitoring using a remote termal diode + (default). + - If the value is 6, it starts monitoring using the temperature sensor + in Intel CPU and get result by PECI. + + Temp5-6 can be connected to external thermistors (value of + temp[5-6]_type is 4). + +* Alarm mechanism + For voltage sensors, an alarm triggers if the measured value is below + the low voltage limit or over the high voltage limit. + For temperature sensors, an alarm triggers if the measured value goes + above the high temperature limit, and wears off only after the measured + value drops below the hysteresis value. + For fan sensors, an alarm triggers if the measured value is below the + low speed limit. + +* SmartFan/PWM control + If you want to set a pwm fan to manual mode, you just need to make sure it + is not controlled by any temp channel, for example, you want to set fan1 + to manual mode, you need to check the value of temp[1-6]_fan_map, make + sure bit 0 is cleared in the 6 values. And then set the pwm1 value to + control the fan. + + Each temperature channel can control all the 8 PWM outputs (by setting the + corresponding bit in tempX_fan_map), you can set the temperature channel + mode using temp[1-6]_pwm_enable, 2 is Thermal Cruise mode and 3 + is the SmartFanII mode. Temperature channels will try to speed up or + slow down all controlled fans, this means one fan can receive different + PWM value requests from different temperature channels, but the chip + will always pick the safest (max) PWM value for each fan. + + In Thermal Cruise mode, the chip attempts to keep the temperature at a + predefined value, within a tolerance margin. So if tempX_input > + thermal_cruiseX + toleranceX, the chip will increase the PWM value, + if tempX_input < thermal_cruiseX - toleranceX, the chip will decrease + the PWM value. If the temperature is within the tolerance range, the PWM + value is left unchanged. + + SmartFanII works differently, you have to define up to 7 PWM, temperature + trip points, defining a PWM/temperature curve which the chip will follow. + While not fundamentally different from the Thermal Cruise mode, the + implementation is quite different, giving you a finer-grained control. + +* Chassis + If the case open alarm triggers, it will stay in this state unless cleared + by writing 0 to the sysfs file "intrusion0_alarm". + +* VID and VRM + The VRM version is detected automatically, don't modify the it unless you + *do* know the cpu VRM version and it's not properly detected. + + +Notes +----- + + Only Fan1-5 and PWM1-3 are guaranteed to always exist, other fan inputs and + PWM outputs may or may not exist depending on the chip pin configuration. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/w83795.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/w83795.rst index bd24d892c..d0615e2fa 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/w83795.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/hwmon/w83795.rst @@ -1,142 +1,142 @@ -Kernel driver w83795 -==================== - -Supported chips: - - * Winbond/Nuvoton W83795G - - Prefix: 'w83795g' - - Addresses scanned: I2C 0x2c - 0x2f - - Datasheet: Available for download on nuvoton.com - - * Winbond/Nuvoton W83795ADG - - Prefix: 'w83795adg' - - Addresses scanned: I2C 0x2c - 0x2f - - Datasheet: Available for download on nuvoton.com - -Authors: - - Wei Song (Nuvoton) - - Jean Delvare - - -Pin mapping ------------ - -Here is a summary of the pin mapping for the W83795G and W83795ADG. -This can be useful to convert data provided by board manufacturers -into working libsensors configuration statements. - - -- W83795G - -========= ======================= =============== ================ -Pin Name Register Sysfs attribute -========= ======================= =============== ================ - 13 VSEN1 (VCORE1) 10h in0 - 14 VSEN2 (VCORE2) 11h in1 - 15 VSEN3 (VCORE3) 12h in2 - 16 VSEN4 13h in3 - 17 VSEN5 14h in4 - 18 VSEN6 15h in5 - 19 VSEN7 16h in6 - 20 VSEN8 17h in7 - 21 VSEN9 18h in8 - 22 VSEN10 19h in9 - 23 VSEN11 1Ah in10 - 28 VTT 1Bh in11 - 24 3VDD 1Ch in12 - 25 3VSB 1Dh in13 - 26 VBAT 1Eh in14 - 3 VSEN12/TR5 1Fh in15/temp5 - 4 VSEN13/TR5 20h in16/temp6 - 5/ 6 VDSEN14/TR1/TD1 21h in17/temp1 - 7/ 8 VDSEN15/TR2/TD2 22h in18/temp2 - 9/ 10 VDSEN16/TR3/TD3 23h in19/temp3 - 11/ 12 VDSEN17/TR4/TD4 24h in20/temp4 - 40 FANIN1 2Eh fan1 - 42 FANIN2 2Fh fan2 - 44 FANIN3 30h fan3 - 46 FANIN4 31h fan4 - 48 FANIN5 32h fan5 - 50 FANIN6 33h fan6 - 52 FANIN7 34h fan7 - 54 FANIN8 35h fan8 - 57 FANIN9 36h fan9 - 58 FANIN10 37h fan10 - 59 FANIN11 38h fan11 - 60 FANIN12 39h fan12 - 31 FANIN13 3Ah fan13 - 35 FANIN14 3Bh fan14 - 41 FANCTL1 10h (bank 2) pwm1 - 43 FANCTL2 11h (bank 2) pwm2 - 45 FANCTL3 12h (bank 2) pwm3 - 47 FANCTL4 13h (bank 2) pwm4 - 49 FANCTL5 14h (bank 2) pwm5 - 51 FANCTL6 15h (bank 2) pwm6 - 53 FANCTL7 16h (bank 2) pwm7 - 55 FANCTL8 17h (bank 2) pwm8 - 29/ 30 PECI/TSI (DTS1) 26h temp7 - 29/ 30 PECI/TSI (DTS2) 27h temp8 - 29/ 30 PECI/TSI (DTS3) 28h temp9 - 29/ 30 PECI/TSI (DTS4) 29h temp10 - 29/ 30 PECI/TSI (DTS5) 2Ah temp11 - 29/ 30 PECI/TSI (DTS6) 2Bh temp12 - 29/ 30 PECI/TSI (DTS7) 2Ch temp13 - 29/ 30 PECI/TSI (DTS8) 2Dh temp14 - 27 CASEOPEN# 46h intrusion0 -========= ======================= =============== ================ - -- W83795ADG - -========= ======================= =============== ================ -Pin Name Register Sysfs attribute -========= ======================= =============== ================ - 10 VSEN1 (VCORE1) 10h in0 - 11 VSEN2 (VCORE2) 11h in1 - 12 VSEN3 (VCORE3) 12h in2 - 13 VSEN4 13h in3 - 14 VSEN5 14h in4 - 15 VSEN6 15h in5 - 16 VSEN7 16h in6 - 17 VSEN8 17h in7 - 22 VTT 1Bh in11 - 18 3VDD 1Ch in12 - 19 3VSB 1Dh in13 - 20 VBAT 1Eh in14 - 48 VSEN12/TR5 1Fh in15/temp5 - 1 VSEN13/TR5 20h in16/temp6 - 2/ 3 VDSEN14/TR1/TD1 21h in17/temp1 - 4/ 5 VDSEN15/TR2/TD2 22h in18/temp2 - 6/ 7 VDSEN16/TR3/TD3 23h in19/temp3 - 8/ 9 VDSEN17/TR4/TD4 24h in20/temp4 - 32 FANIN1 2Eh fan1 - 34 FANIN2 2Fh fan2 - 36 FANIN3 30h fan3 - 37 FANIN4 31h fan4 - 38 FANIN5 32h fan5 - 39 FANIN6 33h fan6 - 40 FANIN7 34h fan7 - 41 FANIN8 35h fan8 - 43 FANIN9 36h fan9 - 44 FANIN10 37h fan10 - 45 FANIN11 38h fan11 - 46 FANIN12 39h fan12 - 24 FANIN13 3Ah fan13 - 28 FANIN14 3Bh fan14 - 33 FANCTL1 10h (bank 2) pwm1 - 35 FANCTL2 11h (bank 2) pwm2 - 23 PECI (DTS1) 26h temp7 - 23 PECI (DTS2) 27h temp8 - 23 PECI (DTS3) 28h temp9 - 23 PECI (DTS4) 29h temp10 - 23 PECI (DTS5) 2Ah temp11 - 23 PECI (DTS6) 2Bh temp12 - 23 PECI (DTS7) 2Ch temp13 - 23 PECI (DTS8) 2Dh temp14 - 21 CASEOPEN# 46h intrusion0 -========= ======================= =============== ================ +Kernel driver w83795 +==================== + +Supported chips: + + * Winbond/Nuvoton W83795G + + Prefix: 'w83795g' + + Addresses scanned: I2C 0x2c - 0x2f + + Datasheet: Available for download on nuvoton.com + + * Winbond/Nuvoton W83795ADG + + Prefix: 'w83795adg' + + Addresses scanned: I2C 0x2c - 0x2f + + Datasheet: Available for download on nuvoton.com + +Authors: + - Wei Song (Nuvoton) + - Jean Delvare + + +Pin mapping +----------- + +Here is a summary of the pin mapping for the W83795G and W83795ADG. +This can be useful to convert data provided by board manufacturers +into working libsensors configuration statements. + + +- W83795G + +========= ======================= =============== ================ +Pin Name Register Sysfs attribute +========= ======================= =============== ================ + 13 VSEN1 (VCORE1) 10h in0 + 14 VSEN2 (VCORE2) 11h in1 + 15 VSEN3 (VCORE3) 12h in2 + 16 VSEN4 13h in3 + 17 VSEN5 14h in4 + 18 VSEN6 15h in5 + 19 VSEN7 16h in6 + 20 VSEN8 17h in7 + 21 VSEN9 18h in8 + 22 VSEN10 19h in9 + 23 VSEN11 1Ah in10 + 28 VTT 1Bh in11 + 24 3VDD 1Ch in12 + 25 3VSB 1Dh in13 + 26 VBAT 1Eh in14 + 3 VSEN12/TR5 1Fh in15/temp5 + 4 VSEN13/TR5 20h in16/temp6 + 5/ 6 VDSEN14/TR1/TD1 21h in17/temp1 + 7/ 8 VDSEN15/TR2/TD2 22h in18/temp2 + 9/ 10 VDSEN16/TR3/TD3 23h in19/temp3 + 11/ 12 VDSEN17/TR4/TD4 24h in20/temp4 + 40 FANIN1 2Eh fan1 + 42 FANIN2 2Fh fan2 + 44 FANIN3 30h fan3 + 46 FANIN4 31h fan4 + 48 FANIN5 32h fan5 + 50 FANIN6 33h fan6 + 52 FANIN7 34h fan7 + 54 FANIN8 35h fan8 + 57 FANIN9 36h fan9 + 58 FANIN10 37h fan10 + 59 FANIN11 38h fan11 + 60 FANIN12 39h fan12 + 31 FANIN13 3Ah fan13 + 35 FANIN14 3Bh fan14 + 41 FANCTL1 10h (bank 2) pwm1 + 43 FANCTL2 11h (bank 2) pwm2 + 45 FANCTL3 12h (bank 2) pwm3 + 47 FANCTL4 13h (bank 2) pwm4 + 49 FANCTL5 14h (bank 2) pwm5 + 51 FANCTL6 15h (bank 2) pwm6 + 53 FANCTL7 16h (bank 2) pwm7 + 55 FANCTL8 17h (bank 2) pwm8 + 29/ 30 PECI/TSI (DTS1) 26h temp7 + 29/ 30 PECI/TSI (DTS2) 27h temp8 + 29/ 30 PECI/TSI (DTS3) 28h temp9 + 29/ 30 PECI/TSI (DTS4) 29h temp10 + 29/ 30 PECI/TSI (DTS5) 2Ah temp11 + 29/ 30 PECI/TSI (DTS6) 2Bh temp12 + 29/ 30 PECI/TSI (DTS7) 2Ch temp13 + 29/ 30 PECI/TSI (DTS8) 2Dh temp14 + 27 CASEOPEN# 46h intrusion0 +========= ======================= =============== ================ + +- W83795ADG + +========= ======================= =============== ================ +Pin Name Register Sysfs attribute +========= ======================= =============== ================ + 10 VSEN1 (VCORE1) 10h in0 + 11 VSEN2 (VCORE2) 11h in1 + 12 VSEN3 (VCORE3) 12h in2 + 13 VSEN4 13h in3 + 14 VSEN5 14h in4 + 15 VSEN6 15h in5 + 16 VSEN7 16h in6 + 17 VSEN8 17h in7 + 22 VTT 1Bh in11 + 18 3VDD 1Ch in12 + 19 3VSB 1Dh in13 + 20 VBAT 1Eh in14 + 48 VSEN12/TR5 1Fh in15/temp5 + 1 VSEN13/TR5 20h in16/temp6 + 2/ 3 VDSEN14/TR1/TD1 21h in17/temp1 + 4/ 5 VDSEN15/TR2/TD2 22h in18/temp2 + 6/ 7 VDSEN16/TR3/TD3 23h in19/temp3 + 8/ 9 VDSEN17/TR4/TD4 24h in20/temp4 + 32 FANIN1 2Eh fan1 + 34 FANIN2 2Fh fan2 + 36 FANIN3 30h fan3 + 37 FANIN4 31h fan4 + 38 FANIN5 32h fan5 + 39 FANIN6 33h fan6 + 40 FANIN7 34h fan7 + 41 FANIN8 35h fan8 + 43 FANIN9 36h fan9 + 44 FANIN10 37h fan10 + 45 FANIN11 38h fan11 + 46 FANIN12 39h fan12 + 24 FANIN13 3Ah fan13 + 28 FANIN14 3Bh fan14 + 33 FANCTL1 10h (bank 2) pwm1 + 35 FANCTL2 11h (bank 2) pwm2 + 23 PECI (DTS1) 26h temp7 + 23 PECI (DTS2) 27h temp8 + 23 PECI (DTS3) 28h temp9 + 23 PECI (DTS4) 29h temp10 + 23 PECI (DTS5) 2Ah temp11 + 23 PECI (DTS6) 2Bh temp12 + 23 PECI (DTS7) 2Ch temp13 + 23 PECI (DTS8) 2Dh temp14 + 21 CASEOPEN# 46h intrusion0 +========= ======================= =============== ================ diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/i2c/busses/i2c-ali15x3.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/i2c/busses/i2c-ali15x3.rst index 29b48d9e0..d4c1a2a41 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/i2c/busses/i2c-ali15x3.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/i2c/busses/i2c-ali15x3.rst @@ -1,122 +1,122 @@ -========================= -Kernel driver i2c-ali15x3 -========================= - -Supported adapters: - * Acer Labs, Inc. ALI 1533 and 1543C (south bridge) - - Datasheet: Now under NDA - http://www.ali.com.tw/ - -Authors: - - Frodo Looijaard , - - Philip Edelbrock , - - Mark D. Studebaker - -Module Parameters ------------------ - -* force_addr: int - Initialize the base address of the i2c controller - - -Notes ------ - -The force_addr parameter is useful for boards that don't set the address in -the BIOS. Does not do a PCI force; the device must still be present in -lspci. Don't use this unless the driver complains that the base address is -not set. - -Example:: - - modprobe i2c-ali15x3 force_addr=0xe800 - -SMBus periodically hangs on ASUS P5A motherboards and can only be cleared -by a power cycle. Cause unknown (see Issues below). - - -Description ------------ - -This is the driver for the SMB Host controller on Acer Labs Inc. (ALI) -M1541 and M1543C South Bridges. - -The M1543C is a South bridge for desktop systems. - -The M1541 is a South bridge for portable systems. - -They are part of the following ALI chipsets: - - * "Aladdin Pro 2" includes the M1621 Slot 1 North bridge with AGP and - 100MHz CPU Front Side bus - * "Aladdin V" includes the M1541 Socket 7 North bridge with AGP and 100MHz - CPU Front Side bus - - Some Aladdin V motherboards: - - Asus P5A - - Atrend ATC-5220 - - BCM/GVC VP1541 - - Biostar M5ALA - - Gigabyte GA-5AX (Generally doesn't work because the BIOS doesn't - enable the 7101 device!) - - Iwill XA100 Plus - - Micronics C200 - - Microstar (MSI) MS-5169 - - * "Aladdin IV" includes the M1541 Socket 7 North bridge - with host bus up to 83.3 MHz. - -For an overview of these chips see http://www.acerlabs.com. At this time the -full data sheets on the web site are password protected, however if you -contact the ALI office in San Jose they may give you the password. - -The M1533/M1543C devices appear as FOUR separate devices on the PCI bus. An -output of lspci will show something similar to the following:: - - 00:02.0 USB Controller: Acer Laboratories Inc. M5237 (rev 03) - 00:03.0 Bridge: Acer Laboratories Inc. M7101 <= THIS IS THE ONE WE NEED - 00:07.0 ISA bridge: Acer Laboratories Inc. M1533 (rev c3) - 00:0f.0 IDE interface: Acer Laboratories Inc. M5229 (rev c1) - -.. important:: - - If you have a M1533 or M1543C on the board and you get - "ali15x3: Error: Can't detect ali15x3!" - then run lspci. - - If you see the 1533 and 5229 devices but NOT the 7101 device, - then you must enable ACPI, the PMU, SMB, or something similar - in the BIOS. - - The driver won't work if it can't find the M7101 device. - -The SMB controller is part of the M7101 device, which is an ACPI-compliant -Power Management Unit (PMU). - -The whole M7101 device has to be enabled for the SMB to work. You can't -just enable the SMB alone. The SMB and the ACPI have separate I/O spaces. -We make sure that the SMB is enabled. We leave the ACPI alone. - -Features --------- - -This driver controls the SMB Host only. The SMB Slave -controller on the M15X3 is not enabled. This driver does not use -interrupts. - - -Issues ------- - -This driver requests the I/O space for only the SMB -registers. It doesn't use the ACPI region. - -On the ASUS P5A motherboard, there are several reports that -the SMBus will hang and this can only be resolved by -powering off the computer. It appears to be worse when the board -gets hot, for example under heavy CPU load, or in the summer. -There may be electrical problems on this board. -On the P5A, the W83781D sensor chip is on both the ISA and -SMBus. Therefore the SMBus hangs can generally be avoided -by accessing the W83781D on the ISA bus only. +========================= +Kernel driver i2c-ali15x3 +========================= + +Supported adapters: + * Acer Labs, Inc. ALI 1533 and 1543C (south bridge) + + Datasheet: Now under NDA + http://www.ali.com.tw/ + +Authors: + - Frodo Looijaard , + - Philip Edelbrock , + - Mark D. Studebaker + +Module Parameters +----------------- + +* force_addr: int + Initialize the base address of the i2c controller + + +Notes +----- + +The force_addr parameter is useful for boards that don't set the address in +the BIOS. Does not do a PCI force; the device must still be present in +lspci. Don't use this unless the driver complains that the base address is +not set. + +Example:: + + modprobe i2c-ali15x3 force_addr=0xe800 + +SMBus periodically hangs on ASUS P5A motherboards and can only be cleared +by a power cycle. Cause unknown (see Issues below). + + +Description +----------- + +This is the driver for the SMB Host controller on Acer Labs Inc. (ALI) +M1541 and M1543C South Bridges. + +The M1543C is a South bridge for desktop systems. + +The M1541 is a South bridge for portable systems. + +They are part of the following ALI chipsets: + + * "Aladdin Pro 2" includes the M1621 Slot 1 North bridge with AGP and + 100MHz CPU Front Side bus + * "Aladdin V" includes the M1541 Socket 7 North bridge with AGP and 100MHz + CPU Front Side bus + + Some Aladdin V motherboards: + - Asus P5A + - Atrend ATC-5220 + - BCM/GVC VP1541 + - Biostar M5ALA + - Gigabyte GA-5AX (Generally doesn't work because the BIOS doesn't + enable the 7101 device!) + - Iwill XA100 Plus + - Micronics C200 + - Microstar (MSI) MS-5169 + + * "Aladdin IV" includes the M1541 Socket 7 North bridge + with host bus up to 83.3 MHz. + +For an overview of these chips see http://www.acerlabs.com. At this time the +full data sheets on the web site are password protected, however if you +contact the ALI office in San Jose they may give you the password. + +The M1533/M1543C devices appear as FOUR separate devices on the PCI bus. An +output of lspci will show something similar to the following:: + + 00:02.0 USB Controller: Acer Laboratories Inc. M5237 (rev 03) + 00:03.0 Bridge: Acer Laboratories Inc. M7101 <= THIS IS THE ONE WE NEED + 00:07.0 ISA bridge: Acer Laboratories Inc. M1533 (rev c3) + 00:0f.0 IDE interface: Acer Laboratories Inc. M5229 (rev c1) + +.. important:: + + If you have a M1533 or M1543C on the board and you get + "ali15x3: Error: Can't detect ali15x3!" + then run lspci. + + If you see the 1533 and 5229 devices but NOT the 7101 device, + then you must enable ACPI, the PMU, SMB, or something similar + in the BIOS. + + The driver won't work if it can't find the M7101 device. + +The SMB controller is part of the M7101 device, which is an ACPI-compliant +Power Management Unit (PMU). + +The whole M7101 device has to be enabled for the SMB to work. You can't +just enable the SMB alone. The SMB and the ACPI have separate I/O spaces. +We make sure that the SMB is enabled. We leave the ACPI alone. + +Features +-------- + +This driver controls the SMB Host only. The SMB Slave +controller on the M15X3 is not enabled. This driver does not use +interrupts. + + +Issues +------ + +This driver requests the I/O space for only the SMB +registers. It doesn't use the ACPI region. + +On the ASUS P5A motherboard, there are several reports that +the SMBus will hang and this can only be resolved by +powering off the computer. It appears to be worse when the board +gets hot, for example under heavy CPU load, or in the summer. +There may be electrical problems on this board. +On the P5A, the W83781D sensor chip is on both the ISA and +SMBus. Therefore the SMBus hangs can generally be avoided +by accessing the W83781D on the ISA bus only. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/i2c/dma-considerations.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/i2c/dma-considerations.rst index 4b6335e87..142d52ce9 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/i2c/dma-considerations.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/i2c/dma-considerations.rst @@ -1,71 +1,71 @@ -================= -Linux I2C and DMA -================= - -Given that I2C is a low-speed bus, over which the majority of messages -transferred are small, it is not considered a prime user of DMA access. At this -time of writing, only 10% of I2C bus master drivers have DMA support -implemented. And the vast majority of transactions are so small that setting up -DMA for it will likely add more overhead than a plain PIO transfer. - -Therefore, it is *not* mandatory that the buffer of an I2C message is DMA safe. -It does not seem reasonable to apply additional burdens when the feature is so -rarely used. However, it is recommended to use a DMA-safe buffer if your -message size is likely applicable for DMA. Most drivers have this threshold -around 8 bytes (as of today, this is mostly an educated guess, however). For -any message of 16 byte or larger, it is probably a really good idea. Please -note that other subsystems you use might add requirements. E.g., if your -I2C bus master driver is using USB as a bridge, then you need to have DMA -safe buffers always, because USB requires it. - -Clients -------- - -For clients, if you use a DMA safe buffer in i2c_msg, set the I2C_M_DMA_SAFE -flag with it. Then, the I2C core and drivers know they can safely operate DMA -on it. Note that using this flag is optional. I2C host drivers which are not -updated to use this flag will work like before. And like before, they risk -using an unsafe DMA buffer. To improve this situation, using I2C_M_DMA_SAFE in -more and more clients and host drivers is the planned way forward. Note also -that setting this flag makes only sense in kernel space. User space data is -copied into kernel space anyhow. The I2C core makes sure the destination -buffers in kernel space are always DMA capable. Also, when the core emulates -SMBus transactions via I2C, the buffers for block transfers are DMA safe. Users -of i2c_master_send() and i2c_master_recv() functions can now use DMA safe -variants (i2c_master_send_dmasafe() and i2c_master_recv_dmasafe()) once they -know their buffers are DMA safe. Users of i2c_transfer() must set the -I2C_M_DMA_SAFE flag manually. - -Masters -------- - -Bus master drivers wishing to implement safe DMA can use helper functions from -the I2C core. One gives you a DMA-safe buffer for a given i2c_msg as long as a -certain threshold is met:: - - dma_buf = i2c_get_dma_safe_msg_buf(msg, threshold_in_byte); - -If a buffer is returned, it is either msg->buf for the I2C_M_DMA_SAFE case or a -bounce buffer. But you don't need to care about that detail, just use the -returned buffer. If NULL is returned, the threshold was not met or a bounce -buffer could not be allocated. Fall back to PIO in that case. - -In any case, a buffer obtained from above needs to be released. Another helper -function ensures a potentially used bounce buffer is freed:: - - i2c_put_dma_safe_msg_buf(dma_buf, msg, xferred); - -The last argument 'xferred' controls if the buffer is synced back to the -message or not. No syncing is needed in cases setting up DMA had an error and -there was no data transferred. - -The bounce buffer handling from the core is generic and simple. It will always -allocate a new bounce buffer. If you want a more sophisticated handling (e.g. -reusing pre-allocated buffers), you are free to implement your own. - -Please also check the in-kernel documentation for details. The i2c-sh_mobile -driver can be used as a reference example how to use the above helpers. - -Final note: If you plan to use DMA with I2C (or with anything else, actually) -make sure you have CONFIG_DMA_API_DEBUG enabled during development. It can help -you find various issues which can be complex to debug otherwise. +================= +Linux I2C and DMA +================= + +Given that I2C is a low-speed bus, over which the majority of messages +transferred are small, it is not considered a prime user of DMA access. At this +time of writing, only 10% of I2C bus master drivers have DMA support +implemented. And the vast majority of transactions are so small that setting up +DMA for it will likely add more overhead than a plain PIO transfer. + +Therefore, it is *not* mandatory that the buffer of an I2C message is DMA safe. +It does not seem reasonable to apply additional burdens when the feature is so +rarely used. However, it is recommended to use a DMA-safe buffer if your +message size is likely applicable for DMA. Most drivers have this threshold +around 8 bytes (as of today, this is mostly an educated guess, however). For +any message of 16 byte or larger, it is probably a really good idea. Please +note that other subsystems you use might add requirements. E.g., if your +I2C bus master driver is using USB as a bridge, then you need to have DMA +safe buffers always, because USB requires it. + +Clients +------- + +For clients, if you use a DMA safe buffer in i2c_msg, set the I2C_M_DMA_SAFE +flag with it. Then, the I2C core and drivers know they can safely operate DMA +on it. Note that using this flag is optional. I2C host drivers which are not +updated to use this flag will work like before. And like before, they risk +using an unsafe DMA buffer. To improve this situation, using I2C_M_DMA_SAFE in +more and more clients and host drivers is the planned way forward. Note also +that setting this flag makes only sense in kernel space. User space data is +copied into kernel space anyhow. The I2C core makes sure the destination +buffers in kernel space are always DMA capable. Also, when the core emulates +SMBus transactions via I2C, the buffers for block transfers are DMA safe. Users +of i2c_master_send() and i2c_master_recv() functions can now use DMA safe +variants (i2c_master_send_dmasafe() and i2c_master_recv_dmasafe()) once they +know their buffers are DMA safe. Users of i2c_transfer() must set the +I2C_M_DMA_SAFE flag manually. + +Masters +------- + +Bus master drivers wishing to implement safe DMA can use helper functions from +the I2C core. One gives you a DMA-safe buffer for a given i2c_msg as long as a +certain threshold is met:: + + dma_buf = i2c_get_dma_safe_msg_buf(msg, threshold_in_byte); + +If a buffer is returned, it is either msg->buf for the I2C_M_DMA_SAFE case or a +bounce buffer. But you don't need to care about that detail, just use the +returned buffer. If NULL is returned, the threshold was not met or a bounce +buffer could not be allocated. Fall back to PIO in that case. + +In any case, a buffer obtained from above needs to be released. Another helper +function ensures a potentially used bounce buffer is freed:: + + i2c_put_dma_safe_msg_buf(dma_buf, msg, xferred); + +The last argument 'xferred' controls if the buffer is synced back to the +message or not. No syncing is needed in cases setting up DMA had an error and +there was no data transferred. + +The bounce buffer handling from the core is generic and simple. It will always +allocate a new bounce buffer. If you want a more sophisticated handling (e.g. +reusing pre-allocated buffers), you are free to implement your own. + +Please also check the in-kernel documentation for details. The i2c-sh_mobile +driver can be used as a reference example how to use the above helpers. + +Final note: If you plan to use DMA with I2C (or with anything else, actually) +make sure you have CONFIG_DMA_API_DEBUG enabled during development. It can help +you find various issues which can be complex to debug otherwise. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/i2c/i2c-address-translators.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/i2c/i2c-address-translators.rst index 766d7be0c..6845c114e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/i2c/i2c-address-translators.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/i2c/i2c-address-translators.rst @@ -1,96 +1,96 @@ -.. SPDX-License-Identifier: GPL-2.0 - -======================= -I2C Address Translators -======================= - -Author: Luca Ceresoli -Author: Tomi Valkeinen - -Description ------------ - -An I2C Address Translator (ATR) is a device with an I2C slave parent -("upstream") port and N I2C master child ("downstream") ports, and -forwards transactions from upstream to the appropriate downstream port -with a modified slave address. The address used on the parent bus is -called the "alias" and is (potentially) different from the physical -slave address of the child bus. Address translation is done by the -hardware. - -An ATR looks similar to an i2c-mux except: - - the address on the parent and child busses can be different - - there is normally no need to select the child port; the alias used on the - parent bus implies it - -The ATR functionality can be provided by a chip with many other features. -The kernel i2c-atr provides a helper to implement an ATR within a driver. - -The ATR creates a new I2C "child" adapter on each child bus. Adding -devices on the child bus ends up in invoking the driver code to select -an available alias. Maintaining an appropriate pool of available aliases -and picking one for each new device is up to the driver implementer. The -ATR maintains a table of currently assigned alias and uses it to modify -all I2C transactions directed to devices on the child buses. - -A typical example follows. - -Topology:: - - Slave X @ 0x10 - .-----. | - .-----. | |---+---- B - | CPU |--A--| ATR | - `-----' | |---+---- C - `-----' | - Slave Y @ 0x10 - -Alias table: - -A, B and C are three physical I2C busses, electrically independent from -each other. The ATR receives the transactions initiated on bus A and -propagates them on bus B or bus C or none depending on the device address -in the transaction and based on the alias table. - -Alias table: - -.. table:: - - =============== ===== - Client Alias - =============== ===== - X (bus B, 0x10) 0x20 - Y (bus C, 0x10) 0x30 - =============== ===== - -Transaction: - - - Slave X driver requests a transaction (on adapter B), slave address 0x10 - - ATR driver finds slave X is on bus B and has alias 0x20, rewrites - messages with address 0x20, forwards to adapter A - - Physical I2C transaction on bus A, slave address 0x20 - - ATR chip detects transaction on address 0x20, finds it in table, - propagates transaction on bus B with address translated to 0x10, - keeps clock stretched on bus A waiting for reply - - Slave X chip (on bus B) detects transaction at its own physical - address 0x10 and replies normally - - ATR chip stops clock stretching and forwards reply on bus A, - with address translated back to 0x20 - - ATR driver receives the reply, rewrites messages with address 0x10 - as they were initially - - Slave X driver gets back the msgs[], with reply and address 0x10 - -Usage: - - 1. In the driver (typically in the probe function) add an ATR by - calling i2c_atr_new() passing attach/detach callbacks - 2. When the attach callback is called pick an appropriate alias, - configure it in the chip and return the chosen alias in the - alias_id parameter - 3. When the detach callback is called, deconfigure the alias from - the chip and put the alias back in the pool for later usage - -I2C ATR functions and data structures -------------------------------------- - -.. kernel-doc:: include/linux/i2c-atr.h +.. SPDX-License-Identifier: GPL-2.0 + +======================= +I2C Address Translators +======================= + +Author: Luca Ceresoli +Author: Tomi Valkeinen + +Description +----------- + +An I2C Address Translator (ATR) is a device with an I2C slave parent +("upstream") port and N I2C master child ("downstream") ports, and +forwards transactions from upstream to the appropriate downstream port +with a modified slave address. The address used on the parent bus is +called the "alias" and is (potentially) different from the physical +slave address of the child bus. Address translation is done by the +hardware. + +An ATR looks similar to an i2c-mux except: + - the address on the parent and child busses can be different + - there is normally no need to select the child port; the alias used on the + parent bus implies it + +The ATR functionality can be provided by a chip with many other features. +The kernel i2c-atr provides a helper to implement an ATR within a driver. + +The ATR creates a new I2C "child" adapter on each child bus. Adding +devices on the child bus ends up in invoking the driver code to select +an available alias. Maintaining an appropriate pool of available aliases +and picking one for each new device is up to the driver implementer. The +ATR maintains a table of currently assigned alias and uses it to modify +all I2C transactions directed to devices on the child buses. + +A typical example follows. + +Topology:: + + Slave X @ 0x10 + .-----. | + .-----. | |---+---- B + | CPU |--A--| ATR | + `-----' | |---+---- C + `-----' | + Slave Y @ 0x10 + +Alias table: + +A, B and C are three physical I2C busses, electrically independent from +each other. The ATR receives the transactions initiated on bus A and +propagates them on bus B or bus C or none depending on the device address +in the transaction and based on the alias table. + +Alias table: + +.. table:: + + =============== ===== + Client Alias + =============== ===== + X (bus B, 0x10) 0x20 + Y (bus C, 0x10) 0x30 + =============== ===== + +Transaction: + + - Slave X driver requests a transaction (on adapter B), slave address 0x10 + - ATR driver finds slave X is on bus B and has alias 0x20, rewrites + messages with address 0x20, forwards to adapter A + - Physical I2C transaction on bus A, slave address 0x20 + - ATR chip detects transaction on address 0x20, finds it in table, + propagates transaction on bus B with address translated to 0x10, + keeps clock stretched on bus A waiting for reply + - Slave X chip (on bus B) detects transaction at its own physical + address 0x10 and replies normally + - ATR chip stops clock stretching and forwards reply on bus A, + with address translated back to 0x20 + - ATR driver receives the reply, rewrites messages with address 0x10 + as they were initially + - Slave X driver gets back the msgs[], with reply and address 0x10 + +Usage: + + 1. In the driver (typically in the probe function) add an ATR by + calling i2c_atr_new() passing attach/detach callbacks + 2. When the attach callback is called pick an appropriate alias, + configure it in the chip and return the chosen alias in the + alias_id parameter + 3. When the detach callback is called, deconfigure the alias from + the chip and put the alias back in the pool for later usage + +I2C ATR functions and data structures +------------------------------------- + +.. kernel-doc:: include/linux/i2c-atr.h diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/i2c/summary.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/i2c/summary.rst index 5fc3e851e..579a1c7df 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/i2c/summary.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/i2c/summary.rst @@ -1,82 +1,82 @@ -============================= -Introduction to I2C and SMBus -============================= - -I²C (pronounce: I squared C and written I2C in the kernel documentation) is -a protocol developed by Philips. It is a two-wire protocol with variable -speed (typically up to 400 kHz, high speed modes up to 5 MHz). It provides -an inexpensive bus for connecting many types of devices with infrequent or -low bandwidth communications needs. I2C is widely used with embedded -systems. Some systems use variants that don't meet branding requirements, -and so are not advertised as being I2C but come under different names, -e.g. TWI (Two Wire Interface), IIC. - -The latest official I2C specification is the `"I²C-bus specification and user -manual" (UM10204) `_ -published by NXP Semiconductors, version 7 as of this writing. - -SMBus (System Management Bus) is based on the I2C protocol, and is mostly -a subset of I2C protocols and signaling. Many I2C devices will work on an -SMBus, but some SMBus protocols add semantics beyond what is required to -achieve I2C branding. Modern PC mainboards rely on SMBus. The most common -devices connected through SMBus are RAM modules configured using I2C EEPROMs, -and hardware monitoring chips. - -Because the SMBus is mostly a subset of the generalized I2C bus, we can -use its protocols on many I2C systems. However, there are systems that don't -meet both SMBus and I2C electrical constraints; and others which can't -implement all the common SMBus protocol semantics or messages. - - -Terminology -=========== - -The I2C bus connects one or more controller chips and one or more target chips. - -.. kernel-figure:: i2c_bus.svg - :alt: Simple I2C bus with one controller and 3 targets - - Simple I2C bus - -A **controller** chip is a node that starts communications with targets. In the -Linux kernel implementation it is also called an "adapter" or "bus". Controller -drivers are usually in the ``drivers/i2c/busses/`` subdirectory. - -An **algorithm** contains general code that can be used to implement a whole -class of I2C controllers. Each specific controller driver either depends on an -algorithm driver in the ``drivers/i2c/algos/`` subdirectory, or includes its -own implementation. - -A **target** chip is a node that responds to communications when addressed by a -controller. In the Linux kernel implementation it is also called a "client". -While targets are usually separate external chips, Linux can also act as a -target (needs hardware support) and respond to another controller on the bus. -This is then called a **local target**. In contrast, an external chip is called -a **remote target**. - -Target drivers are kept in a directory specific to the feature they provide, -for example ``drivers/gpio/`` for GPIO expanders and ``drivers/media/i2c/`` for -video-related chips. - -For the example configuration in the figure above, you will need one driver for -the I2C controller, and drivers for your I2C targets. Usually one driver for -each target. - -Synonyms --------- - -As mentioned above, the Linux I2C implementation historically uses the terms -"adapter" for controller and "client" for target. A number of data structures -have these synonyms in their name. So, when discussing implementation details, -you should be aware of these terms as well. The official wording is preferred, -though. - -Outdated terminology --------------------- - -In earlier I2C specifications, controller was named "master" and target was -named "slave". These terms have been obsoleted with v7 of the specification and -their use is also discouraged by the Linux Kernel Code of Conduct. You may -still find them in references to documentation which has not been updated. The -general attitude, however, is to use the inclusive terms: controller and -target. Work to replace the old terminology in the Linux Kernel is on-going. +============================= +Introduction to I2C and SMBus +============================= + +I²C (pronounce: I squared C and written I2C in the kernel documentation) is +a protocol developed by Philips. It is a two-wire protocol with variable +speed (typically up to 400 kHz, high speed modes up to 5 MHz). It provides +an inexpensive bus for connecting many types of devices with infrequent or +low bandwidth communications needs. I2C is widely used with embedded +systems. Some systems use variants that don't meet branding requirements, +and so are not advertised as being I2C but come under different names, +e.g. TWI (Two Wire Interface), IIC. + +The latest official I2C specification is the `"I²C-bus specification and user +manual" (UM10204) `_ +published by NXP Semiconductors, version 7 as of this writing. + +SMBus (System Management Bus) is based on the I2C protocol, and is mostly +a subset of I2C protocols and signaling. Many I2C devices will work on an +SMBus, but some SMBus protocols add semantics beyond what is required to +achieve I2C branding. Modern PC mainboards rely on SMBus. The most common +devices connected through SMBus are RAM modules configured using I2C EEPROMs, +and hardware monitoring chips. + +Because the SMBus is mostly a subset of the generalized I2C bus, we can +use its protocols on many I2C systems. However, there are systems that don't +meet both SMBus and I2C electrical constraints; and others which can't +implement all the common SMBus protocol semantics or messages. + + +Terminology +=========== + +The I2C bus connects one or more controller chips and one or more target chips. + +.. kernel-figure:: i2c_bus.svg + :alt: Simple I2C bus with one controller and 3 targets + + Simple I2C bus + +A **controller** chip is a node that starts communications with targets. In the +Linux kernel implementation it is also called an "adapter" or "bus". Controller +drivers are usually in the ``drivers/i2c/busses/`` subdirectory. + +An **algorithm** contains general code that can be used to implement a whole +class of I2C controllers. Each specific controller driver either depends on an +algorithm driver in the ``drivers/i2c/algos/`` subdirectory, or includes its +own implementation. + +A **target** chip is a node that responds to communications when addressed by a +controller. In the Linux kernel implementation it is also called a "client". +While targets are usually separate external chips, Linux can also act as a +target (needs hardware support) and respond to another controller on the bus. +This is then called a **local target**. In contrast, an external chip is called +a **remote target**. + +Target drivers are kept in a directory specific to the feature they provide, +for example ``drivers/gpio/`` for GPIO expanders and ``drivers/media/i2c/`` for +video-related chips. + +For the example configuration in the figure above, you will need one driver for +the I2C controller, and drivers for your I2C targets. Usually one driver for +each target. + +Synonyms +-------- + +As mentioned above, the Linux I2C implementation historically uses the terms +"adapter" for controller and "client" for target. A number of data structures +have these synonyms in their name. So, when discussing implementation details, +you should be aware of these terms as well. The official wording is preferred, +though. + +Outdated terminology +-------------------- + +In earlier I2C specifications, controller was named "master" and target was +named "slave". These terms have been obsoleted with v7 of the specification and +their use is also discouraged by the Linux Kernel Code of Conduct. You may +still find them in references to documentation which has not been updated. The +general attitude, however, is to use the inclusive terms: controller and +target. Work to replace the old terminology in the Linux Kernel is on-going. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/infiniband/core_locking.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/infiniband/core_locking.rst index ff087caa6..efd5e7603 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/infiniband/core_locking.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/infiniband/core_locking.rst @@ -1,116 +1,116 @@ -=========================== -InfiniBand Midlayer Locking -=========================== - - This guide is an attempt to make explicit the locking assumptions - made by the InfiniBand midlayer. It describes the requirements on - both low-level drivers that sit below the midlayer and upper level - protocols that use the midlayer. - -Sleeping and interrupt context -============================== - - With the following exceptions, a low-level driver implementation of - all of the methods in struct ib_device may sleep. The exceptions - are any methods from the list: - - - create_ah - - modify_ah - - query_ah - - destroy_ah - - post_send - - post_recv - - poll_cq - - req_notify_cq - - which may not sleep and must be callable from any context. - - The corresponding functions exported to upper level protocol - consumers: - - - rdma_create_ah - - rdma_modify_ah - - rdma_query_ah - - rdma_destroy_ah - - ib_post_send - - ib_post_recv - - ib_req_notify_cq - - are therefore safe to call from any context. - - In addition, the function - - - ib_dispatch_event - - used by low-level drivers to dispatch asynchronous events through - the midlayer is also safe to call from any context. - -Reentrancy ----------- - - All of the methods in struct ib_device exported by a low-level - driver must be fully reentrant. The low-level driver is required to - perform all synchronization necessary to maintain consistency, even - if multiple function calls using the same object are run - simultaneously. - - The IB midlayer does not perform any serialization of function calls. - - Because low-level drivers are reentrant, upper level protocol - consumers are not required to perform any serialization. However, - some serialization may be required to get sensible results. For - example, a consumer may safely call ib_poll_cq() on multiple CPUs - simultaneously. However, the ordering of the work completion - information between different calls of ib_poll_cq() is not defined. - -Callbacks ---------- - - A low-level driver must not perform a callback directly from the - same callchain as an ib_device method call. For example, it is not - allowed for a low-level driver to call a consumer's completion event - handler directly from its post_send method. Instead, the low-level - driver should defer this callback by, for example, scheduling a - tasklet to perform the callback. - - The low-level driver is responsible for ensuring that multiple - completion event handlers for the same CQ are not called - simultaneously. The driver must guarantee that only one CQ event - handler for a given CQ is running at a time. In other words, the - following situation is not allowed:: - - CPU1 CPU2 - - low-level driver -> - consumer CQ event callback: - /* ... */ - ib_req_notify_cq(cq, ...); - low-level driver -> - /* ... */ consumer CQ event callback: - /* ... */ - return from CQ event handler - - The context in which completion event and asynchronous event - callbacks run is not defined. Depending on the low-level driver, it - may be process context, softirq context, or interrupt context. - Upper level protocol consumers may not sleep in a callback. - -Hot-plug --------- - - A low-level driver announces that a device is ready for use by - consumers when it calls ib_register_device(), all initialization - must be complete before this call. The device must remain usable - until the driver's call to ib_unregister_device() has returned. - - A low-level driver must call ib_register_device() and - ib_unregister_device() from process context. It must not hold any - semaphores that could cause deadlock if a consumer calls back into - the driver across these calls. - - An upper level protocol consumer may begin using an IB device as - soon as the add method of its struct ib_client is called for that - device. A consumer must finish all cleanup and free all resources - relating to a device before returning from the remove method. - - A consumer is permitted to sleep in its add and remove methods. +=========================== +InfiniBand Midlayer Locking +=========================== + + This guide is an attempt to make explicit the locking assumptions + made by the InfiniBand midlayer. It describes the requirements on + both low-level drivers that sit below the midlayer and upper level + protocols that use the midlayer. + +Sleeping and interrupt context +============================== + + With the following exceptions, a low-level driver implementation of + all of the methods in struct ib_device may sleep. The exceptions + are any methods from the list: + + - create_ah + - modify_ah + - query_ah + - destroy_ah + - post_send + - post_recv + - poll_cq + - req_notify_cq + + which may not sleep and must be callable from any context. + + The corresponding functions exported to upper level protocol + consumers: + + - rdma_create_ah + - rdma_modify_ah + - rdma_query_ah + - rdma_destroy_ah + - ib_post_send + - ib_post_recv + - ib_req_notify_cq + + are therefore safe to call from any context. + + In addition, the function + + - ib_dispatch_event + + used by low-level drivers to dispatch asynchronous events through + the midlayer is also safe to call from any context. + +Reentrancy +---------- + + All of the methods in struct ib_device exported by a low-level + driver must be fully reentrant. The low-level driver is required to + perform all synchronization necessary to maintain consistency, even + if multiple function calls using the same object are run + simultaneously. + + The IB midlayer does not perform any serialization of function calls. + + Because low-level drivers are reentrant, upper level protocol + consumers are not required to perform any serialization. However, + some serialization may be required to get sensible results. For + example, a consumer may safely call ib_poll_cq() on multiple CPUs + simultaneously. However, the ordering of the work completion + information between different calls of ib_poll_cq() is not defined. + +Callbacks +--------- + + A low-level driver must not perform a callback directly from the + same callchain as an ib_device method call. For example, it is not + allowed for a low-level driver to call a consumer's completion event + handler directly from its post_send method. Instead, the low-level + driver should defer this callback by, for example, scheduling a + tasklet to perform the callback. + + The low-level driver is responsible for ensuring that multiple + completion event handlers for the same CQ are not called + simultaneously. The driver must guarantee that only one CQ event + handler for a given CQ is running at a time. In other words, the + following situation is not allowed:: + + CPU1 CPU2 + + low-level driver -> + consumer CQ event callback: + /* ... */ + ib_req_notify_cq(cq, ...); + low-level driver -> + /* ... */ consumer CQ event callback: + /* ... */ + return from CQ event handler + + The context in which completion event and asynchronous event + callbacks run is not defined. Depending on the low-level driver, it + may be process context, softirq context, or interrupt context. + Upper level protocol consumers may not sleep in a callback. + +Hot-plug +-------- + + A low-level driver announces that a device is ready for use by + consumers when it calls ib_register_device(), all initialization + must be complete before this call. The device must remain usable + until the driver's call to ib_unregister_device() has returned. + + A low-level driver must call ib_register_device() and + ib_unregister_device() from process context. It must not hold any + semaphores that could cause deadlock if a consumer calls back into + the driver across these calls. + + An upper level protocol consumer may begin using an IB device as + soon as the add method of its struct ib_client is called for that + device. A consumer must finish all cleanup and free all resources + relating to a device before returning from the remove method. + + A consumer is permitted to sleep in its add and remove methods. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/infiniband/tag_matching.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/infiniband/tag_matching.rst index 07e84e7f9..ef56ea585 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/infiniband/tag_matching.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/infiniband/tag_matching.rst @@ -1,69 +1,69 @@ -================== -Tag matching logic -================== - -The MPI standard defines a set of rules, known as tag-matching, for matching -source send operations to destination receives. The following parameters must -match the following source and destination parameters: - -* Communicator -* User tag - wild card may be specified by the receiver -* Source rank – wild car may be specified by the receiver -* Destination rank – wild - -The ordering rules require that when more than one pair of send and receive -message envelopes may match, the pair that includes the earliest posted-send -and the earliest posted-receive is the pair that must be used to satisfy the -matching operation. However, this doesn’t imply that tags are consumed in -the order they are created, e.g., a later generated tag may be consumed, if -earlier tags can’t be used to satisfy the matching rules. - -When a message is sent from the sender to the receiver, the communication -library may attempt to process the operation either after or before the -corresponding matching receive is posted. If a matching receive is posted, -this is an expected message, otherwise it is called an unexpected message. -Implementations frequently use different matching schemes for these two -different matching instances. - -To keep MPI library memory footprint down, MPI implementations typically use -two different protocols for this purpose: - -1. The Eager protocol- the complete message is sent when the send is -processed by the sender. A completion send is received in the send_cq -notifying that the buffer can be reused. - -2. The Rendezvous Protocol - the sender sends the tag-matching header, -and perhaps a portion of data when first notifying the receiver. When the -corresponding buffer is posted, the responder will use the information from -the header to initiate an RDMA READ operation directly to the matching buffer. -A fin message needs to be received in order for the buffer to be reused. - -Tag matching implementation -=========================== - -There are two types of matching objects used, the posted receive list and the -unexpected message list. The application posts receive buffers through calls -to the MPI receive routines in the posted receive list and posts send messages -using the MPI send routines. The head of the posted receive list may be -maintained by the hardware, with the software expected to shadow this list. - -When send is initiated and arrives at the receive side, if there is no -pre-posted receive for this arriving message, it is passed to the software and -placed in the unexpected message list. Otherwise the match is processed, -including rendezvous processing, if appropriate, delivering the data to the -specified receive buffer. This allows overlapping receive-side MPI tag -matching with computation. - -When a receive-message is posted, the communication library will first check -the software unexpected message list for a matching receive. If a match is -found, data is delivered to the user buffer, using a software controlled -protocol. The UCX implementation uses either an eager or rendezvous protocol, -depending on data size. If no match is found, the entire pre-posted receive -list is maintained by the hardware, and there is space to add one more -pre-posted receive to this list, this receive is passed to the hardware. -Software is expected to shadow this list, to help with processing MPI cancel -operations. In addition, because hardware and software are not expected to be -tightly synchronized with respect to the tag-matching operation, this shadow -list is used to detect the case that a pre-posted receive is passed to the -hardware, as the matching unexpected message is being passed from the hardware -to the software. +================== +Tag matching logic +================== + +The MPI standard defines a set of rules, known as tag-matching, for matching +source send operations to destination receives. The following parameters must +match the following source and destination parameters: + +* Communicator +* User tag - wild card may be specified by the receiver +* Source rank – wild car may be specified by the receiver +* Destination rank – wild + +The ordering rules require that when more than one pair of send and receive +message envelopes may match, the pair that includes the earliest posted-send +and the earliest posted-receive is the pair that must be used to satisfy the +matching operation. However, this doesn’t imply that tags are consumed in +the order they are created, e.g., a later generated tag may be consumed, if +earlier tags can’t be used to satisfy the matching rules. + +When a message is sent from the sender to the receiver, the communication +library may attempt to process the operation either after or before the +corresponding matching receive is posted. If a matching receive is posted, +this is an expected message, otherwise it is called an unexpected message. +Implementations frequently use different matching schemes for these two +different matching instances. + +To keep MPI library memory footprint down, MPI implementations typically use +two different protocols for this purpose: + +1. The Eager protocol- the complete message is sent when the send is +processed by the sender. A completion send is received in the send_cq +notifying that the buffer can be reused. + +2. The Rendezvous Protocol - the sender sends the tag-matching header, +and perhaps a portion of data when first notifying the receiver. When the +corresponding buffer is posted, the responder will use the information from +the header to initiate an RDMA READ operation directly to the matching buffer. +A fin message needs to be received in order for the buffer to be reused. + +Tag matching implementation +=========================== + +There are two types of matching objects used, the posted receive list and the +unexpected message list. The application posts receive buffers through calls +to the MPI receive routines in the posted receive list and posts send messages +using the MPI send routines. The head of the posted receive list may be +maintained by the hardware, with the software expected to shadow this list. + +When send is initiated and arrives at the receive side, if there is no +pre-posted receive for this arriving message, it is passed to the software and +placed in the unexpected message list. Otherwise the match is processed, +including rendezvous processing, if appropriate, delivering the data to the +specified receive buffer. This allows overlapping receive-side MPI tag +matching with computation. + +When a receive-message is posted, the communication library will first check +the software unexpected message list for a matching receive. If a match is +found, data is delivered to the user buffer, using a software controlled +protocol. The UCX implementation uses either an eager or rendezvous protocol, +depending on data size. If no match is found, the entire pre-posted receive +list is maintained by the hardware, and there is space to add one more +pre-posted receive to this list, this receive is passed to the hardware. +Software is expected to shadow this list, to help with processing MPI cancel +operations. In addition, because hardware and software are not expected to be +tightly synchronized with respect to the tag-matching operation, this shadow +list is used to detect the case that a pre-posted receive is passed to the +hardware, as the matching unexpected message is being passed from the hardware +to the software. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/input/devices/appletouch.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/input/devices/appletouch.rst index 8a6052847..c94470e66 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/input/devices/appletouch.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/input/devices/appletouch.rst @@ -1,94 +1,94 @@ -.. include:: - ----------------------------------- -Apple Touchpad Driver (appletouch) ----------------------------------- - -:Copyright: |copy| 2005 Stelian Pop - -appletouch is a Linux kernel driver for the USB touchpad found on post -February 2005 and October 2005 Apple Aluminium Powerbooks. - -This driver is derived from Johannes Berg's appletrackpad driver [#f1]_, -but it has been improved in some areas: - - * appletouch is a full kernel driver, no userspace program is necessary - * appletouch can be interfaced with the synaptics X11 driver, in order - to have touchpad acceleration, scrolling, etc. - -Credits go to Johannes Berg for reverse-engineering the touchpad protocol, -Frank Arnold for further improvements, and Alex Harper for some additional -information about the inner workings of the touchpad sensors. Michael -Hanselmann added support for the October 2005 models. - -Usage ------ - -In order to use the touchpad in the basic mode, compile the driver and load -the module. A new input device will be detected and you will be able to read -the mouse data from /dev/input/mice (using gpm, or X11). - -In X11, you can configure the touchpad to use the synaptics X11 driver, which -will give additional functionalities, like acceleration, scrolling, 2 finger -tap for middle button mouse emulation, 3 finger tap for right button mouse -emulation, etc. In order to do this, make sure you're using a recent version of -the synaptics driver (tested with 0.14.2, available from [#f2]_), and configure -a new input device in your X11 configuration file (take a look below for an -example). For additional configuration, see the synaptics driver documentation:: - - Section "InputDevice" - Identifier "Synaptics Touchpad" - Driver "synaptics" - Option "SendCoreEvents" "true" - Option "Device" "/dev/input/mice" - Option "Protocol" "auto-dev" - Option "LeftEdge" "0" - Option "RightEdge" "850" - Option "TopEdge" "0" - Option "BottomEdge" "645" - Option "MinSpeed" "0.4" - Option "MaxSpeed" "1" - Option "AccelFactor" "0.02" - Option "FingerLow" "0" - Option "FingerHigh" "30" - Option "MaxTapMove" "20" - Option "MaxTapTime" "100" - Option "HorizScrollDelta" "0" - Option "VertScrollDelta" "30" - Option "SHMConfig" "on" - EndSection - - Section "ServerLayout" - ... - InputDevice "Mouse" - InputDevice "Synaptics Touchpad" - ... - EndSection - -Fuzz problems -------------- - -The touchpad sensors are very sensitive to heat, and will generate a lot of -noise when the temperature changes. This is especially true when you power-on -the laptop for the first time. - -The appletouch driver tries to handle this noise and auto adapt itself, but it -is not perfect. If finger movements are not recognized anymore, try reloading -the driver. - -You can activate debugging using the 'debug' module parameter. A value of 0 -deactivates any debugging, 1 activates tracing of invalid samples, 2 activates -full tracing (each sample is being traced):: - - modprobe appletouch debug=1 - -or:: - - echo "1" > /sys/module/appletouch/parameters/debug - - -.. Links: - -.. [#f1] http://johannes.sipsolutions.net/PowerBook/touchpad/ - -.. [#f2] ``_ +.. include:: + +---------------------------------- +Apple Touchpad Driver (appletouch) +---------------------------------- + +:Copyright: |copy| 2005 Stelian Pop + +appletouch is a Linux kernel driver for the USB touchpad found on post +February 2005 and October 2005 Apple Aluminium Powerbooks. + +This driver is derived from Johannes Berg's appletrackpad driver [#f1]_, +but it has been improved in some areas: + + * appletouch is a full kernel driver, no userspace program is necessary + * appletouch can be interfaced with the synaptics X11 driver, in order + to have touchpad acceleration, scrolling, etc. + +Credits go to Johannes Berg for reverse-engineering the touchpad protocol, +Frank Arnold for further improvements, and Alex Harper for some additional +information about the inner workings of the touchpad sensors. Michael +Hanselmann added support for the October 2005 models. + +Usage +----- + +In order to use the touchpad in the basic mode, compile the driver and load +the module. A new input device will be detected and you will be able to read +the mouse data from /dev/input/mice (using gpm, or X11). + +In X11, you can configure the touchpad to use the synaptics X11 driver, which +will give additional functionalities, like acceleration, scrolling, 2 finger +tap for middle button mouse emulation, 3 finger tap for right button mouse +emulation, etc. In order to do this, make sure you're using a recent version of +the synaptics driver (tested with 0.14.2, available from [#f2]_), and configure +a new input device in your X11 configuration file (take a look below for an +example). For additional configuration, see the synaptics driver documentation:: + + Section "InputDevice" + Identifier "Synaptics Touchpad" + Driver "synaptics" + Option "SendCoreEvents" "true" + Option "Device" "/dev/input/mice" + Option "Protocol" "auto-dev" + Option "LeftEdge" "0" + Option "RightEdge" "850" + Option "TopEdge" "0" + Option "BottomEdge" "645" + Option "MinSpeed" "0.4" + Option "MaxSpeed" "1" + Option "AccelFactor" "0.02" + Option "FingerLow" "0" + Option "FingerHigh" "30" + Option "MaxTapMove" "20" + Option "MaxTapTime" "100" + Option "HorizScrollDelta" "0" + Option "VertScrollDelta" "30" + Option "SHMConfig" "on" + EndSection + + Section "ServerLayout" + ... + InputDevice "Mouse" + InputDevice "Synaptics Touchpad" + ... + EndSection + +Fuzz problems +------------- + +The touchpad sensors are very sensitive to heat, and will generate a lot of +noise when the temperature changes. This is especially true when you power-on +the laptop for the first time. + +The appletouch driver tries to handle this noise and auto adapt itself, but it +is not perfect. If finger movements are not recognized anymore, try reloading +the driver. + +You can activate debugging using the 'debug' module parameter. A value of 0 +deactivates any debugging, 1 activates tracing of invalid samples, 2 activates +full tracing (each sample is being traced):: + + modprobe appletouch debug=1 + +or:: + + echo "1" > /sys/module/appletouch/parameters/debug + + +.. Links: + +.. [#f1] http://johannes.sipsolutions.net/PowerBook/touchpad/ + +.. [#f2] ``_ diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/input/devices/rotary-encoder.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/input/devices/rotary-encoder.rst index eb8585990..5865748c1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/input/devices/rotary-encoder.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/input/devices/rotary-encoder.rst @@ -1,135 +1,135 @@ -============================================================ -rotary-encoder - a generic driver for GPIO connected devices -============================================================ - -:Author: Daniel Mack , Feb 2009 - -Function --------- - -Rotary encoders are devices which are connected to the CPU or other -peripherals with two wires. The outputs are phase-shifted by 90 degrees -and by triggering on falling and rising edges, the turn direction can -be determined. - -Some encoders have both outputs low in stable states, others also have -a stable state with both outputs high (half-period mode) and some have -a stable state in all steps (quarter-period mode). - -The phase diagram of these two outputs look like this:: - - _____ _____ _____ - | | | | | | - Channel A ____| |_____| |_____| |____ - - : : : : : : : : : : : : - __ _____ _____ _____ - | | | | | | | - Channel B |_____| |_____| |_____| |__ - - : : : : : : : : : : : : - Event a b c d a b c d a b c d - - |<-------->| - one step - - |<-->| - one step (half-period mode) - - |<>| - one step (quarter-period mode) - -For more information, please see - https://en.wikipedia.org/wiki/Rotary_encoder - - -Events / state machine ----------------------- - -In half-period mode, state a) and c) above are used to determine the -rotational direction based on the last stable state. Events are reported in -states b) and d) given that the new stable state is different from the last -(i.e. the rotation was not reversed half-way). - -Otherwise, the following apply: - -a) Rising edge on channel A, channel B in low state - This state is used to recognize a clockwise turn - -b) Rising edge on channel B, channel A in high state - When entering this state, the encoder is put into 'armed' state, - meaning that there it has seen half the way of a one-step transition. - -c) Falling edge on channel A, channel B in high state - This state is used to recognize a counter-clockwise turn - -d) Falling edge on channel B, channel A in low state - Parking position. If the encoder enters this state, a full transition - should have happened, unless it flipped back on half the way. The - 'armed' state tells us about that. - -Platform requirements ---------------------- - -As there is no hardware dependent call in this driver, the platform it is -used with must support gpiolib. Another requirement is that IRQs must be -able to fire on both edges. - - -Board integration ------------------ - -To use this driver in your system, register a platform_device with the -name 'rotary-encoder' and associate the IRQs and some specific platform -data with it. Because the driver uses generic device properties, this can -be done either via device tree, ACPI, or using static board files, like in -example below: - -:: - - /* board support file example */ - - #include - #include - #include - - #define GPIO_ROTARY_A 1 - #define GPIO_ROTARY_B 2 - - static struct gpiod_lookup_table rotary_encoder_gpios = { - .dev_id = "rotary-encoder.0", - .table = { - GPIO_LOOKUP_IDX("gpio-0", - GPIO_ROTARY_A, NULL, 0, GPIO_ACTIVE_LOW), - GPIO_LOOKUP_IDX("gpio-0", - GPIO_ROTARY_B, NULL, 1, GPIO_ACTIVE_HIGH), - { }, - }, - }; - - static const struct property_entry rotary_encoder_properties[] = { - PROPERTY_ENTRY_U32("rotary-encoder,steps-per-period", 24), - PROPERTY_ENTRY_U32("linux,axis", ABS_X), - PROPERTY_ENTRY_U32("rotary-encoder,relative_axis", 0), - { }, - }; - - static const struct software_node rotary_encoder_node = { - .properties = rotary_encoder_properties, - }; - - static struct platform_device rotary_encoder_device = { - .name = "rotary-encoder", - .id = 0, - }; - - ... - - gpiod_add_lookup_table(&rotary_encoder_gpios); - device_add_software_node(&rotary_encoder_device.dev, &rotary_encoder_node); - platform_device_register(&rotary_encoder_device); - - ... - -Please consult device tree binding documentation to see all properties -supported by the driver. +============================================================ +rotary-encoder - a generic driver for GPIO connected devices +============================================================ + +:Author: Daniel Mack , Feb 2009 + +Function +-------- + +Rotary encoders are devices which are connected to the CPU or other +peripherals with two wires. The outputs are phase-shifted by 90 degrees +and by triggering on falling and rising edges, the turn direction can +be determined. + +Some encoders have both outputs low in stable states, others also have +a stable state with both outputs high (half-period mode) and some have +a stable state in all steps (quarter-period mode). + +The phase diagram of these two outputs look like this:: + + _____ _____ _____ + | | | | | | + Channel A ____| |_____| |_____| |____ + + : : : : : : : : : : : : + __ _____ _____ _____ + | | | | | | | + Channel B |_____| |_____| |_____| |__ + + : : : : : : : : : : : : + Event a b c d a b c d a b c d + + |<-------->| + one step + + |<-->| + one step (half-period mode) + + |<>| + one step (quarter-period mode) + +For more information, please see + https://en.wikipedia.org/wiki/Rotary_encoder + + +Events / state machine +---------------------- + +In half-period mode, state a) and c) above are used to determine the +rotational direction based on the last stable state. Events are reported in +states b) and d) given that the new stable state is different from the last +(i.e. the rotation was not reversed half-way). + +Otherwise, the following apply: + +a) Rising edge on channel A, channel B in low state + This state is used to recognize a clockwise turn + +b) Rising edge on channel B, channel A in high state + When entering this state, the encoder is put into 'armed' state, + meaning that there it has seen half the way of a one-step transition. + +c) Falling edge on channel A, channel B in high state + This state is used to recognize a counter-clockwise turn + +d) Falling edge on channel B, channel A in low state + Parking position. If the encoder enters this state, a full transition + should have happened, unless it flipped back on half the way. The + 'armed' state tells us about that. + +Platform requirements +--------------------- + +As there is no hardware dependent call in this driver, the platform it is +used with must support gpiolib. Another requirement is that IRQs must be +able to fire on both edges. + + +Board integration +----------------- + +To use this driver in your system, register a platform_device with the +name 'rotary-encoder' and associate the IRQs and some specific platform +data with it. Because the driver uses generic device properties, this can +be done either via device tree, ACPI, or using static board files, like in +example below: + +:: + + /* board support file example */ + + #include + #include + #include + + #define GPIO_ROTARY_A 1 + #define GPIO_ROTARY_B 2 + + static struct gpiod_lookup_table rotary_encoder_gpios = { + .dev_id = "rotary-encoder.0", + .table = { + GPIO_LOOKUP_IDX("gpio-0", + GPIO_ROTARY_A, NULL, 0, GPIO_ACTIVE_LOW), + GPIO_LOOKUP_IDX("gpio-0", + GPIO_ROTARY_B, NULL, 1, GPIO_ACTIVE_HIGH), + { }, + }, + }; + + static const struct property_entry rotary_encoder_properties[] = { + PROPERTY_ENTRY_U32("rotary-encoder,steps-per-period", 24), + PROPERTY_ENTRY_U32("linux,axis", ABS_X), + PROPERTY_ENTRY_U32("rotary-encoder,relative_axis", 0), + { }, + }; + + static const struct software_node rotary_encoder_node = { + .properties = rotary_encoder_properties, + }; + + static struct platform_device rotary_encoder_device = { + .name = "rotary-encoder", + .id = 0, + }; + + ... + + gpiod_add_lookup_table(&rotary_encoder_gpios); + device_add_software_node(&rotary_encoder_device.dev, &rotary_encoder_node); + platform_device_register(&rotary_encoder_device); + + ... + +Please consult device tree binding documentation to see all properties +supported by the driver. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/input/devices/walkera0701.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/input/devices/walkera0701.rst index 6ea919953..2adda99ca 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/input/devices/walkera0701.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/input/devices/walkera0701.rst @@ -1,128 +1,128 @@ -=========================== -Walkera WK-0701 transmitter -=========================== - -Walkera WK-0701 transmitter is supplied with a ready to fly Walkera -helicopters such as HM36, HM37, HM60. The walkera0701 module enables to use -this transmitter as joystick - -Devel homepage and download: -http://zub.fei.tuke.sk/walkera-wk0701/ - -or use cogito: -cg-clone http://zub.fei.tuke.sk/GIT/walkera0701-joystick - - -Connecting to PC -================ - -At back side of transmitter S-video connector can be found. Modulation -pulses from processor to HF part can be found at pin 2 of this connector, -pin 3 is GND. Between pin 3 and CPU 5k6 resistor can be found. To get -modulation pulses to PC, signal pulses must be amplified. - -Cable: (walkera TX to parport) - -Walkera WK-0701 TX S-VIDEO connector:: - - (back side of TX) - __ __ S-video: canon25 - / |_| \ pin 2 (signal) NPN parport - / O 4 3 O \ pin 3 (GND) LED ________________ 10 ACK - ( O 2 1 O ) | C - \ ___ / 2 ________________________|\|_____|/ - | [___] | |/| B |\ - ------- 3 __________________________________|________________ 25 GND - E - -I use green LED and BC109 NPN transistor. - -Software -======== - -Build kernel with walkera0701 module. Module walkera0701 need exclusive -access to parport, modules like lp must be unloaded before loading -walkera0701 module, check dmesg for error messages. Connect TX to PC by -cable and run jstest /dev/input/js0 to see values from TX. If no value can -be changed by TX "joystick", check output from /proc/interrupts. Value for -(usually irq7) parport must increase if TX is on. - - - -Technical details -================= - -Driver use interrupt from parport ACK input bit to measure pulse length -using hrtimers. - -Frame format: -Based on walkera WK-0701 PCM Format description by Shaul Eizikovich. -(downloaded from http://www.smartpropoplus.com/Docs/Walkera_Wk-0701_PCM.pdf) - -Signal pulses -------------- - -:: - - (ANALOG) - SYNC BIN OCT - +---------+ +------+ - | | | | - --+ +------+ +--- - -Frame ------ - -:: - - SYNC , BIN1, OCT1, BIN2, OCT2 ... BIN24, OCT24, BIN25, next frame SYNC .. - -pulse length ------------- - -:: - - Binary values: Analog octal values: - - 288 uS Binary 0 318 uS 000 - 438 uS Binary 1 398 uS 001 - 478 uS 010 - 558 uS 011 - 638 uS 100 - 1306 uS SYNC 718 uS 101 - 798 uS 110 - 878 uS 111 - -24 bin+oct values + 1 bin value = 24*4+1 bits = 97 bits - -(Warning, pulses on ACK are inverted by transistor, irq is raised up on sync -to bin change or octal value to bin change). - -Binary data representations ---------------------------- - -One binary and octal value can be grouped to nibble. 24 nibbles + one binary -values can be sampled between sync pulses. - -Values for first four channels (analog joystick values) can be found in -first 10 nibbles. Analog value is represented by one sign bit and 9 bit -absolute binary value. (10 bits per channel). Next nibble is checksum for -first ten nibbles. - -Next nibbles 12 .. 21 represents four channels (not all channels can be -directly controlled from TX). Binary representations are the same as in first -four channels. In nibbles 22 and 23 is a special magic number. Nibble 24 is -checksum for nibbles 12..23. - -After last octal value for nibble 24 and next sync pulse one additional -binary value can be sampled. This bit and magic number is not used in -software driver. Some details about this magic numbers can be found in -Walkera_Wk-0701_PCM.pdf. - -Checksum calculation --------------------- - -Summary of octal values in nibbles must be same as octal value in checksum -nibble (only first 3 bits are used). Binary value for checksum nibble is -calculated by sum of binary values in checked nibbles + sum of octal values -in checked nibbles divided by 8. Only bit 0 of this sum is used. +=========================== +Walkera WK-0701 transmitter +=========================== + +Walkera WK-0701 transmitter is supplied with a ready to fly Walkera +helicopters such as HM36, HM37, HM60. The walkera0701 module enables to use +this transmitter as joystick + +Devel homepage and download: +http://zub.fei.tuke.sk/walkera-wk0701/ + +or use cogito: +cg-clone http://zub.fei.tuke.sk/GIT/walkera0701-joystick + + +Connecting to PC +================ + +At back side of transmitter S-video connector can be found. Modulation +pulses from processor to HF part can be found at pin 2 of this connector, +pin 3 is GND. Between pin 3 and CPU 5k6 resistor can be found. To get +modulation pulses to PC, signal pulses must be amplified. + +Cable: (walkera TX to parport) + +Walkera WK-0701 TX S-VIDEO connector:: + + (back side of TX) + __ __ S-video: canon25 + / |_| \ pin 2 (signal) NPN parport + / O 4 3 O \ pin 3 (GND) LED ________________ 10 ACK + ( O 2 1 O ) | C + \ ___ / 2 ________________________|\|_____|/ + | [___] | |/| B |\ + ------- 3 __________________________________|________________ 25 GND + E + +I use green LED and BC109 NPN transistor. + +Software +======== + +Build kernel with walkera0701 module. Module walkera0701 need exclusive +access to parport, modules like lp must be unloaded before loading +walkera0701 module, check dmesg for error messages. Connect TX to PC by +cable and run jstest /dev/input/js0 to see values from TX. If no value can +be changed by TX "joystick", check output from /proc/interrupts. Value for +(usually irq7) parport must increase if TX is on. + + + +Technical details +================= + +Driver use interrupt from parport ACK input bit to measure pulse length +using hrtimers. + +Frame format: +Based on walkera WK-0701 PCM Format description by Shaul Eizikovich. +(downloaded from http://www.smartpropoplus.com/Docs/Walkera_Wk-0701_PCM.pdf) + +Signal pulses +------------- + +:: + + (ANALOG) + SYNC BIN OCT + +---------+ +------+ + | | | | + --+ +------+ +--- + +Frame +----- + +:: + + SYNC , BIN1, OCT1, BIN2, OCT2 ... BIN24, OCT24, BIN25, next frame SYNC .. + +pulse length +------------ + +:: + + Binary values: Analog octal values: + + 288 uS Binary 0 318 uS 000 + 438 uS Binary 1 398 uS 001 + 478 uS 010 + 558 uS 011 + 638 uS 100 + 1306 uS SYNC 718 uS 101 + 798 uS 110 + 878 uS 111 + +24 bin+oct values + 1 bin value = 24*4+1 bits = 97 bits + +(Warning, pulses on ACK are inverted by transistor, irq is raised up on sync +to bin change or octal value to bin change). + +Binary data representations +--------------------------- + +One binary and octal value can be grouped to nibble. 24 nibbles + one binary +values can be sampled between sync pulses. + +Values for first four channels (analog joystick values) can be found in +first 10 nibbles. Analog value is represented by one sign bit and 9 bit +absolute binary value. (10 bits per channel). Next nibble is checksum for +first ten nibbles. + +Next nibbles 12 .. 21 represents four channels (not all channels can be +directly controlled from TX). Binary representations are the same as in first +four channels. In nibbles 22 and 23 is a special magic number. Nibble 24 is +checksum for nibbles 12..23. + +After last octal value for nibble 24 and next sync pulse one additional +binary value can be sampled. This bit and magic number is not used in +software driver. Some details about this magic numbers can be found in +Walkera_Wk-0701_PCM.pdf. + +Checksum calculation +-------------------- + +Summary of octal values in nibbles must be same as octal value in checksum +nibble (only first 3 bits are used). Binary value for checksum nibble is +calculated by sum of binary values in checked nibbles + sum of octal values +in checked nibbles divided by 8. Only bit 0 of this sum is used. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/input/interactive.svg b/image/debian/UFI003_MB_V02/kernel/Documentation/input/interactive.svg index 928da6caf..a3513709a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/input/interactive.svg +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/input/interactive.svg @@ -1,24 +1,24 @@ - - - - - - - - - - - - - - - - - - Dead band - right saturation - left saturation - left coeff ( positive in that case ) - right coeff ( negative in that case ) - center - + + + + + + + + + + + + + + + + + + Dead band + right saturation + left saturation + left coeff ( positive in that case ) + right coeff ( negative in that case ) + center + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/kbuild/gcc-plugins.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/kbuild/gcc-plugins.rst index d3ab5657d..c578c6ba3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/kbuild/gcc-plugins.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/kbuild/gcc-plugins.rst @@ -1,133 +1,133 @@ -========================= -GCC plugin infrastructure -========================= - - -Introduction -============ - -GCC plugins are loadable modules that provide extra features to the -compiler [1]_. They are useful for runtime instrumentation and static analysis. -We can analyse, change and add further code during compilation via -callbacks [2]_, GIMPLE [3]_, IPA [4]_ and RTL passes [5]_. - -The GCC plugin infrastructure of the kernel supports building out-of-tree -modules, cross-compilation and building in a separate directory. -Plugin source files have to be compilable by a C++ compiler. - -Currently the GCC plugin infrastructure supports only some architectures. -Grep "select HAVE_GCC_PLUGINS" to find out which architectures support -GCC plugins. - -This infrastructure was ported from grsecurity [6]_ and PaX [7]_. - --- - -.. [1] https://gcc.gnu.org/onlinedocs/gccint/Plugins.html -.. [2] https://gcc.gnu.org/onlinedocs/gccint/Plugin-API.html#Plugin-API -.. [3] https://gcc.gnu.org/onlinedocs/gccint/GIMPLE.html -.. [4] https://gcc.gnu.org/onlinedocs/gccint/IPA.html -.. [5] https://gcc.gnu.org/onlinedocs/gccint/RTL.html -.. [6] https://grsecurity.net/ -.. [7] https://pax.grsecurity.net/ - - -Purpose -======= - -GCC plugins are designed to provide a place to experiment with potential -compiler features that are neither in GCC nor Clang upstream. Once -their utility is proven, the goal is to upstream the feature into GCC -(and Clang), and then to finally remove them from the kernel once the -feature is available in all supported versions of GCC. - -Specifically, new plugins should implement only features that have no -upstream compiler support (in either GCC or Clang). - -When a feature exists in Clang but not GCC, effort should be made to -bring the feature to upstream GCC (rather than just as a kernel-specific -GCC plugin), so the entire ecosystem can benefit from it. - -Similarly, even if a feature provided by a GCC plugin does *not* exist -in Clang, but the feature is proven to be useful, effort should be spent -to upstream the feature to GCC (and Clang). - -After a feature is available in upstream GCC, the plugin will be made -unbuildable for the corresponding GCC version (and later). Once all -kernel-supported versions of GCC provide the feature, the plugin will -be removed from the kernel. - - -Files -===== - -**$(src)/scripts/gcc-plugins** - - This is the directory of the GCC plugins. - -**$(src)/scripts/gcc-plugins/gcc-common.h** - - This is a compatibility header for GCC plugins. - It should be always included instead of individual gcc headers. - -**$(src)/scripts/gcc-plugins/gcc-generate-gimple-pass.h, -$(src)/scripts/gcc-plugins/gcc-generate-ipa-pass.h, -$(src)/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h, -$(src)/scripts/gcc-plugins/gcc-generate-rtl-pass.h** - - These headers automatically generate the registration structures for - GIMPLE, SIMPLE_IPA, IPA and RTL passes. - They should be preferred to creating the structures by hand. - - -Usage -===== - -You must install the gcc plugin headers for your gcc version, -e.g., on Ubuntu for gcc-10:: - - apt-get install gcc-10-plugin-dev - -Or on Fedora:: - - dnf install gcc-plugin-devel libmpc-devel - -Or on Fedora when using cross-compilers that include plugins:: - - dnf install libmpc-devel - -Enable the GCC plugin infrastructure and some plugin(s) you want to use -in the kernel config:: - - CONFIG_GCC_PLUGINS=y - CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y - ... - -Run gcc (native or cross-compiler) to ensure plugin headers are detected:: - - gcc -print-file-name=plugin - CROSS_COMPILE=arm-linux-gnu- ${CROSS_COMPILE}gcc -print-file-name=plugin - -The word "plugin" means they are not detected:: - - plugin - -A full path means they are detected:: - - /usr/lib/gcc/x86_64-redhat-linux/12/plugin - -To compile the minimum tool set including the plugin(s):: - - make scripts - -or just run the kernel make and compile the whole kernel with -the cyclomatic complexity GCC plugin. - - -4. How to add a new GCC plugin -============================== - -The GCC plugins are in scripts/gcc-plugins/. You need to put plugin source files -right under scripts/gcc-plugins/. Creating subdirectories is not supported. -It must be added to scripts/gcc-plugins/Makefile, scripts/Makefile.gcc-plugins -and a relevant Kconfig file. +========================= +GCC plugin infrastructure +========================= + + +Introduction +============ + +GCC plugins are loadable modules that provide extra features to the +compiler [1]_. They are useful for runtime instrumentation and static analysis. +We can analyse, change and add further code during compilation via +callbacks [2]_, GIMPLE [3]_, IPA [4]_ and RTL passes [5]_. + +The GCC plugin infrastructure of the kernel supports building out-of-tree +modules, cross-compilation and building in a separate directory. +Plugin source files have to be compilable by a C++ compiler. + +Currently the GCC plugin infrastructure supports only some architectures. +Grep "select HAVE_GCC_PLUGINS" to find out which architectures support +GCC plugins. + +This infrastructure was ported from grsecurity [6]_ and PaX [7]_. + +-- + +.. [1] https://gcc.gnu.org/onlinedocs/gccint/Plugins.html +.. [2] https://gcc.gnu.org/onlinedocs/gccint/Plugin-API.html#Plugin-API +.. [3] https://gcc.gnu.org/onlinedocs/gccint/GIMPLE.html +.. [4] https://gcc.gnu.org/onlinedocs/gccint/IPA.html +.. [5] https://gcc.gnu.org/onlinedocs/gccint/RTL.html +.. [6] https://grsecurity.net/ +.. [7] https://pax.grsecurity.net/ + + +Purpose +======= + +GCC plugins are designed to provide a place to experiment with potential +compiler features that are neither in GCC nor Clang upstream. Once +their utility is proven, the goal is to upstream the feature into GCC +(and Clang), and then to finally remove them from the kernel once the +feature is available in all supported versions of GCC. + +Specifically, new plugins should implement only features that have no +upstream compiler support (in either GCC or Clang). + +When a feature exists in Clang but not GCC, effort should be made to +bring the feature to upstream GCC (rather than just as a kernel-specific +GCC plugin), so the entire ecosystem can benefit from it. + +Similarly, even if a feature provided by a GCC plugin does *not* exist +in Clang, but the feature is proven to be useful, effort should be spent +to upstream the feature to GCC (and Clang). + +After a feature is available in upstream GCC, the plugin will be made +unbuildable for the corresponding GCC version (and later). Once all +kernel-supported versions of GCC provide the feature, the plugin will +be removed from the kernel. + + +Files +===== + +**$(src)/scripts/gcc-plugins** + + This is the directory of the GCC plugins. + +**$(src)/scripts/gcc-plugins/gcc-common.h** + + This is a compatibility header for GCC plugins. + It should be always included instead of individual gcc headers. + +**$(src)/scripts/gcc-plugins/gcc-generate-gimple-pass.h, +$(src)/scripts/gcc-plugins/gcc-generate-ipa-pass.h, +$(src)/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h, +$(src)/scripts/gcc-plugins/gcc-generate-rtl-pass.h** + + These headers automatically generate the registration structures for + GIMPLE, SIMPLE_IPA, IPA and RTL passes. + They should be preferred to creating the structures by hand. + + +Usage +===== + +You must install the gcc plugin headers for your gcc version, +e.g., on Ubuntu for gcc-10:: + + apt-get install gcc-10-plugin-dev + +Or on Fedora:: + + dnf install gcc-plugin-devel libmpc-devel + +Or on Fedora when using cross-compilers that include plugins:: + + dnf install libmpc-devel + +Enable the GCC plugin infrastructure and some plugin(s) you want to use +in the kernel config:: + + CONFIG_GCC_PLUGINS=y + CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y + ... + +Run gcc (native or cross-compiler) to ensure plugin headers are detected:: + + gcc -print-file-name=plugin + CROSS_COMPILE=arm-linux-gnu- ${CROSS_COMPILE}gcc -print-file-name=plugin + +The word "plugin" means they are not detected:: + + plugin + +A full path means they are detected:: + + /usr/lib/gcc/x86_64-redhat-linux/12/plugin + +To compile the minimum tool set including the plugin(s):: + + make scripts + +or just run the kernel make and compile the whole kernel with +the cyclomatic complexity GCC plugin. + + +4. How to add a new GCC plugin +============================== + +The GCC plugins are in scripts/gcc-plugins/. You need to put plugin source files +right under scripts/gcc-plugins/. Creating subdirectories is not supported. +It must be added to scripts/gcc-plugins/Makefile, scripts/Makefile.gcc-plugins +and a relevant Kconfig file. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/leds/leds-el15203000.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/leds/leds-el15203000.rst index 88aad3b2c..12c23d797 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/leds/leds-el15203000.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/leds/leds-el15203000.rst @@ -1,140 +1,140 @@ -.. SPDX-License-Identifier: GPL-2.0 - -================================== -Kernel driver for Crane EL15203000 -================================== - -/sys/class/leds//hw_pattern --------------------------------- - -Specify a hardware pattern for the EL15203000 LED. - -The LEDs board supports only predefined patterns by firmware -for specific LEDs. - -Breathing mode for Screen frame light tube:: - - "0 4000 1 4000" - - ^ - | - Max-| --- - | / \ - | / \ - | / \ / - | / \ / - Min-|- --- - | - 0------4------8--> time (sec) - -Cascade mode for Pipe LED:: - - "1 800 2 800 4 800 8 800 16 800" - - ^ - | - 0 On -|----+ +----+ +--- - | | | | | - Off-| +-------------------+ +-------------------+ - | - 1 On -| +----+ +----+ - | | | | | - Off |----+ +-------------------+ +------------------ - | - 2 On -| +----+ +----+ - | | | | | - Off-|---------+ +-------------------+ +------------- - | - 3 On -| +----+ +----+ - | | | | | - Off-|--------------+ +-------------------+ +-------- - | - 4 On -| +----+ +----+ - | | | | | - Off-|-------------------+ +-------------------+ +--- - | - 0---0.8--1.6--2.4--3.2---4---4.8--5.6--6.4--7.2---8--> time (sec) - -Inverted cascade mode for Pipe LED:: - - "30 800 29 800 27 800 23 800 15 800" - - ^ - | - 0 On -| +-------------------+ +-------------------+ - | | | | | - Off-|----+ +----+ +--- - | - 1 On -|----+ +-------------------+ +------------------ - | | | | | - Off | +----+ +----+ - | - 2 On -|---------+ +-------------------+ +------------- - | | | | | - Off-| +----+ +----+ - | - 3 On -|--------------+ +-------------------+ +-------- - | | | | | - Off-| +----+ +----+ - | - 4 On -|-------------------+ +-------------------+ +--- - | | | | | - Off-| +----+ +----+ - | - 0---0.8--1.6--2.4--3.2---4---4.8--5.6--6.4--7.2---8--> time (sec) - -Bounce mode for Pipe LED:: - - "1 800 2 800 4 800 8 800 16 800 16 800 8 800 4 800 2 800 1 800" - - ^ - | - 0 On -|----+ +-------- - | | | - Off-| +---------------------------------------+ - | - 1 On -| +----+ +----+ - | | | | | - Off |----+ +-----------------------------+ +-------- - | - 2 On -| +----+ +----+ - | | | | | - Off-|---------+ +-------------------+ +------------- - | - 3 On -| +----+ +----+ - | | | | | - Off-|--------------+ +---------+ +------------------ - | - 4 On -| +---------+ - | | | - Off-|-------------------+ +----------------------- - | - 0---0.8--1.6--2.4--3.2---4---4.8--5.6--6.4--7.2---8--> time (sec) - -Inverted bounce mode for Pipe LED:: - - "30 800 29 800 27 800 23 800 15 800 15 800 23 800 27 800 29 800 30 800" - - ^ - | - 0 On -| +---------------------------------------+ - | | | - Off-|----+ +-------- - | - 1 On -|----+ +-----------------------------+ +-------- - | | | | | - Off | +----+ +----+ - | - 2 On -|---------+ +-------------------+ +------------- - | | | | | - Off-| +----+ +----+ - | - 3 On -|--------------+ +---------+ +------------------ - | | | | | - Off-| +----+ +----+ - | - 4 On -|-------------------+ +----------------------- - | | | - Off-| +---------+ - | - 0---0.8--1.6--2.4--3.2---4---4.8--5.6--6.4--7.2---8--> time (sec) +.. SPDX-License-Identifier: GPL-2.0 + +================================== +Kernel driver for Crane EL15203000 +================================== + +/sys/class/leds//hw_pattern +-------------------------------- + +Specify a hardware pattern for the EL15203000 LED. + +The LEDs board supports only predefined patterns by firmware +for specific LEDs. + +Breathing mode for Screen frame light tube:: + + "0 4000 1 4000" + + ^ + | + Max-| --- + | / \ + | / \ + | / \ / + | / \ / + Min-|- --- + | + 0------4------8--> time (sec) + +Cascade mode for Pipe LED:: + + "1 800 2 800 4 800 8 800 16 800" + + ^ + | + 0 On -|----+ +----+ +--- + | | | | | + Off-| +-------------------+ +-------------------+ + | + 1 On -| +----+ +----+ + | | | | | + Off |----+ +-------------------+ +------------------ + | + 2 On -| +----+ +----+ + | | | | | + Off-|---------+ +-------------------+ +------------- + | + 3 On -| +----+ +----+ + | | | | | + Off-|--------------+ +-------------------+ +-------- + | + 4 On -| +----+ +----+ + | | | | | + Off-|-------------------+ +-------------------+ +--- + | + 0---0.8--1.6--2.4--3.2---4---4.8--5.6--6.4--7.2---8--> time (sec) + +Inverted cascade mode for Pipe LED:: + + "30 800 29 800 27 800 23 800 15 800" + + ^ + | + 0 On -| +-------------------+ +-------------------+ + | | | | | + Off-|----+ +----+ +--- + | + 1 On -|----+ +-------------------+ +------------------ + | | | | | + Off | +----+ +----+ + | + 2 On -|---------+ +-------------------+ +------------- + | | | | | + Off-| +----+ +----+ + | + 3 On -|--------------+ +-------------------+ +-------- + | | | | | + Off-| +----+ +----+ + | + 4 On -|-------------------+ +-------------------+ +--- + | | | | | + Off-| +----+ +----+ + | + 0---0.8--1.6--2.4--3.2---4---4.8--5.6--6.4--7.2---8--> time (sec) + +Bounce mode for Pipe LED:: + + "1 800 2 800 4 800 8 800 16 800 16 800 8 800 4 800 2 800 1 800" + + ^ + | + 0 On -|----+ +-------- + | | | + Off-| +---------------------------------------+ + | + 1 On -| +----+ +----+ + | | | | | + Off |----+ +-----------------------------+ +-------- + | + 2 On -| +----+ +----+ + | | | | | + Off-|---------+ +-------------------+ +------------- + | + 3 On -| +----+ +----+ + | | | | | + Off-|--------------+ +---------+ +------------------ + | + 4 On -| +---------+ + | | | + Off-|-------------------+ +----------------------- + | + 0---0.8--1.6--2.4--3.2---4---4.8--5.6--6.4--7.2---8--> time (sec) + +Inverted bounce mode for Pipe LED:: + + "30 800 29 800 27 800 23 800 15 800 15 800 23 800 27 800 29 800 30 800" + + ^ + | + 0 On -| +---------------------------------------+ + | | | + Off-|----+ +-------- + | + 1 On -|----+ +-----------------------------+ +-------- + | | | | | + Off | +----+ +----+ + | + 2 On -|---------+ +-------------------+ +------------- + | | | | | + Off-| +----+ +----+ + | + 3 On -|--------------+ +---------+ +------------------ + | | | | | + Off-| +----+ +----+ + | + 4 On -|-------------------+ +----------------------- + | | | + Off-| +---------+ + | + 0---0.8--1.6--2.4--3.2---4---4.8--5.6--6.4--7.2---8--> time (sec) diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/leds/leds-lp5523.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/leds/leds-lp5523.rst index c565c41c8..7d7362a1d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/leds/leds-lp5523.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/leds/leds-lp5523.rst @@ -1,147 +1,147 @@ -======================== -Kernel driver for lp5523 -======================== - -* National Semiconductor LP5523 led driver chip -* Datasheet: http://www.national.com/pf/LP/LP5523.html - -Authors: Mathias Nyman, Yuri Zaporozhets, Samu Onkalo -Contact: Samu Onkalo (samu.p.onkalo-at-nokia.com) - -Description ------------ -LP5523 can drive up to 9 channels. Leds can be controlled directly via -the led class control interface. -The name of each channel is configurable in the platform data - name and label. -There are three options to make the channel name. - -a) Define the 'name' in the platform data - -To make specific channel name, then use 'name' platform data. - -- /sys/class/leds/R1 (name: 'R1') -- /sys/class/leds/B1 (name: 'B1') - -b) Use the 'label' with no 'name' field - -For one device name with channel number, then use 'label'. -- /sys/class/leds/RGB:channelN (label: 'RGB', N: 0 ~ 8) - -c) Default - -If both fields are NULL, 'lp5523' is used by default. -- /sys/class/leds/lp5523:channelN (N: 0 ~ 8) - -LP5523 has the internal program memory for running various LED patterns. -There are two ways to run LED patterns. - -1) Legacy interface - enginex_mode, enginex_load and enginex_leds - - Control interface for the engines: - - x is 1 .. 3 - - enginex_mode: - disabled, load, run - enginex_load: - microcode load - enginex_leds: - led mux control - - :: - - cd /sys/class/leds/lp5523:channel2/device - echo "load" > engine3_mode - echo "9d80400004ff05ff437f0000" > engine3_load - echo "111111111" > engine3_leds - echo "run" > engine3_mode - - To stop the engine:: - - echo "disabled" > engine3_mode - -2) Firmware interface - LP55xx common interface - -For the details, please refer to 'firmware' section in leds-lp55xx.txt - -LP5523 has three master faders. If a channel is mapped to one of -the master faders, its output is dimmed based on the value of the master -fader. - -For example:: - - echo "123000123" > master_fader_leds - -creates the following channel-fader mappings:: - - channel 0,6 to master_fader1 - channel 1,7 to master_fader2 - channel 2,8 to master_fader3 - -Then, to have 25% of the original output on channel 0,6:: - - echo 64 > master_fader1 - -To have 0% of the original output (i.e. no output) channel 1,7:: - - echo 0 > master_fader2 - -To have 100% of the original output (i.e. no dimming) on channel 2,8:: - - echo 255 > master_fader3 - -To clear all master fader controls:: - - echo "000000000" > master_fader_leds - -Selftest uses always the current from the platform data. - -Each channel contains led current settings. -- /sys/class/leds/lp5523:channel2/led_current - RW -- /sys/class/leds/lp5523:channel2/max_current - RO - -Format: 10x mA i.e 10 means 1.0 mA - -Example platform data:: - - static struct lp55xx_led_config lp5523_led_config[] = { - { - .name = "D1", - .chan_nr = 0, - .led_current = 50, - .max_current = 130, - }, - ... - { - .chan_nr = 8, - .led_current = 50, - .max_current = 130, - } - }; - - static int lp5523_setup(void) - { - /* Setup HW resources */ - } - - static void lp5523_release(void) - { - /* Release HW resources */ - } - - static void lp5523_enable(bool state) - { - /* Control chip enable signal */ - } - - static struct lp55xx_platform_data lp5523_platform_data = { - .led_config = lp5523_led_config, - .num_channels = ARRAY_SIZE(lp5523_led_config), - .clock_mode = LP55XX_CLOCK_EXT, - .setup_resources = lp5523_setup, - .release_resources = lp5523_release, - .enable = lp5523_enable, - }; - -Note - chan_nr can have values between 0 and 8. +======================== +Kernel driver for lp5523 +======================== + +* National Semiconductor LP5523 led driver chip +* Datasheet: http://www.national.com/pf/LP/LP5523.html + +Authors: Mathias Nyman, Yuri Zaporozhets, Samu Onkalo +Contact: Samu Onkalo (samu.p.onkalo-at-nokia.com) + +Description +----------- +LP5523 can drive up to 9 channels. Leds can be controlled directly via +the led class control interface. +The name of each channel is configurable in the platform data - name and label. +There are three options to make the channel name. + +a) Define the 'name' in the platform data + +To make specific channel name, then use 'name' platform data. + +- /sys/class/leds/R1 (name: 'R1') +- /sys/class/leds/B1 (name: 'B1') + +b) Use the 'label' with no 'name' field + +For one device name with channel number, then use 'label'. +- /sys/class/leds/RGB:channelN (label: 'RGB', N: 0 ~ 8) + +c) Default + +If both fields are NULL, 'lp5523' is used by default. +- /sys/class/leds/lp5523:channelN (N: 0 ~ 8) + +LP5523 has the internal program memory for running various LED patterns. +There are two ways to run LED patterns. + +1) Legacy interface - enginex_mode, enginex_load and enginex_leds + + Control interface for the engines: + + x is 1 .. 3 + + enginex_mode: + disabled, load, run + enginex_load: + microcode load + enginex_leds: + led mux control + + :: + + cd /sys/class/leds/lp5523:channel2/device + echo "load" > engine3_mode + echo "9d80400004ff05ff437f0000" > engine3_load + echo "111111111" > engine3_leds + echo "run" > engine3_mode + + To stop the engine:: + + echo "disabled" > engine3_mode + +2) Firmware interface - LP55xx common interface + +For the details, please refer to 'firmware' section in leds-lp55xx.txt + +LP5523 has three master faders. If a channel is mapped to one of +the master faders, its output is dimmed based on the value of the master +fader. + +For example:: + + echo "123000123" > master_fader_leds + +creates the following channel-fader mappings:: + + channel 0,6 to master_fader1 + channel 1,7 to master_fader2 + channel 2,8 to master_fader3 + +Then, to have 25% of the original output on channel 0,6:: + + echo 64 > master_fader1 + +To have 0% of the original output (i.e. no output) channel 1,7:: + + echo 0 > master_fader2 + +To have 100% of the original output (i.e. no dimming) on channel 2,8:: + + echo 255 > master_fader3 + +To clear all master fader controls:: + + echo "000000000" > master_fader_leds + +Selftest uses always the current from the platform data. + +Each channel contains led current settings. +- /sys/class/leds/lp5523:channel2/led_current - RW +- /sys/class/leds/lp5523:channel2/max_current - RO + +Format: 10x mA i.e 10 means 1.0 mA + +Example platform data:: + + static struct lp55xx_led_config lp5523_led_config[] = { + { + .name = "D1", + .chan_nr = 0, + .led_current = 50, + .max_current = 130, + }, + ... + { + .chan_nr = 8, + .led_current = 50, + .max_current = 130, + } + }; + + static int lp5523_setup(void) + { + /* Setup HW resources */ + } + + static void lp5523_release(void) + { + /* Release HW resources */ + } + + static void lp5523_enable(bool state) + { + /* Control chip enable signal */ + } + + static struct lp55xx_platform_data lp5523_platform_data = { + .led_config = lp5523_led_config, + .num_channels = ARRAY_SIZE(lp5523_led_config), + .clock_mode = LP55XX_CLOCK_EXT, + .setup_resources = lp5523_setup, + .release_resources = lp5523_release, + .enable = lp5523_enable, + }; + +Note + chan_nr can have values between 0 and 8. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/leds/leds-lp5562.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/leds/leds-lp5562.rst index 901e6954f..79bbb2487 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/leds/leds-lp5562.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/leds/leds-lp5562.rst @@ -1,137 +1,137 @@ -======================== -Kernel driver for lp5562 -======================== - -* TI LP5562 LED Driver - -Author: Milo(Woogyom) Kim - -Description -=========== - - LP5562 can drive up to 4 channels. R/G/B and White. - LEDs can be controlled directly via the led class control interface. - - All four channels can be also controlled using the engine micro programs. - LP5562 has the internal program memory for running various LED patterns. - For the details, please refer to 'firmware' section in leds-lp55xx.txt - -Device attribute -================ - -engine_mux - 3 Engines are allocated in LP5562, but the number of channel is 4. - Therefore each channel should be mapped to the engine number. - - Value: RGB or W - - This attribute is used for programming LED data with the firmware interface. - Unlike the LP5521/LP5523/55231, LP5562 has unique feature for the engine mux, - so additional sysfs is required - - LED Map - - ===== === =============================== - Red ... Engine 1 (fixed) - Green ... Engine 2 (fixed) - Blue ... Engine 3 (fixed) - White ... Engine 1 or 2 or 3 (selective) - ===== === =============================== - -How to load the program data using engine_mux -============================================= - - Before loading the LP5562 program data, engine_mux should be written between - the engine selection and loading the firmware. - Engine mux has two different mode, RGB and W. - RGB is used for loading RGB program data, W is used for W program data. - - For example, run blinking green channel pattern:: - - echo 2 > /sys/bus/i2c/devices/xxxx/select_engine # 2 is for green channel - echo "RGB" > /sys/bus/i2c/devices/xxxx/engine_mux # engine mux for RGB - echo 1 > /sys/class/firmware/lp5562/loading - echo "4000600040FF6000" > /sys/class/firmware/lp5562/data - echo 0 > /sys/class/firmware/lp5562/loading - echo 1 > /sys/bus/i2c/devices/xxxx/run_engine - - To run a blinking white pattern:: - - echo 1 or 2 or 3 > /sys/bus/i2c/devices/xxxx/select_engine - echo "W" > /sys/bus/i2c/devices/xxxx/engine_mux - echo 1 > /sys/class/firmware/lp5562/loading - echo "4000600040FF6000" > /sys/class/firmware/lp5562/data - echo 0 > /sys/class/firmware/lp5562/loading - echo 1 > /sys/bus/i2c/devices/xxxx/run_engine - -How to load the predefined patterns -=================================== - - Please refer to 'leds-lp55xx.txt" - -Setting Current of Each Channel -=============================== - - Like LP5521 and LP5523/55231, LP5562 provides LED current settings. - The 'led_current' and 'max_current' are used. - -Example of Platform data -======================== - -:: - - static struct lp55xx_led_config lp5562_led_config[] = { - { - .name = "R", - .chan_nr = 0, - .led_current = 20, - .max_current = 40, - }, - { - .name = "G", - .chan_nr = 1, - .led_current = 20, - .max_current = 40, - }, - { - .name = "B", - .chan_nr = 2, - .led_current = 20, - .max_current = 40, - }, - { - .name = "W", - .chan_nr = 3, - .led_current = 20, - .max_current = 40, - }, - }; - - static int lp5562_setup(void) - { - /* setup HW resources */ - } - - static void lp5562_release(void) - { - /* Release HW resources */ - } - - static void lp5562_enable(bool state) - { - /* Control of chip enable signal */ - } - - static struct lp55xx_platform_data lp5562_platform_data = { - .led_config = lp5562_led_config, - .num_channels = ARRAY_SIZE(lp5562_led_config), - .setup_resources = lp5562_setup, - .release_resources = lp5562_release, - .enable = lp5562_enable, - }; - -To configure the platform specific data, lp55xx_platform_data structure is used - - -If the current is set to 0 in the platform data, that channel is -disabled and it is not visible in the sysfs. +======================== +Kernel driver for lp5562 +======================== + +* TI LP5562 LED Driver + +Author: Milo(Woogyom) Kim + +Description +=========== + + LP5562 can drive up to 4 channels. R/G/B and White. + LEDs can be controlled directly via the led class control interface. + + All four channels can be also controlled using the engine micro programs. + LP5562 has the internal program memory for running various LED patterns. + For the details, please refer to 'firmware' section in leds-lp55xx.txt + +Device attribute +================ + +engine_mux + 3 Engines are allocated in LP5562, but the number of channel is 4. + Therefore each channel should be mapped to the engine number. + + Value: RGB or W + + This attribute is used for programming LED data with the firmware interface. + Unlike the LP5521/LP5523/55231, LP5562 has unique feature for the engine mux, + so additional sysfs is required + + LED Map + + ===== === =============================== + Red ... Engine 1 (fixed) + Green ... Engine 2 (fixed) + Blue ... Engine 3 (fixed) + White ... Engine 1 or 2 or 3 (selective) + ===== === =============================== + +How to load the program data using engine_mux +============================================= + + Before loading the LP5562 program data, engine_mux should be written between + the engine selection and loading the firmware. + Engine mux has two different mode, RGB and W. + RGB is used for loading RGB program data, W is used for W program data. + + For example, run blinking green channel pattern:: + + echo 2 > /sys/bus/i2c/devices/xxxx/select_engine # 2 is for green channel + echo "RGB" > /sys/bus/i2c/devices/xxxx/engine_mux # engine mux for RGB + echo 1 > /sys/class/firmware/lp5562/loading + echo "4000600040FF6000" > /sys/class/firmware/lp5562/data + echo 0 > /sys/class/firmware/lp5562/loading + echo 1 > /sys/bus/i2c/devices/xxxx/run_engine + + To run a blinking white pattern:: + + echo 1 or 2 or 3 > /sys/bus/i2c/devices/xxxx/select_engine + echo "W" > /sys/bus/i2c/devices/xxxx/engine_mux + echo 1 > /sys/class/firmware/lp5562/loading + echo "4000600040FF6000" > /sys/class/firmware/lp5562/data + echo 0 > /sys/class/firmware/lp5562/loading + echo 1 > /sys/bus/i2c/devices/xxxx/run_engine + +How to load the predefined patterns +=================================== + + Please refer to 'leds-lp55xx.txt" + +Setting Current of Each Channel +=============================== + + Like LP5521 and LP5523/55231, LP5562 provides LED current settings. + The 'led_current' and 'max_current' are used. + +Example of Platform data +======================== + +:: + + static struct lp55xx_led_config lp5562_led_config[] = { + { + .name = "R", + .chan_nr = 0, + .led_current = 20, + .max_current = 40, + }, + { + .name = "G", + .chan_nr = 1, + .led_current = 20, + .max_current = 40, + }, + { + .name = "B", + .chan_nr = 2, + .led_current = 20, + .max_current = 40, + }, + { + .name = "W", + .chan_nr = 3, + .led_current = 20, + .max_current = 40, + }, + }; + + static int lp5562_setup(void) + { + /* setup HW resources */ + } + + static void lp5562_release(void) + { + /* Release HW resources */ + } + + static void lp5562_enable(bool state) + { + /* Control of chip enable signal */ + } + + static struct lp55xx_platform_data lp5562_platform_data = { + .led_config = lp5562_led_config, + .num_channels = ARRAY_SIZE(lp5562_led_config), + .setup_resources = lp5562_setup, + .release_resources = lp5562_release, + .enable = lp5562_enable, + }; + +To configure the platform specific data, lp55xx_platform_data structure is used + + +If the current is set to 0 in the platform data, that channel is +disabled and it is not visible in the sysfs. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/leds/well-known-leds.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/leds/well-known-leds.txt index 6645ff4f8..17ef78faf 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/leds/well-known-leds.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/leds/well-known-leds.txt @@ -1,111 +1,111 @@ --*- org -*- - -It is somehow important to provide consistent interface to the -userland. LED devices have one problem there, and that is naming of -directories in /sys/class/leds. It would be nice if userland would -just know right "name" for given LED function, but situation got more -complex. - -Anyway, if backwards compatibility is not an issue, new code should -use one of the "good" names from this list, and you should extend the -list where applicable. - -Legacy names are listed, too; in case you are writing application that -wants to use particular feature, you should probe for good name, first, -but then try the legacy ones, too. - -Notice there's a list of functions in include/dt-bindings/leds/common.h . - -* Gamepads and joysticks - -Game controllers may feature LEDs to indicate a player number. This is commonly -used on game consoles in which multiple controllers can be connected to a system. -The "player LEDs" are then programmed with a pattern to indicate a particular -player. For example, a game controller with 4 LEDs, may be programmed with "x---" -to indicate player 1, "-x--" to indicate player 2 etcetera where "x" means on. -Input drivers can utilize the LED class to expose the individual player LEDs -of a game controller using the function "player". -Note: tracking and management of Player IDs is the responsibility of user space, -though drivers may pick a default value. - -Good: "input*:*:player-{1,2,3,4,5} - -* Keyboards - -Good: "input*:*:capslock" -Good: "input*:*:scrolllock" -Good: "input*:*:numlock" -Legacy: "shift-key-light" (Motorola Droid 4, capslock) - -Set of common keyboard LEDs, going back to PC AT or so. - -Legacy: "tpacpi::thinklight" (IBM/Lenovo Thinkpads) -Legacy: "lp5523:kb{1,2,3,4,5,6}" (Nokia N900) - -Frontlight/backlight of main keyboard. - -Legacy: "button-backlight" (Motorola Droid 4) - -Some phones have touch buttons below screen; it is different from main -keyboard. And this is their backlight. - -* Sound subsystem - -Good: "platform:*:mute" -Good: "platform:*:micmute" - -LEDs on notebook body, indicating that sound input / output is muted. - -* System notification - -Good: "rgb:status" -Legacy: "status-led:{red,green,blue}" (Motorola Droid 4) -Legacy: "lp5523:{r,g,b}" (Nokia N900) - -Phones usually have multi-color status LED. - -* Power management - -Good: "platform:*:charging" (allwinner sun50i, leds-cht-wcove) - -* Screen - -Good: ":backlight" (Motorola Droid 4) - -* Indicators - -Good: ":indicator" (Blinkm) - -* RGB - -Good: ":rgb" (Blinkm) - -* Ethernet LEDs - -Currently two types of Network LEDs are support, those controlled by -the PHY and those by the MAC. In theory both can be present at the -same time for one Linux netdev, hence the names need to differ between -MAC and PHY. - -Do not use the netdev name, such as eth0, enp1s0. These are not stable -and are not unique. They also don't differentiate between MAC and PHY. - -** MAC LEDs - -Good: f1070000.ethernet:white:WAN -Good: mdio_mux-0.1:00:green:left -Good: 0000:02:00.0:yellow:top - -The first part must uniquely name the MAC controller. Then follows the -colour. WAN/LAN should be used for a single LED. If there are -multiple LEDs, use left/right, or top/bottom to indicate their -position on the RJ45 socket. - -** PHY LEDs - -Good: f1072004.mdio-mii:00: white:WAN -Good: !mdio-mux!mdio@2!switch@0!mdio:01:green:right -Good: r8169-0-200:00:yellow:bottom - -The first part must uniquely name the PHY. This often means uniquely -identifying the MDIO bus controller, and the address on the bus. +-*- org -*- + +It is somehow important to provide consistent interface to the +userland. LED devices have one problem there, and that is naming of +directories in /sys/class/leds. It would be nice if userland would +just know right "name" for given LED function, but situation got more +complex. + +Anyway, if backwards compatibility is not an issue, new code should +use one of the "good" names from this list, and you should extend the +list where applicable. + +Legacy names are listed, too; in case you are writing application that +wants to use particular feature, you should probe for good name, first, +but then try the legacy ones, too. + +Notice there's a list of functions in include/dt-bindings/leds/common.h . + +* Gamepads and joysticks + +Game controllers may feature LEDs to indicate a player number. This is commonly +used on game consoles in which multiple controllers can be connected to a system. +The "player LEDs" are then programmed with a pattern to indicate a particular +player. For example, a game controller with 4 LEDs, may be programmed with "x---" +to indicate player 1, "-x--" to indicate player 2 etcetera where "x" means on. +Input drivers can utilize the LED class to expose the individual player LEDs +of a game controller using the function "player". +Note: tracking and management of Player IDs is the responsibility of user space, +though drivers may pick a default value. + +Good: "input*:*:player-{1,2,3,4,5} + +* Keyboards + +Good: "input*:*:capslock" +Good: "input*:*:scrolllock" +Good: "input*:*:numlock" +Legacy: "shift-key-light" (Motorola Droid 4, capslock) + +Set of common keyboard LEDs, going back to PC AT or so. + +Legacy: "tpacpi::thinklight" (IBM/Lenovo Thinkpads) +Legacy: "lp5523:kb{1,2,3,4,5,6}" (Nokia N900) + +Frontlight/backlight of main keyboard. + +Legacy: "button-backlight" (Motorola Droid 4) + +Some phones have touch buttons below screen; it is different from main +keyboard. And this is their backlight. + +* Sound subsystem + +Good: "platform:*:mute" +Good: "platform:*:micmute" + +LEDs on notebook body, indicating that sound input / output is muted. + +* System notification + +Good: "rgb:status" +Legacy: "status-led:{red,green,blue}" (Motorola Droid 4) +Legacy: "lp5523:{r,g,b}" (Nokia N900) + +Phones usually have multi-color status LED. + +* Power management + +Good: "platform:*:charging" (allwinner sun50i, leds-cht-wcove) + +* Screen + +Good: ":backlight" (Motorola Droid 4) + +* Indicators + +Good: ":indicator" (Blinkm) + +* RGB + +Good: ":rgb" (Blinkm) + +* Ethernet LEDs + +Currently two types of Network LEDs are support, those controlled by +the PHY and those by the MAC. In theory both can be present at the +same time for one Linux netdev, hence the names need to differ between +MAC and PHY. + +Do not use the netdev name, such as eth0, enp1s0. These are not stable +and are not unique. They also don't differentiate between MAC and PHY. + +** MAC LEDs + +Good: f1070000.ethernet:white:WAN +Good: mdio_mux-0.1:00:green:left +Good: 0000:02:00.0:yellow:top + +The first part must uniquely name the MAC controller. Then follows the +colour. WAN/LAN should be used for a single LED. If there are +multiple LEDs, use left/right, or top/bottom to indicate their +position on the RJ45 socket. + +** PHY LEDs + +Good: f1072004.mdio-mii:00: white:WAN +Good: !mdio-mux!mdio@2!switch@0!mdio:01:green:right +Good: r8169-0-200:00:yellow:bottom + +The first part must uniquely name the PHY. This often means uniquely +identifying the MDIO bus controller, and the address on the bus. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/livepatch/cumulative-patches.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/livepatch/cumulative-patches.rst index 73da6eace..1931f3189 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/livepatch/cumulative-patches.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/livepatch/cumulative-patches.rst @@ -1,102 +1,102 @@ -=================================== -Atomic Replace & Cumulative Patches -=================================== - -There might be dependencies between livepatches. If multiple patches need -to do different changes to the same function(s) then we need to define -an order in which the patches will be installed. And function implementations -from any newer livepatch must be done on top of the older ones. - -This might become a maintenance nightmare. Especially when more patches -modified the same function in different ways. - -An elegant solution comes with the feature called "Atomic Replace". It allows -creation of so called "Cumulative Patches". They include all wanted changes -from all older livepatches and completely replace them in one transition. - -Usage ------ - -The atomic replace can be enabled by setting "replace" flag in struct klp_patch, -for example:: - - static struct klp_patch patch = { - .mod = THIS_MODULE, - .objs = objs, - .replace = true, - }; - -All processes are then migrated to use the code only from the new patch. -Once the transition is finished, all older patches are automatically -disabled. - -Ftrace handlers are transparently removed from functions that are no -longer modified by the new cumulative patch. - -As a result, the livepatch authors might maintain sources only for one -cumulative patch. It helps to keep the patch consistent while adding or -removing various fixes or features. - -Users could keep only the last patch installed on the system after -the transition to has finished. It helps to clearly see what code is -actually in use. Also the livepatch might then be seen as a "normal" -module that modifies the kernel behavior. The only difference is that -it can be updated at runtime without breaking its functionality. - - -Features --------- - -The atomic replace allows: - - - Atomically revert some functions in a previous patch while - upgrading other functions. - - - Remove eventual performance impact caused by core redirection - for functions that are no longer patched. - - - Decrease user confusion about dependencies between livepatches. - - -Limitations: ------------- - - - Once the operation finishes, there is no straightforward way - to reverse it and restore the replaced patches atomically. - - A good practice is to set .replace flag in any released livepatch. - Then re-adding an older livepatch is equivalent to downgrading - to that patch. This is safe as long as the livepatches do _not_ do - extra modifications in (un)patching callbacks or in the module_init() - or module_exit() functions, see below. - - Also note that the replaced patch can be removed and loaded again - only when the transition was not forced. - - - - Only the (un)patching callbacks from the _new_ cumulative livepatch are - executed. Any callbacks from the replaced patches are ignored. - - In other words, the cumulative patch is responsible for doing any actions - that are necessary to properly replace any older patch. - - As a result, it might be dangerous to replace newer cumulative patches by - older ones. The old livepatches might not provide the necessary callbacks. - - This might be seen as a limitation in some scenarios. But it makes life - easier in many others. Only the new cumulative livepatch knows what - fixes/features are added/removed and what special actions are necessary - for a smooth transition. - - In any case, it would be a nightmare to think about the order of - the various callbacks and their interactions if the callbacks from all - enabled patches were called. - - - - There is no special handling of shadow variables. Livepatch authors - must create their own rules how to pass them from one cumulative - patch to the other. Especially that they should not blindly remove - them in module_exit() functions. - - A good practice might be to remove shadow variables in the post-unpatch - callback. It is called only when the livepatch is properly disabled. +=================================== +Atomic Replace & Cumulative Patches +=================================== + +There might be dependencies between livepatches. If multiple patches need +to do different changes to the same function(s) then we need to define +an order in which the patches will be installed. And function implementations +from any newer livepatch must be done on top of the older ones. + +This might become a maintenance nightmare. Especially when more patches +modified the same function in different ways. + +An elegant solution comes with the feature called "Atomic Replace". It allows +creation of so called "Cumulative Patches". They include all wanted changes +from all older livepatches and completely replace them in one transition. + +Usage +----- + +The atomic replace can be enabled by setting "replace" flag in struct klp_patch, +for example:: + + static struct klp_patch patch = { + .mod = THIS_MODULE, + .objs = objs, + .replace = true, + }; + +All processes are then migrated to use the code only from the new patch. +Once the transition is finished, all older patches are automatically +disabled. + +Ftrace handlers are transparently removed from functions that are no +longer modified by the new cumulative patch. + +As a result, the livepatch authors might maintain sources only for one +cumulative patch. It helps to keep the patch consistent while adding or +removing various fixes or features. + +Users could keep only the last patch installed on the system after +the transition to has finished. It helps to clearly see what code is +actually in use. Also the livepatch might then be seen as a "normal" +module that modifies the kernel behavior. The only difference is that +it can be updated at runtime without breaking its functionality. + + +Features +-------- + +The atomic replace allows: + + - Atomically revert some functions in a previous patch while + upgrading other functions. + + - Remove eventual performance impact caused by core redirection + for functions that are no longer patched. + + - Decrease user confusion about dependencies between livepatches. + + +Limitations: +------------ + + - Once the operation finishes, there is no straightforward way + to reverse it and restore the replaced patches atomically. + + A good practice is to set .replace flag in any released livepatch. + Then re-adding an older livepatch is equivalent to downgrading + to that patch. This is safe as long as the livepatches do _not_ do + extra modifications in (un)patching callbacks or in the module_init() + or module_exit() functions, see below. + + Also note that the replaced patch can be removed and loaded again + only when the transition was not forced. + + + - Only the (un)patching callbacks from the _new_ cumulative livepatch are + executed. Any callbacks from the replaced patches are ignored. + + In other words, the cumulative patch is responsible for doing any actions + that are necessary to properly replace any older patch. + + As a result, it might be dangerous to replace newer cumulative patches by + older ones. The old livepatches might not provide the necessary callbacks. + + This might be seen as a limitation in some scenarios. But it makes life + easier in many others. Only the new cumulative livepatch knows what + fixes/features are added/removed and what special actions are necessary + for a smooth transition. + + In any case, it would be a nightmare to think about the order of + the various callbacks and their interactions if the callbacks from all + enabled patches were called. + + + - There is no special handling of shadow variables. Livepatch authors + must create their own rules how to pass them from one cumulative + patch to the other. Especially that they should not blindly remove + them in module_exit() functions. + + A good practice might be to remove shadow variables in the post-unpatch + callback. It is called only when the livepatch is properly disabled. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/locking/rt-mutex.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/locking/rt-mutex.rst index 5d403702f..3b5097a38 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/locking/rt-mutex.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/locking/rt-mutex.rst @@ -1,77 +1,77 @@ -================================== -RT-mutex subsystem with PI support -================================== - -RT-mutexes with priority inheritance are used to support PI-futexes, -which enable pthread_mutex_t priority inheritance attributes -(PTHREAD_PRIO_INHERIT). [See Documentation/locking/pi-futex.rst for more details -about PI-futexes.] - -This technology was developed in the -rt tree and streamlined for -pthread_mutex support. - -Basic principles: ------------------ - -RT-mutexes extend the semantics of simple mutexes by the priority -inheritance protocol. - -A low priority owner of a rt-mutex inherits the priority of a higher -priority waiter until the rt-mutex is released. If the temporarily -boosted owner blocks on a rt-mutex itself it propagates the priority -boosting to the owner of the other rt_mutex it gets blocked on. The -priority boosting is immediately removed once the rt_mutex has been -unlocked. - -This approach allows us to shorten the block of high-prio tasks on -mutexes which protect shared resources. Priority inheritance is not a -magic bullet for poorly designed applications, but it allows -well-designed applications to use userspace locks in critical parts of -an high priority thread, without losing determinism. - -The enqueueing of the waiters into the rtmutex waiter tree is done in -priority order. For same priorities FIFO order is chosen. For each -rtmutex, only the top priority waiter is enqueued into the owner's -priority waiters tree. This tree too queues in priority order. Whenever -the top priority waiter of a task changes (for example it timed out or -got a signal), the priority of the owner task is readjusted. The -priority enqueueing is handled by "pi_waiters". - -RT-mutexes are optimized for fastpath operations and have no internal -locking overhead when locking an uncontended mutex or unlocking a mutex -without waiters. The optimized fastpath operations require cmpxchg -support. [If that is not available then the rt-mutex internal spinlock -is used] - -The state of the rt-mutex is tracked via the owner field of the rt-mutex -structure: - -lock->owner holds the task_struct pointer of the owner. Bit 0 is used to -keep track of the "lock has waiters" state: - - ============ ======= ================================================ - owner bit0 Notes - ============ ======= ================================================ - NULL 0 lock is free (fast acquire possible) - NULL 1 lock is free and has waiters and the top waiter - is going to take the lock [1]_ - taskpointer 0 lock is held (fast release possible) - taskpointer 1 lock is held and has waiters [2]_ - ============ ======= ================================================ - -The fast atomic compare exchange based acquire and release is only -possible when bit 0 of lock->owner is 0. - -.. [1] It also can be a transitional state when grabbing the lock - with ->wait_lock is held. To prevent any fast path cmpxchg to the lock, - we need to set the bit0 before looking at the lock, and the owner may - be NULL in this small time, hence this can be a transitional state. - -.. [2] There is a small time when bit 0 is set but there are no - waiters. This can happen when grabbing the lock in the slow path. - To prevent a cmpxchg of the owner releasing the lock, we need to - set this bit before looking at the lock. - -BTW, there is still technically a "Pending Owner", it's just not called -that anymore. The pending owner happens to be the top_waiter of a lock -that has no owner and has been woken up to grab the lock. +================================== +RT-mutex subsystem with PI support +================================== + +RT-mutexes with priority inheritance are used to support PI-futexes, +which enable pthread_mutex_t priority inheritance attributes +(PTHREAD_PRIO_INHERIT). [See Documentation/locking/pi-futex.rst for more details +about PI-futexes.] + +This technology was developed in the -rt tree and streamlined for +pthread_mutex support. + +Basic principles: +----------------- + +RT-mutexes extend the semantics of simple mutexes by the priority +inheritance protocol. + +A low priority owner of a rt-mutex inherits the priority of a higher +priority waiter until the rt-mutex is released. If the temporarily +boosted owner blocks on a rt-mutex itself it propagates the priority +boosting to the owner of the other rt_mutex it gets blocked on. The +priority boosting is immediately removed once the rt_mutex has been +unlocked. + +This approach allows us to shorten the block of high-prio tasks on +mutexes which protect shared resources. Priority inheritance is not a +magic bullet for poorly designed applications, but it allows +well-designed applications to use userspace locks in critical parts of +an high priority thread, without losing determinism. + +The enqueueing of the waiters into the rtmutex waiter tree is done in +priority order. For same priorities FIFO order is chosen. For each +rtmutex, only the top priority waiter is enqueued into the owner's +priority waiters tree. This tree too queues in priority order. Whenever +the top priority waiter of a task changes (for example it timed out or +got a signal), the priority of the owner task is readjusted. The +priority enqueueing is handled by "pi_waiters". + +RT-mutexes are optimized for fastpath operations and have no internal +locking overhead when locking an uncontended mutex or unlocking a mutex +without waiters. The optimized fastpath operations require cmpxchg +support. [If that is not available then the rt-mutex internal spinlock +is used] + +The state of the rt-mutex is tracked via the owner field of the rt-mutex +structure: + +lock->owner holds the task_struct pointer of the owner. Bit 0 is used to +keep track of the "lock has waiters" state: + + ============ ======= ================================================ + owner bit0 Notes + ============ ======= ================================================ + NULL 0 lock is free (fast acquire possible) + NULL 1 lock is free and has waiters and the top waiter + is going to take the lock [1]_ + taskpointer 0 lock is held (fast release possible) + taskpointer 1 lock is held and has waiters [2]_ + ============ ======= ================================================ + +The fast atomic compare exchange based acquire and release is only +possible when bit 0 of lock->owner is 0. + +.. [1] It also can be a transitional state when grabbing the lock + with ->wait_lock is held. To prevent any fast path cmpxchg to the lock, + we need to set the bit0 before looking at the lock, and the owner may + be NULL in this small time, hence this can be a transitional state. + +.. [2] There is a small time when bit 0 is set but there are no + waiters. This can happen when grabbing the lock in the slow path. + To prevent a cmpxchg of the owner releasing the lock, we need to + set this bit before looking at the lock. + +BTW, there is still technically a "Pending Owner", it's just not called +that anymore. The pending owner happens to be the top_waiter of a lock +that has no owner and has been woken up to grab the lock. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/misc-devices/apds990x.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/misc-devices/apds990x.rst index a11e7553a..e2f75577f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/misc-devices/apds990x.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/misc-devices/apds990x.rst @@ -1,128 +1,128 @@ -.. SPDX-License-Identifier: GPL-2.0 - -====================== -Kernel driver apds990x -====================== - -Supported chips: -Avago APDS990X - -Data sheet: -Not freely available - -Author: -Samu Onkalo - -Description ------------ - -APDS990x is a combined ambient light and proximity sensor. ALS and proximity -functionality are highly connected. ALS measurement path must be running -while the proximity functionality is enabled. - -ALS produces raw measurement values for two channels: Clear channel -(infrared + visible light) and IR only. However, threshold comparisons happen -using clear channel only. Lux value and the threshold level on the HW -might vary quite much depending the spectrum of the light source. - -Driver makes necessary conversions to both directions so that user handles -only lux values. Lux value is calculated using information from the both -channels. HW threshold level is calculated from the given lux value to match -with current type of the lightning. Sometimes inaccuracy of the estimations -lead to false interrupt, but that doesn't harm. - -ALS contains 4 different gain steps. Driver automatically -selects suitable gain step. After each measurement, reliability of the results -is estimated and new measurement is triggered if necessary. - -Platform data can provide tuned values to the conversion formulas if -values are known. Otherwise plain sensor default values are used. - -Proximity side is little bit simpler. There is no need for complex conversions. -It produces directly usable values. - -Driver controls chip operational state using pm_runtime framework. -Voltage regulators are controlled based on chip operational state. - -SYSFS ------ - - -chip_id - RO - shows detected chip type and version - -power_state - RW - enable / disable chip. Uses counting logic - - 1 enables the chip - 0 disables the chip -lux0_input - RO - measured lux value - - sysfs_notify called when threshold interrupt occurs - -lux0_sensor_range - RO - lux0_input max value. - - Actually never reaches since sensor tends - to saturate much before that. Real max value varies depending - on the light spectrum etc. - -lux0_rate - RW - measurement rate in Hz - -lux0_rate_avail - RO - supported measurement rates - -lux0_calibscale - RW - calibration value. - - Set to neutral value by default. - Output results are multiplied with calibscale / calibscale_default - value. - -lux0_calibscale_default - RO - neutral calibration value - -lux0_thresh_above_value - RW - HI level threshold value. - - All results above the value - trigs an interrupt. 65535 (i.e. sensor_range) disables the above - interrupt. - -lux0_thresh_below_value - RW - LO level threshold value. - - All results below the value - trigs an interrupt. 0 disables the below interrupt. - -prox0_raw - RO - measured proximity value - - sysfs_notify called when threshold interrupt occurs - -prox0_sensor_range - RO - prox0_raw max value (1023) - -prox0_raw_en - RW - enable / disable proximity - uses counting logic - - - 1 enables the proximity - - 0 disables the proximity - -prox0_reporting_mode - RW - trigger / periodic. - - In "trigger" mode the driver tells two possible - values: 0 or prox0_sensor_range value. 0 means no proximity, - 1023 means proximity. This causes minimal number of interrupts. - In "periodic" mode the driver reports all values above - prox0_thresh_above. This causes more interrupts, but it can give - _rough_ estimate about the distance. - -prox0_reporting_mode_avail - RO - accepted values to prox0_reporting_mode (trigger, periodic) - -prox0_thresh_above_value - RW - threshold level which trigs proximity events. +.. SPDX-License-Identifier: GPL-2.0 + +====================== +Kernel driver apds990x +====================== + +Supported chips: +Avago APDS990X + +Data sheet: +Not freely available + +Author: +Samu Onkalo + +Description +----------- + +APDS990x is a combined ambient light and proximity sensor. ALS and proximity +functionality are highly connected. ALS measurement path must be running +while the proximity functionality is enabled. + +ALS produces raw measurement values for two channels: Clear channel +(infrared + visible light) and IR only. However, threshold comparisons happen +using clear channel only. Lux value and the threshold level on the HW +might vary quite much depending the spectrum of the light source. + +Driver makes necessary conversions to both directions so that user handles +only lux values. Lux value is calculated using information from the both +channels. HW threshold level is calculated from the given lux value to match +with current type of the lightning. Sometimes inaccuracy of the estimations +lead to false interrupt, but that doesn't harm. + +ALS contains 4 different gain steps. Driver automatically +selects suitable gain step. After each measurement, reliability of the results +is estimated and new measurement is triggered if necessary. + +Platform data can provide tuned values to the conversion formulas if +values are known. Otherwise plain sensor default values are used. + +Proximity side is little bit simpler. There is no need for complex conversions. +It produces directly usable values. + +Driver controls chip operational state using pm_runtime framework. +Voltage regulators are controlled based on chip operational state. + +SYSFS +----- + + +chip_id + RO - shows detected chip type and version + +power_state + RW - enable / disable chip. Uses counting logic + + 1 enables the chip + 0 disables the chip +lux0_input + RO - measured lux value + + sysfs_notify called when threshold interrupt occurs + +lux0_sensor_range + RO - lux0_input max value. + + Actually never reaches since sensor tends + to saturate much before that. Real max value varies depending + on the light spectrum etc. + +lux0_rate + RW - measurement rate in Hz + +lux0_rate_avail + RO - supported measurement rates + +lux0_calibscale + RW - calibration value. + + Set to neutral value by default. + Output results are multiplied with calibscale / calibscale_default + value. + +lux0_calibscale_default + RO - neutral calibration value + +lux0_thresh_above_value + RW - HI level threshold value. + + All results above the value + trigs an interrupt. 65535 (i.e. sensor_range) disables the above + interrupt. + +lux0_thresh_below_value + RW - LO level threshold value. + + All results below the value + trigs an interrupt. 0 disables the below interrupt. + +prox0_raw + RO - measured proximity value + + sysfs_notify called when threshold interrupt occurs + +prox0_sensor_range + RO - prox0_raw max value (1023) + +prox0_raw_en + RW - enable / disable proximity - uses counting logic + + - 1 enables the proximity + - 0 disables the proximity + +prox0_reporting_mode + RW - trigger / periodic. + + In "trigger" mode the driver tells two possible + values: 0 or prox0_sensor_range value. 0 means no proximity, + 1023 means proximity. This causes minimal number of interrupts. + In "periodic" mode the driver reports all values above + prox0_thresh_above. This causes more interrupts, but it can give + _rough_ estimate about the distance. + +prox0_reporting_mode_avail + RO - accepted values to prox0_reporting_mode (trigger, periodic) + +prox0_thresh_above_value + RW - threshold level which trigs proximity events. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/misc-devices/bh1770glc.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/misc-devices/bh1770glc.rst index 8bba2efa0..ea5ca58bb 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/misc-devices/bh1770glc.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/misc-devices/bh1770glc.rst @@ -1,135 +1,135 @@ -.. SPDX-License-Identifier: GPL-2.0 - -======================= -Kernel driver bh1770glc -======================= - -Supported chips: - -- ROHM BH1770GLC -- OSRAM SFH7770 - -Data sheet: -Not freely available - -Author: -Samu Onkalo - -Description ------------ -BH1770GLC and SFH7770 are combined ambient light and proximity sensors. -ALS and proximity parts operates on their own, but they shares common I2C -interface and interrupt logic. In principle they can run on their own, -but ALS side results are used to estimate reliability of the proximity sensor. - -ALS produces 16 bit lux values. The chip contains interrupt logic to produce -low and high threshold interrupts. - -Proximity part contains IR-led driver up to 3 IR leds. The chip measures -amount of reflected IR light and produces proximity result. Resolution is -8 bit. Driver supports only one channel. Driver uses ALS results to estimate -reliability of the proximity results. Thus ALS is always running while -proximity detection is needed. - -Driver uses threshold interrupts to avoid need for polling the values. -Proximity low interrupt doesn't exists in the chip. This is simulated -by using a delayed work. As long as there is proximity threshold above -interrupts the delayed work is pushed forward. So, when proximity level goes -below the threshold value, there is no interrupt and the delayed work will -finally run. This is handled as no proximity indication. - -Chip state is controlled via runtime pm framework when enabled in config. - -Calibscale factor is used to hide differences between the chips. By default -value set to neutral state meaning factor of 1.00. To get proper values, -calibrated source of light is needed as a reference. Calibscale factor is set -so that measurement produces about the expected lux value. - -SYSFS ------ - -chip_id - RO - shows detected chip type and version - -power_state - RW - enable / disable chip - - Uses counting logic - - - 1 enables the chip - - 0 disables the chip - -lux0_input - RO - measured lux value - - sysfs_notify called when threshold interrupt occurs - -lux0_sensor_range - RO - lux0_input max value - -lux0_rate - RW - measurement rate in Hz - -lux0_rate_avail - RO - supported measurement rates - -lux0_thresh_above_value - RW - HI level threshold value - - All results above the value - trigs an interrupt. 65535 (i.e. sensor_range) disables the above - interrupt. - -lux0_thresh_below_value - RW - LO level threshold value - - All results below the value - trigs an interrupt. 0 disables the below interrupt. - -lux0_calibscale - RW - calibration value - - Set to neutral value by default. - Output results are multiplied with calibscale / calibscale_default - value. - -lux0_calibscale_default - RO - neutral calibration value - -prox0_raw - RO - measured proximity value - - sysfs_notify called when threshold interrupt occurs - -prox0_sensor_range - RO - prox0_raw max value - -prox0_raw_en - RW - enable / disable proximity - - Uses counting logic - - - 1 enables the proximity - - 0 disables the proximity - -prox0_thresh_above_count - RW - number of proximity interrupts needed before triggering the event - -prox0_rate_above - RW - Measurement rate (in Hz) when the level is above threshold - i.e. when proximity on has been reported. - -prox0_rate_below - RW - Measurement rate (in Hz) when the level is below threshold - i.e. when proximity off has been reported. - -prox0_rate_avail - RO - Supported proximity measurement rates in Hz - -prox0_thresh_above0_value - RW - threshold level which trigs proximity events. - - Filtered by persistence filter (prox0_thresh_above_count) - -prox0_thresh_above1_value - RW - threshold level which trigs event immediately +.. SPDX-License-Identifier: GPL-2.0 + +======================= +Kernel driver bh1770glc +======================= + +Supported chips: + +- ROHM BH1770GLC +- OSRAM SFH7770 + +Data sheet: +Not freely available + +Author: +Samu Onkalo + +Description +----------- +BH1770GLC and SFH7770 are combined ambient light and proximity sensors. +ALS and proximity parts operates on their own, but they shares common I2C +interface and interrupt logic. In principle they can run on their own, +but ALS side results are used to estimate reliability of the proximity sensor. + +ALS produces 16 bit lux values. The chip contains interrupt logic to produce +low and high threshold interrupts. + +Proximity part contains IR-led driver up to 3 IR leds. The chip measures +amount of reflected IR light and produces proximity result. Resolution is +8 bit. Driver supports only one channel. Driver uses ALS results to estimate +reliability of the proximity results. Thus ALS is always running while +proximity detection is needed. + +Driver uses threshold interrupts to avoid need for polling the values. +Proximity low interrupt doesn't exists in the chip. This is simulated +by using a delayed work. As long as there is proximity threshold above +interrupts the delayed work is pushed forward. So, when proximity level goes +below the threshold value, there is no interrupt and the delayed work will +finally run. This is handled as no proximity indication. + +Chip state is controlled via runtime pm framework when enabled in config. + +Calibscale factor is used to hide differences between the chips. By default +value set to neutral state meaning factor of 1.00. To get proper values, +calibrated source of light is needed as a reference. Calibscale factor is set +so that measurement produces about the expected lux value. + +SYSFS +----- + +chip_id + RO - shows detected chip type and version + +power_state + RW - enable / disable chip + + Uses counting logic + + - 1 enables the chip + - 0 disables the chip + +lux0_input + RO - measured lux value + + sysfs_notify called when threshold interrupt occurs + +lux0_sensor_range + RO - lux0_input max value + +lux0_rate + RW - measurement rate in Hz + +lux0_rate_avail + RO - supported measurement rates + +lux0_thresh_above_value + RW - HI level threshold value + + All results above the value + trigs an interrupt. 65535 (i.e. sensor_range) disables the above + interrupt. + +lux0_thresh_below_value + RW - LO level threshold value + + All results below the value + trigs an interrupt. 0 disables the below interrupt. + +lux0_calibscale + RW - calibration value + + Set to neutral value by default. + Output results are multiplied with calibscale / calibscale_default + value. + +lux0_calibscale_default + RO - neutral calibration value + +prox0_raw + RO - measured proximity value + + sysfs_notify called when threshold interrupt occurs + +prox0_sensor_range + RO - prox0_raw max value + +prox0_raw_en + RW - enable / disable proximity + + Uses counting logic + + - 1 enables the proximity + - 0 disables the proximity + +prox0_thresh_above_count + RW - number of proximity interrupts needed before triggering the event + +prox0_rate_above + RW - Measurement rate (in Hz) when the level is above threshold + i.e. when proximity on has been reported. + +prox0_rate_below + RW - Measurement rate (in Hz) when the level is below threshold + i.e. when proximity off has been reported. + +prox0_rate_avail + RO - Supported proximity measurement rates in Hz + +prox0_thresh_above0_value + RW - threshold level which trigs proximity events. + + Filtered by persistence filter (prox0_thresh_above_count) + +prox0_thresh_above1_value + RW - threshold level which trigs event immediately diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/misc-devices/lis3lv02d.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/misc-devices/lis3lv02d.rst index 68c00e466..959bd2b82 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/misc-devices/lis3lv02d.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/misc-devices/lis3lv02d.rst @@ -1,99 +1,99 @@ -======================= -Kernel driver lis3lv02d -======================= - -Supported chips: - - * STMicroelectronics LIS3LV02DL, LIS3LV02DQ (12 bits precision) - * STMicroelectronics LIS302DL, LIS3L02DQ, LIS331DL (8 bits) and - LIS331DLH (16 bits) - -Authors: - - Yan Burman - - Eric Piel - - -Description ------------ - -This driver provides support for the accelerometer found in various HP laptops -sporting the feature officially called "HP Mobile Data Protection System 3D" or -"HP 3D DriveGuard". It detects automatically laptops with this sensor. Known -models (full list can be found in drivers/platform/x86/hp_accel.c) will have -their axis automatically oriented on standard way (eg: you can directly play -neverball). The accelerometer data is readable via -/sys/devices/platform/lis3lv02d. Reported values are scaled -to mg values (1/1000th of earth gravity). - -Sysfs attributes under /sys/devices/platform/lis3lv02d/: - -position - - 3D position that the accelerometer reports. Format: "(x,y,z)" -rate - - read reports the sampling rate of the accelerometer device in HZ. - write changes sampling rate of the accelerometer device. - Only values which are supported by HW are accepted. -selftest - - performs selftest for the chip as specified by chip manufacturer. - -This driver also provides an absolute input class device, allowing -the laptop to act as a pinball machine-esque joystick. Joystick device can be -calibrated. Joystick device can be in two different modes. -By default output values are scaled between -32768 .. 32767. In joystick raw -mode, joystick and sysfs position entry have the same scale. There can be -small difference due to input system fuzziness feature. -Events are also available as input event device. - -Selftest is meant only for hardware diagnostic purposes. It is not meant to be -used during normal operations. Position data is not corrupted during selftest -but interrupt behaviour is not guaranteed to work reliably. In test mode, the -sensing element is internally moved little bit. Selftest measures difference -between normal mode and test mode. Chip specifications tell the acceptance -limit for each type of the chip. Limits are provided via platform data -to allow adjustment of the limits without a change to the actual driver. -Seltest returns either "OK x y z" or "FAIL x y z" where x, y and z are -measured difference between modes. Axes are not remapped in selftest mode. -Measurement values are provided to help HW diagnostic applications to make -final decision. - -On HP laptops, if the led infrastructure is activated, support for a led -indicating disk protection will be provided as /sys/class/leds/hp::hddprotect. - -Another feature of the driver is misc device called "freefall" that -acts similar to /dev/rtc and reacts on free-fall interrupts received -from the device. It supports blocking operations, poll/select and -fasync operation modes. You must read 1 bytes from the device. The -result is number of free-fall interrupts since the last successful -read (or 255 if number of interrupts would not fit). See the freefall.c -file for an example on using the device. - - -Axes orientation ----------------- - -For better compatibility between the various laptops. The values reported by -the accelerometer are converted into a "standard" organisation of the axes -(aka "can play neverball out of the box"): - - * When the laptop is horizontal the position reported is about 0 for X and Y - and a positive value for Z - * If the left side is elevated, X increases (becomes positive) - * If the front side (where the touchpad is) is elevated, Y decreases - (becomes negative) - * If the laptop is put upside-down, Z becomes negative - -If your laptop model is not recognized (cf "dmesg"), you can send an -email to the maintainer to add it to the database. When reporting a new -laptop, please include the output of "dmidecode" plus the value of -/sys/devices/platform/lis3lv02d/position in these four cases. - -Q&A ---- - -Q: How do I safely simulate freefall? I have an HP "portable -workstation" which has about 3.5kg and a plastic case, so letting it -fall to the ground is out of question... - -A: The sensor is pretty sensitive, so your hands can do it. Lift it -into free space, follow the fall with your hands for like 10 -centimeters. That should be enough to trigger the detection. +======================= +Kernel driver lis3lv02d +======================= + +Supported chips: + + * STMicroelectronics LIS3LV02DL, LIS3LV02DQ (12 bits precision) + * STMicroelectronics LIS302DL, LIS3L02DQ, LIS331DL (8 bits) and + LIS331DLH (16 bits) + +Authors: + - Yan Burman + - Eric Piel + + +Description +----------- + +This driver provides support for the accelerometer found in various HP laptops +sporting the feature officially called "HP Mobile Data Protection System 3D" or +"HP 3D DriveGuard". It detects automatically laptops with this sensor. Known +models (full list can be found in drivers/platform/x86/hp_accel.c) will have +their axis automatically oriented on standard way (eg: you can directly play +neverball). The accelerometer data is readable via +/sys/devices/platform/lis3lv02d. Reported values are scaled +to mg values (1/1000th of earth gravity). + +Sysfs attributes under /sys/devices/platform/lis3lv02d/: + +position + - 3D position that the accelerometer reports. Format: "(x,y,z)" +rate + - read reports the sampling rate of the accelerometer device in HZ. + write changes sampling rate of the accelerometer device. + Only values which are supported by HW are accepted. +selftest + - performs selftest for the chip as specified by chip manufacturer. + +This driver also provides an absolute input class device, allowing +the laptop to act as a pinball machine-esque joystick. Joystick device can be +calibrated. Joystick device can be in two different modes. +By default output values are scaled between -32768 .. 32767. In joystick raw +mode, joystick and sysfs position entry have the same scale. There can be +small difference due to input system fuzziness feature. +Events are also available as input event device. + +Selftest is meant only for hardware diagnostic purposes. It is not meant to be +used during normal operations. Position data is not corrupted during selftest +but interrupt behaviour is not guaranteed to work reliably. In test mode, the +sensing element is internally moved little bit. Selftest measures difference +between normal mode and test mode. Chip specifications tell the acceptance +limit for each type of the chip. Limits are provided via platform data +to allow adjustment of the limits without a change to the actual driver. +Seltest returns either "OK x y z" or "FAIL x y z" where x, y and z are +measured difference between modes. Axes are not remapped in selftest mode. +Measurement values are provided to help HW diagnostic applications to make +final decision. + +On HP laptops, if the led infrastructure is activated, support for a led +indicating disk protection will be provided as /sys/class/leds/hp::hddprotect. + +Another feature of the driver is misc device called "freefall" that +acts similar to /dev/rtc and reacts on free-fall interrupts received +from the device. It supports blocking operations, poll/select and +fasync operation modes. You must read 1 bytes from the device. The +result is number of free-fall interrupts since the last successful +read (or 255 if number of interrupts would not fit). See the freefall.c +file for an example on using the device. + + +Axes orientation +---------------- + +For better compatibility between the various laptops. The values reported by +the accelerometer are converted into a "standard" organisation of the axes +(aka "can play neverball out of the box"): + + * When the laptop is horizontal the position reported is about 0 for X and Y + and a positive value for Z + * If the left side is elevated, X increases (becomes positive) + * If the front side (where the touchpad is) is elevated, Y decreases + (becomes negative) + * If the laptop is put upside-down, Z becomes negative + +If your laptop model is not recognized (cf "dmesg"), you can send an +email to the maintainer to add it to the database. When reporting a new +laptop, please include the output of "dmidecode" plus the value of +/sys/devices/platform/lis3lv02d/position in these four cases. + +Q&A +--- + +Q: How do I safely simulate freefall? I have an HP "portable +workstation" which has about 3.5kg and a plastic case, so letting it +fall to the ground is out of question... + +A: The sensor is pretty sensitive, so your hands can do it. Lift it +into free space, follow the fall with your hands for like 10 +centimeters. That should be enough to trigger the detection. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/misc-devices/spear-pcie-gadget.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/misc-devices/spear-pcie-gadget.rst index eea03ada3..09b9d6c7a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/misc-devices/spear-pcie-gadget.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/misc-devices/spear-pcie-gadget.rst @@ -1,170 +1,170 @@ -.. SPDX-License-Identifier: GPL-2.0 - -======================== -Spear PCIe Gadget Driver -======================== - -Author -====== -Pratyush Anand (pratyush.anand@gmail.com) - -Location -======== -driver/misc/spear13xx_pcie_gadget.c - -Supported Chip: -=============== -SPEAr1300 -SPEAr1310 - -Menuconfig option: -================== -Device Drivers - Misc devices - PCIe gadget support for SPEAr13XX platform - -purpose -======= -This driver has several nodes which can be read/written by configfs interface. -Its main purpose is to configure selected dual mode PCIe controller as device -and then program its various registers to configure it as a particular device -type. This driver can be used to show spear's PCIe device capability. - -Description of different nodes: -=============================== - -read behavior of nodes: ------------------------ - -=============== ============================================================== -link gives ltssm status. -int_type type of supported interrupt -no_of_msi zero if MSI is not enabled by host. A positive value is the - number of MSI vector granted. -vendor_id returns programmed vendor id (hex) -device_id returns programmed device id(hex) -bar0_size: returns size of bar0 in hex. -bar0_address returns address of bar0 mapped area in hex. -bar0_rw_offset returns offset of bar0 for which bar0_data will return value. -bar0_data returns data at bar0_rw_offset. -=============== ============================================================== - -write behavior of nodes: ------------------------- - -=============== ================================================================ -link write UP to enable ltsmm DOWN to disable -int_type write interrupt type to be configured and (int_type could be - INTA, MSI or NO_INT). Select MSI only when you have programmed - no_of_msi node. -no_of_msi number of MSI vector needed. -inta write 1 to assert INTA and 0 to de-assert. -send_msi write MSI vector to be sent. -vendor_id write vendor id(hex) to be programmed. -device_id write device id(hex) to be programmed. -bar0_size write size of bar0 in hex. default bar0 size is 1000 (hex) - bytes. -bar0_address write address of bar0 mapped area in hex. (default mapping of - bar0 is SYSRAM1(E0800000). Always program bar size before bar - address. Kernel might modify bar size and address for alignment, - so read back bar size and address after writing to cross check. -bar0_rw_offset write offset of bar0 for which bar0_data will write value. -bar0_data write data to be written at bar0_rw_offset. -=============== ================================================================ - -Node programming example -======================== - -Program all PCIe registers in such a way that when this device is connected -to the PCIe host, then host sees this device as 1MB RAM. - -:: - - #mount -t configfs none /Config - -For nth PCIe Device Controller:: - - # cd /config/pcie_gadget.n/ - -Now you have all the nodes in this directory. -program vendor id as 0x104a:: - - # echo 104A >> vendor_id - -program device id as 0xCD80:: - - # echo CD80 >> device_id - -program BAR0 size as 1MB:: - - # echo 100000 >> bar0_size - -check for programmed bar0 size:: - - # cat bar0_size - -Program BAR0 Address as DDR (0x2100000). This is the physical address of -memory, which is to be made visible to PCIe host. Similarly any other peripheral -can also be made visible to PCIe host. E.g., if you program base address of UART -as BAR0 address then when this device will be connected to a host, it will be -visible as UART. - -:: - - # echo 2100000 >> bar0_address - -program interrupt type : INTA:: - - # echo INTA >> int_type - -go for link up now:: - - # echo UP >> link - -It will have to be insured that, once link up is done on gadget, then only host -is initialized and start to search PCIe devices on its port. - -:: - - /*wait till link is up*/ - # cat link - -Wait till it returns UP. - -To assert INTA:: - - # echo 1 >> inta - -To de-assert INTA:: - - # echo 0 >> inta - -if MSI is to be used as interrupt, program no of msi vector needed (say4):: - - # echo 4 >> no_of_msi - -select MSI as interrupt type:: - - # echo MSI >> int_type - -go for link up now:: - - # echo UP >> link - -wait till link is up:: - - # cat link - -An application can repetitively read this node till link is found UP. It can -sleep between two read. - -wait till msi is enabled:: - - # cat no_of_msi - -Should return 4 (number of requested MSI vector) - -to send msi vector 2:: - - # echo 2 >> send_msi - # cd - +.. SPDX-License-Identifier: GPL-2.0 + +======================== +Spear PCIe Gadget Driver +======================== + +Author +====== +Pratyush Anand (pratyush.anand@gmail.com) + +Location +======== +driver/misc/spear13xx_pcie_gadget.c + +Supported Chip: +=============== +SPEAr1300 +SPEAr1310 + +Menuconfig option: +================== +Device Drivers + Misc devices + PCIe gadget support for SPEAr13XX platform + +purpose +======= +This driver has several nodes which can be read/written by configfs interface. +Its main purpose is to configure selected dual mode PCIe controller as device +and then program its various registers to configure it as a particular device +type. This driver can be used to show spear's PCIe device capability. + +Description of different nodes: +=============================== + +read behavior of nodes: +----------------------- + +=============== ============================================================== +link gives ltssm status. +int_type type of supported interrupt +no_of_msi zero if MSI is not enabled by host. A positive value is the + number of MSI vector granted. +vendor_id returns programmed vendor id (hex) +device_id returns programmed device id(hex) +bar0_size: returns size of bar0 in hex. +bar0_address returns address of bar0 mapped area in hex. +bar0_rw_offset returns offset of bar0 for which bar0_data will return value. +bar0_data returns data at bar0_rw_offset. +=============== ============================================================== + +write behavior of nodes: +------------------------ + +=============== ================================================================ +link write UP to enable ltsmm DOWN to disable +int_type write interrupt type to be configured and (int_type could be + INTA, MSI or NO_INT). Select MSI only when you have programmed + no_of_msi node. +no_of_msi number of MSI vector needed. +inta write 1 to assert INTA and 0 to de-assert. +send_msi write MSI vector to be sent. +vendor_id write vendor id(hex) to be programmed. +device_id write device id(hex) to be programmed. +bar0_size write size of bar0 in hex. default bar0 size is 1000 (hex) + bytes. +bar0_address write address of bar0 mapped area in hex. (default mapping of + bar0 is SYSRAM1(E0800000). Always program bar size before bar + address. Kernel might modify bar size and address for alignment, + so read back bar size and address after writing to cross check. +bar0_rw_offset write offset of bar0 for which bar0_data will write value. +bar0_data write data to be written at bar0_rw_offset. +=============== ================================================================ + +Node programming example +======================== + +Program all PCIe registers in such a way that when this device is connected +to the PCIe host, then host sees this device as 1MB RAM. + +:: + + #mount -t configfs none /Config + +For nth PCIe Device Controller:: + + # cd /config/pcie_gadget.n/ + +Now you have all the nodes in this directory. +program vendor id as 0x104a:: + + # echo 104A >> vendor_id + +program device id as 0xCD80:: + + # echo CD80 >> device_id + +program BAR0 size as 1MB:: + + # echo 100000 >> bar0_size + +check for programmed bar0 size:: + + # cat bar0_size + +Program BAR0 Address as DDR (0x2100000). This is the physical address of +memory, which is to be made visible to PCIe host. Similarly any other peripheral +can also be made visible to PCIe host. E.g., if you program base address of UART +as BAR0 address then when this device will be connected to a host, it will be +visible as UART. + +:: + + # echo 2100000 >> bar0_address + +program interrupt type : INTA:: + + # echo INTA >> int_type + +go for link up now:: + + # echo UP >> link + +It will have to be insured that, once link up is done on gadget, then only host +is initialized and start to search PCIe devices on its port. + +:: + + /*wait till link is up*/ + # cat link + +Wait till it returns UP. + +To assert INTA:: + + # echo 1 >> inta + +To de-assert INTA:: + + # echo 0 >> inta + +if MSI is to be used as interrupt, program no of msi vector needed (say4):: + + # echo 4 >> no_of_msi + +select MSI as interrupt type:: + + # echo MSI >> int_type + +go for link up now:: + + # echo UP >> link + +wait till link is up:: + + # cat link + +An application can repetitively read this node till link is found UP. It can +sleep between two read. + +wait till msi is enabled:: + + # cat no_of_msi + +Should return 4 (number of requested MSI vector) + +to send msi vector 2:: + + # echo 2 >> send_msi + # cd - diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/mm/active_mm.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/mm/active_mm.rst index 38514bcbb..d096fc091 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/mm/active_mm.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/mm/active_mm.rst @@ -1,95 +1,95 @@ -========= -Active MM -========= - -Note, the mm_count refcount may no longer include the "lazy" users -(running tasks with ->active_mm == mm && ->mm == NULL) on kernels -with CONFIG_MMU_LAZY_TLB_REFCOUNT=n. Taking and releasing these lazy -references must be done with mmgrab_lazy_tlb() and mmdrop_lazy_tlb() -helpers, which abstract this config option. - -:: - - List: linux-kernel - Subject: Re: active_mm - From: Linus Torvalds - Date: 1999-07-30 21:36:24 - - Cc'd to linux-kernel, because I don't write explanations all that often, - and when I do I feel better about more people reading them. - - On Fri, 30 Jul 1999, David Mosberger wrote: - > - > Is there a brief description someplace on how "mm" vs. "active_mm" in - > the task_struct are supposed to be used? (My apologies if this was - > discussed on the mailing lists---I just returned from vacation and - > wasn't able to follow linux-kernel for a while). - - Basically, the new setup is: - - - we have "real address spaces" and "anonymous address spaces". The - difference is that an anonymous address space doesn't care about the - user-level page tables at all, so when we do a context switch into an - anonymous address space we just leave the previous address space - active. - - The obvious use for a "anonymous address space" is any thread that - doesn't need any user mappings - all kernel threads basically fall into - this category, but even "real" threads can temporarily say that for - some amount of time they are not going to be interested in user space, - and that the scheduler might as well try to avoid wasting time on - switching the VM state around. Currently only the old-style bdflush - sync does that. - - - "tsk->mm" points to the "real address space". For an anonymous process, - tsk->mm will be NULL, for the logical reason that an anonymous process - really doesn't _have_ a real address space at all. - - - however, we obviously need to keep track of which address space we - "stole" for such an anonymous user. For that, we have "tsk->active_mm", - which shows what the currently active address space is. - - The rule is that for a process with a real address space (ie tsk->mm is - non-NULL) the active_mm obviously always has to be the same as the real - one. - - For a anonymous process, tsk->mm == NULL, and tsk->active_mm is the - "borrowed" mm while the anonymous process is running. When the - anonymous process gets scheduled away, the borrowed address space is - returned and cleared. - - To support all that, the "struct mm_struct" now has two counters: a - "mm_users" counter that is how many "real address space users" there are, - and a "mm_count" counter that is the number of "lazy" users (ie anonymous - users) plus one if there are any real users. - - Usually there is at least one real user, but it could be that the real - user exited on another CPU while a lazy user was still active, so you do - actually get cases where you have a address space that is _only_ used by - lazy users. That is often a short-lived state, because once that thread - gets scheduled away in favour of a real thread, the "zombie" mm gets - released because "mm_count" becomes zero. - - Also, a new rule is that _nobody_ ever has "init_mm" as a real MM any - more. "init_mm" should be considered just a "lazy context when no other - context is available", and in fact it is mainly used just at bootup when - no real VM has yet been created. So code that used to check - - if (current->mm == &init_mm) - - should generally just do - - if (!current->mm) - - instead (which makes more sense anyway - the test is basically one of "do - we have a user context", and is generally done by the page fault handler - and things like that). - - Anyway, I put a pre-patch-2.3.13-1 on ftp.kernel.org just a moment ago, - because it slightly changes the interfaces to accommodate the alpha (who - would have thought it, but the alpha actually ends up having one of the - ugliest context switch codes - unlike the other architectures where the MM - and register state is separate, the alpha PALcode joins the two, and you - need to switch both together). - - (From http://marc.info/?l=linux-kernel&m=93337278602211&w=2) +========= +Active MM +========= + +Note, the mm_count refcount may no longer include the "lazy" users +(running tasks with ->active_mm == mm && ->mm == NULL) on kernels +with CONFIG_MMU_LAZY_TLB_REFCOUNT=n. Taking and releasing these lazy +references must be done with mmgrab_lazy_tlb() and mmdrop_lazy_tlb() +helpers, which abstract this config option. + +:: + + List: linux-kernel + Subject: Re: active_mm + From: Linus Torvalds + Date: 1999-07-30 21:36:24 + + Cc'd to linux-kernel, because I don't write explanations all that often, + and when I do I feel better about more people reading them. + + On Fri, 30 Jul 1999, David Mosberger wrote: + > + > Is there a brief description someplace on how "mm" vs. "active_mm" in + > the task_struct are supposed to be used? (My apologies if this was + > discussed on the mailing lists---I just returned from vacation and + > wasn't able to follow linux-kernel for a while). + + Basically, the new setup is: + + - we have "real address spaces" and "anonymous address spaces". The + difference is that an anonymous address space doesn't care about the + user-level page tables at all, so when we do a context switch into an + anonymous address space we just leave the previous address space + active. + + The obvious use for a "anonymous address space" is any thread that + doesn't need any user mappings - all kernel threads basically fall into + this category, but even "real" threads can temporarily say that for + some amount of time they are not going to be interested in user space, + and that the scheduler might as well try to avoid wasting time on + switching the VM state around. Currently only the old-style bdflush + sync does that. + + - "tsk->mm" points to the "real address space". For an anonymous process, + tsk->mm will be NULL, for the logical reason that an anonymous process + really doesn't _have_ a real address space at all. + + - however, we obviously need to keep track of which address space we + "stole" for such an anonymous user. For that, we have "tsk->active_mm", + which shows what the currently active address space is. + + The rule is that for a process with a real address space (ie tsk->mm is + non-NULL) the active_mm obviously always has to be the same as the real + one. + + For a anonymous process, tsk->mm == NULL, and tsk->active_mm is the + "borrowed" mm while the anonymous process is running. When the + anonymous process gets scheduled away, the borrowed address space is + returned and cleared. + + To support all that, the "struct mm_struct" now has two counters: a + "mm_users" counter that is how many "real address space users" there are, + and a "mm_count" counter that is the number of "lazy" users (ie anonymous + users) plus one if there are any real users. + + Usually there is at least one real user, but it could be that the real + user exited on another CPU while a lazy user was still active, so you do + actually get cases where you have a address space that is _only_ used by + lazy users. That is often a short-lived state, because once that thread + gets scheduled away in favour of a real thread, the "zombie" mm gets + released because "mm_count" becomes zero. + + Also, a new rule is that _nobody_ ever has "init_mm" as a real MM any + more. "init_mm" should be considered just a "lazy context when no other + context is available", and in fact it is mainly used just at bootup when + no real VM has yet been created. So code that used to check + + if (current->mm == &init_mm) + + should generally just do + + if (!current->mm) + + instead (which makes more sense anyway - the test is basically one of "do + we have a user context", and is generally done by the page fault handler + and things like that). + + Anyway, I put a pre-patch-2.3.13-1 on ftp.kernel.org just a moment ago, + because it slightly changes the interfaces to accommodate the alpha (who + would have thought it, but the alpha actually ends up having one of the + ugliest context switch codes - unlike the other architectures where the MM + and register state is separate, the alpha PALcode joins the two, and you + need to switch both together). + + (From http://marc.info/?l=linux-kernel&m=93337278602211&w=2) diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/mm/allocation-profiling.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/mm/allocation-profiling.rst index 43319ee6b..ffd6655b7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/mm/allocation-profiling.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/mm/allocation-profiling.rst @@ -1,99 +1,99 @@ -.. SPDX-License-Identifier: GPL-2.0 - -=========================== -MEMORY ALLOCATION PROFILING -=========================== - -Low overhead (suitable for production) accounting of all memory allocations, -tracked by file and line number. - -Usage: -kconfig options: -- CONFIG_MEM_ALLOC_PROFILING - -- CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT - -- CONFIG_MEM_ALLOC_PROFILING_DEBUG - adds warnings for allocations that weren't accounted because of a - missing annotation - -Boot parameter: - sysctl.vm.mem_profiling=0|1|never - - When set to "never", memory allocation profiling overhead is minimized and it - cannot be enabled at runtime (sysctl becomes read-only). - When CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT=y, default value is "1". - When CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT=n, default value is "never". - -sysctl: - /proc/sys/vm/mem_profiling - -Runtime info: - /proc/allocinfo - -Example output:: - - root@moria-kvm:~# sort -g /proc/allocinfo|tail|numfmt --to=iec - 2.8M 22648 fs/kernfs/dir.c:615 func:__kernfs_new_node - 3.8M 953 mm/memory.c:4214 func:alloc_anon_folio - 4.0M 1010 drivers/staging/ctagmod/ctagmod.c:20 [ctagmod] func:ctagmod_start - 4.1M 4 net/netfilter/nf_conntrack_core.c:2567 func:nf_ct_alloc_hashtable - 6.0M 1532 mm/filemap.c:1919 func:__filemap_get_folio - 8.8M 2785 kernel/fork.c:307 func:alloc_thread_stack_node - 13M 234 block/blk-mq.c:3421 func:blk_mq_alloc_rqs - 14M 3520 mm/mm_init.c:2530 func:alloc_large_system_hash - 15M 3656 mm/readahead.c:247 func:page_cache_ra_unbounded - 55M 4887 mm/slub.c:2259 func:alloc_slab_page - 122M 31168 mm/page_ext.c:270 func:alloc_page_ext - -Theory of operation -=================== - -Memory allocation profiling builds off of code tagging, which is a library for -declaring static structs (that typically describe a file and line number in -some way, hence code tagging) and then finding and operating on them at runtime, -- i.e. iterating over them to print them in debugfs/procfs. - -To add accounting for an allocation call, we replace it with a macro -invocation, alloc_hooks(), that -- declares a code tag -- stashes a pointer to it in task_struct -- calls the real allocation function -- and finally, restores the task_struct alloc tag pointer to its previous value. - -This allows for alloc_hooks() calls to be nested, with the most recent one -taking effect. This is important for allocations internal to the mm/ code that -do not properly belong to the outer allocation context and should be counted -separately: for example, slab object extension vectors, or when the slab -allocates pages from the page allocator. - -Thus, proper usage requires determining which function in an allocation call -stack should be tagged. There are many helper functions that essentially wrap -e.g. kmalloc() and do a little more work, then are called in multiple places; -we'll generally want the accounting to happen in the callers of these helpers, -not in the helpers themselves. - -To fix up a given helper, for example foo(), do the following: -- switch its allocation call to the _noprof() version, e.g. kmalloc_noprof() - -- rename it to foo_noprof() - -- define a macro version of foo() like so: - - #define foo(...) alloc_hooks(foo_noprof(__VA_ARGS__)) - -It's also possible to stash a pointer to an alloc tag in your own data structures. - -Do this when you're implementing a generic data structure that does allocations -"on behalf of" some other code - for example, the rhashtable code. This way, -instead of seeing a large line in /proc/allocinfo for rhashtable.c, we can -break it out by rhashtable type. - -To do so: -- Hook your data structure's init function, like any other allocation function. - -- Within your init function, use the convenience macro alloc_tag_record() to - record alloc tag in your data structure. - -- Then, use the following form for your allocations: - alloc_hooks_tag(ht->your_saved_tag, kmalloc_noprof(...)) +.. SPDX-License-Identifier: GPL-2.0 + +=========================== +MEMORY ALLOCATION PROFILING +=========================== + +Low overhead (suitable for production) accounting of all memory allocations, +tracked by file and line number. + +Usage: +kconfig options: +- CONFIG_MEM_ALLOC_PROFILING + +- CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT + +- CONFIG_MEM_ALLOC_PROFILING_DEBUG + adds warnings for allocations that weren't accounted because of a + missing annotation + +Boot parameter: + sysctl.vm.mem_profiling=0|1|never + + When set to "never", memory allocation profiling overhead is minimized and it + cannot be enabled at runtime (sysctl becomes read-only). + When CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT=y, default value is "1". + When CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT=n, default value is "never". + +sysctl: + /proc/sys/vm/mem_profiling + +Runtime info: + /proc/allocinfo + +Example output:: + + root@moria-kvm:~# sort -g /proc/allocinfo|tail|numfmt --to=iec + 2.8M 22648 fs/kernfs/dir.c:615 func:__kernfs_new_node + 3.8M 953 mm/memory.c:4214 func:alloc_anon_folio + 4.0M 1010 drivers/staging/ctagmod/ctagmod.c:20 [ctagmod] func:ctagmod_start + 4.1M 4 net/netfilter/nf_conntrack_core.c:2567 func:nf_ct_alloc_hashtable + 6.0M 1532 mm/filemap.c:1919 func:__filemap_get_folio + 8.8M 2785 kernel/fork.c:307 func:alloc_thread_stack_node + 13M 234 block/blk-mq.c:3421 func:blk_mq_alloc_rqs + 14M 3520 mm/mm_init.c:2530 func:alloc_large_system_hash + 15M 3656 mm/readahead.c:247 func:page_cache_ra_unbounded + 55M 4887 mm/slub.c:2259 func:alloc_slab_page + 122M 31168 mm/page_ext.c:270 func:alloc_page_ext + +Theory of operation +=================== + +Memory allocation profiling builds off of code tagging, which is a library for +declaring static structs (that typically describe a file and line number in +some way, hence code tagging) and then finding and operating on them at runtime, +- i.e. iterating over them to print them in debugfs/procfs. + +To add accounting for an allocation call, we replace it with a macro +invocation, alloc_hooks(), that +- declares a code tag +- stashes a pointer to it in task_struct +- calls the real allocation function +- and finally, restores the task_struct alloc tag pointer to its previous value. + +This allows for alloc_hooks() calls to be nested, with the most recent one +taking effect. This is important for allocations internal to the mm/ code that +do not properly belong to the outer allocation context and should be counted +separately: for example, slab object extension vectors, or when the slab +allocates pages from the page allocator. + +Thus, proper usage requires determining which function in an allocation call +stack should be tagged. There are many helper functions that essentially wrap +e.g. kmalloc() and do a little more work, then are called in multiple places; +we'll generally want the accounting to happen in the callers of these helpers, +not in the helpers themselves. + +To fix up a given helper, for example foo(), do the following: +- switch its allocation call to the _noprof() version, e.g. kmalloc_noprof() + +- rename it to foo_noprof() + +- define a macro version of foo() like so: + + #define foo(...) alloc_hooks(foo_noprof(__VA_ARGS__)) + +It's also possible to stash a pointer to an alloc tag in your own data structures. + +Do this when you're implementing a generic data structure that does allocations +"on behalf of" some other code - for example, the rhashtable code. This way, +instead of seeing a large line in /proc/allocinfo for rhashtable.c, we can +break it out by rhashtable type. + +To do so: +- Hook your data structure's init function, like any other allocation function. + +- Within your init function, use the convenience macro alloc_tag_record() to + record alloc tag in your data structure. + +- Then, use the following form for your allocations: + alloc_hooks_tag(ht->your_saved_tag, kmalloc_noprof(...)) diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/mm/ksm.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/mm/ksm.rst index 6840c7b61..2806e3e4a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/mm/ksm.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/mm/ksm.rst @@ -1,85 +1,85 @@ -======================= -Kernel Samepage Merging -======================= - -KSM is a memory-saving de-duplication feature, enabled by CONFIG_KSM=y, -added to the Linux kernel in 2.6.32. See ``mm/ksm.c`` for its implementation, -and http://lwn.net/Articles/306704/ and https://lwn.net/Articles/330589/ - -The userspace interface of KSM is described in Documentation/admin-guide/mm/ksm.rst - -Design -====== - -Overview --------- - -.. kernel-doc:: mm/ksm.c - :DOC: Overview - -Reverse mapping ---------------- -KSM maintains reverse mapping information for KSM pages in the stable -tree. - -If a KSM page is shared between less than ``max_page_sharing`` VMAs, -the node of the stable tree that represents such KSM page points to a -list of struct ksm_rmap_item and the ``page->mapping`` of the -KSM page points to the stable tree node. - -When the sharing passes this threshold, KSM adds a second dimension to -the stable tree. The tree node becomes a "chain" that links one or -more "dups". Each "dup" keeps reverse mapping information for a KSM -page with ``page->mapping`` pointing to that "dup". - -Every "chain" and all "dups" linked into a "chain" enforce the -invariant that they represent the same write protected memory content, -even if each "dup" will be pointed by a different KSM page copy of -that content. - -This way the stable tree lookup computational complexity is unaffected -if compared to an unlimited list of reverse mappings. It is still -enforced that there cannot be KSM page content duplicates in the -stable tree itself. - -The deduplication limit enforced by ``max_page_sharing`` is required -to avoid the virtual memory rmap lists to grow too large. The rmap -walk has O(N) complexity where N is the number of rmap_items -(i.e. virtual mappings) that are sharing the page, which is in turn -capped by ``max_page_sharing``. So this effectively spreads the linear -O(N) computational complexity from rmap walk context over different -KSM pages. The ksmd walk over the stable_node "chains" is also O(N), -but N is the number of stable_node "dups", not the number of -rmap_items, so it has not a significant impact on ksmd performance. In -practice the best stable_node "dup" candidate will be kept and found -at the head of the "dups" list. - -High values of ``max_page_sharing`` result in faster memory merging -(because there will be fewer stable_node dups queued into the -stable_node chain->hlist to check for pruning) and higher -deduplication factor at the expense of slower worst case for rmap -walks for any KSM page which can happen during swapping, compaction, -NUMA balancing and page migration. - -The ``stable_node_dups/stable_node_chains`` ratio is also affected by the -``max_page_sharing`` tunable, and an high ratio may indicate fragmentation -in the stable_node dups, which could be solved by introducing -fragmentation algorithms in ksmd which would refile rmap_items from -one stable_node dup to another stable_node dup, in order to free up -stable_node "dups" with few rmap_items in them, but that may increase -the ksmd CPU usage and possibly slowdown the readonly computations on -the KSM pages of the applications. - -The whole list of stable_node "dups" linked in the stable_node -"chains" is scanned periodically in order to prune stale stable_nodes. -The frequency of such scans is defined by -``stable_node_chains_prune_millisecs`` sysfs tunable. - -Reference ---------- -.. kernel-doc:: mm/ksm.c - :functions: mm_slot ksm_scan stable_node rmap_item - --- -Izik Eidus, -Hugh Dickins, 17 Nov 2009 +======================= +Kernel Samepage Merging +======================= + +KSM is a memory-saving de-duplication feature, enabled by CONFIG_KSM=y, +added to the Linux kernel in 2.6.32. See ``mm/ksm.c`` for its implementation, +and http://lwn.net/Articles/306704/ and https://lwn.net/Articles/330589/ + +The userspace interface of KSM is described in Documentation/admin-guide/mm/ksm.rst + +Design +====== + +Overview +-------- + +.. kernel-doc:: mm/ksm.c + :DOC: Overview + +Reverse mapping +--------------- +KSM maintains reverse mapping information for KSM pages in the stable +tree. + +If a KSM page is shared between less than ``max_page_sharing`` VMAs, +the node of the stable tree that represents such KSM page points to a +list of struct ksm_rmap_item and the ``page->mapping`` of the +KSM page points to the stable tree node. + +When the sharing passes this threshold, KSM adds a second dimension to +the stable tree. The tree node becomes a "chain" that links one or +more "dups". Each "dup" keeps reverse mapping information for a KSM +page with ``page->mapping`` pointing to that "dup". + +Every "chain" and all "dups" linked into a "chain" enforce the +invariant that they represent the same write protected memory content, +even if each "dup" will be pointed by a different KSM page copy of +that content. + +This way the stable tree lookup computational complexity is unaffected +if compared to an unlimited list of reverse mappings. It is still +enforced that there cannot be KSM page content duplicates in the +stable tree itself. + +The deduplication limit enforced by ``max_page_sharing`` is required +to avoid the virtual memory rmap lists to grow too large. The rmap +walk has O(N) complexity where N is the number of rmap_items +(i.e. virtual mappings) that are sharing the page, which is in turn +capped by ``max_page_sharing``. So this effectively spreads the linear +O(N) computational complexity from rmap walk context over different +KSM pages. The ksmd walk over the stable_node "chains" is also O(N), +but N is the number of stable_node "dups", not the number of +rmap_items, so it has not a significant impact on ksmd performance. In +practice the best stable_node "dup" candidate will be kept and found +at the head of the "dups" list. + +High values of ``max_page_sharing`` result in faster memory merging +(because there will be fewer stable_node dups queued into the +stable_node chain->hlist to check for pruning) and higher +deduplication factor at the expense of slower worst case for rmap +walks for any KSM page which can happen during swapping, compaction, +NUMA balancing and page migration. + +The ``stable_node_dups/stable_node_chains`` ratio is also affected by the +``max_page_sharing`` tunable, and an high ratio may indicate fragmentation +in the stable_node dups, which could be solved by introducing +fragmentation algorithms in ksmd which would refile rmap_items from +one stable_node dup to another stable_node dup, in order to free up +stable_node "dups" with few rmap_items in them, but that may increase +the ksmd CPU usage and possibly slowdown the readonly computations on +the KSM pages of the applications. + +The whole list of stable_node "dups" linked in the stable_node +"chains" is scanned periodically in order to prune stale stable_nodes. +The frequency of such scans is defined by +``stable_node_chains_prune_millisecs`` sysfs tunable. + +Reference +--------- +.. kernel-doc:: mm/ksm.c + :functions: mm_slot ksm_scan stable_node rmap_item + +-- +Izik Eidus, +Hugh Dickins, 17 Nov 2009 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/mm/mmu_notifier.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/mm/mmu_notifier.rst index aa1669e7d..c687bea49 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/mm/mmu_notifier.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/mm/mmu_notifier.rst @@ -1,97 +1,97 @@ -When do you need to notify inside page table lock ? -=================================================== - -When clearing a pte/pmd we are given a choice to notify the event through -(notify version of \*_clear_flush call mmu_notifier_invalidate_range) under -the page table lock. But that notification is not necessary in all cases. - -For secondary TLB (non CPU TLB) like IOMMU TLB or device TLB (when device use -thing like ATS/PASID to get the IOMMU to walk the CPU page table to access a -process virtual address space). There is only 2 cases when you need to notify -those secondary TLB while holding page table lock when clearing a pte/pmd: - - A) page backing address is free before mmu_notifier_invalidate_range_end() - B) a page table entry is updated to point to a new page (COW, write fault - on zero page, __replace_page(), ...) - -Case A is obvious you do not want to take the risk for the device to write to -a page that might now be used by some completely different task. - -Case B is more subtle. For correctness it requires the following sequence to -happen: - - - take page table lock - - clear page table entry and notify ([pmd/pte]p_huge_clear_flush_notify()) - - set page table entry to point to new page - -If clearing the page table entry is not followed by a notify before setting -the new pte/pmd value then you can break memory model like C11 or C++11 for -the device. - -Consider the following scenario (device use a feature similar to ATS/PASID): - -Two address addrA and addrB such that \|addrA - addrB\| >= PAGE_SIZE we assume -they are write protected for COW (other case of B apply too). - -:: - - [Time N] -------------------------------------------------------------------- - CPU-thread-0 {try to write to addrA} - CPU-thread-1 {try to write to addrB} - CPU-thread-2 {} - CPU-thread-3 {} - DEV-thread-0 {read addrA and populate device TLB} - DEV-thread-2 {read addrB and populate device TLB} - [Time N+1] ------------------------------------------------------------------ - CPU-thread-0 {COW_step0: {mmu_notifier_invalidate_range_start(addrA)}} - CPU-thread-1 {COW_step0: {mmu_notifier_invalidate_range_start(addrB)}} - CPU-thread-2 {} - CPU-thread-3 {} - DEV-thread-0 {} - DEV-thread-2 {} - [Time N+2] ------------------------------------------------------------------ - CPU-thread-0 {COW_step1: {update page table to point to new page for addrA}} - CPU-thread-1 {COW_step1: {update page table to point to new page for addrB}} - CPU-thread-2 {} - CPU-thread-3 {} - DEV-thread-0 {} - DEV-thread-2 {} - [Time N+3] ------------------------------------------------------------------ - CPU-thread-0 {preempted} - CPU-thread-1 {preempted} - CPU-thread-2 {write to addrA which is a write to new page} - CPU-thread-3 {} - DEV-thread-0 {} - DEV-thread-2 {} - [Time N+3] ------------------------------------------------------------------ - CPU-thread-0 {preempted} - CPU-thread-1 {preempted} - CPU-thread-2 {} - CPU-thread-3 {write to addrB which is a write to new page} - DEV-thread-0 {} - DEV-thread-2 {} - [Time N+4] ------------------------------------------------------------------ - CPU-thread-0 {preempted} - CPU-thread-1 {COW_step3: {mmu_notifier_invalidate_range_end(addrB)}} - CPU-thread-2 {} - CPU-thread-3 {} - DEV-thread-0 {} - DEV-thread-2 {} - [Time N+5] ------------------------------------------------------------------ - CPU-thread-0 {preempted} - CPU-thread-1 {} - CPU-thread-2 {} - CPU-thread-3 {} - DEV-thread-0 {read addrA from old page} - DEV-thread-2 {read addrB from new page} - -So here because at time N+2 the clear page table entry was not pair with a -notification to invalidate the secondary TLB, the device see the new value for -addrB before seeing the new value for addrA. This break total memory ordering -for the device. - -When changing a pte to write protect or to point to a new write protected page -with same content (KSM) it is fine to delay the mmu_notifier_invalidate_range -call to mmu_notifier_invalidate_range_end() outside the page table lock. This -is true even if the thread doing the page table update is preempted right after -releasing page table lock but before call mmu_notifier_invalidate_range_end(). +When do you need to notify inside page table lock ? +=================================================== + +When clearing a pte/pmd we are given a choice to notify the event through +(notify version of \*_clear_flush call mmu_notifier_invalidate_range) under +the page table lock. But that notification is not necessary in all cases. + +For secondary TLB (non CPU TLB) like IOMMU TLB or device TLB (when device use +thing like ATS/PASID to get the IOMMU to walk the CPU page table to access a +process virtual address space). There is only 2 cases when you need to notify +those secondary TLB while holding page table lock when clearing a pte/pmd: + + A) page backing address is free before mmu_notifier_invalidate_range_end() + B) a page table entry is updated to point to a new page (COW, write fault + on zero page, __replace_page(), ...) + +Case A is obvious you do not want to take the risk for the device to write to +a page that might now be used by some completely different task. + +Case B is more subtle. For correctness it requires the following sequence to +happen: + + - take page table lock + - clear page table entry and notify ([pmd/pte]p_huge_clear_flush_notify()) + - set page table entry to point to new page + +If clearing the page table entry is not followed by a notify before setting +the new pte/pmd value then you can break memory model like C11 or C++11 for +the device. + +Consider the following scenario (device use a feature similar to ATS/PASID): + +Two address addrA and addrB such that \|addrA - addrB\| >= PAGE_SIZE we assume +they are write protected for COW (other case of B apply too). + +:: + + [Time N] -------------------------------------------------------------------- + CPU-thread-0 {try to write to addrA} + CPU-thread-1 {try to write to addrB} + CPU-thread-2 {} + CPU-thread-3 {} + DEV-thread-0 {read addrA and populate device TLB} + DEV-thread-2 {read addrB and populate device TLB} + [Time N+1] ------------------------------------------------------------------ + CPU-thread-0 {COW_step0: {mmu_notifier_invalidate_range_start(addrA)}} + CPU-thread-1 {COW_step0: {mmu_notifier_invalidate_range_start(addrB)}} + CPU-thread-2 {} + CPU-thread-3 {} + DEV-thread-0 {} + DEV-thread-2 {} + [Time N+2] ------------------------------------------------------------------ + CPU-thread-0 {COW_step1: {update page table to point to new page for addrA}} + CPU-thread-1 {COW_step1: {update page table to point to new page for addrB}} + CPU-thread-2 {} + CPU-thread-3 {} + DEV-thread-0 {} + DEV-thread-2 {} + [Time N+3] ------------------------------------------------------------------ + CPU-thread-0 {preempted} + CPU-thread-1 {preempted} + CPU-thread-2 {write to addrA which is a write to new page} + CPU-thread-3 {} + DEV-thread-0 {} + DEV-thread-2 {} + [Time N+3] ------------------------------------------------------------------ + CPU-thread-0 {preempted} + CPU-thread-1 {preempted} + CPU-thread-2 {} + CPU-thread-3 {write to addrB which is a write to new page} + DEV-thread-0 {} + DEV-thread-2 {} + [Time N+4] ------------------------------------------------------------------ + CPU-thread-0 {preempted} + CPU-thread-1 {COW_step3: {mmu_notifier_invalidate_range_end(addrB)}} + CPU-thread-2 {} + CPU-thread-3 {} + DEV-thread-0 {} + DEV-thread-2 {} + [Time N+5] ------------------------------------------------------------------ + CPU-thread-0 {preempted} + CPU-thread-1 {} + CPU-thread-2 {} + CPU-thread-3 {} + DEV-thread-0 {read addrA from old page} + DEV-thread-2 {read addrB from new page} + +So here because at time N+2 the clear page table entry was not pair with a +notification to invalidate the secondary TLB, the device see the new value for +addrB before seeing the new value for addrA. This break total memory ordering +for the device. + +When changing a pte to write protect or to point to a new write protected page +with same content (KSM) it is fine to delay the mmu_notifier_invalidate_range +call to mmu_notifier_invalidate_range_end() outside the page table lock. This +is true even if the thread doing the page table update is preempted right after +releasing page table lock but before call mmu_notifier_invalidate_range_end(). diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/mm/page_table_check.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/mm/page_table_check.rst index 1d15b0ac0..c59f22eb6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/mm/page_table_check.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/mm/page_table_check.rst @@ -1,80 +1,80 @@ -.. SPDX-License-Identifier: GPL-2.0 - -================ -Page Table Check -================ - -Introduction -============ - -Page table check allows to harden the kernel by ensuring that some types of -the memory corruptions are prevented. - -Page table check performs extra verifications at the time when new pages become -accessible from the userspace by getting their page table entries (PTEs PMDs -etc.) added into the table. - -In case of most detected corruption, the kernel is crashed. There is a small -performance and memory overhead associated with the page table check. Therefore, -it is disabled by default, but can be optionally enabled on systems where the -extra hardening outweighs the performance costs. Also, because page table check -is synchronous, it can help with debugging double map memory corruption issues, -by crashing kernel at the time wrong mapping occurs instead of later which is -often the case with memory corruptions bugs. - -It can also be used to do page table entry checks over various flags, dump -warnings when illegal combinations of entry flags are detected. Currently, -userfaultfd is the only user of such to sanity check wr-protect bit against -any writable flags. Illegal flag combinations will not directly cause data -corruption in this case immediately, but that will cause read-only data to -be writable, leading to corrupt when the page content is later modified. - -Double mapping detection logic -============================== - -+-------------------+-------------------+-------------------+------------------+ -| Current Mapping | New mapping | Permissions | Rule | -+===================+===================+===================+==================+ -| Anonymous | Anonymous | Read | Allow | -+-------------------+-------------------+-------------------+------------------+ -| Anonymous | Anonymous | Read / Write | Prohibit | -+-------------------+-------------------+-------------------+------------------+ -| Anonymous | Named | Any | Prohibit | -+-------------------+-------------------+-------------------+------------------+ -| Named | Anonymous | Any | Prohibit | -+-------------------+-------------------+-------------------+------------------+ -| Named | Named | Any | Allow | -+-------------------+-------------------+-------------------+------------------+ - -Enabling Page Table Check -========================= - -Build kernel with: - -- PAGE_TABLE_CHECK=y - Note, it can only be enabled on platforms where ARCH_SUPPORTS_PAGE_TABLE_CHECK - is available. - -- Boot with 'page_table_check=on' kernel parameter. - -Optionally, build kernel with PAGE_TABLE_CHECK_ENFORCED in order to have page -table support without extra kernel parameter. - -Implementation notes -==================== - -We specifically decided not to use VMA information in order to avoid relying on -MM states (except for limited "struct page" info). The page table check is a -separate from Linux-MM state machine that verifies that the user accessible -pages are not falsely shared. - -PAGE_TABLE_CHECK depends on EXCLUSIVE_SYSTEM_RAM. The reason is that without -EXCLUSIVE_SYSTEM_RAM, users are allowed to map arbitrary physical memory -regions into the userspace via /dev/mem. At the same time, pages may change -their properties (e.g., from anonymous pages to named pages) while they are -still being mapped in the userspace, leading to "corruption" detected by the -page table check. - -Even with EXCLUSIVE_SYSTEM_RAM, I/O pages may be still allowed to be mapped via -/dev/mem. However, these pages are always considered as named pages, so they -won't break the logic used in the page table check. +.. SPDX-License-Identifier: GPL-2.0 + +================ +Page Table Check +================ + +Introduction +============ + +Page table check allows to harden the kernel by ensuring that some types of +the memory corruptions are prevented. + +Page table check performs extra verifications at the time when new pages become +accessible from the userspace by getting their page table entries (PTEs PMDs +etc.) added into the table. + +In case of most detected corruption, the kernel is crashed. There is a small +performance and memory overhead associated with the page table check. Therefore, +it is disabled by default, but can be optionally enabled on systems where the +extra hardening outweighs the performance costs. Also, because page table check +is synchronous, it can help with debugging double map memory corruption issues, +by crashing kernel at the time wrong mapping occurs instead of later which is +often the case with memory corruptions bugs. + +It can also be used to do page table entry checks over various flags, dump +warnings when illegal combinations of entry flags are detected. Currently, +userfaultfd is the only user of such to sanity check wr-protect bit against +any writable flags. Illegal flag combinations will not directly cause data +corruption in this case immediately, but that will cause read-only data to +be writable, leading to corrupt when the page content is later modified. + +Double mapping detection logic +============================== + ++-------------------+-------------------+-------------------+------------------+ +| Current Mapping | New mapping | Permissions | Rule | ++===================+===================+===================+==================+ +| Anonymous | Anonymous | Read | Allow | ++-------------------+-------------------+-------------------+------------------+ +| Anonymous | Anonymous | Read / Write | Prohibit | ++-------------------+-------------------+-------------------+------------------+ +| Anonymous | Named | Any | Prohibit | ++-------------------+-------------------+-------------------+------------------+ +| Named | Anonymous | Any | Prohibit | ++-------------------+-------------------+-------------------+------------------+ +| Named | Named | Any | Allow | ++-------------------+-------------------+-------------------+------------------+ + +Enabling Page Table Check +========================= + +Build kernel with: + +- PAGE_TABLE_CHECK=y + Note, it can only be enabled on platforms where ARCH_SUPPORTS_PAGE_TABLE_CHECK + is available. + +- Boot with 'page_table_check=on' kernel parameter. + +Optionally, build kernel with PAGE_TABLE_CHECK_ENFORCED in order to have page +table support without extra kernel parameter. + +Implementation notes +==================== + +We specifically decided not to use VMA information in order to avoid relying on +MM states (except for limited "struct page" info). The page table check is a +separate from Linux-MM state machine that verifies that the user accessible +pages are not falsely shared. + +PAGE_TABLE_CHECK depends on EXCLUSIVE_SYSTEM_RAM. The reason is that without +EXCLUSIVE_SYSTEM_RAM, users are allowed to map arbitrary physical memory +regions into the userspace via /dev/mem. At the same time, pages may change +their properties (e.g., from anonymous pages to named pages) while they are +still being mapped in the userspace, leading to "corruption" detected by the +page table check. + +Even with EXCLUSIVE_SYSTEM_RAM, I/O pages may be still allowed to be mapped via +/dev/mem. However, these pages are always considered as named pages, so they +won't break the logic used in the page table check. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/mm/split_page_table_lock.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/mm/split_page_table_lock.rst index 9d3cc3293..e4f6972eb 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/mm/split_page_table_lock.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/mm/split_page_table_lock.rst @@ -1,103 +1,103 @@ -===================== -Split page table lock -===================== - -Originally, mm->page_table_lock spinlock protected all page tables of the -mm_struct. But this approach leads to poor page fault scalability of -multi-threaded applications due high contention on the lock. To improve -scalability, split page table lock was introduced. - -With split page table lock we have separate per-table lock to serialize -access to the table. At the moment we use split lock for PTE and PMD -tables. Access to higher level tables protected by mm->page_table_lock. - -There are helpers to lock/unlock a table and other accessor functions: - - - pte_offset_map_lock() - maps PTE and takes PTE table lock, returns pointer to PTE with - pointer to its PTE table lock, or returns NULL if no PTE table; - - pte_offset_map_nolock() - maps PTE, returns pointer to PTE with pointer to its PTE table - lock (not taken), or returns NULL if no PTE table; - - pte_offset_map() - maps PTE, returns pointer to PTE, or returns NULL if no PTE table; - - pte_unmap() - unmaps PTE table; - - pte_unmap_unlock() - unlocks and unmaps PTE table; - - pte_alloc_map_lock() - allocates PTE table if needed and takes its lock, returns pointer to - PTE with pointer to its lock, or returns NULL if allocation failed; - - pmd_lock() - takes PMD table lock, returns pointer to taken lock; - - pmd_lockptr() - returns pointer to PMD table lock; - -Split page table lock for PTE tables is enabled compile-time if -CONFIG_SPLIT_PTLOCK_CPUS (usually 4) is less or equal to NR_CPUS. -If split lock is disabled, all tables are guarded by mm->page_table_lock. - -Split page table lock for PMD tables is enabled, if it's enabled for PTE -tables and the architecture supports it (see below). - -Hugetlb and split page table lock -================================= - -Hugetlb can support several page sizes. We use split lock only for PMD -level, but not for PUD. - -Hugetlb-specific helpers: - - - huge_pte_lock() - takes pmd split lock for PMD_SIZE page, mm->page_table_lock - otherwise; - - huge_pte_lockptr() - returns pointer to table lock; - -Support of split page table lock by an architecture -=================================================== - -There's no need in special enabling of PTE split page table lock: everything -required is done by pagetable_pte_ctor() and pagetable_pte_dtor(), which -must be called on PTE table allocation / freeing. - -Make sure the architecture doesn't use slab allocator for page table -allocation: slab uses page->slab_cache for its pages. -This field shares storage with page->ptl. - -PMD split lock only makes sense if you have more than two page table -levels. - -PMD split lock enabling requires pagetable_pmd_ctor() call on PMD table -allocation and pagetable_pmd_dtor() on freeing. - -Allocation usually happens in pmd_alloc_one(), freeing in pmd_free() and -pmd_free_tlb(), but make sure you cover all PMD table allocation / freeing -paths: i.e X86_PAE preallocate few PMDs on pgd_alloc(). - -With everything in place you can set CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK. - -NOTE: pagetable_pte_ctor() and pagetable_pmd_ctor() can fail -- it must -be handled properly. - -page->ptl -========= - -page->ptl is used to access split page table lock, where 'page' is struct -page of page containing the table. It shares storage with page->private -(and few other fields in union). - -To avoid increasing size of struct page and have best performance, we use a -trick: - - - if spinlock_t fits into long, we use page->ptr as spinlock, so we - can avoid indirect access and save a cache line. - - if size of spinlock_t is bigger then size of long, we use page->ptl as - pointer to spinlock_t and allocate it dynamically. This allows to use - split lock with enabled DEBUG_SPINLOCK or DEBUG_LOCK_ALLOC, but costs - one more cache line for indirect access; - -The spinlock_t allocated in pagetable_pte_ctor() for PTE table and in -pagetable_pmd_ctor() for PMD table. - -Please, never access page->ptl directly -- use appropriate helper. +===================== +Split page table lock +===================== + +Originally, mm->page_table_lock spinlock protected all page tables of the +mm_struct. But this approach leads to poor page fault scalability of +multi-threaded applications due high contention on the lock. To improve +scalability, split page table lock was introduced. + +With split page table lock we have separate per-table lock to serialize +access to the table. At the moment we use split lock for PTE and PMD +tables. Access to higher level tables protected by mm->page_table_lock. + +There are helpers to lock/unlock a table and other accessor functions: + + - pte_offset_map_lock() + maps PTE and takes PTE table lock, returns pointer to PTE with + pointer to its PTE table lock, or returns NULL if no PTE table; + - pte_offset_map_nolock() + maps PTE, returns pointer to PTE with pointer to its PTE table + lock (not taken), or returns NULL if no PTE table; + - pte_offset_map() + maps PTE, returns pointer to PTE, or returns NULL if no PTE table; + - pte_unmap() + unmaps PTE table; + - pte_unmap_unlock() + unlocks and unmaps PTE table; + - pte_alloc_map_lock() + allocates PTE table if needed and takes its lock, returns pointer to + PTE with pointer to its lock, or returns NULL if allocation failed; + - pmd_lock() + takes PMD table lock, returns pointer to taken lock; + - pmd_lockptr() + returns pointer to PMD table lock; + +Split page table lock for PTE tables is enabled compile-time if +CONFIG_SPLIT_PTLOCK_CPUS (usually 4) is less or equal to NR_CPUS. +If split lock is disabled, all tables are guarded by mm->page_table_lock. + +Split page table lock for PMD tables is enabled, if it's enabled for PTE +tables and the architecture supports it (see below). + +Hugetlb and split page table lock +================================= + +Hugetlb can support several page sizes. We use split lock only for PMD +level, but not for PUD. + +Hugetlb-specific helpers: + + - huge_pte_lock() + takes pmd split lock for PMD_SIZE page, mm->page_table_lock + otherwise; + - huge_pte_lockptr() + returns pointer to table lock; + +Support of split page table lock by an architecture +=================================================== + +There's no need in special enabling of PTE split page table lock: everything +required is done by pagetable_pte_ctor() and pagetable_pte_dtor(), which +must be called on PTE table allocation / freeing. + +Make sure the architecture doesn't use slab allocator for page table +allocation: slab uses page->slab_cache for its pages. +This field shares storage with page->ptl. + +PMD split lock only makes sense if you have more than two page table +levels. + +PMD split lock enabling requires pagetable_pmd_ctor() call on PMD table +allocation and pagetable_pmd_dtor() on freeing. + +Allocation usually happens in pmd_alloc_one(), freeing in pmd_free() and +pmd_free_tlb(), but make sure you cover all PMD table allocation / freeing +paths: i.e X86_PAE preallocate few PMDs on pgd_alloc(). + +With everything in place you can set CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK. + +NOTE: pagetable_pte_ctor() and pagetable_pmd_ctor() can fail -- it must +be handled properly. + +page->ptl +========= + +page->ptl is used to access split page table lock, where 'page' is struct +page of page containing the table. It shares storage with page->private +(and few other fields in union). + +To avoid increasing size of struct page and have best performance, we use a +trick: + + - if spinlock_t fits into long, we use page->ptr as spinlock, so we + can avoid indirect access and save a cache line. + - if size of spinlock_t is bigger then size of long, we use page->ptl as + pointer to spinlock_t and allocate it dynamically. This allows to use + split lock with enabled DEBUG_SPINLOCK or DEBUG_LOCK_ALLOC, but costs + one more cache line for indirect access; + +The spinlock_t allocated in pagetable_pte_ctor() for PTE table and in +pagetable_pmd_ctor() for PMD table. + +Please, never access page->ptl directly -- use appropriate helper. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/netlink/specs/nfsd.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/netlink/specs/nfsd.yaml index 8958d476f..c87658114 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/netlink/specs/nfsd.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/netlink/specs/nfsd.yaml @@ -1,224 +1,224 @@ -# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) - -name: nfsd -protocol: genetlink -uapi-header: linux/nfsd_netlink.h - -doc: NFSD configuration over generic netlink. - -attribute-sets: - - - name: rpc-status - attributes: - - - name: xid - type: u32 - byte-order: big-endian - - - name: flags - type: u32 - - - name: prog - type: u32 - - - name: version - type: u8 - - - name: proc - type: u32 - - - name: service_time - type: s64 - - - name: pad - type: pad - - - name: saddr4 - type: u32 - byte-order: big-endian - display-hint: ipv4 - - - name: daddr4 - type: u32 - byte-order: big-endian - display-hint: ipv4 - - - name: saddr6 - type: binary - display-hint: ipv6 - - - name: daddr6 - type: binary - display-hint: ipv6 - - - name: sport - type: u16 - byte-order: big-endian - - - name: dport - type: u16 - byte-order: big-endian - - - name: compound-ops - type: u32 - multi-attr: true - - - name: server - attributes: - - - name: threads - type: u32 - multi-attr: true - - - name: gracetime - type: u32 - - - name: leasetime - type: u32 - - - name: scope - type: string - - - name: version - attributes: - - - name: major - type: u32 - - - name: minor - type: u32 - - - name: enabled - type: flag - - - name: server-proto - attributes: - - - name: version - type: nest - nested-attributes: version - multi-attr: true - - - name: sock - attributes: - - - name: addr - type: binary - - - name: transport-name - type: string - - - name: server-sock - attributes: - - - name: addr - type: nest - nested-attributes: sock - multi-attr: true - - - name: pool-mode - attributes: - - - name: mode - type: string - - - name: npools - type: u32 - -operations: - list: - - - name: rpc-status-get - doc: dump pending nfsd rpc - attribute-set: rpc-status - dump: - reply: - attributes: - - xid - - flags - - prog - - version - - proc - - service_time - - saddr4 - - daddr4 - - saddr6 - - daddr6 - - sport - - dport - - compound-ops - - - name: threads-set - doc: set the number of running threads - attribute-set: server - flags: [ admin-perm ] - do: - request: - attributes: - - threads - - gracetime - - leasetime - - scope - - - name: threads-get - doc: get the number of running threads - attribute-set: server - do: - reply: - attributes: - - threads - - gracetime - - leasetime - - scope - - - name: version-set - doc: set nfs enabled versions - attribute-set: server-proto - flags: [ admin-perm ] - do: - request: - attributes: - - version - - - name: version-get - doc: get nfs enabled versions - attribute-set: server-proto - do: - reply: - attributes: - - version - - - name: listener-set - doc: set nfs running sockets - attribute-set: server-sock - flags: [ admin-perm ] - do: - request: - attributes: - - addr - - - name: listener-get - doc: get nfs running listeners - attribute-set: server-sock - do: - reply: - attributes: - - addr - - - name: pool-mode-set - doc: set the current server pool-mode - attribute-set: pool-mode - flags: [ admin-perm ] - do: - request: - attributes: - - mode - - - name: pool-mode-get - doc: get info about server pool-mode - attribute-set: pool-mode - do: - reply: - attributes: - - mode - - npools +# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) + +name: nfsd +protocol: genetlink +uapi-header: linux/nfsd_netlink.h + +doc: NFSD configuration over generic netlink. + +attribute-sets: + - + name: rpc-status + attributes: + - + name: xid + type: u32 + byte-order: big-endian + - + name: flags + type: u32 + - + name: prog + type: u32 + - + name: version + type: u8 + - + name: proc + type: u32 + - + name: service_time + type: s64 + - + name: pad + type: pad + - + name: saddr4 + type: u32 + byte-order: big-endian + display-hint: ipv4 + - + name: daddr4 + type: u32 + byte-order: big-endian + display-hint: ipv4 + - + name: saddr6 + type: binary + display-hint: ipv6 + - + name: daddr6 + type: binary + display-hint: ipv6 + - + name: sport + type: u16 + byte-order: big-endian + - + name: dport + type: u16 + byte-order: big-endian + - + name: compound-ops + type: u32 + multi-attr: true + - + name: server + attributes: + - + name: threads + type: u32 + multi-attr: true + - + name: gracetime + type: u32 + - + name: leasetime + type: u32 + - + name: scope + type: string + - + name: version + attributes: + - + name: major + type: u32 + - + name: minor + type: u32 + - + name: enabled + type: flag + - + name: server-proto + attributes: + - + name: version + type: nest + nested-attributes: version + multi-attr: true + - + name: sock + attributes: + - + name: addr + type: binary + - + name: transport-name + type: string + - + name: server-sock + attributes: + - + name: addr + type: nest + nested-attributes: sock + multi-attr: true + - + name: pool-mode + attributes: + - + name: mode + type: string + - + name: npools + type: u32 + +operations: + list: + - + name: rpc-status-get + doc: dump pending nfsd rpc + attribute-set: rpc-status + dump: + reply: + attributes: + - xid + - flags + - prog + - version + - proc + - service_time + - saddr4 + - daddr4 + - saddr6 + - daddr6 + - sport + - dport + - compound-ops + - + name: threads-set + doc: set the number of running threads + attribute-set: server + flags: [ admin-perm ] + do: + request: + attributes: + - threads + - gracetime + - leasetime + - scope + - + name: threads-get + doc: get the number of running threads + attribute-set: server + do: + reply: + attributes: + - threads + - gracetime + - leasetime + - scope + - + name: version-set + doc: set nfs enabled versions + attribute-set: server-proto + flags: [ admin-perm ] + do: + request: + attributes: + - version + - + name: version-get + doc: get nfs enabled versions + attribute-set: server-proto + do: + reply: + attributes: + - version + - + name: listener-set + doc: set nfs running sockets + attribute-set: server-sock + flags: [ admin-perm ] + do: + request: + attributes: + - addr + - + name: listener-get + doc: get nfs running listeners + attribute-set: server-sock + do: + reply: + attributes: + - addr + - + name: pool-mode-set + doc: set the current server pool-mode + attribute-set: pool-mode + flags: [ admin-perm ] + do: + request: + attributes: + - mode + - + name: pool-mode-get + doc: get info about server pool-mode + attribute-set: pool-mode + do: + reply: + attributes: + - mode + - npools diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/netlink/specs/nlctrl.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/netlink/specs/nlctrl.yaml index 2058bbd8b..a36535350 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/netlink/specs/nlctrl.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/netlink/specs/nlctrl.yaml @@ -1,208 +1,208 @@ -# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) - -name: nlctrl -protocol: genetlink-legacy -uapi-header: linux/genetlink.h - -doc: | - genetlink meta-family that exposes information about all genetlink - families registered in the kernel (including itself). - -definitions: - - - name: op-flags - type: flags - enum-name: - entries: - - admin-perm - - cmd-cap-do - - cmd-cap-dump - - cmd-cap-haspol - - uns-admin-perm - - - name: attr-type - enum-name: netlink-attribute-type - type: enum - entries: - - invalid - - flag - - u8 - - u16 - - u32 - - u64 - - s8 - - s16 - - s32 - - s64 - - binary - - string - - nul-string - - nested - - nested-array - - bitfield32 - - sint - - uint - -attribute-sets: - - - name: ctrl-attrs - name-prefix: ctrl-attr- - attributes: - - - name: family-id - type: u16 - - - name: family-name - type: string - - - name: version - type: u32 - - - name: hdrsize - type: u32 - - - name: maxattr - type: u32 - - - name: ops - type: indexed-array - sub-type: nest - nested-attributes: op-attrs - - - name: mcast-groups - type: indexed-array - sub-type: nest - nested-attributes: mcast-group-attrs - - - name: policy - type: nest-type-value - type-value: [ policy-id, attr-id ] - nested-attributes: policy-attrs - - - name: op-policy - type: nest-type-value - type-value: [ op-id ] - nested-attributes: op-policy-attrs - - - name: op - type: u32 - - - name: mcast-group-attrs - name-prefix: ctrl-attr-mcast-grp- - enum-name: - attributes: - - - name: name - type: string - - - name: id - type: u32 - - - name: op-attrs - name-prefix: ctrl-attr-op- - enum-name: - attributes: - - - name: id - type: u32 - - - name: flags - type: u32 - enum: op-flags - enum-as-flags: true - - - name: policy-attrs - name-prefix: nl-policy-type-attr- - enum-name: - attributes: - - - name: type - type: u32 - enum: attr-type - - - name: min-value-s - type: s64 - - - name: max-value-s - type: s64 - - - name: min-value-u - type: u64 - - - name: max-value-u - type: u64 - - - name: min-length - type: u32 - - - name: max-length - type: u32 - - - name: policy-idx - type: u32 - - - name: policy-maxtype - type: u32 - - - name: bitfield32-mask - type: u32 - - - name: mask - type: u64 - - - name: pad - type: pad - - - name: op-policy-attrs - name-prefix: ctrl-attr-policy- - enum-name: - attributes: - - - name: do - type: u32 - - - name: dump - type: u32 - -operations: - enum-model: directional - name-prefix: ctrl-cmd- - list: - - - name: getfamily - doc: Get / dump genetlink families - attribute-set: ctrl-attrs - do: - request: - value: 3 - attributes: - - family-name - reply: &all-attrs - value: 1 - attributes: - - family-id - - family-name - - hdrsize - - maxattr - - mcast-groups - - ops - - version - dump: - reply: *all-attrs - - - name: getpolicy - doc: Get / dump genetlink policies - attribute-set: ctrl-attrs - dump: - request: - value: 10 - attributes: - - family-name - - family-id - - op - reply: - value: 10 - attributes: - - family-id - - op-policy - - policy +# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) + +name: nlctrl +protocol: genetlink-legacy +uapi-header: linux/genetlink.h + +doc: | + genetlink meta-family that exposes information about all genetlink + families registered in the kernel (including itself). + +definitions: + - + name: op-flags + type: flags + enum-name: + entries: + - admin-perm + - cmd-cap-do + - cmd-cap-dump + - cmd-cap-haspol + - uns-admin-perm + - + name: attr-type + enum-name: netlink-attribute-type + type: enum + entries: + - invalid + - flag + - u8 + - u16 + - u32 + - u64 + - s8 + - s16 + - s32 + - s64 + - binary + - string + - nul-string + - nested + - nested-array + - bitfield32 + - sint + - uint + +attribute-sets: + - + name: ctrl-attrs + name-prefix: ctrl-attr- + attributes: + - + name: family-id + type: u16 + - + name: family-name + type: string + - + name: version + type: u32 + - + name: hdrsize + type: u32 + - + name: maxattr + type: u32 + - + name: ops + type: indexed-array + sub-type: nest + nested-attributes: op-attrs + - + name: mcast-groups + type: indexed-array + sub-type: nest + nested-attributes: mcast-group-attrs + - + name: policy + type: nest-type-value + type-value: [ policy-id, attr-id ] + nested-attributes: policy-attrs + - + name: op-policy + type: nest-type-value + type-value: [ op-id ] + nested-attributes: op-policy-attrs + - + name: op + type: u32 + - + name: mcast-group-attrs + name-prefix: ctrl-attr-mcast-grp- + enum-name: + attributes: + - + name: name + type: string + - + name: id + type: u32 + - + name: op-attrs + name-prefix: ctrl-attr-op- + enum-name: + attributes: + - + name: id + type: u32 + - + name: flags + type: u32 + enum: op-flags + enum-as-flags: true + - + name: policy-attrs + name-prefix: nl-policy-type-attr- + enum-name: + attributes: + - + name: type + type: u32 + enum: attr-type + - + name: min-value-s + type: s64 + - + name: max-value-s + type: s64 + - + name: min-value-u + type: u64 + - + name: max-value-u + type: u64 + - + name: min-length + type: u32 + - + name: max-length + type: u32 + - + name: policy-idx + type: u32 + - + name: policy-maxtype + type: u32 + - + name: bitfield32-mask + type: u32 + - + name: mask + type: u64 + - + name: pad + type: pad + - + name: op-policy-attrs + name-prefix: ctrl-attr-policy- + enum-name: + attributes: + - + name: do + type: u32 + - + name: dump + type: u32 + +operations: + enum-model: directional + name-prefix: ctrl-cmd- + list: + - + name: getfamily + doc: Get / dump genetlink families + attribute-set: ctrl-attrs + do: + request: + value: 3 + attributes: + - family-name + reply: &all-attrs + value: 1 + attributes: + - family-id + - family-name + - hdrsize + - maxattr + - mcast-groups + - ops + - version + dump: + reply: *all-attrs + - + name: getpolicy + doc: Get / dump genetlink policies + attribute-set: ctrl-attrs + dump: + request: + value: 10 + attributes: + - family-name + - family-id + - op + reply: + value: 10 + attributes: + - family-id + - op-policy + - policy diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/netlink/specs/tcp_metrics.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/netlink/specs/tcp_metrics.yaml index 60838c54b..1bd94f43e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/netlink/specs/tcp_metrics.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/netlink/specs/tcp_metrics.yaml @@ -1,169 +1,169 @@ -# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) - -name: tcp_metrics - -protocol: genetlink-legacy - -doc: | - Management interface for TCP metrics. - -c-family-name: tcp-metrics-genl-name -c-version-name: tcp-metrics-genl-version -max-by-define: true -kernel-policy: global - -definitions: - - - name: tcp-fastopen-cookie-max - type: const - value: 16 - -attribute-sets: - - - name: tcp-metrics - name-prefix: tcp-metrics-attr- - attributes: - - - name: addr-ipv4 - type: u32 - byte-order: big-endian - display-hint: ipv4 - - - name: addr-ipv6 - type: binary - checks: - min-len: 16 - byte-order: big-endian - display-hint: ipv6 - - - name: age - type: u64 - - - name: tw-tsval - type: u32 - doc: unused - - - name: tw-ts-stamp - type: s32 - doc: unused - - - name: vals - type: nest - nested-attributes: metrics - - - name: fopen-mss - type: u16 - - - name: fopen-syn-drops - type: u16 - - - name: fopen-syn-drop-ts - type: u64 - - - name: fopen-cookie - type: binary - checks: - min-len: tcp-fastopen-cookie-max - - - name: saddr-ipv4 - type: u32 - byte-order: big-endian - display-hint: ipv4 - - - name: saddr-ipv6 - type: binary - checks: - min-len: 16 - byte-order: big-endian - display-hint: ipv6 - - - name: pad - type: pad - - - - name: metrics - # Intentionally don't define the name-prefix, see below. - doc: | - Attributes with metrics. Note that the values here do not match - the TCP_METRIC_* defines in the kernel, because kernel defines - are off-by one (e.g. rtt is defined as enum 0, while netlink carries - attribute type 1). - attributes: - - - name: rtt - type: u32 - doc: | - Round Trip Time (RTT), in msecs with 3 bits fractional - (left-shift by 3 to get the msec value). - - - name: rttvar - type: u32 - doc: | - Round Trip Time VARiance (RTT), in msecs with 2 bits fractional - (left-shift by 2 to get the msec value). - - - name: ssthresh - type: u32 - doc: Slow Start THRESHold. - - - name: cwnd - type: u32 - doc: Congestion Window. - - - name: reodering - type: u32 - doc: Reodering metric. - - - name: rtt-us - type: u32 - doc: | - Round Trip Time (RTT), in usecs, with 3 bits fractional - (left-shift by 3 to get the msec value). - - - name: rttvar-us - type: u32 - doc: | - Round Trip Time (RTT), in usecs, with 2 bits fractional - (left-shift by 3 to get the msec value). - -operations: - list: - - - name: get - doc: Retrieve metrics. - attribute-set: tcp-metrics - - dont-validate: [ strict, dump ] - - do: - request: &sel_attrs - attributes: - - addr-ipv4 - - addr-ipv6 - - saddr-ipv4 - - saddr-ipv6 - reply: &all_attrs - attributes: - - addr-ipv4 - - addr-ipv6 - - saddr-ipv4 - - saddr-ipv6 - - age - - vals - - fopen-mss - - fopen-syn-drops - - fopen-syn-drop-ts - - fopen-cookie - dump: - reply: *all_attrs - - - - name: del - doc: Delete metrics. - attribute-set: tcp-metrics - - dont-validate: [ strict, dump ] - flags: [ admin-perm ] - - do: - request: *sel_attrs +# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) + +name: tcp_metrics + +protocol: genetlink-legacy + +doc: | + Management interface for TCP metrics. + +c-family-name: tcp-metrics-genl-name +c-version-name: tcp-metrics-genl-version +max-by-define: true +kernel-policy: global + +definitions: + - + name: tcp-fastopen-cookie-max + type: const + value: 16 + +attribute-sets: + - + name: tcp-metrics + name-prefix: tcp-metrics-attr- + attributes: + - + name: addr-ipv4 + type: u32 + byte-order: big-endian + display-hint: ipv4 + - + name: addr-ipv6 + type: binary + checks: + min-len: 16 + byte-order: big-endian + display-hint: ipv6 + - + name: age + type: u64 + - + name: tw-tsval + type: u32 + doc: unused + - + name: tw-ts-stamp + type: s32 + doc: unused + - + name: vals + type: nest + nested-attributes: metrics + - + name: fopen-mss + type: u16 + - + name: fopen-syn-drops + type: u16 + - + name: fopen-syn-drop-ts + type: u64 + - + name: fopen-cookie + type: binary + checks: + min-len: tcp-fastopen-cookie-max + - + name: saddr-ipv4 + type: u32 + byte-order: big-endian + display-hint: ipv4 + - + name: saddr-ipv6 + type: binary + checks: + min-len: 16 + byte-order: big-endian + display-hint: ipv6 + - + name: pad + type: pad + + - + name: metrics + # Intentionally don't define the name-prefix, see below. + doc: | + Attributes with metrics. Note that the values here do not match + the TCP_METRIC_* defines in the kernel, because kernel defines + are off-by one (e.g. rtt is defined as enum 0, while netlink carries + attribute type 1). + attributes: + - + name: rtt + type: u32 + doc: | + Round Trip Time (RTT), in msecs with 3 bits fractional + (left-shift by 3 to get the msec value). + - + name: rttvar + type: u32 + doc: | + Round Trip Time VARiance (RTT), in msecs with 2 bits fractional + (left-shift by 2 to get the msec value). + - + name: ssthresh + type: u32 + doc: Slow Start THRESHold. + - + name: cwnd + type: u32 + doc: Congestion Window. + - + name: reodering + type: u32 + doc: Reodering metric. + - + name: rtt-us + type: u32 + doc: | + Round Trip Time (RTT), in usecs, with 3 bits fractional + (left-shift by 3 to get the msec value). + - + name: rttvar-us + type: u32 + doc: | + Round Trip Time (RTT), in usecs, with 2 bits fractional + (left-shift by 3 to get the msec value). + +operations: + list: + - + name: get + doc: Retrieve metrics. + attribute-set: tcp-metrics + + dont-validate: [ strict, dump ] + + do: + request: &sel_attrs + attributes: + - addr-ipv4 + - addr-ipv6 + - saddr-ipv4 + - saddr-ipv6 + reply: &all_attrs + attributes: + - addr-ipv4 + - addr-ipv6 + - saddr-ipv4 + - saddr-ipv6 + - age + - vals + - fopen-mss + - fopen-syn-drops + - fopen-syn-drop-ts + - fopen-cookie + dump: + reply: *all_attrs + + - + name: del + doc: Delete metrics. + attribute-set: tcp-metrics + + dont-validate: [ strict, dump ] + flags: [ admin-perm ] + + do: + request: *sel_attrs diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/netlink/specs/team.yaml b/image/debian/UFI003_MB_V02/kernel/Documentation/netlink/specs/team.yaml index b432f9b54..c13529e01 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/netlink/specs/team.yaml +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/netlink/specs/team.yaml @@ -1,204 +1,204 @@ -# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) - -name: team - -protocol: genetlink-legacy - -doc: | - Network team device driver. - -c-family-name: team-genl-name -c-version-name: team-genl-version -kernel-policy: global -uapi-header: linux/if_team.h - -definitions: - - - name: string-max-len - type: const - value: 32 - - - name: genl-change-event-mc-grp-name - type: const - value: change_event - -attribute-sets: - - - name: team - doc: - The team nested layout of get/set msg looks like - [TEAM_ATTR_LIST_OPTION] - [TEAM_ATTR_ITEM_OPTION] - [TEAM_ATTR_OPTION_*], ... - [TEAM_ATTR_ITEM_OPTION] - [TEAM_ATTR_OPTION_*], ... - ... - [TEAM_ATTR_LIST_PORT] - [TEAM_ATTR_ITEM_PORT] - [TEAM_ATTR_PORT_*], ... - [TEAM_ATTR_ITEM_PORT] - [TEAM_ATTR_PORT_*], ... - ... - name-prefix: team-attr- - attributes: - - - name: unspec - type: unused - value: 0 - - - name: team-ifindex - type: u32 - - - name: list-option - type: nest - nested-attributes: item-option - - - name: list-port - type: nest - nested-attributes: item-port - - - name: item-option - name-prefix: team-attr-item- - attr-cnt-name: __team-attr-item-option-max - attr-max-name: team-attr-item-option-max - attributes: - - - name: option-unspec - type: unused - value: 0 - - - name: option - type: nest - nested-attributes: attr-option - - - name: attr-option - name-prefix: team-attr-option- - attributes: - - - name: unspec - type: unused - value: 0 - - - name: name - type: string - checks: - max-len: string-max-len - unterminated-ok: true - - - name: changed - type: flag - - - name: type - type: u8 - - - name: data - type: binary - - - name: removed - type: flag - - - name: port-ifindex - type: u32 - doc: for per-port options - - - name: array-index - type: u32 - doc: for array options - - - name: item-port - name-prefix: team-attr-item- - attr-cnt-name: __team-attr-item-port-max - attr-max-name: team-attr-item-port-max - attributes: - - - name: port-unspec - type: unused - value: 0 - - - name: port - type: nest - nested-attributes: attr-port - - - name: attr-port - name-prefix: team-attr-port- - attributes: - - - name: unspec - type: unused - value: 0 - - - name: ifindex - type: u32 - - - name: changed - type: flag - - - name: linkup - type: flag - - - name: speed - type: u32 - - - name: duplex - type: u8 - - - name: removed - type: flag - -operations: - list: - - - name: noop - doc: No operation - value: 0 - attribute-set: team - dont-validate: [ strict ] - - do: - # Actually it only reply the team netlink family - reply: - attributes: - - team-ifindex - - - - name: options-set - doc: Set team options - attribute-set: team - dont-validate: [ strict ] - flags: [ admin-perm ] - - do: - request: &option_attrs - attributes: - - team-ifindex - - list-option - reply: *option_attrs - - - - name: options-get - doc: Get team options info - attribute-set: team - dont-validate: [ strict ] - flags: [ admin-perm ] - - do: - request: - attributes: - - team-ifindex - reply: *option_attrs - - - - name: port-list-get - doc: Get team ports info - attribute-set: team - dont-validate: [ strict ] - flags: [ admin-perm ] - - do: - request: - attributes: - - team-ifindex - reply: &port_attrs - attributes: - - team-ifindex - - list-port +# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) + +name: team + +protocol: genetlink-legacy + +doc: | + Network team device driver. + +c-family-name: team-genl-name +c-version-name: team-genl-version +kernel-policy: global +uapi-header: linux/if_team.h + +definitions: + - + name: string-max-len + type: const + value: 32 + - + name: genl-change-event-mc-grp-name + type: const + value: change_event + +attribute-sets: + - + name: team + doc: + The team nested layout of get/set msg looks like + [TEAM_ATTR_LIST_OPTION] + [TEAM_ATTR_ITEM_OPTION] + [TEAM_ATTR_OPTION_*], ... + [TEAM_ATTR_ITEM_OPTION] + [TEAM_ATTR_OPTION_*], ... + ... + [TEAM_ATTR_LIST_PORT] + [TEAM_ATTR_ITEM_PORT] + [TEAM_ATTR_PORT_*], ... + [TEAM_ATTR_ITEM_PORT] + [TEAM_ATTR_PORT_*], ... + ... + name-prefix: team-attr- + attributes: + - + name: unspec + type: unused + value: 0 + - + name: team-ifindex + type: u32 + - + name: list-option + type: nest + nested-attributes: item-option + - + name: list-port + type: nest + nested-attributes: item-port + - + name: item-option + name-prefix: team-attr-item- + attr-cnt-name: __team-attr-item-option-max + attr-max-name: team-attr-item-option-max + attributes: + - + name: option-unspec + type: unused + value: 0 + - + name: option + type: nest + nested-attributes: attr-option + - + name: attr-option + name-prefix: team-attr-option- + attributes: + - + name: unspec + type: unused + value: 0 + - + name: name + type: string + checks: + max-len: string-max-len + unterminated-ok: true + - + name: changed + type: flag + - + name: type + type: u8 + - + name: data + type: binary + - + name: removed + type: flag + - + name: port-ifindex + type: u32 + doc: for per-port options + - + name: array-index + type: u32 + doc: for array options + - + name: item-port + name-prefix: team-attr-item- + attr-cnt-name: __team-attr-item-port-max + attr-max-name: team-attr-item-port-max + attributes: + - + name: port-unspec + type: unused + value: 0 + - + name: port + type: nest + nested-attributes: attr-port + - + name: attr-port + name-prefix: team-attr-port- + attributes: + - + name: unspec + type: unused + value: 0 + - + name: ifindex + type: u32 + - + name: changed + type: flag + - + name: linkup + type: flag + - + name: speed + type: u32 + - + name: duplex + type: u8 + - + name: removed + type: flag + +operations: + list: + - + name: noop + doc: No operation + value: 0 + attribute-set: team + dont-validate: [ strict ] + + do: + # Actually it only reply the team netlink family + reply: + attributes: + - team-ifindex + + - + name: options-set + doc: Set team options + attribute-set: team + dont-validate: [ strict ] + flags: [ admin-perm ] + + do: + request: &option_attrs + attributes: + - team-ifindex + - list-option + reply: *option_attrs + + - + name: options-get + doc: Get team options info + attribute-set: team + dont-validate: [ strict ] + flags: [ admin-perm ] + + do: + request: + attributes: + - team-ifindex + reply: *option_attrs + + - + name: port-list-get + doc: Get team ports info + attribute-set: team + dont-validate: [ strict ] + flags: [ admin-perm ] + + do: + request: + attributes: + - team-ifindex + reply: &port_attrs + attributes: + - team-ifindex + - list-port diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/caif/caif.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/caif/caif.rst index e5500d636..d922d419c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/caif/caif.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/caif/caif.rst @@ -1,138 +1,138 @@ -.. SPDX-License-Identifier: GPL-2.0 -.. include:: - - -================ -Using Linux CAIF -================ - - -:Copyright: |copy| ST-Ericsson AB 2010 - -:Author: Sjur Brendeland/ sjur.brandeland@stericsson.com - -Start -===== - -If you have compiled CAIF for modules do:: - - $modprobe crc_ccitt - $modprobe caif - $modprobe caif_socket - $modprobe chnl_net - - -Preparing the setup with a STE modem -==================================== - -If you are working on integration of CAIF you should make sure -that the kernel is built with module support. - -There are some things that need to be tweaked to get the host TTY correctly -set up to talk to the modem. -Since the CAIF stack is running in the kernel and we want to use the existing -TTY, we are installing our physical serial driver as a line discipline above -the TTY device. - -To achieve this we need to install the N_CAIF ldisc from user space. -The benefit is that we can hook up to any TTY. - -The use of Start-of-frame-extension (STX) must also be set as -module parameter "ser_use_stx". - -Normally Frame Checksum is always used on UART, but this is also provided as a -module parameter "ser_use_fcs". - -:: - - $ modprobe caif_serial ser_ttyname=/dev/ttyS0 ser_use_stx=yes - $ ifconfig caif_ttyS0 up - -PLEASE NOTE: - There is a limitation in Android shell. - It only accepts one argument to insmod/modprobe! - -Trouble shooting -================ - -There are debugfs parameters provided for serial communication. -/sys/kernel/debug/caif_serial// - -* ser_state: Prints the bit-mask status where - - - 0x02 means SENDING, this is a transient state. - - 0x10 means FLOW_OFF_SENT, i.e. the previous frame has not been sent - and is blocking further send operation. Flow OFF has been propagated - to all CAIF Channels using this TTY. - -* tty_status: Prints the bit-mask tty status information - - - 0x01 - tty->warned is on. - - 0x04 - tty->packed is on. - - 0x08 - tty->flow.tco_stopped is on. - - 0x10 - tty->hw_stopped is on. - - 0x20 - tty->flow.stopped is on. - -* last_tx_msg: Binary blob Prints the last transmitted frame. - - This can be printed with:: - - $od --format=x1 /sys/kernel/debug/caif_serial//last_rx_msg. - - The first two tx messages sent look like this. Note: The initial - byte 02 is start of frame extension (STX) used for re-syncing - upon errors. - - - Enumeration:: - - 0000000 02 05 00 00 03 01 d2 02 - | | | | | | - STX(1) | | | | - Length(2)| | | - Control Channel(1) - Command:Enumeration(1) - Link-ID(1) - Checksum(2) - - - Channel Setup:: - - 0000000 02 07 00 00 00 21 a1 00 48 df - | | | | | | | | - STX(1) | | | | | | - Length(2)| | | | | - Control Channel(1) - Command:Channel Setup(1) - Channel Type(1) - Priority and Link-ID(1) - Endpoint(1) - Checksum(2) - -* last_rx_msg: Prints the last transmitted frame. - - The RX messages for LinkSetup look almost identical but they have the - bit 0x20 set in the command bit, and Channel Setup has added one byte - before Checksum containing Channel ID. - - NOTE: - Several CAIF Messages might be concatenated. The maximum debug - buffer size is 128 bytes. - -Error Scenarios -=============== - -- last_tx_msg contains channel setup message and last_rx_msg is empty -> - The host seems to be able to send over the UART, at least the CAIF ldisc get - notified that sending is completed. - -- last_tx_msg contains enumeration message and last_rx_msg is empty -> - The host is not able to send the message from UART, the tty has not been - able to complete the transmit operation. - -- if /sys/kernel/debug/caif_serial//tty_status is non-zero there - might be problems transmitting over UART. - - E.g. host and modem wiring is not correct you will typically see - tty_status = 0x10 (hw_stopped) and ser_state = 0x10 (FLOW_OFF_SENT). - - You will probably see the enumeration message in last_tx_message - and empty last_rx_message. +.. SPDX-License-Identifier: GPL-2.0 +.. include:: + + +================ +Using Linux CAIF +================ + + +:Copyright: |copy| ST-Ericsson AB 2010 + +:Author: Sjur Brendeland/ sjur.brandeland@stericsson.com + +Start +===== + +If you have compiled CAIF for modules do:: + + $modprobe crc_ccitt + $modprobe caif + $modprobe caif_socket + $modprobe chnl_net + + +Preparing the setup with a STE modem +==================================== + +If you are working on integration of CAIF you should make sure +that the kernel is built with module support. + +There are some things that need to be tweaked to get the host TTY correctly +set up to talk to the modem. +Since the CAIF stack is running in the kernel and we want to use the existing +TTY, we are installing our physical serial driver as a line discipline above +the TTY device. + +To achieve this we need to install the N_CAIF ldisc from user space. +The benefit is that we can hook up to any TTY. + +The use of Start-of-frame-extension (STX) must also be set as +module parameter "ser_use_stx". + +Normally Frame Checksum is always used on UART, but this is also provided as a +module parameter "ser_use_fcs". + +:: + + $ modprobe caif_serial ser_ttyname=/dev/ttyS0 ser_use_stx=yes + $ ifconfig caif_ttyS0 up + +PLEASE NOTE: + There is a limitation in Android shell. + It only accepts one argument to insmod/modprobe! + +Trouble shooting +================ + +There are debugfs parameters provided for serial communication. +/sys/kernel/debug/caif_serial// + +* ser_state: Prints the bit-mask status where + + - 0x02 means SENDING, this is a transient state. + - 0x10 means FLOW_OFF_SENT, i.e. the previous frame has not been sent + and is blocking further send operation. Flow OFF has been propagated + to all CAIF Channels using this TTY. + +* tty_status: Prints the bit-mask tty status information + + - 0x01 - tty->warned is on. + - 0x04 - tty->packed is on. + - 0x08 - tty->flow.tco_stopped is on. + - 0x10 - tty->hw_stopped is on. + - 0x20 - tty->flow.stopped is on. + +* last_tx_msg: Binary blob Prints the last transmitted frame. + + This can be printed with:: + + $od --format=x1 /sys/kernel/debug/caif_serial//last_rx_msg. + + The first two tx messages sent look like this. Note: The initial + byte 02 is start of frame extension (STX) used for re-syncing + upon errors. + + - Enumeration:: + + 0000000 02 05 00 00 03 01 d2 02 + | | | | | | + STX(1) | | | | + Length(2)| | | + Control Channel(1) + Command:Enumeration(1) + Link-ID(1) + Checksum(2) + + - Channel Setup:: + + 0000000 02 07 00 00 00 21 a1 00 48 df + | | | | | | | | + STX(1) | | | | | | + Length(2)| | | | | + Control Channel(1) + Command:Channel Setup(1) + Channel Type(1) + Priority and Link-ID(1) + Endpoint(1) + Checksum(2) + +* last_rx_msg: Prints the last transmitted frame. + + The RX messages for LinkSetup look almost identical but they have the + bit 0x20 set in the command bit, and Channel Setup has added one byte + before Checksum containing Channel ID. + + NOTE: + Several CAIF Messages might be concatenated. The maximum debug + buffer size is 128 bytes. + +Error Scenarios +=============== + +- last_tx_msg contains channel setup message and last_rx_msg is empty -> + The host seems to be able to send over the UART, at least the CAIF ldisc get + notified that sending is completed. + +- last_tx_msg contains enumeration message and last_rx_msg is empty -> + The host is not able to send the message from UART, the tty has not been + able to complete the transmit operation. + +- if /sys/kernel/debug/caif_serial//tty_status is non-zero there + might be problems transmitting over UART. + + E.g. host and modem wiring is not correct you will typically see + tty_status = 0x10 (hw_stopped) and ser_state = 0x10 (FLOW_OFF_SENT). + + You will probably see the enumeration message in last_tx_message + and empty last_rx_message. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/ethernet/amd/pds_core.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/ethernet/amd/pds_core.rst index 4a866d8b9..9e8a16c44 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/ethernet/amd/pds_core.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/ethernet/amd/pds_core.rst @@ -1,139 +1,139 @@ -.. SPDX-License-Identifier: GPL-2.0+ - -======================================================== -Linux Driver for the AMD/Pensando(R) DSC adapter family -======================================================== - -Copyright(c) 2023 Advanced Micro Devices, Inc - -Identifying the Adapter -======================= - -To find if one or more AMD/Pensando PCI Core devices are installed on the -host, check for the PCI devices:: - - # lspci -d 1dd8:100c - b5:00.0 Processing accelerators: Pensando Systems Device 100c - b6:00.0 Processing accelerators: Pensando Systems Device 100c - -If such devices are listed as above, then the pds_core.ko driver should find -and configure them for use. There should be log entries in the kernel -messages such as these:: - - $ dmesg | grep pds_core - pds_core 0000:b5:00.0: 252.048 Gb/s available PCIe bandwidth (16.0 GT/s PCIe x16 link) - pds_core 0000:b5:00.0: FW: 1.60.0-73 - pds_core 0000:b6:00.0: 252.048 Gb/s available PCIe bandwidth (16.0 GT/s PCIe x16 link) - pds_core 0000:b6:00.0: FW: 1.60.0-73 - -Driver and firmware version information can be gathered with devlink:: - - $ devlink dev info pci/0000:b5:00.0 - pci/0000:b5:00.0: - driver pds_core - serial_number FLM18420073 - versions: - fixed: - asic.id 0x0 - asic.rev 0x0 - running: - fw 1.51.0-73 - stored: - fw.goldfw 1.15.9-C-22 - fw.mainfwa 1.60.0-73 - fw.mainfwb 1.60.0-57 - -Info versions -============= - -The ``pds_core`` driver reports the following versions - -.. list-table:: devlink info versions implemented - :widths: 5 5 90 - - * - Name - - Type - - Description - * - ``fw`` - - running - - Version of firmware running on the device - * - ``fw.goldfw`` - - stored - - Version of firmware stored in the goldfw slot - * - ``fw.mainfwa`` - - stored - - Version of firmware stored in the mainfwa slot - * - ``fw.mainfwb`` - - stored - - Version of firmware stored in the mainfwb slot - * - ``asic.id`` - - fixed - - The ASIC type for this device - * - ``asic.rev`` - - fixed - - The revision of the ASIC for this device - -Parameters -========== - -The ``pds_core`` driver implements the following generic -parameters for controlling the functionality to be made available -as auxiliary_bus devices. - -.. list-table:: Generic parameters implemented - :widths: 5 5 8 82 - - * - Name - - Mode - - Type - - Description - * - ``enable_vnet`` - - runtime - - Boolean - - Enables vDPA functionality through an auxiliary_bus device - -Firmware Management -=================== - -The ``flash`` command can update a the DSC firmware. The downloaded firmware -will be saved into either of firmware bank 1 or bank 2, whichever is not -currently in use, and that bank will used for the next boot:: - - # devlink dev flash pci/0000:b5:00.0 \ - file pensando/dsc_fw_1.63.0-22.tar - -Health Reporters -================ - -The driver supports a devlink health reporter for FW status:: - - # devlink health show pci/0000:2b:00.0 reporter fw - pci/0000:2b:00.0: - reporter fw - state healthy error 0 recover 0 - # devlink health diagnose pci/0000:2b:00.0 reporter fw - Status: healthy State: 1 Generation: 0 Recoveries: 0 - -Enabling the driver -=================== - -The driver is enabled via the standard kernel configuration system, -using the make command:: - - make oldconfig/menuconfig/etc. - -The driver is located in the menu structure at: - - -> Device Drivers - -> Network device support (NETDEVICES [=y]) - -> Ethernet driver support - -> AMD devices - -> AMD/Pensando Ethernet PDS_CORE Support - -Support -======= - -For general Linux networking support, please use the netdev mailing -list, which is monitored by AMD/Pensando personnel:: - - netdev@vger.kernel.org +.. SPDX-License-Identifier: GPL-2.0+ + +======================================================== +Linux Driver for the AMD/Pensando(R) DSC adapter family +======================================================== + +Copyright(c) 2023 Advanced Micro Devices, Inc + +Identifying the Adapter +======================= + +To find if one or more AMD/Pensando PCI Core devices are installed on the +host, check for the PCI devices:: + + # lspci -d 1dd8:100c + b5:00.0 Processing accelerators: Pensando Systems Device 100c + b6:00.0 Processing accelerators: Pensando Systems Device 100c + +If such devices are listed as above, then the pds_core.ko driver should find +and configure them for use. There should be log entries in the kernel +messages such as these:: + + $ dmesg | grep pds_core + pds_core 0000:b5:00.0: 252.048 Gb/s available PCIe bandwidth (16.0 GT/s PCIe x16 link) + pds_core 0000:b5:00.0: FW: 1.60.0-73 + pds_core 0000:b6:00.0: 252.048 Gb/s available PCIe bandwidth (16.0 GT/s PCIe x16 link) + pds_core 0000:b6:00.0: FW: 1.60.0-73 + +Driver and firmware version information can be gathered with devlink:: + + $ devlink dev info pci/0000:b5:00.0 + pci/0000:b5:00.0: + driver pds_core + serial_number FLM18420073 + versions: + fixed: + asic.id 0x0 + asic.rev 0x0 + running: + fw 1.51.0-73 + stored: + fw.goldfw 1.15.9-C-22 + fw.mainfwa 1.60.0-73 + fw.mainfwb 1.60.0-57 + +Info versions +============= + +The ``pds_core`` driver reports the following versions + +.. list-table:: devlink info versions implemented + :widths: 5 5 90 + + * - Name + - Type + - Description + * - ``fw`` + - running + - Version of firmware running on the device + * - ``fw.goldfw`` + - stored + - Version of firmware stored in the goldfw slot + * - ``fw.mainfwa`` + - stored + - Version of firmware stored in the mainfwa slot + * - ``fw.mainfwb`` + - stored + - Version of firmware stored in the mainfwb slot + * - ``asic.id`` + - fixed + - The ASIC type for this device + * - ``asic.rev`` + - fixed + - The revision of the ASIC for this device + +Parameters +========== + +The ``pds_core`` driver implements the following generic +parameters for controlling the functionality to be made available +as auxiliary_bus devices. + +.. list-table:: Generic parameters implemented + :widths: 5 5 8 82 + + * - Name + - Mode + - Type + - Description + * - ``enable_vnet`` + - runtime + - Boolean + - Enables vDPA functionality through an auxiliary_bus device + +Firmware Management +=================== + +The ``flash`` command can update a the DSC firmware. The downloaded firmware +will be saved into either of firmware bank 1 or bank 2, whichever is not +currently in use, and that bank will used for the next boot:: + + # devlink dev flash pci/0000:b5:00.0 \ + file pensando/dsc_fw_1.63.0-22.tar + +Health Reporters +================ + +The driver supports a devlink health reporter for FW status:: + + # devlink health show pci/0000:2b:00.0 reporter fw + pci/0000:2b:00.0: + reporter fw + state healthy error 0 recover 0 + # devlink health diagnose pci/0000:2b:00.0 reporter fw + Status: healthy State: 1 Generation: 0 Recoveries: 0 + +Enabling the driver +=================== + +The driver is enabled via the standard kernel configuration system, +using the make command:: + + make oldconfig/menuconfig/etc. + +The driver is located in the menu structure at: + + -> Device Drivers + -> Network device support (NETDEVICES [=y]) + -> Ethernet driver support + -> AMD devices + -> AMD/Pensando Ethernet PDS_CORE Support + +Support +======= + +For general Linux networking support, please use the netdev mailing +list, which is monitored by AMD/Pensando personnel:: + + netdev@vger.kernel.org diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/ethernet/huawei/hinic.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/ethernet/huawei/hinic.rst index b9b03b10d..867ac8f4e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/ethernet/huawei/hinic.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/ethernet/huawei/hinic.rst @@ -1,128 +1,128 @@ -.. SPDX-License-Identifier: GPL-2.0 - -============================================================ -Linux Kernel Driver for Huawei Intelligent NIC(HiNIC) family -============================================================ - -Overview: -========= -HiNIC is a network interface card for the Data Center Area. - -The driver supports a range of link-speed devices (10GbE, 25GbE, 40GbE, etc.). -The driver supports also a negotiated and extendable feature set. - -Some HiNIC devices support SR-IOV. This driver is used for Physical Function -(PF). - -HiNIC devices support MSI-X interrupt vector for each Tx/Rx queue and -adaptive interrupt moderation. - -HiNIC devices support also various offload features such as checksum offload, -TCP Transmit Segmentation Offload(TSO), Receive-Side Scaling(RSS) and -LRO(Large Receive Offload). - - -Supported PCI vendor ID/device IDs: -=================================== - -19e5:1822 - HiNIC PF - - -Driver Architecture and Source Code: -==================================== - -hinic_dev - Implement a Logical Network device that is independent from -specific HW details about HW data structure formats. - -hinic_hwdev - Implement the HW details of the device and include the components -for accessing the PCI NIC. - -hinic_hwdev contains the following components: -=============================================== - -HW Interface: -============= - -The interface for accessing the pci device (DMA memory and PCI BARs). -(hinic_hw_if.c, hinic_hw_if.h) - -Configuration Status Registers Area that describes the HW Registers on the -configuration and status BAR0. (hinic_hw_csr.h) - -MGMT components: -================ - -Asynchronous Event Queues(AEQs) - The event queues for receiving messages from -the MGMT modules on the cards. (hinic_hw_eqs.c, hinic_hw_eqs.h) - -Application Programmable Interface commands(API CMD) - Interface for sending -MGMT commands to the card. (hinic_hw_api_cmd.c, hinic_hw_api_cmd.h) - -Management (MGMT) - the PF to MGMT channel that uses API CMD for sending MGMT -commands to the card and receives notifications from the MGMT modules on the -card by AEQs. Also set the addresses of the IO CMDQs in HW. -(hinic_hw_mgmt.c, hinic_hw_mgmt.h) - -IO components: -============== - -Completion Event Queues(CEQs) - The completion Event Queues that describe IO -tasks that are finished. (hinic_hw_eqs.c, hinic_hw_eqs.h) - -Work Queues(WQ) - Contain the memory and operations for use by CMD queues and -the Queue Pairs. The WQ is a Memory Block in a Page. The Block contains -pointers to Memory Areas that are the Memory for the Work Queue Elements(WQEs). -(hinic_hw_wq.c, hinic_hw_wq.h) - -Command Queues(CMDQ) - The queues for sending commands for IO management and is -used to set the QPs addresses in HW. The commands completion events are -accumulated on the CEQ that is configured to receive the CMDQ completion events. -(hinic_hw_cmdq.c, hinic_hw_cmdq.h) - -Queue Pairs(QPs) - The HW Receive and Send queues for Receiving and Transmitting -Data. (hinic_hw_qp.c, hinic_hw_qp.h, hinic_hw_qp_ctxt.h) - -IO - de/constructs all the IO components. (hinic_hw_io.c, hinic_hw_io.h) - -HW device: -========== - -HW device - de/constructs the HW Interface, the MGMT components on the -initialization of the driver and the IO components on the case of Interface -UP/DOWN Events. (hinic_hw_dev.c, hinic_hw_dev.h) - - -hinic_dev contains the following components: -=============================================== - -PCI ID table - Contains the supported PCI Vendor/Device IDs. -(hinic_pci_tbl.h) - -Port Commands - Send commands to the HW device for port management -(MAC, Vlan, MTU, ...). (hinic_port.c, hinic_port.h) - -Tx Queues - Logical Tx Queues that use the HW Send Queues for transmit. -The Logical Tx queue is not dependent on the format of the HW Send Queue. -(hinic_tx.c, hinic_tx.h) - -Rx Queues - Logical Rx Queues that use the HW Receive Queues for receive. -The Logical Rx queue is not dependent on the format of the HW Receive Queue. -(hinic_rx.c, hinic_rx.h) - -hinic_dev - de/constructs the Logical Tx and Rx Queues. -(hinic_main.c, hinic_dev.h) - - -Miscellaneous -============= - -Common functions that are used by HW and Logical Device. -(hinic_common.c, hinic_common.h) - - -Support -======= - -If an issue is identified with the released source code on the supported kernel -with a supported adapter, email the specific information related to the issue to -aviad.krawczyk@huawei.com. +.. SPDX-License-Identifier: GPL-2.0 + +============================================================ +Linux Kernel Driver for Huawei Intelligent NIC(HiNIC) family +============================================================ + +Overview: +========= +HiNIC is a network interface card for the Data Center Area. + +The driver supports a range of link-speed devices (10GbE, 25GbE, 40GbE, etc.). +The driver supports also a negotiated and extendable feature set. + +Some HiNIC devices support SR-IOV. This driver is used for Physical Function +(PF). + +HiNIC devices support MSI-X interrupt vector for each Tx/Rx queue and +adaptive interrupt moderation. + +HiNIC devices support also various offload features such as checksum offload, +TCP Transmit Segmentation Offload(TSO), Receive-Side Scaling(RSS) and +LRO(Large Receive Offload). + + +Supported PCI vendor ID/device IDs: +=================================== + +19e5:1822 - HiNIC PF + + +Driver Architecture and Source Code: +==================================== + +hinic_dev - Implement a Logical Network device that is independent from +specific HW details about HW data structure formats. + +hinic_hwdev - Implement the HW details of the device and include the components +for accessing the PCI NIC. + +hinic_hwdev contains the following components: +=============================================== + +HW Interface: +============= + +The interface for accessing the pci device (DMA memory and PCI BARs). +(hinic_hw_if.c, hinic_hw_if.h) + +Configuration Status Registers Area that describes the HW Registers on the +configuration and status BAR0. (hinic_hw_csr.h) + +MGMT components: +================ + +Asynchronous Event Queues(AEQs) - The event queues for receiving messages from +the MGMT modules on the cards. (hinic_hw_eqs.c, hinic_hw_eqs.h) + +Application Programmable Interface commands(API CMD) - Interface for sending +MGMT commands to the card. (hinic_hw_api_cmd.c, hinic_hw_api_cmd.h) + +Management (MGMT) - the PF to MGMT channel that uses API CMD for sending MGMT +commands to the card and receives notifications from the MGMT modules on the +card by AEQs. Also set the addresses of the IO CMDQs in HW. +(hinic_hw_mgmt.c, hinic_hw_mgmt.h) + +IO components: +============== + +Completion Event Queues(CEQs) - The completion Event Queues that describe IO +tasks that are finished. (hinic_hw_eqs.c, hinic_hw_eqs.h) + +Work Queues(WQ) - Contain the memory and operations for use by CMD queues and +the Queue Pairs. The WQ is a Memory Block in a Page. The Block contains +pointers to Memory Areas that are the Memory for the Work Queue Elements(WQEs). +(hinic_hw_wq.c, hinic_hw_wq.h) + +Command Queues(CMDQ) - The queues for sending commands for IO management and is +used to set the QPs addresses in HW. The commands completion events are +accumulated on the CEQ that is configured to receive the CMDQ completion events. +(hinic_hw_cmdq.c, hinic_hw_cmdq.h) + +Queue Pairs(QPs) - The HW Receive and Send queues for Receiving and Transmitting +Data. (hinic_hw_qp.c, hinic_hw_qp.h, hinic_hw_qp_ctxt.h) + +IO - de/constructs all the IO components. (hinic_hw_io.c, hinic_hw_io.h) + +HW device: +========== + +HW device - de/constructs the HW Interface, the MGMT components on the +initialization of the driver and the IO components on the case of Interface +UP/DOWN Events. (hinic_hw_dev.c, hinic_hw_dev.h) + + +hinic_dev contains the following components: +=============================================== + +PCI ID table - Contains the supported PCI Vendor/Device IDs. +(hinic_pci_tbl.h) + +Port Commands - Send commands to the HW device for port management +(MAC, Vlan, MTU, ...). (hinic_port.c, hinic_port.h) + +Tx Queues - Logical Tx Queues that use the HW Send Queues for transmit. +The Logical Tx queue is not dependent on the format of the HW Send Queue. +(hinic_tx.c, hinic_tx.h) + +Rx Queues - Logical Rx Queues that use the HW Receive Queues for receive. +The Logical Rx queue is not dependent on the format of the HW Receive Queue. +(hinic_rx.c, hinic_rx.h) + +hinic_dev - de/constructs the Logical Tx and Rx Queues. +(hinic_main.c, hinic_dev.h) + + +Miscellaneous +============= + +Common functions that are used by HW and Logical Device. +(hinic_common.c, hinic_common.h) + + +Support +======= + +If an issue is identified with the released source code on the supported kernel +with a supported adapter, email the specific information related to the issue to +aviad.krawczyk@huawei.com. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/ethernet/ti/am65_nuss_cpsw_switchdev.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/ethernet/ti/am65_nuss_cpsw_switchdev.rst index a1b0a39a7..25fd9aa28 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/ethernet/ti/am65_nuss_cpsw_switchdev.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/ethernet/ti/am65_nuss_cpsw_switchdev.rst @@ -1,143 +1,143 @@ -.. SPDX-License-Identifier: GPL-2.0 - -=================================================================== -Texas Instruments K3 AM65 CPSW NUSS switchdev based ethernet driver -=================================================================== - -:Version: 1.0 - -Port renaming -============= - -In order to rename via udev:: - - ip -d link show dev sw0p1 | grep switchid - - SUBSYSTEM=="net", ACTION=="add", ATTR{phys_switch_id}==, \ - ATTR{phys_port_name}!="", NAME="sw0$attr{phys_port_name}" - - -Multi mac mode -============== - -- The driver is operating in multi-mac mode by default, thus - working as N individual network interfaces. - -Devlink configuration parameters -================================ - -See Documentation/networking/devlink/am65-nuss-cpsw-switch.rst - -Enabling "switch" -================= - -The Switch mode can be enabled by configuring devlink driver parameter -"switch_mode" to 1/true:: - - devlink dev param set platform/c000000.ethernet \ - name switch_mode value true cmode runtime - -This can be done regardless of the state of Port's netdev devices - UP/DOWN, but -Port's netdev devices have to be in UP before joining to the bridge to avoid -overwriting of bridge configuration as CPSW switch driver completely reloads its -configuration when first port changes its state to UP. - -When the both interfaces joined the bridge - CPSW switch driver will enable -marking packets with offload_fwd_mark flag. - -All configuration is implemented via switchdev API. - -Bridge setup -============ - -:: - - devlink dev param set platform/c000000.ethernet \ - name switch_mode value true cmode runtime - - ip link add name br0 type bridge - ip link set dev br0 type bridge ageing_time 1000 - ip link set dev sw0p1 up - ip link set dev sw0p2 up - ip link set dev sw0p1 master br0 - ip link set dev sw0p2 master br0 - - [*] bridge vlan add dev br0 vid 1 pvid untagged self - - [*] if vlan_filtering=1. where default_pvid=1 - - Note. Steps [*] are mandatory. - - -On/off STP -========== - -:: - - ip link set dev BRDEV type bridge stp_state 1/0 - -VLAN configuration -================== - -:: - - bridge vlan add dev br0 vid 1 pvid untagged self <---- add cpu port to VLAN 1 - -Note. This step is mandatory for bridge/default_pvid. - -Add extra VLANs -=============== - - 1. untagged:: - - bridge vlan add dev sw0p1 vid 100 pvid untagged master - bridge vlan add dev sw0p2 vid 100 pvid untagged master - bridge vlan add dev br0 vid 100 pvid untagged self <---- Add cpu port to VLAN100 - - 2. tagged:: - - bridge vlan add dev sw0p1 vid 100 master - bridge vlan add dev sw0p2 vid 100 master - bridge vlan add dev br0 vid 100 pvid tagged self <---- Add cpu port to VLAN100 - -FDBs ----- - -FDBs are automatically added on the appropriate switch port upon detection - -Manually adding FDBs:: - - bridge fdb add aa:bb:cc:dd:ee:ff dev sw0p1 master vlan 100 - bridge fdb add aa:bb:cc:dd:ee:fe dev sw0p2 master <---- Add on all VLANs - -MDBs ----- - -MDBs are automatically added on the appropriate switch port upon detection - -Manually adding MDBs:: - - bridge mdb add dev br0 port sw0p1 grp 239.1.1.1 permanent vid 100 - bridge mdb add dev br0 port sw0p1 grp 239.1.1.1 permanent <---- Add on all VLANs - -Multicast flooding -================== -CPU port mcast_flooding is always on - -Turning flooding on/off on switch ports: -bridge link set dev sw0p1 mcast_flood on/off - -Access and Trunk port -===================== - -:: - - bridge vlan add dev sw0p1 vid 100 pvid untagged master - bridge vlan add dev sw0p2 vid 100 master - - - bridge vlan add dev br0 vid 100 self - ip link add link br0 name br0.100 type vlan id 100 - -Note. Setting PVID on Bridge device itself works only for -default VLAN (default_pvid). +.. SPDX-License-Identifier: GPL-2.0 + +=================================================================== +Texas Instruments K3 AM65 CPSW NUSS switchdev based ethernet driver +=================================================================== + +:Version: 1.0 + +Port renaming +============= + +In order to rename via udev:: + + ip -d link show dev sw0p1 | grep switchid + + SUBSYSTEM=="net", ACTION=="add", ATTR{phys_switch_id}==, \ + ATTR{phys_port_name}!="", NAME="sw0$attr{phys_port_name}" + + +Multi mac mode +============== + +- The driver is operating in multi-mac mode by default, thus + working as N individual network interfaces. + +Devlink configuration parameters +================================ + +See Documentation/networking/devlink/am65-nuss-cpsw-switch.rst + +Enabling "switch" +================= + +The Switch mode can be enabled by configuring devlink driver parameter +"switch_mode" to 1/true:: + + devlink dev param set platform/c000000.ethernet \ + name switch_mode value true cmode runtime + +This can be done regardless of the state of Port's netdev devices - UP/DOWN, but +Port's netdev devices have to be in UP before joining to the bridge to avoid +overwriting of bridge configuration as CPSW switch driver completely reloads its +configuration when first port changes its state to UP. + +When the both interfaces joined the bridge - CPSW switch driver will enable +marking packets with offload_fwd_mark flag. + +All configuration is implemented via switchdev API. + +Bridge setup +============ + +:: + + devlink dev param set platform/c000000.ethernet \ + name switch_mode value true cmode runtime + + ip link add name br0 type bridge + ip link set dev br0 type bridge ageing_time 1000 + ip link set dev sw0p1 up + ip link set dev sw0p2 up + ip link set dev sw0p1 master br0 + ip link set dev sw0p2 master br0 + + [*] bridge vlan add dev br0 vid 1 pvid untagged self + + [*] if vlan_filtering=1. where default_pvid=1 + + Note. Steps [*] are mandatory. + + +On/off STP +========== + +:: + + ip link set dev BRDEV type bridge stp_state 1/0 + +VLAN configuration +================== + +:: + + bridge vlan add dev br0 vid 1 pvid untagged self <---- add cpu port to VLAN 1 + +Note. This step is mandatory for bridge/default_pvid. + +Add extra VLANs +=============== + + 1. untagged:: + + bridge vlan add dev sw0p1 vid 100 pvid untagged master + bridge vlan add dev sw0p2 vid 100 pvid untagged master + bridge vlan add dev br0 vid 100 pvid untagged self <---- Add cpu port to VLAN100 + + 2. tagged:: + + bridge vlan add dev sw0p1 vid 100 master + bridge vlan add dev sw0p2 vid 100 master + bridge vlan add dev br0 vid 100 pvid tagged self <---- Add cpu port to VLAN100 + +FDBs +---- + +FDBs are automatically added on the appropriate switch port upon detection + +Manually adding FDBs:: + + bridge fdb add aa:bb:cc:dd:ee:ff dev sw0p1 master vlan 100 + bridge fdb add aa:bb:cc:dd:ee:fe dev sw0p2 master <---- Add on all VLANs + +MDBs +---- + +MDBs are automatically added on the appropriate switch port upon detection + +Manually adding MDBs:: + + bridge mdb add dev br0 port sw0p1 grp 239.1.1.1 permanent vid 100 + bridge mdb add dev br0 port sw0p1 grp 239.1.1.1 permanent <---- Add on all VLANs + +Multicast flooding +================== +CPU port mcast_flooding is always on + +Turning flooding on/off on switch ports: +bridge link set dev sw0p1 mcast_flood on/off + +Access and Trunk port +===================== + +:: + + bridge vlan add dev sw0p1 vid 100 pvid untagged master + bridge vlan add dev sw0p2 vid 100 master + + + bridge vlan add dev br0 vid 100 self + ip link add link br0 name br0.100 type vlan id 100 + +Note. Setting PVID on Bridge device itself works only for +default VLAN (default_pvid). diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/ethernet/ti/tlan.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/ethernet/ti/tlan.rst index 82a2014f4..4fdc0907f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/ethernet/ti/tlan.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/ethernet/ti/tlan.rst @@ -1,140 +1,140 @@ -.. SPDX-License-Identifier: GPL-2.0 - -===================== -TLAN driver for Linux -===================== - -:Version: 1.14a - -(C) 1997-1998 Caldera, Inc. - -(C) 1998 James Banks - -(C) 1999-2001 Torben Mathiasen - -For driver information/updates visit http://www.compaq.com - - - - - -I. Supported Devices -==================== - - Only PCI devices will work with this driver. - - Supported: - - ========= ========= =========================================== - Vendor ID Device ID Name - ========= ========= =========================================== - 0e11 ae32 Compaq Netelligent 10/100 TX PCI UTP - 0e11 ae34 Compaq Netelligent 10 T PCI UTP - 0e11 ae35 Compaq Integrated NetFlex 3/P - 0e11 ae40 Compaq Netelligent Dual 10/100 TX PCI UTP - 0e11 ae43 Compaq Netelligent Integrated 10/100 TX UTP - 0e11 b011 Compaq Netelligent 10/100 TX Embedded UTP - 0e11 b012 Compaq Netelligent 10 T/2 PCI UTP/Coax - 0e11 b030 Compaq Netelligent 10/100 TX UTP - 0e11 f130 Compaq NetFlex 3/P - 0e11 f150 Compaq NetFlex 3/P - 108d 0012 Olicom OC-2325 - 108d 0013 Olicom OC-2183 - 108d 0014 Olicom OC-2326 - ========= ========= =========================================== - - - Caveats: - - I am not sure if 100BaseTX daughterboards (for those cards which - support such things) will work. I haven't had any solid evidence - either way. - - However, if a card supports 100BaseTx without requiring an add - on daughterboard, it should work with 100BaseTx. - - The "Netelligent 10 T/2 PCI UTP/Coax" (b012) device is untested, - but I do not expect any problems. - - -II. Driver Options -================== - - 1. You can append debug=x to the end of the insmod line to get - debug messages, where x is a bit field where the bits mean - the following: - - ==== ===================================== - 0x01 Turn on general debugging messages. - 0x02 Turn on receive debugging messages. - 0x04 Turn on transmit debugging messages. - 0x08 Turn on list debugging messages. - ==== ===================================== - - 2. You can append aui=1 to the end of the insmod line to cause - the adapter to use the AUI interface instead of the 10 Base T - interface. This is also what to do if you want to use the BNC - connector on a TLAN based device. (Setting this option on a - device that does not have an AUI/BNC connector will probably - cause it to not function correctly.) - - 3. You can set duplex=1 to force half duplex, and duplex=2 to - force full duplex. - - 4. You can set speed=10 to force 10Mbs operation, and speed=100 - to force 100Mbs operation. (I'm not sure what will happen - if a card which only supports 10Mbs is forced into 100Mbs - mode.) - - 5. You have to use speed=X duplex=Y together now. If you just - do "insmod tlan.o speed=100" the driver will do Auto-Neg. - To force a 10Mbps Half-Duplex link do "insmod tlan.o speed=10 - duplex=1". - - 6. If the driver is built into the kernel, you can use the 3rd - and 4th parameters to set aui and debug respectively. For - example:: - - ether=0,0,0x1,0x7,eth0 - - This sets aui to 0x1 and debug to 0x7, assuming eth0 is a - supported TLAN device. - - The bits in the third byte are assigned as follows: - - ==== =============== - 0x01 aui - 0x02 use half duplex - 0x04 use full duplex - 0x08 use 10BaseT - 0x10 use 100BaseTx - ==== =============== - - You also need to set both speed and duplex settings when forcing - speeds with kernel-parameters. - ether=0,0,0x12,0,eth0 will force link to 100Mbps Half-Duplex. - - 7. If you have more than one tlan adapter in your system, you can - use the above options on a per adapter basis. To force a 100Mbit/HD - link with your eth1 adapter use:: - - insmod tlan speed=0,100 duplex=0,1 - - Now eth0 will use auto-neg and eth1 will be forced to 100Mbit/HD. - Note that the tlan driver supports a maximum of 8 adapters. - - -III. Things to try if you have problems -======================================= - - 1. Make sure your card's PCI id is among those listed in - section I, above. - 2. Make sure routing is correct. - 3. Try forcing different speed/duplex settings - - -There is also a tlan mailing list which you can join by sending "subscribe tlan" -in the body of an email to majordomo@vuser.vu.union.edu. - -There is also a tlan website at http://www.compaq.com - +.. SPDX-License-Identifier: GPL-2.0 + +===================== +TLAN driver for Linux +===================== + +:Version: 1.14a + +(C) 1997-1998 Caldera, Inc. + +(C) 1998 James Banks + +(C) 1999-2001 Torben Mathiasen + +For driver information/updates visit http://www.compaq.com + + + + + +I. Supported Devices +==================== + + Only PCI devices will work with this driver. + + Supported: + + ========= ========= =========================================== + Vendor ID Device ID Name + ========= ========= =========================================== + 0e11 ae32 Compaq Netelligent 10/100 TX PCI UTP + 0e11 ae34 Compaq Netelligent 10 T PCI UTP + 0e11 ae35 Compaq Integrated NetFlex 3/P + 0e11 ae40 Compaq Netelligent Dual 10/100 TX PCI UTP + 0e11 ae43 Compaq Netelligent Integrated 10/100 TX UTP + 0e11 b011 Compaq Netelligent 10/100 TX Embedded UTP + 0e11 b012 Compaq Netelligent 10 T/2 PCI UTP/Coax + 0e11 b030 Compaq Netelligent 10/100 TX UTP + 0e11 f130 Compaq NetFlex 3/P + 0e11 f150 Compaq NetFlex 3/P + 108d 0012 Olicom OC-2325 + 108d 0013 Olicom OC-2183 + 108d 0014 Olicom OC-2326 + ========= ========= =========================================== + + + Caveats: + + I am not sure if 100BaseTX daughterboards (for those cards which + support such things) will work. I haven't had any solid evidence + either way. + + However, if a card supports 100BaseTx without requiring an add + on daughterboard, it should work with 100BaseTx. + + The "Netelligent 10 T/2 PCI UTP/Coax" (b012) device is untested, + but I do not expect any problems. + + +II. Driver Options +================== + + 1. You can append debug=x to the end of the insmod line to get + debug messages, where x is a bit field where the bits mean + the following: + + ==== ===================================== + 0x01 Turn on general debugging messages. + 0x02 Turn on receive debugging messages. + 0x04 Turn on transmit debugging messages. + 0x08 Turn on list debugging messages. + ==== ===================================== + + 2. You can append aui=1 to the end of the insmod line to cause + the adapter to use the AUI interface instead of the 10 Base T + interface. This is also what to do if you want to use the BNC + connector on a TLAN based device. (Setting this option on a + device that does not have an AUI/BNC connector will probably + cause it to not function correctly.) + + 3. You can set duplex=1 to force half duplex, and duplex=2 to + force full duplex. + + 4. You can set speed=10 to force 10Mbs operation, and speed=100 + to force 100Mbs operation. (I'm not sure what will happen + if a card which only supports 10Mbs is forced into 100Mbs + mode.) + + 5. You have to use speed=X duplex=Y together now. If you just + do "insmod tlan.o speed=100" the driver will do Auto-Neg. + To force a 10Mbps Half-Duplex link do "insmod tlan.o speed=10 + duplex=1". + + 6. If the driver is built into the kernel, you can use the 3rd + and 4th parameters to set aui and debug respectively. For + example:: + + ether=0,0,0x1,0x7,eth0 + + This sets aui to 0x1 and debug to 0x7, assuming eth0 is a + supported TLAN device. + + The bits in the third byte are assigned as follows: + + ==== =============== + 0x01 aui + 0x02 use half duplex + 0x04 use full duplex + 0x08 use 10BaseT + 0x10 use 100BaseTx + ==== =============== + + You also need to set both speed and duplex settings when forcing + speeds with kernel-parameters. + ether=0,0,0x12,0,eth0 will force link to 100Mbps Half-Duplex. + + 7. If you have more than one tlan adapter in your system, you can + use the above options on a per adapter basis. To force a 100Mbit/HD + link with your eth1 adapter use:: + + insmod tlan speed=0,100 duplex=0,1 + + Now eth0 will use auto-neg and eth1 will be forced to 100Mbit/HD. + Note that the tlan driver supports a maximum of 8 adapters. + + +III. Things to try if you have problems +======================================= + + 1. Make sure your card's PCI id is among those listed in + section I, above. + 2. Make sure routing is correct. + 3. Try forcing different speed/duplex settings + + +There is also a tlan mailing list which you can join by sending "subscribe tlan" +in the body of an email to majordomo@vuser.vu.union.edu. + +There is also a tlan website at http://www.compaq.com + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/wwan/iosm.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/wwan/iosm.rst index 9098e0355..6f9e955af 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/wwan/iosm.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/device_drivers/wwan/iosm.rst @@ -1,96 +1,96 @@ -.. SPDX-License-Identifier: GPL-2.0-only - -.. Copyright (C) 2020-21 Intel Corporation - -.. _iosm_driver_doc: - -=========================================== -IOSM Driver for Intel M.2 PCIe based Modems -=========================================== -The IOSM (IPC over Shared Memory) driver is a WWAN PCIe host driver developed -for linux or chrome platform for data exchange over PCIe interface between -Host platform & Intel M.2 Modem. The driver exposes interface conforming to the -MBIM protocol [1]. Any front end application ( eg: Modem Manager) could easily -manage the MBIM interface to enable data communication towards WWAN. - -Basic usage -=========== -MBIM functions are inactive when unmanaged. The IOSM driver only provides a -userspace interface MBIM "WWAN PORT" representing MBIM control channel and does -not play any role in managing the functionality. It is the job of a userspace -application to detect port enumeration and enable MBIM functionality. - -Examples of few such userspace application are: -- mbimcli (included with the libmbim [2] library), and -- Modem Manager [3] - -Management Applications to carry out below required actions for establishing -MBIM IP session: -- open the MBIM control channel -- configure network connection settings -- connect to network -- configure IP network interface - -Management application development -================================== -The driver and userspace interfaces are described below. The MBIM protocol is -described in [1] Mobile Broadband Interface Model v1.0 Errata-1. - -MBIM control channel userspace ABI ----------------------------------- - -/dev/wwan0mbim0 character device -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The driver exposes an MBIM interface to the MBIM function by implementing -MBIM WWAN Port. The userspace end of the control channel pipe is a -/dev/wwan0mbim0 character device. Application shall use this interface for -MBIM protocol communication. - -Fragmentation -~~~~~~~~~~~~~ -The userspace application is responsible for all control message fragmentation -and defragmentation as per MBIM specification. - -/dev/wwan0mbim0 write() -~~~~~~~~~~~~~~~~~~~~~~~ -The MBIM control messages from the management application must not exceed the -negotiated control message size. - -/dev/wwan0mbim0 read() -~~~~~~~~~~~~~~~~~~~~~~ -The management application must accept control messages of up the negotiated -control message size. - -MBIM data channel userspace ABI -------------------------------- - -wwan0-X network device -~~~~~~~~~~~~~~~~~~~~~~ -The IOSM driver exposes IP link interface "wwan0-X" of type "wwan" for IP -traffic. Iproute network utility is used for creating "wwan0-X" network -interface and for associating it with MBIM IP session. The Driver supports -up to 8 IP sessions for simultaneous IP communication. - -The userspace management application is responsible for creating new IP link -prior to establishing MBIM IP session where the SessionId is greater than 0. - -For example, creating new IP link for a MBIM IP session with SessionId 1: - - ip link add dev wwan0-1 parentdev-name wwan0 type wwan linkid 1 - -The driver will automatically map the "wwan0-1" network device to MBIM IP -session 1. - -References -========== -[1] "MBIM (Mobile Broadband Interface Model) Errata-1" - - https://www.usb.org/document-library/ - -[2] libmbim - "a glib-based library for talking to WWAN modems and - devices which speak the Mobile Interface Broadband Model (MBIM) - protocol" - - http://www.freedesktop.org/wiki/Software/libmbim/ - -[3] Modem Manager - "a DBus-activated daemon which controls mobile - broadband (2G/3G/4G) devices and connections" - - http://www.freedesktop.org/wiki/Software/ModemManager/ +.. SPDX-License-Identifier: GPL-2.0-only + +.. Copyright (C) 2020-21 Intel Corporation + +.. _iosm_driver_doc: + +=========================================== +IOSM Driver for Intel M.2 PCIe based Modems +=========================================== +The IOSM (IPC over Shared Memory) driver is a WWAN PCIe host driver developed +for linux or chrome platform for data exchange over PCIe interface between +Host platform & Intel M.2 Modem. The driver exposes interface conforming to the +MBIM protocol [1]. Any front end application ( eg: Modem Manager) could easily +manage the MBIM interface to enable data communication towards WWAN. + +Basic usage +=========== +MBIM functions are inactive when unmanaged. The IOSM driver only provides a +userspace interface MBIM "WWAN PORT" representing MBIM control channel and does +not play any role in managing the functionality. It is the job of a userspace +application to detect port enumeration and enable MBIM functionality. + +Examples of few such userspace application are: +- mbimcli (included with the libmbim [2] library), and +- Modem Manager [3] + +Management Applications to carry out below required actions for establishing +MBIM IP session: +- open the MBIM control channel +- configure network connection settings +- connect to network +- configure IP network interface + +Management application development +================================== +The driver and userspace interfaces are described below. The MBIM protocol is +described in [1] Mobile Broadband Interface Model v1.0 Errata-1. + +MBIM control channel userspace ABI +---------------------------------- + +/dev/wwan0mbim0 character device +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +The driver exposes an MBIM interface to the MBIM function by implementing +MBIM WWAN Port. The userspace end of the control channel pipe is a +/dev/wwan0mbim0 character device. Application shall use this interface for +MBIM protocol communication. + +Fragmentation +~~~~~~~~~~~~~ +The userspace application is responsible for all control message fragmentation +and defragmentation as per MBIM specification. + +/dev/wwan0mbim0 write() +~~~~~~~~~~~~~~~~~~~~~~~ +The MBIM control messages from the management application must not exceed the +negotiated control message size. + +/dev/wwan0mbim0 read() +~~~~~~~~~~~~~~~~~~~~~~ +The management application must accept control messages of up the negotiated +control message size. + +MBIM data channel userspace ABI +------------------------------- + +wwan0-X network device +~~~~~~~~~~~~~~~~~~~~~~ +The IOSM driver exposes IP link interface "wwan0-X" of type "wwan" for IP +traffic. Iproute network utility is used for creating "wwan0-X" network +interface and for associating it with MBIM IP session. The Driver supports +up to 8 IP sessions for simultaneous IP communication. + +The userspace management application is responsible for creating new IP link +prior to establishing MBIM IP session where the SessionId is greater than 0. + +For example, creating new IP link for a MBIM IP session with SessionId 1: + + ip link add dev wwan0-1 parentdev-name wwan0 type wwan linkid 1 + +The driver will automatically map the "wwan0-1" network device to MBIM IP +session 1. + +References +========== +[1] "MBIM (Mobile Broadband Interface Model) Errata-1" + - https://www.usb.org/document-library/ + +[2] libmbim - "a glib-based library for talking to WWAN modems and + devices which speak the Mobile Interface Broadband Model (MBIM) + protocol" + - http://www.freedesktop.org/wiki/Software/libmbim/ + +[3] Modem Manager - "a DBus-activated daemon which controls mobile + broadband (2G/3G/4G) devices and connections" + - http://www.freedesktop.org/wiki/Software/ModemManager/ diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/devlink/devlink-region.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/devlink/devlink-region.rst index e1631346d..5d0b68f75 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/devlink/devlink-region.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/devlink/devlink-region.rst @@ -1,83 +1,83 @@ -.. SPDX-License-Identifier: GPL-2.0 - -============== -Devlink Region -============== - -``devlink`` regions enable access to driver defined address regions using -devlink. - -Each device can create and register its own supported address regions. The -region can then be accessed via the devlink region interface. - -Region snapshots are collected by the driver, and can be accessed via read -or dump commands. This allows future analysis on the created snapshots. -Regions may optionally support triggering snapshots on demand. - -Snapshot identifiers are scoped to the devlink instance, not a region. -All snapshots with the same snapshot id within a devlink instance -correspond to the same event. - -The major benefit to creating a region is to provide access to internal -address regions that are otherwise inaccessible to the user. - -Regions may also be used to provide an additional way to debug complex error -states, but see also Documentation/networking/devlink/devlink-health.rst - -Regions may optionally support capturing a snapshot on demand via the -``DEVLINK_CMD_REGION_NEW`` netlink message. A driver wishing to allow -requested snapshots must implement the ``.snapshot`` callback for the region -in its ``devlink_region_ops`` structure. If snapshot id is not set in -the ``DEVLINK_CMD_REGION_NEW`` request kernel will allocate one and send -the snapshot information to user space. - -Regions may optionally allow directly reading from their contents without a -snapshot. Direct read requests are not atomic. In particular a read request -of size 256 bytes or larger will be split into multiple chunks. If atomic -access is required, use a snapshot. A driver wishing to enable this for a -region should implement the ``.read`` callback in the ``devlink_region_ops`` -structure. User space can request a direct read by using the -``DEVLINK_ATTR_REGION_DIRECT`` attribute instead of specifying a snapshot -id. - -example usage -------------- - -.. code:: shell - - $ devlink region help - $ devlink region show [ DEV/REGION ] - $ devlink region del DEV/REGION snapshot SNAPSHOT_ID - $ devlink region dump DEV/REGION [ snapshot SNAPSHOT_ID ] - $ devlink region read DEV/REGION [ snapshot SNAPSHOT_ID ] address ADDRESS length LENGTH - - # Show all of the exposed regions with region sizes: - $ devlink region show - pci/0000:00:05.0/cr-space: size 1048576 snapshot [1 2] max 8 - pci/0000:00:05.0/fw-health: size 64 snapshot [1 2] max 8 - - # Delete a snapshot using: - $ devlink region del pci/0000:00:05.0/cr-space snapshot 1 - - # Request an immediate snapshot, if supported by the region - $ devlink region new pci/0000:00:05.0/cr-space - pci/0000:00:05.0/cr-space: snapshot 5 - - # Dump a snapshot: - $ devlink region dump pci/0000:00:05.0/fw-health snapshot 1 - 0000000000000000 0014 95dc 0014 9514 0035 1670 0034 db30 - 0000000000000010 0000 0000 ffff ff04 0029 8c00 0028 8cc8 - 0000000000000020 0016 0bb8 0016 1720 0000 0000 c00f 3ffc - 0000000000000030 bada cce5 bada cce5 bada cce5 bada cce5 - - # Read a specific part of a snapshot: - $ devlink region read pci/0000:00:05.0/fw-health snapshot 1 address 0 length 16 - 0000000000000000 0014 95dc 0014 9514 0035 1670 0034 db30 - - # Read from the region without a snapshot - $ devlink region read pci/0000:00:05.0/fw-health address 16 length 16 - 0000000000000010 0000 0000 ffff ff04 0029 8c00 0028 8cc8 - -As regions are likely very device or driver specific, no generic regions are -defined. See the driver-specific documentation files for information on the -specific regions a driver supports. +.. SPDX-License-Identifier: GPL-2.0 + +============== +Devlink Region +============== + +``devlink`` regions enable access to driver defined address regions using +devlink. + +Each device can create and register its own supported address regions. The +region can then be accessed via the devlink region interface. + +Region snapshots are collected by the driver, and can be accessed via read +or dump commands. This allows future analysis on the created snapshots. +Regions may optionally support triggering snapshots on demand. + +Snapshot identifiers are scoped to the devlink instance, not a region. +All snapshots with the same snapshot id within a devlink instance +correspond to the same event. + +The major benefit to creating a region is to provide access to internal +address regions that are otherwise inaccessible to the user. + +Regions may also be used to provide an additional way to debug complex error +states, but see also Documentation/networking/devlink/devlink-health.rst + +Regions may optionally support capturing a snapshot on demand via the +``DEVLINK_CMD_REGION_NEW`` netlink message. A driver wishing to allow +requested snapshots must implement the ``.snapshot`` callback for the region +in its ``devlink_region_ops`` structure. If snapshot id is not set in +the ``DEVLINK_CMD_REGION_NEW`` request kernel will allocate one and send +the snapshot information to user space. + +Regions may optionally allow directly reading from their contents without a +snapshot. Direct read requests are not atomic. In particular a read request +of size 256 bytes or larger will be split into multiple chunks. If atomic +access is required, use a snapshot. A driver wishing to enable this for a +region should implement the ``.read`` callback in the ``devlink_region_ops`` +structure. User space can request a direct read by using the +``DEVLINK_ATTR_REGION_DIRECT`` attribute instead of specifying a snapshot +id. + +example usage +------------- + +.. code:: shell + + $ devlink region help + $ devlink region show [ DEV/REGION ] + $ devlink region del DEV/REGION snapshot SNAPSHOT_ID + $ devlink region dump DEV/REGION [ snapshot SNAPSHOT_ID ] + $ devlink region read DEV/REGION [ snapshot SNAPSHOT_ID ] address ADDRESS length LENGTH + + # Show all of the exposed regions with region sizes: + $ devlink region show + pci/0000:00:05.0/cr-space: size 1048576 snapshot [1 2] max 8 + pci/0000:00:05.0/fw-health: size 64 snapshot [1 2] max 8 + + # Delete a snapshot using: + $ devlink region del pci/0000:00:05.0/cr-space snapshot 1 + + # Request an immediate snapshot, if supported by the region + $ devlink region new pci/0000:00:05.0/cr-space + pci/0000:00:05.0/cr-space: snapshot 5 + + # Dump a snapshot: + $ devlink region dump pci/0000:00:05.0/fw-health snapshot 1 + 0000000000000000 0014 95dc 0014 9514 0035 1670 0034 db30 + 0000000000000010 0000 0000 ffff ff04 0029 8c00 0028 8cc8 + 0000000000000020 0016 0bb8 0016 1720 0000 0000 c00f 3ffc + 0000000000000030 bada cce5 bada cce5 bada cce5 bada cce5 + + # Read a specific part of a snapshot: + $ devlink region read pci/0000:00:05.0/fw-health snapshot 1 address 0 length 16 + 0000000000000000 0014 95dc 0014 9514 0035 1670 0034 db30 + + # Read from the region without a snapshot + $ devlink region read pci/0000:00:05.0/fw-health address 16 length 16 + 0000000000000010 0000 0000 ffff ff04 0029 8c00 0028 8cc8 + +As regions are likely very device or driver specific, no generic regions are +defined. See the driver-specific documentation files for information on the +specific regions a driver supports. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/devlink/prestera.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/devlink/prestera.rst index b8fd141fb..96b1124e6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/devlink/prestera.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/devlink/prestera.rst @@ -1,141 +1,141 @@ -.. SPDX-License-Identifier: GPL-2.0 - -======================== -prestera devlink support -======================== - -This document describes the devlink features implemented by the ``prestera`` -device driver. - -Driver-specific Traps -===================== - -.. list-table:: List of Driver-specific Traps Registered by ``prestera`` - :widths: 5 5 90 - - * - Name - - Type - - Description -.. list-table:: List of Driver-specific Traps Registered by ``prestera`` - :widths: 5 5 90 - - * - Name - - Type - - Description - * - ``arp_bc`` - - ``trap`` - - Traps ARP broadcast packets (both requests/responses) - * - ``is_is`` - - ``trap`` - - Traps IS-IS packets - * - ``ospf`` - - ``trap`` - - Traps OSPF packets - * - ``ip_bc_mac`` - - ``trap`` - - Traps IPv4 packets with broadcast DA Mac address - * - ``stp`` - - ``trap`` - - Traps STP BPDU - * - ``lacp`` - - ``trap`` - - Traps LACP packets - * - ``lldp`` - - ``trap`` - - Traps LLDP packets - * - ``router_mc`` - - ``trap`` - - Traps multicast packets - * - ``vrrp`` - - ``trap`` - - Traps VRRP packets - * - ``dhcp`` - - ``trap`` - - Traps DHCP packets - * - ``mtu_error`` - - ``trap`` - - Traps (exception) packets that exceeded port's MTU - * - ``mac_to_me`` - - ``trap`` - - Traps packets with switch-port's DA Mac address - * - ``ttl_error`` - - ``trap`` - - Traps (exception) IPv4 packets whose TTL exceeded - * - ``ipv4_options`` - - ``trap`` - - Traps (exception) packets due to the malformed IPV4 header options - * - ``ip_default_route`` - - ``trap`` - - Traps packets that have no specific IP interface (IP to me) and no forwarding prefix - * - ``local_route`` - - ``trap`` - - Traps packets that have been send to one of switch IP interfaces addresses - * - ``ipv4_icmp_redirect`` - - ``trap`` - - Traps (exception) IPV4 ICMP redirect packets - * - ``arp_response`` - - ``trap`` - - Traps ARP replies packets that have switch-port's DA Mac address - * - ``acl_code_0`` - - ``trap`` - - Traps packets that have ACL priority set to 0 (tc pref 0) - * - ``acl_code_1`` - - ``trap`` - - Traps packets that have ACL priority set to 1 (tc pref 1) - * - ``acl_code_2`` - - ``trap`` - - Traps packets that have ACL priority set to 2 (tc pref 2) - * - ``acl_code_3`` - - ``trap`` - - Traps packets that have ACL priority set to 3 (tc pref 3) - * - ``acl_code_4`` - - ``trap`` - - Traps packets that have ACL priority set to 4 (tc pref 4) - * - ``acl_code_5`` - - ``trap`` - - Traps packets that have ACL priority set to 5 (tc pref 5) - * - ``acl_code_6`` - - ``trap`` - - Traps packets that have ACL priority set to 6 (tc pref 6) - * - ``acl_code_7`` - - ``trap`` - - Traps packets that have ACL priority set to 7 (tc pref 7) - * - ``ipv4_bgp`` - - ``trap`` - - Traps IPv4 BGP packets - * - ``ssh`` - - ``trap`` - - Traps SSH packets - * - ``telnet`` - - ``trap`` - - Traps Telnet packets - * - ``icmp`` - - ``trap`` - - Traps ICMP packets - * - ``rxdma_drop`` - - ``drop`` - - Drops packets (RxDMA) due to the lack of ingress buffers etc. - * - ``port_no_vlan`` - - ``drop`` - - Drops packets due to faulty-configured network or due to internal bug (config issue). - * - ``local_port`` - - ``drop`` - - Drops packets whose decision (FDB entry) is to bridge packet back to the incoming port/trunk. - * - ``invalid_sa`` - - ``drop`` - - Drops packets with multicast source MAC address. - * - ``illegal_ip_addr`` - - ``drop`` - - Drops packets with illegal SIP/DIP multicast/unicast addresses. - * - ``illegal_ipv4_hdr`` - - ``drop`` - - Drops packets with illegal IPV4 header. - * - ``ip_uc_dip_da_mismatch`` - - ``drop`` - - Drops packets with destination MAC being unicast, but destination IP address being multicast. - * - ``ip_sip_is_zero`` - - ``drop`` - - Drops packets with zero (0) IPV4 source address. - * - ``met_red`` - - ``drop`` - - Drops non-conforming packets (dropped by Ingress policer, metering drop), e.g. packet rate exceeded configured bandwidth. +.. SPDX-License-Identifier: GPL-2.0 + +======================== +prestera devlink support +======================== + +This document describes the devlink features implemented by the ``prestera`` +device driver. + +Driver-specific Traps +===================== + +.. list-table:: List of Driver-specific Traps Registered by ``prestera`` + :widths: 5 5 90 + + * - Name + - Type + - Description +.. list-table:: List of Driver-specific Traps Registered by ``prestera`` + :widths: 5 5 90 + + * - Name + - Type + - Description + * - ``arp_bc`` + - ``trap`` + - Traps ARP broadcast packets (both requests/responses) + * - ``is_is`` + - ``trap`` + - Traps IS-IS packets + * - ``ospf`` + - ``trap`` + - Traps OSPF packets + * - ``ip_bc_mac`` + - ``trap`` + - Traps IPv4 packets with broadcast DA Mac address + * - ``stp`` + - ``trap`` + - Traps STP BPDU + * - ``lacp`` + - ``trap`` + - Traps LACP packets + * - ``lldp`` + - ``trap`` + - Traps LLDP packets + * - ``router_mc`` + - ``trap`` + - Traps multicast packets + * - ``vrrp`` + - ``trap`` + - Traps VRRP packets + * - ``dhcp`` + - ``trap`` + - Traps DHCP packets + * - ``mtu_error`` + - ``trap`` + - Traps (exception) packets that exceeded port's MTU + * - ``mac_to_me`` + - ``trap`` + - Traps packets with switch-port's DA Mac address + * - ``ttl_error`` + - ``trap`` + - Traps (exception) IPv4 packets whose TTL exceeded + * - ``ipv4_options`` + - ``trap`` + - Traps (exception) packets due to the malformed IPV4 header options + * - ``ip_default_route`` + - ``trap`` + - Traps packets that have no specific IP interface (IP to me) and no forwarding prefix + * - ``local_route`` + - ``trap`` + - Traps packets that have been send to one of switch IP interfaces addresses + * - ``ipv4_icmp_redirect`` + - ``trap`` + - Traps (exception) IPV4 ICMP redirect packets + * - ``arp_response`` + - ``trap`` + - Traps ARP replies packets that have switch-port's DA Mac address + * - ``acl_code_0`` + - ``trap`` + - Traps packets that have ACL priority set to 0 (tc pref 0) + * - ``acl_code_1`` + - ``trap`` + - Traps packets that have ACL priority set to 1 (tc pref 1) + * - ``acl_code_2`` + - ``trap`` + - Traps packets that have ACL priority set to 2 (tc pref 2) + * - ``acl_code_3`` + - ``trap`` + - Traps packets that have ACL priority set to 3 (tc pref 3) + * - ``acl_code_4`` + - ``trap`` + - Traps packets that have ACL priority set to 4 (tc pref 4) + * - ``acl_code_5`` + - ``trap`` + - Traps packets that have ACL priority set to 5 (tc pref 5) + * - ``acl_code_6`` + - ``trap`` + - Traps packets that have ACL priority set to 6 (tc pref 6) + * - ``acl_code_7`` + - ``trap`` + - Traps packets that have ACL priority set to 7 (tc pref 7) + * - ``ipv4_bgp`` + - ``trap`` + - Traps IPv4 BGP packets + * - ``ssh`` + - ``trap`` + - Traps SSH packets + * - ``telnet`` + - ``trap`` + - Traps Telnet packets + * - ``icmp`` + - ``trap`` + - Traps ICMP packets + * - ``rxdma_drop`` + - ``drop`` + - Drops packets (RxDMA) due to the lack of ingress buffers etc. + * - ``port_no_vlan`` + - ``drop`` + - Drops packets due to faulty-configured network or due to internal bug (config issue). + * - ``local_port`` + - ``drop`` + - Drops packets whose decision (FDB entry) is to bridge packet back to the incoming port/trunk. + * - ``invalid_sa`` + - ``drop`` + - Drops packets with multicast source MAC address. + * - ``illegal_ip_addr`` + - ``drop`` + - Drops packets with illegal SIP/DIP multicast/unicast addresses. + * - ``illegal_ipv4_hdr`` + - ``drop`` + - Drops packets with illegal IPV4 header. + * - ``ip_uc_dip_da_mismatch`` + - ``drop`` + - Drops packets with destination MAC being unicast, but destination IP address being multicast. + * - ``ip_sip_is_zero`` + - ``drop`` + - Drops packets with zero (0) IPV4 source address. + * - ``met_red`` + - ``drop`` + - Drops non-conforming packets (dropped by Ingress policer, metering drop), e.g. packet rate exceeded configured bandwidth. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/driver.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/driver.rst index 8f779f6bf..4f5dfa9c0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/driver.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/driver.rst @@ -1,127 +1,127 @@ -.. SPDX-License-Identifier: GPL-2.0 - -===================== -Softnet Driver Issues -===================== - -Probing guidelines -================== - -Address validation ------------------- - -Any hardware layer address you obtain for your device should -be verified. For example, for ethernet check it with -linux/etherdevice.h:is_valid_ether_addr() - -Close/stop guidelines -===================== - -Quiescence ----------- - -After the ndo_stop routine has been called, the hardware must -not receive or transmit any data. All in flight packets must -be aborted. If necessary, poll or wait for completion of -any reset commands. - -Auto-close ----------- - -The ndo_stop routine will be called by unregister_netdevice -if device is still UP. - -Transmit path guidelines -======================== - -Stop queues in advance ----------------------- - -The ndo_start_xmit method must not return NETDEV_TX_BUSY under -any normal circumstances. It is considered a hard error unless -there is no way your device can tell ahead of time when its -transmit function will become busy. - -Instead it must maintain the queue properly. For example, -for a driver implementing scatter-gather this means: - -.. code-block:: c - - static u32 drv_tx_avail(struct drv_ring *dr) - { - u32 used = READ_ONCE(dr->prod) - READ_ONCE(dr->cons); - - return dr->tx_ring_size - (used & bp->tx_ring_mask); - } - - static netdev_tx_t drv_hard_start_xmit(struct sk_buff *skb, - struct net_device *dev) - { - struct drv *dp = netdev_priv(dev); - struct netdev_queue *txq; - struct drv_ring *dr; - int idx; - - idx = skb_get_queue_mapping(skb); - dr = dp->tx_rings[idx]; - txq = netdev_get_tx_queue(dev, idx); - - //... - /* This should be a very rare race - log it. */ - if (drv_tx_avail(dr) <= skb_shinfo(skb)->nr_frags + 1) { - netif_stop_queue(dev); - netdev_warn(dev, "Tx Ring full when queue awake!\n"); - return NETDEV_TX_BUSY; - } - - //... queue packet to card ... - - netdev_tx_sent_queue(txq, skb->len); - - //... update tx producer index using WRITE_ONCE() ... - - if (!netif_txq_maybe_stop(txq, drv_tx_avail(dr), - MAX_SKB_FRAGS + 1, 2 * MAX_SKB_FRAGS)) - dr->stats.stopped++; - - //... - return NETDEV_TX_OK; - } - -And then at the end of your TX reclamation event handling: - -.. code-block:: c - - //... update tx consumer index using WRITE_ONCE() ... - - netif_txq_completed_wake(txq, cmpl_pkts, cmpl_bytes, - drv_tx_avail(dr), 2 * MAX_SKB_FRAGS); - -Lockless queue stop / wake helper macros -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -.. kernel-doc:: include/net/netdev_queues.h - :doc: Lockless queue stopping / waking helpers. - -No exclusive ownership ----------------------- - -An ndo_start_xmit method must not modify the shared parts of a -cloned SKB. - -Timely completions ------------------- - -Do not forget that once you return NETDEV_TX_OK from your -ndo_start_xmit method, it is your driver's responsibility to free -up the SKB and in some finite amount of time. - -For example, this means that it is not allowed for your TX -mitigation scheme to let TX packets "hang out" in the TX -ring unreclaimed forever if no new TX packets are sent. -This error can deadlock sockets waiting for send buffer room -to be freed up. - -If you return NETDEV_TX_BUSY from the ndo_start_xmit method, you -must not keep any reference to that SKB and you must not attempt -to free it up. +.. SPDX-License-Identifier: GPL-2.0 + +===================== +Softnet Driver Issues +===================== + +Probing guidelines +================== + +Address validation +------------------ + +Any hardware layer address you obtain for your device should +be verified. For example, for ethernet check it with +linux/etherdevice.h:is_valid_ether_addr() + +Close/stop guidelines +===================== + +Quiescence +---------- + +After the ndo_stop routine has been called, the hardware must +not receive or transmit any data. All in flight packets must +be aborted. If necessary, poll or wait for completion of +any reset commands. + +Auto-close +---------- + +The ndo_stop routine will be called by unregister_netdevice +if device is still UP. + +Transmit path guidelines +======================== + +Stop queues in advance +---------------------- + +The ndo_start_xmit method must not return NETDEV_TX_BUSY under +any normal circumstances. It is considered a hard error unless +there is no way your device can tell ahead of time when its +transmit function will become busy. + +Instead it must maintain the queue properly. For example, +for a driver implementing scatter-gather this means: + +.. code-block:: c + + static u32 drv_tx_avail(struct drv_ring *dr) + { + u32 used = READ_ONCE(dr->prod) - READ_ONCE(dr->cons); + + return dr->tx_ring_size - (used & bp->tx_ring_mask); + } + + static netdev_tx_t drv_hard_start_xmit(struct sk_buff *skb, + struct net_device *dev) + { + struct drv *dp = netdev_priv(dev); + struct netdev_queue *txq; + struct drv_ring *dr; + int idx; + + idx = skb_get_queue_mapping(skb); + dr = dp->tx_rings[idx]; + txq = netdev_get_tx_queue(dev, idx); + + //... + /* This should be a very rare race - log it. */ + if (drv_tx_avail(dr) <= skb_shinfo(skb)->nr_frags + 1) { + netif_stop_queue(dev); + netdev_warn(dev, "Tx Ring full when queue awake!\n"); + return NETDEV_TX_BUSY; + } + + //... queue packet to card ... + + netdev_tx_sent_queue(txq, skb->len); + + //... update tx producer index using WRITE_ONCE() ... + + if (!netif_txq_maybe_stop(txq, drv_tx_avail(dr), + MAX_SKB_FRAGS + 1, 2 * MAX_SKB_FRAGS)) + dr->stats.stopped++; + + //... + return NETDEV_TX_OK; + } + +And then at the end of your TX reclamation event handling: + +.. code-block:: c + + //... update tx consumer index using WRITE_ONCE() ... + + netif_txq_completed_wake(txq, cmpl_pkts, cmpl_bytes, + drv_tx_avail(dr), 2 * MAX_SKB_FRAGS); + +Lockless queue stop / wake helper macros +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. kernel-doc:: include/net/netdev_queues.h + :doc: Lockless queue stopping / waking helpers. + +No exclusive ownership +---------------------- + +An ndo_start_xmit method must not modify the shared parts of a +cloned SKB. + +Timely completions +------------------ + +Do not forget that once you return NETDEV_TX_OK from your +ndo_start_xmit method, it is your driver's responsibility to free +up the SKB and in some finite amount of time. + +For example, this means that it is not allowed for your TX +mitigation scheme to let TX packets "hang out" in the TX +ring unreclaimed forever if no new TX packets are sent. +This error can deadlock sockets waiting for send buffer room +to be freed up. + +If you return NETDEV_TX_BUSY from the ndo_start_xmit method, you +must not keep any reference to that SKB and you must not attempt +to free it up. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/gen_stats.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/gen_stats.rst index 6bf2f36e7..595a83b9a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/gen_stats.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/gen_stats.rst @@ -1,129 +1,129 @@ -.. SPDX-License-Identifier: GPL-2.0 - -=============================================== -Generic networking statistics for netlink users -=============================================== - -Statistic counters are grouped into structs: - -==================== ===================== ===================== -Struct TLV type Description -==================== ===================== ===================== -gnet_stats_basic TCA_STATS_BASIC Basic statistics -gnet_stats_rate_est TCA_STATS_RATE_EST Rate estimator -gnet_stats_queue TCA_STATS_QUEUE Queue statistics -none TCA_STATS_APP Application specific -==================== ===================== ===================== - - -Collecting: ------------ - -Declare the statistic structs you need:: - - struct mystruct { - struct gnet_stats_basic bstats; - struct gnet_stats_queue qstats; - ... - }; - -Update statistics, in dequeue() methods only, (while owning qdisc->running):: - - mystruct->tstats.packet++; - mystruct->qstats.backlog += skb->pkt_len; - - -Export to userspace (Dump): ---------------------------- - -:: - - my_dumping_routine(struct sk_buff *skb, ...) - { - struct gnet_dump dump; - - if (gnet_stats_start_copy(skb, TCA_STATS2, &mystruct->lock, &dump, - TCA_PAD) < 0) - goto rtattr_failure; - - if (gnet_stats_copy_basic(&dump, &mystruct->bstats) < 0 || - gnet_stats_copy_queue(&dump, &mystruct->qstats) < 0 || - gnet_stats_copy_app(&dump, &xstats, sizeof(xstats)) < 0) - goto rtattr_failure; - - if (gnet_stats_finish_copy(&dump) < 0) - goto rtattr_failure; - ... - } - -TCA_STATS/TCA_XSTATS backward compatibility: --------------------------------------------- - -Prior users of struct tc_stats and xstats can maintain backward -compatibility by calling the compat wrappers to keep providing the -existing TLV types:: - - my_dumping_routine(struct sk_buff *skb, ...) - { - if (gnet_stats_start_copy_compat(skb, TCA_STATS2, TCA_STATS, - TCA_XSTATS, &mystruct->lock, &dump, - TCA_PAD) < 0) - goto rtattr_failure; - ... - } - -A struct tc_stats will be filled out during gnet_stats_copy_* calls -and appended to the skb. TCA_XSTATS is provided if gnet_stats_copy_app -was called. - - -Locking: --------- - -Locks are taken before writing and released once all statistics have -been written. Locks are always released in case of an error. You -are responsible for making sure that the lock is initialized. - - -Rate Estimator: ---------------- - -0) Prepare an estimator attribute. Most likely this would be in user - space. The value of this TLV should contain a tc_estimator structure. - As usual, such a TLV needs to be 32 bit aligned and therefore the - length needs to be appropriately set, etc. The estimator interval - and ewma log need to be converted to the appropriate values. - tc_estimator.c::tc_setup_estimator() is advisable to be used as the - conversion routine. It does a few clever things. It takes a time - interval in microsecs, a time constant also in microsecs and a struct - tc_estimator to be populated. The returned tc_estimator can be - transported to the kernel. Transfer such a structure in a TLV of type - TCA_RATE to your code in the kernel. - -In the kernel when setting up: - -1) make sure you have basic stats and rate stats setup first. -2) make sure you have initialized stats lock that is used to setup such - stats. -3) Now initialize a new estimator:: - - int ret = gen_new_estimator(my_basicstats,my_rate_est_stats, - mystats_lock, attr_with_tcestimator_struct); - - if ret == 0 - success - else - failed - -From now on, every time you dump my_rate_est_stats it will contain -up-to-date info. - -Once you are done, call gen_kill_estimator(my_basicstats, -my_rate_est_stats) Make sure that my_basicstats and my_rate_est_stats -are still valid (i.e still exist) at the time of making this call. - - -Authors: --------- -- Thomas Graf -- Jamal Hadi Salim +.. SPDX-License-Identifier: GPL-2.0 + +=============================================== +Generic networking statistics for netlink users +=============================================== + +Statistic counters are grouped into structs: + +==================== ===================== ===================== +Struct TLV type Description +==================== ===================== ===================== +gnet_stats_basic TCA_STATS_BASIC Basic statistics +gnet_stats_rate_est TCA_STATS_RATE_EST Rate estimator +gnet_stats_queue TCA_STATS_QUEUE Queue statistics +none TCA_STATS_APP Application specific +==================== ===================== ===================== + + +Collecting: +----------- + +Declare the statistic structs you need:: + + struct mystruct { + struct gnet_stats_basic bstats; + struct gnet_stats_queue qstats; + ... + }; + +Update statistics, in dequeue() methods only, (while owning qdisc->running):: + + mystruct->tstats.packet++; + mystruct->qstats.backlog += skb->pkt_len; + + +Export to userspace (Dump): +--------------------------- + +:: + + my_dumping_routine(struct sk_buff *skb, ...) + { + struct gnet_dump dump; + + if (gnet_stats_start_copy(skb, TCA_STATS2, &mystruct->lock, &dump, + TCA_PAD) < 0) + goto rtattr_failure; + + if (gnet_stats_copy_basic(&dump, &mystruct->bstats) < 0 || + gnet_stats_copy_queue(&dump, &mystruct->qstats) < 0 || + gnet_stats_copy_app(&dump, &xstats, sizeof(xstats)) < 0) + goto rtattr_failure; + + if (gnet_stats_finish_copy(&dump) < 0) + goto rtattr_failure; + ... + } + +TCA_STATS/TCA_XSTATS backward compatibility: +-------------------------------------------- + +Prior users of struct tc_stats and xstats can maintain backward +compatibility by calling the compat wrappers to keep providing the +existing TLV types:: + + my_dumping_routine(struct sk_buff *skb, ...) + { + if (gnet_stats_start_copy_compat(skb, TCA_STATS2, TCA_STATS, + TCA_XSTATS, &mystruct->lock, &dump, + TCA_PAD) < 0) + goto rtattr_failure; + ... + } + +A struct tc_stats will be filled out during gnet_stats_copy_* calls +and appended to the skb. TCA_XSTATS is provided if gnet_stats_copy_app +was called. + + +Locking: +-------- + +Locks are taken before writing and released once all statistics have +been written. Locks are always released in case of an error. You +are responsible for making sure that the lock is initialized. + + +Rate Estimator: +--------------- + +0) Prepare an estimator attribute. Most likely this would be in user + space. The value of this TLV should contain a tc_estimator structure. + As usual, such a TLV needs to be 32 bit aligned and therefore the + length needs to be appropriately set, etc. The estimator interval + and ewma log need to be converted to the appropriate values. + tc_estimator.c::tc_setup_estimator() is advisable to be used as the + conversion routine. It does a few clever things. It takes a time + interval in microsecs, a time constant also in microsecs and a struct + tc_estimator to be populated. The returned tc_estimator can be + transported to the kernel. Transfer such a structure in a TLV of type + TCA_RATE to your code in the kernel. + +In the kernel when setting up: + +1) make sure you have basic stats and rate stats setup first. +2) make sure you have initialized stats lock that is used to setup such + stats. +3) Now initialize a new estimator:: + + int ret = gen_new_estimator(my_basicstats,my_rate_est_stats, + mystats_lock, attr_with_tcestimator_struct); + + if ret == 0 + success + else + failed + +From now on, every time you dump my_rate_est_stats it will contain +up-to-date info. + +Once you are done, call gen_kill_estimator(my_basicstats, +my_rate_est_stats) Make sure that my_basicstats and my_rate_est_stats +are still valid (i.e still exist) at the time of making this call. + + +Authors: +-------- +- Thomas Graf +- Jamal Hadi Salim diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/mac80211-injection.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/mac80211-injection.rst index 1297c4135..63ba6611f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/mac80211-injection.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/mac80211-injection.rst @@ -1,106 +1,106 @@ -.. SPDX-License-Identifier: GPL-2.0 - -========================================= -How to use packet injection with mac80211 -========================================= - -mac80211 now allows arbitrary packets to be injected down any Monitor Mode -interface from userland. The packet you inject needs to be composed in the -following format:: - - [ radiotap header ] - [ ieee80211 header ] - [ payload ] - -The radiotap format is discussed in -./Documentation/networking/radiotap-headers.rst. - -Despite many radiotap parameters being currently defined, most only make sense -to appear on received packets. The following information is parsed from the -radiotap headers and used to control injection: - - * IEEE80211_RADIOTAP_FLAGS - - ========================= =========================================== - IEEE80211_RADIOTAP_F_FCS FCS will be removed and recalculated - IEEE80211_RADIOTAP_F_WEP frame will be encrypted if key available - IEEE80211_RADIOTAP_F_FRAG frame will be fragmented if longer than the - current fragmentation threshold. - ========================= =========================================== - - * IEEE80211_RADIOTAP_TX_FLAGS - - ============================= ======================================== - IEEE80211_RADIOTAP_F_TX_NOACK frame should be sent without waiting for - an ACK even if it is a unicast frame - ============================= ======================================== - - * IEEE80211_RADIOTAP_RATE - - legacy rate for the transmission (only for devices without own rate control) - - * IEEE80211_RADIOTAP_MCS - - HT rate for the transmission (only for devices without own rate control). - Also some flags are parsed - - ============================ ======================== - IEEE80211_RADIOTAP_MCS_SGI use short guard interval - IEEE80211_RADIOTAP_MCS_BW_40 send in HT40 mode - ============================ ======================== - - * IEEE80211_RADIOTAP_DATA_RETRIES - - number of retries when either IEEE80211_RADIOTAP_RATE or - IEEE80211_RADIOTAP_MCS was used - - * IEEE80211_RADIOTAP_VHT - - VHT mcs and number of streams used in the transmission (only for devices - without own rate control). Also other fields are parsed - - flags field - IEEE80211_RADIOTAP_VHT_FLAG_SGI: use short guard interval - - bandwidth field - * 1: send using 40MHz channel width - * 4: send using 80MHz channel width - * 11: send using 160MHz channel width - -The injection code can also skip all other currently defined radiotap fields -facilitating replay of captured radiotap headers directly. - -Here is an example valid radiotap header defining some parameters:: - - 0x00, 0x00, // <-- radiotap version - 0x0b, 0x00, // <- radiotap header length - 0x04, 0x0c, 0x00, 0x00, // <-- bitmap - 0x6c, // <-- rate - 0x0c, //<-- tx power - 0x01 //<-- antenna - -The ieee80211 header follows immediately afterwards, looking for example like -this:: - - 0x08, 0x01, 0x00, 0x00, - 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, - 0x13, 0x22, 0x33, 0x44, 0x55, 0x66, - 0x13, 0x22, 0x33, 0x44, 0x55, 0x66, - 0x10, 0x86 - -Then lastly there is the payload. - -After composing the packet contents, it is sent by send()-ing it to a logical -mac80211 interface that is in Monitor mode. Libpcap can also be used, -(which is easier than doing the work to bind the socket to the right -interface), along the following lines::: - - ppcap = pcap_open_live(szInterfaceName, 800, 1, 20, szErrbuf); - ... - r = pcap_inject(ppcap, u8aSendBuffer, nLength); - -You can also find a link to a complete inject application here: - -https://wireless.wiki.kernel.org/en/users/Documentation/packetspammer - -Andy Green +.. SPDX-License-Identifier: GPL-2.0 + +========================================= +How to use packet injection with mac80211 +========================================= + +mac80211 now allows arbitrary packets to be injected down any Monitor Mode +interface from userland. The packet you inject needs to be composed in the +following format:: + + [ radiotap header ] + [ ieee80211 header ] + [ payload ] + +The radiotap format is discussed in +./Documentation/networking/radiotap-headers.rst. + +Despite many radiotap parameters being currently defined, most only make sense +to appear on received packets. The following information is parsed from the +radiotap headers and used to control injection: + + * IEEE80211_RADIOTAP_FLAGS + + ========================= =========================================== + IEEE80211_RADIOTAP_F_FCS FCS will be removed and recalculated + IEEE80211_RADIOTAP_F_WEP frame will be encrypted if key available + IEEE80211_RADIOTAP_F_FRAG frame will be fragmented if longer than the + current fragmentation threshold. + ========================= =========================================== + + * IEEE80211_RADIOTAP_TX_FLAGS + + ============================= ======================================== + IEEE80211_RADIOTAP_F_TX_NOACK frame should be sent without waiting for + an ACK even if it is a unicast frame + ============================= ======================================== + + * IEEE80211_RADIOTAP_RATE + + legacy rate for the transmission (only for devices without own rate control) + + * IEEE80211_RADIOTAP_MCS + + HT rate for the transmission (only for devices without own rate control). + Also some flags are parsed + + ============================ ======================== + IEEE80211_RADIOTAP_MCS_SGI use short guard interval + IEEE80211_RADIOTAP_MCS_BW_40 send in HT40 mode + ============================ ======================== + + * IEEE80211_RADIOTAP_DATA_RETRIES + + number of retries when either IEEE80211_RADIOTAP_RATE or + IEEE80211_RADIOTAP_MCS was used + + * IEEE80211_RADIOTAP_VHT + + VHT mcs and number of streams used in the transmission (only for devices + without own rate control). Also other fields are parsed + + flags field + IEEE80211_RADIOTAP_VHT_FLAG_SGI: use short guard interval + + bandwidth field + * 1: send using 40MHz channel width + * 4: send using 80MHz channel width + * 11: send using 160MHz channel width + +The injection code can also skip all other currently defined radiotap fields +facilitating replay of captured radiotap headers directly. + +Here is an example valid radiotap header defining some parameters:: + + 0x00, 0x00, // <-- radiotap version + 0x0b, 0x00, // <- radiotap header length + 0x04, 0x0c, 0x00, 0x00, // <-- bitmap + 0x6c, // <-- rate + 0x0c, //<-- tx power + 0x01 //<-- antenna + +The ieee80211 header follows immediately afterwards, looking for example like +this:: + + 0x08, 0x01, 0x00, 0x00, + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, + 0x13, 0x22, 0x33, 0x44, 0x55, 0x66, + 0x13, 0x22, 0x33, 0x44, 0x55, 0x66, + 0x10, 0x86 + +Then lastly there is the payload. + +After composing the packet contents, it is sent by send()-ing it to a logical +mac80211 interface that is in Monitor mode. Libpcap can also be used, +(which is easier than doing the work to bind the socket to the right +interface), along the following lines::: + + ppcap = pcap_open_live(szInterfaceName, 800, 1, 20, szErrbuf); + ... + r = pcap_inject(ppcap, u8aSendBuffer, nLength); + +You can also find a link to a complete inject application here: + +https://wireless.wiki.kernel.org/en/users/Documentation/packetspammer + +Andy Green diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/mptcp-sysctl.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/mptcp-sysctl.rst index b934a2a73..09be0e68b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/mptcp-sysctl.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/mptcp-sysctl.rst @@ -1,112 +1,112 @@ -.. SPDX-License-Identifier: GPL-2.0 - -===================== -MPTCP Sysfs variables -===================== - -/proc/sys/net/mptcp/* Variables -=============================== - -add_addr_timeout - INTEGER (seconds) - Set the timeout after which an ADD_ADDR control message will be - resent to an MPTCP peer that has not acknowledged a previous - ADD_ADDR message. - - Do not retransmit if set to 0. - - The default value matches TCP_RTO_MAX. This is a per-namespace - sysctl. - - Default: 120 - -allow_join_initial_addr_port - BOOLEAN - Allow peers to send join requests to the IP address and port number used - by the initial subflow if the value is 1. This controls a flag that is - sent to the peer at connection time, and whether such join requests are - accepted or denied. - - Joins to addresses advertised with ADD_ADDR are not affected by this - value. - - This is a per-namespace sysctl. - - Default: 1 - -available_schedulers - STRING - Shows the available schedulers choices that are registered. More packet - schedulers may be available, but not loaded. - -blackhole_timeout - INTEGER (seconds) - Initial time period in second to disable MPTCP on active MPTCP sockets - when a MPTCP firewall blackhole issue happens. This time period will - grow exponentially when more blackhole issues get detected right after - MPTCP is re-enabled and will reset to the initial value when the - blackhole issue goes away. - - 0 to disable the blackhole detection. - - Default: 3600 - -checksum_enabled - BOOLEAN - Control whether DSS checksum can be enabled. - - DSS checksum can be enabled if the value is nonzero. This is a - per-namespace sysctl. - - Default: 0 - -close_timeout - INTEGER (seconds) - Set the make-after-break timeout: in absence of any close or - shutdown syscall, MPTCP sockets will maintain the status - unchanged for such time, after the last subflow removal, before - moving to TCP_CLOSE. - - The default value matches TCP_TIMEWAIT_LEN. This is a per-namespace - sysctl. - - Default: 60 - -enabled - BOOLEAN - Control whether MPTCP sockets can be created. - - MPTCP sockets can be created if the value is 1. This is a - per-namespace sysctl. - - Default: 1 (enabled) - -pm_type - INTEGER - Set the default path manager type to use for each new MPTCP - socket. In-kernel path management will control subflow - connections and address advertisements according to - per-namespace values configured over the MPTCP netlink - API. Userspace path management puts per-MPTCP-connection subflow - connection decisions and address advertisements under control of - a privileged userspace program, at the cost of more netlink - traffic to propagate all of the related events and commands. - - This is a per-namespace sysctl. - - * 0 - In-kernel path manager - * 1 - Userspace path manager - - Default: 0 - -scheduler - STRING - Select the scheduler of your choice. - - Support for selection of different schedulers. This is a per-namespace - sysctl. - - Default: "default" - -stale_loss_cnt - INTEGER - The number of MPTCP-level retransmission intervals with no traffic and - pending outstanding data on a given subflow required to declare it stale. - The packet scheduler ignores stale subflows. - A low stale_loss_cnt value allows for fast active-backup switch-over, - an high value maximize links utilization on edge scenarios e.g. lossy - link with high BER or peer pausing the data processing. - - This is a per-namespace sysctl. - - Default: 4 +.. SPDX-License-Identifier: GPL-2.0 + +===================== +MPTCP Sysfs variables +===================== + +/proc/sys/net/mptcp/* Variables +=============================== + +add_addr_timeout - INTEGER (seconds) + Set the timeout after which an ADD_ADDR control message will be + resent to an MPTCP peer that has not acknowledged a previous + ADD_ADDR message. + + Do not retransmit if set to 0. + + The default value matches TCP_RTO_MAX. This is a per-namespace + sysctl. + + Default: 120 + +allow_join_initial_addr_port - BOOLEAN + Allow peers to send join requests to the IP address and port number used + by the initial subflow if the value is 1. This controls a flag that is + sent to the peer at connection time, and whether such join requests are + accepted or denied. + + Joins to addresses advertised with ADD_ADDR are not affected by this + value. + + This is a per-namespace sysctl. + + Default: 1 + +available_schedulers - STRING + Shows the available schedulers choices that are registered. More packet + schedulers may be available, but not loaded. + +blackhole_timeout - INTEGER (seconds) + Initial time period in second to disable MPTCP on active MPTCP sockets + when a MPTCP firewall blackhole issue happens. This time period will + grow exponentially when more blackhole issues get detected right after + MPTCP is re-enabled and will reset to the initial value when the + blackhole issue goes away. + + 0 to disable the blackhole detection. + + Default: 3600 + +checksum_enabled - BOOLEAN + Control whether DSS checksum can be enabled. + + DSS checksum can be enabled if the value is nonzero. This is a + per-namespace sysctl. + + Default: 0 + +close_timeout - INTEGER (seconds) + Set the make-after-break timeout: in absence of any close or + shutdown syscall, MPTCP sockets will maintain the status + unchanged for such time, after the last subflow removal, before + moving to TCP_CLOSE. + + The default value matches TCP_TIMEWAIT_LEN. This is a per-namespace + sysctl. + + Default: 60 + +enabled - BOOLEAN + Control whether MPTCP sockets can be created. + + MPTCP sockets can be created if the value is 1. This is a + per-namespace sysctl. + + Default: 1 (enabled) + +pm_type - INTEGER + Set the default path manager type to use for each new MPTCP + socket. In-kernel path management will control subflow + connections and address advertisements according to + per-namespace values configured over the MPTCP netlink + API. Userspace path management puts per-MPTCP-connection subflow + connection decisions and address advertisements under control of + a privileged userspace program, at the cost of more netlink + traffic to propagate all of the related events and commands. + + This is a per-namespace sysctl. + + * 0 - In-kernel path manager + * 1 - Userspace path manager + + Default: 0 + +scheduler - STRING + Select the scheduler of your choice. + + Support for selection of different schedulers. This is a per-namespace + sysctl. + + Default: "default" + +stale_loss_cnt - INTEGER + The number of MPTCP-level retransmission intervals with no traffic and + pending outstanding data on a given subflow required to declare it stale. + The packet scheduler ignores stale subflows. + A low stale_loss_cnt value allows for fast active-backup switch-over, + an high value maximize links utilization on edge scenarios e.g. lossy + link with high BER or peer pausing the data processing. + + This is a per-namespace sysctl. + + Default: 4 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/multiqueue.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/multiqueue.rst index fd745042e..0a576166e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/multiqueue.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/multiqueue.rst @@ -1,78 +1,78 @@ -.. SPDX-License-Identifier: GPL-2.0 - -=========================================== -HOWTO for multiqueue network device support -=========================================== - -Section 1: Base driver requirements for implementing multiqueue support -======================================================================= - -Intro: Kernel support for multiqueue devices ---------------------------------------------------------- - -Kernel support for multiqueue devices is always present. - -Base drivers are required to use the new alloc_etherdev_mq() or -alloc_netdev_mq() functions to allocate the subqueues for the device. The -underlying kernel API will take care of the allocation and deallocation of -the subqueue memory, as well as netdev configuration of where the queues -exist in memory. - -The base driver will also need to manage the queues as it does the global -netdev->queue_lock today. Therefore base drivers should use the -netif_{start|stop|wake}_subqueue() functions to manage each queue while the -device is still operational. netdev->queue_lock is still used when the device -comes online or when it's completely shut down (unregister_netdev(), etc.). - - -Section 2: Qdisc support for multiqueue devices -=============================================== - -Currently two qdiscs are optimized for multiqueue devices. The first is the -default pfifo_fast qdisc. This qdisc supports one qdisc per hardware queue. -A new round-robin qdisc, sch_multiq also supports multiple hardware queues. The -qdisc is responsible for classifying the skb's and then directing the skb's to -bands and queues based on the value in skb->queue_mapping. Use this field in -the base driver to determine which queue to send the skb to. - -sch_multiq has been added for hardware that wishes to avoid head-of-line -blocking. It will cycle though the bands and verify that the hardware queue -associated with the band is not stopped prior to dequeuing a packet. - -On qdisc load, the number of bands is based on the number of queues on the -hardware. Once the association is made, any skb with skb->queue_mapping set, -will be queued to the band associated with the hardware queue. - - -Section 3: Brief howto using MULTIQ for multiqueue devices -========================================================== - -The userspace command 'tc,' part of the iproute2 package, is used to configure -qdiscs. To add the MULTIQ qdisc to your network device, assuming the device -is called eth0, run the following command:: - - # tc qdisc add dev eth0 root handle 1: multiq - -The qdisc will allocate the number of bands to equal the number of queues that -the device reports, and bring the qdisc online. Assuming eth0 has 4 Tx -queues, the band mapping would look like:: - - band 0 => queue 0 - band 1 => queue 1 - band 2 => queue 2 - band 3 => queue 3 - -Traffic will begin flowing through each queue based on either the simple_tx_hash -function or based on netdev->select_queue() if you have it defined. - -The behavior of tc filters remains the same. However a new tc action, -skbedit, has been added. Assuming you wanted to route all traffic to a -specific host, for example 192.168.0.3, through a specific queue you could use -this action and establish a filter such as:: - - tc filter add dev eth0 parent 1: protocol ip prio 1 u32 \ - match ip dst 192.168.0.3 \ - action skbedit queue_mapping 3 - -:Author: Alexander Duyck -:Original Author: Peter P. Waskiewicz Jr. +.. SPDX-License-Identifier: GPL-2.0 + +=========================================== +HOWTO for multiqueue network device support +=========================================== + +Section 1: Base driver requirements for implementing multiqueue support +======================================================================= + +Intro: Kernel support for multiqueue devices +--------------------------------------------------------- + +Kernel support for multiqueue devices is always present. + +Base drivers are required to use the new alloc_etherdev_mq() or +alloc_netdev_mq() functions to allocate the subqueues for the device. The +underlying kernel API will take care of the allocation and deallocation of +the subqueue memory, as well as netdev configuration of where the queues +exist in memory. + +The base driver will also need to manage the queues as it does the global +netdev->queue_lock today. Therefore base drivers should use the +netif_{start|stop|wake}_subqueue() functions to manage each queue while the +device is still operational. netdev->queue_lock is still used when the device +comes online or when it's completely shut down (unregister_netdev(), etc.). + + +Section 2: Qdisc support for multiqueue devices +=============================================== + +Currently two qdiscs are optimized for multiqueue devices. The first is the +default pfifo_fast qdisc. This qdisc supports one qdisc per hardware queue. +A new round-robin qdisc, sch_multiq also supports multiple hardware queues. The +qdisc is responsible for classifying the skb's and then directing the skb's to +bands and queues based on the value in skb->queue_mapping. Use this field in +the base driver to determine which queue to send the skb to. + +sch_multiq has been added for hardware that wishes to avoid head-of-line +blocking. It will cycle though the bands and verify that the hardware queue +associated with the band is not stopped prior to dequeuing a packet. + +On qdisc load, the number of bands is based on the number of queues on the +hardware. Once the association is made, any skb with skb->queue_mapping set, +will be queued to the band associated with the hardware queue. + + +Section 3: Brief howto using MULTIQ for multiqueue devices +========================================================== + +The userspace command 'tc,' part of the iproute2 package, is used to configure +qdiscs. To add the MULTIQ qdisc to your network device, assuming the device +is called eth0, run the following command:: + + # tc qdisc add dev eth0 root handle 1: multiq + +The qdisc will allocate the number of bands to equal the number of queues that +the device reports, and bring the qdisc online. Assuming eth0 has 4 Tx +queues, the band mapping would look like:: + + band 0 => queue 0 + band 1 => queue 1 + band 2 => queue 2 + band 3 => queue 3 + +Traffic will begin flowing through each queue based on either the simple_tx_hash +function or based on netdev->select_queue() if you have it defined. + +The behavior of tc filters remains the same. However a new tc action, +skbedit, has been added. Assuming you wanted to route all traffic to a +specific host, for example 192.168.0.3, through a specific queue you could use +this action and establish a filter such as:: + + tc filter add dev eth0 parent 1: protocol ip prio 1 u32 \ + match ip dst 192.168.0.3 \ + action skbedit queue_mapping 3 + +:Author: Alexander Duyck +:Original Author: Peter P. Waskiewicz Jr. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/net_cachelines/inet_sock.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/net_cachelines/inet_sock.rst index 11cbebfae..595d7ef5f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/net_cachelines/inet_sock.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/net_cachelines/inet_sock.rst @@ -1,44 +1,44 @@ -.. SPDX-License-Identifier: GPL-2.0 -.. Copyright (C) 2023 Google LLC - -========================================== -inet_sock struct fast path usage breakdown -========================================== - -Type Name fastpath_tx_access fastpath_rx_access comment -..struct ..inet_sock -struct_sock sk read_mostly read_mostly tcp_init_buffer_space,tcp_init_transfer,tcp_finish_connect,tcp_connect,tcp_send_rcvq,tcp_send_syn_data -struct_ipv6_pinfo* pinet6 - - -be16 inet_sport read_mostly - __tcp_transmit_skb -be32 inet_daddr read_mostly - ip_select_ident_segs -be32 inet_rcv_saddr - - -be16 inet_dport read_mostly - __tcp_transmit_skb -u16 inet_num - - -be32 inet_saddr - - -s16 uc_ttl read_mostly - __ip_queue_xmit/ip_select_ttl -u16 cmsg_flags - - -struct_ip_options_rcu* inet_opt read_mostly - __ip_queue_xmit -u16 inet_id read_mostly - ip_select_ident_segs -u8 tos read_mostly - ip_queue_xmit -u8 min_ttl - - -u8 mc_ttl - - -u8 pmtudisc - - -u8:1 recverr - - -u8:1 is_icsk - - -u8:1 freebind - - -u8:1 hdrincl - - -u8:1 mc_loop - - -u8:1 transparent - - -u8:1 mc_all - - -u8:1 nodefrag - - -u8:1 bind_address_no_port - - -u8:1 recverr_rfc4884 - - -u8:1 defer_connect read_mostly - tcp_sendmsg_fastopen -u8 rcv_tos - - -u8 convert_csum - - -int uc_index - - -int mc_index - - -be32 mc_addr - - -struct_ip_mc_socklist* mc_list - - -struct_inet_cork_full cork read_mostly - __tcp_transmit_skb -struct local_port_range - - +.. SPDX-License-Identifier: GPL-2.0 +.. Copyright (C) 2023 Google LLC + +========================================== +inet_sock struct fast path usage breakdown +========================================== + +Type Name fastpath_tx_access fastpath_rx_access comment +..struct ..inet_sock +struct_sock sk read_mostly read_mostly tcp_init_buffer_space,tcp_init_transfer,tcp_finish_connect,tcp_connect,tcp_send_rcvq,tcp_send_syn_data +struct_ipv6_pinfo* pinet6 - - +be16 inet_sport read_mostly - __tcp_transmit_skb +be32 inet_daddr read_mostly - ip_select_ident_segs +be32 inet_rcv_saddr - - +be16 inet_dport read_mostly - __tcp_transmit_skb +u16 inet_num - - +be32 inet_saddr - - +s16 uc_ttl read_mostly - __ip_queue_xmit/ip_select_ttl +u16 cmsg_flags - - +struct_ip_options_rcu* inet_opt read_mostly - __ip_queue_xmit +u16 inet_id read_mostly - ip_select_ident_segs +u8 tos read_mostly - ip_queue_xmit +u8 min_ttl - - +u8 mc_ttl - - +u8 pmtudisc - - +u8:1 recverr - - +u8:1 is_icsk - - +u8:1 freebind - - +u8:1 hdrincl - - +u8:1 mc_loop - - +u8:1 transparent - - +u8:1 mc_all - - +u8:1 nodefrag - - +u8:1 bind_address_no_port - - +u8:1 recverr_rfc4884 - - +u8:1 defer_connect read_mostly - tcp_sendmsg_fastopen +u8 rcv_tos - - +u8 convert_csum - - +int uc_index - - +int mc_index - - +be32 mc_addr - - +struct_ip_mc_socklist* mc_list - - +struct_inet_cork_full cork read_mostly - __tcp_transmit_skb +struct local_port_range - - diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/netif-msg.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/netif-msg.rst index 7f4c1bb75..b20d265a7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/netif-msg.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/netif-msg.rst @@ -1,95 +1,95 @@ -.. SPDX-License-Identifier: GPL-2.0 - -=============== -NETIF Msg Level -=============== - -The design of the network interface message level setting. - -History -------- - - The design of the debugging message interface was guided and - constrained by backwards compatibility previous practice. It is useful - to understand the history and evolution in order to understand current - practice and relate it to older driver source code. - - From the beginning of Linux, each network device driver has had a local - integer variable that controls the debug message level. The message - level ranged from 0 to 7, and monotonically increased in verbosity. - - The message level was not precisely defined past level 3, but were - always implemented within +-1 of the specified level. Drivers tended - to shed the more verbose level messages as they matured. - - - 0 Minimal messages, only essential information on fatal errors. - - 1 Standard messages, initialization status. No run-time messages - - 2 Special media selection messages, generally timer-driver. - - 3 Interface starts and stops, including normal status messages - - 4 Tx and Rx frame error messages, and abnormal driver operation - - 5 Tx packet queue information, interrupt events. - - 6 Status on each completed Tx packet and received Rx packets - - 7 Initial contents of Tx and Rx packets - - Initially this message level variable was uniquely named in each driver - e.g. "lance_debug", so that a kernel symbolic debugger could locate and - modify the setting. When kernel modules became common, the variables - were consistently renamed to "debug" and allowed to be set as a module - parameter. - - This approach worked well. However there is always a demand for - additional features. Over the years the following emerged as - reasonable and easily implemented enhancements - - - Using an ioctl() call to modify the level. - - Per-interface rather than per-driver message level setting. - - More selective control over the type of messages emitted. - - The netif_msg recommendation adds these features with only a minor - complexity and code size increase. - - The recommendation is the following points - - - Retaining the per-driver integer variable "debug" as a module - parameter with a default level of '1'. - - - Adding a per-interface private variable named "msg_enable". The - variable is a bit map rather than a level, and is initialized as:: - - 1 << debug - - Or more precisely:: - - debug < 0 ? 0 : 1 << min(sizeof(int)-1, debug) - - Messages should changes from:: - - if (debug > 1) - printk(MSG_DEBUG "%s: ... - - to:: - - if (np->msg_enable & NETIF_MSG_LINK) - printk(MSG_DEBUG "%s: ... - - -The set of message levels is named - - - ========= =================== ============ - Old level Name Bit position - ========= =================== ============ - 0 NETIF_MSG_DRV 0x0001 - 1 NETIF_MSG_PROBE 0x0002 - 2 NETIF_MSG_LINK 0x0004 - 2 NETIF_MSG_TIMER 0x0004 - 3 NETIF_MSG_IFDOWN 0x0008 - 3 NETIF_MSG_IFUP 0x0008 - 4 NETIF_MSG_RX_ERR 0x0010 - 4 NETIF_MSG_TX_ERR 0x0010 - 5 NETIF_MSG_TX_QUEUED 0x0020 - 5 NETIF_MSG_INTR 0x0020 - 6 NETIF_MSG_TX_DONE 0x0040 - 6 NETIF_MSG_RX_STATUS 0x0040 - 7 NETIF_MSG_PKTDATA 0x0080 - ========= =================== ============ +.. SPDX-License-Identifier: GPL-2.0 + +=============== +NETIF Msg Level +=============== + +The design of the network interface message level setting. + +History +------- + + The design of the debugging message interface was guided and + constrained by backwards compatibility previous practice. It is useful + to understand the history and evolution in order to understand current + practice and relate it to older driver source code. + + From the beginning of Linux, each network device driver has had a local + integer variable that controls the debug message level. The message + level ranged from 0 to 7, and monotonically increased in verbosity. + + The message level was not precisely defined past level 3, but were + always implemented within +-1 of the specified level. Drivers tended + to shed the more verbose level messages as they matured. + + - 0 Minimal messages, only essential information on fatal errors. + - 1 Standard messages, initialization status. No run-time messages + - 2 Special media selection messages, generally timer-driver. + - 3 Interface starts and stops, including normal status messages + - 4 Tx and Rx frame error messages, and abnormal driver operation + - 5 Tx packet queue information, interrupt events. + - 6 Status on each completed Tx packet and received Rx packets + - 7 Initial contents of Tx and Rx packets + + Initially this message level variable was uniquely named in each driver + e.g. "lance_debug", so that a kernel symbolic debugger could locate and + modify the setting. When kernel modules became common, the variables + were consistently renamed to "debug" and allowed to be set as a module + parameter. + + This approach worked well. However there is always a demand for + additional features. Over the years the following emerged as + reasonable and easily implemented enhancements + + - Using an ioctl() call to modify the level. + - Per-interface rather than per-driver message level setting. + - More selective control over the type of messages emitted. + + The netif_msg recommendation adds these features with only a minor + complexity and code size increase. + + The recommendation is the following points + + - Retaining the per-driver integer variable "debug" as a module + parameter with a default level of '1'. + + - Adding a per-interface private variable named "msg_enable". The + variable is a bit map rather than a level, and is initialized as:: + + 1 << debug + + Or more precisely:: + + debug < 0 ? 0 : 1 << min(sizeof(int)-1, debug) + + Messages should changes from:: + + if (debug > 1) + printk(MSG_DEBUG "%s: ... + + to:: + + if (np->msg_enable & NETIF_MSG_LINK) + printk(MSG_DEBUG "%s: ... + + +The set of message levels is named + + + ========= =================== ============ + Old level Name Bit position + ========= =================== ============ + 0 NETIF_MSG_DRV 0x0001 + 1 NETIF_MSG_PROBE 0x0002 + 2 NETIF_MSG_LINK 0x0004 + 2 NETIF_MSG_TIMER 0x0004 + 3 NETIF_MSG_IFDOWN 0x0008 + 3 NETIF_MSG_IFUP 0x0008 + 4 NETIF_MSG_RX_ERR 0x0010 + 4 NETIF_MSG_TX_ERR 0x0010 + 5 NETIF_MSG_TX_QUEUED 0x0020 + 5 NETIF_MSG_INTR 0x0020 + 6 NETIF_MSG_TX_DONE 0x0040 + 6 NETIF_MSG_RX_STATUS 0x0040 + 7 NETIF_MSG_PKTDATA 0x0080 + ========= =================== ============ diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/pse-pd/introduction.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/pse-pd/introduction.rst index c91671bb3..e3d3faaef 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/pse-pd/introduction.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/pse-pd/introduction.rst @@ -1,73 +1,73 @@ -.. SPDX-License-Identifier: GPL-2.0 - -Power Sourcing Equipment (PSE) in IEEE 802.3 Standard -===================================================== - -Overview --------- - -Power Sourcing Equipment (PSE) is essential in networks for delivering power -along with data over Ethernet cables. It usually refers to devices like -switches and hubs that supply power to Powered Devices (PDs) such as IP -cameras, VoIP phones, and wireless access points. - -PSE vs. PoDL PSE ----------------- - -PSE in the IEEE 802.3 standard generally refers to equipment that provides -power alongside data over Ethernet cables, typically associated with Power over -Ethernet (PoE). - -PoDL PSE, or Power over Data Lines PSE, specifically denotes PSEs operating -with single balanced twisted-pair PHYs, as per Clause 104 of IEEE 802.3. PoDL -is significant in contexts like automotive and industrial controls where power -and data delivery over a single pair is advantageous. - -IEEE 802.3-2018 Addendums and Related Clauses ---------------------------------------------- - -Key addenda to the IEEE 802.3-2018 standard relevant to power delivery over -Ethernet are as follows: - -- **802.3af (Approved in 2003-06-12)**: Known as PoE in the market, detailed in - Clause 33, delivering up to 15.4W of power. -- **802.3at (Approved in 2009-09-11)**: Marketed as PoE+, enhancing PoE as - covered in Clause 33, increasing power delivery to up to 30W. -- **802.3bt (Approved in 2018-09-27)**: Known as 4PPoE in the market, outlined - in Clause 33. Type 3 delivers up to 60W, and Type 4 up to 100W. -- **802.3bu (Approved in 2016-12-07)**: Formerly referred to as PoDL, detailed - in Clause 104. Introduces Classes 0 - 9. Class 9 PoDL PSE delivers up to ~65W - -Kernel Naming Convention Recommendations ----------------------------------------- - -For clarity and consistency within the Linux kernel's networking subsystem, the -following naming conventions are recommended: - -- For general PSE (PoE) code, use "c33_pse" key words. For example: - ``enum ethtool_c33_pse_admin_state c33_admin_control;``. - This aligns with Clause 33, encompassing various PoE forms. - -- For PoDL PSE - specific code, use "podl_pse". For example: - ``enum ethtool_podl_pse_admin_state podl_admin_control;`` to differentiate - PoDL PSE settings according to Clause 104. - -Summary of Clause 33: Data Terminal Equipment (DTE) Power via Media Dependent Interface (MDI) ---------------------------------------------------------------------------------------------- - -Clause 33 of the IEEE 802.3 standard defines the functional and electrical -characteristics of Powered Device (PD) and Power Sourcing Equipment (PSE). -These entities enable power delivery using the same generic cabling as for data -transmission, integrating power with data communication for devices such as -10BASE-T, 100BASE-TX, or 1000BASE-T. - -Summary of Clause 104: Power over Data Lines (PoDL) of Single Balanced Twisted-Pair Ethernet --------------------------------------------------------------------------------------------- - -Clause 104 of the IEEE 802.3 standard delineates the functional and electrical -characteristics of PoDL Powered Devices (PDs) and PoDL Power Sourcing Equipment -(PSEs). These are designed for use with single balanced twisted-pair Ethernet -Physical Layers. In this clause, 'PSE' refers specifically to PoDL PSE, and -'PD' to PoDL PD. The key intent is to provide devices with a unified interface -for both data and the power required to process this data over a single -balanced twisted-pair Ethernet connection. +.. SPDX-License-Identifier: GPL-2.0 + +Power Sourcing Equipment (PSE) in IEEE 802.3 Standard +===================================================== + +Overview +-------- + +Power Sourcing Equipment (PSE) is essential in networks for delivering power +along with data over Ethernet cables. It usually refers to devices like +switches and hubs that supply power to Powered Devices (PDs) such as IP +cameras, VoIP phones, and wireless access points. + +PSE vs. PoDL PSE +---------------- + +PSE in the IEEE 802.3 standard generally refers to equipment that provides +power alongside data over Ethernet cables, typically associated with Power over +Ethernet (PoE). + +PoDL PSE, or Power over Data Lines PSE, specifically denotes PSEs operating +with single balanced twisted-pair PHYs, as per Clause 104 of IEEE 802.3. PoDL +is significant in contexts like automotive and industrial controls where power +and data delivery over a single pair is advantageous. + +IEEE 802.3-2018 Addendums and Related Clauses +--------------------------------------------- + +Key addenda to the IEEE 802.3-2018 standard relevant to power delivery over +Ethernet are as follows: + +- **802.3af (Approved in 2003-06-12)**: Known as PoE in the market, detailed in + Clause 33, delivering up to 15.4W of power. +- **802.3at (Approved in 2009-09-11)**: Marketed as PoE+, enhancing PoE as + covered in Clause 33, increasing power delivery to up to 30W. +- **802.3bt (Approved in 2018-09-27)**: Known as 4PPoE in the market, outlined + in Clause 33. Type 3 delivers up to 60W, and Type 4 up to 100W. +- **802.3bu (Approved in 2016-12-07)**: Formerly referred to as PoDL, detailed + in Clause 104. Introduces Classes 0 - 9. Class 9 PoDL PSE delivers up to ~65W + +Kernel Naming Convention Recommendations +---------------------------------------- + +For clarity and consistency within the Linux kernel's networking subsystem, the +following naming conventions are recommended: + +- For general PSE (PoE) code, use "c33_pse" key words. For example: + ``enum ethtool_c33_pse_admin_state c33_admin_control;``. + This aligns with Clause 33, encompassing various PoE forms. + +- For PoDL PSE - specific code, use "podl_pse". For example: + ``enum ethtool_podl_pse_admin_state podl_admin_control;`` to differentiate + PoDL PSE settings according to Clause 104. + +Summary of Clause 33: Data Terminal Equipment (DTE) Power via Media Dependent Interface (MDI) +--------------------------------------------------------------------------------------------- + +Clause 33 of the IEEE 802.3 standard defines the functional and electrical +characteristics of Powered Device (PD) and Power Sourcing Equipment (PSE). +These entities enable power delivery using the same generic cabling as for data +transmission, integrating power with data communication for devices such as +10BASE-T, 100BASE-TX, or 1000BASE-T. + +Summary of Clause 104: Power over Data Lines (PoDL) of Single Balanced Twisted-Pair Ethernet +-------------------------------------------------------------------------------------------- + +Clause 104 of the IEEE 802.3 standard delineates the functional and electrical +characteristics of PoDL Powered Devices (PDs) and PoDL Power Sourcing Equipment +(PSEs). These are designed for use with single balanced twisted-pair Ethernet +Physical Layers. In this clause, 'PSE' refers specifically to PoDL PSE, and +'PD' to PoDL PD. The key intent is to provide devices with a unified interface +for both data and the power required to process this data over a single +balanced twisted-pair Ethernet connection. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/tproxy.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/tproxy.rst index c6c011a22..7f7c1ff6f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/tproxy.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/tproxy.rst @@ -1,109 +1,109 @@ -.. SPDX-License-Identifier: GPL-2.0 - -========================= -Transparent proxy support -========================= - -This feature adds Linux 2.2-like transparent proxy support to current kernels. -To use it, enable the socket match and the TPROXY target in your kernel config. -You will need policy routing too, so be sure to enable that as well. - -From Linux 4.18 transparent proxy support is also available in nf_tables. - -1. Making non-local sockets work -================================ - -The idea is that you identify packets with destination address matching a local -socket on your box, set the packet mark to a certain value:: - - # iptables -t mangle -N DIVERT - # iptables -t mangle -A PREROUTING -p tcp -m socket --transparent -j DIVERT - # iptables -t mangle -A DIVERT -j MARK --set-mark 1 - # iptables -t mangle -A DIVERT -j ACCEPT - -Alternatively you can do this in nft with the following commands:: - - # nft add table filter - # nft add chain filter divert "{ type filter hook prerouting priority -150; }" - # nft add rule filter divert meta l4proto tcp socket transparent 1 meta mark set 1 accept - -And then match on that value using policy routing to have those packets -delivered locally:: - - # ip rule add fwmark 1 lookup 100 - # ip route add local 0.0.0.0/0 dev lo table 100 - -Because of certain restrictions in the IPv4 routing output code you'll have to -modify your application to allow it to send datagrams _from_ non-local IP -addresses. All you have to do is enable the (SOL_IP, IP_TRANSPARENT) socket -option before calling bind:: - - fd = socket(AF_INET, SOCK_STREAM, 0); - /* - 8< -*/ - int value = 1; - setsockopt(fd, SOL_IP, IP_TRANSPARENT, &value, sizeof(value)); - /* - 8< -*/ - name.sin_family = AF_INET; - name.sin_port = htons(0xCAFE); - name.sin_addr.s_addr = htonl(0xDEADBEEF); - bind(fd, &name, sizeof(name)); - -A trivial patch for netcat is available here: -http://people.netfilter.org/hidden/tproxy/netcat-ip_transparent-support.patch - - -2. Redirecting traffic -====================== - -Transparent proxying often involves "intercepting" traffic on a router. This is -usually done with the iptables REDIRECT target; however, there are serious -limitations of that method. One of the major issues is that it actually -modifies the packets to change the destination address -- which might not be -acceptable in certain situations. (Think of proxying UDP for example: you won't -be able to find out the original destination address. Even in case of TCP -getting the original destination address is racy.) - -The 'TPROXY' target provides similar functionality without relying on NAT. Simply -add rules like this to the iptables ruleset above:: - - # iptables -t mangle -A PREROUTING -p tcp --dport 80 -j TPROXY \ - --tproxy-mark 0x1/0x1 --on-port 50080 - -Or the following rule to nft: - -# nft add rule filter divert tcp dport 80 tproxy to :50080 meta mark set 1 accept - -Note that for this to work you'll have to modify the proxy to enable (SOL_IP, -IP_TRANSPARENT) for the listening socket. - -As an example implementation, tcprdr is available here: -https://git.breakpoint.cc/cgit/fw/tcprdr.git/ -This tool is written by Florian Westphal and it was used for testing during the -nf_tables implementation. - -3. Iptables and nf_tables extensions -==================================== - -To use tproxy you'll need to have the following modules compiled for iptables: - - - NETFILTER_XT_MATCH_SOCKET - - NETFILTER_XT_TARGET_TPROXY - -Or the floowing modules for nf_tables: - - - NFT_SOCKET - - NFT_TPROXY - -4. Application support -====================== - -4.1. Squid ----------- - -Squid 3.HEAD has support built-in. To use it, pass -'--enable-linux-netfilter' to configure and set the 'tproxy' option on -the HTTP listener you redirect traffic to with the TPROXY iptables -target. - -For more information please consult the following page on the Squid -wiki: http://wiki.squid-cache.org/Features/Tproxy4 +.. SPDX-License-Identifier: GPL-2.0 + +========================= +Transparent proxy support +========================= + +This feature adds Linux 2.2-like transparent proxy support to current kernels. +To use it, enable the socket match and the TPROXY target in your kernel config. +You will need policy routing too, so be sure to enable that as well. + +From Linux 4.18 transparent proxy support is also available in nf_tables. + +1. Making non-local sockets work +================================ + +The idea is that you identify packets with destination address matching a local +socket on your box, set the packet mark to a certain value:: + + # iptables -t mangle -N DIVERT + # iptables -t mangle -A PREROUTING -p tcp -m socket --transparent -j DIVERT + # iptables -t mangle -A DIVERT -j MARK --set-mark 1 + # iptables -t mangle -A DIVERT -j ACCEPT + +Alternatively you can do this in nft with the following commands:: + + # nft add table filter + # nft add chain filter divert "{ type filter hook prerouting priority -150; }" + # nft add rule filter divert meta l4proto tcp socket transparent 1 meta mark set 1 accept + +And then match on that value using policy routing to have those packets +delivered locally:: + + # ip rule add fwmark 1 lookup 100 + # ip route add local 0.0.0.0/0 dev lo table 100 + +Because of certain restrictions in the IPv4 routing output code you'll have to +modify your application to allow it to send datagrams _from_ non-local IP +addresses. All you have to do is enable the (SOL_IP, IP_TRANSPARENT) socket +option before calling bind:: + + fd = socket(AF_INET, SOCK_STREAM, 0); + /* - 8< -*/ + int value = 1; + setsockopt(fd, SOL_IP, IP_TRANSPARENT, &value, sizeof(value)); + /* - 8< -*/ + name.sin_family = AF_INET; + name.sin_port = htons(0xCAFE); + name.sin_addr.s_addr = htonl(0xDEADBEEF); + bind(fd, &name, sizeof(name)); + +A trivial patch for netcat is available here: +http://people.netfilter.org/hidden/tproxy/netcat-ip_transparent-support.patch + + +2. Redirecting traffic +====================== + +Transparent proxying often involves "intercepting" traffic on a router. This is +usually done with the iptables REDIRECT target; however, there are serious +limitations of that method. One of the major issues is that it actually +modifies the packets to change the destination address -- which might not be +acceptable in certain situations. (Think of proxying UDP for example: you won't +be able to find out the original destination address. Even in case of TCP +getting the original destination address is racy.) + +The 'TPROXY' target provides similar functionality without relying on NAT. Simply +add rules like this to the iptables ruleset above:: + + # iptables -t mangle -A PREROUTING -p tcp --dport 80 -j TPROXY \ + --tproxy-mark 0x1/0x1 --on-port 50080 + +Or the following rule to nft: + +# nft add rule filter divert tcp dport 80 tproxy to :50080 meta mark set 1 accept + +Note that for this to work you'll have to modify the proxy to enable (SOL_IP, +IP_TRANSPARENT) for the listening socket. + +As an example implementation, tcprdr is available here: +https://git.breakpoint.cc/cgit/fw/tcprdr.git/ +This tool is written by Florian Westphal and it was used for testing during the +nf_tables implementation. + +3. Iptables and nf_tables extensions +==================================== + +To use tproxy you'll need to have the following modules compiled for iptables: + + - NETFILTER_XT_MATCH_SOCKET + - NETFILTER_XT_TARGET_TPROXY + +Or the floowing modules for nf_tables: + + - NFT_SOCKET + - NFT_TPROXY + +4. Application support +====================== + +4.1. Squid +---------- + +Squid 3.HEAD has support built-in. To use it, pass +'--enable-linux-netfilter' to configure and set the 'tproxy' option on +the HTTP listener you redirect traffic to with the TPROXY iptables +target. + +For more information please consult the following page on the Squid +wiki: http://wiki.squid-cache.org/Features/Tproxy4 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/xsk-tx-metadata.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/xsk-tx-metadata.rst index 5054ed5ca..e76b0cfc3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/networking/xsk-tx-metadata.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/networking/xsk-tx-metadata.rst @@ -1,85 +1,85 @@ -.. SPDX-License-Identifier: GPL-2.0 - -================== -AF_XDP TX Metadata -================== - -This document describes how to enable offloads when transmitting packets -via :doc:`af_xdp`. Refer to :doc:`xdp-rx-metadata` on how to access similar -metadata on the receive side. - -General Design -============== - -The headroom for the metadata is reserved via ``tx_metadata_len`` and -``XDP_UMEM_TX_METADATA_LEN`` flag in ``struct xdp_umem_reg``. The metadata -length is therefore the same for every socket that shares the same umem. -The metadata layout is a fixed UAPI, refer to ``union xsk_tx_metadata`` in -``include/uapi/linux/if_xdp.h``. Thus, generally, the ``tx_metadata_len`` -field above should contain ``sizeof(union xsk_tx_metadata)``. - -Note that in the original implementation the ``XDP_UMEM_TX_METADATA_LEN`` -flag was not required. Applications might attempt to create a umem -with a flag first and if it fails, do another attempt without a flag. - -The headroom and the metadata itself should be located right before -``xdp_desc->addr`` in the umem frame. Within a frame, the metadata -layout is as follows:: - - tx_metadata_len - / \ - +-----------------+---------+----------------------------+ - | xsk_tx_metadata | padding | payload | - +-----------------+---------+----------------------------+ - ^ - | - xdp_desc->addr - -An AF_XDP application can request headrooms larger than ``sizeof(struct -xsk_tx_metadata)``. The kernel will ignore the padding (and will still -use ``xdp_desc->addr - tx_metadata_len`` to locate -the ``xsk_tx_metadata``). For the frames that shouldn't carry -any metadata (i.e., the ones that don't have ``XDP_TX_METADATA`` option), -the metadata area is ignored by the kernel as well. - -The flags field enables the particular offload: - -- ``XDP_TXMD_FLAGS_TIMESTAMP``: requests the device to put transmission - timestamp into ``tx_timestamp`` field of ``union xsk_tx_metadata``. -- ``XDP_TXMD_FLAGS_CHECKSUM``: requests the device to calculate L4 - checksum. ``csum_start`` specifies byte offset of where the checksumming - should start and ``csum_offset`` specifies byte offset where the - device should store the computed checksum. - -Besides the flags above, in order to trigger the offloads, the first -packet's ``struct xdp_desc`` descriptor should set ``XDP_TX_METADATA`` -bit in the ``options`` field. Also note that in a multi-buffer packet -only the first chunk should carry the metadata. - -Software TX Checksum -==================== - -For development and testing purposes its possible to pass -``XDP_UMEM_TX_SW_CSUM`` flag to ``XDP_UMEM_REG`` UMEM registration call. -In this case, when running in ``XDK_COPY`` mode, the TX checksum -is calculated on the CPU. Do not enable this option in production because -it will negatively affect performance. - -Querying Device Capabilities -============================ - -Every devices exports its offloads capabilities via netlink netdev family. -Refer to ``xsk-flags`` features bitmask in -``Documentation/netlink/specs/netdev.yaml``. - -- ``tx-timestamp``: device supports ``XDP_TXMD_FLAGS_TIMESTAMP`` -- ``tx-checksum``: device supports ``XDP_TXMD_FLAGS_CHECKSUM`` - -See ``tools/net/ynl/samples/netdev.c`` on how to query this information. - -Example -======= - -See ``tools/testing/selftests/bpf/xdp_hw_metadata.c`` for an example -program that handles TX metadata. Also see https://github.com/fomichev/xskgen -for a more bare-bones example. +.. SPDX-License-Identifier: GPL-2.0 + +================== +AF_XDP TX Metadata +================== + +This document describes how to enable offloads when transmitting packets +via :doc:`af_xdp`. Refer to :doc:`xdp-rx-metadata` on how to access similar +metadata on the receive side. + +General Design +============== + +The headroom for the metadata is reserved via ``tx_metadata_len`` and +``XDP_UMEM_TX_METADATA_LEN`` flag in ``struct xdp_umem_reg``. The metadata +length is therefore the same for every socket that shares the same umem. +The metadata layout is a fixed UAPI, refer to ``union xsk_tx_metadata`` in +``include/uapi/linux/if_xdp.h``. Thus, generally, the ``tx_metadata_len`` +field above should contain ``sizeof(union xsk_tx_metadata)``. + +Note that in the original implementation the ``XDP_UMEM_TX_METADATA_LEN`` +flag was not required. Applications might attempt to create a umem +with a flag first and if it fails, do another attempt without a flag. + +The headroom and the metadata itself should be located right before +``xdp_desc->addr`` in the umem frame. Within a frame, the metadata +layout is as follows:: + + tx_metadata_len + / \ + +-----------------+---------+----------------------------+ + | xsk_tx_metadata | padding | payload | + +-----------------+---------+----------------------------+ + ^ + | + xdp_desc->addr + +An AF_XDP application can request headrooms larger than ``sizeof(struct +xsk_tx_metadata)``. The kernel will ignore the padding (and will still +use ``xdp_desc->addr - tx_metadata_len`` to locate +the ``xsk_tx_metadata``). For the frames that shouldn't carry +any metadata (i.e., the ones that don't have ``XDP_TX_METADATA`` option), +the metadata area is ignored by the kernel as well. + +The flags field enables the particular offload: + +- ``XDP_TXMD_FLAGS_TIMESTAMP``: requests the device to put transmission + timestamp into ``tx_timestamp`` field of ``union xsk_tx_metadata``. +- ``XDP_TXMD_FLAGS_CHECKSUM``: requests the device to calculate L4 + checksum. ``csum_start`` specifies byte offset of where the checksumming + should start and ``csum_offset`` specifies byte offset where the + device should store the computed checksum. + +Besides the flags above, in order to trigger the offloads, the first +packet's ``struct xdp_desc`` descriptor should set ``XDP_TX_METADATA`` +bit in the ``options`` field. Also note that in a multi-buffer packet +only the first chunk should carry the metadata. + +Software TX Checksum +==================== + +For development and testing purposes its possible to pass +``XDP_UMEM_TX_SW_CSUM`` flag to ``XDP_UMEM_REG`` UMEM registration call. +In this case, when running in ``XDK_COPY`` mode, the TX checksum +is calculated on the CPU. Do not enable this option in production because +it will negatively affect performance. + +Querying Device Capabilities +============================ + +Every devices exports its offloads capabilities via netlink netdev family. +Refer to ``xsk-flags`` features bitmask in +``Documentation/netlink/specs/netdev.yaml``. + +- ``tx-timestamp``: device supports ``XDP_TXMD_FLAGS_TIMESTAMP`` +- ``tx-checksum``: device supports ``XDP_TXMD_FLAGS_CHECKSUM`` + +See ``tools/net/ynl/samples/netdev.c`` on how to query this information. + +Example +======= + +See ``tools/testing/selftests/bpf/xdp_hw_metadata.c`` for an example +program that handles TX metadata. Also see https://github.com/fomichev/xskgen +for a more bare-bones example. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/power/s2ram.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/power/s2ram.rst index 3301e1274..d739aa7c7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/power/s2ram.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/power/s2ram.rst @@ -1,87 +1,87 @@ -======================== -How to get s2ram working -======================== - -2006 Linus Torvalds -2006 Pavel Machek - -1) Check suspend.sf.net, program s2ram there has long whitelist of - "known ok" machines, along with tricks to use on each one. - -2) If that does not help, try reading tricks.txt and - video.txt. Perhaps problem is as simple as broken module, and - simple module unload can fix it. - -3) You can use Linus' TRACE_RESUME infrastructure, described below. - -Using TRACE_RESUME -~~~~~~~~~~~~~~~~~~ - -I've been working at making the machines I have able to STR, and almost -always it's a driver that is buggy. Thank God for the suspend/resume -debugging - the thing that Chuck tried to disable. That's often the _only_ -way to debug these things, and it's actually pretty powerful (but -time-consuming - having to insert TRACE_RESUME() markers into the device -driver that doesn't resume and recompile and reboot). - -Anyway, the way to debug this for people who are interested (have a -machine that doesn't boot) is: - - - enable PM_DEBUG, and PM_TRACE - - - use a script like this:: - - #!/bin/sh - sync - echo 1 > /sys/power/pm_trace - echo mem > /sys/power/state - - to suspend - - - if it doesn't come back up (which is usually the problem), reboot by - holding the power button down, and look at the dmesg output for things - like:: - - Magic number: 4:156:725 - hash matches drivers/base/power/resume.c:28 - hash matches device 0000:01:00.0 - - which means that the last trace event was just before trying to resume - device 0000:01:00.0. Then figure out what driver is controlling that - device (lspci and /sys/devices/pci* is your friend), and see if you can - fix it, disable it, or trace into its resume function. - - If no device matches the hash (or any matches appear to be false positives), - the culprit may be a device from a loadable kernel module that is not loaded - until after the hash is checked. You can check the hash against the current - devices again after more modules are loaded using sysfs:: - - cat /sys/power/pm_trace_dev_match - -For example, the above happens to be the VGA device on my EVO, which I -used to run with "radeonfb" (it's an ATI Radeon mobility). It turns out -that "radeonfb" simply cannot resume that device - it tries to set the -PLL's, and it just _hangs_. Using the regular VGA console and letting X -resume it instead works fine. - -NOTE -==== -pm_trace uses the system's Real Time Clock (RTC) to save the magic number. -Reason for this is that the RTC is the only reliably available piece of -hardware during resume operations where a value can be set that will -survive a reboot. - -pm_trace is not compatible with asynchronous suspend, so it turns -asynchronous suspend off (which may work around timing or -ordering-sensitive bugs). - -Consequence is that after a resume (even if it is successful) your system -clock will have a value corresponding to the magic number instead of the -correct date/time! It is therefore advisable to use a program like ntp-date -or rdate to reset the correct date/time from an external time source when -using this trace option. - -As the clock keeps ticking it is also essential that the reboot is done -quickly after the resume failure. The trace option does not use the seconds -or the low order bits of the minutes of the RTC, but a too long delay will -corrupt the magic value. +======================== +How to get s2ram working +======================== + +2006 Linus Torvalds +2006 Pavel Machek + +1) Check suspend.sf.net, program s2ram there has long whitelist of + "known ok" machines, along with tricks to use on each one. + +2) If that does not help, try reading tricks.txt and + video.txt. Perhaps problem is as simple as broken module, and + simple module unload can fix it. + +3) You can use Linus' TRACE_RESUME infrastructure, described below. + +Using TRACE_RESUME +~~~~~~~~~~~~~~~~~~ + +I've been working at making the machines I have able to STR, and almost +always it's a driver that is buggy. Thank God for the suspend/resume +debugging - the thing that Chuck tried to disable. That's often the _only_ +way to debug these things, and it's actually pretty powerful (but +time-consuming - having to insert TRACE_RESUME() markers into the device +driver that doesn't resume and recompile and reboot). + +Anyway, the way to debug this for people who are interested (have a +machine that doesn't boot) is: + + - enable PM_DEBUG, and PM_TRACE + + - use a script like this:: + + #!/bin/sh + sync + echo 1 > /sys/power/pm_trace + echo mem > /sys/power/state + + to suspend + + - if it doesn't come back up (which is usually the problem), reboot by + holding the power button down, and look at the dmesg output for things + like:: + + Magic number: 4:156:725 + hash matches drivers/base/power/resume.c:28 + hash matches device 0000:01:00.0 + + which means that the last trace event was just before trying to resume + device 0000:01:00.0. Then figure out what driver is controlling that + device (lspci and /sys/devices/pci* is your friend), and see if you can + fix it, disable it, or trace into its resume function. + + If no device matches the hash (or any matches appear to be false positives), + the culprit may be a device from a loadable kernel module that is not loaded + until after the hash is checked. You can check the hash against the current + devices again after more modules are loaded using sysfs:: + + cat /sys/power/pm_trace_dev_match + +For example, the above happens to be the VGA device on my EVO, which I +used to run with "radeonfb" (it's an ATI Radeon mobility). It turns out +that "radeonfb" simply cannot resume that device - it tries to set the +PLL's, and it just _hangs_. Using the regular VGA console and letting X +resume it instead works fine. + +NOTE +==== +pm_trace uses the system's Real Time Clock (RTC) to save the magic number. +Reason for this is that the RTC is the only reliably available piece of +hardware during resume operations where a value can be set that will +survive a reboot. + +pm_trace is not compatible with asynchronous suspend, so it turns +asynchronous suspend off (which may work around timing or +ordering-sensitive bugs). + +Consequence is that after a resume (even if it is successful) your system +clock will have a value corresponding to the magic number instead of the +correct date/time! It is therefore advisable to use a program like ntp-date +or rdate to reset the correct date/time from an external time source when +using this trace option. + +As the clock keeps ticking it is also essential that the reboot is done +quickly after the resume failure. The trace option does not use the seconds +or the low order bits of the minutes of the RTC, but a too long delay will +corrupt the magic value. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/process/kernel-driver-statement.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/process/kernel-driver-statement.rst index e11903df2..a849790a6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/process/kernel-driver-statement.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/process/kernel-driver-statement.rst @@ -1,202 +1,202 @@ -.. _process_statement_driver: - -Kernel Driver Statement ------------------------ - -Position Statement on Linux Kernel Modules -========================================== - - -We, the undersigned Linux kernel developers, consider any closed-source -Linux kernel module or driver to be harmful and undesirable. We have -repeatedly found them to be detrimental to Linux users, businesses, and -the greater Linux ecosystem. Such modules negate the openness, -stability, flexibility, and maintainability of the Linux development -model and shut their users off from the expertise of the Linux -community. Vendors that provide closed-source kernel modules force their -customers to give up key Linux advantages or choose new vendors. -Therefore, in order to take full advantage of the cost savings and -shared support benefits open source has to offer, we urge vendors to -adopt a policy of supporting their customers on Linux with open-source -kernel code. - -We speak only for ourselves, and not for any company we might work for -today, have in the past, or will in the future. - - - Dave Airlie - - Nick Andrew - - Jens Axboe - - Ralf Baechle - - Felipe Balbi - - Ohad Ben-Cohen - - Muli Ben-Yehuda - - Jiri Benc - - Arnd Bergmann - - Thomas Bogendoerfer - - Vitaly Bordug - - James Bottomley - - Josh Boyer - - Neil Brown - - Mark Brown - - David Brownell - - Michael Buesch - - Franck Bui-Huu - - Adrian Bunk - - François Cami - - Ralph Campbell - - Luiz Fernando N. Capitulino - - Mauro Carvalho Chehab - - Denis Cheng - - Jonathan Corbet - - Glauber Costa - - Alan Cox - - Magnus Damm - - Ahmed S. Darwish - - Robert P. J. Day - - Hans de Goede - - Arnaldo Carvalho de Melo - - Helge Deller - - Jean Delvare - - Mathieu Desnoyers - - Sven-Thorsten Dietrich - - Alexey Dobriyan - - Daniel Drake - - Alex Dubov - - Randy Dunlap - - Michael Ellerman - - Pekka Enberg - - Jan Engelhardt - - Mark Fasheh - - J. Bruce Fields - - Larry Finger - - Jeremy Fitzhardinge - - Mike Frysinger - - Kumar Gala - - Robin Getz - - Liam Girdwood - - Jan-Benedict Glaw - - Thomas Gleixner - - Brice Goglin - - Cyrill Gorcunov - - Andy Gospodarek - - Thomas Graf - - Krzysztof Halasa - - Harvey Harrison - - Stephen Hemminger - - Michael Hennerich - - Tejun Heo - - Benjamin Herrenschmidt - - Kristian Høgsberg - - Henrique de Moraes Holschuh - - Marcel Holtmann - - Mike Isely - - Takashi Iwai - - Olof Johansson - - Dave Jones - - Jesper Juhl - - Matthias Kaehlcke - - Kenji Kaneshige - - Jan Kara - - Jeremy Kerr - - Russell King - - Olaf Kirch - - Roel Kluin - - Hans-Jürgen Koch - - Auke Kok - - Peter Korsgaard - - Jiri Kosina - - Aaro Koskinen - - Mariusz Kozlowski - - Greg Kroah-Hartman - - Michael Krufky - - Aneesh Kumar - - Clemens Ladisch - - Christoph Lameter - - Gunnar Larisch - - Anders Larsen - - Grant Likely - - John W. Linville - - Yinghai Lu - - Tony Luck - - Pavel Machek - - Matt Mackall - - Paul Mackerras - - Roland McGrath - - Patrick McHardy - - Kyle McMartin - - Paul Menage - - Thierry Merle - - Eric Miao - - Akinobu Mita - - Ingo Molnar - - James Morris - - Andrew Morton - - Paul Mundt - - Oleg Nesterov - - Luca Olivetti - - S.Çağlar Onur - - Pierre Ossman - - Keith Owens - - Venkatesh Pallipadi - - Nick Piggin - - Nicolas Pitre - - Evgeniy Polyakov - - Richard Purdie - - Mike Rapoport - - Sam Ravnborg - - Gerrit Renker - - Stefan Richter - - David Rientjes - - Luis R. Rodriguez - - Stefan Roese - - Francois Romieu - - Rami Rosen - - Stephen Rothwell - - Maciej W. Rozycki - - Mark Salyzyn - - Yoshinori Sato - - Deepak Saxena - - Holger Schurig - - Amit Shah - - Yoshihiro Shimoda - - Sergei Shtylyov - - Kay Sievers - - Sebastian Siewior - - Rik Snel - - Jes Sorensen - - Alexey Starikovskiy - - Alan Stern - - Timur Tabi - - Hirokazu Takata - - Eliezer Tamir - - Eugene Teo - - Doug Thompson - - FUJITA Tomonori - - Dmitry Torokhov - - Marcelo Tosatti - - Steven Toth - - Theodore Tso - - Matthias Urlichs - - Geert Uytterhoeven - - Arjan van de Ven - - Ivo van Doorn - - Rik van Riel - - Wim Van Sebroeck - - Hans Verkuil - - Horst H. von Brand - - Dmitri Vorobiev - - Anton Vorontsov - - Daniel Walker - - Johannes Weiner - - Harald Welte - - Matthew Wilcox - - Dan J. Williams - - Darrick J. Wong - - David Woodhouse - - Chris Wright - - Bryan Wu - - Rafael J. Wysocki - - Herbert Xu - - Vlad Yasevich - - Peter Zijlstra - - Bartlomiej Zolnierkiewicz +.. _process_statement_driver: + +Kernel Driver Statement +----------------------- + +Position Statement on Linux Kernel Modules +========================================== + + +We, the undersigned Linux kernel developers, consider any closed-source +Linux kernel module or driver to be harmful and undesirable. We have +repeatedly found them to be detrimental to Linux users, businesses, and +the greater Linux ecosystem. Such modules negate the openness, +stability, flexibility, and maintainability of the Linux development +model and shut their users off from the expertise of the Linux +community. Vendors that provide closed-source kernel modules force their +customers to give up key Linux advantages or choose new vendors. +Therefore, in order to take full advantage of the cost savings and +shared support benefits open source has to offer, we urge vendors to +adopt a policy of supporting their customers on Linux with open-source +kernel code. + +We speak only for ourselves, and not for any company we might work for +today, have in the past, or will in the future. + + - Dave Airlie + - Nick Andrew + - Jens Axboe + - Ralf Baechle + - Felipe Balbi + - Ohad Ben-Cohen + - Muli Ben-Yehuda + - Jiri Benc + - Arnd Bergmann + - Thomas Bogendoerfer + - Vitaly Bordug + - James Bottomley + - Josh Boyer + - Neil Brown + - Mark Brown + - David Brownell + - Michael Buesch + - Franck Bui-Huu + - Adrian Bunk + - François Cami + - Ralph Campbell + - Luiz Fernando N. Capitulino + - Mauro Carvalho Chehab + - Denis Cheng + - Jonathan Corbet + - Glauber Costa + - Alan Cox + - Magnus Damm + - Ahmed S. Darwish + - Robert P. J. Day + - Hans de Goede + - Arnaldo Carvalho de Melo + - Helge Deller + - Jean Delvare + - Mathieu Desnoyers + - Sven-Thorsten Dietrich + - Alexey Dobriyan + - Daniel Drake + - Alex Dubov + - Randy Dunlap + - Michael Ellerman + - Pekka Enberg + - Jan Engelhardt + - Mark Fasheh + - J. Bruce Fields + - Larry Finger + - Jeremy Fitzhardinge + - Mike Frysinger + - Kumar Gala + - Robin Getz + - Liam Girdwood + - Jan-Benedict Glaw + - Thomas Gleixner + - Brice Goglin + - Cyrill Gorcunov + - Andy Gospodarek + - Thomas Graf + - Krzysztof Halasa + - Harvey Harrison + - Stephen Hemminger + - Michael Hennerich + - Tejun Heo + - Benjamin Herrenschmidt + - Kristian Høgsberg + - Henrique de Moraes Holschuh + - Marcel Holtmann + - Mike Isely + - Takashi Iwai + - Olof Johansson + - Dave Jones + - Jesper Juhl + - Matthias Kaehlcke + - Kenji Kaneshige + - Jan Kara + - Jeremy Kerr + - Russell King + - Olaf Kirch + - Roel Kluin + - Hans-Jürgen Koch + - Auke Kok + - Peter Korsgaard + - Jiri Kosina + - Aaro Koskinen + - Mariusz Kozlowski + - Greg Kroah-Hartman + - Michael Krufky + - Aneesh Kumar + - Clemens Ladisch + - Christoph Lameter + - Gunnar Larisch + - Anders Larsen + - Grant Likely + - John W. Linville + - Yinghai Lu + - Tony Luck + - Pavel Machek + - Matt Mackall + - Paul Mackerras + - Roland McGrath + - Patrick McHardy + - Kyle McMartin + - Paul Menage + - Thierry Merle + - Eric Miao + - Akinobu Mita + - Ingo Molnar + - James Morris + - Andrew Morton + - Paul Mundt + - Oleg Nesterov + - Luca Olivetti + - S.Çağlar Onur + - Pierre Ossman + - Keith Owens + - Venkatesh Pallipadi + - Nick Piggin + - Nicolas Pitre + - Evgeniy Polyakov + - Richard Purdie + - Mike Rapoport + - Sam Ravnborg + - Gerrit Renker + - Stefan Richter + - David Rientjes + - Luis R. Rodriguez + - Stefan Roese + - Francois Romieu + - Rami Rosen + - Stephen Rothwell + - Maciej W. Rozycki + - Mark Salyzyn + - Yoshinori Sato + - Deepak Saxena + - Holger Schurig + - Amit Shah + - Yoshihiro Shimoda + - Sergei Shtylyov + - Kay Sievers + - Sebastian Siewior + - Rik Snel + - Jes Sorensen + - Alexey Starikovskiy + - Alan Stern + - Timur Tabi + - Hirokazu Takata + - Eliezer Tamir + - Eugene Teo + - Doug Thompson + - FUJITA Tomonori + - Dmitry Torokhov + - Marcelo Tosatti + - Steven Toth + - Theodore Tso + - Matthias Urlichs + - Geert Uytterhoeven + - Arjan van de Ven + - Ivo van Doorn + - Rik van Riel + - Wim Van Sebroeck + - Hans Verkuil + - Horst H. von Brand + - Dmitri Vorobiev + - Anton Vorontsov + - Daniel Walker + - Johannes Weiner + - Harald Welte + - Matthew Wilcox + - Dan J. Williams + - Darrick J. Wong + - David Woodhouse + - Chris Wright + - Bryan Wu + - Rafael J. Wysocki + - Herbert Xu + - Vlad Yasevich + - Peter Zijlstra + - Bartlomiej Zolnierkiewicz diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/scheduler/sched-domains.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/scheduler/sched-domains.rst index 998800d8f..5e996fe97 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/scheduler/sched-domains.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/scheduler/sched-domains.rst @@ -1,81 +1,81 @@ -================= -Scheduler Domains -================= - -Each CPU has a "base" scheduling domain (struct sched_domain). The domain -hierarchy is built from these base domains via the ->parent pointer. ->parent -MUST be NULL terminated, and domain structures should be per-CPU as they are -locklessly updated. - -Each scheduling domain spans a number of CPUs (stored in the ->span field). -A domain's span MUST be a superset of it child's span (this restriction could -be relaxed if the need arises), and a base domain for CPU i MUST span at least -i. The top domain for each CPU will generally span all CPUs in the system -although strictly it doesn't have to, but this could lead to a case where some -CPUs will never be given tasks to run unless the CPUs allowed mask is -explicitly set. A sched domain's span means "balance process load among these -CPUs". - -Each scheduling domain must have one or more CPU groups (struct sched_group) -which are organised as a circular one way linked list from the ->groups -pointer. The union of cpumasks of these groups MUST be the same as the -domain's span. The group pointed to by the ->groups pointer MUST contain the CPU -to which the domain belongs. Groups may be shared among CPUs as they contain -read only data after they have been set up. The intersection of cpumasks from -any two of these groups may be non empty. If this is the case the SD_OVERLAP -flag is set on the corresponding scheduling domain and its groups may not be -shared between CPUs. - -Balancing within a sched domain occurs between groups. That is, each group -is treated as one entity. The load of a group is defined as the sum of the -load of each of its member CPUs, and only when the load of a group becomes -out of balance are tasks moved between groups. - -In kernel/sched/core.c, sched_balance_trigger() is run periodically on each CPU -through sched_tick(). It raises a softirq after the next regularly scheduled -rebalancing event for the current runqueue has arrived. The actual load -balancing workhorse, sched_balance_softirq()->sched_balance_domains(), is then run -in softirq context (SCHED_SOFTIRQ). - -The latter function takes two arguments: the runqueue of current CPU and whether -the CPU was idle at the time the sched_tick() happened and iterates over all -sched domains our CPU is on, starting from its base domain and going up the ->parent -chain. While doing that, it checks to see if the current domain has exhausted its -rebalance interval. If so, it runs sched_balance_rq() on that domain. It then checks -the parent sched_domain (if it exists), and the parent of the parent and so -forth. - -Initially, sched_balance_rq() finds the busiest group in the current sched domain. -If it succeeds, it looks for the busiest runqueue of all the CPUs' runqueues in -that group. If it manages to find such a runqueue, it locks both our initial -CPU's runqueue and the newly found busiest one and starts moving tasks from it -to our runqueue. The exact number of tasks amounts to an imbalance previously -computed while iterating over this sched domain's groups. - -Implementing sched domains -========================== - -The "base" domain will "span" the first level of the hierarchy. In the case -of SMT, you'll span all siblings of the physical CPU, with each group being -a single virtual CPU. - -In SMP, the parent of the base domain will span all physical CPUs in the -node. Each group being a single physical CPU. Then with NUMA, the parent -of the SMP domain will span the entire machine, with each group having the -cpumask of a node. Or, you could do multi-level NUMA or Opteron, for example, -might have just one domain covering its one NUMA level. - -The implementor should read comments in include/linux/sched/sd_flags.h: -SD_* to get an idea of the specifics and what to tune for the SD flags -of a sched_domain. - -Architectures may override the generic domain builder and the default SD flags -for a given topology level by creating a sched_domain_topology_level array and -calling set_sched_topology() with this array as the parameter. - -The sched-domains debugging infrastructure can be enabled by enabling -CONFIG_SCHED_DEBUG and adding 'sched_verbose' to your cmdline. If you -forgot to tweak your cmdline, you can also flip the -/sys/kernel/debug/sched/verbose knob. This enables an error checking parse of -the sched domains which should catch most possible errors (described above). It -also prints out the domain structure in a visual format. +================= +Scheduler Domains +================= + +Each CPU has a "base" scheduling domain (struct sched_domain). The domain +hierarchy is built from these base domains via the ->parent pointer. ->parent +MUST be NULL terminated, and domain structures should be per-CPU as they are +locklessly updated. + +Each scheduling domain spans a number of CPUs (stored in the ->span field). +A domain's span MUST be a superset of it child's span (this restriction could +be relaxed if the need arises), and a base domain for CPU i MUST span at least +i. The top domain for each CPU will generally span all CPUs in the system +although strictly it doesn't have to, but this could lead to a case where some +CPUs will never be given tasks to run unless the CPUs allowed mask is +explicitly set. A sched domain's span means "balance process load among these +CPUs". + +Each scheduling domain must have one or more CPU groups (struct sched_group) +which are organised as a circular one way linked list from the ->groups +pointer. The union of cpumasks of these groups MUST be the same as the +domain's span. The group pointed to by the ->groups pointer MUST contain the CPU +to which the domain belongs. Groups may be shared among CPUs as they contain +read only data after they have been set up. The intersection of cpumasks from +any two of these groups may be non empty. If this is the case the SD_OVERLAP +flag is set on the corresponding scheduling domain and its groups may not be +shared between CPUs. + +Balancing within a sched domain occurs between groups. That is, each group +is treated as one entity. The load of a group is defined as the sum of the +load of each of its member CPUs, and only when the load of a group becomes +out of balance are tasks moved between groups. + +In kernel/sched/core.c, sched_balance_trigger() is run periodically on each CPU +through sched_tick(). It raises a softirq after the next regularly scheduled +rebalancing event for the current runqueue has arrived. The actual load +balancing workhorse, sched_balance_softirq()->sched_balance_domains(), is then run +in softirq context (SCHED_SOFTIRQ). + +The latter function takes two arguments: the runqueue of current CPU and whether +the CPU was idle at the time the sched_tick() happened and iterates over all +sched domains our CPU is on, starting from its base domain and going up the ->parent +chain. While doing that, it checks to see if the current domain has exhausted its +rebalance interval. If so, it runs sched_balance_rq() on that domain. It then checks +the parent sched_domain (if it exists), and the parent of the parent and so +forth. + +Initially, sched_balance_rq() finds the busiest group in the current sched domain. +If it succeeds, it looks for the busiest runqueue of all the CPUs' runqueues in +that group. If it manages to find such a runqueue, it locks both our initial +CPU's runqueue and the newly found busiest one and starts moving tasks from it +to our runqueue. The exact number of tasks amounts to an imbalance previously +computed while iterating over this sched domain's groups. + +Implementing sched domains +========================== + +The "base" domain will "span" the first level of the hierarchy. In the case +of SMT, you'll span all siblings of the physical CPU, with each group being +a single virtual CPU. + +In SMP, the parent of the base domain will span all physical CPUs in the +node. Each group being a single physical CPU. Then with NUMA, the parent +of the SMP domain will span the entire machine, with each group having the +cpumask of a node. Or, you could do multi-level NUMA or Opteron, for example, +might have just one domain covering its one NUMA level. + +The implementor should read comments in include/linux/sched/sd_flags.h: +SD_* to get an idea of the specifics and what to tune for the SD flags +of a sched_domain. + +Architectures may override the generic domain builder and the default SD flags +for a given topology level by creating a sched_domain_topology_level array and +calling set_sched_topology() with this array as the parameter. + +The sched-domains debugging infrastructure can be enabled by enabling +CONFIG_SCHED_DEBUG and adding 'sched_verbose' to your cmdline. If you +forgot to tweak your cmdline, you can also flip the +/sys/kernel/debug/sched/verbose knob. This enables an error checking parse of +the sched domains which should catch most possible errors (described above). It +also prints out the domain structure in a visual format. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/scsi/NinjaSCSI.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/scsi/NinjaSCSI.rst index 6dc12a9fa..999a6ed5b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/scsi/NinjaSCSI.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/scsi/NinjaSCSI.rst @@ -1,164 +1,164 @@ -.. SPDX-License-Identifier: GPL-2.0 - -========================================= -WorkBiT NinjaSCSI-3/32Bi driver for Linux -========================================= - -1. Comment -========== - -This is Workbit corp.'s(http://www.workbit.co.jp/) NinjaSCSI-3 -for Linux. - -2. My Linux environment -======================= - -:Linux kernel: 2.4.7 / 2.2.19 -:pcmcia-cs: 3.1.27 -:gcc: gcc-2.95.4 -:PC card: I-O data PCSC-F (NinjaSCSI-3), - I-O data CBSC-II in 16 bit mode (NinjaSCSI-32Bi) -:SCSI device: I-O data CDPS-PX24 (CD-ROM drive), - Media Intelligent MMO-640GT (Optical disk drive) - -3. Install -========== - -(a) Check your PC card is true "NinjaSCSI-3" card. - - If you installed pcmcia-cs already, pcmcia reports your card as UNKNOWN - card, and write ["WBT", "NinjaSCSI-3", "R1.0"] or some other string to - your console or log file. - - You can also use "cardctl" program (this program is in pcmcia-cs source - code) to get more info. - - :: - - # cat /var/log/messages - ... - Jan 2 03:45:06 lindberg cardmgr[78]: unsupported card in socket 1 - Jan 2 03:45:06 lindberg cardmgr[78]: product info: "WBT", "NinjaSCSI-3", "R1.0" - ... - # cardctl ident - Socket 0: - no product info available - Socket 1: - product info: "IO DATA", "CBSC16 ", "1" - - -(b) Get the Linux kernel source, and extract it to /usr/src. - Because the NinjaSCSI driver requires some SCSI header files in Linux - kernel source, I recommend rebuilding your kernel; this eliminates - some versioning problems. - - :: - - $ cd /usr/src - $ tar -zxvf linux-x.x.x.tar.gz - $ cd linux - $ make config - ... - -(c) If you use this driver with Kernel 2.2, unpack pcmcia-cs in some directory - and make & install. This driver requires the pcmcia-cs header file. - - :: - - $ cd /usr/src - $ tar zxvf cs-pcmcia-cs-3.x.x.tar.gz - ... - -(d) Extract this driver's archive somewhere, and edit Makefile, then do make:: - - $ tar -zxvf nsp_cs-x.x.tar.gz - $ cd nsp_cs-x.x - $ emacs Makefile - ... - $ make - -(e) Copy nsp_cs.ko to suitable place, like /lib/modules//pcmcia/ . - -(f) Add these lines to /etc/pcmcia/config . - - If you use pcmcia-cs-3.1.8 or later, we can use "nsp_cs.conf" file. - So, you don't need to edit file. Just copy to /etc/pcmcia/ . - - :: - - device "nsp_cs" - class "scsi" module "nsp_cs" - - card "WorkBit NinjaSCSI-3" - version "WBT", "NinjaSCSI-3", "R1.0" - bind "nsp_cs" - - card "WorkBit NinjaSCSI-32Bi (16bit)" - version "WORKBIT", "UltraNinja-16", "1" - bind "nsp_cs" - - # OEM - card "WorkBit NinjaSCSI-32Bi (16bit) / IO-DATA" - version "IO DATA", "CBSC16 ", "1" - bind "nsp_cs" - - # OEM - card "WorkBit NinjaSCSI-32Bi (16bit) / KME-1" - version "KME ", "SCSI-CARD-001", "1" - bind "nsp_cs" - card "WorkBit NinjaSCSI-32Bi (16bit) / KME-2" - version "KME ", "SCSI-CARD-002", "1" - bind "nsp_cs" - card "WorkBit NinjaSCSI-32Bi (16bit) / KME-3" - version "KME ", "SCSI-CARD-003", "1" - bind "nsp_cs" - card "WorkBit NinjaSCSI-32Bi (16bit) / KME-4" - version "KME ", "SCSI-CARD-004", "1" - bind "nsp_cs" - -(f) Start (or restart) pcmcia-cs:: - - # /etc/rc.d/rc.pcmcia start (BSD style) - - or:: - - # /etc/init.d/pcmcia start (SYSV style) - - -4. History -========== - -See README.nin_cs . - -5. Caution -========== - -If you eject card when doing some operation for your SCSI device or suspend -your computer, you encount some *BAD* error like disk crash. - -It works good when I using this driver right way. But I'm not guarantee -your data. Please backup your data when you use this driver. - -6. Known Bugs -============= - -In 2.4 kernel, you can't use 640MB Optical disk. This error comes from -high level SCSI driver. - -7. Testing -========== - -Please send me some reports(bug reports etc..) of this software. -When you send report, please tell me these or more. - - - card name - - kernel version - - your SCSI device name(hard drive, CD-ROM, etc...) - -8. Copyright -============ - - See GPL. - - -2001/08/08 yokota@netlab.is.tsukuba.ac.jp +.. SPDX-License-Identifier: GPL-2.0 + +========================================= +WorkBiT NinjaSCSI-3/32Bi driver for Linux +========================================= + +1. Comment +========== + +This is Workbit corp.'s(http://www.workbit.co.jp/) NinjaSCSI-3 +for Linux. + +2. My Linux environment +======================= + +:Linux kernel: 2.4.7 / 2.2.19 +:pcmcia-cs: 3.1.27 +:gcc: gcc-2.95.4 +:PC card: I-O data PCSC-F (NinjaSCSI-3), + I-O data CBSC-II in 16 bit mode (NinjaSCSI-32Bi) +:SCSI device: I-O data CDPS-PX24 (CD-ROM drive), + Media Intelligent MMO-640GT (Optical disk drive) + +3. Install +========== + +(a) Check your PC card is true "NinjaSCSI-3" card. + + If you installed pcmcia-cs already, pcmcia reports your card as UNKNOWN + card, and write ["WBT", "NinjaSCSI-3", "R1.0"] or some other string to + your console or log file. + + You can also use "cardctl" program (this program is in pcmcia-cs source + code) to get more info. + + :: + + # cat /var/log/messages + ... + Jan 2 03:45:06 lindberg cardmgr[78]: unsupported card in socket 1 + Jan 2 03:45:06 lindberg cardmgr[78]: product info: "WBT", "NinjaSCSI-3", "R1.0" + ... + # cardctl ident + Socket 0: + no product info available + Socket 1: + product info: "IO DATA", "CBSC16 ", "1" + + +(b) Get the Linux kernel source, and extract it to /usr/src. + Because the NinjaSCSI driver requires some SCSI header files in Linux + kernel source, I recommend rebuilding your kernel; this eliminates + some versioning problems. + + :: + + $ cd /usr/src + $ tar -zxvf linux-x.x.x.tar.gz + $ cd linux + $ make config + ... + +(c) If you use this driver with Kernel 2.2, unpack pcmcia-cs in some directory + and make & install. This driver requires the pcmcia-cs header file. + + :: + + $ cd /usr/src + $ tar zxvf cs-pcmcia-cs-3.x.x.tar.gz + ... + +(d) Extract this driver's archive somewhere, and edit Makefile, then do make:: + + $ tar -zxvf nsp_cs-x.x.tar.gz + $ cd nsp_cs-x.x + $ emacs Makefile + ... + $ make + +(e) Copy nsp_cs.ko to suitable place, like /lib/modules//pcmcia/ . + +(f) Add these lines to /etc/pcmcia/config . + + If you use pcmcia-cs-3.1.8 or later, we can use "nsp_cs.conf" file. + So, you don't need to edit file. Just copy to /etc/pcmcia/ . + + :: + + device "nsp_cs" + class "scsi" module "nsp_cs" + + card "WorkBit NinjaSCSI-3" + version "WBT", "NinjaSCSI-3", "R1.0" + bind "nsp_cs" + + card "WorkBit NinjaSCSI-32Bi (16bit)" + version "WORKBIT", "UltraNinja-16", "1" + bind "nsp_cs" + + # OEM + card "WorkBit NinjaSCSI-32Bi (16bit) / IO-DATA" + version "IO DATA", "CBSC16 ", "1" + bind "nsp_cs" + + # OEM + card "WorkBit NinjaSCSI-32Bi (16bit) / KME-1" + version "KME ", "SCSI-CARD-001", "1" + bind "nsp_cs" + card "WorkBit NinjaSCSI-32Bi (16bit) / KME-2" + version "KME ", "SCSI-CARD-002", "1" + bind "nsp_cs" + card "WorkBit NinjaSCSI-32Bi (16bit) / KME-3" + version "KME ", "SCSI-CARD-003", "1" + bind "nsp_cs" + card "WorkBit NinjaSCSI-32Bi (16bit) / KME-4" + version "KME ", "SCSI-CARD-004", "1" + bind "nsp_cs" + +(f) Start (or restart) pcmcia-cs:: + + # /etc/rc.d/rc.pcmcia start (BSD style) + + or:: + + # /etc/init.d/pcmcia start (SYSV style) + + +4. History +========== + +See README.nin_cs . + +5. Caution +========== + +If you eject card when doing some operation for your SCSI device or suspend +your computer, you encount some *BAD* error like disk crash. + +It works good when I using this driver right way. But I'm not guarantee +your data. Please backup your data when you use this driver. + +6. Known Bugs +============= + +In 2.4 kernel, you can't use 640MB Optical disk. This error comes from +high level SCSI driver. + +7. Testing +========== + +Please send me some reports(bug reports etc..) of this software. +When you send report, please tell me these or more. + + - card name + - kernel version + - your SCSI device name(hard drive, CD-ROM, etc...) + +8. Copyright +============ + + See GPL. + + +2001/08/08 yokota@netlab.is.tsukuba.ac.jp diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/scsi/cxgb3i.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/scsi/cxgb3i.rst index 6711e40d3..e01f18fbf 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/scsi/cxgb3i.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/scsi/cxgb3i.rst @@ -1,90 +1,90 @@ -.. SPDX-License-Identifier: GPL-2.0 - -================================= -Chelsio S3 iSCSI Driver for Linux -================================= - -Introduction -============ - -The Chelsio T3 ASIC based Adapters (S310, S320, S302, S304, Mezz cards, etc. -series of products) support iSCSI acceleration and iSCSI Direct Data Placement -(DDP) where the hardware handles the expensive byte touching operations, such -as CRC computation and verification, and direct DMA to the final host memory -destination: - - - iSCSI PDU digest generation and verification - - On transmitting, Chelsio S3 h/w computes and inserts the Header and - Data digest into the PDUs. - On receiving, Chelsio S3 h/w computes and verifies the Header and - Data digest of the PDUs. - - - Direct Data Placement (DDP) - - S3 h/w can directly place the iSCSI Data-In or Data-Out PDU's - payload into pre-posted final destination host-memory buffers based - on the Initiator Task Tag (ITT) in Data-In or Target Task Tag (TTT) - in Data-Out PDUs. - - - PDU Transmit and Recovery - - On transmitting, S3 h/w accepts the complete PDU (header + data) - from the host driver, computes and inserts the digests, decomposes - the PDU into multiple TCP segments if necessary, and transmit all - the TCP segments onto the wire. It handles TCP retransmission if - needed. - - On receiving, S3 h/w recovers the iSCSI PDU by reassembling TCP - segments, separating the header and data, calculating and verifying - the digests, then forwarding the header to the host. The payload data, - if possible, will be directly placed into the pre-posted host DDP - buffer. Otherwise, the payload data will be sent to the host too. - -The cxgb3i driver interfaces with open-iscsi initiator and provides the iSCSI -acceleration through Chelsio hardware wherever applicable. - -Using the cxgb3i Driver -======================= - -The following steps need to be taken to accelerates the open-iscsi initiator: - -1. Load the cxgb3i driver: "modprobe cxgb3i" - - The cxgb3i module registers a new transport class "cxgb3i" with open-iscsi. - - * in the case of recompiling the kernel, the cxgb3i selection is located at:: - - Device Drivers - SCSI device support ---> - [*] SCSI low-level drivers ---> - Chelsio S3xx iSCSI support - -2. Create an interface file located under /etc/iscsi/ifaces/ for the new - transport class "cxgb3i". - - The content of the file should be in the following format:: - - iface.transport_name = cxgb3i - iface.net_ifacename = - iface.ipaddress = - - * if iface.ipaddress is specified, needs to be either the - same as the ethX's ip address or an address on the same subnet. Make - sure the ip address is unique in the network. - -3. edit /etc/iscsi/iscsid.conf - The default setting for MaxRecvDataSegmentLength (131072) is too big; - replace with a value no bigger than 15360 (for example 8192):: - - node.conn[0].iscsi.MaxRecvDataSegmentLength = 8192 - - * The login would fail for a normal session if MaxRecvDataSegmentLength is - too big. A error message in the format of - "cxgb3i: ERR! MaxRecvSegmentLength too big. Need to be <= ." - would be logged to dmesg. - -4. To direct open-iscsi traffic to go through cxgb3i's accelerated path, - "-I " option needs to be specified with most of the - iscsiadm command. is the transport interface file created - in step 2. +.. SPDX-License-Identifier: GPL-2.0 + +================================= +Chelsio S3 iSCSI Driver for Linux +================================= + +Introduction +============ + +The Chelsio T3 ASIC based Adapters (S310, S320, S302, S304, Mezz cards, etc. +series of products) support iSCSI acceleration and iSCSI Direct Data Placement +(DDP) where the hardware handles the expensive byte touching operations, such +as CRC computation and verification, and direct DMA to the final host memory +destination: + + - iSCSI PDU digest generation and verification + + On transmitting, Chelsio S3 h/w computes and inserts the Header and + Data digest into the PDUs. + On receiving, Chelsio S3 h/w computes and verifies the Header and + Data digest of the PDUs. + + - Direct Data Placement (DDP) + + S3 h/w can directly place the iSCSI Data-In or Data-Out PDU's + payload into pre-posted final destination host-memory buffers based + on the Initiator Task Tag (ITT) in Data-In or Target Task Tag (TTT) + in Data-Out PDUs. + + - PDU Transmit and Recovery + + On transmitting, S3 h/w accepts the complete PDU (header + data) + from the host driver, computes and inserts the digests, decomposes + the PDU into multiple TCP segments if necessary, and transmit all + the TCP segments onto the wire. It handles TCP retransmission if + needed. + + On receiving, S3 h/w recovers the iSCSI PDU by reassembling TCP + segments, separating the header and data, calculating and verifying + the digests, then forwarding the header to the host. The payload data, + if possible, will be directly placed into the pre-posted host DDP + buffer. Otherwise, the payload data will be sent to the host too. + +The cxgb3i driver interfaces with open-iscsi initiator and provides the iSCSI +acceleration through Chelsio hardware wherever applicable. + +Using the cxgb3i Driver +======================= + +The following steps need to be taken to accelerates the open-iscsi initiator: + +1. Load the cxgb3i driver: "modprobe cxgb3i" + + The cxgb3i module registers a new transport class "cxgb3i" with open-iscsi. + + * in the case of recompiling the kernel, the cxgb3i selection is located at:: + + Device Drivers + SCSI device support ---> + [*] SCSI low-level drivers ---> + Chelsio S3xx iSCSI support + +2. Create an interface file located under /etc/iscsi/ifaces/ for the new + transport class "cxgb3i". + + The content of the file should be in the following format:: + + iface.transport_name = cxgb3i + iface.net_ifacename = + iface.ipaddress = + + * if iface.ipaddress is specified, needs to be either the + same as the ethX's ip address or an address on the same subnet. Make + sure the ip address is unique in the network. + +3. edit /etc/iscsi/iscsid.conf + The default setting for MaxRecvDataSegmentLength (131072) is too big; + replace with a value no bigger than 15360 (for example 8192):: + + node.conn[0].iscsi.MaxRecvDataSegmentLength = 8192 + + * The login would fail for a normal session if MaxRecvDataSegmentLength is + too big. A error message in the format of + "cxgb3i: ERR! MaxRecvSegmentLength too big. Need to be <= ." + would be logged to dmesg. + +4. To direct open-iscsi traffic to go through cxgb3i's accelerated path, + "-I " option needs to be specified with most of the + iscsiadm command. is the transport interface file created + in step 2. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/scsi/dc395x.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/scsi/dc395x.rst index 3042f0322..d92947c17 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/scsi/dc395x.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/scsi/dc395x.rst @@ -1,114 +1,114 @@ -.. SPDX-License-Identifier: GPL-2.0 - -================== -dc395x SCSI driver -================== - -Status ------- -The driver has been tested with CD-R and CD-R/W drives. These should -be safe to use. Testing with hard disks has not been done to any -great degree and caution should be exercised if you want to attempt -to use this driver with hard disks. - -This driver is evolved from `the original 2.4 driver -`_. -Problems, questions and patches should be submitted to the `Linux SCSI -mailing list `_. - -Parameters ----------- -The driver uses the settings from the EEPROM set in the SCSI BIOS -setup. If there is no EEPROM, the driver uses default values. -Both can be overridden by command line parameters (module or kernel -parameters). - -The following parameters are available: - -safe - Default: 0, Acceptable values: 0 or 1 - - If safe is set to 1 then the adapter will use conservative - ("safe") default settings. This sets: - - shortcut for dc395x=7,4,9,15,2,10 - -adapter_id - Default: 7, Acceptable values: 0 to 15 - - Sets the host adapter SCSI ID. - -max_speed - Default: 1, Acceptable value: 0 to 7 - - == ======== - 0 20 Mhz - 1 12.2 Mhz - 2 10 Mhz - 3 8 Mhz - 4 6.7 Mhz - 5 5.8 Hhz - 6 5 Mhz - 7 4 Mhz - == ======== - -dev_mode - Bitmap for device configuration - - DevMode bit definition: - - === ======== ======== ========================================= - Bit Val(hex) Val(dec) Meaning - === ======== ======== ========================================= - 0 0x01 1 Parity check - 1 0x02 2 Synchronous Negotiation - 2 0x04 4 Disconnection - 3 0x08 8 Send Start command on startup. (Not used) - 4 0x10 16 Tagged Command Queueing - 5 0x20 32 Wide Negotiation - === ======== ======== ========================================= - -adapter_mode - Bitmap for adapter configuration - - AdaptMode bit definition - - ===== ======== ======== ==================================================== - Bit Val(hex) Val(dec) Meaning - ===== ======== ======== ==================================================== - 0 0x01 1 Support more than two drives. (Not used) - 1 0x02 2 Use DOS compatible mapping for HDs greater than 1GB. - 2 0x04 4 Reset SCSI Bus on startup. - 3 0x08 8 Active Negation: Improves SCSI Bus noise immunity. - 4 0x10 16 Immediate return on BIOS seek command. (Not used) - (*)5 0x20 32 Check for LUNs >= 1. - ===== ======== ======== ==================================================== - -tags - Default: 3, Acceptable values: 0-5 - - The number of tags is 1<`_. +Problems, questions and patches should be submitted to the `Linux SCSI +mailing list `_. + +Parameters +---------- +The driver uses the settings from the EEPROM set in the SCSI BIOS +setup. If there is no EEPROM, the driver uses default values. +Both can be overridden by command line parameters (module or kernel +parameters). + +The following parameters are available: + +safe + Default: 0, Acceptable values: 0 or 1 + + If safe is set to 1 then the adapter will use conservative + ("safe") default settings. This sets: + + shortcut for dc395x=7,4,9,15,2,10 + +adapter_id + Default: 7, Acceptable values: 0 to 15 + + Sets the host adapter SCSI ID. + +max_speed + Default: 1, Acceptable value: 0 to 7 + + == ======== + 0 20 Mhz + 1 12.2 Mhz + 2 10 Mhz + 3 8 Mhz + 4 6.7 Mhz + 5 5.8 Hhz + 6 5 Mhz + 7 4 Mhz + == ======== + +dev_mode + Bitmap for device configuration + + DevMode bit definition: + + === ======== ======== ========================================= + Bit Val(hex) Val(dec) Meaning + === ======== ======== ========================================= + 0 0x01 1 Parity check + 1 0x02 2 Synchronous Negotiation + 2 0x04 4 Disconnection + 3 0x08 8 Send Start command on startup. (Not used) + 4 0x10 16 Tagged Command Queueing + 5 0x20 32 Wide Negotiation + === ======== ======== ========================================= + +adapter_mode + Bitmap for adapter configuration + + AdaptMode bit definition + + ===== ======== ======== ==================================================== + Bit Val(hex) Val(dec) Meaning + ===== ======== ======== ==================================================== + 0 0x01 1 Support more than two drives. (Not used) + 1 0x02 2 Use DOS compatible mapping for HDs greater than 1GB. + 2 0x04 4 Reset SCSI Bus on startup. + 3 0x08 8 Active Negation: Improves SCSI Bus noise immunity. + 4 0x10 16 Immediate return on BIOS seek command. (Not used) + (*)5 0x20 32 Check for LUNs >= 1. + ===== ======== ======== ==================================================== + +tags + Default: 3, Acceptable values: 0-5 + + The number of tags is 1< - -General -------- - -First of all, you need to enable GAMEPORT support on Linux kernel for -using a joystick with the ALSA driver. For the details of gameport -support, refer to Documentation/input/joydev/joystick.rst. - -The joystick support of ALSA drivers is different between ISA and PCI -cards. In the case of ISA (PnP) cards, it's usually handled by the -independent module (ns558). Meanwhile, the ALSA PCI drivers have the -built-in gameport support. Hence, when the ALSA PCI driver is built -in the kernel, CONFIG_GAMEPORT must be 'y', too. Otherwise, the -gameport support on that card will be (silently) disabled. - -Some adapter modules probe the physical connection of the device at -the load time. It'd be safer to plug in the joystick device before -loading the module. - - -PCI Cards ---------- - -For PCI cards, the joystick is enabled when the appropriate module -option is specified. Some drivers don't need options, and the -joystick support is always enabled. In the former ALSA version, there -was a dynamic control API for the joystick activation. It was -changed, however, to the static module options because of the system -stability and the resource management. - -The following PCI drivers support the joystick natively. - -============== ============= ============================================ -Driver Module Option Available Values -============== ============= ============================================ -als4000 joystick_port 0 = disable (default), 1 = auto-detect, - manual: any address (e.g. 0x200) -au88x0 N/A N/A -azf3328 joystick 0 = disable, 1 = enable, -1 = auto (default) -ens1370 joystick 0 = disable (default), 1 = enable -ens1371 joystick_port 0 = disable (default), 1 = auto-detect, - manual: 0x200, 0x208, 0x210, 0x218 -cmipci joystick_port 0 = disable (default), 1 = auto-detect, - manual: any address (e.g. 0x200) -cs4281 N/A N/A -cs46xx N/A N/A -es1938 N/A N/A -es1968 joystick 0 = disable (default), 1 = enable -sonicvibes N/A N/A -trident N/A N/A -via82xx [#f1]_ joystick 0 = disable (default), 1 = enable -ymfpci joystick_port 0 = disable (default), 1 = auto-detect, - manual: 0x201, 0x202, 0x204, 0x205 [#f2]_ -============== ============= ============================================ - -.. [#f1] VIA686A/B only -.. [#f2] With YMF744/754 chips, the port address can be chosen arbitrarily - -The following drivers don't support gameport natively, but there are -additional modules. Load the corresponding module to add the gameport -support. - -======= ================= -Driver Additional Module -======= ================= -emu10k1 emu10k1-gp -fm801 fm801-gp -======= ================= - -Note: the "pcigame" and "cs461x" modules are for the OSS drivers only. -These ALSA drivers (cs46xx, trident and au88x0) have the -built-in gameport support. - -As mentioned above, ALSA PCI drivers have the built-in gameport -support, so you don't have to load ns558 module. Just load "joydev" -and the appropriate adapter module (e.g. "analog"). - - -ISA Cards ---------- - -ALSA ISA drivers don't have the built-in gameport support. -Instead, you need to load "ns558" module in addition to "joydev" and -the adapter module (e.g. "analog"). +======================================= +Analog Joystick Support on ALSA Drivers +======================================= + +Oct. 14, 2003 + +Takashi Iwai + +General +------- + +First of all, you need to enable GAMEPORT support on Linux kernel for +using a joystick with the ALSA driver. For the details of gameport +support, refer to Documentation/input/joydev/joystick.rst. + +The joystick support of ALSA drivers is different between ISA and PCI +cards. In the case of ISA (PnP) cards, it's usually handled by the +independent module (ns558). Meanwhile, the ALSA PCI drivers have the +built-in gameport support. Hence, when the ALSA PCI driver is built +in the kernel, CONFIG_GAMEPORT must be 'y', too. Otherwise, the +gameport support on that card will be (silently) disabled. + +Some adapter modules probe the physical connection of the device at +the load time. It'd be safer to plug in the joystick device before +loading the module. + + +PCI Cards +--------- + +For PCI cards, the joystick is enabled when the appropriate module +option is specified. Some drivers don't need options, and the +joystick support is always enabled. In the former ALSA version, there +was a dynamic control API for the joystick activation. It was +changed, however, to the static module options because of the system +stability and the resource management. + +The following PCI drivers support the joystick natively. + +============== ============= ============================================ +Driver Module Option Available Values +============== ============= ============================================ +als4000 joystick_port 0 = disable (default), 1 = auto-detect, + manual: any address (e.g. 0x200) +au88x0 N/A N/A +azf3328 joystick 0 = disable, 1 = enable, -1 = auto (default) +ens1370 joystick 0 = disable (default), 1 = enable +ens1371 joystick_port 0 = disable (default), 1 = auto-detect, + manual: 0x200, 0x208, 0x210, 0x218 +cmipci joystick_port 0 = disable (default), 1 = auto-detect, + manual: any address (e.g. 0x200) +cs4281 N/A N/A +cs46xx N/A N/A +es1938 N/A N/A +es1968 joystick 0 = disable (default), 1 = enable +sonicvibes N/A N/A +trident N/A N/A +via82xx [#f1]_ joystick 0 = disable (default), 1 = enable +ymfpci joystick_port 0 = disable (default), 1 = auto-detect, + manual: 0x201, 0x202, 0x204, 0x205 [#f2]_ +============== ============= ============================================ + +.. [#f1] VIA686A/B only +.. [#f2] With YMF744/754 chips, the port address can be chosen arbitrarily + +The following drivers don't support gameport natively, but there are +additional modules. Load the corresponding module to add the gameport +support. + +======= ================= +Driver Additional Module +======= ================= +emu10k1 emu10k1-gp +fm801 fm801-gp +======= ================= + +Note: the "pcigame" and "cs461x" modules are for the OSS drivers only. +These ALSA drivers (cs46xx, trident and au88x0) have the +built-in gameport support. + +As mentioned above, ALSA PCI drivers have the built-in gameport +support, so you don't have to load ns558 module. Just load "joydev" +and the appropriate adapter module (e.g. "analog"). + + +ISA Cards +--------- + +ALSA ISA drivers don't have the built-in gameport support. +Instead, you need to load "ns558" module in addition to "joydev" and +the adapter module (e.g. "analog"). diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/sound/cards/mixart.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/sound/cards/mixart.rst index 1039e605d..48aba98b0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/sound/cards/mixart.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/sound/cards/mixart.rst @@ -1,110 +1,110 @@ -============================================================== -Alsa driver for Digigram miXart8 and miXart8AES/EBU soundcards -============================================================== - -Digigram - - -GENERAL -======= - -The miXart8 is a multichannel audio processing and mixing soundcard -that has 4 stereo audio inputs and 4 stereo audio outputs. -The miXart8AES/EBU is the same with a add-on card that offers further -4 digital stereo audio inputs and outputs. -Furthermore the add-on card offers external clock synchronisation -(AES/EBU, Word Clock, Time Code and Video Synchro) - -The mainboard has a PowerPC that offers onboard mpeg encoding and -decoding, samplerate conversions and various effects. - -The driver don't work properly at all until the certain firmwares -are loaded, i.e. no PCM nor mixer devices will appear. -Use the mixartloader that can be found in the alsa-tools package. - - -VERSION 0.1.0 -============= - -One miXart8 board will be represented as 4 alsa cards, each with 1 -stereo analog capture 'pcm0c' and 1 stereo analog playback 'pcm0p' device. -With a miXart8AES/EBU there is in addition 1 stereo digital input -'pcm1c' and 1 stereo digital output 'pcm1p' per card. - -Formats -------- -U8, S16_LE, S16_BE, S24_3LE, S24_3BE, FLOAT_LE, FLOAT_BE -Sample rates : 8000 - 48000 Hz continuously - -Playback --------- -For instance the playback devices are configured to have max. 4 -substreams performing hardware mixing. This could be changed to a -maximum of 24 substreams if wished. -Mono files will be played on the left and right channel. Each channel -can be muted for each stream to use 8 analog/digital outputs separately. - -Capture -------- -There is one substream per capture device. For instance only stereo -formats are supported. - -Mixer ------ - and - analog volume control of playback and capture PCM. - and - digital volume control of each analog substream. - and - digital volume control of each AES/EBU substream. - - Loopback from 'pcm0c' to 'pcm0p' with digital volume - and mute control. - -Rem : for best audio quality try to keep a 0 attenuation on the PCM -and AES volume controls which is set by 219 in the range from 0 to 255 -(about 86% with alsamixer) - - -NOT YET IMPLEMENTED -=================== - -- external clock support (AES/EBU, Word Clock, Time Code, Video Sync) -- MPEG audio formats -- mono record -- on-board effects and samplerate conversions -- linked streams - - -FIRMWARE -======== - -[As of 2.6.11, the firmware can be loaded automatically with hotplug - when CONFIG_FW_LOADER is set. The mixartloader is necessary only - for older versions or when you build the driver into kernel.] - -For loading the firmware automatically after the module is loaded, use a -install command. For example, add the following entry to -/etc/modprobe.d/mixart.conf for miXart driver: -:: - - install snd-mixart /sbin/modprobe --first-time -i snd-mixart && \ - /usr/bin/mixartloader - - -(for 2.2/2.4 kernels, add "post-install snd-mixart /usr/bin/vxloader" to -/etc/modules.conf, instead.) - -The firmware binaries are installed on /usr/share/alsa/firmware -(or /usr/local/share/alsa/firmware, depending to the prefix option of -configure). There will be a miXart.conf file, which define the dsp image -files. - -The firmware files are copyright by Digigram SA - - -COPYRIGHT -========= - -Copyright (c) 2003 Digigram SA -Distributable under GPL. +============================================================== +Alsa driver for Digigram miXart8 and miXart8AES/EBU soundcards +============================================================== + +Digigram + + +GENERAL +======= + +The miXart8 is a multichannel audio processing and mixing soundcard +that has 4 stereo audio inputs and 4 stereo audio outputs. +The miXart8AES/EBU is the same with a add-on card that offers further +4 digital stereo audio inputs and outputs. +Furthermore the add-on card offers external clock synchronisation +(AES/EBU, Word Clock, Time Code and Video Synchro) + +The mainboard has a PowerPC that offers onboard mpeg encoding and +decoding, samplerate conversions and various effects. + +The driver don't work properly at all until the certain firmwares +are loaded, i.e. no PCM nor mixer devices will appear. +Use the mixartloader that can be found in the alsa-tools package. + + +VERSION 0.1.0 +============= + +One miXart8 board will be represented as 4 alsa cards, each with 1 +stereo analog capture 'pcm0c' and 1 stereo analog playback 'pcm0p' device. +With a miXart8AES/EBU there is in addition 1 stereo digital input +'pcm1c' and 1 stereo digital output 'pcm1p' per card. + +Formats +------- +U8, S16_LE, S16_BE, S24_3LE, S24_3BE, FLOAT_LE, FLOAT_BE +Sample rates : 8000 - 48000 Hz continuously + +Playback +-------- +For instance the playback devices are configured to have max. 4 +substreams performing hardware mixing. This could be changed to a +maximum of 24 substreams if wished. +Mono files will be played on the left and right channel. Each channel +can be muted for each stream to use 8 analog/digital outputs separately. + +Capture +------- +There is one substream per capture device. For instance only stereo +formats are supported. + +Mixer +----- + and + analog volume control of playback and capture PCM. + and + digital volume control of each analog substream. + and + digital volume control of each AES/EBU substream. + + Loopback from 'pcm0c' to 'pcm0p' with digital volume + and mute control. + +Rem : for best audio quality try to keep a 0 attenuation on the PCM +and AES volume controls which is set by 219 in the range from 0 to 255 +(about 86% with alsamixer) + + +NOT YET IMPLEMENTED +=================== + +- external clock support (AES/EBU, Word Clock, Time Code, Video Sync) +- MPEG audio formats +- mono record +- on-board effects and samplerate conversions +- linked streams + + +FIRMWARE +======== + +[As of 2.6.11, the firmware can be loaded automatically with hotplug + when CONFIG_FW_LOADER is set. The mixartloader is necessary only + for older versions or when you build the driver into kernel.] + +For loading the firmware automatically after the module is loaded, use a +install command. For example, add the following entry to +/etc/modprobe.d/mixart.conf for miXart driver: +:: + + install snd-mixart /sbin/modprobe --first-time -i snd-mixart && \ + /usr/bin/mixartloader + + +(for 2.2/2.4 kernels, add "post-install snd-mixart /usr/bin/vxloader" to +/etc/modules.conf, instead.) + +The firmware binaries are installed on /usr/share/alsa/firmware +(or /usr/local/share/alsa/firmware, depending to the prefix option of +configure). There will be a miXart.conf file, which define the dsp image +files. + +The firmware files are copyright by Digigram SA + + +COPYRIGHT +========= + +Copyright (c) 2003 Digigram SA +Distributable under GPL. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/sound/cards/pcmtest.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/sound/cards/pcmtest.rst index de0848112..e163522f3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/sound/cards/pcmtest.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/sound/cards/pcmtest.rst @@ -1,120 +1,120 @@ -.. SPDX-License-Identifier: GPL-2.0 - -The Virtual PCM Test Driver -=========================== - -The Virtual PCM Test Driver emulates a generic PCM device, and can be used for -testing/fuzzing of the userspace ALSA applications, as well as for testing/fuzzing of -the PCM middle layer. Additionally, it can be used for simulating hard to reproduce -problems with PCM devices. - -What can this driver do? -~~~~~~~~~~~~~~~~~~~~~~~~ - -At this moment the driver can do the following things: - * Simulate both capture and playback processes - * Generate random or pattern-based capturing data - * Inject delays into the playback and capturing processes - * Inject errors during the PCM callbacks - -It supports up to 8 substreams and 4 channels. Also it supports both interleaved and -non-interleaved access modes. - -Also, this driver can check the playback stream for containing the predefined pattern, -which is used in the corresponding selftest (alsa/pcmtest-test.sh) to check the PCM middle -layer data transferring functionality. Additionally, this driver redefines the default -RESET ioctl, and the selftest covers this PCM API functionality as well. - -Configuration -------------- - -The driver has several parameters besides the common ALSA module parameters: - - * fill_mode (bool) - Buffer fill mode (see below) - * inject_delay (int) - * inject_hwpars_err (bool) - * inject_prepare_err (bool) - * inject_trigger_err (bool) - - -Capture Data Generation ------------------------ - -The driver has two modes of data generation: the first (0 in the fill_mode parameter) -means random data generation, the second (1 in the fill_mode) - pattern-based -data generation. Let's look at the second mode. - -First of all, you may want to specify the pattern for data generation. You can do it -by writing the pattern to the debugfs file. There are pattern buffer debugfs entries -for each channel, as well as entries which contain the pattern buffer length. - - * /sys/kernel/debug/pcmtest/fill_pattern[0-3] - * /sys/kernel/debug/pcmtest/fill_pattern[0-3]_len - -To set the pattern for the channel 0 you can execute the following command: - -.. code-block:: bash - - echo -n mycoolpattern > /sys/kernel/debug/pcmtest/fill_pattern0 - -Then, after every capture action performed on the 'pcmtest' device the buffer for the -channel 0 will contain 'mycoolpatternmycoolpatternmycoolpatternmy...'. - -The pattern itself can be up to 4096 bytes long. - -Delay injection ---------------- - -The driver has 'inject_delay' parameter, which has very self-descriptive name and -can be used for time delay/speedup simulations. The parameter has integer type, and -it means the delay added between module's internal timer ticks. - -If the 'inject_delay' value is positive, the buffer will be filled slower, if it is -negative - faster. You can try it yourself by starting a recording in any -audiorecording application (like Audacity) and selecting the 'pcmtest' device as a -source. - -This parameter can be also used for generating a huge amount of sound data in a very -short period of time (with the negative 'inject_delay' value). - -Errors injection ----------------- - -This module can be used for injecting errors into the PCM communication process. This -action can help you to figure out how the userspace ALSA program behaves under unusual -circumstances. - -For example, you can make all 'hw_params' PCM callback calls return EBUSY error by -writing '1' to the 'inject_hwpars_err' module parameter: - -.. code-block:: bash - - echo 1 > /sys/module/snd_pcmtest/parameters/inject_hwpars_err - -Errors can be injected into the following PCM callbacks: - - * hw_params (EBUSY) - * prepare (EINVAL) - * trigger (EINVAL) - -Playback test -------------- - -This driver can be also used for the playback functionality testing - every time you -write the playback data to the 'pcmtest' PCM device and close it, the driver checks the -buffer for containing the looped pattern (which is specified in the fill_pattern -debugfs file for each channel). If the playback buffer content represents the looped -pattern, 'pc_test' debugfs entry is set into '1'. Otherwise, the driver sets it to '0'. - -ioctl redefinition test ------------------------ - -The driver redefines the 'reset' ioctl, which is default for all PCM devices. To test -this functionality, we can trigger the reset ioctl and check the 'ioctl_test' debugfs -entry: - -.. code-block:: bash - - cat /sys/kernel/debug/pcmtest/ioctl_test - -If the ioctl is triggered successfully, this file will contain '1', and '0' otherwise. +.. SPDX-License-Identifier: GPL-2.0 + +The Virtual PCM Test Driver +=========================== + +The Virtual PCM Test Driver emulates a generic PCM device, and can be used for +testing/fuzzing of the userspace ALSA applications, as well as for testing/fuzzing of +the PCM middle layer. Additionally, it can be used for simulating hard to reproduce +problems with PCM devices. + +What can this driver do? +~~~~~~~~~~~~~~~~~~~~~~~~ + +At this moment the driver can do the following things: + * Simulate both capture and playback processes + * Generate random or pattern-based capturing data + * Inject delays into the playback and capturing processes + * Inject errors during the PCM callbacks + +It supports up to 8 substreams and 4 channels. Also it supports both interleaved and +non-interleaved access modes. + +Also, this driver can check the playback stream for containing the predefined pattern, +which is used in the corresponding selftest (alsa/pcmtest-test.sh) to check the PCM middle +layer data transferring functionality. Additionally, this driver redefines the default +RESET ioctl, and the selftest covers this PCM API functionality as well. + +Configuration +------------- + +The driver has several parameters besides the common ALSA module parameters: + + * fill_mode (bool) - Buffer fill mode (see below) + * inject_delay (int) + * inject_hwpars_err (bool) + * inject_prepare_err (bool) + * inject_trigger_err (bool) + + +Capture Data Generation +----------------------- + +The driver has two modes of data generation: the first (0 in the fill_mode parameter) +means random data generation, the second (1 in the fill_mode) - pattern-based +data generation. Let's look at the second mode. + +First of all, you may want to specify the pattern for data generation. You can do it +by writing the pattern to the debugfs file. There are pattern buffer debugfs entries +for each channel, as well as entries which contain the pattern buffer length. + + * /sys/kernel/debug/pcmtest/fill_pattern[0-3] + * /sys/kernel/debug/pcmtest/fill_pattern[0-3]_len + +To set the pattern for the channel 0 you can execute the following command: + +.. code-block:: bash + + echo -n mycoolpattern > /sys/kernel/debug/pcmtest/fill_pattern0 + +Then, after every capture action performed on the 'pcmtest' device the buffer for the +channel 0 will contain 'mycoolpatternmycoolpatternmycoolpatternmy...'. + +The pattern itself can be up to 4096 bytes long. + +Delay injection +--------------- + +The driver has 'inject_delay' parameter, which has very self-descriptive name and +can be used for time delay/speedup simulations. The parameter has integer type, and +it means the delay added between module's internal timer ticks. + +If the 'inject_delay' value is positive, the buffer will be filled slower, if it is +negative - faster. You can try it yourself by starting a recording in any +audiorecording application (like Audacity) and selecting the 'pcmtest' device as a +source. + +This parameter can be also used for generating a huge amount of sound data in a very +short period of time (with the negative 'inject_delay' value). + +Errors injection +---------------- + +This module can be used for injecting errors into the PCM communication process. This +action can help you to figure out how the userspace ALSA program behaves under unusual +circumstances. + +For example, you can make all 'hw_params' PCM callback calls return EBUSY error by +writing '1' to the 'inject_hwpars_err' module parameter: + +.. code-block:: bash + + echo 1 > /sys/module/snd_pcmtest/parameters/inject_hwpars_err + +Errors can be injected into the following PCM callbacks: + + * hw_params (EBUSY) + * prepare (EINVAL) + * trigger (EINVAL) + +Playback test +------------- + +This driver can be also used for the playback functionality testing - every time you +write the playback data to the 'pcmtest' PCM device and close it, the driver checks the +buffer for containing the looped pattern (which is specified in the fill_pattern +debugfs file for each channel). If the playback buffer content represents the looped +pattern, 'pc_test' debugfs entry is set into '1'. Otherwise, the driver sets it to '0'. + +ioctl redefinition test +----------------------- + +The driver redefines the 'reset' ioctl, which is default for all PCM devices. To test +this functionality, we can trigger the reset ioctl and check the 'ioctl_test' debugfs +entry: + +.. code-block:: bash + + cat /sys/kernel/debug/pcmtest/ioctl_test + +If the ioctl is triggered successfully, this file will contain '1', and '0' otherwise. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/sound/cards/serial-u16550.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/sound/cards/serial-u16550.rst index 525c477f3..197aeacea 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/sound/cards/serial-u16550.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/sound/cards/serial-u16550.rst @@ -1,93 +1,93 @@ -=================================== -Serial UART 16450/16550 MIDI driver -=================================== - -The adaptor module parameter allows you to select either: - -* 0 - Roland Soundcanvas support (default) -* 1 - Midiator MS-124T support (1) -* 2 - Midiator MS-124W S/A mode (2) -* 3 - MS-124W M/B mode support (3) -* 4 - Generic device with multiple input support (4) - -For the Midiator MS-124W, you must set the physical M-S and A-B -switches on the Midiator to match the driver mode you select. - -In Roland Soundcanvas mode, multiple ALSA raw MIDI substreams are supported -(midiCnD0-midiCnD15). Whenever you write to a different substream, the driver -sends the nonstandard MIDI command sequence F5 NN, where NN is the substream -number plus 1. Roland modules use this command to switch between different -"parts", so this feature lets you treat each part as a distinct raw MIDI -substream. The driver provides no way to send F5 00 (no selection) or to not -send the F5 NN command sequence at all; perhaps it ought to. - -Usage example for simple serial converter: -:: - - /sbin/setserial /dev/ttyS0 uart none - /sbin/modprobe snd-serial-u16550 port=0x3f8 irq=4 speed=115200 - -Usage example for Roland SoundCanvas with 4 MIDI ports: -:: - - /sbin/setserial /dev/ttyS0 uart none - /sbin/modprobe snd-serial-u16550 port=0x3f8 irq=4 outs=4 - -In MS-124T mode, one raw MIDI substream is supported (midiCnD0); the outs -module parameter is automatically set to 1. The driver sends the same data to -all four MIDI Out connectors. Set the A-B switch and the speed module -parameter to match (A=19200, B=9600). - -Usage example for MS-124T, with A-B switch in A position: -:: - - /sbin/setserial /dev/ttyS0 uart none - /sbin/modprobe snd-serial-u16550 port=0x3f8 irq=4 adaptor=1 \ - speed=19200 - -In MS-124W S/A mode, one raw MIDI substream is supported (midiCnD0); -the outs module parameter is automatically set to 1. The driver sends -the same data to all four MIDI Out connectors at full MIDI speed. - -Usage example for S/A mode: -:: - - /sbin/setserial /dev/ttyS0 uart none - /sbin/modprobe snd-serial-u16550 port=0x3f8 irq=4 adaptor=2 - -In MS-124W M/B mode, the driver supports 16 ALSA raw MIDI substreams; -the outs module parameter is automatically set to 16. The substream -number gives a bitmask of which MIDI Out connectors the data should be -sent to, with midiCnD1 sending to Out 1, midiCnD2 to Out 2, midiCnD4 to -Out 3, and midiCnD8 to Out 4. Thus midiCnD15 sends the data to all 4 ports. -As a special case, midiCnD0 also sends to all ports, since it is not useful -to send the data to no ports. M/B mode has extra overhead to select the MIDI -Out for each byte, so the aggregate data rate across all four MIDI Outs is -at most one byte every 520 us, as compared with the full MIDI data rate of -one byte every 320 us per port. - -Usage example for M/B mode: -:: - - /sbin/setserial /dev/ttyS0 uart none - /sbin/modprobe snd-serial-u16550 port=0x3f8 irq=4 adaptor=3 - -The MS-124W hardware's M/A mode is currently not supported. This mode allows -the MIDI Outs to act independently at double the aggregate throughput of M/B, -but does not allow sending the same byte simultaneously to multiple MIDI Outs. -The M/A protocol requires the driver to twiddle the modem control lines under -timing constraints, so it would be a bit more complicated to implement than -the other modes. - -Midiator models other than MS-124W and MS-124T are currently not supported. -Note that the suffix letter is significant; the MS-124 and MS-124B are not -compatible, nor are the other known models MS-101, MS-101B, MS-103, and MS-114. -I do have documentation (tim.mann@compaq.com) that partially covers these models, -but no units to experiment with. The MS-124W support is tested with a real unit. -The MS-124T support is untested, but should work. - -The Generic driver supports multiple input and output substreams over a single -serial port. Similar to Roland Soundcanvas mode, F5 NN is used to select the -appropriate input or output stream (depending on the data direction). -Additionally, the CTS signal is used to regulate the data flow. The number of -inputs is specified by the ins parameter. +=================================== +Serial UART 16450/16550 MIDI driver +=================================== + +The adaptor module parameter allows you to select either: + +* 0 - Roland Soundcanvas support (default) +* 1 - Midiator MS-124T support (1) +* 2 - Midiator MS-124W S/A mode (2) +* 3 - MS-124W M/B mode support (3) +* 4 - Generic device with multiple input support (4) + +For the Midiator MS-124W, you must set the physical M-S and A-B +switches on the Midiator to match the driver mode you select. + +In Roland Soundcanvas mode, multiple ALSA raw MIDI substreams are supported +(midiCnD0-midiCnD15). Whenever you write to a different substream, the driver +sends the nonstandard MIDI command sequence F5 NN, where NN is the substream +number plus 1. Roland modules use this command to switch between different +"parts", so this feature lets you treat each part as a distinct raw MIDI +substream. The driver provides no way to send F5 00 (no selection) or to not +send the F5 NN command sequence at all; perhaps it ought to. + +Usage example for simple serial converter: +:: + + /sbin/setserial /dev/ttyS0 uart none + /sbin/modprobe snd-serial-u16550 port=0x3f8 irq=4 speed=115200 + +Usage example for Roland SoundCanvas with 4 MIDI ports: +:: + + /sbin/setserial /dev/ttyS0 uart none + /sbin/modprobe snd-serial-u16550 port=0x3f8 irq=4 outs=4 + +In MS-124T mode, one raw MIDI substream is supported (midiCnD0); the outs +module parameter is automatically set to 1. The driver sends the same data to +all four MIDI Out connectors. Set the A-B switch and the speed module +parameter to match (A=19200, B=9600). + +Usage example for MS-124T, with A-B switch in A position: +:: + + /sbin/setserial /dev/ttyS0 uart none + /sbin/modprobe snd-serial-u16550 port=0x3f8 irq=4 adaptor=1 \ + speed=19200 + +In MS-124W S/A mode, one raw MIDI substream is supported (midiCnD0); +the outs module parameter is automatically set to 1. The driver sends +the same data to all four MIDI Out connectors at full MIDI speed. + +Usage example for S/A mode: +:: + + /sbin/setserial /dev/ttyS0 uart none + /sbin/modprobe snd-serial-u16550 port=0x3f8 irq=4 adaptor=2 + +In MS-124W M/B mode, the driver supports 16 ALSA raw MIDI substreams; +the outs module parameter is automatically set to 16. The substream +number gives a bitmask of which MIDI Out connectors the data should be +sent to, with midiCnD1 sending to Out 1, midiCnD2 to Out 2, midiCnD4 to +Out 3, and midiCnD8 to Out 4. Thus midiCnD15 sends the data to all 4 ports. +As a special case, midiCnD0 also sends to all ports, since it is not useful +to send the data to no ports. M/B mode has extra overhead to select the MIDI +Out for each byte, so the aggregate data rate across all four MIDI Outs is +at most one byte every 520 us, as compared with the full MIDI data rate of +one byte every 320 us per port. + +Usage example for M/B mode: +:: + + /sbin/setserial /dev/ttyS0 uart none + /sbin/modprobe snd-serial-u16550 port=0x3f8 irq=4 adaptor=3 + +The MS-124W hardware's M/A mode is currently not supported. This mode allows +the MIDI Outs to act independently at double the aggregate throughput of M/B, +but does not allow sending the same byte simultaneously to multiple MIDI Outs. +The M/A protocol requires the driver to twiddle the modem control lines under +timing constraints, so it would be a bit more complicated to implement than +the other modes. + +Midiator models other than MS-124W and MS-124T are currently not supported. +Note that the suffix letter is significant; the MS-124 and MS-124B are not +compatible, nor are the other known models MS-101, MS-101B, MS-103, and MS-114. +I do have documentation (tim.mann@compaq.com) that partially covers these models, +but no units to experiment with. The MS-124W support is tested with a real unit. +The MS-124T support is untested, but should work. + +The Generic driver supports multiple input and output substreams over a single +serial port. Similar to Roland Soundcanvas mode, F5 NN is used to select the +appropriate input or output stream (depending on the data direction). +Additionally, the CTS signal is used to regulate the data flow. The number of +inputs is specified by the ins parameter. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/sound/designs/control-names.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/sound/designs/control-names.rst index 5bef67a22..765ff9b5b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/sound/designs/control-names.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/sound/designs/control-names.rst @@ -1,142 +1,142 @@ -=========================== -Standard ALSA Control Names -=========================== - -This document describes standard names of mixer controls. - -Standard Syntax ---------------- -Syntax: [LOCATION] SOURCE [CHANNEL] [DIRECTION] FUNCTION - - -DIRECTION -~~~~~~~~~ -================ =============== - both directions -Playback one direction -Capture one direction -Bypass Playback one direction -Bypass Capture one direction -================ =============== - -FUNCTION -~~~~~~~~ -======== ================================= -Switch on/off switch -Volume amplifier -Route route control, hardware specific -======== ================================= - -CHANNEL -~~~~~~~ -============ ================================================== - channel independent, or applies to all channels -Front front left/right channels -Surround rear left/right in 4.0/5.1 surround -CLFE C/LFE channels -Center center channel -LFE LFE channel -Side side left/right for 7.1 surround -============ ================================================== - -LOCATION (Physical location of source) -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -============ ===================== -Front front position -Rear rear position -Dock on docking station -Internal internal -============ ===================== - -SOURCE -~~~~~~ -=================== ================================================= -Master -Master Mono -Hardware Master -Speaker internal speaker -Bass Speaker internal LFE speaker -Headphone -Line Out -Beep beep generator -Phone -Phone Input -Phone Output -Synth -FM -Mic -Headset Mic mic part of combined headset jack - 4-pin - headphone + mic -Headphone Mic mic part of either/or - 3-pin headphone or mic -Line input only, use "Line Out" for output -CD -Video -Zoom Video -Aux -PCM -PCM Pan -Loopback -Analog Loopback D/A -> A/D loopback -Digital Loopback playback -> capture loopback - - without analog path -Mono -Mono Output -Multi -ADC -Wave -Music -I2S -IEC958 -HDMI -SPDIF output only -SPDIF In -Digital In -HDMI/DP either HDMI or DisplayPort -=================== ================================================= - -Exceptions (deprecated) ------------------------ - -===================================== ======================= -[Analogue|Digital] Capture Source -[Analogue|Digital] Capture Switch aka input gain switch -[Analogue|Digital] Capture Volume aka input gain volume -[Analogue|Digital] Playback Switch aka output gain switch -[Analogue|Digital] Playback Volume aka output gain volume -Tone Control - Switch -Tone Control - Bass -Tone Control - Treble -3D Control - Switch -3D Control - Center -3D Control - Depth -3D Control - Wide -3D Control - Space -3D Control - Level -Mic Boost [(?dB)] -===================================== ======================= - -PCM interface -------------- - -=================== ======================================== -Sample Clock Source { "Word", "Internal", "AutoSync" } -Clock Sync Status { "Lock", "Sync", "No Lock" } -External Rate external capture rate -Capture Rate capture rate taken from external source -=================== ======================================== - -IEC958 (S/PDIF) interface -------------------------- - -============================================ ====================================== -IEC958 [...] [Playback|Capture] Switch turn on/off the IEC958 interface -IEC958 [...] [Playback|Capture] Volume digital volume control -IEC958 [...] [Playback|Capture] Default default or global value - read/write -IEC958 [...] [Playback|Capture] Mask consumer and professional mask -IEC958 [...] [Playback|Capture] Con Mask consumer mask -IEC958 [...] [Playback|Capture] Pro Mask professional mask -IEC958 [...] [Playback|Capture] PCM Stream the settings assigned to a PCM stream -IEC958 Q-subcode [Playback|Capture] Default Q-subcode bits - -IEC958 Preamble [Playback|Capture] Default burst preamble words (4*16bits) -============================================ ====================================== +=========================== +Standard ALSA Control Names +=========================== + +This document describes standard names of mixer controls. + +Standard Syntax +--------------- +Syntax: [LOCATION] SOURCE [CHANNEL] [DIRECTION] FUNCTION + + +DIRECTION +~~~~~~~~~ +================ =============== + both directions +Playback one direction +Capture one direction +Bypass Playback one direction +Bypass Capture one direction +================ =============== + +FUNCTION +~~~~~~~~ +======== ================================= +Switch on/off switch +Volume amplifier +Route route control, hardware specific +======== ================================= + +CHANNEL +~~~~~~~ +============ ================================================== + channel independent, or applies to all channels +Front front left/right channels +Surround rear left/right in 4.0/5.1 surround +CLFE C/LFE channels +Center center channel +LFE LFE channel +Side side left/right for 7.1 surround +============ ================================================== + +LOCATION (Physical location of source) +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +============ ===================== +Front front position +Rear rear position +Dock on docking station +Internal internal +============ ===================== + +SOURCE +~~~~~~ +=================== ================================================= +Master +Master Mono +Hardware Master +Speaker internal speaker +Bass Speaker internal LFE speaker +Headphone +Line Out +Beep beep generator +Phone +Phone Input +Phone Output +Synth +FM +Mic +Headset Mic mic part of combined headset jack - 4-pin + headphone + mic +Headphone Mic mic part of either/or - 3-pin headphone or mic +Line input only, use "Line Out" for output +CD +Video +Zoom Video +Aux +PCM +PCM Pan +Loopback +Analog Loopback D/A -> A/D loopback +Digital Loopback playback -> capture loopback - + without analog path +Mono +Mono Output +Multi +ADC +Wave +Music +I2S +IEC958 +HDMI +SPDIF output only +SPDIF In +Digital In +HDMI/DP either HDMI or DisplayPort +=================== ================================================= + +Exceptions (deprecated) +----------------------- + +===================================== ======================= +[Analogue|Digital] Capture Source +[Analogue|Digital] Capture Switch aka input gain switch +[Analogue|Digital] Capture Volume aka input gain volume +[Analogue|Digital] Playback Switch aka output gain switch +[Analogue|Digital] Playback Volume aka output gain volume +Tone Control - Switch +Tone Control - Bass +Tone Control - Treble +3D Control - Switch +3D Control - Center +3D Control - Depth +3D Control - Wide +3D Control - Space +3D Control - Level +Mic Boost [(?dB)] +===================================== ======================= + +PCM interface +------------- + +=================== ======================================== +Sample Clock Source { "Word", "Internal", "AutoSync" } +Clock Sync Status { "Lock", "Sync", "No Lock" } +External Rate external capture rate +Capture Rate capture rate taken from external source +=================== ======================================== + +IEC958 (S/PDIF) interface +------------------------- + +============================================ ====================================== +IEC958 [...] [Playback|Capture] Switch turn on/off the IEC958 interface +IEC958 [...] [Playback|Capture] Volume digital volume control +IEC958 [...] [Playback|Capture] Default default or global value - read/write +IEC958 [...] [Playback|Capture] Mask consumer and professional mask +IEC958 [...] [Playback|Capture] Con Mask consumer mask +IEC958 [...] [Playback|Capture] Pro Mask professional mask +IEC958 [...] [Playback|Capture] PCM Stream the settings assigned to a PCM stream +IEC958 Q-subcode [Playback|Capture] Default Q-subcode bits + +IEC958 Preamble [Playback|Capture] Default burst preamble words (4*16bits) +============================================ ====================================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/sound/soc/codec-to-codec.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/sound/soc/codec-to-codec.rst index 182cab558..0418521b6 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/sound/soc/codec-to-codec.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/sound/soc/codec-to-codec.rst @@ -1,115 +1,115 @@ -============================================== -Creating codec to codec dai link for ALSA dapm -============================================== - -Mostly the flow of audio is always from CPU to codec so your system -will look as below: -:: - - --------- --------- - | | dai | | - CPU -------> codec - | | | | - --------- --------- - -In case your system looks as below: -:: - - --------- - | | - codec-2 - | | - --------- - | - dai-2 - | - ---------- --------- - | | dai-1 | | - CPU -------> codec-1 - | | | | - ---------- --------- - | - dai-3 - | - --------- - | | - codec-3 - | | - --------- - -Suppose codec-2 is a bluetooth chip and codec-3 is connected to -a speaker and you have a below scenario: -codec-2 will receive the audio data and the user wants to play that -audio through codec-3 without involving the CPU.This -aforementioned case is the ideal case when codec to codec -connection should be used. - -Your dai_link should appear as below in your machine -file: -:: - - /* - * this pcm stream only supports 24 bit, 2 channel and - * 48k sampling rate. - */ - static const struct snd_soc_pcm_stream dsp_codec_params = { - .formats = SNDRV_PCM_FMTBIT_S24_LE, - .rate_min = 48000, - .rate_max = 48000, - .channels_min = 2, - .channels_max = 2, - }; - - { - .name = "CPU-DSP", - .stream_name = "CPU-DSP", - .cpu_dai_name = "samsung-i2s.0", - .codec_name = "codec-2, - .codec_dai_name = "codec-2-dai_name", - .platform_name = "samsung-i2s.0", - .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF - | SND_SOC_DAIFMT_CBM_CFM, - .ignore_suspend = 1, - .c2c_params = &dsp_codec_params, - .num_c2c_params = 1, - }, - { - .name = "DSP-CODEC", - .stream_name = "DSP-CODEC", - .cpu_dai_name = "wm0010-sdi2", - .codec_name = "codec-3, - .codec_dai_name = "codec-3-dai_name", - .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF - | SND_SOC_DAIFMT_CBM_CFM, - .ignore_suspend = 1, - .c2c_params = &dsp_codec_params, - .num_c2c_params = 1, - }, - -Above code snippet is motivated from sound/soc/samsung/speyside.c. - -Note the "c2c_params" callback which lets the dapm know that this -dai_link is a codec to codec connection. - -In dapm core a route is created between cpu_dai playback widget -and codec_dai capture widget for playback path and vice-versa is -true for capture path. In order for this aforementioned route to get -triggered, DAPM needs to find a valid endpoint which could be either -a sink or source widget corresponding to playback and capture path -respectively. - -In order to trigger this dai_link widget, a thin codec driver for -the speaker amp can be created as demonstrated in wm8727.c file, it -sets appropriate constraints for the device even if it needs no control. - -Make sure to name your corresponding cpu and codec playback and capture -dai names ending with "Playback" and "Capture" respectively as dapm core -will link and power those dais based on the name. - -A dai_link in a "simple-audio-card" will automatically be detected as -codec to codec when all DAIs on the link belong to codec components. -The dai_link will be initialized with the subset of stream parameters -(channels, format, sample rate) supported by all DAIs on the link. Since -there is no way to provide these parameters in the device tree, this is -mostly useful for communication with simple fixed-function codecs, such -as a Bluetooth controller or cellular modem. +============================================== +Creating codec to codec dai link for ALSA dapm +============================================== + +Mostly the flow of audio is always from CPU to codec so your system +will look as below: +:: + + --------- --------- + | | dai | | + CPU -------> codec + | | | | + --------- --------- + +In case your system looks as below: +:: + + --------- + | | + codec-2 + | | + --------- + | + dai-2 + | + ---------- --------- + | | dai-1 | | + CPU -------> codec-1 + | | | | + ---------- --------- + | + dai-3 + | + --------- + | | + codec-3 + | | + --------- + +Suppose codec-2 is a bluetooth chip and codec-3 is connected to +a speaker and you have a below scenario: +codec-2 will receive the audio data and the user wants to play that +audio through codec-3 without involving the CPU.This +aforementioned case is the ideal case when codec to codec +connection should be used. + +Your dai_link should appear as below in your machine +file: +:: + + /* + * this pcm stream only supports 24 bit, 2 channel and + * 48k sampling rate. + */ + static const struct snd_soc_pcm_stream dsp_codec_params = { + .formats = SNDRV_PCM_FMTBIT_S24_LE, + .rate_min = 48000, + .rate_max = 48000, + .channels_min = 2, + .channels_max = 2, + }; + + { + .name = "CPU-DSP", + .stream_name = "CPU-DSP", + .cpu_dai_name = "samsung-i2s.0", + .codec_name = "codec-2, + .codec_dai_name = "codec-2-dai_name", + .platform_name = "samsung-i2s.0", + .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF + | SND_SOC_DAIFMT_CBM_CFM, + .ignore_suspend = 1, + .c2c_params = &dsp_codec_params, + .num_c2c_params = 1, + }, + { + .name = "DSP-CODEC", + .stream_name = "DSP-CODEC", + .cpu_dai_name = "wm0010-sdi2", + .codec_name = "codec-3, + .codec_dai_name = "codec-3-dai_name", + .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF + | SND_SOC_DAIFMT_CBM_CFM, + .ignore_suspend = 1, + .c2c_params = &dsp_codec_params, + .num_c2c_params = 1, + }, + +Above code snippet is motivated from sound/soc/samsung/speyside.c. + +Note the "c2c_params" callback which lets the dapm know that this +dai_link is a codec to codec connection. + +In dapm core a route is created between cpu_dai playback widget +and codec_dai capture widget for playback path and vice-versa is +true for capture path. In order for this aforementioned route to get +triggered, DAPM needs to find a valid endpoint which could be either +a sink or source widget corresponding to playback and capture path +respectively. + +In order to trigger this dai_link widget, a thin codec driver for +the speaker amp can be created as demonstrated in wm8727.c file, it +sets appropriate constraints for the device even if it needs no control. + +Make sure to name your corresponding cpu and codec playback and capture +dai names ending with "Playback" and "Capture" respectively as dapm core +will link and power those dais based on the name. + +A dai_link in a "simple-audio-card" will automatically be detected as +codec to codec when all DAIs on the link belong to codec components. +The dai_link will be initialized with the subset of stream parameters +(channels, format, sample rate) supported by all DAIs on the link. Since +there is no way to provide these parameters in the device tree, this is +mostly useful for communication with simple fixed-function codecs, such +as a Bluetooth controller or cellular modem. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/sphinx/kernel_abi.py b/image/debian/UFI003_MB_V02/kernel/Documentation/sphinx/kernel_abi.py index fba91440d..5911bd0d7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/sphinx/kernel_abi.py +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/sphinx/kernel_abi.py @@ -1,141 +1,141 @@ -# -*- coding: utf-8; mode: python -*- -# coding=utf-8 -# SPDX-License-Identifier: GPL-2.0 -# -u""" - kernel-abi - ~~~~~~~~~~ - - Implementation of the ``kernel-abi`` reST-directive. - - :copyright: Copyright (C) 2016 Markus Heiser - :copyright: Copyright (C) 2016-2020 Mauro Carvalho Chehab - :maintained-by: Mauro Carvalho Chehab - :license: GPL Version 2, June 1991 see Linux/COPYING for details. - - The ``kernel-abi`` (:py:class:`KernelCmd`) directive calls the - scripts/get_abi.pl script to parse the Kernel ABI files. - - Overview of directive's argument and options. - - .. code-block:: rst - - .. kernel-abi:: - :debug: - - The argument ```` is required. It contains the - location of the ABI files to be parsed. - - ``debug`` - Inserts a code-block with the *raw* reST. Sometimes it is helpful to see - what reST is generated. - -""" - -import codecs -import os -import subprocess -import sys -import re -import kernellog - -from docutils import nodes, statemachine -from docutils.statemachine import ViewList -from docutils.parsers.rst import directives, Directive -from docutils.utils.error_reporting import ErrorString -from sphinx.util.docutils import switch_source_input - -__version__ = '1.0' - -def setup(app): - - app.add_directive("kernel-abi", KernelCmd) - return dict( - version = __version__ - , parallel_read_safe = True - , parallel_write_safe = True - ) - -class KernelCmd(Directive): - - u"""KernelABI (``kernel-abi``) directive""" - - required_arguments = 1 - optional_arguments = 2 - has_content = False - final_argument_whitespace = True - - option_spec = { - "debug" : directives.flag, - "rst" : directives.unchanged - } - - def run(self): - doc = self.state.document - if not doc.settings.file_insertion_enabled: - raise self.warning("docutils: file insertion disabled") - - srctree = os.path.abspath(os.environ["srctree"]) - - args = [ - os.path.join(srctree, 'scripts/get_abi.pl'), - 'rest', - '--enable-lineno', - '--dir', os.path.join(srctree, 'Documentation', self.arguments[0]), - ] - - if 'rst' in self.options: - args.append('--rst-source') - - lines = subprocess.check_output(args, cwd=os.path.dirname(doc.current_source)).decode('utf-8') - nodeList = self.nestedParse(lines, self.arguments[0]) - return nodeList - - def nestedParse(self, lines, fname): - env = self.state.document.settings.env - content = ViewList() - node = nodes.section() - - if "debug" in self.options: - code_block = "\n\n.. code-block:: rst\n :linenos:\n" - for l in lines.split("\n"): - code_block += "\n " + l - lines = code_block + "\n\n" - - line_regex = re.compile(r"^\.\. LINENO (\S+)\#([0-9]+)$") - ln = 0 - n = 0 - f = fname - - for line in lines.split("\n"): - n = n + 1 - match = line_regex.search(line) - if match: - new_f = match.group(1) - - # Sphinx parser is lazy: it stops parsing contents in the - # middle, if it is too big. So, handle it per input file - if new_f != f and content: - self.do_parse(content, node) - content = ViewList() - - # Add the file to Sphinx build dependencies - env.note_dependency(os.path.abspath(f)) - - f = new_f - - # sphinx counts lines from 0 - ln = int(match.group(2)) - 1 - else: - content.append(line, f, ln) - - kernellog.info(self.state.document.settings.env.app, "%s: parsed %i lines" % (fname, n)) - - if content: - self.do_parse(content, node) - - return node.children - - def do_parse(self, content, node): - with switch_source_input(self.state, content): - self.state.nested_parse(content, 0, node, match_titles=1) +# -*- coding: utf-8; mode: python -*- +# coding=utf-8 +# SPDX-License-Identifier: GPL-2.0 +# +u""" + kernel-abi + ~~~~~~~~~~ + + Implementation of the ``kernel-abi`` reST-directive. + + :copyright: Copyright (C) 2016 Markus Heiser + :copyright: Copyright (C) 2016-2020 Mauro Carvalho Chehab + :maintained-by: Mauro Carvalho Chehab + :license: GPL Version 2, June 1991 see Linux/COPYING for details. + + The ``kernel-abi`` (:py:class:`KernelCmd`) directive calls the + scripts/get_abi.pl script to parse the Kernel ABI files. + + Overview of directive's argument and options. + + .. code-block:: rst + + .. kernel-abi:: + :debug: + + The argument ```` is required. It contains the + location of the ABI files to be parsed. + + ``debug`` + Inserts a code-block with the *raw* reST. Sometimes it is helpful to see + what reST is generated. + +""" + +import codecs +import os +import subprocess +import sys +import re +import kernellog + +from docutils import nodes, statemachine +from docutils.statemachine import ViewList +from docutils.parsers.rst import directives, Directive +from docutils.utils.error_reporting import ErrorString +from sphinx.util.docutils import switch_source_input + +__version__ = '1.0' + +def setup(app): + + app.add_directive("kernel-abi", KernelCmd) + return dict( + version = __version__ + , parallel_read_safe = True + , parallel_write_safe = True + ) + +class KernelCmd(Directive): + + u"""KernelABI (``kernel-abi``) directive""" + + required_arguments = 1 + optional_arguments = 2 + has_content = False + final_argument_whitespace = True + + option_spec = { + "debug" : directives.flag, + "rst" : directives.unchanged + } + + def run(self): + doc = self.state.document + if not doc.settings.file_insertion_enabled: + raise self.warning("docutils: file insertion disabled") + + srctree = os.path.abspath(os.environ["srctree"]) + + args = [ + os.path.join(srctree, 'scripts/get_abi.pl'), + 'rest', + '--enable-lineno', + '--dir', os.path.join(srctree, 'Documentation', self.arguments[0]), + ] + + if 'rst' in self.options: + args.append('--rst-source') + + lines = subprocess.check_output(args, cwd=os.path.dirname(doc.current_source)).decode('utf-8') + nodeList = self.nestedParse(lines, self.arguments[0]) + return nodeList + + def nestedParse(self, lines, fname): + env = self.state.document.settings.env + content = ViewList() + node = nodes.section() + + if "debug" in self.options: + code_block = "\n\n.. code-block:: rst\n :linenos:\n" + for l in lines.split("\n"): + code_block += "\n " + l + lines = code_block + "\n\n" + + line_regex = re.compile(r"^\.\. LINENO (\S+)\#([0-9]+)$") + ln = 0 + n = 0 + f = fname + + for line in lines.split("\n"): + n = n + 1 + match = line_regex.search(line) + if match: + new_f = match.group(1) + + # Sphinx parser is lazy: it stops parsing contents in the + # middle, if it is too big. So, handle it per input file + if new_f != f and content: + self.do_parse(content, node) + content = ViewList() + + # Add the file to Sphinx build dependencies + env.note_dependency(os.path.abspath(f)) + + f = new_f + + # sphinx counts lines from 0 + ln = int(match.group(2)) - 1 + else: + content.append(line, f, ln) + + kernellog.info(self.state.document.settings.env.app, "%s: parsed %i lines" % (fname, n)) + + if content: + self.do_parse(content, node) + + return node.children + + def do_parse(self, content, node): + with switch_source_input(self.state, content): + self.state.nested_parse(content, 0, node, match_titles=1) diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/sphinx/kernel_feat.py b/image/debian/UFI003_MB_V02/kernel/Documentation/sphinx/kernel_feat.py index 749cf0ccc..03ace5f01 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/sphinx/kernel_feat.py +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/sphinx/kernel_feat.py @@ -1,133 +1,133 @@ -# coding=utf-8 -# SPDX-License-Identifier: GPL-2.0 -# -u""" - kernel-feat - ~~~~~~~~~~~ - - Implementation of the ``kernel-feat`` reST-directive. - - :copyright: Copyright (C) 2016 Markus Heiser - :copyright: Copyright (C) 2016-2019 Mauro Carvalho Chehab - :maintained-by: Mauro Carvalho Chehab - :license: GPL Version 2, June 1991 see Linux/COPYING for details. - - The ``kernel-feat`` (:py:class:`KernelFeat`) directive calls the - scripts/get_feat.pl script to parse the Kernel ABI files. - - Overview of directive's argument and options. - - .. code-block:: rst - - .. kernel-feat:: - :debug: - - The argument ```` is required. It contains the - location of the ABI files to be parsed. - - ``debug`` - Inserts a code-block with the *raw* reST. Sometimes it is helpful to see - what reST is generated. - -""" - -import codecs -import os -import re -import subprocess -import sys - -from docutils import nodes, statemachine -from docutils.statemachine import ViewList -from docutils.parsers.rst import directives, Directive -from docutils.utils.error_reporting import ErrorString -from sphinx.util.docutils import switch_source_input - -__version__ = '1.0' - -def setup(app): - - app.add_directive("kernel-feat", KernelFeat) - return dict( - version = __version__ - , parallel_read_safe = True - , parallel_write_safe = True - ) - -class KernelFeat(Directive): - - u"""KernelFeat (``kernel-feat``) directive""" - - required_arguments = 1 - optional_arguments = 2 - has_content = False - final_argument_whitespace = True - - option_spec = { - "debug" : directives.flag - } - - def warn(self, message, **replace): - replace["fname"] = self.state.document.current_source - replace["line_no"] = replace.get("line_no", self.lineno) - message = ("%(fname)s:%(line_no)s: [kernel-feat WARN] : " + message) % replace - self.state.document.settings.env.app.warn(message, prefix="") - - def run(self): - doc = self.state.document - if not doc.settings.file_insertion_enabled: - raise self.warning("docutils: file insertion disabled") - - env = doc.settings.env - - srctree = os.path.abspath(os.environ["srctree"]) - - args = [ - os.path.join(srctree, 'scripts/get_feat.pl'), - 'rest', - '--enable-fname', - '--dir', - os.path.join(srctree, 'Documentation', self.arguments[0]), - ] - - if len(self.arguments) > 1: - args.extend(['--arch', self.arguments[1]]) - - lines = subprocess.check_output(args, cwd=os.path.dirname(doc.current_source)).decode('utf-8') - - line_regex = re.compile(r"^\.\. FILE (\S+)$") - - out_lines = "" - - for line in lines.split("\n"): - match = line_regex.search(line) - if match: - fname = match.group(1) - - # Add the file to Sphinx build dependencies - env.note_dependency(os.path.abspath(fname)) - else: - out_lines += line + "\n" - - nodeList = self.nestedParse(out_lines, self.arguments[0]) - return nodeList - - def nestedParse(self, lines, fname): - content = ViewList() - node = nodes.section() - - if "debug" in self.options: - code_block = "\n\n.. code-block:: rst\n :linenos:\n" - for l in lines.split("\n"): - code_block += "\n " + l - lines = code_block + "\n\n" - - for c, l in enumerate(lines.split("\n")): - content.append(l, fname, c) - - buf = self.state.memo.title_styles, self.state.memo.section_level, self.state.memo.reporter - - with switch_source_input(self.state, content): - self.state.nested_parse(content, 0, node, match_titles=1) - - return node.children +# coding=utf-8 +# SPDX-License-Identifier: GPL-2.0 +# +u""" + kernel-feat + ~~~~~~~~~~~ + + Implementation of the ``kernel-feat`` reST-directive. + + :copyright: Copyright (C) 2016 Markus Heiser + :copyright: Copyright (C) 2016-2019 Mauro Carvalho Chehab + :maintained-by: Mauro Carvalho Chehab + :license: GPL Version 2, June 1991 see Linux/COPYING for details. + + The ``kernel-feat`` (:py:class:`KernelFeat`) directive calls the + scripts/get_feat.pl script to parse the Kernel ABI files. + + Overview of directive's argument and options. + + .. code-block:: rst + + .. kernel-feat:: + :debug: + + The argument ```` is required. It contains the + location of the ABI files to be parsed. + + ``debug`` + Inserts a code-block with the *raw* reST. Sometimes it is helpful to see + what reST is generated. + +""" + +import codecs +import os +import re +import subprocess +import sys + +from docutils import nodes, statemachine +from docutils.statemachine import ViewList +from docutils.parsers.rst import directives, Directive +from docutils.utils.error_reporting import ErrorString +from sphinx.util.docutils import switch_source_input + +__version__ = '1.0' + +def setup(app): + + app.add_directive("kernel-feat", KernelFeat) + return dict( + version = __version__ + , parallel_read_safe = True + , parallel_write_safe = True + ) + +class KernelFeat(Directive): + + u"""KernelFeat (``kernel-feat``) directive""" + + required_arguments = 1 + optional_arguments = 2 + has_content = False + final_argument_whitespace = True + + option_spec = { + "debug" : directives.flag + } + + def warn(self, message, **replace): + replace["fname"] = self.state.document.current_source + replace["line_no"] = replace.get("line_no", self.lineno) + message = ("%(fname)s:%(line_no)s: [kernel-feat WARN] : " + message) % replace + self.state.document.settings.env.app.warn(message, prefix="") + + def run(self): + doc = self.state.document + if not doc.settings.file_insertion_enabled: + raise self.warning("docutils: file insertion disabled") + + env = doc.settings.env + + srctree = os.path.abspath(os.environ["srctree"]) + + args = [ + os.path.join(srctree, 'scripts/get_feat.pl'), + 'rest', + '--enable-fname', + '--dir', + os.path.join(srctree, 'Documentation', self.arguments[0]), + ] + + if len(self.arguments) > 1: + args.extend(['--arch', self.arguments[1]]) + + lines = subprocess.check_output(args, cwd=os.path.dirname(doc.current_source)).decode('utf-8') + + line_regex = re.compile(r"^\.\. FILE (\S+)$") + + out_lines = "" + + for line in lines.split("\n"): + match = line_regex.search(line) + if match: + fname = match.group(1) + + # Add the file to Sphinx build dependencies + env.note_dependency(os.path.abspath(fname)) + else: + out_lines += line + "\n" + + nodeList = self.nestedParse(out_lines, self.arguments[0]) + return nodeList + + def nestedParse(self, lines, fname): + content = ViewList() + node = nodes.section() + + if "debug" in self.options: + code_block = "\n\n.. code-block:: rst\n :linenos:\n" + for l in lines.split("\n"): + code_block += "\n " + l + lines = code_block + "\n\n" + + for c, l in enumerate(lines.split("\n")): + content.append(l, fname, c) + + buf = self.state.memo.title_styles, self.state.memo.section_level, self.state.memo.reporter + + with switch_source_input(self.state, content): + self.state.nested_parse(content, 0, node, match_titles=1) + + return node.children diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/spi/butterfly.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/spi/butterfly.rst index dba246736..56088fb09 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/spi/butterfly.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/spi/butterfly.rst @@ -1,74 +1,74 @@ -=================================================== -spi_butterfly - parport-to-butterfly adapter driver -=================================================== - -This is a hardware and software project that includes building and using -a parallel port adapter cable, together with an "AVR Butterfly" to run -firmware for user interfacing and/or sensors. A Butterfly is a $US20 -battery powered card with an AVR microcontroller and lots of goodies: -sensors, LCD, flash, toggle stick, and more. You can use AVR-GCC to -develop firmware for this, and flash it using this adapter cable. - -You can make this adapter from an old printer cable and solder things -directly to the Butterfly. Or (if you have the parts and skills) you -can come up with something fancier, providing circuit protection to the -Butterfly and the printer port, or with a better power supply than two -signal pins from the printer port. Or for that matter, you can use -similar cables to talk to many AVR boards, even a breadboard. - -This is more powerful than "ISP programming" cables since it lets kernel -SPI protocol drivers interact with the AVR, and could even let the AVR -issue interrupts to them. Later, your protocol driver should work -easily with a "real SPI controller", instead of this bitbanger. - - -The first cable connections will hook Linux up to one SPI bus, with the -AVR and a DataFlash chip; and to the AVR reset line. This is all you -need to reflash the firmware, and the pins are the standard Atmel "ISP" -connector pins (used also on non-Butterfly AVR boards). On the parport -side this is like "sp12" programming cables. - - ====== ============= =================== - Signal Butterfly Parport (DB-25) - ====== ============= =================== - SCK J403.PB1/SCK pin 2/D0 - RESET J403.nRST pin 3/D1 - VCC J403.VCC_EXT pin 8/D6 - MOSI J403.PB2/MOSI pin 9/D7 - MISO J403.PB3/MISO pin 11/S7,nBUSY - GND J403.GND pin 23/GND - ====== ============= =================== - -Then to let Linux master that bus to talk to the DataFlash chip, you must -(a) flash new firmware that disables SPI (set PRR.2, and disable pullups -by clearing PORTB.[0-3]); (b) configure the mtd_dataflash driver; and -(c) cable in the chipselect. - - ====== ============ =================== - Signal Butterfly Parport (DB-25) - ====== ============ =================== - VCC J400.VCC_EXT pin 7/D5 - SELECT J400.PB0/nSS pin 17/C3,nSELECT - GND J400.GND pin 24/GND - ====== ============ =================== - -Or you could flash firmware making the AVR into an SPI slave (keeping the -DataFlash in reset) and tweak the spi_butterfly driver to make it bind to -the driver for your custom SPI-based protocol. - -The "USI" controller, using J405, can also be used for a second SPI bus. -That would let you talk to the AVR using custom SPI-with-USI firmware, -while letting either Linux or the AVR use the DataFlash. There are plenty -of spare parport pins to wire this one up, such as: - - ====== ============= =================== - Signal Butterfly Parport (DB-25) - ====== ============= =================== - SCK J403.PE4/USCK pin 5/D3 - MOSI J403.PE5/DI pin 6/D4 - MISO J403.PE6/DO pin 12/S5,nPAPEROUT - GND J403.GND pin 22/GND - - IRQ J402.PF4 pin 10/S6,ACK - GND J402.GND(P2) pin 25/GND - ====== ============= =================== +=================================================== +spi_butterfly - parport-to-butterfly adapter driver +=================================================== + +This is a hardware and software project that includes building and using +a parallel port adapter cable, together with an "AVR Butterfly" to run +firmware for user interfacing and/or sensors. A Butterfly is a $US20 +battery powered card with an AVR microcontroller and lots of goodies: +sensors, LCD, flash, toggle stick, and more. You can use AVR-GCC to +develop firmware for this, and flash it using this adapter cable. + +You can make this adapter from an old printer cable and solder things +directly to the Butterfly. Or (if you have the parts and skills) you +can come up with something fancier, providing circuit protection to the +Butterfly and the printer port, or with a better power supply than two +signal pins from the printer port. Or for that matter, you can use +similar cables to talk to many AVR boards, even a breadboard. + +This is more powerful than "ISP programming" cables since it lets kernel +SPI protocol drivers interact with the AVR, and could even let the AVR +issue interrupts to them. Later, your protocol driver should work +easily with a "real SPI controller", instead of this bitbanger. + + +The first cable connections will hook Linux up to one SPI bus, with the +AVR and a DataFlash chip; and to the AVR reset line. This is all you +need to reflash the firmware, and the pins are the standard Atmel "ISP" +connector pins (used also on non-Butterfly AVR boards). On the parport +side this is like "sp12" programming cables. + + ====== ============= =================== + Signal Butterfly Parport (DB-25) + ====== ============= =================== + SCK J403.PB1/SCK pin 2/D0 + RESET J403.nRST pin 3/D1 + VCC J403.VCC_EXT pin 8/D6 + MOSI J403.PB2/MOSI pin 9/D7 + MISO J403.PB3/MISO pin 11/S7,nBUSY + GND J403.GND pin 23/GND + ====== ============= =================== + +Then to let Linux master that bus to talk to the DataFlash chip, you must +(a) flash new firmware that disables SPI (set PRR.2, and disable pullups +by clearing PORTB.[0-3]); (b) configure the mtd_dataflash driver; and +(c) cable in the chipselect. + + ====== ============ =================== + Signal Butterfly Parport (DB-25) + ====== ============ =================== + VCC J400.VCC_EXT pin 7/D5 + SELECT J400.PB0/nSS pin 17/C3,nSELECT + GND J400.GND pin 24/GND + ====== ============ =================== + +Or you could flash firmware making the AVR into an SPI slave (keeping the +DataFlash in reset) and tweak the spi_butterfly driver to make it bind to +the driver for your custom SPI-based protocol. + +The "USI" controller, using J405, can also be used for a second SPI bus. +That would let you talk to the AVR using custom SPI-with-USI firmware, +while letting either Linux or the AVR use the DataFlash. There are plenty +of spare parport pins to wire this one up, such as: + + ====== ============= =================== + Signal Butterfly Parport (DB-25) + ====== ============= =================== + SCK J403.PE4/USCK pin 5/D3 + MOSI J403.PE5/DI pin 6/D4 + MISO J403.PE6/DO pin 12/S5,nPAPEROUT + GND J403.GND pin 22/GND + + IRQ J402.PF4 pin 10/S6,ACK + GND J402.GND(P2) pin 25/GND + ====== ============= =================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/spi/spi-lm70llp.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/spi/spi-lm70llp.rst index aff83c94a..ff98ddc76 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/spi/spi-lm70llp.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/spi/spi-lm70llp.rst @@ -1,84 +1,84 @@ -============================================== -spi_lm70llp : LM70-LLP parport-to-SPI adapter -============================================== - -Supported board/chip: - - * National Semiconductor LM70 LLP evaluation board - - Datasheet: https://www.ti.com/lit/gpn/lm70 - -Author: - Kaiwan N Billimoria - -Description ------------ -This driver provides glue code connecting a National Semiconductor LM70 LLP -temperature sensor evaluation board to the kernel's SPI core subsystem. - -This is a SPI master controller driver. It can be used in conjunction with -(layered under) the LM70 logical driver (a "SPI protocol driver"). -In effect, this driver turns the parallel port interface on the eval board -into a SPI bus with a single device, which will be driven by the generic -LM70 driver (drivers/hwmon/lm70.c). - - -Hardware Interfacing --------------------- -The schematic for this particular board (the LM70EVAL-LLP) is -available (on page 4) here: - - https://download.datasheets.com/pdfs/documentation/nat/kit&board/lm70llpevalmanual.pdf - -The hardware interfacing on the LM70 LLP eval board is as follows: - - ======== == ========= ========== - Parallel LM70 LLP - Port . Direction JP2 Header - ======== == ========= ========== - D0 2 - - - D1 3 --> V+ 5 - D2 4 --> V+ 5 - D3 5 --> V+ 5 - D4 6 --> V+ 5 - D5 7 --> nCS 8 - D6 8 --> SCLK 3 - D7 9 --> SI/O 5 - GND 25 - GND 7 - Select 13 <-- SI/O 1 - ======== == ========= ========== - -Note that since the LM70 uses a "3-wire" variant of SPI, the SI/SO pin -is connected to both pin D7 (as Master Out) and Select (as Master In) -using an arrangement that lets either the parport or the LM70 pull the -pin low. This can't be shared with true SPI devices, but other 3-wire -devices might share the same SI/SO pin. - -The bitbanger routine in this driver (lm70_txrx) is called back from -the bound "hwmon/lm70" protocol driver through its sysfs hook, using a -spi_write_then_read() call. It performs Mode 0 (SPI/Microwire) bitbanging. -The lm70 driver then interprets the resulting digital temperature value -and exports it through sysfs. - -A "gotcha": National Semiconductor's LM70 LLP eval board circuit schematic -shows that the SI/O line from the LM70 chip is connected to the base of a -transistor Q1 (and also a pullup, and a zener diode to D7); while the -collector is tied to VCC. - -Interpreting this circuit, when the LM70 SI/O line is High (or tristate -and not grounded by the host via D7), the transistor conducts and switches -the collector to zero, which is reflected on pin 13 of the DB25 parport -connector. When SI/O is Low (driven by the LM70 or the host) on the other -hand, the transistor is cut off and the voltage tied to its collector is -reflected on pin 13 as a High level. - -So: the getmiso inline routine in this driver takes this fact into account, -inverting the value read at pin 13. - - -Thanks to ---------- - -- David Brownell for mentoring the SPI-side driver development. -- Dr.Craig Hollabaugh for the (early) "manual" bitbanging driver version. -- Nadir Billimoria for help interpreting the circuit schematic. +============================================== +spi_lm70llp : LM70-LLP parport-to-SPI adapter +============================================== + +Supported board/chip: + + * National Semiconductor LM70 LLP evaluation board + + Datasheet: https://www.ti.com/lit/gpn/lm70 + +Author: + Kaiwan N Billimoria + +Description +----------- +This driver provides glue code connecting a National Semiconductor LM70 LLP +temperature sensor evaluation board to the kernel's SPI core subsystem. + +This is a SPI master controller driver. It can be used in conjunction with +(layered under) the LM70 logical driver (a "SPI protocol driver"). +In effect, this driver turns the parallel port interface on the eval board +into a SPI bus with a single device, which will be driven by the generic +LM70 driver (drivers/hwmon/lm70.c). + + +Hardware Interfacing +-------------------- +The schematic for this particular board (the LM70EVAL-LLP) is +available (on page 4) here: + + https://download.datasheets.com/pdfs/documentation/nat/kit&board/lm70llpevalmanual.pdf + +The hardware interfacing on the LM70 LLP eval board is as follows: + + ======== == ========= ========== + Parallel LM70 LLP + Port . Direction JP2 Header + ======== == ========= ========== + D0 2 - - + D1 3 --> V+ 5 + D2 4 --> V+ 5 + D3 5 --> V+ 5 + D4 6 --> V+ 5 + D5 7 --> nCS 8 + D6 8 --> SCLK 3 + D7 9 --> SI/O 5 + GND 25 - GND 7 + Select 13 <-- SI/O 1 + ======== == ========= ========== + +Note that since the LM70 uses a "3-wire" variant of SPI, the SI/SO pin +is connected to both pin D7 (as Master Out) and Select (as Master In) +using an arrangement that lets either the parport or the LM70 pull the +pin low. This can't be shared with true SPI devices, but other 3-wire +devices might share the same SI/SO pin. + +The bitbanger routine in this driver (lm70_txrx) is called back from +the bound "hwmon/lm70" protocol driver through its sysfs hook, using a +spi_write_then_read() call. It performs Mode 0 (SPI/Microwire) bitbanging. +The lm70 driver then interprets the resulting digital temperature value +and exports it through sysfs. + +A "gotcha": National Semiconductor's LM70 LLP eval board circuit schematic +shows that the SI/O line from the LM70 chip is connected to the base of a +transistor Q1 (and also a pullup, and a zener diode to D7); while the +collector is tied to VCC. + +Interpreting this circuit, when the LM70 SI/O line is High (or tristate +and not grounded by the host via D7), the transistor conducts and switches +the collector to zero, which is reflected on pin 13 of the DB25 parport +connector. When SI/O is Low (driven by the LM70 or the host) on the other +hand, the transistor is cut off and the voltage tied to its collector is +reflected on pin 13 as a High level. + +So: the getmiso inline routine in this driver takes this fact into account, +inverting the value read at pin 13. + + +Thanks to +--------- + +- David Brownell for mentoring the SPI-side driver development. +- Dr.Craig Hollabaugh for the (early) "manual" bitbanging driver version. +- Nadir Billimoria for help interpreting the circuit schematic. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/staging/magic-number.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/staging/magic-number.rst index 7a250915c..7029c3c08 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/staging/magic-number.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/staging/magic-number.rst @@ -1,84 +1,84 @@ -.. _magicnumbers: - -Linux magic numbers -=================== - -This file is a registry of magic numbers which are in use. When you -add a magic number to a structure, you should also add it to this -file, since it is best if the magic numbers used by various structures -are unique. - -It is a **very** good idea to protect kernel data structures with magic -numbers. This allows you to check at run time whether (a) a structure -has been clobbered, or (b) you've passed the wrong structure to a -routine. This last is especially useful --- particularly when you are -passing pointers to structures via a void * pointer. The tty code, -for example, does this frequently to pass driver-specific and line -discipline-specific structures back and forth. - -The way to use magic numbers is to declare them at the beginning of -the structure, like so:: - - struct tty_ldisc { - int magic; - ... - }; - -Please follow this discipline when you are adding future enhancements -to the kernel! It has saved me countless hours of debugging, -especially in the screwy cases where an array has been overrun and -structures following the array have been overwritten. Using this -discipline, these cases get detected quickly and safely. - -Changelog:: - - Theodore Ts'o - 31 Mar 94 - - The magic table is current to Linux 2.1.55. - - Michael Chastain - - 22 Sep 1997 - - Now it should be up to date with Linux 2.1.112. Because - we are in feature freeze time it is very unlikely that - something will change before 2.2.x. The entries are - sorted by number field. - - Krzysztof G. Baranowski - - 29 Jul 1998 - - Updated the magic table to Linux 2.5.45. Right over the feature freeze, - but it is possible that some new magic numbers will sneak into the - kernel before 2.6.x yet. - - Petr Baudis - - 03 Nov 2002 - - Updated the magic table to Linux 2.5.74. - - Fabian Frederick - - 09 Jul 2003 - - -===================== ================ ======================== ========================================== -Magic Name Number Structure File -===================== ================ ======================== ========================================== -PG_MAGIC 'P' pg_{read,write}_hdr ``include/linux/pg.h`` -APM_BIOS_MAGIC 0x4101 apm_user ``arch/x86/kernel/apm_32.c`` -FASYNC_MAGIC 0x4601 fasync_struct ``include/linux/fs.h`` -SLIP_MAGIC 0x5302 slip ``drivers/net/slip.h`` -BAYCOM_MAGIC 0x19730510 baycom_state ``drivers/net/baycom_epp.c`` -HDLCDRV_MAGIC 0x5ac6e778 hdlcdrv_state ``include/linux/hdlcdrv.h`` -KV_MAGIC 0x5f4b565f kernel_vars_s ``arch/mips/include/asm/sn/klkernvars.h`` -CODA_MAGIC 0xC0DAC0DA coda_file_info ``fs/coda/coda_fs_i.h`` -YAM_MAGIC 0xF10A7654 yam_port ``drivers/net/hamradio/yam.c`` -CCB_MAGIC 0xf2691ad2 ccb ``drivers/scsi/ncr53c8xx.c`` -QUEUE_MAGIC_FREE 0xf7e1c9a3 queue_entry ``drivers/scsi/arm/queue.c`` -QUEUE_MAGIC_USED 0xf7e1cc33 queue_entry ``drivers/scsi/arm/queue.c`` -NMI_MAGIC 0x48414d4d455201 nmi_s ``arch/mips/include/asm/sn/nmi.h`` -===================== ================ ======================== ========================================== +.. _magicnumbers: + +Linux magic numbers +=================== + +This file is a registry of magic numbers which are in use. When you +add a magic number to a structure, you should also add it to this +file, since it is best if the magic numbers used by various structures +are unique. + +It is a **very** good idea to protect kernel data structures with magic +numbers. This allows you to check at run time whether (a) a structure +has been clobbered, or (b) you've passed the wrong structure to a +routine. This last is especially useful --- particularly when you are +passing pointers to structures via a void * pointer. The tty code, +for example, does this frequently to pass driver-specific and line +discipline-specific structures back and forth. + +The way to use magic numbers is to declare them at the beginning of +the structure, like so:: + + struct tty_ldisc { + int magic; + ... + }; + +Please follow this discipline when you are adding future enhancements +to the kernel! It has saved me countless hours of debugging, +especially in the screwy cases where an array has been overrun and +structures following the array have been overwritten. Using this +discipline, these cases get detected quickly and safely. + +Changelog:: + + Theodore Ts'o + 31 Mar 94 + + The magic table is current to Linux 2.1.55. + + Michael Chastain + + 22 Sep 1997 + + Now it should be up to date with Linux 2.1.112. Because + we are in feature freeze time it is very unlikely that + something will change before 2.2.x. The entries are + sorted by number field. + + Krzysztof G. Baranowski + + 29 Jul 1998 + + Updated the magic table to Linux 2.5.45. Right over the feature freeze, + but it is possible that some new magic numbers will sneak into the + kernel before 2.6.x yet. + + Petr Baudis + + 03 Nov 2002 + + Updated the magic table to Linux 2.5.74. + + Fabian Frederick + + 09 Jul 2003 + + +===================== ================ ======================== ========================================== +Magic Name Number Structure File +===================== ================ ======================== ========================================== +PG_MAGIC 'P' pg_{read,write}_hdr ``include/linux/pg.h`` +APM_BIOS_MAGIC 0x4101 apm_user ``arch/x86/kernel/apm_32.c`` +FASYNC_MAGIC 0x4601 fasync_struct ``include/linux/fs.h`` +SLIP_MAGIC 0x5302 slip ``drivers/net/slip.h`` +BAYCOM_MAGIC 0x19730510 baycom_state ``drivers/net/baycom_epp.c`` +HDLCDRV_MAGIC 0x5ac6e778 hdlcdrv_state ``include/linux/hdlcdrv.h`` +KV_MAGIC 0x5f4b565f kernel_vars_s ``arch/mips/include/asm/sn/klkernvars.h`` +CODA_MAGIC 0xC0DAC0DA coda_file_info ``fs/coda/coda_fs_i.h`` +YAM_MAGIC 0xF10A7654 yam_port ``drivers/net/hamradio/yam.c`` +CCB_MAGIC 0xf2691ad2 ccb ``drivers/scsi/ncr53c8xx.c`` +QUEUE_MAGIC_FREE 0xf7e1c9a3 queue_entry ``drivers/scsi/arm/queue.c`` +QUEUE_MAGIC_USED 0xf7e1cc33 queue_entry ``drivers/scsi/arm/queue.c`` +NMI_MAGIC 0x48414d4d455201 nmi_s ``arch/mips/include/asm/sn/nmi.h`` +===================== ================ ======================== ========================================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/staging/xz.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/staging/xz.rst index 0c45644e0..6953a189e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/staging/xz.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/staging/xz.rst @@ -1,98 +1,98 @@ -.. SPDX-License-Identifier: 0BSD - -============================ -XZ data compression in Linux -============================ - -Introduction -============ - -XZ is a general purpose data compression format with high compression -ratio. The XZ decompressor in Linux is called XZ Embedded. It supports -the LZMA2 filter and optionally also Branch/Call/Jump (BCJ) filters -for executable code. CRC32 is supported for integrity checking. - -See the `XZ Embedded`_ home page for the latest version which includes -a few optional extra features that aren't required in the Linux kernel -and information about using the code outside the Linux kernel. - -For userspace, `XZ Utils`_ provide a zlib-like compression library -and a gzip-like command line tool. - -.. _XZ Embedded: https://tukaani.org/xz/embedded.html -.. _XZ Utils: https://tukaani.org/xz/ - -XZ related components in the kernel -=================================== - -The xz_dec module provides XZ decompressor with single-call (buffer -to buffer) and multi-call (stateful) APIs in include/linux/xz.h. - -For decompressing the kernel image, initramfs, and initrd, there -is a wrapper function in lib/decompress_unxz.c. Its API is the -same as in other decompress_*.c files, which is defined in -include/linux/decompress/generic.h. - -For kernel makefiles, three commands are provided for use with -``$(call if_changed)``. They require the xz tool from XZ Utils. - -- ``$(call if_changed,xzkern)`` is for compressing the kernel image. - It runs the script scripts/xz_wrap.sh which uses arch-optimized - options and a big LZMA2 dictionary. - -- ``$(call if_changed,xzkern_with_size)`` is like ``xzkern`` above but - this also appends a four-byte trailer containing the uncompressed size - of the file. The trailer is needed by the boot code on some archs. - -- Other things can be compressed with ``$(call if_needed,xzmisc)`` - which will use no BCJ filter and 1 MiB LZMA2 dictionary. - -Notes on compression options -============================ - -Since the XZ Embedded supports only streams with CRC32 or no integrity -check, make sure that you don't use some other integrity check type -when encoding files that are supposed to be decoded by the kernel. -With liblzma from XZ Utils, you need to use either ``LZMA_CHECK_CRC32`` -or ``LZMA_CHECK_NONE`` when encoding. With the ``xz`` command line tool, -use ``--check=crc32`` or ``--check=none`` to override the default -``--check=crc64``. - -Using CRC32 is strongly recommended unless there is some other layer -which will verify the integrity of the uncompressed data anyway. -Double checking the integrity would probably be waste of CPU cycles. -Note that the headers will always have a CRC32 which will be validated -by the decoder; you can only change the integrity check type (or -disable it) for the actual uncompressed data. - -In userspace, LZMA2 is typically used with dictionary sizes of several -megabytes. The decoder needs to have the dictionary in RAM: - -- In multi-call mode the dictionary is allocated as part of the - decoder state. The reasonable maximum dictionary size for in-kernel - use will depend on the target hardware: a few megabytes is fine for - desktop systems while 64 KiB to 1 MiB might be more appropriate on - some embedded systems. - -- In single-call mode the output buffer is used as the dictionary - buffer. That is, the size of the dictionary doesn't affect the - decompressor memory usage at all. Only the base data structures - are allocated which take a little less than 30 KiB of memory. - For the best compression, the dictionary should be at least - as big as the uncompressed data. A notable example of single-call - mode is decompressing the kernel itself (except on PowerPC). - -The compression presets in XZ Utils may not be optimal when creating -files for the kernel, so don't hesitate to use custom settings to, -for example, set the dictionary size. Also, xz may produce a smaller -file in single-threaded mode so setting that explicitly is recommended. -Example:: - - xz --threads=1 --check=crc32 --lzma2=dict=512KiB inputfile - -xz_dec API -========== - -This is available with ``#include ``. - -.. kernel-doc:: include/linux/xz.h +.. SPDX-License-Identifier: 0BSD + +============================ +XZ data compression in Linux +============================ + +Introduction +============ + +XZ is a general purpose data compression format with high compression +ratio. The XZ decompressor in Linux is called XZ Embedded. It supports +the LZMA2 filter and optionally also Branch/Call/Jump (BCJ) filters +for executable code. CRC32 is supported for integrity checking. + +See the `XZ Embedded`_ home page for the latest version which includes +a few optional extra features that aren't required in the Linux kernel +and information about using the code outside the Linux kernel. + +For userspace, `XZ Utils`_ provide a zlib-like compression library +and a gzip-like command line tool. + +.. _XZ Embedded: https://tukaani.org/xz/embedded.html +.. _XZ Utils: https://tukaani.org/xz/ + +XZ related components in the kernel +=================================== + +The xz_dec module provides XZ decompressor with single-call (buffer +to buffer) and multi-call (stateful) APIs in include/linux/xz.h. + +For decompressing the kernel image, initramfs, and initrd, there +is a wrapper function in lib/decompress_unxz.c. Its API is the +same as in other decompress_*.c files, which is defined in +include/linux/decompress/generic.h. + +For kernel makefiles, three commands are provided for use with +``$(call if_changed)``. They require the xz tool from XZ Utils. + +- ``$(call if_changed,xzkern)`` is for compressing the kernel image. + It runs the script scripts/xz_wrap.sh which uses arch-optimized + options and a big LZMA2 dictionary. + +- ``$(call if_changed,xzkern_with_size)`` is like ``xzkern`` above but + this also appends a four-byte trailer containing the uncompressed size + of the file. The trailer is needed by the boot code on some archs. + +- Other things can be compressed with ``$(call if_needed,xzmisc)`` + which will use no BCJ filter and 1 MiB LZMA2 dictionary. + +Notes on compression options +============================ + +Since the XZ Embedded supports only streams with CRC32 or no integrity +check, make sure that you don't use some other integrity check type +when encoding files that are supposed to be decoded by the kernel. +With liblzma from XZ Utils, you need to use either ``LZMA_CHECK_CRC32`` +or ``LZMA_CHECK_NONE`` when encoding. With the ``xz`` command line tool, +use ``--check=crc32`` or ``--check=none`` to override the default +``--check=crc64``. + +Using CRC32 is strongly recommended unless there is some other layer +which will verify the integrity of the uncompressed data anyway. +Double checking the integrity would probably be waste of CPU cycles. +Note that the headers will always have a CRC32 which will be validated +by the decoder; you can only change the integrity check type (or +disable it) for the actual uncompressed data. + +In userspace, LZMA2 is typically used with dictionary sizes of several +megabytes. The decoder needs to have the dictionary in RAM: + +- In multi-call mode the dictionary is allocated as part of the + decoder state. The reasonable maximum dictionary size for in-kernel + use will depend on the target hardware: a few megabytes is fine for + desktop systems while 64 KiB to 1 MiB might be more appropriate on + some embedded systems. + +- In single-call mode the output buffer is used as the dictionary + buffer. That is, the size of the dictionary doesn't affect the + decompressor memory usage at all. Only the base data structures + are allocated which take a little less than 30 KiB of memory. + For the best compression, the dictionary should be at least + as big as the uncompressed data. A notable example of single-call + mode is decompressing the kernel itself (except on PowerPC). + +The compression presets in XZ Utils may not be optimal when creating +files for the kernel, so don't hesitate to use custom settings to, +for example, set the dictionary size. Also, xz may produce a smaller +file in single-threaded mode so setting that explicitly is recommended. +Example:: + + xz --threads=1 --check=crc32 --lzma2=dict=512KiB inputfile + +xz_dec API +========== + +This is available with ``#include ``. + +.. kernel-doc:: include/linux/xz.h diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/tee/amd-tee.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/tee/amd-tee.rst index 7660e9895..51500fde7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/tee/amd-tee.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/tee/amd-tee.rst @@ -1,90 +1,90 @@ -.. SPDX-License-Identifier: GPL-2.0 - -============================================= -AMD-TEE (AMD's Trusted Execution Environment) -============================================= - -The AMD-TEE driver handles the communication with AMD's TEE environment. The -TEE environment is provided by AMD Secure Processor. - -The AMD Secure Processor (formerly called Platform Security Processor or PSP) -is a dedicated processor that features ARM TrustZone technology, along with a -software-based Trusted Execution Environment (TEE) designed to enable -third-party Trusted Applications. This feature is currently enabled only for -APUs. - -The following picture shows a high level overview of AMD-TEE:: - - | - x86 | - | - User space (Kernel space) | AMD Secure Processor (PSP) - ~~~~~~~~~~ ~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~~~~~~~~~~~~~ - | - +--------+ | +-------------+ - | Client | | | Trusted | - +--------+ | | Application | - /\ | +-------------+ - || | /\ - || | || - || | \/ - || | +----------+ - || | | TEE | - || | | Internal | - \/ | | API | - +---------+ +-----------+---------+ +----------+ - | TEE | | TEE | AMD-TEE | | AMD-TEE | - | Client | | subsystem | driver | | Trusted | - | API | | | | | OS | - +---------+-----------+----+------+---------+---------+----------+ - | Generic TEE API | | ASP | Mailbox | - | IOCTL (TEE_IOC_*) | | driver | Register Protocol | - +--------------------------+ +---------+--------------------+ - -At the lowest level (in x86), the AMD Secure Processor (ASP) driver uses the -CPU to PSP mailbox register to submit commands to the PSP. The format of the -command buffer is opaque to the ASP driver. It's role is to submit commands to -the secure processor and return results to AMD-TEE driver. The interface -between AMD-TEE driver and AMD Secure Processor driver can be found in [1]. - -The AMD-TEE driver packages the command buffer payload for processing in TEE. -The command buffer format for the different TEE commands can be found in [2]. - -The TEE commands supported by AMD-TEE Trusted OS are: - -* TEE_CMD_ID_LOAD_TA - loads a Trusted Application (TA) binary into - TEE environment. -* TEE_CMD_ID_UNLOAD_TA - unloads TA binary from TEE environment. -* TEE_CMD_ID_OPEN_SESSION - opens a session with a loaded TA. -* TEE_CMD_ID_CLOSE_SESSION - closes session with loaded TA -* TEE_CMD_ID_INVOKE_CMD - invokes a command with loaded TA -* TEE_CMD_ID_MAP_SHARED_MEM - maps shared memory -* TEE_CMD_ID_UNMAP_SHARED_MEM - unmaps shared memory - -AMD-TEE Trusted OS is the firmware running on AMD Secure Processor. - -The AMD-TEE driver registers itself with TEE subsystem and implements the -following driver function callbacks: - -* get_version - returns the driver implementation id and capability. -* open - sets up the driver context data structure. -* release - frees up driver resources. -* open_session - loads the TA binary and opens session with loaded TA. -* close_session - closes session with loaded TA and unloads it. -* invoke_func - invokes a command with loaded TA. - -cancel_req driver callback is not supported by AMD-TEE. - -The GlobalPlatform TEE Client API [3] can be used by the user space (client) to -talk to AMD's TEE. AMD's TEE provides a secure environment for loading, opening -a session, invoking commands and closing session with TA. - -References -========== - -[1] include/linux/psp-tee.h - -[2] drivers/tee/amdtee/amdtee_if.h - -[3] http://www.globalplatform.org/specificationsdevice.asp look for - "TEE Client API Specification v1.0" and click download. +.. SPDX-License-Identifier: GPL-2.0 + +============================================= +AMD-TEE (AMD's Trusted Execution Environment) +============================================= + +The AMD-TEE driver handles the communication with AMD's TEE environment. The +TEE environment is provided by AMD Secure Processor. + +The AMD Secure Processor (formerly called Platform Security Processor or PSP) +is a dedicated processor that features ARM TrustZone technology, along with a +software-based Trusted Execution Environment (TEE) designed to enable +third-party Trusted Applications. This feature is currently enabled only for +APUs. + +The following picture shows a high level overview of AMD-TEE:: + + | + x86 | + | + User space (Kernel space) | AMD Secure Processor (PSP) + ~~~~~~~~~~ ~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~~~~~~~~~~~~~ + | + +--------+ | +-------------+ + | Client | | | Trusted | + +--------+ | | Application | + /\ | +-------------+ + || | /\ + || | || + || | \/ + || | +----------+ + || | | TEE | + || | | Internal | + \/ | | API | + +---------+ +-----------+---------+ +----------+ + | TEE | | TEE | AMD-TEE | | AMD-TEE | + | Client | | subsystem | driver | | Trusted | + | API | | | | | OS | + +---------+-----------+----+------+---------+---------+----------+ + | Generic TEE API | | ASP | Mailbox | + | IOCTL (TEE_IOC_*) | | driver | Register Protocol | + +--------------------------+ +---------+--------------------+ + +At the lowest level (in x86), the AMD Secure Processor (ASP) driver uses the +CPU to PSP mailbox register to submit commands to the PSP. The format of the +command buffer is opaque to the ASP driver. It's role is to submit commands to +the secure processor and return results to AMD-TEE driver. The interface +between AMD-TEE driver and AMD Secure Processor driver can be found in [1]. + +The AMD-TEE driver packages the command buffer payload for processing in TEE. +The command buffer format for the different TEE commands can be found in [2]. + +The TEE commands supported by AMD-TEE Trusted OS are: + +* TEE_CMD_ID_LOAD_TA - loads a Trusted Application (TA) binary into + TEE environment. +* TEE_CMD_ID_UNLOAD_TA - unloads TA binary from TEE environment. +* TEE_CMD_ID_OPEN_SESSION - opens a session with a loaded TA. +* TEE_CMD_ID_CLOSE_SESSION - closes session with loaded TA +* TEE_CMD_ID_INVOKE_CMD - invokes a command with loaded TA +* TEE_CMD_ID_MAP_SHARED_MEM - maps shared memory +* TEE_CMD_ID_UNMAP_SHARED_MEM - unmaps shared memory + +AMD-TEE Trusted OS is the firmware running on AMD Secure Processor. + +The AMD-TEE driver registers itself with TEE subsystem and implements the +following driver function callbacks: + +* get_version - returns the driver implementation id and capability. +* open - sets up the driver context data structure. +* release - frees up driver resources. +* open_session - loads the TA binary and opens session with loaded TA. +* close_session - closes session with loaded TA and unloads it. +* invoke_func - invokes a command with loaded TA. + +cancel_req driver callback is not supported by AMD-TEE. + +The GlobalPlatform TEE Client API [3] can be used by the user space (client) to +talk to AMD's TEE. AMD's TEE provides a secure environment for loading, opening +a session, invoking commands and closing session with TA. + +References +========== + +[1] include/linux/psp-tee.h + +[2] drivers/tee/amdtee/amdtee_if.h + +[3] http://www.globalplatform.org/specificationsdevice.asp look for + "TEE Client API Specification v1.0" and click download. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/tee/ts-tee.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/tee/ts-tee.rst index d567d4f20..843e34422 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/tee/ts-tee.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/tee/ts-tee.rst @@ -1,71 +1,71 @@ -.. SPDX-License-Identifier: GPL-2.0 - -================================= -TS-TEE (Trusted Services project) -================================= - -This driver provides access to secure services implemented by Trusted Services. - -Trusted Services [1] is a TrustedFirmware.org project that provides a framework -for developing and deploying device Root of Trust services in FF-A [2] S-EL0 -Secure Partitions. The project hosts the reference implementation of the Arm -Platform Security Architecture [3] for Arm A-profile devices. - -The FF-A Secure Partitions (SP) are accessible through the FF-A driver [4] which -provides the low level communication for this driver. On top of that the Trusted -Services RPC protocol is used [5]. To use the driver from user space a reference -implementation is provided at [6], which is part of the Trusted Services client -library called libts [7]. - -All Trusted Services (TS) SPs have the same FF-A UUID; it identifies the TS RPC -protocol. A TS SP can host one or more services (e.g. PSA Crypto, PSA ITS, etc). -A service is identified by its service UUID; the same type of service cannot be -present twice in the same SP. During SP boot each service in the SP is assigned -an "interface ID". This is just a short ID to simplify message addressing. - -The generic TEE design is to share memory at once with the Trusted OS, which can -then be reused to communicate with multiple applications running on the Trusted -OS. However, in case of FF-A, memory sharing works on an endpoint level, i.e. -memory is shared with a specific SP. User space has to be able to separately -share memory with each SP based on its endpoint ID; therefore a separate TEE -device is registered for each discovered TS SP. Opening the SP corresponds to -opening the TEE device and creating a TEE context. A TS SP hosts one or more -services. Opening a service corresponds to opening a session in the given -tee_context. - -Overview of a system with Trusted Services components:: - - User space Kernel space Secure world - ~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ - +--------+ +-------------+ - | Client | | Trusted | - +--------+ | Services SP | - /\ +-------------+ - || /\ - || || - || || - \/ \/ - +-------+ +----------+--------+ +-------------+ - | libts | | TEE | TS-TEE | | FF-A SPMC | - | | | subsys | driver | | + SPMD | - +-------+----------------+----+-----+--------+-----------+-------------+ - | Generic TEE API | | FF-A | TS RPC protocol | - | IOCTL (TEE_IOC_*) | | driver | over FF-A | - +-----------------------------+ +--------+-------------------------+ - -References -========== - -[1] https://www.trustedfirmware.org/projects/trusted-services/ - -[2] https://developer.arm.com/documentation/den0077/ - -[3] https://www.arm.com/architecture/security-features/platform-security - -[4] drivers/firmware/arm_ffa/ - -[5] https://trusted-services.readthedocs.io/en/v1.0.0/developer/service-access-protocols.html#abi - -[6] https://git.trustedfirmware.org/TS/trusted-services.git/tree/components/rpc/ts_rpc/caller/linux/ts_rpc_caller_linux.c?h=v1.0.0 - -[7] https://git.trustedfirmware.org/TS/trusted-services.git/tree/deployments/libts/arm-linux/CMakeLists.txt?h=v1.0.0 +.. SPDX-License-Identifier: GPL-2.0 + +================================= +TS-TEE (Trusted Services project) +================================= + +This driver provides access to secure services implemented by Trusted Services. + +Trusted Services [1] is a TrustedFirmware.org project that provides a framework +for developing and deploying device Root of Trust services in FF-A [2] S-EL0 +Secure Partitions. The project hosts the reference implementation of the Arm +Platform Security Architecture [3] for Arm A-profile devices. + +The FF-A Secure Partitions (SP) are accessible through the FF-A driver [4] which +provides the low level communication for this driver. On top of that the Trusted +Services RPC protocol is used [5]. To use the driver from user space a reference +implementation is provided at [6], which is part of the Trusted Services client +library called libts [7]. + +All Trusted Services (TS) SPs have the same FF-A UUID; it identifies the TS RPC +protocol. A TS SP can host one or more services (e.g. PSA Crypto, PSA ITS, etc). +A service is identified by its service UUID; the same type of service cannot be +present twice in the same SP. During SP boot each service in the SP is assigned +an "interface ID". This is just a short ID to simplify message addressing. + +The generic TEE design is to share memory at once with the Trusted OS, which can +then be reused to communicate with multiple applications running on the Trusted +OS. However, in case of FF-A, memory sharing works on an endpoint level, i.e. +memory is shared with a specific SP. User space has to be able to separately +share memory with each SP based on its endpoint ID; therefore a separate TEE +device is registered for each discovered TS SP. Opening the SP corresponds to +opening the TEE device and creating a TEE context. A TS SP hosts one or more +services. Opening a service corresponds to opening a session in the given +tee_context. + +Overview of a system with Trusted Services components:: + + User space Kernel space Secure world + ~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ + +--------+ +-------------+ + | Client | | Trusted | + +--------+ | Services SP | + /\ +-------------+ + || /\ + || || + || || + \/ \/ + +-------+ +----------+--------+ +-------------+ + | libts | | TEE | TS-TEE | | FF-A SPMC | + | | | subsys | driver | | + SPMD | + +-------+----------------+----+-----+--------+-----------+-------------+ + | Generic TEE API | | FF-A | TS RPC protocol | + | IOCTL (TEE_IOC_*) | | driver | over FF-A | + +-----------------------------+ +--------+-------------------------+ + +References +========== + +[1] https://www.trustedfirmware.org/projects/trusted-services/ + +[2] https://developer.arm.com/documentation/den0077/ + +[3] https://www.arm.com/architecture/security-features/platform-security + +[4] drivers/firmware/arm_ffa/ + +[5] https://trusted-services.readthedocs.io/en/v1.0.0/developer/service-access-protocols.html#abi + +[6] https://git.trustedfirmware.org/TS/trusted-services.git/tree/components/rpc/ts_rpc/caller/linux/ts_rpc_caller_linux.c?h=v1.0.0 + +[7] https://git.trustedfirmware.org/TS/trusted-services.git/tree/deployments/libts/arm-linux/CMakeLists.txt?h=v1.0.0 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/timers/timers-howto.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/timers/timers-howto.rst index 1f6adb360..ef7a4652c 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/timers/timers-howto.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/timers/timers-howto.rst @@ -1,115 +1,115 @@ -=================================================================== -delays - Information on the various kernel delay / sleep mechanisms -=================================================================== - -This document seeks to answer the common question: "What is the -RightWay (TM) to insert a delay?" - -This question is most often faced by driver writers who have to -deal with hardware delays and who may not be the most intimately -familiar with the inner workings of the Linux Kernel. - - -Inserting Delays ----------------- - -The first, and most important, question you need to ask is "Is my -code in an atomic context?" This should be followed closely by "Does -it really need to delay in atomic context?" If so... - -ATOMIC CONTEXT: - You must use the `*delay` family of functions. These - functions use the jiffy estimation of clock speed - and will busy wait for enough loop cycles to achieve - the desired delay: - - ndelay(unsigned long nsecs) - udelay(unsigned long usecs) - mdelay(unsigned long msecs) - - udelay is the generally preferred API; ndelay-level - precision may not actually exist on many non-PC devices. - - mdelay is macro wrapper around udelay, to account for - possible overflow when passing large arguments to udelay. - In general, use of mdelay is discouraged and code should - be refactored to allow for the use of msleep. - -NON-ATOMIC CONTEXT: - You should use the `*sleep[_range]` family of functions. - There are a few more options here, while any of them may - work correctly, using the "right" sleep function will - help the scheduler, power management, and just make your - driver better :) - - -- Backed by busy-wait loop: - - udelay(unsigned long usecs) - - -- Backed by hrtimers: - - usleep_range(unsigned long min, unsigned long max) - - -- Backed by jiffies / legacy_timers - - msleep(unsigned long msecs) - msleep_interruptible(unsigned long msecs) - - Unlike the `*delay` family, the underlying mechanism - driving each of these calls varies, thus there are - quirks you should be aware of. - - - SLEEPING FOR "A FEW" USECS ( < ~10us? ): - * Use udelay - - - Why not usleep? - On slower systems, (embedded, OR perhaps a speed- - stepped PC!) the overhead of setting up the hrtimers - for usleep *may* not be worth it. Such an evaluation - will obviously depend on your specific situation, but - it is something to be aware of. - - SLEEPING FOR ~USECS OR SMALL MSECS ( 10us - 20ms): - * Use usleep_range - - - Why not msleep for (1ms - 20ms)? - Explained originally here: - https://lore.kernel.org/r/15327.1186166232@lwn.net - - msleep(1~20) may not do what the caller intends, and - will often sleep longer (~20 ms actual sleep for any - value given in the 1~20ms range). In many cases this - is not the desired behavior. - - - Why is there no "usleep" / What is a good range? - Since usleep_range is built on top of hrtimers, the - wakeup will be very precise (ish), thus a simple - usleep function would likely introduce a large number - of undesired interrupts. - - With the introduction of a range, the scheduler is - free to coalesce your wakeup with any other wakeup - that may have happened for other reasons, or at the - worst case, fire an interrupt for your upper bound. - - The larger a range you supply, the greater a chance - that you will not trigger an interrupt; this should - be balanced with what is an acceptable upper bound on - delay / performance for your specific code path. Exact - tolerances here are very situation specific, thus it - is left to the caller to determine a reasonable range. - - SLEEPING FOR LARGER MSECS ( 10ms+ ) - * Use msleep or possibly msleep_interruptible - - - What's the difference? - msleep sets the current task to TASK_UNINTERRUPTIBLE - whereas msleep_interruptible sets the current task to - TASK_INTERRUPTIBLE before scheduling the sleep. In - short, the difference is whether the sleep can be ended - early by a signal. In general, just use msleep unless - you know you have a need for the interruptible variant. - - FLEXIBLE SLEEPING (any delay, uninterruptible) - * Use fsleep +=================================================================== +delays - Information on the various kernel delay / sleep mechanisms +=================================================================== + +This document seeks to answer the common question: "What is the +RightWay (TM) to insert a delay?" + +This question is most often faced by driver writers who have to +deal with hardware delays and who may not be the most intimately +familiar with the inner workings of the Linux Kernel. + + +Inserting Delays +---------------- + +The first, and most important, question you need to ask is "Is my +code in an atomic context?" This should be followed closely by "Does +it really need to delay in atomic context?" If so... + +ATOMIC CONTEXT: + You must use the `*delay` family of functions. These + functions use the jiffy estimation of clock speed + and will busy wait for enough loop cycles to achieve + the desired delay: + + ndelay(unsigned long nsecs) + udelay(unsigned long usecs) + mdelay(unsigned long msecs) + + udelay is the generally preferred API; ndelay-level + precision may not actually exist on many non-PC devices. + + mdelay is macro wrapper around udelay, to account for + possible overflow when passing large arguments to udelay. + In general, use of mdelay is discouraged and code should + be refactored to allow for the use of msleep. + +NON-ATOMIC CONTEXT: + You should use the `*sleep[_range]` family of functions. + There are a few more options here, while any of them may + work correctly, using the "right" sleep function will + help the scheduler, power management, and just make your + driver better :) + + -- Backed by busy-wait loop: + + udelay(unsigned long usecs) + + -- Backed by hrtimers: + + usleep_range(unsigned long min, unsigned long max) + + -- Backed by jiffies / legacy_timers + + msleep(unsigned long msecs) + msleep_interruptible(unsigned long msecs) + + Unlike the `*delay` family, the underlying mechanism + driving each of these calls varies, thus there are + quirks you should be aware of. + + + SLEEPING FOR "A FEW" USECS ( < ~10us? ): + * Use udelay + + - Why not usleep? + On slower systems, (embedded, OR perhaps a speed- + stepped PC!) the overhead of setting up the hrtimers + for usleep *may* not be worth it. Such an evaluation + will obviously depend on your specific situation, but + it is something to be aware of. + + SLEEPING FOR ~USECS OR SMALL MSECS ( 10us - 20ms): + * Use usleep_range + + - Why not msleep for (1ms - 20ms)? + Explained originally here: + https://lore.kernel.org/r/15327.1186166232@lwn.net + + msleep(1~20) may not do what the caller intends, and + will often sleep longer (~20 ms actual sleep for any + value given in the 1~20ms range). In many cases this + is not the desired behavior. + + - Why is there no "usleep" / What is a good range? + Since usleep_range is built on top of hrtimers, the + wakeup will be very precise (ish), thus a simple + usleep function would likely introduce a large number + of undesired interrupts. + + With the introduction of a range, the scheduler is + free to coalesce your wakeup with any other wakeup + that may have happened for other reasons, or at the + worst case, fire an interrupt for your upper bound. + + The larger a range you supply, the greater a chance + that you will not trigger an interrupt; this should + be balanced with what is an acceptable upper bound on + delay / performance for your specific code path. Exact + tolerances here are very situation specific, thus it + is left to the caller to determine a reasonable range. + + SLEEPING FOR LARGER MSECS ( 10ms+ ) + * Use msleep or possibly msleep_interruptible + + - What's the difference? + msleep sets the current task to TASK_UNINTERRUPTIBLE + whereas msleep_interruptible sets the current task to + TASK_INTERRUPTIBLE before scheduling the sleep. In + short, the difference is whether the sleep can be ended + early by a signal. In general, just use msleep unless + you know you have a need for the interruptible variant. + + FLEXIBLE SLEEPING (any delay, uninterruptible) + * Use fsleep diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/trace/coresight/ultrasoc-smb.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/trace/coresight/ultrasoc-smb.rst index 3ad6f0a25..a05488a75 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/trace/coresight/ultrasoc-smb.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/trace/coresight/ultrasoc-smb.rst @@ -1,83 +1,83 @@ -.. SPDX-License-Identifier: GPL-2.0 - -====================================== -UltraSoc - HW Assisted Tracing on SoC -====================================== - :Author: Qi Liu - :Date: January 2023 - -Introduction ------------- - -UltraSoc SMB is a per SCCL (Super CPU Cluster) hardware. It provides a -way to buffer and store CPU trace messages in a region of shared system -memory. The device acts as a coresight sink device and the -corresponding trace generators (ETM) are attached as source devices. - -Sysfs files and directories ---------------------------- - -The SMB devices appear on the existing coresight bus alongside other -devices:: - - $# ls /sys/bus/coresight/devices/ - ultra_smb0 ultra_smb1 ultra_smb2 ultra_smb3 - -The ``ultra_smb`` names SMB device associated with SCCL.:: - - $# ls /sys/bus/coresight/devices/ultra_smb0 - enable_sink mgmt - $# ls /sys/bus/coresight/devices/ultra_smb0/mgmt - buf_size buf_status read_pos write_pos - -Key file items are: - - * ``read_pos``: Shows the value on the read pointer register. - * ``write_pos``: Shows the value on the write pointer register. - * ``buf_status``: Shows the value on the status register. - BIT(0) is zero value which means the buffer is empty. - * ``buf_size``: Shows the buffer size of each device. - -Firmware Bindings ------------------ - -The device is only supported with ACPI. Its binding describes device -identifier, resource information and graph structure. - -The device is identified as ACPI HID "HISI03A1". Device resources are allocated -using the _CRS method. Each device must present two base address; the first one -is the configuration base address of the device, the second one is the 32-bit -base address of shared system memory. - -Example:: - - Device(USMB) { \ - Name(_HID, "HISI03A1") \ - Name(_CRS, ResourceTemplate() { \ - QWordMemory (ResourceConsumer, , MinFixed, MaxFixed, NonCacheable, \ - ReadWrite, 0x0, 0x95100000, 0x951FFFFF, 0x0, 0x100000) \ - QWordMemory (ResourceConsumer, , MinFixed, MaxFixed, Cacheable, \ - ReadWrite, 0x0, 0x50000000, 0x53FFFFFF, 0x0, 0x4000000) \ - }) \ - Name(_DSD, Package() { \ - ToUUID("ab02a46b-74c7-45a2-bd68-f7d344ef2153"), \ - /* Use CoreSight Graph ACPI bindings to describe connections topology */ - Package() { \ - 0, \ - 1, \ - Package() { \ - 1, \ - ToUUID("3ecbc8b6-1d0e-4fb3-8107-e627f805c6cd"), \ - 8, \ - Package() {0x8, 0, \_SB.S00.SL11.CL28.F008, 0}, \ - Package() {0x9, 0, \_SB.S00.SL11.CL29.F009, 0}, \ - Package() {0xa, 0, \_SB.S00.SL11.CL2A.F010, 0}, \ - Package() {0xb, 0, \_SB.S00.SL11.CL2B.F011, 0}, \ - Package() {0xc, 0, \_SB.S00.SL11.CL2C.F012, 0}, \ - Package() {0xd, 0, \_SB.S00.SL11.CL2D.F013, 0}, \ - Package() {0xe, 0, \_SB.S00.SL11.CL2E.F014, 0}, \ - Package() {0xf, 0, \_SB.S00.SL11.CL2F.F015, 0}, \ - } \ - } \ - }) \ - } +.. SPDX-License-Identifier: GPL-2.0 + +====================================== +UltraSoc - HW Assisted Tracing on SoC +====================================== + :Author: Qi Liu + :Date: January 2023 + +Introduction +------------ + +UltraSoc SMB is a per SCCL (Super CPU Cluster) hardware. It provides a +way to buffer and store CPU trace messages in a region of shared system +memory. The device acts as a coresight sink device and the +corresponding trace generators (ETM) are attached as source devices. + +Sysfs files and directories +--------------------------- + +The SMB devices appear on the existing coresight bus alongside other +devices:: + + $# ls /sys/bus/coresight/devices/ + ultra_smb0 ultra_smb1 ultra_smb2 ultra_smb3 + +The ``ultra_smb`` names SMB device associated with SCCL.:: + + $# ls /sys/bus/coresight/devices/ultra_smb0 + enable_sink mgmt + $# ls /sys/bus/coresight/devices/ultra_smb0/mgmt + buf_size buf_status read_pos write_pos + +Key file items are: + + * ``read_pos``: Shows the value on the read pointer register. + * ``write_pos``: Shows the value on the write pointer register. + * ``buf_status``: Shows the value on the status register. + BIT(0) is zero value which means the buffer is empty. + * ``buf_size``: Shows the buffer size of each device. + +Firmware Bindings +----------------- + +The device is only supported with ACPI. Its binding describes device +identifier, resource information and graph structure. + +The device is identified as ACPI HID "HISI03A1". Device resources are allocated +using the _CRS method. Each device must present two base address; the first one +is the configuration base address of the device, the second one is the 32-bit +base address of shared system memory. + +Example:: + + Device(USMB) { \ + Name(_HID, "HISI03A1") \ + Name(_CRS, ResourceTemplate() { \ + QWordMemory (ResourceConsumer, , MinFixed, MaxFixed, NonCacheable, \ + ReadWrite, 0x0, 0x95100000, 0x951FFFFF, 0x0, 0x100000) \ + QWordMemory (ResourceConsumer, , MinFixed, MaxFixed, Cacheable, \ + ReadWrite, 0x0, 0x50000000, 0x53FFFFFF, 0x0, 0x4000000) \ + }) \ + Name(_DSD, Package() { \ + ToUUID("ab02a46b-74c7-45a2-bd68-f7d344ef2153"), \ + /* Use CoreSight Graph ACPI bindings to describe connections topology */ + Package() { \ + 0, \ + 1, \ + Package() { \ + 1, \ + ToUUID("3ecbc8b6-1d0e-4fb3-8107-e627f805c6cd"), \ + 8, \ + Package() {0x8, 0, \_SB.S00.SL11.CL28.F008, 0}, \ + Package() {0x9, 0, \_SB.S00.SL11.CL29.F009, 0}, \ + Package() {0xa, 0, \_SB.S00.SL11.CL2A.F010, 0}, \ + Package() {0xb, 0, \_SB.S00.SL11.CL2B.F011, 0}, \ + Package() {0xc, 0, \_SB.S00.SL11.CL2C.F012, 0}, \ + Package() {0xd, 0, \_SB.S00.SL11.CL2D.F013, 0}, \ + Package() {0xe, 0, \_SB.S00.SL11.CL2E.F014, 0}, \ + Package() {0xf, 0, \_SB.S00.SL11.CL2F.F015, 0}, \ + } \ + } \ + }) \ + } diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/trace/events-power.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/trace/events-power.rst index c47824f3a..f45bf11fa 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/trace/events-power.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/trace/events-power.rst @@ -1,104 +1,104 @@ -============================= -Subsystem Trace Points: power -============================= - -The power tracing system captures events related to power transitions -within the kernel. Broadly speaking there are three major subheadings: - - - Power state switch which reports events related to suspend (S-states), - cpuidle (C-states) and cpufreq (P-states) - - System clock related changes - - Power domains related changes and transitions - -This document describes what each of the tracepoints is and why they -might be useful. - -Cf. include/trace/events/power.h for the events definitions. - -1. Power state switch events -============================ - -1.1 Trace API ------------------ - -A 'cpu' event class gathers the CPU-related events: cpuidle and -cpufreq. -:: - - cpu_idle "state=%lu cpu_id=%lu" - cpu_frequency "state=%lu cpu_id=%lu" - cpu_frequency_limits "min=%lu max=%lu cpu_id=%lu" - -A suspend event is used to indicate the system going in and out of the -suspend mode: -:: - - machine_suspend "state=%lu" - - -Note: the value of '-1' or '4294967295' for state means an exit from the current state, -i.e. trace_cpu_idle(4, smp_processor_id()) means that the system -enters the idle state 4, while trace_cpu_idle(PWR_EVENT_EXIT, smp_processor_id()) -means that the system exits the previous idle state. - -The event which has 'state=4294967295' in the trace is very important to the user -space tools which are using it to detect the end of the current state, and so to -correctly draw the states diagrams and to calculate accurate statistics etc. - -2. Clocks events -================ -The clock events are used for clock enable/disable and for -clock rate change. -:: - - clock_enable "%s state=%lu cpu_id=%lu" - clock_disable "%s state=%lu cpu_id=%lu" - clock_set_rate "%s state=%lu cpu_id=%lu" - -The first parameter gives the clock name (e.g. "gpio1_iclk"). -The second parameter is '1' for enable, '0' for disable, the target -clock rate for set_rate. - -3. Power domains events -======================= -The power domain events are used for power domains transitions -:: - - power_domain_target "%s state=%lu cpu_id=%lu" - -The first parameter gives the power domain name (e.g. "mpu_pwrdm"). -The second parameter is the power domain target state. - -4. PM QoS events -================ -The PM QoS events are used for QoS add/update/remove request and for -target/flags update. -:: - - pm_qos_update_target "action=%s prev_value=%d curr_value=%d" - pm_qos_update_flags "action=%s prev_value=0x%x curr_value=0x%x" - -The first parameter gives the QoS action name (e.g. "ADD_REQ"). -The second parameter is the previous QoS value. -The third parameter is the current QoS value to update. - -There are also events used for device PM QoS add/update/remove request. -:: - - dev_pm_qos_add_request "device=%s type=%s new_value=%d" - dev_pm_qos_update_request "device=%s type=%s new_value=%d" - dev_pm_qos_remove_request "device=%s type=%s new_value=%d" - -The first parameter gives the device name which tries to add/update/remove -QoS requests. -The second parameter gives the request type (e.g. "DEV_PM_QOS_RESUME_LATENCY"). -The third parameter is value to be added/updated/removed. - -And, there are events used for CPU latency QoS add/update/remove request. -:: - - pm_qos_add_request "value=%d" - pm_qos_update_request "value=%d" - pm_qos_remove_request "value=%d" - -The parameter is the value to be added/updated/removed. +============================= +Subsystem Trace Points: power +============================= + +The power tracing system captures events related to power transitions +within the kernel. Broadly speaking there are three major subheadings: + + - Power state switch which reports events related to suspend (S-states), + cpuidle (C-states) and cpufreq (P-states) + - System clock related changes + - Power domains related changes and transitions + +This document describes what each of the tracepoints is and why they +might be useful. + +Cf. include/trace/events/power.h for the events definitions. + +1. Power state switch events +============================ + +1.1 Trace API +----------------- + +A 'cpu' event class gathers the CPU-related events: cpuidle and +cpufreq. +:: + + cpu_idle "state=%lu cpu_id=%lu" + cpu_frequency "state=%lu cpu_id=%lu" + cpu_frequency_limits "min=%lu max=%lu cpu_id=%lu" + +A suspend event is used to indicate the system going in and out of the +suspend mode: +:: + + machine_suspend "state=%lu" + + +Note: the value of '-1' or '4294967295' for state means an exit from the current state, +i.e. trace_cpu_idle(4, smp_processor_id()) means that the system +enters the idle state 4, while trace_cpu_idle(PWR_EVENT_EXIT, smp_processor_id()) +means that the system exits the previous idle state. + +The event which has 'state=4294967295' in the trace is very important to the user +space tools which are using it to detect the end of the current state, and so to +correctly draw the states diagrams and to calculate accurate statistics etc. + +2. Clocks events +================ +The clock events are used for clock enable/disable and for +clock rate change. +:: + + clock_enable "%s state=%lu cpu_id=%lu" + clock_disable "%s state=%lu cpu_id=%lu" + clock_set_rate "%s state=%lu cpu_id=%lu" + +The first parameter gives the clock name (e.g. "gpio1_iclk"). +The second parameter is '1' for enable, '0' for disable, the target +clock rate for set_rate. + +3. Power domains events +======================= +The power domain events are used for power domains transitions +:: + + power_domain_target "%s state=%lu cpu_id=%lu" + +The first parameter gives the power domain name (e.g. "mpu_pwrdm"). +The second parameter is the power domain target state. + +4. PM QoS events +================ +The PM QoS events are used for QoS add/update/remove request and for +target/flags update. +:: + + pm_qos_update_target "action=%s prev_value=%d curr_value=%d" + pm_qos_update_flags "action=%s prev_value=0x%x curr_value=0x%x" + +The first parameter gives the QoS action name (e.g. "ADD_REQ"). +The second parameter is the previous QoS value. +The third parameter is the current QoS value to update. + +There are also events used for device PM QoS add/update/remove request. +:: + + dev_pm_qos_add_request "device=%s type=%s new_value=%d" + dev_pm_qos_update_request "device=%s type=%s new_value=%d" + dev_pm_qos_remove_request "device=%s type=%s new_value=%d" + +The first parameter gives the device name which tries to add/update/remove +QoS requests. +The second parameter gives the request type (e.g. "DEV_PM_QOS_RESUME_LATENCY"). +The third parameter is value to be added/updated/removed. + +And, there are events used for CPU latency QoS add/update/remove request. +:: + + pm_qos_add_request "value=%d" + pm_qos_update_request "value=%d" + pm_qos_remove_request "value=%d" + +The parameter is the value to be added/updated/removed. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/trace/hwlat_detector.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/trace/hwlat_detector.rst index 477f3c746..11b749c2a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/trace/hwlat_detector.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/trace/hwlat_detector.rst @@ -1,88 +1,88 @@ -========================= -Hardware Latency Detector -========================= - -Introduction -------------- - -The tracer hwlat_detector is a special purpose tracer that is used to -detect large system latencies induced by the behavior of certain underlying -hardware or firmware, independent of Linux itself. The code was developed -originally to detect SMIs (System Management Interrupts) on x86 systems, -however there is nothing x86 specific about this patchset. It was -originally written for use by the "RT" patch since the Real Time -kernel is highly latency sensitive. - -SMIs are not serviced by the Linux kernel, which means that it does not -even know that they are occurring. SMIs are instead set up by BIOS code -and are serviced by BIOS code, usually for "critical" events such as -management of thermal sensors and fans. Sometimes though, SMIs are used for -other tasks and those tasks can spend an inordinate amount of time in the -handler (sometimes measured in milliseconds). Obviously this is a problem if -you are trying to keep event service latencies down in the microsecond range. - -The hardware latency detector works by hogging one of the cpus for configurable -amounts of time (with interrupts disabled), polling the CPU Time Stamp Counter -for some period, then looking for gaps in the TSC data. Any gap indicates a -time when the polling was interrupted and since the interrupts are disabled, -the only thing that could do that would be an SMI or other hardware hiccup -(or an NMI, but those can be tracked). - -Note that the hwlat detector should *NEVER* be used in a production environment. -It is intended to be run manually to determine if the hardware platform has a -problem with long system firmware service routines. - -Usage ------- - -Write the ASCII text "hwlat" into the current_tracer file of the tracing system -(mounted at /sys/kernel/tracing or /sys/kernel/tracing). It is possible to -redefine the threshold in microseconds (us) above which latency spikes will -be taken into account. - -Example:: - - # echo hwlat > /sys/kernel/tracing/current_tracer - # echo 100 > /sys/kernel/tracing/tracing_thresh - -The /sys/kernel/tracing/hwlat_detector interface contains the following files: - - - width - time period to sample with CPUs held (usecs) - must be less than the total window size (enforced) - - window - total period of sampling, width being inside (usecs) - -By default the width is set to 500,000 and window to 1,000,000, meaning that -for every 1,000,000 usecs (1s) the hwlat detector will spin for 500,000 usecs -(0.5s). If tracing_thresh contains zero when hwlat tracer is enabled, it will -change to a default of 10 usecs. If any latencies that exceed the threshold is -observed then the data will be written to the tracing ring buffer. - -The minimum sleep time between periods is 1 millisecond. Even if width -is less than 1 millisecond apart from window, to allow the system to not -be totally starved. - -If tracing_thresh was zero when hwlat detector was started, it will be set -back to zero if another tracer is loaded. Note, the last value in -tracing_thresh that hwlat detector had will be saved and this value will -be restored in tracing_thresh if it is still zero when hwlat detector is -started again. - -The following tracing directory files are used by the hwlat_detector: - -in /sys/kernel/tracing: - - - tracing_threshold - minimum latency value to be considered (usecs) - - tracing_max_latency - maximum hardware latency actually observed (usecs) - - tracing_cpumask - the CPUs to move the hwlat thread across - - hwlat_detector/width - specified amount of time to spin within window (usecs) - - hwlat_detector/window - amount of time between (width) runs (usecs) - - hwlat_detector/mode - the thread mode - -By default, one hwlat detector's kernel thread will migrate across each CPU -specified in cpumask at the beginning of a new window, in a round-robin -fashion. This behavior can be changed by changing the thread mode, -the available options are: - - - none: do not force migration - - round-robin: migrate across each CPU specified in cpumask [default] - - per-cpu: create one thread for each cpu in tracing_cpumask +========================= +Hardware Latency Detector +========================= + +Introduction +------------- + +The tracer hwlat_detector is a special purpose tracer that is used to +detect large system latencies induced by the behavior of certain underlying +hardware or firmware, independent of Linux itself. The code was developed +originally to detect SMIs (System Management Interrupts) on x86 systems, +however there is nothing x86 specific about this patchset. It was +originally written for use by the "RT" patch since the Real Time +kernel is highly latency sensitive. + +SMIs are not serviced by the Linux kernel, which means that it does not +even know that they are occurring. SMIs are instead set up by BIOS code +and are serviced by BIOS code, usually for "critical" events such as +management of thermal sensors and fans. Sometimes though, SMIs are used for +other tasks and those tasks can spend an inordinate amount of time in the +handler (sometimes measured in milliseconds). Obviously this is a problem if +you are trying to keep event service latencies down in the microsecond range. + +The hardware latency detector works by hogging one of the cpus for configurable +amounts of time (with interrupts disabled), polling the CPU Time Stamp Counter +for some period, then looking for gaps in the TSC data. Any gap indicates a +time when the polling was interrupted and since the interrupts are disabled, +the only thing that could do that would be an SMI or other hardware hiccup +(or an NMI, but those can be tracked). + +Note that the hwlat detector should *NEVER* be used in a production environment. +It is intended to be run manually to determine if the hardware platform has a +problem with long system firmware service routines. + +Usage +------ + +Write the ASCII text "hwlat" into the current_tracer file of the tracing system +(mounted at /sys/kernel/tracing or /sys/kernel/tracing). It is possible to +redefine the threshold in microseconds (us) above which latency spikes will +be taken into account. + +Example:: + + # echo hwlat > /sys/kernel/tracing/current_tracer + # echo 100 > /sys/kernel/tracing/tracing_thresh + +The /sys/kernel/tracing/hwlat_detector interface contains the following files: + + - width - time period to sample with CPUs held (usecs) + must be less than the total window size (enforced) + - window - total period of sampling, width being inside (usecs) + +By default the width is set to 500,000 and window to 1,000,000, meaning that +for every 1,000,000 usecs (1s) the hwlat detector will spin for 500,000 usecs +(0.5s). If tracing_thresh contains zero when hwlat tracer is enabled, it will +change to a default of 10 usecs. If any latencies that exceed the threshold is +observed then the data will be written to the tracing ring buffer. + +The minimum sleep time between periods is 1 millisecond. Even if width +is less than 1 millisecond apart from window, to allow the system to not +be totally starved. + +If tracing_thresh was zero when hwlat detector was started, it will be set +back to zero if another tracer is loaded. Note, the last value in +tracing_thresh that hwlat detector had will be saved and this value will +be restored in tracing_thresh if it is still zero when hwlat detector is +started again. + +The following tracing directory files are used by the hwlat_detector: + +in /sys/kernel/tracing: + + - tracing_threshold - minimum latency value to be considered (usecs) + - tracing_max_latency - maximum hardware latency actually observed (usecs) + - tracing_cpumask - the CPUs to move the hwlat thread across + - hwlat_detector/width - specified amount of time to spin within window (usecs) + - hwlat_detector/window - amount of time between (width) runs (usecs) + - hwlat_detector/mode - the thread mode + +By default, one hwlat detector's kernel thread will migrate across each CPU +specified in cpumask at the beginning of a new window, in a round-robin +fashion. This behavior can be changed by changing the thread mode, +the available options are: + + - none: do not force migration + - round-robin: migrate across each CPU specified in cpumask [default] + - per-cpu: create one thread for each cpu in tracing_cpumask diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/trace/ring-buffer-map.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/trace/ring-buffer-map.rst index f8ced7397..8e296bcc0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/trace/ring-buffer-map.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/trace/ring-buffer-map.rst @@ -1,106 +1,106 @@ -.. SPDX-License-Identifier: GPL-2.0 - -================================== -Tracefs ring-buffer memory mapping -================================== - -:Author: Vincent Donnefort - -Overview -======== -Tracefs ring-buffer memory map provides an efficient method to stream data -as no memory copy is necessary. The application mapping the ring-buffer becomes -then a consumer for that ring-buffer, in a similar fashion to trace_pipe. - -Memory mapping setup -==================== -The mapping works with a mmap() of the trace_pipe_raw interface. - -The first system page of the mapping contains ring-buffer statistics and -description. It is referred to as the meta-page. One of the most important -fields of the meta-page is the reader. It contains the sub-buffer ID which can -be safely read by the mapper (see ring-buffer-design.rst). - -The meta-page is followed by all the sub-buffers, ordered by ascending ID. It is -therefore effortless to know where the reader starts in the mapping: - -.. code-block:: c - - reader_id = meta->reader->id; - reader_offset = meta->meta_page_size + reader_id * meta->subbuf_size; - -When the application is done with the current reader, it can get a new one using -the trace_pipe_raw ioctl() TRACE_MMAP_IOCTL_GET_READER. This ioctl also updates -the meta-page fields. - -Limitations -=========== -When a mapping is in place on a Tracefs ring-buffer, it is not possible to -either resize it (either by increasing the entire size of the ring-buffer or -each subbuf). It is also not possible to use snapshot and causes splice to copy -the ring buffer data instead of using the copyless swap from the ring buffer. - -Concurrent readers (either another application mapping that ring-buffer or the -kernel with trace_pipe) are allowed but not recommended. They will compete for -the ring-buffer and the output is unpredictable, just like concurrent readers on -trace_pipe would be. - -Example -======= - -.. code-block:: c - - #include - #include - #include - #include - - #include - - #include - #include - - #define TRACE_PIPE_RAW "/sys/kernel/tracing/per_cpu/cpu0/trace_pipe_raw" - - int main(void) - { - int page_size = getpagesize(), fd, reader_id; - unsigned long meta_len, data_len; - struct trace_buffer_meta *meta; - void *map, *reader, *data; - - fd = open(TRACE_PIPE_RAW, O_RDONLY | O_NONBLOCK); - if (fd < 0) - exit(EXIT_FAILURE); - - map = mmap(NULL, page_size, PROT_READ, MAP_SHARED, fd, 0); - if (map == MAP_FAILED) - exit(EXIT_FAILURE); - - meta = (struct trace_buffer_meta *)map; - meta_len = meta->meta_page_size; - - printf("entries: %llu\n", meta->entries); - printf("overrun: %llu\n", meta->overrun); - printf("read: %llu\n", meta->read); - printf("nr_subbufs: %u\n", meta->nr_subbufs); - - data_len = meta->subbuf_size * meta->nr_subbufs; - data = mmap(NULL, data_len, PROT_READ, MAP_SHARED, fd, meta_len); - if (data == MAP_FAILED) - exit(EXIT_FAILURE); - - if (ioctl(fd, TRACE_MMAP_IOCTL_GET_READER) < 0) - exit(EXIT_FAILURE); - - reader_id = meta->reader.id; - reader = data + meta->subbuf_size * reader_id; - - printf("Current reader address: %p\n", reader); - - munmap(data, data_len); - munmap(meta, meta_len); - close (fd); - - return 0; - } +.. SPDX-License-Identifier: GPL-2.0 + +================================== +Tracefs ring-buffer memory mapping +================================== + +:Author: Vincent Donnefort + +Overview +======== +Tracefs ring-buffer memory map provides an efficient method to stream data +as no memory copy is necessary. The application mapping the ring-buffer becomes +then a consumer for that ring-buffer, in a similar fashion to trace_pipe. + +Memory mapping setup +==================== +The mapping works with a mmap() of the trace_pipe_raw interface. + +The first system page of the mapping contains ring-buffer statistics and +description. It is referred to as the meta-page. One of the most important +fields of the meta-page is the reader. It contains the sub-buffer ID which can +be safely read by the mapper (see ring-buffer-design.rst). + +The meta-page is followed by all the sub-buffers, ordered by ascending ID. It is +therefore effortless to know where the reader starts in the mapping: + +.. code-block:: c + + reader_id = meta->reader->id; + reader_offset = meta->meta_page_size + reader_id * meta->subbuf_size; + +When the application is done with the current reader, it can get a new one using +the trace_pipe_raw ioctl() TRACE_MMAP_IOCTL_GET_READER. This ioctl also updates +the meta-page fields. + +Limitations +=========== +When a mapping is in place on a Tracefs ring-buffer, it is not possible to +either resize it (either by increasing the entire size of the ring-buffer or +each subbuf). It is also not possible to use snapshot and causes splice to copy +the ring buffer data instead of using the copyless swap from the ring buffer. + +Concurrent readers (either another application mapping that ring-buffer or the +kernel with trace_pipe) are allowed but not recommended. They will compete for +the ring-buffer and the output is unpredictable, just like concurrent readers on +trace_pipe would be. + +Example +======= + +.. code-block:: c + + #include + #include + #include + #include + + #include + + #include + #include + + #define TRACE_PIPE_RAW "/sys/kernel/tracing/per_cpu/cpu0/trace_pipe_raw" + + int main(void) + { + int page_size = getpagesize(), fd, reader_id; + unsigned long meta_len, data_len; + struct trace_buffer_meta *meta; + void *map, *reader, *data; + + fd = open(TRACE_PIPE_RAW, O_RDONLY | O_NONBLOCK); + if (fd < 0) + exit(EXIT_FAILURE); + + map = mmap(NULL, page_size, PROT_READ, MAP_SHARED, fd, 0); + if (map == MAP_FAILED) + exit(EXIT_FAILURE); + + meta = (struct trace_buffer_meta *)map; + meta_len = meta->meta_page_size; + + printf("entries: %llu\n", meta->entries); + printf("overrun: %llu\n", meta->overrun); + printf("read: %llu\n", meta->read); + printf("nr_subbufs: %u\n", meta->nr_subbufs); + + data_len = meta->subbuf_size * meta->nr_subbufs; + data = mmap(NULL, data_len, PROT_READ, MAP_SHARED, fd, meta_len); + if (data == MAP_FAILED) + exit(EXIT_FAILURE); + + if (ioctl(fd, TRACE_MMAP_IOCTL_GET_READER) < 0) + exit(EXIT_FAILURE); + + reader_id = meta->reader.id; + reader = data + meta->subbuf_size * reader_id; + + printf("Current reader address: %p\n", reader); + + munmap(data, data_len); + munmap(meta, meta_len); + close (fd); + + return 0; + } diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/it_IT/i2c/i2c-protocol.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/it_IT/i2c/i2c-protocol.rst index 1b0311bee..ba7c8cd8f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/it_IT/i2c/i2c-protocol.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/it_IT/i2c/i2c-protocol.rst @@ -1,99 +1,99 @@ -================= -Il protocollo I2C -================= - -Questo documento è una panoramica delle transazioni di base I2C e delle API -del kernel per eseguirli. - -Spiegazione dei simboli -======================= - -=============== =========================================================== -S Condizione di avvio -P Condizione di stop -Rd/Wr (1 bit) Bit di lettura/scrittura. Rd vale 1, Wr vale 0. -A, NA (1 bit) Bit di riconoscimento (ACK) e di non riconoscimento (NACK). -Addr (7 bit) Indirizzo I2C a 7 bit. Nota che questo può essere espanso - per ottenere un indirizzo I2C a 10 bit. -Dati (8 bit) Un byte di dati. - -[..] Fra parentesi quadre i dati inviati da dispositivi I2C, - anziché dal master. -=============== =========================================================== - - -Transazione semplice di invio -============================= - -Implementato da i2c_master_send():: - - S Addr Wr [A] Dati [A] Dati [A] ... [A] Dati [A] P - - -Transazione semplice di ricezione -================================= - -Implementato da i2c_master_recv():: - - S Addr Rd [A] [Dati] A [Dati] A ... A [Dati] NA P - - -Transazioni combinate -===================== - -Implementato da i2c_transfer(). - -Sono come le transazioni di cui sopra, ma invece di uno condizione di stop P -viene inviata una condizione di inizio S e la transazione continua. -Un esempio di lettura di un byte, seguita da una scrittura di un byte:: - - S Addr Rd [A] [Dati] NA S Addr Wr [A] Dati [A] P - - -Transazioni modificate -====================== - -Le seguenti modifiche al protocollo I2C possono essere generate -impostando questi flag per i messaggi I2C. Ad eccezione di I2C_M_NOSTART, sono -di solito necessari solo per risolvere problemi di un dispositivo: - -I2C_M_IGNORE_NAK: - Normalmente il messaggio viene interrotto immediatamente se il dispositivo - risponde con [NA]. Impostando questo flag, si considera qualsiasi [NA] come - [A] e tutto il messaggio viene inviato. - Questi messaggi potrebbero comunque non riuscire a raggiungere il timeout - SCL basso->alto. - -I2C_M_NO_RD_ACK: - In un messaggio di lettura, il bit A/NA del master viene saltato. - -I2C_M_NOSTART: - In una transazione combinata, potrebbe non essere generato alcun - "S Addr Wr/Rd [A]". - Ad esempio, impostando I2C_M_NOSTART sul secondo messaggio parziale - genera qualcosa del tipo:: - - S Addr Rd [A] [Dati] NA Dati [A] P - - Se si imposta il flag I2C_M_NOSTART per il primo messaggio parziale, - non viene generato Addr, ma si genera la condizione di avvio S. - Questo probabilmente confonderà tutti gli altri dispositivi sul bus, quindi - meglio non usarlo. - - Questo viene spesso utilizzato per raccogliere le trasmissioni da più - buffer di dati presenti nella memoria di sistema in qualcosa che appare - come un singolo trasferimento verso il dispositivo I2C. Inoltre, alcuni - dispositivi particolari lo utilizzano anche tra i cambi di direzione. - -I2C_M_REV_DIR_ADDR: - Questo inverte il flag Rd/Wr. Cioè, se si vuole scrivere, ma si ha bisogno - di emettere una Rd invece di una Wr, o viceversa, si può impostare questo - flag. - Per esempio:: - - S Addr Rd [A] Dati [A] Dati [A] ... [A] Dati [A] P - -I2C_M_STOP: - Forza una condizione di stop (P) dopo il messaggio. Alcuni protocolli - simili a I2C come SCCB lo richiedono. Normalmente, non si vuole essere - interrotti tra i messaggi di un trasferimento. +================= +Il protocollo I2C +================= + +Questo documento è una panoramica delle transazioni di base I2C e delle API +del kernel per eseguirli. + +Spiegazione dei simboli +======================= + +=============== =========================================================== +S Condizione di avvio +P Condizione di stop +Rd/Wr (1 bit) Bit di lettura/scrittura. Rd vale 1, Wr vale 0. +A, NA (1 bit) Bit di riconoscimento (ACK) e di non riconoscimento (NACK). +Addr (7 bit) Indirizzo I2C a 7 bit. Nota che questo può essere espanso + per ottenere un indirizzo I2C a 10 bit. +Dati (8 bit) Un byte di dati. + +[..] Fra parentesi quadre i dati inviati da dispositivi I2C, + anziché dal master. +=============== =========================================================== + + +Transazione semplice di invio +============================= + +Implementato da i2c_master_send():: + + S Addr Wr [A] Dati [A] Dati [A] ... [A] Dati [A] P + + +Transazione semplice di ricezione +================================= + +Implementato da i2c_master_recv():: + + S Addr Rd [A] [Dati] A [Dati] A ... A [Dati] NA P + + +Transazioni combinate +===================== + +Implementato da i2c_transfer(). + +Sono come le transazioni di cui sopra, ma invece di uno condizione di stop P +viene inviata una condizione di inizio S e la transazione continua. +Un esempio di lettura di un byte, seguita da una scrittura di un byte:: + + S Addr Rd [A] [Dati] NA S Addr Wr [A] Dati [A] P + + +Transazioni modificate +====================== + +Le seguenti modifiche al protocollo I2C possono essere generate +impostando questi flag per i messaggi I2C. Ad eccezione di I2C_M_NOSTART, sono +di solito necessari solo per risolvere problemi di un dispositivo: + +I2C_M_IGNORE_NAK: + Normalmente il messaggio viene interrotto immediatamente se il dispositivo + risponde con [NA]. Impostando questo flag, si considera qualsiasi [NA] come + [A] e tutto il messaggio viene inviato. + Questi messaggi potrebbero comunque non riuscire a raggiungere il timeout + SCL basso->alto. + +I2C_M_NO_RD_ACK: + In un messaggio di lettura, il bit A/NA del master viene saltato. + +I2C_M_NOSTART: + In una transazione combinata, potrebbe non essere generato alcun + "S Addr Wr/Rd [A]". + Ad esempio, impostando I2C_M_NOSTART sul secondo messaggio parziale + genera qualcosa del tipo:: + + S Addr Rd [A] [Dati] NA Dati [A] P + + Se si imposta il flag I2C_M_NOSTART per il primo messaggio parziale, + non viene generato Addr, ma si genera la condizione di avvio S. + Questo probabilmente confonderà tutti gli altri dispositivi sul bus, quindi + meglio non usarlo. + + Questo viene spesso utilizzato per raccogliere le trasmissioni da più + buffer di dati presenti nella memoria di sistema in qualcosa che appare + come un singolo trasferimento verso il dispositivo I2C. Inoltre, alcuni + dispositivi particolari lo utilizzano anche tra i cambi di direzione. + +I2C_M_REV_DIR_ADDR: + Questo inverte il flag Rd/Wr. Cioè, se si vuole scrivere, ma si ha bisogno + di emettere una Rd invece di una Wr, o viceversa, si può impostare questo + flag. + Per esempio:: + + S Addr Rd [A] Dati [A] Dati [A] ... [A] Dati [A] P + +I2C_M_STOP: + Forza una condizione di stop (P) dopo il messaggio. Alcuni protocolli + simili a I2C come SCCB lo richiedono. Normalmente, non si vuole essere + interrotti tra i messaggi di un trasferimento. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/it_IT/process/8.Conclusion.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/it_IT/process/8.Conclusion.rst index 7b2cf2070..32659ff46 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/it_IT/process/8.Conclusion.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/it_IT/process/8.Conclusion.rst @@ -1,84 +1,84 @@ -.. include:: ../disclaimer-ita.rst - -:Original: :ref:`Documentation/process/8.Conclusion.rst ` -:Translator: Alessia Mantegazza - -.. _it_development_conclusion: - -Per maggiori informazioni -========================= - -Esistono numerose fonti di informazioni sullo sviluppo del kernel Linux -e argomenti correlati. Primo tra questi sarà sempre la cartella Documentation -che si trova nei sorgenti kernel. - -Il file :ref:`process/howto.rst ` è un punto di partenza -importante; :ref:`process/submitting-patches.rst ` è -anch'esso qualcosa che tutti gli sviluppatori del kernel dovrebbero leggere. -Molte API interne al kernel sono documentate utilizzando il meccanismo -kerneldoc; "make htmldocs" o "make pdfdocs" possono essere usati per generare -quei documenti in HTML o PDF (sebbene le versioni di TeX di alcune -distribuzioni hanno dei limiti interni e fallisce nel processare -appropriatamente i documenti). - -Diversi siti web approfondiscono lo sviluppo del kernel ad ogni livello -di dettaglio. Il vostro autore vorrebbe umilmente suggerirvi -http://lwn.net/ come fonte; usando l'indice 'kernel' su LWN troverete -molti argomenti specifici sul kernel: - - http://lwn.net/Kernel/Index/ - -Oltre a ciò, una risorsa valida per gli sviluppatori kernel è: - - http://kernelnewbies.org/ - -E, ovviamente, una fonte da non dimenticare è http://kernel.org/, il luogo -definitivo per le informazioni sui rilasci del kernel. - -Ci sono numerosi libri sullo sviluppo del kernel: - - Linux Device Drivers, 3rd Edition (Jonathan Corbet, Alessandro - Rubini, and Greg Kroah-Hartman). In linea all'indirizzo - http://lwn.net/Kernel/LDD3/. - - Linux Kernel Development (Robert Love). - - Understanding the Linux Kernel (Daniel Bovet and Marco Cesati). - -Tutti questi libri soffrono di un errore comune: tendono a risultare in un -certo senso obsoleti dal momento che si trovano in libreria da diverso -tempo. Comunque contengono informazioni abbastanza buone. - -La documentazione per git la troverete su: - - http://www.kernel.org/pub/software/scm/git/docs/ - - http://www.kernel.org/pub/software/scm/git/docs/user-manual.html - - - -Conclusioni -=========== - -Congratulazioni a chiunque ce l'abbia fatta a terminare questo documento di -lungo-respiro. Si spera che abbia fornito un'utile comprensione d'insieme -di come il kernel Linux viene sviluppato e di come potete partecipare a -tale processo. - -Infine, quello che conta è partecipare. Qualsiasi progetto software -open-source non è altro che la somma di quello che i suoi contributori -mettono al suo interno. Il kernel Linux è cresciuto velocemente e bene -perché ha ricevuto il supporto di un impressionante gruppo di sviluppatori, -ognuno dei quali sta lavorando per renderlo migliore. Il kernel è un esempio -importante di cosa può essere fatto quando migliaia di persone lavorano -insieme verso un obiettivo comune. - -Il kernel può sempre beneficiare di una larga base di sviluppatori, tuttavia, -c'è sempre molto lavoro da fare. Ma, cosa non meno importante, molti degli -altri partecipanti all'ecosistema Linux possono trarre beneficio attraverso -il contributo al kernel. Inserire codice nel ramo principale è la chiave -per arrivare ad una qualità del codice più alta, bassa manutenzione e -bassi prezzi di distribuzione, alti livelli d'influenza sulla direzione -dello sviluppo del kernel, e molto altro. È una situazione nella quale -tutti coloro che sono coinvolti vincono. Mollate il vostro editor e -raggiungeteci; sarete più che benvenuti. +.. include:: ../disclaimer-ita.rst + +:Original: :ref:`Documentation/process/8.Conclusion.rst ` +:Translator: Alessia Mantegazza + +.. _it_development_conclusion: + +Per maggiori informazioni +========================= + +Esistono numerose fonti di informazioni sullo sviluppo del kernel Linux +e argomenti correlati. Primo tra questi sarà sempre la cartella Documentation +che si trova nei sorgenti kernel. + +Il file :ref:`process/howto.rst ` è un punto di partenza +importante; :ref:`process/submitting-patches.rst ` è +anch'esso qualcosa che tutti gli sviluppatori del kernel dovrebbero leggere. +Molte API interne al kernel sono documentate utilizzando il meccanismo +kerneldoc; "make htmldocs" o "make pdfdocs" possono essere usati per generare +quei documenti in HTML o PDF (sebbene le versioni di TeX di alcune +distribuzioni hanno dei limiti interni e fallisce nel processare +appropriatamente i documenti). + +Diversi siti web approfondiscono lo sviluppo del kernel ad ogni livello +di dettaglio. Il vostro autore vorrebbe umilmente suggerirvi +http://lwn.net/ come fonte; usando l'indice 'kernel' su LWN troverete +molti argomenti specifici sul kernel: + + http://lwn.net/Kernel/Index/ + +Oltre a ciò, una risorsa valida per gli sviluppatori kernel è: + + http://kernelnewbies.org/ + +E, ovviamente, una fonte da non dimenticare è http://kernel.org/, il luogo +definitivo per le informazioni sui rilasci del kernel. + +Ci sono numerosi libri sullo sviluppo del kernel: + + Linux Device Drivers, 3rd Edition (Jonathan Corbet, Alessandro + Rubini, and Greg Kroah-Hartman). In linea all'indirizzo + http://lwn.net/Kernel/LDD3/. + + Linux Kernel Development (Robert Love). + + Understanding the Linux Kernel (Daniel Bovet and Marco Cesati). + +Tutti questi libri soffrono di un errore comune: tendono a risultare in un +certo senso obsoleti dal momento che si trovano in libreria da diverso +tempo. Comunque contengono informazioni abbastanza buone. + +La documentazione per git la troverete su: + + http://www.kernel.org/pub/software/scm/git/docs/ + + http://www.kernel.org/pub/software/scm/git/docs/user-manual.html + + + +Conclusioni +=========== + +Congratulazioni a chiunque ce l'abbia fatta a terminare questo documento di +lungo-respiro. Si spera che abbia fornito un'utile comprensione d'insieme +di come il kernel Linux viene sviluppato e di come potete partecipare a +tale processo. + +Infine, quello che conta è partecipare. Qualsiasi progetto software +open-source non è altro che la somma di quello che i suoi contributori +mettono al suo interno. Il kernel Linux è cresciuto velocemente e bene +perché ha ricevuto il supporto di un impressionante gruppo di sviluppatori, +ognuno dei quali sta lavorando per renderlo migliore. Il kernel è un esempio +importante di cosa può essere fatto quando migliaia di persone lavorano +insieme verso un obiettivo comune. + +Il kernel può sempre beneficiare di una larga base di sviluppatori, tuttavia, +c'è sempre molto lavoro da fare. Ma, cosa non meno importante, molti degli +altri partecipanti all'ecosistema Linux possono trarre beneficio attraverso +il contributo al kernel. Inserire codice nel ramo principale è la chiave +per arrivare ad una qualità del codice più alta, bassa manutenzione e +bassi prezzi di distribuzione, alti livelli d'influenza sulla direzione +dello sviluppo del kernel, e molto altro. È una situazione nella quale +tutti coloro che sono coinvolti vincono. Mollate il vostro editor e +raggiungeteci; sarete più che benvenuti. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/it_IT/process/magic-number.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/it_IT/process/magic-number.rst index 0949ac9ba..cd8f23571 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/it_IT/process/magic-number.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/it_IT/process/magic-number.rst @@ -1,90 +1,90 @@ -.. include:: ../disclaimer-ita.rst - -:Original: :ref:`Documentation/staging/magic-number.rst ` -:Translator: Federico Vaga - -.. _it_magicnumbers: - -I numeri magici di Linux -======================== - -Questo documento è un registro dei numeri magici in uso. Quando -aggiungete un numero magico ad una struttura, dovreste aggiungerlo anche -a questo documento; la cosa migliore è che tutti i numeri magici usati -dalle varie strutture siano unici. - -È **davvero** un'ottima idea proteggere le strutture dati del kernel con -dei numeri magici. Questo vi permette in fase d'esecuzione di (a) verificare -se una struttura è stata malmenata, o (b) avete passato a una procedura la -struttura errata. Quest'ultimo è molto utile - particolarmente quando si passa -una struttura dati tramite un puntatore void \*. Il codice tty, per esempio, -effettua questa operazione con regolarità passando avanti e indietro le -strutture specifiche per driver e discipline. - -Per utilizzare un numero magico, dovete dichiararlo all'inizio della struttura -dati, come di seguito:: - - struct tty_ldisc { - int magic; - ... - }; - -Per favore, seguite questa direttiva quando aggiungerete migliorie al kernel! -Mi ha risparmiato un numero illimitato di ore di debug, specialmente nei casi -più ostici dove si è andati oltre la dimensione di un vettore e la struttura -dati che lo seguiva in memoria è stata sovrascritta. Seguendo questa -direttiva, questi casi vengono identificati velocemente e in sicurezza. - -Registro dei cambiamenti:: - - Theodore Ts'o - 31 Mar 94 - - La tabella magica è aggiornata a Linux 2.1.55. - - Michael Chastain - - 22 Sep 1997 - - Ora dovrebbe essere aggiornata a Linux 2.1.112. Dato che - siamo in un momento di congelamento delle funzionalità - (*feature freeze*) è improbabile che qualcosa cambi prima - della versione 2.2.x. Le righe sono ordinate secondo il - campo numero. - - Krzysztof G. Baranowski - - 29 Jul 1998 - - Aggiornamento della tabella a Linux 2.5.45. Giusti nel congelamento - delle funzionalità ma è comunque possibile che qualche nuovo - numero magico s'intrufoli prima del kernel 2.6.x. - - Petr Baudis - - 03 Nov 2002 - - Aggiornamento della tabella magica a Linux 2.5.74. - - Fabian Frederick - - 09 Jul 2003 - - -===================== ================ ======================== ========================================== -Nome magico Numero Struttura File -===================== ================ ======================== ========================================== -PG_MAGIC 'P' pg_{read,write}_hdr ``include/linux/pg.h`` -APM_BIOS_MAGIC 0x4101 apm_user ``arch/x86/kernel/apm_32.c`` -FASYNC_MAGIC 0x4601 fasync_struct ``include/linux/fs.h`` -SLIP_MAGIC 0x5302 slip ``drivers/net/slip.h`` -BAYCOM_MAGIC 0x19730510 baycom_state ``drivers/net/baycom_epp.c`` -HDLCDRV_MAGIC 0x5ac6e778 hdlcdrv_state ``include/linux/hdlcdrv.h`` -KV_MAGIC 0x5f4b565f kernel_vars_s ``arch/mips/include/asm/sn/klkernvars.h`` -CODA_MAGIC 0xC0DAC0DA coda_file_info ``fs/coda/coda_fs_i.h`` -YAM_MAGIC 0xF10A7654 yam_port ``drivers/net/hamradio/yam.c`` -CCB_MAGIC 0xf2691ad2 ccb ``drivers/scsi/ncr53c8xx.c`` -QUEUE_MAGIC_FREE 0xf7e1c9a3 queue_entry ``drivers/scsi/arm/queue.c`` -QUEUE_MAGIC_USED 0xf7e1cc33 queue_entry ``drivers/scsi/arm/queue.c`` -NMI_MAGIC 0x48414d4d455201 nmi_s ``arch/mips/include/asm/sn/nmi.h`` -===================== ================ ======================== ========================================== +.. include:: ../disclaimer-ita.rst + +:Original: :ref:`Documentation/staging/magic-number.rst ` +:Translator: Federico Vaga + +.. _it_magicnumbers: + +I numeri magici di Linux +======================== + +Questo documento è un registro dei numeri magici in uso. Quando +aggiungete un numero magico ad una struttura, dovreste aggiungerlo anche +a questo documento; la cosa migliore è che tutti i numeri magici usati +dalle varie strutture siano unici. + +È **davvero** un'ottima idea proteggere le strutture dati del kernel con +dei numeri magici. Questo vi permette in fase d'esecuzione di (a) verificare +se una struttura è stata malmenata, o (b) avete passato a una procedura la +struttura errata. Quest'ultimo è molto utile - particolarmente quando si passa +una struttura dati tramite un puntatore void \*. Il codice tty, per esempio, +effettua questa operazione con regolarità passando avanti e indietro le +strutture specifiche per driver e discipline. + +Per utilizzare un numero magico, dovete dichiararlo all'inizio della struttura +dati, come di seguito:: + + struct tty_ldisc { + int magic; + ... + }; + +Per favore, seguite questa direttiva quando aggiungerete migliorie al kernel! +Mi ha risparmiato un numero illimitato di ore di debug, specialmente nei casi +più ostici dove si è andati oltre la dimensione di un vettore e la struttura +dati che lo seguiva in memoria è stata sovrascritta. Seguendo questa +direttiva, questi casi vengono identificati velocemente e in sicurezza. + +Registro dei cambiamenti:: + + Theodore Ts'o + 31 Mar 94 + + La tabella magica è aggiornata a Linux 2.1.55. + + Michael Chastain + + 22 Sep 1997 + + Ora dovrebbe essere aggiornata a Linux 2.1.112. Dato che + siamo in un momento di congelamento delle funzionalità + (*feature freeze*) è improbabile che qualcosa cambi prima + della versione 2.2.x. Le righe sono ordinate secondo il + campo numero. + + Krzysztof G. Baranowski + + 29 Jul 1998 + + Aggiornamento della tabella a Linux 2.5.45. Giusti nel congelamento + delle funzionalità ma è comunque possibile che qualche nuovo + numero magico s'intrufoli prima del kernel 2.6.x. + + Petr Baudis + + 03 Nov 2002 + + Aggiornamento della tabella magica a Linux 2.5.74. + + Fabian Frederick + + 09 Jul 2003 + + +===================== ================ ======================== ========================================== +Nome magico Numero Struttura File +===================== ================ ======================== ========================================== +PG_MAGIC 'P' pg_{read,write}_hdr ``include/linux/pg.h`` +APM_BIOS_MAGIC 0x4101 apm_user ``arch/x86/kernel/apm_32.c`` +FASYNC_MAGIC 0x4601 fasync_struct ``include/linux/fs.h`` +SLIP_MAGIC 0x5302 slip ``drivers/net/slip.h`` +BAYCOM_MAGIC 0x19730510 baycom_state ``drivers/net/baycom_epp.c`` +HDLCDRV_MAGIC 0x5ac6e778 hdlcdrv_state ``include/linux/hdlcdrv.h`` +KV_MAGIC 0x5f4b565f kernel_vars_s ``arch/mips/include/asm/sn/klkernvars.h`` +CODA_MAGIC 0xC0DAC0DA coda_file_info ``fs/coda/coda_fs_i.h`` +YAM_MAGIC 0xF10A7654 yam_port ``drivers/net/hamradio/yam.c`` +CCB_MAGIC 0xf2691ad2 ccb ``drivers/scsi/ncr53c8xx.c`` +QUEUE_MAGIC_FREE 0xf7e1c9a3 queue_entry ``drivers/scsi/arm/queue.c`` +QUEUE_MAGIC_USED 0xf7e1cc33 queue_entry ``drivers/scsi/arm/queue.c`` +NMI_MAGIC 0x48414d4d455201 nmi_s ``arch/mips/include/asm/sn/nmi.h`` +===================== ================ ======================== ========================================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/sp_SP/index.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/sp_SP/index.rst index cf6ce6b49..aae7018b0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/sp_SP/index.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/sp_SP/index.rst @@ -1,81 +1,81 @@ - -===================== -Traducción al español -===================== - -.. raw:: latex - - \kerneldocCJKoff - -:maintainer: Carlos Bilbao - -.. _sp_disclaimer: - -Advertencia -=========== - -El objetivo de esta traducción es facilitar la lectura y comprensión para -aquellos que no entiendan inglés o duden de sus interpretaciones, o -simplemente para aquellos que prefieran leer en el idioma español. Sin -embargo, tenga en cuenta que la *única* documentación oficial es la que -está en inglés: :ref:`linux_doc` - -La propagación simultánea de la traducción de una modificación en -:ref:`linux_doc` es altamente improbable. Los maintainers y colaboradores -de la traducción intentan mantener sus traducciones al día, en tanto les -es posible. Por tanto, no existe ninguna garantía de que una traducción -esté actualizada con las últimas modificaciones. Si lo que lee en una -traducción no se corresponde con lo que ve en el código fuente, informe -al maintainer de la traducción y, si puede, consulte la documentación en -inglés. - -Una traducción no es una * bifurcación * de la documentación oficial, por -lo que los usuarios no encontrarán aquí ninguna información que no sea la -versión oficial. Cualquier adición, supresión o modificación de los -contenidos deberá ser realizada anteriormente en los documentos en inglés. -Posteriormente, y cuando sea posible, dicho cambio debería aplicarse -también a las traducciones. Los maintainers de las traducciones aceptan -contribuciones que son puramente de interés relativo a la traducción (por -ejemplo, nuevas traducciones, actualizaciones, correcciones, etc.). - -Las traducciones tratan de ser lo más precisas posible pero no es posible -convertir directamente un idioma a otro. Cada idioma tiene su propia -gramática, y una cultura tras ella, por lo tanto, la traducción de una -oración al inglés se podría modificar para adaptarla al español. Por esta -razón, cuando lea esta traducción, puede encontrar algunas diferencias en -la forma, pero todavía transmiten el mensaje original. A pesar de la gran -difusión del inglés en el idioma hablado, cuando sea posible, expresiones -en inglés serán reemplazadas por las palabras correspondientes en español. - -Si necesita ayuda para comunicarse con la comunidad de Linux pero no se -siente cómodo escribiendo en inglés, puede pedir ayuda al maintainer para -obtener una traducción. - -Muchos países hablan español, cada uno con su propia cultura, expresiones, -y diferencias gramaticales en ocasiones significativas. Las traducciones de -los maintainers pueden utilizar el español con el que dichos maintainers se -sientan más cómodos. En principio, estas pequeñas diferencias no deberían -suponer una gran barrera para hablantes de distintas versiones del español, -pero en caso de duda se puede consultar a los maintainers. - -La documentación del kernel Linux -================================= - -Este es el nivel superior de la documentación del kernel en idioma español. -La traducción es incompleta, y podría encontrar advertencias que indiquen -la falta de una traducción o de un grupo de traducciones. - -En términos más generales, la documentación, como el kernel mismo, están en -constante desarrollo. Las mejoras en la documentación siempre son -bienvenidas; de modo que, si desea ayudar, únase a la lista de correo -linux-doc en vger.kernel.org. - -Traducciones al español -======================= - -.. toctree:: - :maxdepth: 1 - - process/index - wrappers/memory-barriers - scheduler/index + +===================== +Traducción al español +===================== + +.. raw:: latex + + \kerneldocCJKoff + +:maintainer: Carlos Bilbao + +.. _sp_disclaimer: + +Advertencia +=========== + +El objetivo de esta traducción es facilitar la lectura y comprensión para +aquellos que no entiendan inglés o duden de sus interpretaciones, o +simplemente para aquellos que prefieran leer en el idioma español. Sin +embargo, tenga en cuenta que la *única* documentación oficial es la que +está en inglés: :ref:`linux_doc` + +La propagación simultánea de la traducción de una modificación en +:ref:`linux_doc` es altamente improbable. Los maintainers y colaboradores +de la traducción intentan mantener sus traducciones al día, en tanto les +es posible. Por tanto, no existe ninguna garantía de que una traducción +esté actualizada con las últimas modificaciones. Si lo que lee en una +traducción no se corresponde con lo que ve en el código fuente, informe +al maintainer de la traducción y, si puede, consulte la documentación en +inglés. + +Una traducción no es una * bifurcación * de la documentación oficial, por +lo que los usuarios no encontrarán aquí ninguna información que no sea la +versión oficial. Cualquier adición, supresión o modificación de los +contenidos deberá ser realizada anteriormente en los documentos en inglés. +Posteriormente, y cuando sea posible, dicho cambio debería aplicarse +también a las traducciones. Los maintainers de las traducciones aceptan +contribuciones que son puramente de interés relativo a la traducción (por +ejemplo, nuevas traducciones, actualizaciones, correcciones, etc.). + +Las traducciones tratan de ser lo más precisas posible pero no es posible +convertir directamente un idioma a otro. Cada idioma tiene su propia +gramática, y una cultura tras ella, por lo tanto, la traducción de una +oración al inglés se podría modificar para adaptarla al español. Por esta +razón, cuando lea esta traducción, puede encontrar algunas diferencias en +la forma, pero todavía transmiten el mensaje original. A pesar de la gran +difusión del inglés en el idioma hablado, cuando sea posible, expresiones +en inglés serán reemplazadas por las palabras correspondientes en español. + +Si necesita ayuda para comunicarse con la comunidad de Linux pero no se +siente cómodo escribiendo en inglés, puede pedir ayuda al maintainer para +obtener una traducción. + +Muchos países hablan español, cada uno con su propia cultura, expresiones, +y diferencias gramaticales en ocasiones significativas. Las traducciones de +los maintainers pueden utilizar el español con el que dichos maintainers se +sientan más cómodos. En principio, estas pequeñas diferencias no deberían +suponer una gran barrera para hablantes de distintas versiones del español, +pero en caso de duda se puede consultar a los maintainers. + +La documentación del kernel Linux +================================= + +Este es el nivel superior de la documentación del kernel en idioma español. +La traducción es incompleta, y podría encontrar advertencias que indiquen +la falta de una traducción o de un grupo de traducciones. + +En términos más generales, la documentación, como el kernel mismo, están en +constante desarrollo. Las mejoras en la documentación siempre son +bienvenidas; de modo que, si desea ayudar, únase a la lista de correo +linux-doc en vger.kernel.org. + +Traducciones al español +======================= + +.. toctree:: + :maxdepth: 1 + + process/index + wrappers/memory-barriers + scheduler/index diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/sp_SP/process/code-of-conduct.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/sp_SP/process/code-of-conduct.rst index 0fcd05990..a6c08613a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/sp_SP/process/code-of-conduct.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/sp_SP/process/code-of-conduct.rst @@ -1,97 +1,97 @@ -.. include:: ../disclaimer-sp.rst - -:Original: :ref:`Documentation/process/code-of-conduct.rst ` -:Translator: Contributor Covenant and Carlos Bilbao - -.. _sp_code_of_conduct: - -Código de Conducta para Contribuyentes -+++++++++++++++++++++++++++++++++++++++ - -Nuestro Compromiso -================== - -Nosotros, como miembros, contribuyentes y administradores nos comprometemos -a hacer de la participación en nuestra comunidad una experiencia libre de -acoso para todo el mundo, independientemente de la edad, dimensión corporal, -minusvalía visible o invisible, etnicidad, características sexuales, -identidad y expresión de género, nivel de experiencia, educación, nivel -socio-económico, nacionalidad, apariencia personal, raza, religión, o -identidad u orientación sexual. Nos comprometemos a actuar e interactuar de -maneras que contribuyan a una comunidad abierta, acogedora, diversa, -inclusiva y sana. - -Nuestros Estándares -=================== - -Ejemplos de comportamiento que contribuyen a crear un ambiente positivo -para nuestra comunidad: - -* Demostrar empatía y amabilidad ante otras personas -* Respeto a diferentes opiniones, puntos de vista y experiencias -* Dar y aceptar adecuadamente retroalimentación constructiva -* Aceptar la responsabilidad y disculparse ante quienes se vean afectados - por nuestros errores, aprendiendo de la experiencia -* Centrarse en lo que sea mejor no sólo para nosotros como individuos, sino - para la comunidad en general - - -Ejemplos de comportamiento inaceptable: - -* El uso de lenguaje o imágenes sexualizadas, y aproximaciones o - atenciones sexuales de cualquier tipo -* Comentarios despectivos (trolling), insultantes o derogatorios, y ataques - personales o políticos -* El acoso en público o privado -* Publicar información privada de otras personas, tales como direcciones - físicas o de correo - electrónico, sin su permiso explícito -* Otras conductas que puedan ser razonablemente consideradas como - inapropiadas en un entorno profesional - - -Aplicación de las responsabilidades -=================================== - -Los administradores de la comunidad son responsables de aclarar y hacer -cumplir nuestros estándares de comportamiento aceptable y tomarán acciones -apropiadas y correctivas de forma justa en respuesta a cualquier -comportamiento que consideren inapropiado, amenazante, ofensivo o dañino. - -Los administradores de la comunidad tendrán el derecho y la responsabilidad -de eliminar, editar o rechazar comentarios, commits, código, ediciones de -páginas de wiki, issues y otras contribuciones que no se alineen con este -Código de Conducta, y comunicarán las razones para sus decisiones de -moderación cuando sea apropiado. - -Alcance -======= - -Este código de conducta aplica tanto a espacios del proyecto como a -espacios públicos donde un individuo esté en representación del proyecto o -comunidad. Ejemplos de esto incluyen el uso de la cuenta oficial de correo -electrónico, publicaciones a través de las redes sociales oficiales, o -presentaciones con personas designadas en eventos en línea o no. - -Aplicación -========== - -Instancias de comportamiento abusivo, acosador o inaceptable de otro modo -podrán ser reportadas contactando el Code of Conduct Commitee a través de -. Todas las quejas serán evaluadas e investigadas de -una manera puntual y justa. El Code of Condut Commitee está obligados a -respetar la privacidad y la seguridad de quienes reporten incidentes. -Detalles de políticas y aplicación en particular, serán incluidos por -separado. - -Atribución -========== - -Este Código de Conducta es una adaptación del Contributor Covenant, versión -1.4, disponible en https://www.contributor-covenant.org/version/1/4/code-of-conduct.html - -Interpretación -============== - -Consulte el documento :ref:`code_of_conduct_interpretation` para ver cómo -interpretará la comunidad del kernel Linux este documento. +.. include:: ../disclaimer-sp.rst + +:Original: :ref:`Documentation/process/code-of-conduct.rst ` +:Translator: Contributor Covenant and Carlos Bilbao + +.. _sp_code_of_conduct: + +Código de Conducta para Contribuyentes ++++++++++++++++++++++++++++++++++++++++ + +Nuestro Compromiso +================== + +Nosotros, como miembros, contribuyentes y administradores nos comprometemos +a hacer de la participación en nuestra comunidad una experiencia libre de +acoso para todo el mundo, independientemente de la edad, dimensión corporal, +minusvalía visible o invisible, etnicidad, características sexuales, +identidad y expresión de género, nivel de experiencia, educación, nivel +socio-económico, nacionalidad, apariencia personal, raza, religión, o +identidad u orientación sexual. Nos comprometemos a actuar e interactuar de +maneras que contribuyan a una comunidad abierta, acogedora, diversa, +inclusiva y sana. + +Nuestros Estándares +=================== + +Ejemplos de comportamiento que contribuyen a crear un ambiente positivo +para nuestra comunidad: + +* Demostrar empatía y amabilidad ante otras personas +* Respeto a diferentes opiniones, puntos de vista y experiencias +* Dar y aceptar adecuadamente retroalimentación constructiva +* Aceptar la responsabilidad y disculparse ante quienes se vean afectados + por nuestros errores, aprendiendo de la experiencia +* Centrarse en lo que sea mejor no sólo para nosotros como individuos, sino + para la comunidad en general + + +Ejemplos de comportamiento inaceptable: + +* El uso de lenguaje o imágenes sexualizadas, y aproximaciones o + atenciones sexuales de cualquier tipo +* Comentarios despectivos (trolling), insultantes o derogatorios, y ataques + personales o políticos +* El acoso en público o privado +* Publicar información privada de otras personas, tales como direcciones + físicas o de correo + electrónico, sin su permiso explícito +* Otras conductas que puedan ser razonablemente consideradas como + inapropiadas en un entorno profesional + + +Aplicación de las responsabilidades +=================================== + +Los administradores de la comunidad son responsables de aclarar y hacer +cumplir nuestros estándares de comportamiento aceptable y tomarán acciones +apropiadas y correctivas de forma justa en respuesta a cualquier +comportamiento que consideren inapropiado, amenazante, ofensivo o dañino. + +Los administradores de la comunidad tendrán el derecho y la responsabilidad +de eliminar, editar o rechazar comentarios, commits, código, ediciones de +páginas de wiki, issues y otras contribuciones que no se alineen con este +Código de Conducta, y comunicarán las razones para sus decisiones de +moderación cuando sea apropiado. + +Alcance +======= + +Este código de conducta aplica tanto a espacios del proyecto como a +espacios públicos donde un individuo esté en representación del proyecto o +comunidad. Ejemplos de esto incluyen el uso de la cuenta oficial de correo +electrónico, publicaciones a través de las redes sociales oficiales, o +presentaciones con personas designadas en eventos en línea o no. + +Aplicación +========== + +Instancias de comportamiento abusivo, acosador o inaceptable de otro modo +podrán ser reportadas contactando el Code of Conduct Commitee a través de +. Todas las quejas serán evaluadas e investigadas de +una manera puntual y justa. El Code of Condut Commitee está obligados a +respetar la privacidad y la seguridad de quienes reporten incidentes. +Detalles de políticas y aplicación en particular, serán incluidos por +separado. + +Atribución +========== + +Este Código de Conducta es una adaptación del Contributor Covenant, versión +1.4, disponible en https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +Interpretación +============== + +Consulte el documento :ref:`code_of_conduct_interpretation` para ver cómo +interpretará la comunidad del kernel Linux este documento. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/sp_SP/process/magic-number.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/sp_SP/process/magic-number.rst index 665760abc..beb4b4c1d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/sp_SP/process/magic-number.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/sp_SP/process/magic-number.rst @@ -1,89 +1,89 @@ -.. include:: ../disclaimer-sp.rst - -:Original: :ref:`Documentation/staging/magic-number.rst ` -:Translator: Carlos Bilbao - -.. _sp_magicnumbers: - -Números mágicos de Linux -======================== - -Este archivo es un registro de los números mágicos que están en uso. Cuando -usted incluya un número mágico a una estructura, también debe agregarlo a -este documento, ya que es mejor si los números mágicos utilizados por -varias estructuras son únicos. - -Es una muy buena idea proteger las estructuras de datos del kernel con -números mágicos. Esto le permite verificar en tiempo de ejecución si (a) -una estructura ha sido manipulada, o (b) ha pasado la estructura incorrecta -a una rutina. Esto último es especialmente útil --- particularmente cuando -pasa punteros a estructuras a través de un puntero void \*. El código tty, -por ejemplo, hace esto con frecuencia para pasar información específica del -driver y líneas de estructuras específicas de protocolo de un lado al -otro. - -La forma de usar números mágicos es declararlos al principio de la -estructura, así:: - - struct tty_ldisc { - int magic; - ... - }; - -Por favor, siga este método cuando agregue futuras mejoras al kernel! Me ha -ahorrado innumerables horas de depuración, especialmente en los casos -complicados donde una matriz ha sido invadida y las estructuras que siguen -a la matriz se han sobrescrito. Usando este método, estos casos se detectan -de forma rápida y segura. - -Changelog:: - - Theodore Ts'o - 31 Mar 94 - - La tabla mágica ha sido actualizada para Linux 2.1.55. - - Michael Chastain - - 22 Sep 1997 - - Ahora debería estar actualizada con Linux 2.1.112. Porque - estamos en fase de "feature freeze", es muy poco probable que - algo cambiará antes de 2.2.x. Las entradas son - ordenados por campo numérico. - - Krzysztof G. Baranowski - - 29 Jul 1998 - - Se actualizó la tabla mágica a Linux 2.5.45. Justo sobre el feature - freeze, pero es posible que algunos nuevos números mágicos se cuelen en - el kernel antes de 2.6.x todavía. - - Petr Baudis - - 03 Nov 2002 - - La tabla mágica ha sido actualizada para Linux 2.5.74. - - Fabian Frederick - - 09 Jul 2003 - -===================== ================ ======================== ========================================== -Magic Name Number Structure File -===================== ================ ======================== ========================================== -PG_MAGIC 'P' pg_{read,write}_hdr ``include/linux/pg.h`` -APM_BIOS_MAGIC 0x4101 apm_user ``arch/x86/kernel/apm_32.c`` -FASYNC_MAGIC 0x4601 fasync_struct ``include/linux/fs.h`` -SLIP_MAGIC 0x5302 slip ``drivers/net/slip.h`` -BAYCOM_MAGIC 0x19730510 baycom_state ``drivers/net/baycom_epp.c`` -HDLCDRV_MAGIC 0x5ac6e778 hdlcdrv_state ``include/linux/hdlcdrv.h`` -KV_MAGIC 0x5f4b565f kernel_vars_s ``arch/mips/include/asm/sn/klkernvars.h`` -CODA_MAGIC 0xC0DAC0DA coda_file_info ``fs/coda/coda_fs_i.h`` -YAM_MAGIC 0xF10A7654 yam_port ``drivers/net/hamradio/yam.c`` -CCB_MAGIC 0xf2691ad2 ccb ``drivers/scsi/ncr53c8xx.c`` -QUEUE_MAGIC_FREE 0xf7e1c9a3 queue_entry ``drivers/scsi/arm/queue.c`` -QUEUE_MAGIC_USED 0xf7e1cc33 queue_entry ``drivers/scsi/arm/queue.c`` -NMI_MAGIC 0x48414d4d455201 nmi_s ``arch/mips/include/asm/sn/nmi.h`` -===================== ================ ======================== ========================================== +.. include:: ../disclaimer-sp.rst + +:Original: :ref:`Documentation/staging/magic-number.rst ` +:Translator: Carlos Bilbao + +.. _sp_magicnumbers: + +Números mágicos de Linux +======================== + +Este archivo es un registro de los números mágicos que están en uso. Cuando +usted incluya un número mágico a una estructura, también debe agregarlo a +este documento, ya que es mejor si los números mágicos utilizados por +varias estructuras son únicos. + +Es una muy buena idea proteger las estructuras de datos del kernel con +números mágicos. Esto le permite verificar en tiempo de ejecución si (a) +una estructura ha sido manipulada, o (b) ha pasado la estructura incorrecta +a una rutina. Esto último es especialmente útil --- particularmente cuando +pasa punteros a estructuras a través de un puntero void \*. El código tty, +por ejemplo, hace esto con frecuencia para pasar información específica del +driver y líneas de estructuras específicas de protocolo de un lado al +otro. + +La forma de usar números mágicos es declararlos al principio de la +estructura, así:: + + struct tty_ldisc { + int magic; + ... + }; + +Por favor, siga este método cuando agregue futuras mejoras al kernel! Me ha +ahorrado innumerables horas de depuración, especialmente en los casos +complicados donde una matriz ha sido invadida y las estructuras que siguen +a la matriz se han sobrescrito. Usando este método, estos casos se detectan +de forma rápida y segura. + +Changelog:: + + Theodore Ts'o + 31 Mar 94 + + La tabla mágica ha sido actualizada para Linux 2.1.55. + + Michael Chastain + + 22 Sep 1997 + + Ahora debería estar actualizada con Linux 2.1.112. Porque + estamos en fase de "feature freeze", es muy poco probable que + algo cambiará antes de 2.2.x. Las entradas son + ordenados por campo numérico. + + Krzysztof G. Baranowski + + 29 Jul 1998 + + Se actualizó la tabla mágica a Linux 2.5.45. Justo sobre el feature + freeze, pero es posible que algunos nuevos números mágicos se cuelen en + el kernel antes de 2.6.x todavía. + + Petr Baudis + + 03 Nov 2002 + + La tabla mágica ha sido actualizada para Linux 2.5.74. + + Fabian Frederick + + 09 Jul 2003 + +===================== ================ ======================== ========================================== +Magic Name Number Structure File +===================== ================ ======================== ========================================== +PG_MAGIC 'P' pg_{read,write}_hdr ``include/linux/pg.h`` +APM_BIOS_MAGIC 0x4101 apm_user ``arch/x86/kernel/apm_32.c`` +FASYNC_MAGIC 0x4601 fasync_struct ``include/linux/fs.h`` +SLIP_MAGIC 0x5302 slip ``drivers/net/slip.h`` +BAYCOM_MAGIC 0x19730510 baycom_state ``drivers/net/baycom_epp.c`` +HDLCDRV_MAGIC 0x5ac6e778 hdlcdrv_state ``include/linux/hdlcdrv.h`` +KV_MAGIC 0x5f4b565f kernel_vars_s ``arch/mips/include/asm/sn/klkernvars.h`` +CODA_MAGIC 0xC0DAC0DA coda_file_info ``fs/coda/coda_fs_i.h`` +YAM_MAGIC 0xF10A7654 yam_port ``drivers/net/hamradio/yam.c`` +CCB_MAGIC 0xf2691ad2 ccb ``drivers/scsi/ncr53c8xx.c`` +QUEUE_MAGIC_FREE 0xf7e1c9a3 queue_entry ``drivers/scsi/arm/queue.c`` +QUEUE_MAGIC_USED 0xf7e1cc33 queue_entry ``drivers/scsi/arm/queue.c`` +NMI_MAGIC 0x48414d4d455201 nmi_s ``arch/mips/include/asm/sn/nmi.h`` +===================== ================ ======================== ========================================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/PCI/pci-iov-howto.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/PCI/pci-iov-howto.rst index df3ca0fa5..fb023ea13 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/PCI/pci-iov-howto.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/PCI/pci-iov-howto.rst @@ -1,169 +1,169 @@ -.. SPDX-License-Identifier: GPL-2.0 -.. include:: -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/PCI/pci-iov-howto.rst - -:翻译: - - 司延腾 Yanteng Si - -:校译: - - - -.. _cn_pci-iov-howto: - -========================== -PCI Express I/O 虚拟化指南 -========================== - -:版权: |copy| 2009 Intel Corporation -:作者: - Yu Zhao - - Donald Dutile - -概述 -==== - -什么是SR-IOV ------------- - -单根I/O虚拟化(SR-IOV)是一种PCI Express扩展功能,它使一个物理设备显示为多个 -虚拟设备。物理设备被称为物理功能(PF),而虚拟设备被称为虚拟功能(VF)。VF的分 -配可以由PF通过封装在该功能中的寄存器动态控制。默认情况下,该功能未被启用,PF表 -现为传统的PCIe设备。一旦开启,每个VF的PCI配置空间都可以通过自己的总线、设备和 -功能编号(路由ID)来访问。而且每个VF也有PCI内存空间,用于映射其寄存器集。VF设 -备驱动程序对寄存器集进行操作,这样它就可以发挥功能,并作为一个真正的现有PCI设备 -出现。 - -使用指南 -======== - -我怎样才能启用SR-IOV功能 ------------------------- - -有多种方法可用于SR-IOV的启用。在第一种方法中,设备驱动(PF驱动)将通过SR-IOV -核心提供的API控制功能的启用和禁用。如果硬件具有SR-IOV能力,加载其PF驱动器将启 -用它和与PF相关的所有VF。一些PF驱动需要设置一个模块参数,以确定要启用的VF的数量。 -在第二种方法中,对sysfs文件sriov_numvfs的写入将启用和禁用与PCIe PF相关的VF。 -这种方法实现了每个PF的VF启用/禁用值,而第一种方法则适用于同一设备的所有PF。此外, -PCI SRIOV核心支持确保启用/禁用操作是有效的,以减少同一检查在多个驱动程序中的重 -复,例如,如果启用VF,检查numvfs == 0,确保numvfs <= totalvfs。 -第二种方法是对新的/未来的VF设备的推荐方法。 - -我怎样才能使用虚拟功能 ----------------------- - -在内核中,VF被视为热插拔的PCI设备,所以它们应该能够以与真正的PCI设备相同的方式 -工作。VF需要的设备驱动与普通PCI设备的驱动相同。 - -开发者指南 -========== - -SR-IOV API ----------- - -用来开启SR-IOV功能: - -(a) 对于第一种方法,在驱动程序中:: - - int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn); - -nr_virtfn'是要启用的VF的编号。 - -(b) 对于第二种方法,从sysfs:: - - echo 'nr_virtfn' > \ - /sys/bus/pci/devices//sriov_numvfs - -用来关闭SR-IOV功能: - -(a) 对于第一种方法,在驱动程序中:: - - void pci_disable_sriov(struct pci_dev *dev); - -(b) 对于第二种方法,从sysfs:: - - echo 0 > \ - /sys/bus/pci/devices//sriov_numvfs - -要想通过主机上的兼容驱动启用自动探测VF,在启用SR-IOV功能之前运行下面的命令。这 -是默认的行为。 -:: - - echo 1 > \ - /sys/bus/pci/devices//sriov_drivers_autoprobe - -要禁止主机上的兼容驱动自动探测VF,请在启用SR-IOV功能之前运行以下命令。更新这个 -入口不会影响已经被探测的VF。 -:: - - echo 0 > \ - /sys/bus/pci/devices//sriov_drivers_autoprobe - -用例 ----- - -下面的代码演示了SR-IOV API的用法 -:: - - static int dev_probe(struct pci_dev *dev, const struct pci_device_id *id) - { - pci_enable_sriov(dev, NR_VIRTFN); - - ... - - return 0; - } - - static void dev_remove(struct pci_dev *dev) - { - pci_disable_sriov(dev); - - ... - } - - static int dev_suspend(struct device *dev) - { - ... - - return 0; - } - - static int dev_resume(struct device *dev) - { - ... - - return 0; - } - - static void dev_shutdown(struct pci_dev *dev) - { - ... - } - - static int dev_sriov_configure(struct pci_dev *dev, int numvfs) - { - if (numvfs > 0) { - ... - pci_enable_sriov(dev, numvfs); - ... - return numvfs; - } - if (numvfs == 0) { - .... - pci_disable_sriov(dev); - ... - return 0; - } - } - - static struct pci_driver dev_driver = { - .name = "SR-IOV Physical Function driver", - .id_table = dev_id_table, - .probe = dev_probe, - .remove = dev_remove, - .driver.pm = &dev_pm_ops - .shutdown = dev_shutdown, - .sriov_configure = dev_sriov_configure, - }; +.. SPDX-License-Identifier: GPL-2.0 +.. include:: +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/PCI/pci-iov-howto.rst + +:翻译: + + 司延腾 Yanteng Si + +:校译: + + + +.. _cn_pci-iov-howto: + +========================== +PCI Express I/O 虚拟化指南 +========================== + +:版权: |copy| 2009 Intel Corporation +:作者: - Yu Zhao + - Donald Dutile + +概述 +==== + +什么是SR-IOV +------------ + +单根I/O虚拟化(SR-IOV)是一种PCI Express扩展功能,它使一个物理设备显示为多个 +虚拟设备。物理设备被称为物理功能(PF),而虚拟设备被称为虚拟功能(VF)。VF的分 +配可以由PF通过封装在该功能中的寄存器动态控制。默认情况下,该功能未被启用,PF表 +现为传统的PCIe设备。一旦开启,每个VF的PCI配置空间都可以通过自己的总线、设备和 +功能编号(路由ID)来访问。而且每个VF也有PCI内存空间,用于映射其寄存器集。VF设 +备驱动程序对寄存器集进行操作,这样它就可以发挥功能,并作为一个真正的现有PCI设备 +出现。 + +使用指南 +======== + +我怎样才能启用SR-IOV功能 +------------------------ + +有多种方法可用于SR-IOV的启用。在第一种方法中,设备驱动(PF驱动)将通过SR-IOV +核心提供的API控制功能的启用和禁用。如果硬件具有SR-IOV能力,加载其PF驱动器将启 +用它和与PF相关的所有VF。一些PF驱动需要设置一个模块参数,以确定要启用的VF的数量。 +在第二种方法中,对sysfs文件sriov_numvfs的写入将启用和禁用与PCIe PF相关的VF。 +这种方法实现了每个PF的VF启用/禁用值,而第一种方法则适用于同一设备的所有PF。此外, +PCI SRIOV核心支持确保启用/禁用操作是有效的,以减少同一检查在多个驱动程序中的重 +复,例如,如果启用VF,检查numvfs == 0,确保numvfs <= totalvfs。 +第二种方法是对新的/未来的VF设备的推荐方法。 + +我怎样才能使用虚拟功能 +---------------------- + +在内核中,VF被视为热插拔的PCI设备,所以它们应该能够以与真正的PCI设备相同的方式 +工作。VF需要的设备驱动与普通PCI设备的驱动相同。 + +开发者指南 +========== + +SR-IOV API +---------- + +用来开启SR-IOV功能: + +(a) 对于第一种方法,在驱动程序中:: + + int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn); + +nr_virtfn'是要启用的VF的编号。 + +(b) 对于第二种方法,从sysfs:: + + echo 'nr_virtfn' > \ + /sys/bus/pci/devices//sriov_numvfs + +用来关闭SR-IOV功能: + +(a) 对于第一种方法,在驱动程序中:: + + void pci_disable_sriov(struct pci_dev *dev); + +(b) 对于第二种方法,从sysfs:: + + echo 0 > \ + /sys/bus/pci/devices//sriov_numvfs + +要想通过主机上的兼容驱动启用自动探测VF,在启用SR-IOV功能之前运行下面的命令。这 +是默认的行为。 +:: + + echo 1 > \ + /sys/bus/pci/devices//sriov_drivers_autoprobe + +要禁止主机上的兼容驱动自动探测VF,请在启用SR-IOV功能之前运行以下命令。更新这个 +入口不会影响已经被探测的VF。 +:: + + echo 0 > \ + /sys/bus/pci/devices//sriov_drivers_autoprobe + +用例 +---- + +下面的代码演示了SR-IOV API的用法 +:: + + static int dev_probe(struct pci_dev *dev, const struct pci_device_id *id) + { + pci_enable_sriov(dev, NR_VIRTFN); + + ... + + return 0; + } + + static void dev_remove(struct pci_dev *dev) + { + pci_disable_sriov(dev); + + ... + } + + static int dev_suspend(struct device *dev) + { + ... + + return 0; + } + + static int dev_resume(struct device *dev) + { + ... + + return 0; + } + + static void dev_shutdown(struct pci_dev *dev) + { + ... + } + + static int dev_sriov_configure(struct pci_dev *dev, int numvfs) + { + if (numvfs > 0) { + ... + pci_enable_sriov(dev, numvfs); + ... + return numvfs; + } + if (numvfs == 0) { + .... + pci_disable_sriov(dev); + ... + return 0; + } + } + + static struct pci_driver dev_driver = { + .name = "SR-IOV Physical Function driver", + .id_table = dev_id_table, + .probe = dev_probe, + .remove = dev_remove, + .driver.pm = &dev_pm_ops + .shutdown = dev_shutdown, + .sriov_configure = dev_sriov_configure, + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/accounting/delay-accounting.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/accounting/delay-accounting.rst index a2d699d1d..7b8693ccf 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/accounting/delay-accounting.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/accounting/delay-accounting.rst @@ -1,112 +1,112 @@ -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/accounting/delay-accounting.rst - -:Translator: Yang Yang - -======== -延时计数 -======== - -任务在等待某些内核资源可用时,会造成延时。例如一个可运行的任务可能会等待 -一个空闲CPU来运行。 - -基于每任务的延时计数功能度量由以下情况造成的任务延时: - -a) 等待一个CPU(任务为可运行) -b) 完成由该任务发起的块I/O同步请求 -c) 页面交换 -d) 内存回收 -e) 抖动 -f) 直接规整 -g) 写保护复制 - -并将这些统计信息通过taskstats接口提供给用户空间。 - -这些延时信息为适当的调整任务CPU优先级、io优先级、rss限制提供反馈。重要任务 -长期延时,表示可能需要提高其相关优先级。 - -通过使用taskstats接口,本功能还可提供一个线程组(对应传统Unix进程)所有任务 -(或线程)的总延时统计信息。此类汇总往往是需要的,由内核来完成更加高效。 - -用户空间的实体,特别是资源管理程序,可将延时统计信息汇总到任意组中。为实现 -这一点,任务的延时统计信息在其生命周期内和退出时皆可获取,从而确保可进行 -连续、完整的监控。 - -接口 ----- - -延时计数使用taskstats接口,该接口由本目录另一个单独的文档详细描述。Taskstats -向用户态返回一个通用数据结构,对应每pid或每tgid的统计信息。延时计数功能填写 -该数据结构的特定字段。见 - - include/uapi/linux/taskstats.h - -其描述了延时计数相关字段。系统通常以计数器形式返回 CPU、同步块 I/O、交换、内存 -回收、页缓存抖动、直接规整、写保护复制等的累积延时。 - -取任务某计数器两个连续读数的差值,将得到任务在该时间间隔内等待对应资源的总延时。 - -当任务退出时,内核会将包含每任务的统计信息发送给用户空间,而无需额外的命令。 -若其为线程组最后一个退出的任务,内核还会发送每tgid的统计信息。更多详细信息见 -taskstats接口的描述。 - -tools/accounting目录中的用户空间程序getdelays.c提供了一些简单的命令,用以显示 -延时统计信息。其也是使用taskstats接口的示例。 - -用法 ----- - -使用以下配置编译内核:: - - CONFIG_TASK_DELAY_ACCT=y - CONFIG_TASKSTATS=y - -延时计数在启动时默认关闭。 -若需开启,在启动参数中增加:: - - delayacct - -本文后续的说明基于延时计数已开启。也可在系统运行时,使用sysctl的 -kernel.task_delayacct进行开关。注意,只有在启用延时计数后启动的 -任务才会有相关信息。 - -系统启动后,使用类似getdelays.c的工具获取任务或线程组(tgid)的延时信息。 - -getdelays命令的一般格式:: - - getdelays [-dilv] [-t tgid] [-p pid] - -获取pid为10的任务从系统启动后的延时信息:: - - # ./getdelays -d -p 10 - (输出信息和下例相似) - -获取所有tgid为5的任务从系统启动后的总延时信息:: - - # ./getdelays -d -t 5 - print delayacct stats ON - TGID 5 - - - CPU count real total virtual total delay total delay average - 8 7000000 6872122 3382277 0.423ms - IO count delay total delay average - 0 0 0.000ms - SWAP count delay total delay average - 0 0 0.000ms - RECLAIM count delay total delay average - 0 0 0.000ms - THRASHING count delay total delay average - 0 0 0.000ms - COMPACT count delay total delay average - 0 0 0.000ms - WPCOPY count delay total delay average - 0 0 0ms - -获取pid为1的IO计数,它只和-p一起使用:: - # ./getdelays -i -p 1 - printing IO accounting - linuxrc: read=65536, write=0, cancelled_write=0 - -上面的命令与-v一起使用,可以获取更多调试信息。 +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/accounting/delay-accounting.rst + +:Translator: Yang Yang + +======== +延时计数 +======== + +任务在等待某些内核资源可用时,会造成延时。例如一个可运行的任务可能会等待 +一个空闲CPU来运行。 + +基于每任务的延时计数功能度量由以下情况造成的任务延时: + +a) 等待一个CPU(任务为可运行) +b) 完成由该任务发起的块I/O同步请求 +c) 页面交换 +d) 内存回收 +e) 抖动 +f) 直接规整 +g) 写保护复制 + +并将这些统计信息通过taskstats接口提供给用户空间。 + +这些延时信息为适当的调整任务CPU优先级、io优先级、rss限制提供反馈。重要任务 +长期延时,表示可能需要提高其相关优先级。 + +通过使用taskstats接口,本功能还可提供一个线程组(对应传统Unix进程)所有任务 +(或线程)的总延时统计信息。此类汇总往往是需要的,由内核来完成更加高效。 + +用户空间的实体,特别是资源管理程序,可将延时统计信息汇总到任意组中。为实现 +这一点,任务的延时统计信息在其生命周期内和退出时皆可获取,从而确保可进行 +连续、完整的监控。 + +接口 +---- + +延时计数使用taskstats接口,该接口由本目录另一个单独的文档详细描述。Taskstats +向用户态返回一个通用数据结构,对应每pid或每tgid的统计信息。延时计数功能填写 +该数据结构的特定字段。见 + + include/uapi/linux/taskstats.h + +其描述了延时计数相关字段。系统通常以计数器形式返回 CPU、同步块 I/O、交换、内存 +回收、页缓存抖动、直接规整、写保护复制等的累积延时。 + +取任务某计数器两个连续读数的差值,将得到任务在该时间间隔内等待对应资源的总延时。 + +当任务退出时,内核会将包含每任务的统计信息发送给用户空间,而无需额外的命令。 +若其为线程组最后一个退出的任务,内核还会发送每tgid的统计信息。更多详细信息见 +taskstats接口的描述。 + +tools/accounting目录中的用户空间程序getdelays.c提供了一些简单的命令,用以显示 +延时统计信息。其也是使用taskstats接口的示例。 + +用法 +---- + +使用以下配置编译内核:: + + CONFIG_TASK_DELAY_ACCT=y + CONFIG_TASKSTATS=y + +延时计数在启动时默认关闭。 +若需开启,在启动参数中增加:: + + delayacct + +本文后续的说明基于延时计数已开启。也可在系统运行时,使用sysctl的 +kernel.task_delayacct进行开关。注意,只有在启用延时计数后启动的 +任务才会有相关信息。 + +系统启动后,使用类似getdelays.c的工具获取任务或线程组(tgid)的延时信息。 + +getdelays命令的一般格式:: + + getdelays [-dilv] [-t tgid] [-p pid] + +获取pid为10的任务从系统启动后的延时信息:: + + # ./getdelays -d -p 10 + (输出信息和下例相似) + +获取所有tgid为5的任务从系统启动后的总延时信息:: + + # ./getdelays -d -t 5 + print delayacct stats ON + TGID 5 + + + CPU count real total virtual total delay total delay average + 8 7000000 6872122 3382277 0.423ms + IO count delay total delay average + 0 0 0.000ms + SWAP count delay total delay average + 0 0 0.000ms + RECLAIM count delay total delay average + 0 0 0.000ms + THRASHING count delay total delay average + 0 0 0.000ms + COMPACT count delay total delay average + 0 0 0.000ms + WPCOPY count delay total delay average + 0 0 0ms + +获取pid为1的IO计数,它只和-p一起使用:: + # ./getdelays -i -p 1 + printing IO accounting + linuxrc: read=65536, write=0, cancelled_write=0 + +上面的命令与-v一起使用,可以获取更多调试信息。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/admin-guide/cputopology.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/admin-guide/cputopology.rst index 71de0fb21..544d42f8f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/admin-guide/cputopology.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/admin-guide/cputopology.rst @@ -1,96 +1,96 @@ -.. SPDX-License-Identifier: GPL-2.0 -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/admin-guide/cputopology.rst - -:翻译: - - 唐艺舟 Tang Yizhou - -========================== -如何通过sysfs将CPU拓扑导出 -========================== - -CPU拓扑信息通过sysfs导出。显示的项(属性)和某些架构的/proc/cpuinfo输出相似。它们位于 -/sys/devices/system/cpu/cpuX/topology/。请阅读ABI文件: -Documentation/ABI/stable/sysfs-devices-system-cpu。 - -drivers/base/topology.c是体系结构中性的,它导出了这些属性。然而,die、cluster、book、 -draw这些层次结构相关的文件仅在体系结构提供了下文描述的宏的条件下被创建。 - -对于支持这个特性的体系结构,它必须在include/asm-XXX/topology.h中定义这些宏中的一部分:: - - #define topology_physical_package_id(cpu) - #define topology_die_id(cpu) - #define topology_cluster_id(cpu) - #define topology_core_id(cpu) - #define topology_book_id(cpu) - #define topology_drawer_id(cpu) - #define topology_sibling_cpumask(cpu) - #define topology_core_cpumask(cpu) - #define topology_cluster_cpumask(cpu) - #define topology_die_cpumask(cpu) - #define topology_book_cpumask(cpu) - #define topology_drawer_cpumask(cpu) - -``**_id macros`` 的类型是int。 -``**_cpumask macros`` 的类型是 ``(const) struct cpumask *`` 。后者和恰当的 -``**_siblings`` sysfs属性对应(除了topology_sibling_cpumask(),它和thread_siblings -对应)。 - -为了在所有体系结构上保持一致,include/linux/topology.h提供了上述所有宏的默认定义,以防 -它们未在include/asm-XXX/topology.h中定义: - -1) topology_physical_package_id: -1 -2) topology_die_id: -1 -3) topology_cluster_id: -1 -4) topology_core_id: 0 -5) topology_book_id: -1 -6) topology_drawer_id: -1 -7) topology_sibling_cpumask: 仅入参CPU -8) topology_core_cpumask: 仅入参CPU -9) topology_cluster_cpumask: 仅入参CPU -10) topology_die_cpumask: 仅入参CPU -11) topology_book_cpumask: 仅入参CPU -12) topology_drawer_cpumask: 仅入参CPU - -此外,CPU拓扑信息由/sys/devices/system/cpu提供,包含下述文件。输出对应的内部数据源放在 -方括号("[]")中。 - - =========== ================================================================== - kernel_max: 内核配置允许的最大CPU下标值。[NR_CPUS-1] - - offline: 由于热插拔移除或者超过内核允许的CPU上限(上文描述的kernel_max) - 导致未上线的CPU。[~cpu_online_mask + cpus >= NR_CPUS] - - online: 在线的CPU,可供调度使用。[cpu_online_mask] - - possible: 已被分配资源的CPU,如果它们CPU实际存在,可以上线。 - [cpu_possible_mask] - - present: 被系统识别实际存在的CPU。[cpu_present_mask] - =========== ================================================================== - -上述输出的格式和cpulist_parse()兼容[参见 ]。下面给些例子。 - -在本例中,系统中有64个CPU,但是CPU 32-63超过了kernel_max值,因为NR_CPUS配置项是32, -取值范围被限制为0..31。此外注意CPU2和4-31未上线,但是可以上线,因为它们同时存在于 -present和possible:: - - kernel_max: 31 - offline: 2,4-31,32-63 - online: 0-1,3 - possible: 0-31 - present: 0-31 - -在本例中,NR_CPUS配置项是128,但内核启动时设置possible_cpus=144。系统中有4个CPU, -CPU2被手动设置下线(也是唯一一个可以上线的CPU):: - - kernel_max: 127 - offline: 2,4-127,128-143 - online: 0-1,3 - possible: 0-127 - present: 0-3 - -阅读Documentation/core-api/cpu_hotplug.rst可了解开机参数possible_cpus=NUM,同时还 -可以了解各种cpumask的信息。 +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/admin-guide/cputopology.rst + +:翻译: + + 唐艺舟 Tang Yizhou + +========================== +如何通过sysfs将CPU拓扑导出 +========================== + +CPU拓扑信息通过sysfs导出。显示的项(属性)和某些架构的/proc/cpuinfo输出相似。它们位于 +/sys/devices/system/cpu/cpuX/topology/。请阅读ABI文件: +Documentation/ABI/stable/sysfs-devices-system-cpu。 + +drivers/base/topology.c是体系结构中性的,它导出了这些属性。然而,die、cluster、book、 +draw这些层次结构相关的文件仅在体系结构提供了下文描述的宏的条件下被创建。 + +对于支持这个特性的体系结构,它必须在include/asm-XXX/topology.h中定义这些宏中的一部分:: + + #define topology_physical_package_id(cpu) + #define topology_die_id(cpu) + #define topology_cluster_id(cpu) + #define topology_core_id(cpu) + #define topology_book_id(cpu) + #define topology_drawer_id(cpu) + #define topology_sibling_cpumask(cpu) + #define topology_core_cpumask(cpu) + #define topology_cluster_cpumask(cpu) + #define topology_die_cpumask(cpu) + #define topology_book_cpumask(cpu) + #define topology_drawer_cpumask(cpu) + +``**_id macros`` 的类型是int。 +``**_cpumask macros`` 的类型是 ``(const) struct cpumask *`` 。后者和恰当的 +``**_siblings`` sysfs属性对应(除了topology_sibling_cpumask(),它和thread_siblings +对应)。 + +为了在所有体系结构上保持一致,include/linux/topology.h提供了上述所有宏的默认定义,以防 +它们未在include/asm-XXX/topology.h中定义: + +1) topology_physical_package_id: -1 +2) topology_die_id: -1 +3) topology_cluster_id: -1 +4) topology_core_id: 0 +5) topology_book_id: -1 +6) topology_drawer_id: -1 +7) topology_sibling_cpumask: 仅入参CPU +8) topology_core_cpumask: 仅入参CPU +9) topology_cluster_cpumask: 仅入参CPU +10) topology_die_cpumask: 仅入参CPU +11) topology_book_cpumask: 仅入参CPU +12) topology_drawer_cpumask: 仅入参CPU + +此外,CPU拓扑信息由/sys/devices/system/cpu提供,包含下述文件。输出对应的内部数据源放在 +方括号("[]")中。 + + =========== ================================================================== + kernel_max: 内核配置允许的最大CPU下标值。[NR_CPUS-1] + + offline: 由于热插拔移除或者超过内核允许的CPU上限(上文描述的kernel_max) + 导致未上线的CPU。[~cpu_online_mask + cpus >= NR_CPUS] + + online: 在线的CPU,可供调度使用。[cpu_online_mask] + + possible: 已被分配资源的CPU,如果它们CPU实际存在,可以上线。 + [cpu_possible_mask] + + present: 被系统识别实际存在的CPU。[cpu_present_mask] + =========== ================================================================== + +上述输出的格式和cpulist_parse()兼容[参见 ]。下面给些例子。 + +在本例中,系统中有64个CPU,但是CPU 32-63超过了kernel_max值,因为NR_CPUS配置项是32, +取值范围被限制为0..31。此外注意CPU2和4-31未上线,但是可以上线,因为它们同时存在于 +present和possible:: + + kernel_max: 31 + offline: 2,4-31,32-63 + online: 0-1,3 + possible: 0-31 + present: 0-31 + +在本例中,NR_CPUS配置项是128,但内核启动时设置possible_cpus=144。系统中有4个CPU, +CPU2被手动设置下线(也是唯一一个可以上线的CPU):: + + kernel_max: 127 + offline: 2,4-127,128-143 + online: 0-1,3 + possible: 0-127 + present: 0-3 + +阅读Documentation/core-api/cpu_hotplug.rst可了解开机参数possible_cpus=NUM,同时还 +可以了解各种cpumask的信息。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/admin-guide/lockup-watchdogs.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/admin-guide/lockup-watchdogs.rst index a69a4308d..55ed3f4af 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/admin-guide/lockup-watchdogs.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/admin-guide/lockup-watchdogs.rst @@ -1,66 +1,66 @@ -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/admin-guide/lockup-watchdogs.rst -:Translator: Hailong Liu - -.. _cn_lockup-watchdogs: - - -================================================= -Softlockup与hardlockup检测机制(又名:nmi_watchdog) -================================================= - -Linux中内核实现了一种用以检测系统发生softlockup和hardlockup的看门狗机制。 - -Softlockup是一种会引发系统在内核态中一直循环超过20秒(详见下面“实现”小节)导致 -其他任务没有机会得到运行的BUG。一旦检测到'softlockup'发生,默认情况下系统会打 -印当前堆栈跟踪信息并进入锁定状态。也可配置使其在检测到'softlockup'后进入panic -状态;通过sysctl命令设置“kernel.softlockup_panic”、使用内核启动参数 -“softlockup_panic”(详见Documentation/admin-guide/kernel-parameters.rst)以及使 -能内核编译选项“BOOTPARAM_SOFTLOCKUP_PANIC”都可实现这种配置。 - -而'hardlockup'是一种会引发系统在内核态一直循环超过10秒钟(详见"实现"小节)导致其 -他中断没有机会运行的缺陷。与'softlockup'情况类似,除了使用sysctl命令设置 -'hardlockup_panic'、使能内核选项“BOOTPARAM_HARDLOCKUP_PANIC”以及使用内核参数 -"nmi_watchdog"(详见:”Documentation/admin-guide/kernel-parameters.rst“)外,一旦检 -测到'hardlockup'默认情况下系统打印当前堆栈跟踪信息,然后进入锁定状态。 - -这个panic选项也可以与panic_timeout结合使用(这个panic_timeout是通过稍具迷惑性的 -sysctl命令"kernel.panic"来设置),使系统在panic指定时间后自动重启。 - -实现 -==== - -Softlockup和hardlockup分别建立在hrtimer(高精度定时器)和perf两个子系统上而实现。 -这也就意味着理论上任何架构只要实现了这两个子系统就支持这两种检测机制。 - -Hrtimer用于周期性产生中断并唤醒watchdog线程;NMI perf事件则以”watchdog_thresh“ -(编译时默认初始化为10秒,也可通过”watchdog_thresh“这个sysctl接口来进行配置修改) -为间隔周期产生以检测 hardlockups。如果一个CPU在这个时间段内没有检测到hrtimer中 -断发生,'hardlockup 检测器'(即NMI perf事件处理函数)将会视系统配置而选择产生内核 -警告或者直接panic。 - -而watchdog线程本质上是一个高优先级内核线程,每调度一次就对时间戳进行一次更新。 -如果时间戳在2*watchdog_thresh(这个是softlockup的触发门限)这段时间都未更新,那么 -"softlocup 检测器"(内部hrtimer定时器回调函数)会将相关的调试信息打印到系统日志中, -然后如果系统配置了进入panic流程则进入panic,否则内核继续执行。 - -Hrtimer定时器的周期是2*watchdog_thresh/5,也就是说在hardlockup被触发前hrtimer有 -2~3次机会产生时钟中断。 - -如上所述,内核相当于为系统管理员提供了一个可调节hrtimer定时器和perf事件周期长度 -的调节旋钮。如何通过这个旋钮为特定使用场景配置一个合理的周期值要对lockups检测的 -响应速度和lockups检测开销这二者之间进行权衡。 - -默认情况下所有在线cpu上都会运行一个watchdog线程。不过在内核配置了”NO_HZ_FULL“的 -情况下watchdog线程默认只会运行在管家(housekeeping)cpu上,而”nohz_full“启动参数指 -定的cpu上则不会有watchdog线程运行。试想,如果我们允许watchdog线程在”nohz_full“指 -定的cpu上运行,这些cpu上必须得运行时钟定时器来激发watchdog线程调度;这样一来就会 -使”nohz_full“保护用户程序免受内核干扰的功能失效。当然,副作用就是”nohz_full“指定 -的cpu即使在内核产生了lockup问题我们也无法检测到。不过,至少我们可以允许watchdog -线程在管家(non-tickless)核上继续运行以便我们能继续正常的监测这些cpus上的lockups -事件。 - -不论哪种情况都可以通过sysctl命令kernel.watchdog_cpumask来对没有运行watchdog线程 -的cpu集合进行调节。对于nohz_full而言,如果nohz_full cpu上有异常挂住的情况,通过 -这种方式打开这些cpu上的watchdog进行调试可能会有所作用。 +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/admin-guide/lockup-watchdogs.rst +:Translator: Hailong Liu + +.. _cn_lockup-watchdogs: + + +================================================= +Softlockup与hardlockup检测机制(又名:nmi_watchdog) +================================================= + +Linux中内核实现了一种用以检测系统发生softlockup和hardlockup的看门狗机制。 + +Softlockup是一种会引发系统在内核态中一直循环超过20秒(详见下面“实现”小节)导致 +其他任务没有机会得到运行的BUG。一旦检测到'softlockup'发生,默认情况下系统会打 +印当前堆栈跟踪信息并进入锁定状态。也可配置使其在检测到'softlockup'后进入panic +状态;通过sysctl命令设置“kernel.softlockup_panic”、使用内核启动参数 +“softlockup_panic”(详见Documentation/admin-guide/kernel-parameters.rst)以及使 +能内核编译选项“BOOTPARAM_SOFTLOCKUP_PANIC”都可实现这种配置。 + +而'hardlockup'是一种会引发系统在内核态一直循环超过10秒钟(详见"实现"小节)导致其 +他中断没有机会运行的缺陷。与'softlockup'情况类似,除了使用sysctl命令设置 +'hardlockup_panic'、使能内核选项“BOOTPARAM_HARDLOCKUP_PANIC”以及使用内核参数 +"nmi_watchdog"(详见:”Documentation/admin-guide/kernel-parameters.rst“)外,一旦检 +测到'hardlockup'默认情况下系统打印当前堆栈跟踪信息,然后进入锁定状态。 + +这个panic选项也可以与panic_timeout结合使用(这个panic_timeout是通过稍具迷惑性的 +sysctl命令"kernel.panic"来设置),使系统在panic指定时间后自动重启。 + +实现 +==== + +Softlockup和hardlockup分别建立在hrtimer(高精度定时器)和perf两个子系统上而实现。 +这也就意味着理论上任何架构只要实现了这两个子系统就支持这两种检测机制。 + +Hrtimer用于周期性产生中断并唤醒watchdog线程;NMI perf事件则以”watchdog_thresh“ +(编译时默认初始化为10秒,也可通过”watchdog_thresh“这个sysctl接口来进行配置修改) +为间隔周期产生以检测 hardlockups。如果一个CPU在这个时间段内没有检测到hrtimer中 +断发生,'hardlockup 检测器'(即NMI perf事件处理函数)将会视系统配置而选择产生内核 +警告或者直接panic。 + +而watchdog线程本质上是一个高优先级内核线程,每调度一次就对时间戳进行一次更新。 +如果时间戳在2*watchdog_thresh(这个是softlockup的触发门限)这段时间都未更新,那么 +"softlocup 检测器"(内部hrtimer定时器回调函数)会将相关的调试信息打印到系统日志中, +然后如果系统配置了进入panic流程则进入panic,否则内核继续执行。 + +Hrtimer定时器的周期是2*watchdog_thresh/5,也就是说在hardlockup被触发前hrtimer有 +2~3次机会产生时钟中断。 + +如上所述,内核相当于为系统管理员提供了一个可调节hrtimer定时器和perf事件周期长度 +的调节旋钮。如何通过这个旋钮为特定使用场景配置一个合理的周期值要对lockups检测的 +响应速度和lockups检测开销这二者之间进行权衡。 + +默认情况下所有在线cpu上都会运行一个watchdog线程。不过在内核配置了”NO_HZ_FULL“的 +情况下watchdog线程默认只会运行在管家(housekeeping)cpu上,而”nohz_full“启动参数指 +定的cpu上则不会有watchdog线程运行。试想,如果我们允许watchdog线程在”nohz_full“指 +定的cpu上运行,这些cpu上必须得运行时钟定时器来激发watchdog线程调度;这样一来就会 +使”nohz_full“保护用户程序免受内核干扰的功能失效。当然,副作用就是”nohz_full“指定 +的cpu即使在内核产生了lockup问题我们也无法检测到。不过,至少我们可以允许watchdog +线程在管家(non-tickless)核上继续运行以便我们能继续正常的监测这些cpus上的lockups +事件。 + +不论哪种情况都可以通过sysctl命令kernel.watchdog_cpumask来对没有运行watchdog线程 +的cpu集合进行调节。对于nohz_full而言,如果nohz_full cpu上有异常挂住的情况,通过 +这种方式打开这些cpu上的watchdog进行调试可能会有所作用。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/arch/arm64/amu.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/arch/arm64/amu.rst index 7b5443829..f8e09fd21 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/arch/arm64/amu.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/arch/arm64/amu.rst @@ -1,100 +1,100 @@ -.. include:: ../../disclaimer-zh_CN.rst - -:Original: :ref:`Documentation/arch/arm64/amu.rst ` - -Translator: Bailu Lin - -================================== -AArch64 Linux 中扩展的活动监控单元 -================================== - -作者: Ionela Voinescu - -日期: 2019-09-10 - -本文档简要描述了 AArch64 Linux 支持的活动监控单元的规范。 - - -架构总述 --------- - -活动监控是 ARMv8.4 CPU 架构引入的一个可选扩展特性。 - -活动监控单元(在每个 CPU 中实现)为系统管理提供了性能计数器。既可以通 -过系统寄存器的方式访问计数器,同时也支持外部内存映射的方式访问计数器。 - -AMUv1 架构实现了一个由4个固定的64位事件计数器组成的计数器组。 - - - CPU 周期计数器:同 CPU 的频率增长 - - 常量计数器:同固定的系统时钟频率增长 - - 淘汰指令计数器: 同每次架构指令执行增长 - - 内存停顿周期计数器:计算由在时钟域内的最后一级缓存中未命中而引起 - 的指令调度停顿周期数 - -当处于 WFI 或者 WFE 状态时,计数器不会增长。 - -AMU 架构提供了一个高达16位的事件计数器空间,未来新的 AMU 版本中可能 -用它来实现新增的事件计数器。 - -另外,AMUv1 实现了一个多达16个64位辅助事件计数器的计数器组。 - -冷复位时所有的计数器会清零。 - - -基本支持 --------- - -内核可以安全地运行在支持 AMU 和不支持 AMU 的 CPU 组合中。 -因此,当配置 CONFIG_ARM64_AMU_EXTN 后我们无条件使能后续 -(secondary or hotplugged) CPU 检测和使用这个特性。 - -当在 CPU 上检测到该特性时,我们会标记为特性可用但是不能保证计数器的功能, -仅表明有扩展属性。 - -固件(代码运行在高异常级别,例如 arm-tf )需支持以下功能: - - - 提供低异常级别(EL2 和 EL1)访问 AMU 寄存器的能力。 - - 使能计数器。如果未使能,它的值应为 0。 - - 在从电源关闭状态启动 CPU 前或后保存或者恢复计数器。 - -当使用使能了该特性的内核启动但固件损坏时,访问计数器寄存器可能会遭遇 -panic 或者死锁。即使未发现这些症状,计数器寄存器返回的数据结果并不一 -定能反映真实情况。通常,计数器会返回 0,表明他们未被使能。 - -如果固件没有提供适当的支持最好关闭 CONFIG_ARM64_AMU_EXTN。 -值得注意的是,出于安全原因,不要绕过 AMUSERRENR_EL0 设置而捕获从 -EL0(用户空间) 访问 EL1(内核空间)。 因此,固件应该确保访问 AMU寄存器 -不会困在 EL2或EL3。 - -AMUv1 的固定计数器可以通过如下系统寄存器访问: - - - SYS_AMEVCNTR0_CORE_EL0 - - SYS_AMEVCNTR0_CONST_EL0 - - SYS_AMEVCNTR0_INST_RET_EL0 - - SYS_AMEVCNTR0_MEM_STALL_EL0 - -特定辅助计数器可以通过 SYS_AMEVCNTR1_EL0(n) 访问,其中n介于0到15。 - -详细信息定义在目录:arch/arm64/include/asm/sysreg.h。 - - -用户空间访问 ------------- - -由于以下原因,当前禁止从用户空间访问 AMU 的寄存器: - - - 安全因数:可能会暴露处于安全模式执行的代码信息。 - - 意愿:AMU 是用于系统管理的。 - -同样,该功能对用户空间不可见。 - - -虚拟化 ------- - -由于以下原因,当前禁止从 KVM 客户端的用户空间(EL0)和内核空间(EL1) -访问 AMU 的寄存器: - - - 安全因数:可能会暴露给其他客户端或主机端执行的代码信息。 - -任何试图访问 AMU 寄存器的行为都会触发一个注册在客户端的未定义异常。 +.. include:: ../../disclaimer-zh_CN.rst + +:Original: :ref:`Documentation/arch/arm64/amu.rst ` + +Translator: Bailu Lin + +================================== +AArch64 Linux 中扩展的活动监控单元 +================================== + +作者: Ionela Voinescu + +日期: 2019-09-10 + +本文档简要描述了 AArch64 Linux 支持的活动监控单元的规范。 + + +架构总述 +-------- + +活动监控是 ARMv8.4 CPU 架构引入的一个可选扩展特性。 + +活动监控单元(在每个 CPU 中实现)为系统管理提供了性能计数器。既可以通 +过系统寄存器的方式访问计数器,同时也支持外部内存映射的方式访问计数器。 + +AMUv1 架构实现了一个由4个固定的64位事件计数器组成的计数器组。 + + - CPU 周期计数器:同 CPU 的频率增长 + - 常量计数器:同固定的系统时钟频率增长 + - 淘汰指令计数器: 同每次架构指令执行增长 + - 内存停顿周期计数器:计算由在时钟域内的最后一级缓存中未命中而引起 + 的指令调度停顿周期数 + +当处于 WFI 或者 WFE 状态时,计数器不会增长。 + +AMU 架构提供了一个高达16位的事件计数器空间,未来新的 AMU 版本中可能 +用它来实现新增的事件计数器。 + +另外,AMUv1 实现了一个多达16个64位辅助事件计数器的计数器组。 + +冷复位时所有的计数器会清零。 + + +基本支持 +-------- + +内核可以安全地运行在支持 AMU 和不支持 AMU 的 CPU 组合中。 +因此,当配置 CONFIG_ARM64_AMU_EXTN 后我们无条件使能后续 +(secondary or hotplugged) CPU 检测和使用这个特性。 + +当在 CPU 上检测到该特性时,我们会标记为特性可用但是不能保证计数器的功能, +仅表明有扩展属性。 + +固件(代码运行在高异常级别,例如 arm-tf )需支持以下功能: + + - 提供低异常级别(EL2 和 EL1)访问 AMU 寄存器的能力。 + - 使能计数器。如果未使能,它的值应为 0。 + - 在从电源关闭状态启动 CPU 前或后保存或者恢复计数器。 + +当使用使能了该特性的内核启动但固件损坏时,访问计数器寄存器可能会遭遇 +panic 或者死锁。即使未发现这些症状,计数器寄存器返回的数据结果并不一 +定能反映真实情况。通常,计数器会返回 0,表明他们未被使能。 + +如果固件没有提供适当的支持最好关闭 CONFIG_ARM64_AMU_EXTN。 +值得注意的是,出于安全原因,不要绕过 AMUSERRENR_EL0 设置而捕获从 +EL0(用户空间) 访问 EL1(内核空间)。 因此,固件应该确保访问 AMU寄存器 +不会困在 EL2或EL3。 + +AMUv1 的固定计数器可以通过如下系统寄存器访问: + + - SYS_AMEVCNTR0_CORE_EL0 + - SYS_AMEVCNTR0_CONST_EL0 + - SYS_AMEVCNTR0_INST_RET_EL0 + - SYS_AMEVCNTR0_MEM_STALL_EL0 + +特定辅助计数器可以通过 SYS_AMEVCNTR1_EL0(n) 访问,其中n介于0到15。 + +详细信息定义在目录:arch/arm64/include/asm/sysreg.h。 + + +用户空间访问 +------------ + +由于以下原因,当前禁止从用户空间访问 AMU 的寄存器: + + - 安全因数:可能会暴露处于安全模式执行的代码信息。 + - 意愿:AMU 是用于系统管理的。 + +同样,该功能对用户空间不可见。 + + +虚拟化 +------ + +由于以下原因,当前禁止从 KVM 客户端的用户空间(EL0)和内核空间(EL1) +访问 AMU 的寄存器: + + - 安全因数:可能会暴露给其他客户端或主机端执行的代码信息。 + +任何试图访问 AMU 寄存器的行为都会触发一个注册在客户端的未定义异常。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/arch/arm64/legacy_instructions.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/arch/arm64/legacy_instructions.txt index 687913901..e469fccbe 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/arch/arm64/legacy_instructions.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/arch/arm64/legacy_instructions.txt @@ -1,72 +1,72 @@ -Chinese translated version of Documentation/arch/arm64/legacy_instructions.rst - -If you have any comment or update to the content, please contact the -original document maintainer directly. However, if you have a problem -communicating in English you can also ask the Chinese maintainer for -help. Contact the Chinese maintainer if this translation is outdated -or if there is a problem with the translation. - -Maintainer: Punit Agrawal - Suzuki K. Poulose -Chinese maintainer: Fu Wei ---------------------------------------------------------------------- -Documentation/arch/arm64/legacy_instructions.rst 的中文翻译 - -如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文 -交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻 -译存在问题,请联系中文版维护者。 - -本文翻译提交时的 Git 检出点为: bc465aa9d045feb0e13b4a8f32cc33c1943f62d6 - -英文版维护者: Punit Agrawal - Suzuki K. Poulose -中文版维护者: 傅炜 Fu Wei -中文版翻译者: 傅炜 Fu Wei -中文版校译者: 傅炜 Fu Wei - -以下为正文 ---------------------------------------------------------------------- -Linux 内核在 arm64 上的移植提供了一个基础框架,以支持构架中正在被淘汰或已废弃指令的模拟执行。 -这个基础框架的代码使用未定义指令钩子(hooks)来支持模拟。如果指令存在,它也允许在硬件中启用该指令。 - -模拟模式可通过写 sysctl 节点(/proc/sys/abi)来控制。 -不同的执行方式及 sysctl 节点的相应值,解释如下: - -* Undef(未定义) - 值: 0 - 产生未定义指令终止异常。它是那些构架中已废弃的指令,如 SWP,的默认处理方式。 - -* Emulate(模拟) - 值: 1 - 使用软件模拟方式。为解决软件迁移问题,这种模拟指令模式的使用是被跟踪的,并会发出速率限制警告。 - 它是那些构架中正在被淘汰的指令,如 CP15 barriers(隔离指令),的默认处理方式。 - -* Hardware Execution(硬件执行) - 值: 2 - 虽然标记为正在被淘汰,但一些实现可能提供硬件执行这些指令的使能/禁用操作。 - 使用硬件执行一般会有更好的性能,但将无法收集运行时对正被淘汰指令的使用统计数据。 - -默认执行模式依赖于指令在构架中状态。正在被淘汰的指令应该以模拟(Emulate)作为默认模式, -而已废弃的指令必须默认使用未定义(Undef)模式 - -注意:指令模拟可能无法应对所有情况。更多详情请参考单独的指令注释。 - -受支持的遗留指令 -------------- -* SWP{B} -节点: /proc/sys/abi/swp -状态: 已废弃 -默认执行方式: Undef (0) - -* CP15 Barriers -节点: /proc/sys/abi/cp15_barrier -状态: 正被淘汰,不推荐使用 -默认执行方式: Emulate (1) - -* SETEND -节点: /proc/sys/abi/setend -状态: 正被淘汰,不推荐使用 -默认执行方式: Emulate (1)* -注:为了使能这个特性,系统中的所有 CPU 必须在 EL0 支持混合字节序。 -如果一个新的 CPU (不支持混合字节序) 在使能这个特性后被热插入系统, -在应用中可能会出现不可预期的结果。 +Chinese translated version of Documentation/arch/arm64/legacy_instructions.rst + +If you have any comment or update to the content, please contact the +original document maintainer directly. However, if you have a problem +communicating in English you can also ask the Chinese maintainer for +help. Contact the Chinese maintainer if this translation is outdated +or if there is a problem with the translation. + +Maintainer: Punit Agrawal + Suzuki K. Poulose +Chinese maintainer: Fu Wei +--------------------------------------------------------------------- +Documentation/arch/arm64/legacy_instructions.rst 的中文翻译 + +如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文 +交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻 +译存在问题,请联系中文版维护者。 + +本文翻译提交时的 Git 检出点为: bc465aa9d045feb0e13b4a8f32cc33c1943f62d6 + +英文版维护者: Punit Agrawal + Suzuki K. Poulose +中文版维护者: 傅炜 Fu Wei +中文版翻译者: 傅炜 Fu Wei +中文版校译者: 傅炜 Fu Wei + +以下为正文 +--------------------------------------------------------------------- +Linux 内核在 arm64 上的移植提供了一个基础框架,以支持构架中正在被淘汰或已废弃指令的模拟执行。 +这个基础框架的代码使用未定义指令钩子(hooks)来支持模拟。如果指令存在,它也允许在硬件中启用该指令。 + +模拟模式可通过写 sysctl 节点(/proc/sys/abi)来控制。 +不同的执行方式及 sysctl 节点的相应值,解释如下: + +* Undef(未定义) + 值: 0 + 产生未定义指令终止异常。它是那些构架中已废弃的指令,如 SWP,的默认处理方式。 + +* Emulate(模拟) + 值: 1 + 使用软件模拟方式。为解决软件迁移问题,这种模拟指令模式的使用是被跟踪的,并会发出速率限制警告。 + 它是那些构架中正在被淘汰的指令,如 CP15 barriers(隔离指令),的默认处理方式。 + +* Hardware Execution(硬件执行) + 值: 2 + 虽然标记为正在被淘汰,但一些实现可能提供硬件执行这些指令的使能/禁用操作。 + 使用硬件执行一般会有更好的性能,但将无法收集运行时对正被淘汰指令的使用统计数据。 + +默认执行模式依赖于指令在构架中状态。正在被淘汰的指令应该以模拟(Emulate)作为默认模式, +而已废弃的指令必须默认使用未定义(Undef)模式 + +注意:指令模拟可能无法应对所有情况。更多详情请参考单独的指令注释。 + +受支持的遗留指令 +------------- +* SWP{B} +节点: /proc/sys/abi/swp +状态: 已废弃 +默认执行方式: Undef (0) + +* CP15 Barriers +节点: /proc/sys/abi/cp15_barrier +状态: 正被淘汰,不推荐使用 +默认执行方式: Emulate (1) + +* SETEND +节点: /proc/sys/abi/setend +状态: 正被淘汰,不推荐使用 +默认执行方式: Emulate (1)* +注:为了使能这个特性,系统中的所有 CPU 必须在 EL0 支持混合字节序。 +如果一个新的 CPU (不支持混合字节序) 在使能这个特性后被热插入系统, +在应用中可能会出现不可预期的结果。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/arch/openrisc/openrisc_port.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/arch/openrisc/openrisc_port.rst index 74b14d044..cadc580fa 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/arch/openrisc/openrisc_port.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/arch/openrisc/openrisc_port.rst @@ -1,127 +1,127 @@ -.. include:: ../../disclaimer-zh_CN.rst - -:Original: Documentation/arch/openrisc/openrisc_port.rst - -:翻译: - - 司延腾 Yanteng Si - -.. _cn_openrisc_port: - -============== -OpenRISC Linux -============== - -这是Linux对OpenRISC类微处理器的移植;具体来说,最早移植目标是32位 -OpenRISC 1000系列(或1k)。 - -关于OpenRISC处理器和正在进行中的开发的信息: - - ======= ============================= - 网站 https://openrisc.io - 邮箱 openrisc@lists.librecores.org - ======= ============================= - ---------------------------------------------------------------------- - -OpenRISC工具链和Linux的构建指南 -=============================== - -为了构建和运行Linux for OpenRISC,你至少需要一个基本的工具链,或许 -还需要架构模拟器。 这里概述了准备就位这些部分的步骤。 - -1) 工具链 - -工具链二进制文件可以从openrisc.io或我们的github发布页面获得。不同 -工具链的构建指南可以在openrisc.io或Stafford的工具链构建和发布脚本 -中找到。 - - ====== ================================================= - 二进制 https://github.com/openrisc/or1k-gcc/releases - 工具链 https://openrisc.io/software - 构建 https://github.com/stffrdhrn/or1k-toolchain-build - ====== ================================================= - -2) 构建 - -像往常一样构建Linux内核:: - - make ARCH=openrisc CROSS_COMPILE="or1k-linux-" defconfig - make ARCH=openrisc CROSS_COMPILE="or1k-linux-" - -3) 在FPGA上运行(可选) - -OpenRISC社区通常使用FuseSoC来管理构建和编程SoC到FPGA中。 下面是用 -OpenRISC SoC对De0 Nano开发板进行编程的一个例子。 在构建过程中, -FPGA RTL是从FuseSoC IP核库中下载的代码,并使用FPGA供应商工具构建。 -二进制文件用openocd加载到电路板上。 - -:: - - git clone https://github.com/olofk/fusesoc - cd fusesoc - sudo pip install -e . - - fusesoc init - fusesoc build de0_nano - fusesoc pgm de0_nano - - openocd -f interface/altera-usb-blaster.cfg \ - -f board/or1k_generic.cfg - - telnet localhost 4444 - > init - > halt; load_image vmlinux ; reset - -4) 在模拟器上运行(可选) - -QEMU是一个处理器仿真器,我们推荐它来模拟OpenRISC平台。 请按照QEMU网 -站上的OpenRISC说明,让Linux在QEMU上运行。 你可以自己构建QEMU,但你的 -Linux发行版可能提供了支持OpenRISC的二进制包。 - - ============= ====================================================== - qemu openrisc https://wiki.qemu.org/Documentation/Platforms/OpenRISC - ============= ====================================================== - ---------------------------------------------------------------------- - -术语表 -====== - -代码中使用了以下符号约定以将范围限制在几个特定处理器实现上: - -========= ======================= -openrisc: OpenRISC类型处理器 -or1k: OpenRISC 1000系列处理器 -or1200: OpenRISC 1200处理器 -========= ======================= - ---------------------------------------------------------------------- - -历史 -==== - -2003-11-18 Matjaz Breskvar (phoenix@bsemi.com) - 将linux初步移植到OpenRISC或32架构。 - 所有的核心功能都实现了,并且可以使用。 - -2003-12-08 Matjaz Breskvar (phoenix@bsemi.com) - 彻底改变TLB失误处理。 - 重写异常处理。 - 在默认的initrd中实现了sash-3.6的所有功能。 - 大幅改进的版本。 - -2004-04-10 Matjaz Breskvar (phoenix@bsemi.com) - 大量的bug修复。 - 支持以太网,http和telnet服务器功能。 - 可以运行许多标准的linux应用程序。 - -2004-06-26 Matjaz Breskvar (phoenix@bsemi.com) - 移植到2.6.x。 - -2004-11-30 Matjaz Breskvar (phoenix@bsemi.com) - 大量的bug修复和增强功能。 - 增加了opencores framebuffer驱动。 - -2010-10-09 Jonas Bonn (jonas@southpole.se) - 重大重写,使其与上游的Linux 2.6.36看齐。 +.. include:: ../../disclaimer-zh_CN.rst + +:Original: Documentation/arch/openrisc/openrisc_port.rst + +:翻译: + + 司延腾 Yanteng Si + +.. _cn_openrisc_port: + +============== +OpenRISC Linux +============== + +这是Linux对OpenRISC类微处理器的移植;具体来说,最早移植目标是32位 +OpenRISC 1000系列(或1k)。 + +关于OpenRISC处理器和正在进行中的开发的信息: + + ======= ============================= + 网站 https://openrisc.io + 邮箱 openrisc@lists.librecores.org + ======= ============================= + +--------------------------------------------------------------------- + +OpenRISC工具链和Linux的构建指南 +=============================== + +为了构建和运行Linux for OpenRISC,你至少需要一个基本的工具链,或许 +还需要架构模拟器。 这里概述了准备就位这些部分的步骤。 + +1) 工具链 + +工具链二进制文件可以从openrisc.io或我们的github发布页面获得。不同 +工具链的构建指南可以在openrisc.io或Stafford的工具链构建和发布脚本 +中找到。 + + ====== ================================================= + 二进制 https://github.com/openrisc/or1k-gcc/releases + 工具链 https://openrisc.io/software + 构建 https://github.com/stffrdhrn/or1k-toolchain-build + ====== ================================================= + +2) 构建 + +像往常一样构建Linux内核:: + + make ARCH=openrisc CROSS_COMPILE="or1k-linux-" defconfig + make ARCH=openrisc CROSS_COMPILE="or1k-linux-" + +3) 在FPGA上运行(可选) + +OpenRISC社区通常使用FuseSoC来管理构建和编程SoC到FPGA中。 下面是用 +OpenRISC SoC对De0 Nano开发板进行编程的一个例子。 在构建过程中, +FPGA RTL是从FuseSoC IP核库中下载的代码,并使用FPGA供应商工具构建。 +二进制文件用openocd加载到电路板上。 + +:: + + git clone https://github.com/olofk/fusesoc + cd fusesoc + sudo pip install -e . + + fusesoc init + fusesoc build de0_nano + fusesoc pgm de0_nano + + openocd -f interface/altera-usb-blaster.cfg \ + -f board/or1k_generic.cfg + + telnet localhost 4444 + > init + > halt; load_image vmlinux ; reset + +4) 在模拟器上运行(可选) + +QEMU是一个处理器仿真器,我们推荐它来模拟OpenRISC平台。 请按照QEMU网 +站上的OpenRISC说明,让Linux在QEMU上运行。 你可以自己构建QEMU,但你的 +Linux发行版可能提供了支持OpenRISC的二进制包。 + + ============= ====================================================== + qemu openrisc https://wiki.qemu.org/Documentation/Platforms/OpenRISC + ============= ====================================================== + +--------------------------------------------------------------------- + +术语表 +====== + +代码中使用了以下符号约定以将范围限制在几个特定处理器实现上: + +========= ======================= +openrisc: OpenRISC类型处理器 +or1k: OpenRISC 1000系列处理器 +or1200: OpenRISC 1200处理器 +========= ======================= + +--------------------------------------------------------------------- + +历史 +==== + +2003-11-18 Matjaz Breskvar (phoenix@bsemi.com) + 将linux初步移植到OpenRISC或32架构。 + 所有的核心功能都实现了,并且可以使用。 + +2003-12-08 Matjaz Breskvar (phoenix@bsemi.com) + 彻底改变TLB失误处理。 + 重写异常处理。 + 在默认的initrd中实现了sash-3.6的所有功能。 + 大幅改进的版本。 + +2004-04-10 Matjaz Breskvar (phoenix@bsemi.com) + 大量的bug修复。 + 支持以太网,http和telnet服务器功能。 + 可以运行许多标准的linux应用程序。 + +2004-06-26 Matjaz Breskvar (phoenix@bsemi.com) + 移植到2.6.x。 + +2004-11-30 Matjaz Breskvar (phoenix@bsemi.com) + 大量的bug修复和增强功能。 + 增加了opencores framebuffer驱动。 + +2010-10-09 Jonas Bonn (jonas@southpole.se) + 重大重写,使其与上游的Linux 2.6.36看齐。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/core-api/protection-keys.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/core-api/protection-keys.rst index 75ab7f821..d07830050 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/core-api/protection-keys.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/core-api/protection-keys.rst @@ -1,99 +1,99 @@ -.. SPDX-License-Identifier: GPL-2.0 -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/core-api/protection-keys.rst - -:翻译: - - 司延腾 Yanteng Si - -:校译: - - 吴想成 Wu XiangCheng - -.. _cn_core-api_protection-keys: - -============ -内存保护密钥 -============ - -用户空间的内存保护密钥(Memory Protection Keys for Userspace,PKU,亦 -即PKEYs)是英特尔Skylake(及以后)“可扩展处理器”服务器CPU上的一项功能。 -它将在未来的非服务器英特尔处理器和未来的AMD处理器中可用。 - -对于任何希望测试或使用该功能的人来说,它在亚马逊的EC2 C5实例中是可用的, -并且已知可以在那里使用Ubuntu 17.04镜像运行。 - -内存保护密钥提供了一种机制来执行基于页面的保护,但在应用程序改变保护域 -时不需要修改页表。它的工作原理是在每个页表项中为“保护密钥”分配4个以 -前被忽略的位,从而提供16个可能的密钥。 - -还有一个新的用户可访问寄存器(PKRU),为每个密钥提供两个单独的位(访 -问禁止和写入禁止)。作为一个CPU寄存器,PKRU在本质上是线程本地的,可能 -会给每个线程提供一套不同于其他线程的保护措施。 - -有两条新指令(RDPKRU/WRPKRU)用于读取和写入新的寄存器。该功能仅在64位 -模式下可用,尽管物理地址扩展页表中理论上有空间。这些权限只在数据访问上 -强制执行,对指令获取没有影响。 - - -系统调用 -======== - -有3个系统调用可以直接与pkeys进行交互:: - - int pkey_alloc(unsigned long flags, unsigned long init_access_rights) - int pkey_free(int pkey); - int pkey_mprotect(unsigned long start, size_t len, - unsigned long prot, int pkey); - -在使用一个pkey之前,必须先用pkey_alloc()分配它。一个应用程序直接调用 -WRPKRU指令,以改变一个密钥覆盖的内存的访问权限。在这个例子中,WRPKRU -被一个叫做pkey_set()的C函数所封装:: - - int real_prot = PROT_READ|PROT_WRITE; - pkey = pkey_alloc(0, PKEY_DISABLE_WRITE); - ptr = mmap(NULL, PAGE_SIZE, PROT_NONE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); - ret = pkey_mprotect(ptr, PAGE_SIZE, real_prot, pkey); - ... application runs here - -现在,如果应用程序需要更新'ptr'处的数据,它可以获得访问权,进行更新, -然后取消其写访问权:: - - pkey_set(pkey, 0); // clear PKEY_DISABLE_WRITE - *ptr = foo; // assign something - pkey_set(pkey, PKEY_DISABLE_WRITE); // set PKEY_DISABLE_WRITE again - -现在,当它释放内存时,它也将释放pkey,因为它不再被使用了:: - - munmap(ptr, PAGE_SIZE); - pkey_free(pkey); - -.. note:: pkey_set()是RDPKRU和WRPKRU指令的一个封装器。在tools/testing/selftests/x86/protection_keys.c中可以找到一个实现实例。 - tools/testing/selftests/x86/protection_keys.c. - -行为 -==== - -内核试图使保护密钥与普通的mprotect()的行为一致。例如,如果你这样做:: - - mprotect(ptr, size, PROT_NONE); - something(ptr); - -这样做的时候,你可以期待保护密钥的相同效果:: - - pkey = pkey_alloc(0, PKEY_DISABLE_WRITE | PKEY_DISABLE_READ); - pkey_mprotect(ptr, size, PROT_READ|PROT_WRITE, pkey); - something(ptr); - -无论something()是否是对'ptr'的直接访问,这都应该为真。 -如:: - - *ptr = foo; - -或者当内核代表应用程序进行访问时,比如read():: - - read(fd, ptr, 1); - -在这两种情况下,内核都会发送一个SIGSEGV,但当违反保护密钥时,si_code -将被设置为SEGV_PKERR,而当违反普通的mprotect()权限时,则是SEGV_ACCERR。 +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/core-api/protection-keys.rst + +:翻译: + + 司延腾 Yanteng Si + +:校译: + + 吴想成 Wu XiangCheng + +.. _cn_core-api_protection-keys: + +============ +内存保护密钥 +============ + +用户空间的内存保护密钥(Memory Protection Keys for Userspace,PKU,亦 +即PKEYs)是英特尔Skylake(及以后)“可扩展处理器”服务器CPU上的一项功能。 +它将在未来的非服务器英特尔处理器和未来的AMD处理器中可用。 + +对于任何希望测试或使用该功能的人来说,它在亚马逊的EC2 C5实例中是可用的, +并且已知可以在那里使用Ubuntu 17.04镜像运行。 + +内存保护密钥提供了一种机制来执行基于页面的保护,但在应用程序改变保护域 +时不需要修改页表。它的工作原理是在每个页表项中为“保护密钥”分配4个以 +前被忽略的位,从而提供16个可能的密钥。 + +还有一个新的用户可访问寄存器(PKRU),为每个密钥提供两个单独的位(访 +问禁止和写入禁止)。作为一个CPU寄存器,PKRU在本质上是线程本地的,可能 +会给每个线程提供一套不同于其他线程的保护措施。 + +有两条新指令(RDPKRU/WRPKRU)用于读取和写入新的寄存器。该功能仅在64位 +模式下可用,尽管物理地址扩展页表中理论上有空间。这些权限只在数据访问上 +强制执行,对指令获取没有影响。 + + +系统调用 +======== + +有3个系统调用可以直接与pkeys进行交互:: + + int pkey_alloc(unsigned long flags, unsigned long init_access_rights) + int pkey_free(int pkey); + int pkey_mprotect(unsigned long start, size_t len, + unsigned long prot, int pkey); + +在使用一个pkey之前,必须先用pkey_alloc()分配它。一个应用程序直接调用 +WRPKRU指令,以改变一个密钥覆盖的内存的访问权限。在这个例子中,WRPKRU +被一个叫做pkey_set()的C函数所封装:: + + int real_prot = PROT_READ|PROT_WRITE; + pkey = pkey_alloc(0, PKEY_DISABLE_WRITE); + ptr = mmap(NULL, PAGE_SIZE, PROT_NONE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); + ret = pkey_mprotect(ptr, PAGE_SIZE, real_prot, pkey); + ... application runs here + +现在,如果应用程序需要更新'ptr'处的数据,它可以获得访问权,进行更新, +然后取消其写访问权:: + + pkey_set(pkey, 0); // clear PKEY_DISABLE_WRITE + *ptr = foo; // assign something + pkey_set(pkey, PKEY_DISABLE_WRITE); // set PKEY_DISABLE_WRITE again + +现在,当它释放内存时,它也将释放pkey,因为它不再被使用了:: + + munmap(ptr, PAGE_SIZE); + pkey_free(pkey); + +.. note:: pkey_set()是RDPKRU和WRPKRU指令的一个封装器。在tools/testing/selftests/x86/protection_keys.c中可以找到一个实现实例。 + tools/testing/selftests/x86/protection_keys.c. + +行为 +==== + +内核试图使保护密钥与普通的mprotect()的行为一致。例如,如果你这样做:: + + mprotect(ptr, size, PROT_NONE); + something(ptr); + +这样做的时候,你可以期待保护密钥的相同效果:: + + pkey = pkey_alloc(0, PKEY_DISABLE_WRITE | PKEY_DISABLE_READ); + pkey_mprotect(ptr, size, PROT_READ|PROT_WRITE, pkey); + something(ptr); + +无论something()是否是对'ptr'的直接访问,这都应该为真。 +如:: + + *ptr = foo; + +或者当内核代表应用程序进行访问时,比如read():: + + read(fd, ptr, 1); + +在这两种情况下,内核都会发送一个SIGSEGV,但当违反保护密钥时,si_code +将被设置为SEGV_PKERR,而当违反普通的mprotect()权限时,则是SEGV_ACCERR。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/cpu-freq/core.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/cpu-freq/core.rst index 9f6aa10cb..b3c095306 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/cpu-freq/core.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/cpu-freq/core.rst @@ -1,109 +1,109 @@ -.. SPDX-License-Identifier: GPL-2.0 -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/cpu-freq/core.rst - -:翻译: - - 司延腾 Yanteng Si - -:校译: - - 唐艺舟 Tang Yizhou - -==================================== -CPUFreq核心和CPUFreq通知器的通用说明 -==================================== - -作者: - - Dominik Brodowski - - David Kimdon - - Rafael J. Wysocki - - Viresh Kumar - -.. 目录: - - 1. CPUFreq核心和接口 - 2. CPUFreq通知器 - 3. 含有Operating Performance Point (OPP)的CPUFreq表的生成 - -1. CPUFreq核心和接口 -====================== - -cpufreq核心代码位于drivers/cpufreq/cpufreq.c中。这些cpufreq代码为CPUFreq架构的驱 -动程序(那些执行硬件频率切换的代码)以及 "通知器" 提供了一个标准化的接口。 -包括设备驱动程序;需要了解策略变化(如 ACPI 热量管理),或所有频率变化(如计时代码), -甚至需要强制限制为指定频率(如 ARM 架构上的 LCD 驱动程序)的其它内核组件。 -此外,内核 "常数" loops_per_jiffy 会根据频率变化而更新。 - -cpufreq策略的引用计数由 cpufreq_cpu_get 和 cpufreq_cpu_put 来完成,以确保 cpufreq 驱 -动程序被正确地注册到核心中,并且驱动程序在 cpufreq_put_cpu 被调用之前不会被卸载。这也保证 -了每个CPU核的cpufreq 策略在使用期间不会被释放。 - -2. CPUFreq 通知器 -==================== - -CPUFreq通知器遵循标准的内核通知器接口。 -关于通知器的细节请参阅 linux/include/linux/notifier.h。 - -这里有两个不同的CPUfreq通知器 - 策略通知器和转换通知器。 - - -2.1 CPUFreq策略通知器 ----------------------------- - -当创建或移除策略时,这些都会被通知。 - -阶段是在通知器的第二个参数中指定的。当第一次创建策略时,阶段是CPUFREQ_CREATE_POLICY,当 -策略被移除时,阶段是CPUFREQ_REMOVE_POLICY。 - -第三个参数 ``void *pointer`` 指向一个结构体cpufreq_policy,其包括min,max(新策略的下限和 -上限(单位为kHz))这几个值。 - - -2.2 CPUFreq转换通知器 --------------------------------- - -当CPUfreq驱动切换CPU核心频率时,策略中的每个在线CPU都会收到两次通知,这些变化没有任何外部干 -预。 - -第二个参数指定阶段 - CPUFREQ_PRECHANGE or CPUFREQ_POSTCHANGE. - -第三个参数是一个包含如下值的结构体cpufreq_freqs: - -====== =============================== -policy 指向struct cpufreq_policy的指针 -old 旧频率 -new 新频率 -flags cpufreq驱动的标志 -====== =============================== - -3. 含有Operating Performance Point (OPP)的CPUFreq表的生成 -================================================================== -关于OPP的细节请参阅 Documentation/power/opp.rst - -dev_pm_opp_init_cpufreq_table - - 这个函数提供了一个随时可用的转换例程,用来将OPP层关于可用频率的内部信息翻译成一种 - cpufreq易于处理的格式。 - - .. Warning:: - - 不要在中断上下文中使用此函数。 - - 例如:: - - soc_pm_init() - { - /* Do things */ - r = dev_pm_opp_init_cpufreq_table(dev, &freq_table); - if (!r) - policy->freq_table = freq_table; - /* Do other things */ - } - - .. note:: - - 该函数只有在CONFIG_PM_OPP之外还启用了CONFIG_CPU_FREQ时才可用。 - -dev_pm_opp_free_cpufreq_table - 释放dev_pm_opp_init_cpufreq_table分配的表。 +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/cpu-freq/core.rst + +:翻译: + + 司延腾 Yanteng Si + +:校译: + + 唐艺舟 Tang Yizhou + +==================================== +CPUFreq核心和CPUFreq通知器的通用说明 +==================================== + +作者: + - Dominik Brodowski + - David Kimdon + - Rafael J. Wysocki + - Viresh Kumar + +.. 目录: + + 1. CPUFreq核心和接口 + 2. CPUFreq通知器 + 3. 含有Operating Performance Point (OPP)的CPUFreq表的生成 + +1. CPUFreq核心和接口 +====================== + +cpufreq核心代码位于drivers/cpufreq/cpufreq.c中。这些cpufreq代码为CPUFreq架构的驱 +动程序(那些执行硬件频率切换的代码)以及 "通知器" 提供了一个标准化的接口。 +包括设备驱动程序;需要了解策略变化(如 ACPI 热量管理),或所有频率变化(如计时代码), +甚至需要强制限制为指定频率(如 ARM 架构上的 LCD 驱动程序)的其它内核组件。 +此外,内核 "常数" loops_per_jiffy 会根据频率变化而更新。 + +cpufreq策略的引用计数由 cpufreq_cpu_get 和 cpufreq_cpu_put 来完成,以确保 cpufreq 驱 +动程序被正确地注册到核心中,并且驱动程序在 cpufreq_put_cpu 被调用之前不会被卸载。这也保证 +了每个CPU核的cpufreq 策略在使用期间不会被释放。 + +2. CPUFreq 通知器 +==================== + +CPUFreq通知器遵循标准的内核通知器接口。 +关于通知器的细节请参阅 linux/include/linux/notifier.h。 + +这里有两个不同的CPUfreq通知器 - 策略通知器和转换通知器。 + + +2.1 CPUFreq策略通知器 +---------------------------- + +当创建或移除策略时,这些都会被通知。 + +阶段是在通知器的第二个参数中指定的。当第一次创建策略时,阶段是CPUFREQ_CREATE_POLICY,当 +策略被移除时,阶段是CPUFREQ_REMOVE_POLICY。 + +第三个参数 ``void *pointer`` 指向一个结构体cpufreq_policy,其包括min,max(新策略的下限和 +上限(单位为kHz))这几个值。 + + +2.2 CPUFreq转换通知器 +-------------------------------- + +当CPUfreq驱动切换CPU核心频率时,策略中的每个在线CPU都会收到两次通知,这些变化没有任何外部干 +预。 + +第二个参数指定阶段 - CPUFREQ_PRECHANGE or CPUFREQ_POSTCHANGE. + +第三个参数是一个包含如下值的结构体cpufreq_freqs: + +====== =============================== +policy 指向struct cpufreq_policy的指针 +old 旧频率 +new 新频率 +flags cpufreq驱动的标志 +====== =============================== + +3. 含有Operating Performance Point (OPP)的CPUFreq表的生成 +================================================================== +关于OPP的细节请参阅 Documentation/power/opp.rst + +dev_pm_opp_init_cpufreq_table - + 这个函数提供了一个随时可用的转换例程,用来将OPP层关于可用频率的内部信息翻译成一种 + cpufreq易于处理的格式。 + + .. Warning:: + + 不要在中断上下文中使用此函数。 + + 例如:: + + soc_pm_init() + { + /* Do things */ + r = dev_pm_opp_init_cpufreq_table(dev, &freq_table); + if (!r) + policy->freq_table = freq_table; + /* Do other things */ + } + + .. note:: + + 该函数只有在CONFIG_PM_OPP之外还启用了CONFIG_CPU_FREQ时才可用。 + +dev_pm_opp_free_cpufreq_table + 释放dev_pm_opp_init_cpufreq_table分配的表。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/dev-tools/sparse.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/dev-tools/sparse.rst index 18d422d98..0664c634b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/dev-tools/sparse.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/dev-tools/sparse.rst @@ -1,110 +1,110 @@ -Copyright 2004 Linus Torvalds -Copyright 2004 Pavel Machek -Copyright 2006 Bob Copeland - -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/dev-tools/sparse.rst - -:翻译: - - Li Yang - -:校译: - - 司延腾 Yanteng Si - -.. _cn_sparse: - -Sparse -====== - -Sparse是一个C程序的语义检查器;它可以用来发现内核代码的一些潜在问题。 关 -于sparse的概述,请参见https://lwn.net/Articles/689907/;本文档包含 -一些针对内核的sparse信息。 -关于sparse的更多信息,主要是关于它的内部结构,可以在它的官方网页上找到: -https://sparse.docs.kernel.org。 - -使用 sparse 工具做类型检查 -~~~~~~~~~~~~~~~~~~~~~~~~~~ - -"__bitwise" 是一种类型属性,所以你应该这样使用它:: - - typedef int __bitwise pm_request_t; - - enum pm_request { - PM_SUSPEND = (__force pm_request_t) 1, - PM_RESUME = (__force pm_request_t) 2 - }; - -这样会使 PM_SUSPEND 和 PM_RESUME 成为位方式(bitwise)整数(使用"__force" -是因为 sparse 会抱怨改变位方式的类型转换,但是这里我们确实需要强制进行转 -换)。而且因为所有枚举值都使用了相同的类型,这里的"enum pm_request"也将 -会使用那个类型做为底层实现。 - -而且使用 gcc 编译的时候,所有的 __bitwise/__force 都会消失,最后在 gcc -看来它们只不过是普通的整数。 - -坦白来说,你并不需要使用枚举类型。上面那些实际都可以浓缩成一个特殊的"int -__bitwise"类型。 - -所以更简单的办法只要这样做:: - - typedef int __bitwise pm_request_t; - - #define PM_SUSPEND ((__force pm_request_t) 1) - #define PM_RESUME ((__force pm_request_t) 2) - -现在你就有了严格的类型检查所需要的所有基础架构。 - -一个小提醒:常数整数"0"是特殊的。你可以直接把常数零当作位方式整数使用而 -不用担心 sparse 会抱怨。这是因为"bitwise"(恰如其名)是用来确保不同位方 -式类型不会被弄混(小尾模式,大尾模式,cpu尾模式,或者其他),对他们来说 -常数"0"确实 **是** 特殊的。 - -使用sparse进行锁检查 --------------------- - -下面的宏对于 gcc 来说是未定义的,在 sparse 运行时定义,以使用sparse的“上下文” -跟踪功能,应用于锁定。 这些注释告诉 sparse 什么时候有锁,以及注释的函数的进入和 -退出。 - -__must_hold - 指定的锁在函数进入和退出时被持有。 - -__acquires - 指定的锁在函数退出时被持有,但在进入时不被持有。 - -__releases - 指定的锁在函数进入时被持有,但在退出时不被持有。 - -如果函数在不持有锁的情况下进入和退出,在函数内部以平衡的方式获取和释放锁,则不 -需要注释。 -上面的三个注释是针对sparse否则会报告上下文不平衡的情况。 - -获取 sparse 工具 -~~~~~~~~~~~~~~~~ - -你可以从 Sparse 的主页获取最新的发布版本: - - https://www.kernel.org/pub/software/devel/sparse/dist/ - -或者,你也可以使用 git 克隆最新的 sparse 开发版本: - - git://git.kernel.org/pub/scm/devel/sparse/sparse.git - -一旦你下载了源码,只要以普通用户身份运行: - - make - make install - -如果是标准的用户,它将会被自动安装到你的~/bin目录下。 - -使用 sparse 工具 -~~~~~~~~~~~~~~~~ - -用"make C=1"命令来编译内核,会对所有重新编译的 C 文件使用 sparse 工具。 -或者使用"make C=2"命令,无论文件是否被重新编译都会对其使用 sparse 工具。 -如果你已经编译了内核,用后一种方式可以很快地检查整个源码树。 - -make 的可选变量 CHECKFLAGS 可以用来向 sparse 工具传递参数。编译系统会自 -动向 sparse 工具传递 -Wbitwise 参数。 - +Copyright 2004 Linus Torvalds +Copyright 2004 Pavel Machek +Copyright 2006 Bob Copeland + +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/dev-tools/sparse.rst + +:翻译: + + Li Yang + +:校译: + + 司延腾 Yanteng Si + +.. _cn_sparse: + +Sparse +====== + +Sparse是一个C程序的语义检查器;它可以用来发现内核代码的一些潜在问题。 关 +于sparse的概述,请参见https://lwn.net/Articles/689907/;本文档包含 +一些针对内核的sparse信息。 +关于sparse的更多信息,主要是关于它的内部结构,可以在它的官方网页上找到: +https://sparse.docs.kernel.org。 + +使用 sparse 工具做类型检查 +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +"__bitwise" 是一种类型属性,所以你应该这样使用它:: + + typedef int __bitwise pm_request_t; + + enum pm_request { + PM_SUSPEND = (__force pm_request_t) 1, + PM_RESUME = (__force pm_request_t) 2 + }; + +这样会使 PM_SUSPEND 和 PM_RESUME 成为位方式(bitwise)整数(使用"__force" +是因为 sparse 会抱怨改变位方式的类型转换,但是这里我们确实需要强制进行转 +换)。而且因为所有枚举值都使用了相同的类型,这里的"enum pm_request"也将 +会使用那个类型做为底层实现。 + +而且使用 gcc 编译的时候,所有的 __bitwise/__force 都会消失,最后在 gcc +看来它们只不过是普通的整数。 + +坦白来说,你并不需要使用枚举类型。上面那些实际都可以浓缩成一个特殊的"int +__bitwise"类型。 + +所以更简单的办法只要这样做:: + + typedef int __bitwise pm_request_t; + + #define PM_SUSPEND ((__force pm_request_t) 1) + #define PM_RESUME ((__force pm_request_t) 2) + +现在你就有了严格的类型检查所需要的所有基础架构。 + +一个小提醒:常数整数"0"是特殊的。你可以直接把常数零当作位方式整数使用而 +不用担心 sparse 会抱怨。这是因为"bitwise"(恰如其名)是用来确保不同位方 +式类型不会被弄混(小尾模式,大尾模式,cpu尾模式,或者其他),对他们来说 +常数"0"确实 **是** 特殊的。 + +使用sparse进行锁检查 +-------------------- + +下面的宏对于 gcc 来说是未定义的,在 sparse 运行时定义,以使用sparse的“上下文” +跟踪功能,应用于锁定。 这些注释告诉 sparse 什么时候有锁,以及注释的函数的进入和 +退出。 + +__must_hold - 指定的锁在函数进入和退出时被持有。 + +__acquires - 指定的锁在函数退出时被持有,但在进入时不被持有。 + +__releases - 指定的锁在函数进入时被持有,但在退出时不被持有。 + +如果函数在不持有锁的情况下进入和退出,在函数内部以平衡的方式获取和释放锁,则不 +需要注释。 +上面的三个注释是针对sparse否则会报告上下文不平衡的情况。 + +获取 sparse 工具 +~~~~~~~~~~~~~~~~ + +你可以从 Sparse 的主页获取最新的发布版本: + + https://www.kernel.org/pub/software/devel/sparse/dist/ + +或者,你也可以使用 git 克隆最新的 sparse 开发版本: + + git://git.kernel.org/pub/scm/devel/sparse/sparse.git + +一旦你下载了源码,只要以普通用户身份运行: + + make + make install + +如果是标准的用户,它将会被自动安装到你的~/bin目录下。 + +使用 sparse 工具 +~~~~~~~~~~~~~~~~ + +用"make C=1"命令来编译内核,会对所有重新编译的 C 文件使用 sparse 工具。 +或者使用"make C=2"命令,无论文件是否被重新编译都会对其使用 sparse 工具。 +如果你已经编译了内核,用后一种方式可以很快地检查整个源码树。 + +make 的可选变量 CHECKFLAGS 可以用来向 sparse 工具传递参数。编译系统会自 +动向 sparse 工具传递 -Wbitwise 参数。 + 注意sparse定义了__CHECKER__预处理器符号。 \ No newline at end of file diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/dev-tools/ubsan.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/dev-tools/ubsan.rst index 0efad4de2..2487696b3 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/dev-tools/ubsan.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/dev-tools/ubsan.rst @@ -1,91 +1,91 @@ -.. SPDX-License-Identifier: GPL-2.0 - -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/dev-tools/ubsan.rst -:Translator: Dongliang Mu - -未定义行为消毒剂 - UBSAN -==================================== - -UBSAN是一种动态未定义行为检查工具。 - -UBSAN使用编译时插桩捕捉未定义行为。编译器在可能导致未定义行为的操作前插入特定 -检测代码。如果检查失败,即检测到未定义行为,__ubsan_handle_* 函数将被调用打印 -错误信息。 - -GCC自4.9.x [1_] (详见 ``-fsanitize=undefined`` 选项及其子选项)版本后引入这 -一特性。GCC 5.x 版本实现了更多检查器 [2_]。 - -报告样例 --------------- - -:: - - ================================================================================ - UBSAN: Undefined behaviour in ../include/linux/bitops.h:110:33 - shift exponent 32 is to large for 32-bit type 'unsigned int' - CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.0-rc1+ #26 - 0000000000000000 ffffffff82403cc8 ffffffff815e6cd6 0000000000000001 - ffffffff82403cf8 ffffffff82403ce0 ffffffff8163a5ed 0000000000000020 - ffffffff82403d78 ffffffff8163ac2b ffffffff815f0001 0000000000000002 - Call Trace: - [] dump_stack+0x45/0x5f - [] ubsan_epilogue+0xd/0x40 - [] __ubsan_handle_shift_out_of_bounds+0xeb/0x130 - [] ? radix_tree_gang_lookup_slot+0x51/0x150 - [] _mix_pool_bytes+0x1e6/0x480 - [] ? dmi_walk_early+0x48/0x5c - [] add_device_randomness+0x61/0x130 - [] ? dmi_save_one_device+0xaa/0xaa - [] dmi_walk_early+0x48/0x5c - [] dmi_scan_machine+0x278/0x4b4 - [] ? vprintk_default+0x1a/0x20 - [] ? early_idt_handler_array+0x120/0x120 - [] setup_arch+0x405/0xc2c - [] ? early_idt_handler_array+0x120/0x120 - [] start_kernel+0x83/0x49a - [] ? early_idt_handler_array+0x120/0x120 - [] x86_64_start_reservations+0x2a/0x2c - [] x86_64_start_kernel+0x16b/0x17a - ================================================================================ - -用法 ------ - -使用如下内核配置启用UBSAN:: - - CONFIG_UBSAN=y - -使用如下内核配置检查整个内核:: - - CONFIG_UBSAN_SANITIZE_ALL=y - -为了在特定文件或目录启动代码插桩,需要在相应的内核Makefile中添加一行类似内容: - -- 单文件(如main.o):: - - UBSAN_SANITIZE_main.o := y - -- 一个目录中的所有文件:: - - UBSAN_SANITIZE := y - -即使设置了``CONFIG_UBSAN_SANITIZE_ALL=y``,为了避免文件被插桩,可使用:: - - UBSAN_SANITIZE_main.o := n - -与:: - - UBSAN_SANITIZE := n - -未对齐的内存访问检测可通过开启独立选项 - CONFIG_UBSAN_ALIGNMENT 检测。 -该选项在支持未对齐访问的架构上(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y) -默认为关闭。该选项仍可通过内核配置启用,但它将产生大量的UBSAN报告。 - -参考文献 ----------- - -.. _1: https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Debugging-Options.html -.. _2: https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html -.. _3: https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html +.. SPDX-License-Identifier: GPL-2.0 + +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/dev-tools/ubsan.rst +:Translator: Dongliang Mu + +未定义行为消毒剂 - UBSAN +==================================== + +UBSAN是一种动态未定义行为检查工具。 + +UBSAN使用编译时插桩捕捉未定义行为。编译器在可能导致未定义行为的操作前插入特定 +检测代码。如果检查失败,即检测到未定义行为,__ubsan_handle_* 函数将被调用打印 +错误信息。 + +GCC自4.9.x [1_] (详见 ``-fsanitize=undefined`` 选项及其子选项)版本后引入这 +一特性。GCC 5.x 版本实现了更多检查器 [2_]。 + +报告样例 +-------------- + +:: + + ================================================================================ + UBSAN: Undefined behaviour in ../include/linux/bitops.h:110:33 + shift exponent 32 is to large for 32-bit type 'unsigned int' + CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.0-rc1+ #26 + 0000000000000000 ffffffff82403cc8 ffffffff815e6cd6 0000000000000001 + ffffffff82403cf8 ffffffff82403ce0 ffffffff8163a5ed 0000000000000020 + ffffffff82403d78 ffffffff8163ac2b ffffffff815f0001 0000000000000002 + Call Trace: + [] dump_stack+0x45/0x5f + [] ubsan_epilogue+0xd/0x40 + [] __ubsan_handle_shift_out_of_bounds+0xeb/0x130 + [] ? radix_tree_gang_lookup_slot+0x51/0x150 + [] _mix_pool_bytes+0x1e6/0x480 + [] ? dmi_walk_early+0x48/0x5c + [] add_device_randomness+0x61/0x130 + [] ? dmi_save_one_device+0xaa/0xaa + [] dmi_walk_early+0x48/0x5c + [] dmi_scan_machine+0x278/0x4b4 + [] ? vprintk_default+0x1a/0x20 + [] ? early_idt_handler_array+0x120/0x120 + [] setup_arch+0x405/0xc2c + [] ? early_idt_handler_array+0x120/0x120 + [] start_kernel+0x83/0x49a + [] ? early_idt_handler_array+0x120/0x120 + [] x86_64_start_reservations+0x2a/0x2c + [] x86_64_start_kernel+0x16b/0x17a + ================================================================================ + +用法 +----- + +使用如下内核配置启用UBSAN:: + + CONFIG_UBSAN=y + +使用如下内核配置检查整个内核:: + + CONFIG_UBSAN_SANITIZE_ALL=y + +为了在特定文件或目录启动代码插桩,需要在相应的内核Makefile中添加一行类似内容: + +- 单文件(如main.o):: + + UBSAN_SANITIZE_main.o := y + +- 一个目录中的所有文件:: + + UBSAN_SANITIZE := y + +即使设置了``CONFIG_UBSAN_SANITIZE_ALL=y``,为了避免文件被插桩,可使用:: + + UBSAN_SANITIZE_main.o := n + +与:: + + UBSAN_SANITIZE := n + +未对齐的内存访问检测可通过开启独立选项 - CONFIG_UBSAN_ALIGNMENT 检测。 +该选项在支持未对齐访问的架构上(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y) +默认为关闭。该选项仍可通过内核配置启用,但它将产生大量的UBSAN报告。 + +参考文献 +---------- + +.. _1: https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Debugging-Options.html +.. _2: https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html +.. _3: https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/doc-guide/parse-headers.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/doc-guide/parse-headers.rst index 9abca38bf..a08819e90 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/doc-guide/parse-headers.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/doc-guide/parse-headers.rst @@ -1,187 +1,187 @@ -.. SPDX-License-Identifier: GPL-2.0 - -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/doc-guide/parse-headers.rst - -:译者: 吴想成 Wu XiangCheng - -===================== -包含用户空间API头文件 -===================== - -有时,为了描述用户空间API并在代码和文档之间生成交叉引用,需要包含头文件和示例 -C代码。为用户空间API文件添加交叉引用还有一个好处:如果在文档中找不到相应符号, -Sphinx将生成警告。这有助于保持用户空间API文档与内核更改同步。 -:ref:`parse_headers.pl ` 提供了生成此类交叉引用的一种方法。 -在构建文档时,必须通过Makefile调用它。有关如何在内核树中使用它的示例,请参阅 -``Documentation/userspace-api/media/Makefile`` 。 - -.. _parse_headers_zh: - -parse_headers.pl ----------------- - -脚本名称 -~~~~~~~~ - - -parse_headers.pl——解析一个C文件,识别函数、结构体、枚举、定义并对Sphinx文档 -创建交叉引用。 - - -用法概要 -~~~~~~~~ - - -\ **parse_headers.pl**\ [<选项>] <输出文件> [<例外文件>] - -<选项> 可以是: --debug, --help 或 --usage 。 - - -选项 -~~~~ - - - -\ **--debug**\ - - 开启脚本详细模式,在调试时很有用。 - - -\ **--usage**\ - - 打印简短的帮助信息并退出。 - - - -\ **--help**\ - - 打印更详细的帮助信息并退出。 - - -说明 -~~~~ - -通过C头文件或源文件()中为描述API的文档编写的带交叉引用的 ..预格式化 -文本 块将文件转换成重构文本(RST)。它接受一个可选的<例外文件>,其中描述了 -哪些元素将被忽略或指向非默认引用。 - -输出被写入到<输出文件>。 - -它能够识别定义、函数、结构体、typedef、枚举和枚举符号,并为它们创建交叉引用。 -它还能够区分用于指定Linux ioctl的 ``#define`` 。 - -<例外文件> 包含两种类型的语句: \ **ignore**\ 或 \ **replace**\ . - -ignore标记的语法为: - - -ignore \ **type**\ \ **name**\ - -The \ **ignore**\ 意味着它不会为类型为 \ **type**\ 的 \ **name**\ 符号生成 -交叉引用。 - - -replace标记的语法为: - - -replace \ **type**\ \ **name**\ \ **new_value**\ - -The \ **replace**\ 味着它将为 \ **type**\ 类型的 \ **name**\ 符号生成交叉引 -用,但是它将使用 \ **new_value**\ 来取代默认的替换规则。 - - -这两种语句中, \ **type**\ 可以是以下任一项: - - -\ **ioctl**\ - - ignore 或 replace 语句应用于ioctl定义,如: - - #define VIDIOC_DBG_S_REGISTER _IOW('V', 79, struct v4l2_dbg_register) - - - -\ **define**\ - - ignore 或 replace 语句应用于在中找到的任何其他 ``#define`` 。 - - - -\ **typedef**\ - - ignore 和 replace 语句应用于中的typedef语句。 - - - -\ **struct**\ - - ignore 和 replace 语句应用于中的结构体名称语句。 - - - -\ **enum**\ - - ignore 和 replace 语句应用于中的枚举名称语句。 - - - -\ **symbol**\ - - ignore 和 replace 语句应用于中的枚举值名称语句。 - - replace语句中, \ **new_value**\ 会自动使用 \ **typedef**\ , \ **enum**\ - 和 \ **struct**\ 类型的 :c:type: 引用;以及 \ **ioctl**\ , \ **define**\ 和 - \ **symbol**\ 类型的 :ref: 。引用的类型也可以在replace语句中显式定义。 - - -示例 -~~~~ - - -ignore define _VIDEODEV2_H - - -忽略中的 #define _VIDEODEV2_H 。 - -ignore symbol PRIVATE - - -如下结构体: - -enum foo { BAR1, BAR2, PRIVATE }; - -不会为 \ **PRIVATE**\ 生成交叉引用。 - -replace symbol BAR1 :c:type:\`foo\` -replace symbol BAR2 :c:type:\`foo\` - - -如下结构体: - -enum foo { BAR1, BAR2, PRIVATE }; - -它会让BAR1和BAR2枚举符号交叉引用C域中的foo符号。 - - - -缺陷 -~~~~ - - -请向Mauro Carvalho Chehab 报告有关缺陷。 - -中文翻译问题请找中文翻译维护者。 - - -版权 -~~~~ - - -版权所有 (c) 2016 Mauro Carvalho Chehab - -许可证 GPLv2:GNU GPL version 2 - -这是自由软件:你可以自由地修改和重新发布它。 -在法律允许的范围内,**不提供任何保证**。 +.. SPDX-License-Identifier: GPL-2.0 + +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/doc-guide/parse-headers.rst + +:译者: 吴想成 Wu XiangCheng + +===================== +包含用户空间API头文件 +===================== + +有时,为了描述用户空间API并在代码和文档之间生成交叉引用,需要包含头文件和示例 +C代码。为用户空间API文件添加交叉引用还有一个好处:如果在文档中找不到相应符号, +Sphinx将生成警告。这有助于保持用户空间API文档与内核更改同步。 +:ref:`parse_headers.pl ` 提供了生成此类交叉引用的一种方法。 +在构建文档时,必须通过Makefile调用它。有关如何在内核树中使用它的示例,请参阅 +``Documentation/userspace-api/media/Makefile`` 。 + +.. _parse_headers_zh: + +parse_headers.pl +---------------- + +脚本名称 +~~~~~~~~ + + +parse_headers.pl——解析一个C文件,识别函数、结构体、枚举、定义并对Sphinx文档 +创建交叉引用。 + + +用法概要 +~~~~~~~~ + + +\ **parse_headers.pl**\ [<选项>] <输出文件> [<例外文件>] + +<选项> 可以是: --debug, --help 或 --usage 。 + + +选项 +~~~~ + + + +\ **--debug**\ + + 开启脚本详细模式,在调试时很有用。 + + +\ **--usage**\ + + 打印简短的帮助信息并退出。 + + + +\ **--help**\ + + 打印更详细的帮助信息并退出。 + + +说明 +~~~~ + +通过C头文件或源文件()中为描述API的文档编写的带交叉引用的 ..预格式化 +文本 块将文件转换成重构文本(RST)。它接受一个可选的<例外文件>,其中描述了 +哪些元素将被忽略或指向非默认引用。 + +输出被写入到<输出文件>。 + +它能够识别定义、函数、结构体、typedef、枚举和枚举符号,并为它们创建交叉引用。 +它还能够区分用于指定Linux ioctl的 ``#define`` 。 + +<例外文件> 包含两种类型的语句: \ **ignore**\ 或 \ **replace**\ . + +ignore标记的语法为: + + +ignore \ **type**\ \ **name**\ + +The \ **ignore**\ 意味着它不会为类型为 \ **type**\ 的 \ **name**\ 符号生成 +交叉引用。 + + +replace标记的语法为: + + +replace \ **type**\ \ **name**\ \ **new_value**\ + +The \ **replace**\ 味着它将为 \ **type**\ 类型的 \ **name**\ 符号生成交叉引 +用,但是它将使用 \ **new_value**\ 来取代默认的替换规则。 + + +这两种语句中, \ **type**\ 可以是以下任一项: + + +\ **ioctl**\ + + ignore 或 replace 语句应用于ioctl定义,如: + + #define VIDIOC_DBG_S_REGISTER _IOW('V', 79, struct v4l2_dbg_register) + + + +\ **define**\ + + ignore 或 replace 语句应用于在中找到的任何其他 ``#define`` 。 + + + +\ **typedef**\ + + ignore 和 replace 语句应用于中的typedef语句。 + + + +\ **struct**\ + + ignore 和 replace 语句应用于中的结构体名称语句。 + + + +\ **enum**\ + + ignore 和 replace 语句应用于中的枚举名称语句。 + + + +\ **symbol**\ + + ignore 和 replace 语句应用于中的枚举值名称语句。 + + replace语句中, \ **new_value**\ 会自动使用 \ **typedef**\ , \ **enum**\ + 和 \ **struct**\ 类型的 :c:type: 引用;以及 \ **ioctl**\ , \ **define**\ 和 + \ **symbol**\ 类型的 :ref: 。引用的类型也可以在replace语句中显式定义。 + + +示例 +~~~~ + + +ignore define _VIDEODEV2_H + + +忽略中的 #define _VIDEODEV2_H 。 + +ignore symbol PRIVATE + + +如下结构体: + +enum foo { BAR1, BAR2, PRIVATE }; + +不会为 \ **PRIVATE**\ 生成交叉引用。 + +replace symbol BAR1 :c:type:\`foo\` +replace symbol BAR2 :c:type:\`foo\` + + +如下结构体: + +enum foo { BAR1, BAR2, PRIVATE }; + +它会让BAR1和BAR2枚举符号交叉引用C域中的foo符号。 + + + +缺陷 +~~~~ + + +请向Mauro Carvalho Chehab 报告有关缺陷。 + +中文翻译问题请找中文翻译维护者。 + + +版权 +~~~~ + + +版权所有 (c) 2016 Mauro Carvalho Chehab + +许可证 GPLv2:GNU GPL version 2 + +这是自由软件:你可以自由地修改和重新发布它。 +在法律允许的范围内,**不提供任何保证**。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/infiniband/core_locking.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/infiniband/core_locking.rst index 487204be1..42f08038d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/infiniband/core_locking.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/infiniband/core_locking.rst @@ -1,115 +1,115 @@ - -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/infiniband/core_locking.rst - -:翻译: - - 司延腾 Yanteng Si - -:校译: - - 王普宇 Puyu Wang - 时奎亮 Alex Shi - -.. _cn_infiniband_core_locking: - -================== -infiniband中间层锁 -================== - - 本指南试图明确infiniband中间层的锁假设。它描述了对位于中间层以下的低 - 级驱动程序和使用中间层的上层协议的要求。 - -睡眠和中断环境 -============== - - 除了以下异常情况,ib_device结构体中所有方法的低级驱动实现都可以睡眠。 - 这些异常情况是列表中的任意的方法: - - - create_ah - - modify_ah - - query_ah - - destroy_ah - - post_send - - post_recv - - poll_cq - - req_notify_cq - - 他们可能不可以睡眠,而且必须可以从任何上下文中调用。 - - 向上层协议使用者输出的相应函数: - - - rdma_create_ah - - rdma_modify_ah - - rdma_query_ah - - rdma_destroy_ah - - ib_post_send - - ib_post_recv - - ib_req_notify_cq - - 因此,在任何情况下都可以安全调用(它们)。 - - 此外,该函数 - - - ib_dispatch_event - - 被底层驱动用来通过中间层调度异步事件的“A”,也可以从任何上下文中安全调 - 用。 - -可重入性 --------- - - 由低级驱动程序导出的ib_device结构体中的所有方法必须是完全可重入的。 - 即使使用同一对象的多个函数调用被同时运行,低级驱动程序也需要执行所有 - 必要的同步以保持一致性。 - - IB中间层不执行任何函数调用的序列化。 - - 因为低级驱动程序是可重入的,所以不要求上层协议使用者任何顺序执行。然 - 而,为了得到合理的结果,可能需要一些顺序。例如,一个使用者可以在多个 - CPU上同时安全地调用ib_poll_cq()。然而,不同的ib_poll_cq()调用之间 - 的工作完成信息的顺序没有被定义。 - -回调 ----- - - 低级驱动程序不得直接从与ib_device方法调用相同的调用链中执行回调。例 - 如,低级驱动程序不允许从post_send方法直接调用使用者的完成事件处理程 - 序。相反,低级驱动程序应该推迟这个回调,例如,调度一个tasklet来执行 - 这个回调。 - - 低层驱动负责确保同一CQ的多个完成事件处理程序不被同时调用。驱动程序必 - 须保证一个给定的CQ的事件处理程序在同一时间只有一个在运行。换句话说, - 以下情况是不允许的:: - - CPU1 CPU2 - - low-level driver -> - consumer CQ event callback: - /* ... */ - ib_req_notify_cq(cq, ...); - low-level driver -> - /* ... */ consumer CQ event callback: - /* ... */ - return from CQ event handler - - 完成事件和异步事件回调的运行环境没有被定义。 根据低级别的驱动程序,它可能是 - 进程上下文、softirq上下文或中断上下文。上层协议使用者可能不会在回调中睡眠。 - -热插拔 ------- - - 当一个低级驱动程序调用ib_register_device()时,它宣布一个设备已经 - 准备好供使用者使用,所有的初始化必须在这个调用之前完成。设备必须保 - 持可用,直到驱动对ib_unregister_device()的调用返回。 - - 低级驱动程序必须从进程上下文调用ib_register_device()和 - ib_unregister_device()。如果使用者在这些调用中回调到驱动程序,它 - 不能持有任何可能导致死锁的semaphores。 - - 一旦其结构体ib_client的add方法被调用,上层协议使用者就可以开始使用 - 一个IB设备。使用者必须在从移除方法返回之前完成所有的清理工作并释放 - 与设备相关的所有资源。 - - 使用者被允许在其添加和删除方法中睡眠。 + +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/infiniband/core_locking.rst + +:翻译: + + 司延腾 Yanteng Si + +:校译: + + 王普宇 Puyu Wang + 时奎亮 Alex Shi + +.. _cn_infiniband_core_locking: + +================== +infiniband中间层锁 +================== + + 本指南试图明确infiniband中间层的锁假设。它描述了对位于中间层以下的低 + 级驱动程序和使用中间层的上层协议的要求。 + +睡眠和中断环境 +============== + + 除了以下异常情况,ib_device结构体中所有方法的低级驱动实现都可以睡眠。 + 这些异常情况是列表中的任意的方法: + + - create_ah + - modify_ah + - query_ah + - destroy_ah + - post_send + - post_recv + - poll_cq + - req_notify_cq + + 他们可能不可以睡眠,而且必须可以从任何上下文中调用。 + + 向上层协议使用者输出的相应函数: + + - rdma_create_ah + - rdma_modify_ah + - rdma_query_ah + - rdma_destroy_ah + - ib_post_send + - ib_post_recv + - ib_req_notify_cq + + 因此,在任何情况下都可以安全调用(它们)。 + + 此外,该函数 + + - ib_dispatch_event + + 被底层驱动用来通过中间层调度异步事件的“A”,也可以从任何上下文中安全调 + 用。 + +可重入性 +-------- + + 由低级驱动程序导出的ib_device结构体中的所有方法必须是完全可重入的。 + 即使使用同一对象的多个函数调用被同时运行,低级驱动程序也需要执行所有 + 必要的同步以保持一致性。 + + IB中间层不执行任何函数调用的序列化。 + + 因为低级驱动程序是可重入的,所以不要求上层协议使用者任何顺序执行。然 + 而,为了得到合理的结果,可能需要一些顺序。例如,一个使用者可以在多个 + CPU上同时安全地调用ib_poll_cq()。然而,不同的ib_poll_cq()调用之间 + 的工作完成信息的顺序没有被定义。 + +回调 +---- + + 低级驱动程序不得直接从与ib_device方法调用相同的调用链中执行回调。例 + 如,低级驱动程序不允许从post_send方法直接调用使用者的完成事件处理程 + 序。相反,低级驱动程序应该推迟这个回调,例如,调度一个tasklet来执行 + 这个回调。 + + 低层驱动负责确保同一CQ的多个完成事件处理程序不被同时调用。驱动程序必 + 须保证一个给定的CQ的事件处理程序在同一时间只有一个在运行。换句话说, + 以下情况是不允许的:: + + CPU1 CPU2 + + low-level driver -> + consumer CQ event callback: + /* ... */ + ib_req_notify_cq(cq, ...); + low-level driver -> + /* ... */ consumer CQ event callback: + /* ... */ + return from CQ event handler + + 完成事件和异步事件回调的运行环境没有被定义。 根据低级别的驱动程序,它可能是 + 进程上下文、softirq上下文或中断上下文。上层协议使用者可能不会在回调中睡眠。 + +热插拔 +------ + + 当一个低级驱动程序调用ib_register_device()时,它宣布一个设备已经 + 准备好供使用者使用,所有的初始化必须在这个调用之前完成。设备必须保 + 持可用,直到驱动对ib_unregister_device()的调用返回。 + + 低级驱动程序必须从进程上下文调用ib_register_device()和 + ib_unregister_device()。如果使用者在这些调用中回调到驱动程序,它 + 不能持有任何可能导致死锁的semaphores。 + + 一旦其结构体ib_client的add方法被调用,上层协议使用者就可以开始使用 + 一个IB设备。使用者必须在从移除方法返回之前完成所有的清理工作并释放 + 与设备相关的所有资源。 + + 使用者被允许在其添加和删除方法中睡眠。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/infiniband/ipoib.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/infiniband/ipoib.rst index ed5f45913..56517ea5f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/infiniband/ipoib.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/infiniband/ipoib.rst @@ -1,111 +1,111 @@ -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/infiniband/ipoib.rst - -:翻译: - - 司延腾 Yanteng Si - -:校译: - - 王普宇 Puyu Wang - 时奎亮 Alex Shi - -.. _cn_infiniband_ipoib: - -========================= -infiniband上的IP(IPoIB) -========================= - - ib_ipoib驱动是IETF ipoib工作组发布的RFC 4391和4392所规定的 - infiniband上IP协议的一个实现。它是一个“本地”实现,即把接口类型设置为 - ARPHRD_INFINIBAND,硬件地址长度为20(早期的专有实现向内核伪装为以太网 - 接口)。 - -分区和P_Keys -============ - - 当IPoIB驱动被加载时,它会使用索引为0的P_Key给每个端口创建一个接口。要用 - 不同的P_Key创建一个接口,将所需的P_Key写入主接口的 - /sys/class/net//create_child文件里面。比如说:: - - echo 0x8001 > /sys/class/net/ib0/create_child - - 这将用P_Key 0x8001创建一个名为ib0.8001的接口。要删除一个子接口,使用 - ``delete_child`` 文件:: - - echo 0x8001 > /sys/class/net/ib0/delete_child - - 任何接口的P_Key都由“pkey”文件给出,而子接口的主接口在“parent”中。 - - 子接口的创建/删除也可以使用IPoIB的rtnl_link_ops来完成,使用两种 - 方式创建的子接口的行为是一样的。 - -数据报与连接模式 -================ - - IPoIB驱动支持两种操作模式:数据报和连接。模式是通过接口的 - /sys/class/net//mode文件设置和读取的。 - - 在数据报模式下,使用IB UD(不可靠数据报)传输,因此接口MTU等于IB L2 MTU - 减去IPoIB封装头(4字节)。例如,在一个典型的具有2K MTU的IB结构中,IPoIB - MTU将是2048 - 4 = 2044字节。 - - 在连接模式下,使用IB RC(可靠的连接)传输。连接模式利用IB传输的连接特性, - 允许MTU达到最大的IP包大小64K,这减少了处理大型UDP数据包、TCP段等所需的 - IP包数量,提高了大型信息的性能。 - - 在连接模式下,接口的UD QP仍被用于组播和与不支持连接模式的对等体的通信。 - 在这种情况下,ICMP PMTU数据包的RX仿真被用来使网络堆栈对这些邻居使用较 - 小的UD MTU。 - -无状态卸载 -========== - - 如果IB HW支持IPoIB无状态卸载,IPoIB会向网络堆栈广播TCP/IP校验和/或大量 - 传送(LSO)负载转移能力。 - - 大量传送(LSO)负载转移也已实现,可以使用ethtool调用打开/关闭。目前,LRO - 只支持具有校验和卸载能力的设备。 - - 无状态卸载只在数据报模式下支持。 - -中断管理 -======== - - 如果底层IB设备支持CQ事件管理,可以使用ethtool来设置中断缓解参数,从而减少 - 处理中断产生的开销。IPoIB的主要代码路径不使用TX完成信号的事件,所以只支持 - RX管理。 - -调试信息 -======== - - 通过将CONFIG_INFINIBAND_IPOIB_DEBUG设置为“y”来编译IPoIB驱动,跟踪信 - 息被编译到驱动中。通过将模块参数debug_level和mcast_debug_level设置为1来 - 打开它们。这些参数可以在运行时通过/sys/module/ib_ipoib/的文件来控制。 - - CONFIG_INFINIBAND_IPOIB_DEBUG也启用debugfs虚拟文件系统中的文件。通过挂 - 载这个文件系统,例如用:: - - mount -t debugfs none /sys/kernel/debug - - 可以从/sys/kernel/debug/ipoib/ib0_mcg等文件中获得关于多播组的统计数据。 - - 这个选项对性能的影响可以忽略不计,所以在正常运行时,在debug_level设置为 - 0的情况下启用这个选项是安全的。 - - CONFIG_INFINIBAND_IPOIB_DEBUG_DATA当data_debug_level设置为1时,可以 - 在数据路径中启用更多的调试输出。 然而,即使禁用输出,启用这个配置选项也 - 会影响性能,因为它在快速路径中增加了测试。 - -引用 -==== - - 在InfiniBand上传输IP(IPoIB)(RFC 4391)。 - http://ietf.org/rfc/rfc4391.txt - - infiniband上的IP:上的IP架构(RFC 4392)。 - http://ietf.org/rfc/rfc4392.txt - - infiniband上的IP: 连接模式 (RFC 4755) - http://ietf.org/rfc/rfc4755.txt +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/infiniband/ipoib.rst + +:翻译: + + 司延腾 Yanteng Si + +:校译: + + 王普宇 Puyu Wang + 时奎亮 Alex Shi + +.. _cn_infiniband_ipoib: + +========================= +infiniband上的IP(IPoIB) +========================= + + ib_ipoib驱动是IETF ipoib工作组发布的RFC 4391和4392所规定的 + infiniband上IP协议的一个实现。它是一个“本地”实现,即把接口类型设置为 + ARPHRD_INFINIBAND,硬件地址长度为20(早期的专有实现向内核伪装为以太网 + 接口)。 + +分区和P_Keys +============ + + 当IPoIB驱动被加载时,它会使用索引为0的P_Key给每个端口创建一个接口。要用 + 不同的P_Key创建一个接口,将所需的P_Key写入主接口的 + /sys/class/net//create_child文件里面。比如说:: + + echo 0x8001 > /sys/class/net/ib0/create_child + + 这将用P_Key 0x8001创建一个名为ib0.8001的接口。要删除一个子接口,使用 + ``delete_child`` 文件:: + + echo 0x8001 > /sys/class/net/ib0/delete_child + + 任何接口的P_Key都由“pkey”文件给出,而子接口的主接口在“parent”中。 + + 子接口的创建/删除也可以使用IPoIB的rtnl_link_ops来完成,使用两种 + 方式创建的子接口的行为是一样的。 + +数据报与连接模式 +================ + + IPoIB驱动支持两种操作模式:数据报和连接。模式是通过接口的 + /sys/class/net//mode文件设置和读取的。 + + 在数据报模式下,使用IB UD(不可靠数据报)传输,因此接口MTU等于IB L2 MTU + 减去IPoIB封装头(4字节)。例如,在一个典型的具有2K MTU的IB结构中,IPoIB + MTU将是2048 - 4 = 2044字节。 + + 在连接模式下,使用IB RC(可靠的连接)传输。连接模式利用IB传输的连接特性, + 允许MTU达到最大的IP包大小64K,这减少了处理大型UDP数据包、TCP段等所需的 + IP包数量,提高了大型信息的性能。 + + 在连接模式下,接口的UD QP仍被用于组播和与不支持连接模式的对等体的通信。 + 在这种情况下,ICMP PMTU数据包的RX仿真被用来使网络堆栈对这些邻居使用较 + 小的UD MTU。 + +无状态卸载 +========== + + 如果IB HW支持IPoIB无状态卸载,IPoIB会向网络堆栈广播TCP/IP校验和/或大量 + 传送(LSO)负载转移能力。 + + 大量传送(LSO)负载转移也已实现,可以使用ethtool调用打开/关闭。目前,LRO + 只支持具有校验和卸载能力的设备。 + + 无状态卸载只在数据报模式下支持。 + +中断管理 +======== + + 如果底层IB设备支持CQ事件管理,可以使用ethtool来设置中断缓解参数,从而减少 + 处理中断产生的开销。IPoIB的主要代码路径不使用TX完成信号的事件,所以只支持 + RX管理。 + +调试信息 +======== + + 通过将CONFIG_INFINIBAND_IPOIB_DEBUG设置为“y”来编译IPoIB驱动,跟踪信 + 息被编译到驱动中。通过将模块参数debug_level和mcast_debug_level设置为1来 + 打开它们。这些参数可以在运行时通过/sys/module/ib_ipoib/的文件来控制。 + + CONFIG_INFINIBAND_IPOIB_DEBUG也启用debugfs虚拟文件系统中的文件。通过挂 + 载这个文件系统,例如用:: + + mount -t debugfs none /sys/kernel/debug + + 可以从/sys/kernel/debug/ipoib/ib0_mcg等文件中获得关于多播组的统计数据。 + + 这个选项对性能的影响可以忽略不计,所以在正常运行时,在debug_level设置为 + 0的情况下启用这个选项是安全的。 + + CONFIG_INFINIBAND_IPOIB_DEBUG_DATA当data_debug_level设置为1时,可以 + 在数据路径中启用更多的调试输出。 然而,即使禁用输出,启用这个配置选项也 + 会影响性能,因为它在快速路径中增加了测试。 + +引用 +==== + + 在InfiniBand上传输IP(IPoIB)(RFC 4391)。 + http://ietf.org/rfc/rfc4391.txt + + infiniband上的IP:上的IP架构(RFC 4392)。 + http://ietf.org/rfc/rfc4392.txt + + infiniband上的IP: 连接模式 (RFC 4755) + http://ietf.org/rfc/rfc4755.txt diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/infiniband/tag_matching.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/infiniband/tag_matching.rst index 34cdd02ce..19b99587b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/infiniband/tag_matching.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/infiniband/tag_matching.rst @@ -1,63 +1,63 @@ -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/infiniband/tag_matching.rst - -:翻译: - - 司延腾 Yanteng Si - -:校译: - - 王普宇 Puyu Wang - 时奎亮 Alex Shi - -.. _cn_infiniband_tag_matching: - -============ -标签匹配逻辑 -============ - -MPI标准定义了一套规则,称为标签匹配,用于将源发送操作与目的接收匹配。以下参数必 -须与以下源和目的参数相匹配: - -* 沟通者 -* 用户标签--通配符(wild card)可由接收方指定 -* 来源等级--通配符可由接收方指定 -* 目的地等级 – wild - -排序规则要求,当一对以上的发送和接收消息信封可能匹配时,包括最早发布-发送和最早 -发布-接收的一对是必须用来满足匹配操作的一对。然而,这并不意味着标签是按照它们被 -创建的顺序消耗的,例如,如果早期的标签不能用来满足匹配规则,那么后来生成的标签 -可能被消耗。 - -当消息从发送方发送到接收方时,通信库可能试图在相应的匹配接收被发布之后或之前处 -理该操作。如果匹配的接收被发布,这就是一个预期的消息,否则就被称为一个意外的消 -息。实现时经常为这两种不同的匹配实例使用不同的匹配方案。 - -为了减少MPI库的内存占用,MPI实现通常使用两种不同的协议来实现这一目的: - -1. Eager协议--当发送方处理完发送时,完整的信息就会被发送。在send_cq中会收到 -一个完成发送的通知,通知缓冲区可以被重新使用。 - -2. Rendezvous协议--发送方在第一次通知接收方时发送标签匹配头,也许还有一部分 -数据。当相应的缓冲区被发布时,响应者将使用头中的信息,直接向匹配的缓冲区发起 -RDMA读取操作。为了使缓冲区得到重用,需要收到一个fin消息。 - -标签匹配的实现 -============== - -使用的匹配对象有两种类型,即发布的接收列表和意外消息列表。应用程序通过调用发布 -的接收列表中的MPI接收例程发布接收缓冲区,并使用MPI发送例程发布发送消息。发布的 -接收列表的头部可以由硬件来维护,而软件则要对这个列表进行跟踪。 - -当发送开始并到达接收端时,如果没有为这个到达的消息预先发布接收,它将被传递给软 -件并被放在意外(unexpect)消息列表中。否则,将对该匹配进行处理,包括交会处理, -如果合适的话,将数据传送到指定的接收缓冲区。这允许接收方MPI标签匹配与计算重叠。 - -当一个接收信息被发布时,通信库将首先检查软件的意外信息列表,以寻找一个匹配的接 -收信息。如果找到一个匹配的,数据就会被送到用户缓冲区,使用一个软件控制的协议。 -UCX的实现根据数据大小,使用急切或交会协议。如果没有找到匹配,整个预置的接收列 -表由硬件维护,并且有空间在这个列表中增加一个预置的接收,这个接收被传递给硬件。 -软件要对这个列表进行跟踪,以帮助处理MPI取消操作。此外,由于硬件和软件在标签匹 -配操作方面预计不会紧密同步,这个影子列表被用来检测预先发布的接收被传递到硬件的 -情况,因为匹配的意外消息正在从硬件传递到软件。 +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/infiniband/tag_matching.rst + +:翻译: + + 司延腾 Yanteng Si + +:校译: + + 王普宇 Puyu Wang + 时奎亮 Alex Shi + +.. _cn_infiniband_tag_matching: + +============ +标签匹配逻辑 +============ + +MPI标准定义了一套规则,称为标签匹配,用于将源发送操作与目的接收匹配。以下参数必 +须与以下源和目的参数相匹配: + +* 沟通者 +* 用户标签--通配符(wild card)可由接收方指定 +* 来源等级--通配符可由接收方指定 +* 目的地等级 – wild + +排序规则要求,当一对以上的发送和接收消息信封可能匹配时,包括最早发布-发送和最早 +发布-接收的一对是必须用来满足匹配操作的一对。然而,这并不意味着标签是按照它们被 +创建的顺序消耗的,例如,如果早期的标签不能用来满足匹配规则,那么后来生成的标签 +可能被消耗。 + +当消息从发送方发送到接收方时,通信库可能试图在相应的匹配接收被发布之后或之前处 +理该操作。如果匹配的接收被发布,这就是一个预期的消息,否则就被称为一个意外的消 +息。实现时经常为这两种不同的匹配实例使用不同的匹配方案。 + +为了减少MPI库的内存占用,MPI实现通常使用两种不同的协议来实现这一目的: + +1. Eager协议--当发送方处理完发送时,完整的信息就会被发送。在send_cq中会收到 +一个完成发送的通知,通知缓冲区可以被重新使用。 + +2. Rendezvous协议--发送方在第一次通知接收方时发送标签匹配头,也许还有一部分 +数据。当相应的缓冲区被发布时,响应者将使用头中的信息,直接向匹配的缓冲区发起 +RDMA读取操作。为了使缓冲区得到重用,需要收到一个fin消息。 + +标签匹配的实现 +============== + +使用的匹配对象有两种类型,即发布的接收列表和意外消息列表。应用程序通过调用发布 +的接收列表中的MPI接收例程发布接收缓冲区,并使用MPI发送例程发布发送消息。发布的 +接收列表的头部可以由硬件来维护,而软件则要对这个列表进行跟踪。 + +当发送开始并到达接收端时,如果没有为这个到达的消息预先发布接收,它将被传递给软 +件并被放在意外(unexpect)消息列表中。否则,将对该匹配进行处理,包括交会处理, +如果合适的话,将数据传送到指定的接收缓冲区。这允许接收方MPI标签匹配与计算重叠。 + +当一个接收信息被发布时,通信库将首先检查软件的意外信息列表,以寻找一个匹配的接 +收信息。如果找到一个匹配的,数据就会被送到用户缓冲区,使用一个软件控制的协议。 +UCX的实现根据数据大小,使用急切或交会协议。如果没有找到匹配,整个预置的接收列 +表由硬件维护,并且有空间在这个列表中增加一个预置的接收,这个接收被传递给硬件。 +软件要对这个列表进行跟踪,以帮助处理MPI取消操作。此外,由于硬件和软件在标签匹 +配操作方面预计不会紧密同步,这个影子列表被用来检测预先发布的接收被传递到硬件的 +情况,因为匹配的意外消息正在从硬件传递到软件。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/kbuild/gcc-plugins.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/kbuild/gcc-plugins.rst index 9284c8097..67a8abbf5 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/kbuild/gcc-plugins.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/kbuild/gcc-plugins.rst @@ -1,126 +1,126 @@ -.. SPDX-License-Identifier: GPL-2.0 - -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/kbuild/gcc-plugins.rst -:Translator: 慕冬亮 Dongliang Mu - -================ -GCC 插件基础设施 -================ - - -介绍 -==== - -GCC 插件是为编译器提供额外功能的可加载模块 [1]_。它们对于运行时插装和静态分析非常有用。 -我们可以在编译过程中通过回调 [2]_,GIMPLE [3]_,IPA [4]_ 和 RTL Passes [5]_ -(译者注:Pass 是编译器所采用的一种结构化技术,用于完成编译对象的分析、优化或转换等功能) -来分析、修改和添加更多的代码。 - -内核的 GCC 插件基础设施支持构建树外模块、交叉编译和在单独的目录中构建。插件源文件必须由 -C++ 编译器编译。 - -目前 GCC 插件基础设施只支持一些架构。搜索 "select HAVE_GCC_PLUGINS" 来查找支持 -GCC 插件的架构。 - -这个基础设施是从 grsecurity [6]_ 和 PaX [7]_ 移植过来的。 - --- - -.. [1] https://gcc.gnu.org/onlinedocs/gccint/Plugins.html -.. [2] https://gcc.gnu.org/onlinedocs/gccint/Plugin-API.html#Plugin-API -.. [3] https://gcc.gnu.org/onlinedocs/gccint/GIMPLE.html -.. [4] https://gcc.gnu.org/onlinedocs/gccint/IPA.html -.. [5] https://gcc.gnu.org/onlinedocs/gccint/RTL.html -.. [6] https://grsecurity.net/ -.. [7] https://pax.grsecurity.net/ - - -目的 -==== - -GCC 插件的设计目的是提供一个用于试验 GCC 或 Clang 上游没有的潜在编译器功能的场所。 -一旦它们的实用性得到验证,这些功能将被添加到 GCC(和 Clang)的上游。随后,在所有 -支持的 GCC 版本都支持这些功能后,它们会被从内核中移除。 - -具体来说,新插件应该只实现上游编译器(GCC 和 Clang)不支持的功能。 - -当 Clang 中存在 GCC 中不存在的某项功能时,应努力将该功能做到 GCC 上游(而不仅仅 -是作为内核专用的 GCC 插件),以使整个生态都能从中受益。 - -类似的,如果 GCC 插件提供的功能在 Clang 中 **不** 存在,但该功能被证明是有用的,也应 -努力将该功能上传到 GCC(和 Clang)。 - -在上游 GCC 提供了某项功能后,该插件将无法在相应的 GCC 版本(以及更高版本)下编译。 -一旦所有内核支持的 GCC 版本都提供了该功能,该插件将从内核中移除。 - - -文件 -==== - -**$(src)/scripts/gcc-plugins** - - 这是 GCC 插件的目录。 - -**$(src)/scripts/gcc-plugins/gcc-common.h** - - 这是 GCC 插件的兼容性头文件。 - 应始终包含它,而不是单独的 GCC 头文件。 - -**$(src)/scripts/gcc-plugins/gcc-generate-gimple-pass.h, -$(src)/scripts/gcc-plugins/gcc-generate-ipa-pass.h, -$(src)/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h, -$(src)/scripts/gcc-plugins/gcc-generate-rtl-pass.h** - - 这些头文件可以自动生成 GIMPLE、SIMPLE_IPA、IPA 和 RTL passes 的注册结构。 - 与手动创建结构相比,它们更受欢迎。 - - -用法 -==== - -你必须为你的 GCC 版本安装 GCC 插件头文件,以 Ubuntu 上的 gcc-10 为例:: - - apt-get install gcc-10-plugin-dev - -或者在 Fedora 上:: - - dnf install gcc-plugin-devel libmpc-devel - -或者在 Fedora 上使用包含插件的交叉编译器时:: - - dnf install libmpc-devel - -在内核配置中启用 GCC 插件基础设施与一些你想使用的插件:: - - CONFIG_GCC_PLUGINS=y - CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y - ... - -运行 gcc(本地或交叉编译器),确保能够检测到插件头文件:: - - gcc -print-file-name=plugin - CROSS_COMPILE=arm-linux-gnu- ${CROSS_COMPILE}gcc -print-file-name=plugin - -"plugin" 这个词意味着它们没有被检测到:: - - plugin - -完整的路径则表示插件已经被检测到:: - - /usr/lib/gcc/x86_64-redhat-linux/12/plugin - -编译包括插件在内的最小工具集:: - - make scripts - -或者直接在内核中运行 make,使用循环复杂性 GCC 插件编译整个内核。 - - -4. 如何添加新的 GCC 插件 -======================== - -GCC 插件位于 scripts/gcc-plugins/。你需要将插件源文件放在 scripts/gcc-plugins/ 目录下。 -子目录创建并不支持,你必须添加在 scripts/gcc-plugins/Makefile、scripts/Makefile.gcc-plugins -和相关的 Kconfig 文件中。 +.. SPDX-License-Identifier: GPL-2.0 + +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/kbuild/gcc-plugins.rst +:Translator: 慕冬亮 Dongliang Mu + +================ +GCC 插件基础设施 +================ + + +介绍 +==== + +GCC 插件是为编译器提供额外功能的可加载模块 [1]_。它们对于运行时插装和静态分析非常有用。 +我们可以在编译过程中通过回调 [2]_,GIMPLE [3]_,IPA [4]_ 和 RTL Passes [5]_ +(译者注:Pass 是编译器所采用的一种结构化技术,用于完成编译对象的分析、优化或转换等功能) +来分析、修改和添加更多的代码。 + +内核的 GCC 插件基础设施支持构建树外模块、交叉编译和在单独的目录中构建。插件源文件必须由 +C++ 编译器编译。 + +目前 GCC 插件基础设施只支持一些架构。搜索 "select HAVE_GCC_PLUGINS" 来查找支持 +GCC 插件的架构。 + +这个基础设施是从 grsecurity [6]_ 和 PaX [7]_ 移植过来的。 + +-- + +.. [1] https://gcc.gnu.org/onlinedocs/gccint/Plugins.html +.. [2] https://gcc.gnu.org/onlinedocs/gccint/Plugin-API.html#Plugin-API +.. [3] https://gcc.gnu.org/onlinedocs/gccint/GIMPLE.html +.. [4] https://gcc.gnu.org/onlinedocs/gccint/IPA.html +.. [5] https://gcc.gnu.org/onlinedocs/gccint/RTL.html +.. [6] https://grsecurity.net/ +.. [7] https://pax.grsecurity.net/ + + +目的 +==== + +GCC 插件的设计目的是提供一个用于试验 GCC 或 Clang 上游没有的潜在编译器功能的场所。 +一旦它们的实用性得到验证,这些功能将被添加到 GCC(和 Clang)的上游。随后,在所有 +支持的 GCC 版本都支持这些功能后,它们会被从内核中移除。 + +具体来说,新插件应该只实现上游编译器(GCC 和 Clang)不支持的功能。 + +当 Clang 中存在 GCC 中不存在的某项功能时,应努力将该功能做到 GCC 上游(而不仅仅 +是作为内核专用的 GCC 插件),以使整个生态都能从中受益。 + +类似的,如果 GCC 插件提供的功能在 Clang 中 **不** 存在,但该功能被证明是有用的,也应 +努力将该功能上传到 GCC(和 Clang)。 + +在上游 GCC 提供了某项功能后,该插件将无法在相应的 GCC 版本(以及更高版本)下编译。 +一旦所有内核支持的 GCC 版本都提供了该功能,该插件将从内核中移除。 + + +文件 +==== + +**$(src)/scripts/gcc-plugins** + + 这是 GCC 插件的目录。 + +**$(src)/scripts/gcc-plugins/gcc-common.h** + + 这是 GCC 插件的兼容性头文件。 + 应始终包含它,而不是单独的 GCC 头文件。 + +**$(src)/scripts/gcc-plugins/gcc-generate-gimple-pass.h, +$(src)/scripts/gcc-plugins/gcc-generate-ipa-pass.h, +$(src)/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h, +$(src)/scripts/gcc-plugins/gcc-generate-rtl-pass.h** + + 这些头文件可以自动生成 GIMPLE、SIMPLE_IPA、IPA 和 RTL passes 的注册结构。 + 与手动创建结构相比,它们更受欢迎。 + + +用法 +==== + +你必须为你的 GCC 版本安装 GCC 插件头文件,以 Ubuntu 上的 gcc-10 为例:: + + apt-get install gcc-10-plugin-dev + +或者在 Fedora 上:: + + dnf install gcc-plugin-devel libmpc-devel + +或者在 Fedora 上使用包含插件的交叉编译器时:: + + dnf install libmpc-devel + +在内核配置中启用 GCC 插件基础设施与一些你想使用的插件:: + + CONFIG_GCC_PLUGINS=y + CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y + ... + +运行 gcc(本地或交叉编译器),确保能够检测到插件头文件:: + + gcc -print-file-name=plugin + CROSS_COMPILE=arm-linux-gnu- ${CROSS_COMPILE}gcc -print-file-name=plugin + +"plugin" 这个词意味着它们没有被检测到:: + + plugin + +完整的路径则表示插件已经被检测到:: + + /usr/lib/gcc/x86_64-redhat-linux/12/plugin + +编译包括插件在内的最小工具集:: + + make scripts + +或者直接在内核中运行 make,使用循环复杂性 GCC 插件编译整个内核。 + + +4. 如何添加新的 GCC 插件 +======================== + +GCC 插件位于 scripts/gcc-plugins/。你需要将插件源文件放在 scripts/gcc-plugins/ 目录下。 +子目录创建并不支持,你必须添加在 scripts/gcc-plugins/Makefile、scripts/Makefile.gcc-plugins +和相关的 Kconfig 文件中。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/maintainer/maintainer-entry-profile.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/maintainer/maintainer-entry-profile.rst index 2d5116eb7..0f5acfb10 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/maintainer/maintainer-entry-profile.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/maintainer/maintainer-entry-profile.rst @@ -1,92 +1,92 @@ -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/maintainer/maintainer-entry-profile.rst - -:译者: - - 吴想成 Wu XiangCheng - -.. _maintainerentryprofile_zh: - -维护者条目概要 -============== - -维护人员条目概要补充了顶层过程文档(提交补丁,提交驱动程序……),增加了子系 -统/设备驱动程序本地习惯以及有关补丁提交生命周期的相关内容。贡献者使用此文档 -来调整他们的期望和避免常见错误;维护人员可以使用这些信息超越子系统层面查看 -是否有机会汇聚到通用实践中。 - - -总览 ----- - -提供了子系统如何操作的介绍。MAINTAINERS文件告诉了贡献者应发送某文件的补丁到哪, -但它没有传达其他子系统的本地基础设施和机制以协助开发。 - -请考虑以下问题: - -- 当补丁被本地树接纳或合并到上游时是否有通知? -- 子系统是否使用patchwork实例?Patchwork状态变更是否有通知? -- 是否有任何机器人或CI基础设施监视列表,或子系统是否使用自动测试反馈以便把 - 控接纳补丁? -- 被拉入-next的Git分支是哪个? -- 贡献者应针对哪个分支提交? -- 是否链接到其他维护者条目概要?例如一个设备驱动可能指向其父子系统的条目。 - 这使得贡献者意识到某维护者可能对提交链中其他维护者负有的义务。 - - -提交检查单补遗 --------------- - -列出强制性和咨询性标准,超出通用标准“提交检查表,以便维护者检查一个补丁是否 -足够健康。例如:“通过checkpatch.pl,没有错误、没有警告。通过单元测试详见某处”。 - -提交检查单补遗还可以包括有关硬件规格状态的详细信息。例如,子系统接受补丁之前 -是否需要考虑在某个修订版上发布的规范。 - - -开发周期的关键日期 ------------------- - -提交者常常会误以为补丁可以在合并窗口关闭之前的任何时间发送,且下一个-rc1时仍 -可以。事实上,大多数补丁都需要在下一个合并窗口打开之前提前进入linux-next中。 -向提交者澄清关键日期(以-rc发布周为标志)以明确什么时候补丁会被考虑合并以及 -何时需要等待下一个-rc。 - -至少需要讲明: - -- 最后一个可以提交新功能的-rc: - 针对下一个合并窗口的新功能提交应该在此点之前首次发布以供考虑。在此时间点 - 之后提交的补丁应该明确他们的目标为下下个合并窗口,或者给出应加快进度被接受 - 的充足理由。通常新特性贡献者的提交应出现在-rc5之前。 - -- 最后合并-rc:合并决策的最后期限。 - 向贡献者指出尚未接受的补丁集需要等待下下个合并窗口。当然,维护者没有义务 - 接受所有给定的补丁集,但是如果审阅在此时间点尚未结束,那么希望贡献者应该 - 等待并在下一个合并窗口重新提交。 - -可选项: - -- 开发基线分支的首个-rc,列在概述部分,视为已为新提交做好准备。 - - -审阅节奏 --------- - -贡献者最担心的问题之一是:补丁集已发布却未收到反馈,应在多久后发送提醒。除了 -指定在重新提交之前要等待多长时间,还可以指示更新的首选样式;例如,重新发送 -整个系列,或私下发送提醒邮件。本节也可以列出本区域的代码审阅方式,以及获取 -不能直接从维护者那里得到的反馈的方法。 - - -现有概要 --------- - -这里列出了现有的维护人员条目概要;我们可能会想要在不久的将来做一些不同的事情。 - -.. toctree:: - :maxdepth: 1 - - ../doc-guide/maintainer-profile - ../../../nvdimm/maintainer-entry-profile - ../../../arch/riscv/patch-acceptance +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/maintainer/maintainer-entry-profile.rst + +:译者: + + 吴想成 Wu XiangCheng + +.. _maintainerentryprofile_zh: + +维护者条目概要 +============== + +维护人员条目概要补充了顶层过程文档(提交补丁,提交驱动程序……),增加了子系 +统/设备驱动程序本地习惯以及有关补丁提交生命周期的相关内容。贡献者使用此文档 +来调整他们的期望和避免常见错误;维护人员可以使用这些信息超越子系统层面查看 +是否有机会汇聚到通用实践中。 + + +总览 +---- + +提供了子系统如何操作的介绍。MAINTAINERS文件告诉了贡献者应发送某文件的补丁到哪, +但它没有传达其他子系统的本地基础设施和机制以协助开发。 + +请考虑以下问题: + +- 当补丁被本地树接纳或合并到上游时是否有通知? +- 子系统是否使用patchwork实例?Patchwork状态变更是否有通知? +- 是否有任何机器人或CI基础设施监视列表,或子系统是否使用自动测试反馈以便把 + 控接纳补丁? +- 被拉入-next的Git分支是哪个? +- 贡献者应针对哪个分支提交? +- 是否链接到其他维护者条目概要?例如一个设备驱动可能指向其父子系统的条目。 + 这使得贡献者意识到某维护者可能对提交链中其他维护者负有的义务。 + + +提交检查单补遗 +-------------- + +列出强制性和咨询性标准,超出通用标准“提交检查表,以便维护者检查一个补丁是否 +足够健康。例如:“通过checkpatch.pl,没有错误、没有警告。通过单元测试详见某处”。 + +提交检查单补遗还可以包括有关硬件规格状态的详细信息。例如,子系统接受补丁之前 +是否需要考虑在某个修订版上发布的规范。 + + +开发周期的关键日期 +------------------ + +提交者常常会误以为补丁可以在合并窗口关闭之前的任何时间发送,且下一个-rc1时仍 +可以。事实上,大多数补丁都需要在下一个合并窗口打开之前提前进入linux-next中。 +向提交者澄清关键日期(以-rc发布周为标志)以明确什么时候补丁会被考虑合并以及 +何时需要等待下一个-rc。 + +至少需要讲明: + +- 最后一个可以提交新功能的-rc: + 针对下一个合并窗口的新功能提交应该在此点之前首次发布以供考虑。在此时间点 + 之后提交的补丁应该明确他们的目标为下下个合并窗口,或者给出应加快进度被接受 + 的充足理由。通常新特性贡献者的提交应出现在-rc5之前。 + +- 最后合并-rc:合并决策的最后期限。 + 向贡献者指出尚未接受的补丁集需要等待下下个合并窗口。当然,维护者没有义务 + 接受所有给定的补丁集,但是如果审阅在此时间点尚未结束,那么希望贡献者应该 + 等待并在下一个合并窗口重新提交。 + +可选项: + +- 开发基线分支的首个-rc,列在概述部分,视为已为新提交做好准备。 + + +审阅节奏 +-------- + +贡献者最担心的问题之一是:补丁集已发布却未收到反馈,应在多久后发送提醒。除了 +指定在重新提交之前要等待多长时间,还可以指示更新的首选样式;例如,重新发送 +整个系列,或私下发送提醒邮件。本节也可以列出本区域的代码审阅方式,以及获取 +不能直接从维护者那里得到的反馈的方法。 + + +现有概要 +-------- + +这里列出了现有的维护人员条目概要;我们可能会想要在不久的将来做一些不同的事情。 + +.. toctree:: + :maxdepth: 1 + + ../doc-guide/maintainer-profile + ../../../nvdimm/maintainer-entry-profile + ../../../arch/riscv/patch-acceptance diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/mm/active_mm.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/mm/active_mm.rst index 6e4fef8a6..c2816f523 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/mm/active_mm.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/mm/active_mm.rst @@ -1,85 +1,85 @@ -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/mm/active_mm.rst - -:翻译: - - 司延腾 Yanteng Si - -:校译: - - -========= -Active MM -========= - -这是一封linux之父回复开发者的一封邮件,所以翻译时我尽量保持邮件格式的完整。 - -:: - - List: linux-kernel - Subject: Re: active_mm - From: Linus Torvalds - Date: 1999-07-30 21:36:24 - - 因为我并不经常写解释,所以已经抄送到linux-kernel邮件列表,而当我做这些, - 且更多的人在阅读它们时,我觉得棒极了。 - - 1999年7月30日 星期五, David Mosberger 写道: - > - > 是否有一个简短的描述,说明task_struct中的 - > "mm" 和 "active_mm"应该如何使用? (如果 - > 这个问题在邮件列表中讨论过,我表示歉意--我刚 - > 刚度假回来,有一段时间没能关注linux-kernel了)。 - - 基本上,新的设定是: - - - 我们有“真实地址空间”和“匿名地址空间”。区别在于,匿名地址空间根本不关心用 - 户级页表,所以当我们做上下文切换到匿名地址空间时,我们只是让以前的地址空间 - 处于活动状态。 - - 一个“匿名地址空间”的明显用途是任何不需要任何用户映射的线程--所有的内核线 - 程基本上都属于这一类,但即使是“真正的”线程也可以暂时说在一定时间内它们不 - 会对用户空间感兴趣,调度器不妨试着避免在切换VM状态上浪费时间。目前只有老 - 式的bdflush sync能做到这一点。 - - - “tsk->mm” 指向 “真实地址空间”。对于一个匿名进程来说,tsk->mm将是NULL, - 其逻辑原因是匿名进程实际上根本就 “没有” 真正的地址空间。 - - - 然而,我们显然需要跟踪我们为这样的匿名用户“偷用”了哪个地址空间。为此,我们 - 有 “tsk->active_mm”,它显示了当前活动的地址空间是什么。 - - 规则是,对于一个有真实地址空间的进程(即tsk->mm是 non-NULL),active_mm - 显然必须与真实的mm相同。 - - 对于一个匿名进程,tsk->mm == NULL,而tsk->active_mm是匿名进程运行时 - “借用”的mm。当匿名进程被调度走时,借用的地址空间被返回并清除。 - - 为了支持所有这些,“struct mm_struct”现在有两个计数器:一个是 “mm_users” - 计数器,即有多少 “真正的地址空间用户”,另一个是 “mm_count”计数器,即 “lazy” - 用户(即匿名用户)的数量,如果有任何真正的用户,则加1。 - - 通常情况下,至少有一个真正的用户,但也可能是真正的用户在另一个CPU上退出,而 - 一个lazy的用户仍在活动,所以你实际上得到的情况是,你有一个地址空间 **只** - 被lazy的用户使用。这通常是一个短暂的生命周期状态,因为一旦这个线程被安排给一 - 个真正的线程,这个 “僵尸” mm就会被释放,因为 “mm_count”变成了零。 - - 另外,一个新的规则是,**没有人** 再把 “init_mm” 作为一个真正的MM了。 - “init_mm”应该被认为只是一个 “没有其他上下文时的lazy上下文”,事实上,它主 - 要是在启动时使用,当时还没有真正的VM被创建。因此,用来检查的代码 - - if (current->mm == &init_mm) - - 一般来说,应该用 - - if (!current->mm) - - 取代上面的写法(这更有意义--测试基本上是 “我们是否有一个用户环境”,并且通常 - 由缺页异常处理程序和类似的东西来完成)。 - - 总之,我刚才在ftp.kernel.org上放了一个pre-patch-2.3.13-1,因为它稍微改 - 变了接口以适配alpha(谁会想到呢,但alpha体系结构上下文切换代码实际上最终是 - 最丑陋的之一--不像其他架构的MM和寄存器状态是分开的,alpha的PALcode将两者 - 连接起来,你需要同时切换两者)。 - - (文档来源 http://marc.info/?l=linux-kernel&m=93337278602211&w=2) +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/mm/active_mm.rst + +:翻译: + + 司延腾 Yanteng Si + +:校译: + + +========= +Active MM +========= + +这是一封linux之父回复开发者的一封邮件,所以翻译时我尽量保持邮件格式的完整。 + +:: + + List: linux-kernel + Subject: Re: active_mm + From: Linus Torvalds + Date: 1999-07-30 21:36:24 + + 因为我并不经常写解释,所以已经抄送到linux-kernel邮件列表,而当我做这些, + 且更多的人在阅读它们时,我觉得棒极了。 + + 1999年7月30日 星期五, David Mosberger 写道: + > + > 是否有一个简短的描述,说明task_struct中的 + > "mm" 和 "active_mm"应该如何使用? (如果 + > 这个问题在邮件列表中讨论过,我表示歉意--我刚 + > 刚度假回来,有一段时间没能关注linux-kernel了)。 + + 基本上,新的设定是: + + - 我们有“真实地址空间”和“匿名地址空间”。区别在于,匿名地址空间根本不关心用 + 户级页表,所以当我们做上下文切换到匿名地址空间时,我们只是让以前的地址空间 + 处于活动状态。 + + 一个“匿名地址空间”的明显用途是任何不需要任何用户映射的线程--所有的内核线 + 程基本上都属于这一类,但即使是“真正的”线程也可以暂时说在一定时间内它们不 + 会对用户空间感兴趣,调度器不妨试着避免在切换VM状态上浪费时间。目前只有老 + 式的bdflush sync能做到这一点。 + + - “tsk->mm” 指向 “真实地址空间”。对于一个匿名进程来说,tsk->mm将是NULL, + 其逻辑原因是匿名进程实际上根本就 “没有” 真正的地址空间。 + + - 然而,我们显然需要跟踪我们为这样的匿名用户“偷用”了哪个地址空间。为此,我们 + 有 “tsk->active_mm”,它显示了当前活动的地址空间是什么。 + + 规则是,对于一个有真实地址空间的进程(即tsk->mm是 non-NULL),active_mm + 显然必须与真实的mm相同。 + + 对于一个匿名进程,tsk->mm == NULL,而tsk->active_mm是匿名进程运行时 + “借用”的mm。当匿名进程被调度走时,借用的地址空间被返回并清除。 + + 为了支持所有这些,“struct mm_struct”现在有两个计数器:一个是 “mm_users” + 计数器,即有多少 “真正的地址空间用户”,另一个是 “mm_count”计数器,即 “lazy” + 用户(即匿名用户)的数量,如果有任何真正的用户,则加1。 + + 通常情况下,至少有一个真正的用户,但也可能是真正的用户在另一个CPU上退出,而 + 一个lazy的用户仍在活动,所以你实际上得到的情况是,你有一个地址空间 **只** + 被lazy的用户使用。这通常是一个短暂的生命周期状态,因为一旦这个线程被安排给一 + 个真正的线程,这个 “僵尸” mm就会被释放,因为 “mm_count”变成了零。 + + 另外,一个新的规则是,**没有人** 再把 “init_mm” 作为一个真正的MM了。 + “init_mm”应该被认为只是一个 “没有其他上下文时的lazy上下文”,事实上,它主 + 要是在启动时使用,当时还没有真正的VM被创建。因此,用来检查的代码 + + if (current->mm == &init_mm) + + 一般来说,应该用 + + if (!current->mm) + + 取代上面的写法(这更有意义--测试基本上是 “我们是否有一个用户环境”,并且通常 + 由缺页异常处理程序和类似的东西来完成)。 + + 总之,我刚才在ftp.kernel.org上放了一个pre-patch-2.3.13-1,因为它稍微改 + 变了接口以适配alpha(谁会想到呢,但alpha体系结构上下文切换代码实际上最终是 + 最丑陋的之一--不像其他架构的MM和寄存器状态是分开的,alpha的PALcode将两者 + 连接起来,你需要同时切换两者)。 + + (文档来源 http://marc.info/?l=linux-kernel&m=93337278602211&w=2) diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/mm/ksm.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/mm/ksm.rst index 7e9f7844f..f0f458753 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/mm/ksm.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/mm/ksm.rst @@ -1,70 +1,70 @@ -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/mm/ksm.rst - -:翻译: - - 徐鑫 xu xin - -============ -内核同页合并 -============ - -KSM 是一种节省内存的数据去重功能,由CONFIG_KSM=y启用,并在2.6.32版本时被添加 -到Linux内核。详见 ``mm/ksm.c`` 的实现,以及http://lwn.net/Articles/306704和 -https://lwn.net/Articles/330589 - -KSM的用户空间的接口在Documentation/translations/zh_CN/admin-guide/mm/ksm.rst -文档中有描述。 - -设计 -==== - -概述 ----- - -概述内容请见mm/ksm.c文档中的“DOC: Overview” - -逆映射 ------- -KSM维护着稳定树中的KSM页的逆映射信息。 - -当KSM页面的共享数小于 ``max_page_sharing`` 的虚拟内存区域(VMAs)时,则代表了 -KSM页的稳定树其中的节点指向了一个ksm_rmap_item结构体类型的列表。同时,这个KSM页 -的 ``page->mapping`` 指向了该稳定树节点。 - -如果共享数超过了阈值,KSM将给稳定树添加第二个维度。稳定树就变成链接一个或多 -个稳定树"副本"的"链"。每个副本都保留KSM页的逆映射信息,其中 ``page->mapping`` -指向该"副本"。 - -每个链以及链接到该链中的所有"副本"强制不变的是,它们代表了相同的写保护内存 -内容,尽管任中一个"副本"是由同一片内存区的不同的KSM复制页所指向的。 - -这样一来,相比与无限的逆映射链表,稳定树的查找计算复杂性不受影响。但在稳定树 -本身中不能有重复的KSM页面内容仍然是强制要求。 - -由 ``max_page_sharing`` 强制决定的数据去重限制是必要的,以此来避免虚拟内存 -rmap链表变得过大。rmap的遍历具有O(N)的复杂度,其中N是共享页面的rmap_项(即 -虚拟映射)的数量,而这个共享页面的节点数量又被 ``max_page_sharing`` 所限制。 -因此,这有效地将线性O(N)计算复杂度从rmap遍历中分散到不同的KSM页面上。ksmd进 -程在稳定节点"链"上的遍历也是O(N),但这个N是稳定树"副本"的数量,而不是rmap项 -的数量,因此它对ksmd性能没有显著影响。实际上,最佳稳定树"副本"的候选节点将 -保留在"副本"列表的开头。 - -``max_page_sharing`` 的值设置得高了会促使更快的内存合并(因为将有更少的稳定 -树副本排队进入稳定节点chain->hlist)和更高的数据去重系数,但代价是在交换、压 -缩、NUMA平衡和页面迁移过程中可能导致KSM页的最大rmap遍历速度较慢。 - -``stable_node_dups/stable_node_chains`` 的比值还受 ``max_page_sharing`` 调控 -的影响,高比值可能意味着稳定节点dup中存在碎片,这可以通过在ksmd中引入碎片算 -法来解决,该算法将rmap项从一个稳定节点dup重定位到另一个稳定节点dup,以便释放 -那些仅包含极少rmap项的稳定节点"dup",但这可能会增加ksmd进程的CPU使用率,并可 -能会减慢应用程序在KSM页面上的只读计算。 - -KSM会定期扫描稳定节点"链"中链接的所有稳定树"副本",以便删减过时了的稳定节点。 -这种扫描的频率由 ``stable_node_chains_prune_millisecs`` 这个sysfs 接口定义。 - -参考 -==== -内核代码请见mm/ksm.c。 -涉及的函数(mm_slot ksm_scan stable_node rmap_item)。 +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/mm/ksm.rst + +:翻译: + + 徐鑫 xu xin + +============ +内核同页合并 +============ + +KSM 是一种节省内存的数据去重功能,由CONFIG_KSM=y启用,并在2.6.32版本时被添加 +到Linux内核。详见 ``mm/ksm.c`` 的实现,以及http://lwn.net/Articles/306704和 +https://lwn.net/Articles/330589 + +KSM的用户空间的接口在Documentation/translations/zh_CN/admin-guide/mm/ksm.rst +文档中有描述。 + +设计 +==== + +概述 +---- + +概述内容请见mm/ksm.c文档中的“DOC: Overview” + +逆映射 +------ +KSM维护着稳定树中的KSM页的逆映射信息。 + +当KSM页面的共享数小于 ``max_page_sharing`` 的虚拟内存区域(VMAs)时,则代表了 +KSM页的稳定树其中的节点指向了一个ksm_rmap_item结构体类型的列表。同时,这个KSM页 +的 ``page->mapping`` 指向了该稳定树节点。 + +如果共享数超过了阈值,KSM将给稳定树添加第二个维度。稳定树就变成链接一个或多 +个稳定树"副本"的"链"。每个副本都保留KSM页的逆映射信息,其中 ``page->mapping`` +指向该"副本"。 + +每个链以及链接到该链中的所有"副本"强制不变的是,它们代表了相同的写保护内存 +内容,尽管任中一个"副本"是由同一片内存区的不同的KSM复制页所指向的。 + +这样一来,相比与无限的逆映射链表,稳定树的查找计算复杂性不受影响。但在稳定树 +本身中不能有重复的KSM页面内容仍然是强制要求。 + +由 ``max_page_sharing`` 强制决定的数据去重限制是必要的,以此来避免虚拟内存 +rmap链表变得过大。rmap的遍历具有O(N)的复杂度,其中N是共享页面的rmap_项(即 +虚拟映射)的数量,而这个共享页面的节点数量又被 ``max_page_sharing`` 所限制。 +因此,这有效地将线性O(N)计算复杂度从rmap遍历中分散到不同的KSM页面上。ksmd进 +程在稳定节点"链"上的遍历也是O(N),但这个N是稳定树"副本"的数量,而不是rmap项 +的数量,因此它对ksmd性能没有显著影响。实际上,最佳稳定树"副本"的候选节点将 +保留在"副本"列表的开头。 + +``max_page_sharing`` 的值设置得高了会促使更快的内存合并(因为将有更少的稳定 +树副本排队进入稳定节点chain->hlist)和更高的数据去重系数,但代价是在交换、压 +缩、NUMA平衡和页面迁移过程中可能导致KSM页的最大rmap遍历速度较慢。 + +``stable_node_dups/stable_node_chains`` 的比值还受 ``max_page_sharing`` 调控 +的影响,高比值可能意味着稳定节点dup中存在碎片,这可以通过在ksmd中引入碎片算 +法来解决,该算法将rmap项从一个稳定节点dup重定位到另一个稳定节点dup,以便释放 +那些仅包含极少rmap项的稳定节点"dup",但这可能会增加ksmd进程的CPU使用率,并可 +能会减慢应用程序在KSM页面上的只读计算。 + +KSM会定期扫描稳定节点"链"中链接的所有稳定树"副本",以便删减过时了的稳定节点。 +这种扫描的频率由 ``stable_node_chains_prune_millisecs`` 这个sysfs 接口定义。 + +参考 +==== +内核代码请见mm/ksm.c。 +涉及的函数(mm_slot ksm_scan stable_node rmap_item)。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/mm/mmu_notifier.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/mm/mmu_notifier.rst index 0f8ad31c9..ce3664d1a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/mm/mmu_notifier.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/mm/mmu_notifier.rst @@ -1,97 +1,97 @@ -:Original: Documentation/mm/mmu_notifier.rst - -:翻译: - - 司延腾 Yanteng Si - -:校译: - - - -什么时候需要页表锁内通知? -========================== - -当清除一个pte/pmd时,我们可以选择通过在页表锁下(通知版的\*_clear_flush调用 -mmu_notifier_invalidate_range)通知事件。但这种通知并不是在所有情况下都需要的。 - -对于二级TLB(非CPU TLB),如IOMMU TLB或设备TLB(当设备使用类似ATS/PASID的东西让 -IOMMU走CPU页表来访问进程的虚拟地址空间)。只有两种情况需要在清除pte/pmd时在持有页 -表锁的同时通知这些二级TLB: - - A) 在mmu_notifier_invalidate_range_end()之前,支持页的地址被释放。 - B) 一个页表项被更新以指向一个新的页面(COW,零页上的写异常,__replace_page(),...)。 - -情况A很明显,你不想冒风险让设备写到一个现在可能被一些完全不同的任务使用的页面。 - -情况B更加微妙。为了正确起见,它需要按照以下序列发生: - - - 上页表锁 - - 清除页表项并通知 ([pmd/pte]p_huge_clear_flush_notify()) - - 设置页表项以指向新页 - -如果在设置新的pte/pmd值之前,清除页表项之后没有进行通知,那么你就会破坏设备的C11或 -C++11等内存模型。 - -考虑以下情况(设备使用类似于ATS/PASID的功能)。 - -两个地址addrA和addrB,这样|addrA - addrB| >= PAGE_SIZE,我们假设它们是COW的 -写保护(B的其他情况也适用)。 - -:: - - [Time N] -------------------------------------------------------------------- - CPU-thread-0 {尝试写到addrA} - CPU-thread-1 {尝试写到addrB} - CPU-thread-2 {} - CPU-thread-3 {} - DEV-thread-0 {读取addrA并填充设备TLB} - DEV-thread-2 {读取addrB并填充设备TLB} - [Time N+1] ------------------------------------------------------------------ - CPU-thread-0 {COW_step0: {mmu_notifier_invalidate_range_start(addrA)}} - CPU-thread-1 {COW_step0: {mmu_notifier_invalidate_range_start(addrB)}} - CPU-thread-2 {} - CPU-thread-3 {} - DEV-thread-0 {} - DEV-thread-2 {} - [Time N+2] ------------------------------------------------------------------ - CPU-thread-0 {COW_step1: {更新页表以指向addrA的新页}} - CPU-thread-1 {COW_step1: {更新页表以指向addrB的新页}} - CPU-thread-2 {} - CPU-thread-3 {} - DEV-thread-0 {} - DEV-thread-2 {} - [Time N+3] ------------------------------------------------------------------ - CPU-thread-0 {preempted} - CPU-thread-1 {preempted} - CPU-thread-2 {写入addrA,这是对新页面的写入} - CPU-thread-3 {} - DEV-thread-0 {} - DEV-thread-2 {} - [Time N+3] ------------------------------------------------------------------ - CPU-thread-0 {preempted} - CPU-thread-1 {preempted} - CPU-thread-2 {} - CPU-thread-3 {写入addrB,这是一个写入新页的过程} - DEV-thread-0 {} - DEV-thread-2 {} - [Time N+4] ------------------------------------------------------------------ - CPU-thread-0 {preempted} - CPU-thread-1 {COW_step3: {mmu_notifier_invalidate_range_end(addrB)}} - CPU-thread-2 {} - CPU-thread-3 {} - DEV-thread-0 {} - DEV-thread-2 {} - [Time N+5] ------------------------------------------------------------------ - CPU-thread-0 {preempted} - CPU-thread-1 {} - CPU-thread-2 {} - CPU-thread-3 {} - DEV-thread-0 {从旧页中读取addrA} - DEV-thread-2 {从新页面读取addrB} - -所以在这里,因为在N+2的时候,清空页表项没有和通知一起作废二级TLB,设备在看到addrA的新值之前 -就看到了addrB的新值。这就破坏了设备的总内存序。 - -当改变一个pte的写保护或指向一个新的具有相同内容的写保护页(KSM)时,将mmu_notifier_invalidate_range -调用延迟到页表锁外的mmu_notifier_invalidate_range_end()是可以的。即使做页表更新的线程 -在释放页表锁后但在调用mmu_notifier_invalidate_range_end()前被抢占,也是如此。 +:Original: Documentation/mm/mmu_notifier.rst + +:翻译: + + 司延腾 Yanteng Si + +:校译: + + + +什么时候需要页表锁内通知? +========================== + +当清除一个pte/pmd时,我们可以选择通过在页表锁下(通知版的\*_clear_flush调用 +mmu_notifier_invalidate_range)通知事件。但这种通知并不是在所有情况下都需要的。 + +对于二级TLB(非CPU TLB),如IOMMU TLB或设备TLB(当设备使用类似ATS/PASID的东西让 +IOMMU走CPU页表来访问进程的虚拟地址空间)。只有两种情况需要在清除pte/pmd时在持有页 +表锁的同时通知这些二级TLB: + + A) 在mmu_notifier_invalidate_range_end()之前,支持页的地址被释放。 + B) 一个页表项被更新以指向一个新的页面(COW,零页上的写异常,__replace_page(),...)。 + +情况A很明显,你不想冒风险让设备写到一个现在可能被一些完全不同的任务使用的页面。 + +情况B更加微妙。为了正确起见,它需要按照以下序列发生: + + - 上页表锁 + - 清除页表项并通知 ([pmd/pte]p_huge_clear_flush_notify()) + - 设置页表项以指向新页 + +如果在设置新的pte/pmd值之前,清除页表项之后没有进行通知,那么你就会破坏设备的C11或 +C++11等内存模型。 + +考虑以下情况(设备使用类似于ATS/PASID的功能)。 + +两个地址addrA和addrB,这样|addrA - addrB| >= PAGE_SIZE,我们假设它们是COW的 +写保护(B的其他情况也适用)。 + +:: + + [Time N] -------------------------------------------------------------------- + CPU-thread-0 {尝试写到addrA} + CPU-thread-1 {尝试写到addrB} + CPU-thread-2 {} + CPU-thread-3 {} + DEV-thread-0 {读取addrA并填充设备TLB} + DEV-thread-2 {读取addrB并填充设备TLB} + [Time N+1] ------------------------------------------------------------------ + CPU-thread-0 {COW_step0: {mmu_notifier_invalidate_range_start(addrA)}} + CPU-thread-1 {COW_step0: {mmu_notifier_invalidate_range_start(addrB)}} + CPU-thread-2 {} + CPU-thread-3 {} + DEV-thread-0 {} + DEV-thread-2 {} + [Time N+2] ------------------------------------------------------------------ + CPU-thread-0 {COW_step1: {更新页表以指向addrA的新页}} + CPU-thread-1 {COW_step1: {更新页表以指向addrB的新页}} + CPU-thread-2 {} + CPU-thread-3 {} + DEV-thread-0 {} + DEV-thread-2 {} + [Time N+3] ------------------------------------------------------------------ + CPU-thread-0 {preempted} + CPU-thread-1 {preempted} + CPU-thread-2 {写入addrA,这是对新页面的写入} + CPU-thread-3 {} + DEV-thread-0 {} + DEV-thread-2 {} + [Time N+3] ------------------------------------------------------------------ + CPU-thread-0 {preempted} + CPU-thread-1 {preempted} + CPU-thread-2 {} + CPU-thread-3 {写入addrB,这是一个写入新页的过程} + DEV-thread-0 {} + DEV-thread-2 {} + [Time N+4] ------------------------------------------------------------------ + CPU-thread-0 {preempted} + CPU-thread-1 {COW_step3: {mmu_notifier_invalidate_range_end(addrB)}} + CPU-thread-2 {} + CPU-thread-3 {} + DEV-thread-0 {} + DEV-thread-2 {} + [Time N+5] ------------------------------------------------------------------ + CPU-thread-0 {preempted} + CPU-thread-1 {} + CPU-thread-2 {} + CPU-thread-3 {} + DEV-thread-0 {从旧页中读取addrA} + DEV-thread-2 {从新页面读取addrB} + +所以在这里,因为在N+2的时候,清空页表项没有和通知一起作废二级TLB,设备在看到addrA的新值之前 +就看到了addrB的新值。这就破坏了设备的总内存序。 + +当改变一个pte的写保护或指向一个新的具有相同内容的写保护页(KSM)时,将mmu_notifier_invalidate_range +调用延迟到页表锁外的mmu_notifier_invalidate_range_end()是可以的。即使做页表更新的线程 +在释放页表锁后但在调用mmu_notifier_invalidate_range_end()前被抢占,也是如此。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/mm/split_page_table_lock.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/mm/split_page_table_lock.rst index 9ff422bb4..a2c288670 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/mm/split_page_table_lock.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/mm/split_page_table_lock.rst @@ -1,96 +1,96 @@ -:Original: Documentation/mm/split_page_table_lock.rst - -:翻译: - - 司延腾 Yanteng Si - -:校译: - - -================================= -分页表锁(split page table lock) -================================= - -最初,mm->page_table_lock spinlock保护了mm_struct的所有页表。但是这种方 -法导致了多线程应用程序的缺页异常可扩展性差,因为对锁的争夺很激烈。为了提高可扩 -展性,我们引入了分页表锁。 - -有了分页表锁,我们就有了单独的每张表锁来顺序化对表的访问。目前,我们对PTE和 -PMD表使用分页锁。对高层表的访问由mm->page_table_lock保护。 - -有一些辅助工具来锁定/解锁一个表和其他访问器函数: - - - pte_offset_map_lock() - 映射pte并获取PTE表锁,返回所取锁的指针; - - pte_unmap_unlock() - 解锁和解映射PTE表; - - pte_alloc_map_lock() - 如果需要的话,分配PTE表并获取锁,如果分配失败,返回已获取的锁的指针 - 或NULL; - - pte_lockptr() - 返回指向PTE表锁的指针; - - pmd_lock() - 取得PMD表锁,返回所取锁的指针。 - - pmd_lockptr() - 返回指向PMD表锁的指针; - -如果CONFIG_SPLIT_PTLOCK_CPUS(通常为4)小于或等于NR_CPUS,则在编译 -时启用PTE表的分页表锁。如果分页锁被禁用,所有的表都由mm->page_table_lock -来保护。 - -如果PMD表启用了分页锁,并且架构支持它,那么PMD表的分页锁就会被启用(见 -下文)。 - -Hugetlb 和分页表锁 -================== - -Hugetlb可以支持多种页面大小。我们只对PMD级别使用分页锁,但不对PUD使用。 - -Hugetlb特定的辅助函数: - - - huge_pte_lock() - 对PMD_SIZE页面采取pmd分割锁,否则mm->page_table_lock; - - huge_pte_lockptr() - 返回指向表锁的指针。 - -架构对分页表锁的支持 -==================== - -没有必要特别启用PTE分页表锁:所有需要的东西都由pagetable_pte_ctor() -和pagetable_pte_dtor()完成,它们必须在PTE表分配/释放时被调用。 - -确保架构不使用slab分配器来分配页表:slab使用page->slab_cache来分配其页 -面。这个区域与page->ptl共享存储。 - -PMD分页锁只有在你有两个以上的页表级别时才有意义。 - -启用PMD分页锁需要在PMD表分配时调用pagetable_pmd_ctor(),在释放时调 -用pagetable_pmd_dtor()。 - -分配通常发生在pmd_alloc_one()中,释放发生在pmd_free()和pmd_free_tlb() -中,但要确保覆盖所有的PMD表分配/释放路径:即X86_PAE在pgd_alloc()中预先 -分配一些PMD。 - -一切就绪后,你可以设置CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK。 - -注意:pagetable_pte_ctor()和pagetable_pmd_ctor()可能失败--必 -须正确处理。 - -page->ptl -========= - -page->ptl用于访问分割页表锁,其中'page'是包含该表的页面struct page。它 -与page->private(以及union中的其他几个字段)共享存储。 - -为了避免增加struct page的大小并获得最佳性能,我们使用了一个技巧: - - - 如果spinlock_t适合于long,我们使用page->ptr作为spinlock,这样我们 - 就可以避免间接访问并节省一个缓存行。 - - 如果spinlock_t的大小大于long的大小,我们使用page->ptl作为spinlock_t - 的指针并动态分配它。这允许在启用DEBUG_SPINLOCK或DEBUG_LOCK_ALLOC的 - 情况下使用分页锁,但由于间接访问而多花了一个缓存行。 - -PTE表的spinlock_t分配在pagetable_pte_ctor()中,PMD表的spinlock_t -分配在pagetable_pmd_ctor()中。 - -请不要直接访问page->ptl - -使用适当的辅助函数。 +:Original: Documentation/mm/split_page_table_lock.rst + +:翻译: + + 司延腾 Yanteng Si + +:校译: + + +================================= +分页表锁(split page table lock) +================================= + +最初,mm->page_table_lock spinlock保护了mm_struct的所有页表。但是这种方 +法导致了多线程应用程序的缺页异常可扩展性差,因为对锁的争夺很激烈。为了提高可扩 +展性,我们引入了分页表锁。 + +有了分页表锁,我们就有了单独的每张表锁来顺序化对表的访问。目前,我们对PTE和 +PMD表使用分页锁。对高层表的访问由mm->page_table_lock保护。 + +有一些辅助工具来锁定/解锁一个表和其他访问器函数: + + - pte_offset_map_lock() + 映射pte并获取PTE表锁,返回所取锁的指针; + - pte_unmap_unlock() + 解锁和解映射PTE表; + - pte_alloc_map_lock() + 如果需要的话,分配PTE表并获取锁,如果分配失败,返回已获取的锁的指针 + 或NULL; + - pte_lockptr() + 返回指向PTE表锁的指针; + - pmd_lock() + 取得PMD表锁,返回所取锁的指针。 + - pmd_lockptr() + 返回指向PMD表锁的指针; + +如果CONFIG_SPLIT_PTLOCK_CPUS(通常为4)小于或等于NR_CPUS,则在编译 +时启用PTE表的分页表锁。如果分页锁被禁用,所有的表都由mm->page_table_lock +来保护。 + +如果PMD表启用了分页锁,并且架构支持它,那么PMD表的分页锁就会被启用(见 +下文)。 + +Hugetlb 和分页表锁 +================== + +Hugetlb可以支持多种页面大小。我们只对PMD级别使用分页锁,但不对PUD使用。 + +Hugetlb特定的辅助函数: + + - huge_pte_lock() + 对PMD_SIZE页面采取pmd分割锁,否则mm->page_table_lock; + - huge_pte_lockptr() + 返回指向表锁的指针。 + +架构对分页表锁的支持 +==================== + +没有必要特别启用PTE分页表锁:所有需要的东西都由pagetable_pte_ctor() +和pagetable_pte_dtor()完成,它们必须在PTE表分配/释放时被调用。 + +确保架构不使用slab分配器来分配页表:slab使用page->slab_cache来分配其页 +面。这个区域与page->ptl共享存储。 + +PMD分页锁只有在你有两个以上的页表级别时才有意义。 + +启用PMD分页锁需要在PMD表分配时调用pagetable_pmd_ctor(),在释放时调 +用pagetable_pmd_dtor()。 + +分配通常发生在pmd_alloc_one()中,释放发生在pmd_free()和pmd_free_tlb() +中,但要确保覆盖所有的PMD表分配/释放路径:即X86_PAE在pgd_alloc()中预先 +分配一些PMD。 + +一切就绪后,你可以设置CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK。 + +注意:pagetable_pte_ctor()和pagetable_pmd_ctor()可能失败--必 +须正确处理。 + +page->ptl +========= + +page->ptl用于访问分割页表锁,其中'page'是包含该表的页面struct page。它 +与page->private(以及union中的其他几个字段)共享存储。 + +为了避免增加struct page的大小并获得最佳性能,我们使用了一个技巧: + + - 如果spinlock_t适合于long,我们使用page->ptr作为spinlock,这样我们 + 就可以避免间接访问并节省一个缓存行。 + - 如果spinlock_t的大小大于long的大小,我们使用page->ptl作为spinlock_t + 的指针并动态分配它。这允许在启用DEBUG_SPINLOCK或DEBUG_LOCK_ALLOC的 + 情况下使用分页锁,但由于间接访问而多花了一个缓存行。 + +PTE表的spinlock_t分配在pagetable_pte_ctor()中,PMD表的spinlock_t +分配在pagetable_pmd_ctor()中。 + +请不要直接访问page->ptl - -使用适当的辅助函数。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/process/kernel-driver-statement.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/process/kernel-driver-statement.rst index 99c520886..2b3375bcc 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/process/kernel-driver-statement.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/process/kernel-driver-statement.rst @@ -1,199 +1,199 @@ -.. _cn_process_statement_driver: - -.. include:: ../disclaimer-zh_CN.rst - -:Original: :ref:`Documentation/process/kernel-driver-statement.rst ` -:Translator: Alex Shi - -内核驱动声明 ------------- - -关于Linux内核模块的立场声明 -=========================== - -我们,以下署名的Linux内核开发人员,认为任何封闭源Linux内核模块或驱动程序都是 -有害的和不可取的。我们已经一再发现它们对Linux用户,企业和更大的Linux生态系统 -有害。这样的模块否定了Linux开发模型的开放性,稳定性,灵活性和可维护性,并使 -他们的用户无法使用Linux社区的专业知识。提供闭源内核模块的供应商迫使其客户 -放弃Linux的主要优势或选择新的供应商。因此,为了充分利用开源所提供的成本节省和 -共享支持优势,我们敦促供应商采取措施,以开源内核代码在Linux上为其客户提供支持。 - -我们只为自己说话,而不是我们今天可能会为之工作,过去或将来会为之工作的任何公司。 - - - Dave Airlie - - Nick Andrew - - Jens Axboe - - Ralf Baechle - - Felipe Balbi - - Ohad Ben-Cohen - - Muli Ben-Yehuda - - Jiri Benc - - Arnd Bergmann - - Thomas Bogendoerfer - - Vitaly Bordug - - James Bottomley - - Josh Boyer - - Neil Brown - - Mark Brown - - David Brownell - - Michael Buesch - - Franck Bui-Huu - - Adrian Bunk - - François Cami - - Ralph Campbell - - Luiz Fernando N. Capitulino - - Mauro Carvalho Chehab - - Denis Cheng - - Jonathan Corbet - - Glauber Costa - - Alan Cox - - Magnus Damm - - Ahmed S. Darwish - - Robert P. J. Day - - Hans de Goede - - Arnaldo Carvalho de Melo - - Helge Deller - - Jean Delvare - - Mathieu Desnoyers - - Sven-Thorsten Dietrich - - Alexey Dobriyan - - Daniel Drake - - Alex Dubov - - Randy Dunlap - - Michael Ellerman - - Pekka Enberg - - Jan Engelhardt - - Mark Fasheh - - J. Bruce Fields - - Larry Finger - - Jeremy Fitzhardinge - - Mike Frysinger - - Kumar Gala - - Robin Getz - - Liam Girdwood - - Jan-Benedict Glaw - - Thomas Gleixner - - Brice Goglin - - Cyrill Gorcunov - - Andy Gospodarek - - Thomas Graf - - Krzysztof Halasa - - Harvey Harrison - - Stephen Hemminger - - Michael Hennerich - - Tejun Heo - - Benjamin Herrenschmidt - - Kristian Høgsberg - - Henrique de Moraes Holschuh - - Marcel Holtmann - - Mike Isely - - Takashi Iwai - - Olof Johansson - - Dave Jones - - Jesper Juhl - - Matthias Kaehlcke - - Kenji Kaneshige - - Jan Kara - - Jeremy Kerr - - Russell King - - Olaf Kirch - - Roel Kluin - - Hans-Jürgen Koch - - Auke Kok - - Peter Korsgaard - - Jiri Kosina - - Aaro Koskinen - - Mariusz Kozlowski - - Greg Kroah-Hartman - - Michael Krufky - - Aneesh Kumar - - Clemens Ladisch - - Christoph Lameter - - Gunnar Larisch - - Anders Larsen - - Grant Likely - - John W. Linville - - Yinghai Lu - - Tony Luck - - Pavel Machek - - Matt Mackall - - Paul Mackerras - - Roland McGrath - - Patrick McHardy - - Kyle McMartin - - Paul Menage - - Thierry Merle - - Eric Miao - - Akinobu Mita - - Ingo Molnar - - James Morris - - Andrew Morton - - Paul Mundt - - Oleg Nesterov - - Luca Olivetti - - S.Çağlar Onur - - Pierre Ossman - - Keith Owens - - Venkatesh Pallipadi - - Nick Piggin - - Nicolas Pitre - - Evgeniy Polyakov - - Richard Purdie - - Mike Rapoport - - Sam Ravnborg - - Gerrit Renker - - Stefan Richter - - David Rientjes - - Luis R. Rodriguez - - Stefan Roese - - Francois Romieu - - Rami Rosen - - Stephen Rothwell - - Maciej W. Rozycki - - Mark Salyzyn - - Yoshinori Sato - - Deepak Saxena - - Holger Schurig - - Amit Shah - - Yoshihiro Shimoda - - Sergei Shtylyov - - Kay Sievers - - Sebastian Siewior - - Rik Snel - - Jes Sorensen - - Alexey Starikovskiy - - Alan Stern - - Timur Tabi - - Hirokazu Takata - - Eliezer Tamir - - Eugene Teo - - Doug Thompson - - FUJITA Tomonori - - Dmitry Torokhov - - Marcelo Tosatti - - Steven Toth - - Theodore Tso - - Matthias Urlichs - - Geert Uytterhoeven - - Arjan van de Ven - - Ivo van Doorn - - Rik van Riel - - Wim Van Sebroeck - - Hans Verkuil - - Horst H. von Brand - - Dmitri Vorobiev - - Anton Vorontsov - - Daniel Walker - - Johannes Weiner - - Harald Welte - - Matthew Wilcox - - Dan J. Williams - - Darrick J. Wong - - David Woodhouse - - Chris Wright - - Bryan Wu - - Rafael J. Wysocki - - Herbert Xu - - Vlad Yasevich - - Peter Zijlstra - - Bartlomiej Zolnierkiewicz +.. _cn_process_statement_driver: + +.. include:: ../disclaimer-zh_CN.rst + +:Original: :ref:`Documentation/process/kernel-driver-statement.rst ` +:Translator: Alex Shi + +内核驱动声明 +------------ + +关于Linux内核模块的立场声明 +=========================== + +我们,以下署名的Linux内核开发人员,认为任何封闭源Linux内核模块或驱动程序都是 +有害的和不可取的。我们已经一再发现它们对Linux用户,企业和更大的Linux生态系统 +有害。这样的模块否定了Linux开发模型的开放性,稳定性,灵活性和可维护性,并使 +他们的用户无法使用Linux社区的专业知识。提供闭源内核模块的供应商迫使其客户 +放弃Linux的主要优势或选择新的供应商。因此,为了充分利用开源所提供的成本节省和 +共享支持优势,我们敦促供应商采取措施,以开源内核代码在Linux上为其客户提供支持。 + +我们只为自己说话,而不是我们今天可能会为之工作,过去或将来会为之工作的任何公司。 + + - Dave Airlie + - Nick Andrew + - Jens Axboe + - Ralf Baechle + - Felipe Balbi + - Ohad Ben-Cohen + - Muli Ben-Yehuda + - Jiri Benc + - Arnd Bergmann + - Thomas Bogendoerfer + - Vitaly Bordug + - James Bottomley + - Josh Boyer + - Neil Brown + - Mark Brown + - David Brownell + - Michael Buesch + - Franck Bui-Huu + - Adrian Bunk + - François Cami + - Ralph Campbell + - Luiz Fernando N. Capitulino + - Mauro Carvalho Chehab + - Denis Cheng + - Jonathan Corbet + - Glauber Costa + - Alan Cox + - Magnus Damm + - Ahmed S. Darwish + - Robert P. J. Day + - Hans de Goede + - Arnaldo Carvalho de Melo + - Helge Deller + - Jean Delvare + - Mathieu Desnoyers + - Sven-Thorsten Dietrich + - Alexey Dobriyan + - Daniel Drake + - Alex Dubov + - Randy Dunlap + - Michael Ellerman + - Pekka Enberg + - Jan Engelhardt + - Mark Fasheh + - J. Bruce Fields + - Larry Finger + - Jeremy Fitzhardinge + - Mike Frysinger + - Kumar Gala + - Robin Getz + - Liam Girdwood + - Jan-Benedict Glaw + - Thomas Gleixner + - Brice Goglin + - Cyrill Gorcunov + - Andy Gospodarek + - Thomas Graf + - Krzysztof Halasa + - Harvey Harrison + - Stephen Hemminger + - Michael Hennerich + - Tejun Heo + - Benjamin Herrenschmidt + - Kristian Høgsberg + - Henrique de Moraes Holschuh + - Marcel Holtmann + - Mike Isely + - Takashi Iwai + - Olof Johansson + - Dave Jones + - Jesper Juhl + - Matthias Kaehlcke + - Kenji Kaneshige + - Jan Kara + - Jeremy Kerr + - Russell King + - Olaf Kirch + - Roel Kluin + - Hans-Jürgen Koch + - Auke Kok + - Peter Korsgaard + - Jiri Kosina + - Aaro Koskinen + - Mariusz Kozlowski + - Greg Kroah-Hartman + - Michael Krufky + - Aneesh Kumar + - Clemens Ladisch + - Christoph Lameter + - Gunnar Larisch + - Anders Larsen + - Grant Likely + - John W. Linville + - Yinghai Lu + - Tony Luck + - Pavel Machek + - Matt Mackall + - Paul Mackerras + - Roland McGrath + - Patrick McHardy + - Kyle McMartin + - Paul Menage + - Thierry Merle + - Eric Miao + - Akinobu Mita + - Ingo Molnar + - James Morris + - Andrew Morton + - Paul Mundt + - Oleg Nesterov + - Luca Olivetti + - S.Çağlar Onur + - Pierre Ossman + - Keith Owens + - Venkatesh Pallipadi + - Nick Piggin + - Nicolas Pitre + - Evgeniy Polyakov + - Richard Purdie + - Mike Rapoport + - Sam Ravnborg + - Gerrit Renker + - Stefan Richter + - David Rientjes + - Luis R. Rodriguez + - Stefan Roese + - Francois Romieu + - Rami Rosen + - Stephen Rothwell + - Maciej W. Rozycki + - Mark Salyzyn + - Yoshinori Sato + - Deepak Saxena + - Holger Schurig + - Amit Shah + - Yoshihiro Shimoda + - Sergei Shtylyov + - Kay Sievers + - Sebastian Siewior + - Rik Snel + - Jes Sorensen + - Alexey Starikovskiy + - Alan Stern + - Timur Tabi + - Hirokazu Takata + - Eliezer Tamir + - Eugene Teo + - Doug Thompson + - FUJITA Tomonori + - Dmitry Torokhov + - Marcelo Tosatti + - Steven Toth + - Theodore Tso + - Matthias Urlichs + - Geert Uytterhoeven + - Arjan van de Ven + - Ivo van Doorn + - Rik van Riel + - Wim Van Sebroeck + - Hans Verkuil + - Horst H. von Brand + - Dmitri Vorobiev + - Anton Vorontsov + - Daniel Walker + - Johannes Weiner + - Harald Welte + - Matthew Wilcox + - Dan J. Williams + - Darrick J. Wong + - David Woodhouse + - Chris Wright + - Bryan Wu + - Rafael J. Wysocki + - Herbert Xu + - Vlad Yasevich + - Peter Zijlstra + - Bartlomiej Zolnierkiewicz diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/process/magic-number.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/process/magic-number.rst index 9c2e8d54a..4ebc84cc0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/process/magic-number.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/process/magic-number.rst @@ -1,82 +1,82 @@ -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/staging/magic-number.rst - -:翻译: - - 贾威威 Jia Wei Wei - -:校译: - - 司延腾 Yanteng Si - -Linux 魔术数 -============ - -这个文件是有关当前使用的魔术值注册表。当你给一个结构体添加了一个魔术值,你也 -应该把这个魔术值添加到这个文件,因为我们最好把用于各种结构体的魔术值统一起来。 - -使用魔术值来保护内核数据结构是一个 **非常好的主意** 。这就允许你在运行时检 -查一个结构体(a)是否已经被攻击,或者(b)你已经给一个例程传递了一个错误的结构 -体。最后一种情况特别地有用---特别是当你通过一个空指针指向结构体的时候。例如, -tty源码经常通过特定驱动使用这种方法用来反复地排列特定方面的结构体。 - -使用魔术值的方法是在结构体的开头声明它们,如下:: - - struct tty_ldisc { - int magic; - ... - }; - -当你以后给内核添加增强功能的时候,请遵守这条规则!这样就会节省数不清的调试 -时间,特别是一些古怪的情况,例如,数组超出范围并且覆盖写了超出部分。利用这 -个规则,这些情况可以被快速地,安全地检测到这些案例。 - -变更日志:: - - Theodore Ts'o - 31 Mar 94 - - 给当前的Linux 2.1.55添加魔术表。 - - Michael Chastain - - 22 Sep 1997 - - 现在应该最新的Linux 2.1.112.因为在特性冻结期间,不能在2.2.x前改变任 - 何东西。这些条目被数域所排序。 - - Krzysztof G.Baranowski - - 29 Jul 1998 - - 更新魔术表到Linux 2.5.45。刚好越过特性冻结,但是有可能还会有一些新的魔 - 术值在2.6.x之前融入到内核中。 - - Petr Baudis - - 03 Nov 2002 - - 更新魔术表到Linux 2.5.74。 - - Fabian Frederick - - 09 Jul 2003 - -===================== ================ ======================== ========================================== -魔术数名 数字 结构 文件 -===================== ================ ======================== ========================================== -PG_MAGIC 'P' pg_{read,write}_hdr ``include/linux/pg.h`` -APM_BIOS_MAGIC 0x4101 apm_user ``arch/x86/kernel/apm_32.c`` -FASYNC_MAGIC 0x4601 fasync_struct ``include/linux/fs.h`` -SLIP_MAGIC 0x5302 slip ``drivers/net/slip.h`` -BAYCOM_MAGIC 0x19730510 baycom_state ``drivers/net/baycom_epp.c`` -HDLCDRV_MAGIC 0x5ac6e778 hdlcdrv_state ``include/linux/hdlcdrv.h`` -KV_MAGIC 0x5f4b565f kernel_vars_s ``arch/mips/include/asm/sn/klkernvars.h`` -CODA_MAGIC 0xC0DAC0DA coda_file_info ``fs/coda/coda_fs_i.h`` -YAM_MAGIC 0xF10A7654 yam_port ``drivers/net/hamradio/yam.c`` -CCB_MAGIC 0xf2691ad2 ccb ``drivers/scsi/ncr53c8xx.c`` -QUEUE_MAGIC_FREE 0xf7e1c9a3 queue_entry ``drivers/scsi/arm/queue.c`` -QUEUE_MAGIC_USED 0xf7e1cc33 queue_entry ``drivers/scsi/arm/queue.c`` -NMI_MAGIC 0x48414d4d455201 nmi_s ``arch/mips/include/asm/sn/nmi.h`` -===================== ================ ======================== ========================================== +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/staging/magic-number.rst + +:翻译: + + 贾威威 Jia Wei Wei + +:校译: + + 司延腾 Yanteng Si + +Linux 魔术数 +============ + +这个文件是有关当前使用的魔术值注册表。当你给一个结构体添加了一个魔术值,你也 +应该把这个魔术值添加到这个文件,因为我们最好把用于各种结构体的魔术值统一起来。 + +使用魔术值来保护内核数据结构是一个 **非常好的主意** 。这就允许你在运行时检 +查一个结构体(a)是否已经被攻击,或者(b)你已经给一个例程传递了一个错误的结构 +体。最后一种情况特别地有用---特别是当你通过一个空指针指向结构体的时候。例如, +tty源码经常通过特定驱动使用这种方法用来反复地排列特定方面的结构体。 + +使用魔术值的方法是在结构体的开头声明它们,如下:: + + struct tty_ldisc { + int magic; + ... + }; + +当你以后给内核添加增强功能的时候,请遵守这条规则!这样就会节省数不清的调试 +时间,特别是一些古怪的情况,例如,数组超出范围并且覆盖写了超出部分。利用这 +个规则,这些情况可以被快速地,安全地检测到这些案例。 + +变更日志:: + + Theodore Ts'o + 31 Mar 94 + + 给当前的Linux 2.1.55添加魔术表。 + + Michael Chastain + + 22 Sep 1997 + + 现在应该最新的Linux 2.1.112.因为在特性冻结期间,不能在2.2.x前改变任 + 何东西。这些条目被数域所排序。 + + Krzysztof G.Baranowski + + 29 Jul 1998 + + 更新魔术表到Linux 2.5.45。刚好越过特性冻结,但是有可能还会有一些新的魔 + 术值在2.6.x之前融入到内核中。 + + Petr Baudis + + 03 Nov 2002 + + 更新魔术表到Linux 2.5.74。 + + Fabian Frederick + + 09 Jul 2003 + +===================== ================ ======================== ========================================== +魔术数名 数字 结构 文件 +===================== ================ ======================== ========================================== +PG_MAGIC 'P' pg_{read,write}_hdr ``include/linux/pg.h`` +APM_BIOS_MAGIC 0x4101 apm_user ``arch/x86/kernel/apm_32.c`` +FASYNC_MAGIC 0x4601 fasync_struct ``include/linux/fs.h`` +SLIP_MAGIC 0x5302 slip ``drivers/net/slip.h`` +BAYCOM_MAGIC 0x19730510 baycom_state ``drivers/net/baycom_epp.c`` +HDLCDRV_MAGIC 0x5ac6e778 hdlcdrv_state ``include/linux/hdlcdrv.h`` +KV_MAGIC 0x5f4b565f kernel_vars_s ``arch/mips/include/asm/sn/klkernvars.h`` +CODA_MAGIC 0xC0DAC0DA coda_file_info ``fs/coda/coda_fs_i.h`` +YAM_MAGIC 0xF10A7654 yam_port ``drivers/net/hamradio/yam.c`` +CCB_MAGIC 0xf2691ad2 ccb ``drivers/scsi/ncr53c8xx.c`` +QUEUE_MAGIC_FREE 0xf7e1c9a3 queue_entry ``drivers/scsi/arm/queue.c`` +QUEUE_MAGIC_USED 0xf7e1cc33 queue_entry ``drivers/scsi/arm/queue.c`` +NMI_MAGIC 0x48414d4d455201 nmi_s ``arch/mips/include/asm/sn/nmi.h`` +===================== ================ ======================== ========================================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/process/stable-kernel-rules.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/process/stable-kernel-rules.rst index f68cd4e10..fba361f2d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/process/stable-kernel-rules.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/process/stable-kernel-rules.rst @@ -1,64 +1,64 @@ -.. _cn_stable_kernel_rules: - -.. include:: ../disclaimer-zh_CN.rst - -:Original: :ref:`Documentation/process/stable-kernel-rules.rst ` - -如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文 -交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻 -译存在问题,请联系中文版维护者:: - - 中文版维护者: 钟宇 TripleX Chung - 中文版翻译者: 钟宇 TripleX Chung - 中文版校译者: - - 李阳 Li Yang - - Kangkai Yin - -所有你想知道的事情 - 关于linux稳定版发布 -======================================== - -关于Linux 2.6稳定版发布,所有你想知道的事情。 - -关于哪些类型的补丁可以被接收进入稳定版代码树,哪些不可以的规则: ----------------------------------------------------------------- - - - 必须是显而易见的正确,并且经过测试的。 - - 连同上下文,不能大于100行。 - - 必须只修正一件事情。 - - 必须修正了一个给大家带来麻烦的真正的bug(不是“这也许是一个问题...” - 那样的东西)。 - - 必须修正带来如下后果的问题:编译错误(对被标记为CONFIG_BROKEN的例外), - 内核崩溃,挂起,数据损坏,真正的安全问题,或者一些类似“哦,这不 - 好”的问题。简短的说,就是一些致命的问题。 - - 没有“理论上的竞争条件”,除非能给出竞争条件如何被利用的解释。 - - 不能存在任何的“琐碎的”修正(拼写修正,去掉多余空格之类的)。 - - 必须被相关子系统的维护者接受。 - - 必须遵循Documentation/translations/zh_CN/process/submitting-patches.rst里的规则。 - -向稳定版代码树提交补丁的过程: ------------------------------- - - - 在确认了补丁符合以上的规则后,将补丁发送到stable@vger.kernel.org。 - - 如果补丁被接受到队列里,发送者会收到一个ACK回复,如果没有被接受,收 - 到的是NAK回复。回复需要几天的时间,这取决于开发者的时间安排。 - - 被接受的补丁会被加到稳定版本队列里,等待其他开发者的审查。 - - 安全方面的补丁不要发到这个列表,应该发送到security@kernel.org。 - -审查周期: ----------- - - - 当稳定版的维护者决定开始一个审查周期,补丁将被发送到审查委员会,以 - 及被补丁影响的领域的维护者(除非提交者就是该领域的维护者)并且抄送 - 到linux-kernel邮件列表。 - - 审查委员会有48小时的时间,用来决定给该补丁回复ACK还是NAK。 - - 如果委员会中有成员拒绝这个补丁,或者linux-kernel列表上有人反对这个 - 补丁,并提出维护者和审查委员会之前没有意识到的问题,补丁会从队列中 - 丢弃。 - - 在审查周期结束的时候,那些得到ACK回应的补丁将会被加入到最新的稳定版 - 发布中,一个新的稳定版发布就此产生。 - - 安全性补丁将从内核安全小组那里直接接收到稳定版代码树中,而不是通过 - 通常的审查周期。请联系内核安全小组以获得关于这个过程的更多细节。 - -审查委员会: ------------- - - 由一些自愿承担这项任务的内核开发者,和几个非志愿的组成。 +.. _cn_stable_kernel_rules: + +.. include:: ../disclaimer-zh_CN.rst + +:Original: :ref:`Documentation/process/stable-kernel-rules.rst ` + +如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文 +交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻 +译存在问题,请联系中文版维护者:: + + 中文版维护者: 钟宇 TripleX Chung + 中文版翻译者: 钟宇 TripleX Chung + 中文版校译者: + - 李阳 Li Yang + - Kangkai Yin + +所有你想知道的事情 - 关于linux稳定版发布 +======================================== + +关于Linux 2.6稳定版发布,所有你想知道的事情。 + +关于哪些类型的补丁可以被接收进入稳定版代码树,哪些不可以的规则: +---------------------------------------------------------------- + + - 必须是显而易见的正确,并且经过测试的。 + - 连同上下文,不能大于100行。 + - 必须只修正一件事情。 + - 必须修正了一个给大家带来麻烦的真正的bug(不是“这也许是一个问题...” + 那样的东西)。 + - 必须修正带来如下后果的问题:编译错误(对被标记为CONFIG_BROKEN的例外), + 内核崩溃,挂起,数据损坏,真正的安全问题,或者一些类似“哦,这不 + 好”的问题。简短的说,就是一些致命的问题。 + - 没有“理论上的竞争条件”,除非能给出竞争条件如何被利用的解释。 + - 不能存在任何的“琐碎的”修正(拼写修正,去掉多余空格之类的)。 + - 必须被相关子系统的维护者接受。 + - 必须遵循Documentation/translations/zh_CN/process/submitting-patches.rst里的规则。 + +向稳定版代码树提交补丁的过程: +------------------------------ + + - 在确认了补丁符合以上的规则后,将补丁发送到stable@vger.kernel.org。 + - 如果补丁被接受到队列里,发送者会收到一个ACK回复,如果没有被接受,收 + 到的是NAK回复。回复需要几天的时间,这取决于开发者的时间安排。 + - 被接受的补丁会被加到稳定版本队列里,等待其他开发者的审查。 + - 安全方面的补丁不要发到这个列表,应该发送到security@kernel.org。 + +审查周期: +---------- + + - 当稳定版的维护者决定开始一个审查周期,补丁将被发送到审查委员会,以 + 及被补丁影响的领域的维护者(除非提交者就是该领域的维护者)并且抄送 + 到linux-kernel邮件列表。 + - 审查委员会有48小时的时间,用来决定给该补丁回复ACK还是NAK。 + - 如果委员会中有成员拒绝这个补丁,或者linux-kernel列表上有人反对这个 + 补丁,并提出维护者和审查委员会之前没有意识到的问题,补丁会从队列中 + 丢弃。 + - 在审查周期结束的时候,那些得到ACK回应的补丁将会被加入到最新的稳定版 + 发布中,一个新的稳定版发布就此产生。 + - 安全性补丁将从内核安全小组那里直接接收到稳定版代码树中,而不是通过 + 通常的审查周期。请联系内核安全小组以获得关于这个过程的更多细节。 + +审查委员会: +------------ + - 由一些自愿承担这项任务的内核开发者,和几个非志愿的组成。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/sound/hd-audio/controls.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/sound/hd-audio/controls.rst index 4886d30c9..54c028ab9 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/sound/hd-audio/controls.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/sound/hd-audio/controls.rst @@ -1,102 +1,102 @@ -.. SPDX-License-Identifier: GPL-2.0 - -Chinese translator: Huang Jianghui ---------------------------------------------------------------------- -.. include:: ../../disclaimer-zh_CN.rst -以下为正文 ---------------------------------------------------------------------- -====================================== -高清音频编解码器特定混音器控件 -====================================== - - -此文件解释特定于编解码器的混音器控件. - -瑞昱编解码器 ------------- - -声道模式 - 这是一个用于更改环绕声道设置的枚举控件,仅在环绕声道打开时显示出现。 - 它给出要使用的通道数:"2ch","4ch","6ch",和"8ch"。根据配置,这还控 - 制多I/O插孔的插孔重分配。 - -自动静音模式 - 这是一个枚举控件,用于更改耳机和线路输出插孔的自动静音行为。如果内 - 置扬声器、耳机和/或线路输出插孔在机器上可用,则显示该控件。当只有 - 耳机或者线路输出的时候,它给出”禁用“和”启用“状态。当启用后,插孔插 - 入后扬声器会自动静音。 - - 当耳机和线路输出插孔都存在时,它给出”禁用“、”仅扬声器“和”线路输出+扬 - 声器“。当”仅扬声器“被选择,插入耳机或者线路输出插孔可使扬声器静音, - 但不会使线路输出静音。当线路输出+扬声器被选择,插入耳机插孔会同时使扬 - 声器和线路输出静音。 - - -矽玛特编解码器 --------------- - -模拟环回 - 此控件启用/禁用模拟环回电路。只有在编解码器提示中将”lookback“设置为真 - 时才会出现(见HD-Audio.txt)。请注意,在某些编解码器上,模拟环回和正常 - PCM播放是独占的,即当此选项打开时,您将听不到任何PCM流。 - -交换中置/低频 - 交换中置和低频通道顺序,通常情况下,左侧对应中置,右侧对应低频,启动此 - 项后,左边低频,右边中置。 - -耳机作为线路输出 - 当此控制开启时,将耳机视为线路输出插孔。也就是说,耳机不会自动静音其他 - 线路输出,没有耳机放大器被设置到引脚上。 - -麦克风插口模式、线路插孔模式等 - 这些枚举控制输入插孔引脚的方向和偏置。根据插孔类型,它可以设置为”麦克风 - 输入“和”线路输入“以确定输入偏置,或者当引脚是环绕声道的多I/O插孔时,它 - 可以设置为”线路输出“。 - - -威盛编解码器 ------------- - -智能5.1 - 一个枚举控件,用于为环绕输出重新分配多个I/O插孔的任务。当它打开时,相应 - 的输入插孔(通常是线路输入和麦克风输入)被切换为环绕和中央低频输出插孔。 - -独立耳机 - 启用此枚举控制时,耳机输出从单个流(第三个PCM,如hw:0,2)而不是主流路由。 - 如果耳机DAC与侧边或中央低频通道DAC共享,则DAC将自动切换到耳机。 - -环回混合 - 一个用于确定是否启动了模拟环回路由的枚举控件。当它启用后,模拟环回路由到 - 前置通道。同样,耳机与扬声器输出也采用相同的路径。作为一个副作用,当设置 - 此模式后,单个音量控制将不再适用于耳机和扬声器,因为只有一个DAC连接到混 - 音器小部件。 - -动态电源控制 - 此控件决定是否启动每个插孔的动态电源控制检测。启用时,根据插孔的插入情况 - 动态更改组件的电源状态(D0/D3)以节省电量消耗。但是,如果您的系统没有提 - 供正确的插孔检测,这将无法工作;在这种情况下,请关闭此控件。 - -插孔检测 - 此控件仅为VT1708编解码器提供,它不会为每个插孔插拔提供适当的未请求事件。 - 当此控件打开,驱动将轮询插孔检测,以便耳机自动静音可以工作,而关闭此控 - 件将降低功耗。 - - -科胜讯编解码器 --------------- - -自动静音模式 - 见瑞昱解码器 - - - -模拟编解码器 ------------- - -通道模式 - 这是一个用于更改环绕声道设置的枚举控件,仅在环绕声道可用时显示。它提供了能 - 被使用的通道数:”2ch“、”4ch“和”6ch“。根据配置,这还控制多I/O插孔的插孔重 - 分配。 - -独立耳机 - 启动此枚举控制后,耳机输出从单个流(第三个PCM,如hw:0,2)而不是主流路由。 +.. SPDX-License-Identifier: GPL-2.0 + +Chinese translator: Huang Jianghui +--------------------------------------------------------------------- +.. include:: ../../disclaimer-zh_CN.rst +以下为正文 +--------------------------------------------------------------------- +====================================== +高清音频编解码器特定混音器控件 +====================================== + + +此文件解释特定于编解码器的混音器控件. + +瑞昱编解码器 +------------ + +声道模式 + 这是一个用于更改环绕声道设置的枚举控件,仅在环绕声道打开时显示出现。 + 它给出要使用的通道数:"2ch","4ch","6ch",和"8ch"。根据配置,这还控 + 制多I/O插孔的插孔重分配。 + +自动静音模式 + 这是一个枚举控件,用于更改耳机和线路输出插孔的自动静音行为。如果内 + 置扬声器、耳机和/或线路输出插孔在机器上可用,则显示该控件。当只有 + 耳机或者线路输出的时候,它给出”禁用“和”启用“状态。当启用后,插孔插 + 入后扬声器会自动静音。 + + 当耳机和线路输出插孔都存在时,它给出”禁用“、”仅扬声器“和”线路输出+扬 + 声器“。当”仅扬声器“被选择,插入耳机或者线路输出插孔可使扬声器静音, + 但不会使线路输出静音。当线路输出+扬声器被选择,插入耳机插孔会同时使扬 + 声器和线路输出静音。 + + +矽玛特编解码器 +-------------- + +模拟环回 + 此控件启用/禁用模拟环回电路。只有在编解码器提示中将”lookback“设置为真 + 时才会出现(见HD-Audio.txt)。请注意,在某些编解码器上,模拟环回和正常 + PCM播放是独占的,即当此选项打开时,您将听不到任何PCM流。 + +交换中置/低频 + 交换中置和低频通道顺序,通常情况下,左侧对应中置,右侧对应低频,启动此 + 项后,左边低频,右边中置。 + +耳机作为线路输出 + 当此控制开启时,将耳机视为线路输出插孔。也就是说,耳机不会自动静音其他 + 线路输出,没有耳机放大器被设置到引脚上。 + +麦克风插口模式、线路插孔模式等 + 这些枚举控制输入插孔引脚的方向和偏置。根据插孔类型,它可以设置为”麦克风 + 输入“和”线路输入“以确定输入偏置,或者当引脚是环绕声道的多I/O插孔时,它 + 可以设置为”线路输出“。 + + +威盛编解码器 +------------ + +智能5.1 + 一个枚举控件,用于为环绕输出重新分配多个I/O插孔的任务。当它打开时,相应 + 的输入插孔(通常是线路输入和麦克风输入)被切换为环绕和中央低频输出插孔。 + +独立耳机 + 启用此枚举控制时,耳机输出从单个流(第三个PCM,如hw:0,2)而不是主流路由。 + 如果耳机DAC与侧边或中央低频通道DAC共享,则DAC将自动切换到耳机。 + +环回混合 + 一个用于确定是否启动了模拟环回路由的枚举控件。当它启用后,模拟环回路由到 + 前置通道。同样,耳机与扬声器输出也采用相同的路径。作为一个副作用,当设置 + 此模式后,单个音量控制将不再适用于耳机和扬声器,因为只有一个DAC连接到混 + 音器小部件。 + +动态电源控制 + 此控件决定是否启动每个插孔的动态电源控制检测。启用时,根据插孔的插入情况 + 动态更改组件的电源状态(D0/D3)以节省电量消耗。但是,如果您的系统没有提 + 供正确的插孔检测,这将无法工作;在这种情况下,请关闭此控件。 + +插孔检测 + 此控件仅为VT1708编解码器提供,它不会为每个插孔插拔提供适当的未请求事件。 + 当此控件打开,驱动将轮询插孔检测,以便耳机自动静音可以工作,而关闭此控 + 件将降低功耗。 + + +科胜讯编解码器 +-------------- + +自动静音模式 + 见瑞昱解码器 + + + +模拟编解码器 +------------ + +通道模式 + 这是一个用于更改环绕声道设置的枚举控件,仅在环绕声道可用时显示。它提供了能 + 被使用的通道数:”2ch“、”4ch“和”6ch“。根据配置,这还控制多I/O插孔的插孔重 + 分配。 + +独立耳机 + 启动此枚举控制后,耳机输出从单个流(第三个PCM,如hw:0,2)而不是主流路由。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/userspace-api/futex2.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/userspace-api/futex2.rst index 012006ba1..04f9d62db 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/userspace-api/futex2.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/userspace-api/futex2.rst @@ -1,80 +1,80 @@ -.. SPDX-License-Identifier: GPL-2.0 -.. include:: ../disclaimer-zh_CN.rst - -:Original: Documentation/userspace-api/futex2.rst - -:翻译: - - 李睿 Rui Li - -====== -futex2 -====== - -:作者: André Almeida - -futex,或者称为快速用户互斥锁(fast user mutex),是一组允许用户空间创建高性能同步 -机制的系统调用,比如用户空间中的互斥锁,信号量和条件变量。C标准库,如glibc,使用它作 -为实现更多高级接口的方式,如pthreads。 - -futex2是初代futex系统调用的后续版本,旨在克服原有接口的限制。 - -用户API -======= - -``futex_waitv()`` ------------------ - -等待一个futex数组,可由其中任意一个唤醒:: - - futex_waitv(struct futex_waitv *waiters, unsigned int nr_futexes, - unsigned int flags, struct timespec *timeout, clockid_t clockid) - - struct futex_waitv { - __u64 val; - __u64 uaddr; - __u32 flags; - __u32 __reserved; - }; - -用户空间设置一个struct futex_waitv数组(最多128项),设置 ``uaddr`` 为等待的 -地址, ``val`` 为期望值, ``flags`` 为指定的类型(如private)和futex的大小。 -``__reserved`` 需要置为0,但是它可用作未来扩展。指向数组第一个元素的指针作为 -``waiters`` 传递。如果 ``waiters`` 或任何的 ``uaddr`` 地址无效,将返回 ``-EFAULT`` 。 - -如果用户空间拥有32位的指针,那么需要做显式转换来保证高位清零。 ``uintptr_t`` 设计 -得很精巧,在32/64位的指针上都正常工作。 - -``nr_futexes`` 指定了数组的大小。不在[1,128]区间内的值会使系统调用返回 ``-EINVAL`` 。 - -系统调用的 ``flags`` 参数需要置0,但可用作未来扩展。 - -对于每个 ``waiters`` 数组中的项,在 ``uaddr`` 的当前值会和 ``val`` 比较。如果 -不一致,系统调用会撤销截至目前完成的所有工作,并返回 ``-EAGAIN`` 。如果所有测试 -和验证都通过,系统调用会等待直到以下情况之一发生: - -- 指定的timeout超时,返回 ``-ETIMEOUT`` 。 -- 一个信号被传递给睡眠中的任务,返回 ``-ERESTARTSYS`` 。 -- 某个列表中的futex被唤醒,返回那个被唤醒的futex的索引。 - -关于如何使用接口的例子可以在 ``tools/testing/selftests/futex/functional/futex_waitv.c`` -中找到。 - -超时 ----- - -``struct timespec *timeout`` 是一个指向绝对超时时间的可选参数。你需要在 ``clockid`` -参数中指定要使用的时钟类型。支持 ``CLOCK_MONOTONIC`` 和 ``CLOCK_REALTIME`` 。这个 -系统调用只接受64位的timespec结构体。 - -futex的类型 ------------ - -futex既可以是私有的也可以是共享的。私有用于多个进程共享同样的内存空间,并且futex的虚拟 -地址对所有进程都是一样的。这允许在内核中进行优化。要使用私有futex,需要在futex标志中指定 -``FUTEX_PRIVATE_FLAG`` 。对于那些不在同一内存空间共享的进程,可以让同一个futex拥有不同 -的虚拟地址(例如使用基于文件的共享内存),这需要不同的内部机制来使得正确进入队列。这是默认 -的行为,而且对私有futex和共享futex都适用。 - -futex可以是不同的大小:8,16,32或64位。目前只支持32位大小的futex,并且需要通过 ``FUTEX_32`` -标志指定。 +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/userspace-api/futex2.rst + +:翻译: + + 李睿 Rui Li + +====== +futex2 +====== + +:作者: André Almeida + +futex,或者称为快速用户互斥锁(fast user mutex),是一组允许用户空间创建高性能同步 +机制的系统调用,比如用户空间中的互斥锁,信号量和条件变量。C标准库,如glibc,使用它作 +为实现更多高级接口的方式,如pthreads。 + +futex2是初代futex系统调用的后续版本,旨在克服原有接口的限制。 + +用户API +======= + +``futex_waitv()`` +----------------- + +等待一个futex数组,可由其中任意一个唤醒:: + + futex_waitv(struct futex_waitv *waiters, unsigned int nr_futexes, + unsigned int flags, struct timespec *timeout, clockid_t clockid) + + struct futex_waitv { + __u64 val; + __u64 uaddr; + __u32 flags; + __u32 __reserved; + }; + +用户空间设置一个struct futex_waitv数组(最多128项),设置 ``uaddr`` 为等待的 +地址, ``val`` 为期望值, ``flags`` 为指定的类型(如private)和futex的大小。 +``__reserved`` 需要置为0,但是它可用作未来扩展。指向数组第一个元素的指针作为 +``waiters`` 传递。如果 ``waiters`` 或任何的 ``uaddr`` 地址无效,将返回 ``-EFAULT`` 。 + +如果用户空间拥有32位的指针,那么需要做显式转换来保证高位清零。 ``uintptr_t`` 设计 +得很精巧,在32/64位的指针上都正常工作。 + +``nr_futexes`` 指定了数组的大小。不在[1,128]区间内的值会使系统调用返回 ``-EINVAL`` 。 + +系统调用的 ``flags`` 参数需要置0,但可用作未来扩展。 + +对于每个 ``waiters`` 数组中的项,在 ``uaddr`` 的当前值会和 ``val`` 比较。如果 +不一致,系统调用会撤销截至目前完成的所有工作,并返回 ``-EAGAIN`` 。如果所有测试 +和验证都通过,系统调用会等待直到以下情况之一发生: + +- 指定的timeout超时,返回 ``-ETIMEOUT`` 。 +- 一个信号被传递给睡眠中的任务,返回 ``-ERESTARTSYS`` 。 +- 某个列表中的futex被唤醒,返回那个被唤醒的futex的索引。 + +关于如何使用接口的例子可以在 ``tools/testing/selftests/futex/functional/futex_waitv.c`` +中找到。 + +超时 +---- + +``struct timespec *timeout`` 是一个指向绝对超时时间的可选参数。你需要在 ``clockid`` +参数中指定要使用的时钟类型。支持 ``CLOCK_MONOTONIC`` 和 ``CLOCK_REALTIME`` 。这个 +系统调用只接受64位的timespec结构体。 + +futex的类型 +----------- + +futex既可以是私有的也可以是共享的。私有用于多个进程共享同样的内存空间,并且futex的虚拟 +地址对所有进程都是一样的。这允许在内核中进行优化。要使用私有futex,需要在futex标志中指定 +``FUTEX_PRIVATE_FLAG`` 。对于那些不在同一内存空间共享的进程,可以让同一个futex拥有不同 +的虚拟地址(例如使用基于文件的共享内存),这需要不同的内部机制来使得正确进入队列。这是默认 +的行为,而且对私有futex和共享futex都适用。 + +futex可以是不同的大小:8,16,32或64位。目前只支持32位大小的futex,并且需要通过 ``FUTEX_32`` +标志指定。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/virt/acrn/io-request.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/virt/acrn/io-request.rst index ce75b5139..4b4e7186d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/virt/acrn/io-request.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_CN/virt/acrn/io-request.rst @@ -1,99 +1,99 @@ -.. SPDX-License-Identifier: GPL-2.0 -.. include:: ../../disclaimer-zh_CN.rst - -:Original: Documentation/virt/acrn/io-request.rst - -:翻译: - - 司延腾 Yanteng Si - -:校译: - - 时奎亮 Alex Shi - -.. _cn_virt_acrn_io-request: - -I/O请求处理 -=========== - -客户虚拟机的I/O请求由超级管理器构建,由ACRN超级管理器服务模块分发到与I/O请求的地址范 -围相对应的I/O客户端。I/O请求处理的细节将在以下章节描述。 - -1. I/O请求 ----------- - -对于每个客户虚拟机,有一个共享的4KB字节的内存区域,用于超级管理器和服务虚拟机之间的 -I/O请求通信。一个I/O请求是一个256字节的结构体缓冲区,它是 "acrn_io_request" 结构 -体,当客户虚拟机中发生被困的I/O访问时,由超级管理器的I/O处理器填充。服务虚拟机中的 -ACRN用户空间首先分配一个4KB字节的页面,并将缓冲区的GPA(客户物理地址)传递给管理平 -台。缓冲区被用作16个I/O请求槽的数组,每个I/O请求槽为256字节。这个数组是按vCPU ID -索引的。 - -2. I/O客户端 ------------- - -一个I/O客户端负责处理客户虚拟机的I/O请求,其访问的GPA在一定范围内。每个客户虚拟机 -可以关联多个I/O客户端。每个客户虚拟机都有一个特殊的客户端,称为默认客户端,负责处理 -所有不在其他客户端范围内的I/O请求。ACRN用户空间充当每个客户虚拟机的默认客户端。 - -下面的图示显示了I/O请求共享缓冲区、I/O请求和I/O客户端之间的关系。 - -:: - - +------------------------------------------------------+ - | 服务VM | - |+--------------------------------------------------+ | - || +----------------------------------------+ | | - || | 共享页 ACRN用户空间 | | | - || | +-----------------+ +------------+ | | | - || +----+->| acrn_io_request |<-+ 默认 | | | | - || | | | +-----------------+ | I/O客户端 | | | | - || | | | | ... | +------------+ | | | - || | | | +-----------------+ | | | - || | +-|--------------------------------------+ | | - ||---|----|-----------------------------------------| | - || | | 内核 | | - || | | +----------------------+ | | - || | | | +-------------+ HSM | | | - || | +--------------+ | | | | - || | | | I/O客户端 | | | | - || | | | | | | | - || | | +-------------+ | | | - || | +----------------------+ | | - |+---|----------------------------------------------+ | - +----|-------------------------------------------------+ - | - +----|-------------------------------------------------+ - | +-+-----------+ | - | | I/O处理 | ACRN超级管理器 | - | +-------------+ | - +------------------------------------------------------+ - -3. I/O请求状态转换 ------------------- - -一个ACRN I/O请求的状态转换如下。 - -:: - - FREE -> PENDING -> PROCESSING -> COMPLETE -> FREE -> ... - -- FREE: 这个I/O请求槽是空的 -- PENDING: 在这个槽位上有一个有效的I/O请求正在等待 -- PROCESSING: 正在处理I/O请求 -- COMPLETE: 该I/O请求已被处理 - -处于COMPLETE或FREE状态的I/O请求是由超级管理器拥有的。HSM和ACRN用户空间负责处理其 -他的。 - -4. I/O请求的处理流程 --------------------- - -a. 当客户虚拟机中发生被陷入的I/O访问时,超级管理器的I/O处理程序将把I/O请求填充为 - PENDING状态。 -b. 超级管理器向服务虚拟机发出一个向上调用,这是一个通知中断。 -c. upcall处理程序会安排一个工作者来调度I/O请求。 -d. 工作者寻找PENDING I/O请求,根据I/O访问的地址将其分配给不同的注册客户,将其 - 状态更新为PROCESSING,并通知相应的客户进行处理。 -e. 被通知的客户端处理指定的I/O请求。 -f. HSM将I/O请求状态更新为COMPLETE,并通过hypercalls通知超级管理器完成。 +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../../disclaimer-zh_CN.rst + +:Original: Documentation/virt/acrn/io-request.rst + +:翻译: + + 司延腾 Yanteng Si + +:校译: + + 时奎亮 Alex Shi + +.. _cn_virt_acrn_io-request: + +I/O请求处理 +=========== + +客户虚拟机的I/O请求由超级管理器构建,由ACRN超级管理器服务模块分发到与I/O请求的地址范 +围相对应的I/O客户端。I/O请求处理的细节将在以下章节描述。 + +1. I/O请求 +---------- + +对于每个客户虚拟机,有一个共享的4KB字节的内存区域,用于超级管理器和服务虚拟机之间的 +I/O请求通信。一个I/O请求是一个256字节的结构体缓冲区,它是 "acrn_io_request" 结构 +体,当客户虚拟机中发生被困的I/O访问时,由超级管理器的I/O处理器填充。服务虚拟机中的 +ACRN用户空间首先分配一个4KB字节的页面,并将缓冲区的GPA(客户物理地址)传递给管理平 +台。缓冲区被用作16个I/O请求槽的数组,每个I/O请求槽为256字节。这个数组是按vCPU ID +索引的。 + +2. I/O客户端 +------------ + +一个I/O客户端负责处理客户虚拟机的I/O请求,其访问的GPA在一定范围内。每个客户虚拟机 +可以关联多个I/O客户端。每个客户虚拟机都有一个特殊的客户端,称为默认客户端,负责处理 +所有不在其他客户端范围内的I/O请求。ACRN用户空间充当每个客户虚拟机的默认客户端。 + +下面的图示显示了I/O请求共享缓冲区、I/O请求和I/O客户端之间的关系。 + +:: + + +------------------------------------------------------+ + | 服务VM | + |+--------------------------------------------------+ | + || +----------------------------------------+ | | + || | 共享页 ACRN用户空间 | | | + || | +-----------------+ +------------+ | | | + || +----+->| acrn_io_request |<-+ 默认 | | | | + || | | | +-----------------+ | I/O客户端 | | | | + || | | | | ... | +------------+ | | | + || | | | +-----------------+ | | | + || | +-|--------------------------------------+ | | + ||---|----|-----------------------------------------| | + || | | 内核 | | + || | | +----------------------+ | | + || | | | +-------------+ HSM | | | + || | +--------------+ | | | | + || | | | I/O客户端 | | | | + || | | | | | | | + || | | +-------------+ | | | + || | +----------------------+ | | + |+---|----------------------------------------------+ | + +----|-------------------------------------------------+ + | + +----|-------------------------------------------------+ + | +-+-----------+ | + | | I/O处理 | ACRN超级管理器 | + | +-------------+ | + +------------------------------------------------------+ + +3. I/O请求状态转换 +------------------ + +一个ACRN I/O请求的状态转换如下。 + +:: + + FREE -> PENDING -> PROCESSING -> COMPLETE -> FREE -> ... + +- FREE: 这个I/O请求槽是空的 +- PENDING: 在这个槽位上有一个有效的I/O请求正在等待 +- PROCESSING: 正在处理I/O请求 +- COMPLETE: 该I/O请求已被处理 + +处于COMPLETE或FREE状态的I/O请求是由超级管理器拥有的。HSM和ACRN用户空间负责处理其 +他的。 + +4. I/O请求的处理流程 +-------------------- + +a. 当客户虚拟机中发生被陷入的I/O访问时,超级管理器的I/O处理程序将把I/O请求填充为 + PENDING状态。 +b. 超级管理器向服务虚拟机发出一个向上调用,这是一个通知中断。 +c. upcall处理程序会安排一个工作者来调度I/O请求。 +d. 工作者寻找PENDING I/O请求,根据I/O访问的地址将其分配给不同的注册客户,将其 + 状态更新为PROCESSING,并通知相应的客户进行处理。 +e. 被通知的客户端处理指定的I/O请求。 +f. HSM将I/O请求状态更新为COMPLETE,并通过hypercalls通知超级管理器完成。 diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/admin-guide/cputopology.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/admin-guide/cputopology.rst index 45d8f5f5e..5c46d1b3b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/admin-guide/cputopology.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/admin-guide/cputopology.rst @@ -1,97 +1,97 @@ -.. SPDX-License-Identifier: GPL-2.0 -.. include:: ../disclaimer-zh_TW.rst - -:Original: Documentation/admin-guide/cputopology.rst - -:翻譯: - - 唐藝舟 Tang Yizhou - -========================== -如何通過sysfs將CPU拓撲導出 -========================== - -CPU拓撲信息通過sysfs導出。顯示的項(屬性)和某些架構的/proc/cpuinfo輸出相似。它們位於 -/sys/devices/system/cpu/cpuX/topology/。請閱讀ABI文件: -Documentation/ABI/stable/sysfs-devices-system-cpu。 - -drivers/base/topology.c是體系結構中性的,它導出了這些屬性。然而,die、cluster、book、 -draw這些層次結構相關的文件僅在體系結構提供了下文描述的宏的條件下被創建。 - -對於支持這個特性的體系結構,它必須在include/asm-XXX/topology.h中定義這些宏中的一部分:: - - #define topology_physical_package_id(cpu) - #define topology_die_id(cpu) - #define topology_cluster_id(cpu) - #define topology_core_id(cpu) - #define topology_book_id(cpu) - #define topology_drawer_id(cpu) - #define topology_sibling_cpumask(cpu) - #define topology_core_cpumask(cpu) - #define topology_cluster_cpumask(cpu) - #define topology_die_cpumask(cpu) - #define topology_book_cpumask(cpu) - #define topology_drawer_cpumask(cpu) - -``**_id macros`` 的類型是int。 -``**_cpumask macros`` 的類型是 ``(const) struct cpumask *`` 。後者和恰當的 -``**_siblings`` sysfs屬性對應(除了topology_sibling_cpumask(),它和thread_siblings -對應)。 - -爲了在所有體系結構上保持一致,include/linux/topology.h提供了上述所有宏的默認定義,以防 -它們未在include/asm-XXX/topology.h中定義: - -1) topology_physical_package_id: -1 -2) topology_die_id: -1 -3) topology_cluster_id: -1 -4) topology_core_id: 0 -5) topology_book_id: -1 -6) topology_drawer_id: -1 -7) topology_sibling_cpumask: 僅入參CPU -8) topology_core_cpumask: 僅入參CPU -9) topology_cluster_cpumask: 僅入參CPU -10) topology_die_cpumask: 僅入參CPU -11) topology_book_cpumask: 僅入參CPU -12) topology_drawer_cpumask: 僅入參CPU - -此外,CPU拓撲信息由/sys/devices/system/cpu提供,包含下述文件。輸出對應的內部數據源放在 -方括號("[]")中。 - - =========== ================================================================== - kernel_max: 內核配置允許的最大CPU下標值。[NR_CPUS-1] - - offline: 由於熱插拔移除或者超過內核允許的CPU上限(上文描述的kernel_max) - 導致未上線的CPU。[~cpu_online_mask + cpus >= NR_CPUS] - - online: 在線的CPU,可供調度使用。[cpu_online_mask] - - possible: 已被分配資源的CPU,如果它們CPU實際存在,可以上線。 - [cpu_possible_mask] - - present: 被系統識別實際存在的CPU。[cpu_present_mask] - =========== ================================================================== - -上述輸出的格式和cpulist_parse()兼容[參見 ]。下面給些例子。 - -在本例中,系統中有64個CPU,但是CPU 32-63超過了kernel_max值,因爲NR_CPUS配置項是32, -取值範圍被限制爲0..31。此外注意CPU2和4-31未上線,但是可以上線,因爲它們同時存在於 -present和possible:: - - kernel_max: 31 - offline: 2,4-31,32-63 - online: 0-1,3 - possible: 0-31 - present: 0-31 - -在本例中,NR_CPUS配置項是128,但內核啓動時設置possible_cpus=144。系統中有4個CPU, -CPU2被手動設置下線(也是唯一一個可以上線的CPU):: - - kernel_max: 127 - offline: 2,4-127,128-143 - online: 0-1,3 - possible: 0-127 - present: 0-3 - -閱讀Documentation/core-api/cpu_hotplug.rst可瞭解開機參數possible_cpus=NUM,同時還 -可以瞭解各種cpumask的信息。 - +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../disclaimer-zh_TW.rst + +:Original: Documentation/admin-guide/cputopology.rst + +:翻譯: + + 唐藝舟 Tang Yizhou + +========================== +如何通過sysfs將CPU拓撲導出 +========================== + +CPU拓撲信息通過sysfs導出。顯示的項(屬性)和某些架構的/proc/cpuinfo輸出相似。它們位於 +/sys/devices/system/cpu/cpuX/topology/。請閱讀ABI文件: +Documentation/ABI/stable/sysfs-devices-system-cpu。 + +drivers/base/topology.c是體系結構中性的,它導出了這些屬性。然而,die、cluster、book、 +draw這些層次結構相關的文件僅在體系結構提供了下文描述的宏的條件下被創建。 + +對於支持這個特性的體系結構,它必須在include/asm-XXX/topology.h中定義這些宏中的一部分:: + + #define topology_physical_package_id(cpu) + #define topology_die_id(cpu) + #define topology_cluster_id(cpu) + #define topology_core_id(cpu) + #define topology_book_id(cpu) + #define topology_drawer_id(cpu) + #define topology_sibling_cpumask(cpu) + #define topology_core_cpumask(cpu) + #define topology_cluster_cpumask(cpu) + #define topology_die_cpumask(cpu) + #define topology_book_cpumask(cpu) + #define topology_drawer_cpumask(cpu) + +``**_id macros`` 的類型是int。 +``**_cpumask macros`` 的類型是 ``(const) struct cpumask *`` 。後者和恰當的 +``**_siblings`` sysfs屬性對應(除了topology_sibling_cpumask(),它和thread_siblings +對應)。 + +爲了在所有體系結構上保持一致,include/linux/topology.h提供了上述所有宏的默認定義,以防 +它們未在include/asm-XXX/topology.h中定義: + +1) topology_physical_package_id: -1 +2) topology_die_id: -1 +3) topology_cluster_id: -1 +4) topology_core_id: 0 +5) topology_book_id: -1 +6) topology_drawer_id: -1 +7) topology_sibling_cpumask: 僅入參CPU +8) topology_core_cpumask: 僅入參CPU +9) topology_cluster_cpumask: 僅入參CPU +10) topology_die_cpumask: 僅入參CPU +11) topology_book_cpumask: 僅入參CPU +12) topology_drawer_cpumask: 僅入參CPU + +此外,CPU拓撲信息由/sys/devices/system/cpu提供,包含下述文件。輸出對應的內部數據源放在 +方括號("[]")中。 + + =========== ================================================================== + kernel_max: 內核配置允許的最大CPU下標值。[NR_CPUS-1] + + offline: 由於熱插拔移除或者超過內核允許的CPU上限(上文描述的kernel_max) + 導致未上線的CPU。[~cpu_online_mask + cpus >= NR_CPUS] + + online: 在線的CPU,可供調度使用。[cpu_online_mask] + + possible: 已被分配資源的CPU,如果它們CPU實際存在,可以上線。 + [cpu_possible_mask] + + present: 被系統識別實際存在的CPU。[cpu_present_mask] + =========== ================================================================== + +上述輸出的格式和cpulist_parse()兼容[參見 ]。下面給些例子。 + +在本例中,系統中有64個CPU,但是CPU 32-63超過了kernel_max值,因爲NR_CPUS配置項是32, +取值範圍被限制爲0..31。此外注意CPU2和4-31未上線,但是可以上線,因爲它們同時存在於 +present和possible:: + + kernel_max: 31 + offline: 2,4-31,32-63 + online: 0-1,3 + possible: 0-31 + present: 0-31 + +在本例中,NR_CPUS配置項是128,但內核啓動時設置possible_cpus=144。系統中有4個CPU, +CPU2被手動設置下線(也是唯一一個可以上線的CPU):: + + kernel_max: 127 + offline: 2,4-127,128-143 + online: 0-1,3 + possible: 0-127 + present: 0-3 + +閱讀Documentation/core-api/cpu_hotplug.rst可瞭解開機參數possible_cpus=NUM,同時還 +可以瞭解各種cpumask的信息。 + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/admin-guide/lockup-watchdogs.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/admin-guide/lockup-watchdogs.rst index 3d874b58a..f65b0c96e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/admin-guide/lockup-watchdogs.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/admin-guide/lockup-watchdogs.rst @@ -1,67 +1,67 @@ -.. include:: ../disclaimer-zh_TW.rst - -:Original: Documentation/admin-guide/lockup-watchdogs.rst -:Translator: Hailong Liu - -.. _tw_lockup-watchdogs: - - -================================================= -Softlockup與hardlockup檢測機制(又名:nmi_watchdog) -================================================= - -Linux中內核實現了一種用以檢測系統發生softlockup和hardlockup的看門狗機制。 - -Softlockup是一種會引發系統在內核態中一直循環超過20秒(詳見下面“實現”小節)導致 -其他任務沒有機會得到運行的BUG。一旦檢測到'softlockup'發生,默認情況下系統會打 -印當前堆棧跟蹤信息並進入鎖定狀態。也可配置使其在檢測到'softlockup'後進入panic -狀態;通過sysctl命令設置“kernel.softlockup_panic”、使用內核啓動參數 -“softlockup_panic”(詳見Documentation/admin-guide/kernel-parameters.rst)以及使 -能內核編譯選項“BOOTPARAM_SOFTLOCKUP_PANIC”都可實現這種配置。 - -而'hardlockup'是一種會引發系統在內核態一直循環超過10秒鐘(詳見"實現"小節)導致其 -他中斷沒有機會運行的缺陷。與'softlockup'情況類似,除了使用sysctl命令設置 -'hardlockup_panic'、使能內核選項“BOOTPARAM_HARDLOCKUP_PANIC”以及使用內核參數 -"nmi_watchdog"(詳見:”Documentation/admin-guide/kernel-parameters.rst“)外,一旦檢 -測到'hardlockup'默認情況下系統打印當前堆棧跟蹤信息,然後進入鎖定狀態。 - -這個panic選項也可以與panic_timeout結合使用(這個panic_timeout是通過稍具迷惑性的 -sysctl命令"kernel.panic"來設置),使系統在panic指定時間後自動重啓。 - -實現 -==== - -Softlockup和hardlockup分別建立在hrtimer(高精度定時器)和perf兩個子系統上而實現。 -這也就意味着理論上任何架構只要實現了這兩個子系統就支持這兩種檢測機制。 - -Hrtimer用於週期性產生中斷並喚醒watchdog線程;NMI perf事件則以”watchdog_thresh“ -(編譯時默認初始化爲10秒,也可通過”watchdog_thresh“這個sysctl接口來進行配置修改) -爲間隔週期產生以檢測 hardlockups。如果一個CPU在這個時間段內沒有檢測到hrtimer中 -斷髮生,'hardlockup 檢測器'(即NMI perf事件處理函數)將會視系統配置而選擇產生內核 -警告或者直接panic。 - -而watchdog線程本質上是一個高優先級內核線程,每調度一次就對時間戳進行一次更新。 -如果時間戳在2*watchdog_thresh(這個是softlockup的觸發門限)這段時間都未更新,那麼 -"softlocup 檢測器"(內部hrtimer定時器回調函數)會將相關的調試信息打印到系統日誌中, -然後如果系統配置了進入panic流程則進入panic,否則內核繼續執行。 - -Hrtimer定時器的週期是2*watchdog_thresh/5,也就是說在hardlockup被觸發前hrtimer有 -2~3次機會產生時鐘中斷。 - -如上所述,內核相當於爲系統管理員提供了一個可調節hrtimer定時器和perf事件週期長度 -的調節旋鈕。如何通過這個旋鈕爲特定使用場景配置一個合理的週期值要對lockups檢測的 -響應速度和lockups檢測開銷這二者之間進行權衡。 - -默認情況下所有在線cpu上都會運行一個watchdog線程。不過在內核配置了”NO_HZ_FULL“的 -情況下watchdog線程默認只會運行在管家(housekeeping)cpu上,而”nohz_full“啓動參數指 -定的cpu上則不會有watchdog線程運行。試想,如果我們允許watchdog線程在”nohz_full“指 -定的cpu上運行,這些cpu上必須得運行時鐘定時器來激發watchdog線程調度;這樣一來就會 -使”nohz_full“保護用戶程序免受內核干擾的功能失效。當然,副作用就是”nohz_full“指定 -的cpu即使在內核產生了lockup問題我們也無法檢測到。不過,至少我們可以允許watchdog -線程在管家(non-tickless)核上繼續運行以便我們能繼續正常的監測這些cpus上的lockups -事件。 - -不論哪種情況都可以通過sysctl命令kernel.watchdog_cpumask來對沒有運行watchdog線程 -的cpu集合進行調節。對於nohz_full而言,如果nohz_full cpu上有異常掛住的情況,通過 -這種方式打開這些cpu上的watchdog進行調試可能會有所作用。 - +.. include:: ../disclaimer-zh_TW.rst + +:Original: Documentation/admin-guide/lockup-watchdogs.rst +:Translator: Hailong Liu + +.. _tw_lockup-watchdogs: + + +================================================= +Softlockup與hardlockup檢測機制(又名:nmi_watchdog) +================================================= + +Linux中內核實現了一種用以檢測系統發生softlockup和hardlockup的看門狗機制。 + +Softlockup是一種會引發系統在內核態中一直循環超過20秒(詳見下面“實現”小節)導致 +其他任務沒有機會得到運行的BUG。一旦檢測到'softlockup'發生,默認情況下系統會打 +印當前堆棧跟蹤信息並進入鎖定狀態。也可配置使其在檢測到'softlockup'後進入panic +狀態;通過sysctl命令設置“kernel.softlockup_panic”、使用內核啓動參數 +“softlockup_panic”(詳見Documentation/admin-guide/kernel-parameters.rst)以及使 +能內核編譯選項“BOOTPARAM_SOFTLOCKUP_PANIC”都可實現這種配置。 + +而'hardlockup'是一種會引發系統在內核態一直循環超過10秒鐘(詳見"實現"小節)導致其 +他中斷沒有機會運行的缺陷。與'softlockup'情況類似,除了使用sysctl命令設置 +'hardlockup_panic'、使能內核選項“BOOTPARAM_HARDLOCKUP_PANIC”以及使用內核參數 +"nmi_watchdog"(詳見:”Documentation/admin-guide/kernel-parameters.rst“)外,一旦檢 +測到'hardlockup'默認情況下系統打印當前堆棧跟蹤信息,然後進入鎖定狀態。 + +這個panic選項也可以與panic_timeout結合使用(這個panic_timeout是通過稍具迷惑性的 +sysctl命令"kernel.panic"來設置),使系統在panic指定時間後自動重啓。 + +實現 +==== + +Softlockup和hardlockup分別建立在hrtimer(高精度定時器)和perf兩個子系統上而實現。 +這也就意味着理論上任何架構只要實現了這兩個子系統就支持這兩種檢測機制。 + +Hrtimer用於週期性產生中斷並喚醒watchdog線程;NMI perf事件則以”watchdog_thresh“ +(編譯時默認初始化爲10秒,也可通過”watchdog_thresh“這個sysctl接口來進行配置修改) +爲間隔週期產生以檢測 hardlockups。如果一個CPU在這個時間段內沒有檢測到hrtimer中 +斷髮生,'hardlockup 檢測器'(即NMI perf事件處理函數)將會視系統配置而選擇產生內核 +警告或者直接panic。 + +而watchdog線程本質上是一個高優先級內核線程,每調度一次就對時間戳進行一次更新。 +如果時間戳在2*watchdog_thresh(這個是softlockup的觸發門限)這段時間都未更新,那麼 +"softlocup 檢測器"(內部hrtimer定時器回調函數)會將相關的調試信息打印到系統日誌中, +然後如果系統配置了進入panic流程則進入panic,否則內核繼續執行。 + +Hrtimer定時器的週期是2*watchdog_thresh/5,也就是說在hardlockup被觸發前hrtimer有 +2~3次機會產生時鐘中斷。 + +如上所述,內核相當於爲系統管理員提供了一個可調節hrtimer定時器和perf事件週期長度 +的調節旋鈕。如何通過這個旋鈕爲特定使用場景配置一個合理的週期值要對lockups檢測的 +響應速度和lockups檢測開銷這二者之間進行權衡。 + +默認情況下所有在線cpu上都會運行一個watchdog線程。不過在內核配置了”NO_HZ_FULL“的 +情況下watchdog線程默認只會運行在管家(housekeeping)cpu上,而”nohz_full“啓動參數指 +定的cpu上則不會有watchdog線程運行。試想,如果我們允許watchdog線程在”nohz_full“指 +定的cpu上運行,這些cpu上必須得運行時鐘定時器來激發watchdog線程調度;這樣一來就會 +使”nohz_full“保護用戶程序免受內核干擾的功能失效。當然,副作用就是”nohz_full“指定 +的cpu即使在內核產生了lockup問題我們也無法檢測到。不過,至少我們可以允許watchdog +線程在管家(non-tickless)核上繼續運行以便我們能繼續正常的監測這些cpus上的lockups +事件。 + +不論哪種情況都可以通過sysctl命令kernel.watchdog_cpumask來對沒有運行watchdog線程 +的cpu集合進行調節。對於nohz_full而言,如果nohz_full cpu上有異常掛住的情況,通過 +這種方式打開這些cpu上的watchdog進行調試可能會有所作用。 + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/admin-guide/security-bugs.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/admin-guide/security-bugs.rst index 0f87f3971..cfe1e58e1 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/admin-guide/security-bugs.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/admin-guide/security-bugs.rst @@ -1,78 +1,78 @@ -.. SPDX-License-Identifier: GPL-2.0 - -.. include:: ../disclaimer-zh_TW.rst - -:Original: :doc:`../../../process/security-bugs` - -:譯者: - - 吳想成 Wu XiangCheng - 胡皓文 Hu Haowen <2023002089@link.tyut.edu.cn> - -安全缺陷 -========= - -Linux內核開發人員非常重視安全性。因此我們想知道何時發現了安全漏洞,以便儘快 -修復和披露。請向Linux內核安全團隊報告安全漏洞。 - -聯絡 ------ - -可以通過電子郵件聯繫Linux內核安全團隊。這是一個安全人員 -的私有列表,他們將幫助驗證錯誤報告並開發和發佈修復程序。如果您已經有了一個 -修復,請將其包含在您的報告中,這樣可以大大加快進程。安全團隊可能會從區域維護 -人員那裏獲得額外的幫助,以理解和修復安全漏洞。 - -與任何缺陷一樣,提供的信息越多,診斷和修復就越容易。如果您不清楚哪些信息有用, -請查看“Documentation/translations/zh_CN/admin-guide/reporting-issues.rst”中 -概述的步驟。任何利用漏洞的攻擊代碼都非常有用,未經報告者同意不會對外發布,除 -非已經公開。 - -請儘可能發送無附件的純文本電子郵件。如果所有的細節都藏在附件裏,那麼就很難對 -一個複雜的問題進行上下文引用的討論。把它想象成一個 -:doc:`常規的補丁提交 <../process/submitting-patches>` (即使你還沒有補丁): -描述問題和影響,列出復現步驟,然後給出一個建議的解決方案,所有這些都是純文本的。 - -披露和限制信息 ---------------- - -安全列表不是公開渠道。爲此,請參見下面的協作。 - -一旦開發出了健壯的補丁,發佈過程就開始了。對公開的缺陷的修復會立即發佈。 - -儘管我們傾向於在未公開缺陷的修復可用時即發佈補丁,但應報告者或受影響方的請求, -這可能會被推遲到發佈過程開始後的7日內,如果根據缺陷的嚴重性需要更多的時間, -則可額外延長到14天。推遲發佈修復的唯一有效原因是爲了適應QA的邏輯和需要發佈 -協調的大規模部署。 - -雖然可能與受信任的個人共享受限信息以開發修復,但未經報告者許可,此類信息不會 -與修復程序一起發佈或發佈在任何其他披露渠道上。這包括但不限於原始錯誤報告和 -後續討論(如有)、漏洞、CVE信息或報告者的身份。 - -換句話說,我們唯一感興趣的是修復缺陷。提交給安全列表的所有其他資料以及對報告 -的任何後續討論,即使在解除限制之後,也將永久保密。 - -協調 ------- - -對敏感缺陷(例如那些可能導致權限提升的缺陷)的修復可能需要與私有郵件列表 -進行協調,以便分發供應商做好準備,在公開披露 -上游補丁時發佈一個已修復的內核。發行版將需要一些時間來測試建議的補丁,通常 -會要求至少幾天的限制,而供應商更新發布更傾向於週二至週四。若合適,安全團隊 -可以協助這種協調,或者報告者可以從一開始就包括linux發行版。在這種情況下,請 -記住在電子郵件主題行前面加上“[vs]”,如linux發行版wiki中所述: -。 - -CVE分配 --------- - -安全團隊通常不分配CVE,我們也不需要它們來進行報告或修復,因爲這會使過程不必 -要的複雜化,並可能耽誤缺陷處理。如果報告者希望在公開披露之前分配一個CVE編號, -他們需要聯繫上述的私有linux-distros列表。當在提供補丁之前已有這樣的CVE編號時, -如報告者願意,最好在提交消息中提及它。 - -保密協議 ---------- - -Linux內核安全團隊不是一個正式的機構實體,因此無法簽訂任何保密協議。 - +.. SPDX-License-Identifier: GPL-2.0 + +.. include:: ../disclaimer-zh_TW.rst + +:Original: :doc:`../../../process/security-bugs` + +:譯者: + + 吳想成 Wu XiangCheng + 胡皓文 Hu Haowen <2023002089@link.tyut.edu.cn> + +安全缺陷 +========= + +Linux內核開發人員非常重視安全性。因此我們想知道何時發現了安全漏洞,以便儘快 +修復和披露。請向Linux內核安全團隊報告安全漏洞。 + +聯絡 +----- + +可以通過電子郵件聯繫Linux內核安全團隊。這是一個安全人員 +的私有列表,他們將幫助驗證錯誤報告並開發和發佈修復程序。如果您已經有了一個 +修復,請將其包含在您的報告中,這樣可以大大加快進程。安全團隊可能會從區域維護 +人員那裏獲得額外的幫助,以理解和修復安全漏洞。 + +與任何缺陷一樣,提供的信息越多,診斷和修復就越容易。如果您不清楚哪些信息有用, +請查看“Documentation/translations/zh_CN/admin-guide/reporting-issues.rst”中 +概述的步驟。任何利用漏洞的攻擊代碼都非常有用,未經報告者同意不會對外發布,除 +非已經公開。 + +請儘可能發送無附件的純文本電子郵件。如果所有的細節都藏在附件裏,那麼就很難對 +一個複雜的問題進行上下文引用的討論。把它想象成一個 +:doc:`常規的補丁提交 <../process/submitting-patches>` (即使你還沒有補丁): +描述問題和影響,列出復現步驟,然後給出一個建議的解決方案,所有這些都是純文本的。 + +披露和限制信息 +--------------- + +安全列表不是公開渠道。爲此,請參見下面的協作。 + +一旦開發出了健壯的補丁,發佈過程就開始了。對公開的缺陷的修復會立即發佈。 + +儘管我們傾向於在未公開缺陷的修復可用時即發佈補丁,但應報告者或受影響方的請求, +這可能會被推遲到發佈過程開始後的7日內,如果根據缺陷的嚴重性需要更多的時間, +則可額外延長到14天。推遲發佈修復的唯一有效原因是爲了適應QA的邏輯和需要發佈 +協調的大規模部署。 + +雖然可能與受信任的個人共享受限信息以開發修復,但未經報告者許可,此類信息不會 +與修復程序一起發佈或發佈在任何其他披露渠道上。這包括但不限於原始錯誤報告和 +後續討論(如有)、漏洞、CVE信息或報告者的身份。 + +換句話說,我們唯一感興趣的是修復缺陷。提交給安全列表的所有其他資料以及對報告 +的任何後續討論,即使在解除限制之後,也將永久保密。 + +協調 +------ + +對敏感缺陷(例如那些可能導致權限提升的缺陷)的修復可能需要與私有郵件列表 +進行協調,以便分發供應商做好準備,在公開披露 +上游補丁時發佈一個已修復的內核。發行版將需要一些時間來測試建議的補丁,通常 +會要求至少幾天的限制,而供應商更新發布更傾向於週二至週四。若合適,安全團隊 +可以協助這種協調,或者報告者可以從一開始就包括linux發行版。在這種情況下,請 +記住在電子郵件主題行前面加上“[vs]”,如linux發行版wiki中所述: +。 + +CVE分配 +-------- + +安全團隊通常不分配CVE,我們也不需要它們來進行報告或修復,因爲這會使過程不必 +要的複雜化,並可能耽誤缺陷處理。如果報告者希望在公開披露之前分配一個CVE編號, +他們需要聯繫上述的私有linux-distros列表。當在提供補丁之前已有這樣的CVE編號時, +如報告者願意,最好在提交消息中提及它。 + +保密協議 +--------- + +Linux內核安全團隊不是一個正式的機構實體,因此無法簽訂任何保密協議。 + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/arch/arm64/amu.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/arch/arm64/amu.rst index 1a74a1b86..3726c1671 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/arch/arm64/amu.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/arch/arm64/amu.rst @@ -1,104 +1,104 @@ -.. SPDX-License-Identifier: GPL-2.0 - -.. include:: ../../disclaimer-zh_TW.rst - -:Original: :ref:`Documentation/arch/arm64/amu.rst ` - -Translator: Bailu Lin - Hu Haowen <2023002089@link.tyut.edu.cn> - -================================== -AArch64 Linux 中擴展的活動監控單元 -================================== - -作者: Ionela Voinescu - -日期: 2019-09-10 - -本文檔簡要描述了 AArch64 Linux 支持的活動監控單元的規範。 - - -架構總述 --------- - -活動監控是 ARMv8.4 CPU 架構引入的一個可選擴展特性。 - -活動監控單元(在每個 CPU 中實現)爲系統管理提供了性能計數器。既可以通 -過系統寄存器的方式訪問計數器,同時也支持外部內存映射的方式訪問計數器。 - -AMUv1 架構實現了一個由4個固定的64位事件計數器組成的計數器組。 - - - CPU 週期計數器:同 CPU 的頻率增長 - - 常量計數器:同固定的系統時鐘頻率增長 - - 淘汰指令計數器: 同每次架構指令執行增長 - - 內存停頓週期計數器:計算由在時鐘域內的最後一級緩存中未命中而引起 - 的指令調度停頓週期數 - -當處於 WFI 或者 WFE 狀態時,計數器不會增長。 - -AMU 架構提供了一個高達16位的事件計數器空間,未來新的 AMU 版本中可能 -用它來實現新增的事件計數器。 - -另外,AMUv1 實現了一個多達16個64位輔助事件計數器的計數器組。 - -冷復位時所有的計數器會清零。 - - -基本支持 --------- - -內核可以安全地運行在支持 AMU 和不支持 AMU 的 CPU 組合中。 -因此,當配置 CONFIG_ARM64_AMU_EXTN 後我們無條件使能後續 -(secondary or hotplugged) CPU 檢測和使用這個特性。 - -當在 CPU 上檢測到該特性時,我們會標記爲特性可用但是不能保證計數器的功能, -僅表明有擴展屬性。 - -固件(代碼運行在高異常級別,例如 arm-tf )需支持以下功能: - - - 提供低異常級別(EL2 和 EL1)訪問 AMU 寄存器的能力。 - - 使能計數器。如果未使能,它的值應爲 0。 - - 在從電源關閉狀態啓動 CPU 前或後保存或者恢復計數器。 - -當使用使能了該特性的內核啓動但固件損壞時,訪問計數器寄存器可能會遭遇 -panic 或者死鎖。即使未發現這些症狀,計數器寄存器返回的數據結果並不一 -定能反映真實情況。通常,計數器會返回 0,表明他們未被使能。 - -如果固件沒有提供適當的支持最好關閉 CONFIG_ARM64_AMU_EXTN。 -值得注意的是,出於安全原因,不要繞過 AMUSERRENR_EL0 設置而捕獲從 -EL0(用戶空間) 訪問 EL1(內核空間)。 因此,固件應該確保訪問 AMU寄存器 -不會困在 EL2或EL3。 - -AMUv1 的固定計數器可以通過如下系統寄存器訪問: - - - SYS_AMEVCNTR0_CORE_EL0 - - SYS_AMEVCNTR0_CONST_EL0 - - SYS_AMEVCNTR0_INST_RET_EL0 - - SYS_AMEVCNTR0_MEM_STALL_EL0 - -特定輔助計數器可以通過 SYS_AMEVCNTR1_EL0(n) 訪問,其中n介於0到15。 - -詳細信息定義在目錄:arch/arm64/include/asm/sysreg.h。 - - -用戶空間訪問 ------------- - -由於以下原因,當前禁止從用戶空間訪問 AMU 的寄存器: - - - 安全因數:可能會暴露處於安全模式執行的代碼信息。 - - 意願:AMU 是用於系統管理的。 - -同樣,該功能對用戶空間不可見。 - - -虛擬化 ------- - -由於以下原因,當前禁止從 KVM 客戶端的用戶空間(EL0)和內核空間(EL1) -訪問 AMU 的寄存器: - - - 安全因數:可能會暴露給其他客戶端或主機端執行的代碼信息。 - -任何試圖訪問 AMU 寄存器的行爲都會觸發一個註冊在客戶端的未定義異常。 - +.. SPDX-License-Identifier: GPL-2.0 + +.. include:: ../../disclaimer-zh_TW.rst + +:Original: :ref:`Documentation/arch/arm64/amu.rst ` + +Translator: Bailu Lin + Hu Haowen <2023002089@link.tyut.edu.cn> + +================================== +AArch64 Linux 中擴展的活動監控單元 +================================== + +作者: Ionela Voinescu + +日期: 2019-09-10 + +本文檔簡要描述了 AArch64 Linux 支持的活動監控單元的規範。 + + +架構總述 +-------- + +活動監控是 ARMv8.4 CPU 架構引入的一個可選擴展特性。 + +活動監控單元(在每個 CPU 中實現)爲系統管理提供了性能計數器。既可以通 +過系統寄存器的方式訪問計數器,同時也支持外部內存映射的方式訪問計數器。 + +AMUv1 架構實現了一個由4個固定的64位事件計數器組成的計數器組。 + + - CPU 週期計數器:同 CPU 的頻率增長 + - 常量計數器:同固定的系統時鐘頻率增長 + - 淘汰指令計數器: 同每次架構指令執行增長 + - 內存停頓週期計數器:計算由在時鐘域內的最後一級緩存中未命中而引起 + 的指令調度停頓週期數 + +當處於 WFI 或者 WFE 狀態時,計數器不會增長。 + +AMU 架構提供了一個高達16位的事件計數器空間,未來新的 AMU 版本中可能 +用它來實現新增的事件計數器。 + +另外,AMUv1 實現了一個多達16個64位輔助事件計數器的計數器組。 + +冷復位時所有的計數器會清零。 + + +基本支持 +-------- + +內核可以安全地運行在支持 AMU 和不支持 AMU 的 CPU 組合中。 +因此,當配置 CONFIG_ARM64_AMU_EXTN 後我們無條件使能後續 +(secondary or hotplugged) CPU 檢測和使用這個特性。 + +當在 CPU 上檢測到該特性時,我們會標記爲特性可用但是不能保證計數器的功能, +僅表明有擴展屬性。 + +固件(代碼運行在高異常級別,例如 arm-tf )需支持以下功能: + + - 提供低異常級別(EL2 和 EL1)訪問 AMU 寄存器的能力。 + - 使能計數器。如果未使能,它的值應爲 0。 + - 在從電源關閉狀態啓動 CPU 前或後保存或者恢復計數器。 + +當使用使能了該特性的內核啓動但固件損壞時,訪問計數器寄存器可能會遭遇 +panic 或者死鎖。即使未發現這些症狀,計數器寄存器返回的數據結果並不一 +定能反映真實情況。通常,計數器會返回 0,表明他們未被使能。 + +如果固件沒有提供適當的支持最好關閉 CONFIG_ARM64_AMU_EXTN。 +值得注意的是,出於安全原因,不要繞過 AMUSERRENR_EL0 設置而捕獲從 +EL0(用戶空間) 訪問 EL1(內核空間)。 因此,固件應該確保訪問 AMU寄存器 +不會困在 EL2或EL3。 + +AMUv1 的固定計數器可以通過如下系統寄存器訪問: + + - SYS_AMEVCNTR0_CORE_EL0 + - SYS_AMEVCNTR0_CONST_EL0 + - SYS_AMEVCNTR0_INST_RET_EL0 + - SYS_AMEVCNTR0_MEM_STALL_EL0 + +特定輔助計數器可以通過 SYS_AMEVCNTR1_EL0(n) 訪問,其中n介於0到15。 + +詳細信息定義在目錄:arch/arm64/include/asm/sysreg.h。 + + +用戶空間訪問 +------------ + +由於以下原因,當前禁止從用戶空間訪問 AMU 的寄存器: + + - 安全因數:可能會暴露處於安全模式執行的代碼信息。 + - 意願:AMU 是用於系統管理的。 + +同樣,該功能對用戶空間不可見。 + + +虛擬化 +------ + +由於以下原因,當前禁止從 KVM 客戶端的用戶空間(EL0)和內核空間(EL1) +訪問 AMU 的寄存器: + + - 安全因數:可能會暴露給其他客戶端或主機端執行的代碼信息。 + +任何試圖訪問 AMU 寄存器的行爲都會觸發一個註冊在客戶端的未定義異常。 + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/arch/arm64/legacy_instructions.txt b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/arch/arm64/legacy_instructions.txt index 3f04236e7..5c664555a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/arch/arm64/legacy_instructions.txt +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/arch/arm64/legacy_instructions.txt @@ -1,77 +1,77 @@ -SPDX-License-Identifier: GPL-2.0 - -Chinese translated version of Documentation/arch/arm64/legacy_instructions.rst - -If you have any comment or update to the content, please contact the -original document maintainer directly. However, if you have a problem -communicating in English you can also ask the Chinese maintainer for -help. Contact the Chinese maintainer if this translation is outdated -or if there is a problem with the translation. - -Maintainer: Punit Agrawal - Suzuki K. Poulose -Chinese maintainer: Fu Wei -Traditional Chinese maintainer: Hu Haowen <2023002089@link.tyut.edu.cn> ---------------------------------------------------------------------- -Documentation/arch/arm64/legacy_instructions.rst 的中文翻譯 - -如果想評論或更新本文的內容,請直接聯繫原文檔的維護者。如果你使用英文 -交流有困難的話,也可以向中文版維護者求助。如果本翻譯更新不及時或者翻 -譯存在問題,請聯繫中文版維護者。 - -本文翻譯提交時的 Git 檢出點爲: bc465aa9d045feb0e13b4a8f32cc33c1943f62d6 - -英文版維護者: Punit Agrawal - Suzuki K. Poulose -中文版維護者: 傅煒 Fu Wei -中文版翻譯者: 傅煒 Fu Wei -中文版校譯者: 傅煒 Fu Wei -繁體中文版校譯者:胡皓文 Hu Haowen <2023002089@link.tyut.edu.cn> - -以下爲正文 ---------------------------------------------------------------------- -Linux 內核在 arm64 上的移植提供了一個基礎框架,以支持構架中正在被淘汰或已廢棄指令的模擬執行。 -這個基礎框架的代碼使用未定義指令鉤子(hooks)來支持模擬。如果指令存在,它也允許在硬件中啓用該指令。 - -模擬模式可通過寫 sysctl 節點(/proc/sys/abi)來控制。 -不同的執行方式及 sysctl 節點的相應值,解釋如下: - -* Undef(未定義) - 值: 0 - 產生未定義指令終止異常。它是那些構架中已廢棄的指令,如 SWP,的默認處理方式。 - -* Emulate(模擬) - 值: 1 - 使用軟件模擬方式。爲解決軟件遷移問題,這種模擬指令模式的使用是被跟蹤的,並會發出速率限制警告。 - 它是那些構架中正在被淘汰的指令,如 CP15 barriers(隔離指令),的默認處理方式。 - -* Hardware Execution(硬件執行) - 值: 2 - 雖然標記爲正在被淘汰,但一些實現可能提供硬件執行這些指令的使能/禁用操作。 - 使用硬件執行一般會有更好的性能,但將無法收集運行時對正被淘汰指令的使用統計數據。 - -默認執行模式依賴於指令在構架中狀態。正在被淘汰的指令應該以模擬(Emulate)作爲默認模式, -而已廢棄的指令必須默認使用未定義(Undef)模式 - -注意:指令模擬可能無法應對所有情況。更多詳情請參考單獨的指令註釋。 - -受支持的遺留指令 -------------- -* SWP{B} -節點: /proc/sys/abi/swp -狀態: 已廢棄 -默認執行方式: Undef (0) - -* CP15 Barriers -節點: /proc/sys/abi/cp15_barrier -狀態: 正被淘汰,不推薦使用 -默認執行方式: Emulate (1) - -* SETEND -節點: /proc/sys/abi/setend -狀態: 正被淘汰,不推薦使用 -默認執行方式: Emulate (1)* -注:爲了使能這個特性,系統中的所有 CPU 必須在 EL0 支持混合字節序。 -如果一個新的 CPU (不支持混合字節序) 在使能這個特性後被熱插入系統, -在應用中可能會出現不可預期的結果。 - +SPDX-License-Identifier: GPL-2.0 + +Chinese translated version of Documentation/arch/arm64/legacy_instructions.rst + +If you have any comment or update to the content, please contact the +original document maintainer directly. However, if you have a problem +communicating in English you can also ask the Chinese maintainer for +help. Contact the Chinese maintainer if this translation is outdated +or if there is a problem with the translation. + +Maintainer: Punit Agrawal + Suzuki K. Poulose +Chinese maintainer: Fu Wei +Traditional Chinese maintainer: Hu Haowen <2023002089@link.tyut.edu.cn> +--------------------------------------------------------------------- +Documentation/arch/arm64/legacy_instructions.rst 的中文翻譯 + +如果想評論或更新本文的內容,請直接聯繫原文檔的維護者。如果你使用英文 +交流有困難的話,也可以向中文版維護者求助。如果本翻譯更新不及時或者翻 +譯存在問題,請聯繫中文版維護者。 + +本文翻譯提交時的 Git 檢出點爲: bc465aa9d045feb0e13b4a8f32cc33c1943f62d6 + +英文版維護者: Punit Agrawal + Suzuki K. Poulose +中文版維護者: 傅煒 Fu Wei +中文版翻譯者: 傅煒 Fu Wei +中文版校譯者: 傅煒 Fu Wei +繁體中文版校譯者:胡皓文 Hu Haowen <2023002089@link.tyut.edu.cn> + +以下爲正文 +--------------------------------------------------------------------- +Linux 內核在 arm64 上的移植提供了一個基礎框架,以支持構架中正在被淘汰或已廢棄指令的模擬執行。 +這個基礎框架的代碼使用未定義指令鉤子(hooks)來支持模擬。如果指令存在,它也允許在硬件中啓用該指令。 + +模擬模式可通過寫 sysctl 節點(/proc/sys/abi)來控制。 +不同的執行方式及 sysctl 節點的相應值,解釋如下: + +* Undef(未定義) + 值: 0 + 產生未定義指令終止異常。它是那些構架中已廢棄的指令,如 SWP,的默認處理方式。 + +* Emulate(模擬) + 值: 1 + 使用軟件模擬方式。爲解決軟件遷移問題,這種模擬指令模式的使用是被跟蹤的,並會發出速率限制警告。 + 它是那些構架中正在被淘汰的指令,如 CP15 barriers(隔離指令),的默認處理方式。 + +* Hardware Execution(硬件執行) + 值: 2 + 雖然標記爲正在被淘汰,但一些實現可能提供硬件執行這些指令的使能/禁用操作。 + 使用硬件執行一般會有更好的性能,但將無法收集運行時對正被淘汰指令的使用統計數據。 + +默認執行模式依賴於指令在構架中狀態。正在被淘汰的指令應該以模擬(Emulate)作爲默認模式, +而已廢棄的指令必須默認使用未定義(Undef)模式 + +注意:指令模擬可能無法應對所有情況。更多詳情請參考單獨的指令註釋。 + +受支持的遺留指令 +------------- +* SWP{B} +節點: /proc/sys/abi/swp +狀態: 已廢棄 +默認執行方式: Undef (0) + +* CP15 Barriers +節點: /proc/sys/abi/cp15_barrier +狀態: 正被淘汰,不推薦使用 +默認執行方式: Emulate (1) + +* SETEND +節點: /proc/sys/abi/setend +狀態: 正被淘汰,不推薦使用 +默認執行方式: Emulate (1)* +注:爲了使能這個特性,系統中的所有 CPU 必須在 EL0 支持混合字節序。 +如果一個新的 CPU (不支持混合字節序) 在使能這個特性後被熱插入系統, +在應用中可能會出現不可預期的結果。 + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/arch/openrisc/openrisc_port.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/arch/openrisc/openrisc_port.rst index c5d80bc39..422fe9f7a 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/arch/openrisc/openrisc_port.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/arch/openrisc/openrisc_port.rst @@ -1,128 +1,128 @@ -.. include:: ../../disclaimer-zh_TW.rst - -:Original: Documentation/arch/openrisc/openrisc_port.rst - -:翻譯: - - 司延騰 Yanteng Si - -.. _tw_openrisc_port: - -============== -OpenRISC Linux -============== - -這是Linux對OpenRISC類微處理器的移植;具體來說,最早移植目標是32位 -OpenRISC 1000系列(或1k)。 - -關於OpenRISC處理器和正在進行中的開發的信息: - - ======= ============================= - 網站 https://openrisc.io - 郵箱 openrisc@lists.librecores.org - ======= ============================= - ---------------------------------------------------------------------- - -OpenRISC工具鏈和Linux的構建指南 -=============================== - -爲了構建和運行Linux for OpenRISC,你至少需要一個基本的工具鏈,或許 -還需要架構模擬器。 這裏概述了準備就位這些部分的步驟。 - -1) 工具鏈 - -工具鏈二進制文件可以從openrisc.io或我們的github發佈頁面獲得。不同 -工具鏈的構建指南可以在openrisc.io或Stafford的工具鏈構建和發佈腳本 -中找到。 - - ====== ================================================= - 二進制 https://github.com/openrisc/or1k-gcc/releases - 工具鏈 https://openrisc.io/software - 構建 https://github.com/stffrdhrn/or1k-toolchain-build - ====== ================================================= - -2) 構建 - -像往常一樣構建Linux內核:: - - make ARCH=openrisc CROSS_COMPILE="or1k-linux-" defconfig - make ARCH=openrisc CROSS_COMPILE="or1k-linux-" - -3) 在FPGA上運行(可選) - -OpenRISC社區通常使用FuseSoC來管理構建和編程SoC到FPGA中。 下面是用 -OpenRISC SoC對De0 Nano開發板進行編程的一個例子。 在構建過程中, -FPGA RTL是從FuseSoC IP核庫中下載的代碼,並使用FPGA供應商工具構建。 -二進制文件用openocd加載到電路板上。 - -:: - - git clone https://github.com/olofk/fusesoc - cd fusesoc - sudo pip install -e . - - fusesoc init - fusesoc build de0_nano - fusesoc pgm de0_nano - - openocd -f interface/altera-usb-blaster.cfg \ - -f board/or1k_generic.cfg - - telnet localhost 4444 - > init - > halt; load_image vmlinux ; reset - -4) 在模擬器上運行(可選) - -QEMU是一個處理器仿真器,我們推薦它來模擬OpenRISC平臺。 請按照QEMU網 -站上的OpenRISC說明,讓Linux在QEMU上運行。 你可以自己構建QEMU,但你的 -Linux發行版可能提供了支持OpenRISC的二進制包。 - - ============= ====================================================== - qemu openrisc https://wiki.qemu.org/Documentation/Platforms/OpenRISC - ============= ====================================================== - ---------------------------------------------------------------------- - -術語表 -====== - -代碼中使用了以下符號約定以將範圍限制在幾個特定處理器實現上: - -========= ======================= -openrisc: OpenRISC類型處理器 -or1k: OpenRISC 1000系列處理器 -or1200: OpenRISC 1200處理器 -========= ======================= - ---------------------------------------------------------------------- - -歷史 -==== - -2003-11-18 Matjaz Breskvar (phoenix@bsemi.com) - 將linux初步移植到OpenRISC或32架構。 - 所有的核心功能都實現了,並且可以使用。 - -2003-12-08 Matjaz Breskvar (phoenix@bsemi.com) - 徹底改變TLB失誤處理。 - 重寫異常處理。 - 在默認的initrd中實現了sash-3.6的所有功能。 - 大幅改進的版本。 - -2004-04-10 Matjaz Breskvar (phoenix@bsemi.com) - 大量的bug修復。 - 支持以太網,http和telnet服務器功能。 - 可以運行許多標準的linux應用程序。 - -2004-06-26 Matjaz Breskvar (phoenix@bsemi.com) - 移植到2.6.x。 - -2004-11-30 Matjaz Breskvar (phoenix@bsemi.com) - 大量的bug修復和增強功能。 - 增加了opencores framebuffer驅動。 - -2010-10-09 Jonas Bonn (jonas@southpole.se) - 重大重寫,使其與上游的Linux 2.6.36看齊。 - +.. include:: ../../disclaimer-zh_TW.rst + +:Original: Documentation/arch/openrisc/openrisc_port.rst + +:翻譯: + + 司延騰 Yanteng Si + +.. _tw_openrisc_port: + +============== +OpenRISC Linux +============== + +這是Linux對OpenRISC類微處理器的移植;具體來說,最早移植目標是32位 +OpenRISC 1000系列(或1k)。 + +關於OpenRISC處理器和正在進行中的開發的信息: + + ======= ============================= + 網站 https://openrisc.io + 郵箱 openrisc@lists.librecores.org + ======= ============================= + +--------------------------------------------------------------------- + +OpenRISC工具鏈和Linux的構建指南 +=============================== + +爲了構建和運行Linux for OpenRISC,你至少需要一個基本的工具鏈,或許 +還需要架構模擬器。 這裏概述了準備就位這些部分的步驟。 + +1) 工具鏈 + +工具鏈二進制文件可以從openrisc.io或我們的github發佈頁面獲得。不同 +工具鏈的構建指南可以在openrisc.io或Stafford的工具鏈構建和發佈腳本 +中找到。 + + ====== ================================================= + 二進制 https://github.com/openrisc/or1k-gcc/releases + 工具鏈 https://openrisc.io/software + 構建 https://github.com/stffrdhrn/or1k-toolchain-build + ====== ================================================= + +2) 構建 + +像往常一樣構建Linux內核:: + + make ARCH=openrisc CROSS_COMPILE="or1k-linux-" defconfig + make ARCH=openrisc CROSS_COMPILE="or1k-linux-" + +3) 在FPGA上運行(可選) + +OpenRISC社區通常使用FuseSoC來管理構建和編程SoC到FPGA中。 下面是用 +OpenRISC SoC對De0 Nano開發板進行編程的一個例子。 在構建過程中, +FPGA RTL是從FuseSoC IP核庫中下載的代碼,並使用FPGA供應商工具構建。 +二進制文件用openocd加載到電路板上。 + +:: + + git clone https://github.com/olofk/fusesoc + cd fusesoc + sudo pip install -e . + + fusesoc init + fusesoc build de0_nano + fusesoc pgm de0_nano + + openocd -f interface/altera-usb-blaster.cfg \ + -f board/or1k_generic.cfg + + telnet localhost 4444 + > init + > halt; load_image vmlinux ; reset + +4) 在模擬器上運行(可選) + +QEMU是一個處理器仿真器,我們推薦它來模擬OpenRISC平臺。 請按照QEMU網 +站上的OpenRISC說明,讓Linux在QEMU上運行。 你可以自己構建QEMU,但你的 +Linux發行版可能提供了支持OpenRISC的二進制包。 + + ============= ====================================================== + qemu openrisc https://wiki.qemu.org/Documentation/Platforms/OpenRISC + ============= ====================================================== + +--------------------------------------------------------------------- + +術語表 +====== + +代碼中使用了以下符號約定以將範圍限制在幾個特定處理器實現上: + +========= ======================= +openrisc: OpenRISC類型處理器 +or1k: OpenRISC 1000系列處理器 +or1200: OpenRISC 1200處理器 +========= ======================= + +--------------------------------------------------------------------- + +歷史 +==== + +2003-11-18 Matjaz Breskvar (phoenix@bsemi.com) + 將linux初步移植到OpenRISC或32架構。 + 所有的核心功能都實現了,並且可以使用。 + +2003-12-08 Matjaz Breskvar (phoenix@bsemi.com) + 徹底改變TLB失誤處理。 + 重寫異常處理。 + 在默認的initrd中實現了sash-3.6的所有功能。 + 大幅改進的版本。 + +2004-04-10 Matjaz Breskvar (phoenix@bsemi.com) + 大量的bug修復。 + 支持以太網,http和telnet服務器功能。 + 可以運行許多標準的linux應用程序。 + +2004-06-26 Matjaz Breskvar (phoenix@bsemi.com) + 移植到2.6.x。 + +2004-11-30 Matjaz Breskvar (phoenix@bsemi.com) + 大量的bug修復和增強功能。 + 增加了opencores framebuffer驅動。 + +2010-10-09 Jonas Bonn (jonas@southpole.se) + 重大重寫,使其與上游的Linux 2.6.36看齊。 + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/cpu-freq/core.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/cpu-freq/core.rst index a2ee4858d..4f98d1e9f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/cpu-freq/core.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/cpu-freq/core.rst @@ -1,110 +1,110 @@ -.. SPDX-License-Identifier: GPL-2.0 -.. include:: ../disclaimer-zh_TW.rst - -:Original: Documentation/cpu-freq/core.rst - -:翻譯: - - 司延騰 Yanteng Si - -:校譯: - - 唐藝舟 Tang Yizhou - -==================================== -CPUFreq核心和CPUFreq通知器的通用說明 -==================================== - -作者: - - Dominik Brodowski - - David Kimdon - - Rafael J. Wysocki - - Viresh Kumar - -.. 目錄: - - 1. CPUFreq核心和接口 - 2. CPUFreq通知器 - 3. 含有Operating Performance Point (OPP)的CPUFreq表的生成 - -1. CPUFreq核心和接口 -====================== - -cpufreq核心代碼位於drivers/cpufreq/cpufreq.c中。這些cpufreq代碼爲CPUFreq架構的驅 -動程序(那些執行硬件頻率切換的代碼)以及 "通知器" 提供了一個標準化的接口。 -包括設備驅動程序;需要了解策略變化(如 ACPI 熱量管理),或所有頻率變化(如計時代碼), -甚至需要強制限制爲指定頻率(如 ARM 架構上的 LCD 驅動程序)的其它內核組件。 -此外,內核 "常數" loops_per_jiffy 會根據頻率變化而更新。 - -cpufreq策略的引用計數由 cpufreq_cpu_get 和 cpufreq_cpu_put 來完成,以確保 cpufreq 驅 -動程序被正確地註冊到核心中,並且驅動程序在 cpufreq_put_cpu 被調用之前不會被卸載。這也保證 -了每個CPU核的cpufreq 策略在使用期間不會被釋放。 - -2. CPUFreq 通知器 -==================== - -CPUFreq通知器遵循標準的內核通知器接口。 -關於通知器的細節請參閱 linux/include/linux/notifier.h。 - -這裏有兩個不同的CPUfreq通知器 - 策略通知器和轉換通知器。 - - -2.1 CPUFreq策略通知器 ----------------------------- - -當創建或移除策略時,這些都會被通知。 - -階段是在通知器的第二個參數中指定的。當第一次創建策略時,階段是CPUFREQ_CREATE_POLICY,當 -策略被移除時,階段是CPUFREQ_REMOVE_POLICY。 - -第三個參數 ``void *pointer`` 指向一個結構體cpufreq_policy,其包括min,max(新策略的下限和 -上限(單位爲kHz))這幾個值。 - - -2.2 CPUFreq轉換通知器 --------------------------------- - -當CPUfreq驅動切換CPU核心頻率時,策略中的每個在線CPU都會收到兩次通知,這些變化沒有任何外部幹 -預。 - -第二個參數指定階段 - CPUFREQ_PRECHANGE or CPUFREQ_POSTCHANGE. - -第三個參數是一個包含如下值的結構體cpufreq_freqs: - -====== =============================== -policy 指向struct cpufreq_policy的指針 -old 舊頻率 -new 新頻率 -flags cpufreq驅動的標誌 -====== =============================== - -3. 含有Operating Performance Point (OPP)的CPUFreq表的生成 -================================================================== -關於OPP的細節請參閱 Documentation/power/opp.rst - -dev_pm_opp_init_cpufreq_table - - 這個函數提供了一個隨時可用的轉換例程,用來將OPP層關於可用頻率的內部信息翻譯成一種 - cpufreq易於處理的格式。 - - .. Warning:: - - 不要在中斷上下文中使用此函數。 - - 例如:: - - soc_pm_init() - { - /* Do things */ - r = dev_pm_opp_init_cpufreq_table(dev, &freq_table); - if (!r) - policy->freq_table = freq_table; - /* Do other things */ - } - - .. note:: - - 該函數只有在CONFIG_PM_OPP之外還啓用了CONFIG_CPU_FREQ時纔可用。 - -dev_pm_opp_free_cpufreq_table - 釋放dev_pm_opp_init_cpufreq_table分配的表。 - +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../disclaimer-zh_TW.rst + +:Original: Documentation/cpu-freq/core.rst + +:翻譯: + + 司延騰 Yanteng Si + +:校譯: + + 唐藝舟 Tang Yizhou + +==================================== +CPUFreq核心和CPUFreq通知器的通用說明 +==================================== + +作者: + - Dominik Brodowski + - David Kimdon + - Rafael J. Wysocki + - Viresh Kumar + +.. 目錄: + + 1. CPUFreq核心和接口 + 2. CPUFreq通知器 + 3. 含有Operating Performance Point (OPP)的CPUFreq表的生成 + +1. CPUFreq核心和接口 +====================== + +cpufreq核心代碼位於drivers/cpufreq/cpufreq.c中。這些cpufreq代碼爲CPUFreq架構的驅 +動程序(那些執行硬件頻率切換的代碼)以及 "通知器" 提供了一個標準化的接口。 +包括設備驅動程序;需要了解策略變化(如 ACPI 熱量管理),或所有頻率變化(如計時代碼), +甚至需要強制限制爲指定頻率(如 ARM 架構上的 LCD 驅動程序)的其它內核組件。 +此外,內核 "常數" loops_per_jiffy 會根據頻率變化而更新。 + +cpufreq策略的引用計數由 cpufreq_cpu_get 和 cpufreq_cpu_put 來完成,以確保 cpufreq 驅 +動程序被正確地註冊到核心中,並且驅動程序在 cpufreq_put_cpu 被調用之前不會被卸載。這也保證 +了每個CPU核的cpufreq 策略在使用期間不會被釋放。 + +2. CPUFreq 通知器 +==================== + +CPUFreq通知器遵循標準的內核通知器接口。 +關於通知器的細節請參閱 linux/include/linux/notifier.h。 + +這裏有兩個不同的CPUfreq通知器 - 策略通知器和轉換通知器。 + + +2.1 CPUFreq策略通知器 +---------------------------- + +當創建或移除策略時,這些都會被通知。 + +階段是在通知器的第二個參數中指定的。當第一次創建策略時,階段是CPUFREQ_CREATE_POLICY,當 +策略被移除時,階段是CPUFREQ_REMOVE_POLICY。 + +第三個參數 ``void *pointer`` 指向一個結構體cpufreq_policy,其包括min,max(新策略的下限和 +上限(單位爲kHz))這幾個值。 + + +2.2 CPUFreq轉換通知器 +-------------------------------- + +當CPUfreq驅動切換CPU核心頻率時,策略中的每個在線CPU都會收到兩次通知,這些變化沒有任何外部幹 +預。 + +第二個參數指定階段 - CPUFREQ_PRECHANGE or CPUFREQ_POSTCHANGE. + +第三個參數是一個包含如下值的結構體cpufreq_freqs: + +====== =============================== +policy 指向struct cpufreq_policy的指針 +old 舊頻率 +new 新頻率 +flags cpufreq驅動的標誌 +====== =============================== + +3. 含有Operating Performance Point (OPP)的CPUFreq表的生成 +================================================================== +關於OPP的細節請參閱 Documentation/power/opp.rst + +dev_pm_opp_init_cpufreq_table - + 這個函數提供了一個隨時可用的轉換例程,用來將OPP層關於可用頻率的內部信息翻譯成一種 + cpufreq易於處理的格式。 + + .. Warning:: + + 不要在中斷上下文中使用此函數。 + + 例如:: + + soc_pm_init() + { + /* Do things */ + r = dev_pm_opp_init_cpufreq_table(dev, &freq_table); + if (!r) + policy->freq_table = freq_table; + /* Do other things */ + } + + .. note:: + + 該函數只有在CONFIG_PM_OPP之外還啓用了CONFIG_CPU_FREQ時纔可用。 + +dev_pm_opp_free_cpufreq_table + 釋放dev_pm_opp_init_cpufreq_table分配的表。 + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/dev-tools/sparse.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/dev-tools/sparse.rst index fca1bb15a..55f0ad2c0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/dev-tools/sparse.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/dev-tools/sparse.rst @@ -1,91 +1,91 @@ -Chinese translated version of Documentation/dev-tools/sparse.rst - -If you have any comment or update to the content, please contact the -original document maintainer directly. However, if you have a problem -communicating in English you can also ask the Chinese maintainer for -help. Contact the Chinese maintainer if this translation is outdated -or if there is a problem with the translation. - -Traditional Chinese maintainer: Hu Haowen <2023002089@link.tyut.edu.cn> -------------------------------------------------------------------------- -Documentation/dev-tools/sparse.rst 的繁體中文翻譯 - -如果想評論或更新本文的內容,請直接聯繫原文檔的維護者。如果你使用英文 -交流有困難的話,也可以向繁體中文版維護者求助。如果本翻譯更新不及時或 -者翻譯存在問題,請聯繫繁體中文版維護者。 - -繁體中文版維護者: 胡皓文 Hu Haowen <2023002089@link.tyut.edu.cn> -繁體中文版翻譯者: 胡皓文 Hu Haowen <2023002089@link.tyut.edu.cn> - -以下爲正文 -------------------------------------------------------------------------- - -Copyright 2004 Linus Torvalds -Copyright 2004 Pavel Machek -Copyright 2006 Bob Copeland - -使用 sparse 工具做類型檢查 -~~~~~~~~~~~~~~~~~~~~~~~~~~ - -"__bitwise" 是一種類型屬性,所以你應該這樣使用它:: - - typedef int __bitwise pm_request_t; - - enum pm_request { - PM_SUSPEND = (__force pm_request_t) 1, - PM_RESUME = (__force pm_request_t) 2 - }; - -這樣會使 PM_SUSPEND 和 PM_RESUME 成爲位方式(bitwise)整數(使用"__force" -是因爲 sparse 會抱怨改變位方式的類型轉換,但是這裡我們確實需要強制進行轉 -換)。而且因爲所有枚舉值都使用了相同的類型,這裡的"enum pm_request"也將 -會使用那個類型做爲底層實現。 - -而且使用 gcc 編譯的時候,所有的 __bitwise/__force 都會消失,最後在 gcc -看來它們只不過是普通的整數。 - -坦白來說,你並不需要使用枚舉類型。上面那些實際都可以濃縮成一個特殊的"int -__bitwise"類型。 - -所以更簡單的辦法只要這樣做:: - - typedef int __bitwise pm_request_t; - - #define PM_SUSPEND ((__force pm_request_t) 1) - #define PM_RESUME ((__force pm_request_t) 2) - -現在你就有了嚴格的類型檢查所需要的所有基礎架構。 - -一個小提醒:常數整數"0"是特殊的。你可以直接把常數零當作位方式整數使用而 -不用擔心 sparse 會抱怨。這是因爲"bitwise"(恰如其名)是用來確保不同位方 -式類型不會被弄混(小尾模式,大尾模式,cpu尾模式,或者其他),對他們來說 -常數"0"確實是特殊的。 - -獲取 sparse 工具 -~~~~~~~~~~~~~~~~ - -你可以從 Sparse 的主頁獲取最新的發布版本: - - https://www.kernel.org/pub/software/devel/sparse/dist/ - -或者,你也可以使用 git 克隆最新的 sparse 開發版本: - - git://git.kernel.org/pub/scm/devel/sparse/sparse.git - -一旦你下載了源碼,只要以普通用戶身份運行: - - make - make install - -它將會被自動安裝到你的 ~/bin 目錄下。 - -使用 sparse 工具 -~~~~~~~~~~~~~~~~ - -用"make C=1"命令來編譯內核,會對所有重新編譯的 C 文件使用 sparse 工具。 -或者使用"make C=2"命令,無論文件是否被重新編譯都會對其使用 sparse 工具。 -如果你已經編譯了內核,用後一種方式可以很快地檢查整個源碼樹。 - -make 的可選變量 CHECKFLAGS 可以用來向 sparse 工具傳遞參數。編譯系統會自 -動向 sparse 工具傳遞 -Wbitwise 參數。 - +Chinese translated version of Documentation/dev-tools/sparse.rst + +If you have any comment or update to the content, please contact the +original document maintainer directly. However, if you have a problem +communicating in English you can also ask the Chinese maintainer for +help. Contact the Chinese maintainer if this translation is outdated +or if there is a problem with the translation. + +Traditional Chinese maintainer: Hu Haowen <2023002089@link.tyut.edu.cn> +------------------------------------------------------------------------- +Documentation/dev-tools/sparse.rst 的繁體中文翻譯 + +如果想評論或更新本文的內容,請直接聯繫原文檔的維護者。如果你使用英文 +交流有困難的話,也可以向繁體中文版維護者求助。如果本翻譯更新不及時或 +者翻譯存在問題,請聯繫繁體中文版維護者。 + +繁體中文版維護者: 胡皓文 Hu Haowen <2023002089@link.tyut.edu.cn> +繁體中文版翻譯者: 胡皓文 Hu Haowen <2023002089@link.tyut.edu.cn> + +以下爲正文 +------------------------------------------------------------------------- + +Copyright 2004 Linus Torvalds +Copyright 2004 Pavel Machek +Copyright 2006 Bob Copeland + +使用 sparse 工具做類型檢查 +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +"__bitwise" 是一種類型屬性,所以你應該這樣使用它:: + + typedef int __bitwise pm_request_t; + + enum pm_request { + PM_SUSPEND = (__force pm_request_t) 1, + PM_RESUME = (__force pm_request_t) 2 + }; + +這樣會使 PM_SUSPEND 和 PM_RESUME 成爲位方式(bitwise)整數(使用"__force" +是因爲 sparse 會抱怨改變位方式的類型轉換,但是這裡我們確實需要強制進行轉 +換)。而且因爲所有枚舉值都使用了相同的類型,這裡的"enum pm_request"也將 +會使用那個類型做爲底層實現。 + +而且使用 gcc 編譯的時候,所有的 __bitwise/__force 都會消失,最後在 gcc +看來它們只不過是普通的整數。 + +坦白來說,你並不需要使用枚舉類型。上面那些實際都可以濃縮成一個特殊的"int +__bitwise"類型。 + +所以更簡單的辦法只要這樣做:: + + typedef int __bitwise pm_request_t; + + #define PM_SUSPEND ((__force pm_request_t) 1) + #define PM_RESUME ((__force pm_request_t) 2) + +現在你就有了嚴格的類型檢查所需要的所有基礎架構。 + +一個小提醒:常數整數"0"是特殊的。你可以直接把常數零當作位方式整數使用而 +不用擔心 sparse 會抱怨。這是因爲"bitwise"(恰如其名)是用來確保不同位方 +式類型不會被弄混(小尾模式,大尾模式,cpu尾模式,或者其他),對他們來說 +常數"0"確實是特殊的。 + +獲取 sparse 工具 +~~~~~~~~~~~~~~~~ + +你可以從 Sparse 的主頁獲取最新的發布版本: + + https://www.kernel.org/pub/software/devel/sparse/dist/ + +或者,你也可以使用 git 克隆最新的 sparse 開發版本: + + git://git.kernel.org/pub/scm/devel/sparse/sparse.git + +一旦你下載了源碼,只要以普通用戶身份運行: + + make + make install + +它將會被自動安裝到你的 ~/bin 目錄下。 + +使用 sparse 工具 +~~~~~~~~~~~~~~~~ + +用"make C=1"命令來編譯內核,會對所有重新編譯的 C 文件使用 sparse 工具。 +或者使用"make C=2"命令,無論文件是否被重新編譯都會對其使用 sparse 工具。 +如果你已經編譯了內核,用後一種方式可以很快地檢查整個源碼樹。 + +make 的可選變量 CHECKFLAGS 可以用來向 sparse 工具傳遞參數。編譯系統會自 +動向 sparse 工具傳遞 -Wbitwise 參數。 + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/process/kernel-driver-statement.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/process/kernel-driver-statement.rst index 4be1478eb..23d5cae96 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/process/kernel-driver-statement.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/process/kernel-driver-statement.rst @@ -1,203 +1,203 @@ -.. SPDX-License-Identifier: GPL-2.0 - -.. _tw_process_statement_driver: - -.. include:: ../disclaimer-zh_TW.rst - -:Original: :ref:`Documentation/process/kernel-driver-statement.rst ` -:Translator: Alex Shi - Hu Haowen <2023002089@link.tyut.edu.cn> - -內核驅動聲明 ------------- - -關於Linux內核模塊的立場聲明 -=========================== - -我們,以下署名的Linux內核開發人員,認爲任何封閉源Linux內核模塊或驅動程序都是 -有害的和不可取的。我們已經一再發現它們對Linux用戶,企業和更大的Linux生態系統 -有害。這樣的模塊否定了Linux開發模型的開放性,穩定性,靈活性和可維護性,並使 -他們的用戶無法使用Linux社區的專業知識。提供閉源內核模塊的供應商迫使其客戶 -放棄Linux的主要優勢或選擇新的供應商。因此,爲了充分利用開源所提供的成本節省和 -共享支持優勢,我們敦促供應商採取措施,以開源內核代碼在Linux上爲其客戶提供支持。 - -我們只爲自己說話,而不是我們今天可能會爲之工作,過去或將來會爲之工作的任何公司。 - - - Dave Airlie - - Nick Andrew - - Jens Axboe - - Ralf Baechle - - Felipe Balbi - - Ohad Ben-Cohen - - Muli Ben-Yehuda - - Jiri Benc - - Arnd Bergmann - - Thomas Bogendoerfer - - Vitaly Bordug - - James Bottomley - - Josh Boyer - - Neil Brown - - Mark Brown - - David Brownell - - Michael Buesch - - Franck Bui-Huu - - Adrian Bunk - - François Cami - - Ralph Campbell - - Luiz Fernando N. Capitulino - - Mauro Carvalho Chehab - - Denis Cheng - - Jonathan Corbet - - Glauber Costa - - Alan Cox - - Magnus Damm - - Ahmed S. Darwish - - Robert P. J. Day - - Hans de Goede - - Arnaldo Carvalho de Melo - - Helge Deller - - Jean Delvare - - Mathieu Desnoyers - - Sven-Thorsten Dietrich - - Alexey Dobriyan - - Daniel Drake - - Alex Dubov - - Randy Dunlap - - Michael Ellerman - - Pekka Enberg - - Jan Engelhardt - - Mark Fasheh - - J. Bruce Fields - - Larry Finger - - Jeremy Fitzhardinge - - Mike Frysinger - - Kumar Gala - - Robin Getz - - Liam Girdwood - - Jan-Benedict Glaw - - Thomas Gleixner - - Brice Goglin - - Cyrill Gorcunov - - Andy Gospodarek - - Thomas Graf - - Krzysztof Halasa - - Harvey Harrison - - Stephen Hemminger - - Michael Hennerich - - Tejun Heo - - Benjamin Herrenschmidt - - Kristian Høgsberg - - Henrique de Moraes Holschuh - - Marcel Holtmann - - Mike Isely - - Takashi Iwai - - Olof Johansson - - Dave Jones - - Jesper Juhl - - Matthias Kaehlcke - - Kenji Kaneshige - - Jan Kara - - Jeremy Kerr - - Russell King - - Olaf Kirch - - Roel Kluin - - Hans-Jürgen Koch - - Auke Kok - - Peter Korsgaard - - Jiri Kosina - - Aaro Koskinen - - Mariusz Kozlowski - - Greg Kroah-Hartman - - Michael Krufky - - Aneesh Kumar - - Clemens Ladisch - - Christoph Lameter - - Gunnar Larisch - - Anders Larsen - - Grant Likely - - John W. Linville - - Yinghai Lu - - Tony Luck - - Pavel Machek - - Matt Mackall - - Paul Mackerras - - Roland McGrath - - Patrick McHardy - - Kyle McMartin - - Paul Menage - - Thierry Merle - - Eric Miao - - Akinobu Mita - - Ingo Molnar - - James Morris - - Andrew Morton - - Paul Mundt - - Oleg Nesterov - - Luca Olivetti - - S.Çağlar Onur - - Pierre Ossman - - Keith Owens - - Venkatesh Pallipadi - - Nick Piggin - - Nicolas Pitre - - Evgeniy Polyakov - - Richard Purdie - - Mike Rapoport - - Sam Ravnborg - - Gerrit Renker - - Stefan Richter - - David Rientjes - - Luis R. Rodriguez - - Stefan Roese - - Francois Romieu - - Rami Rosen - - Stephen Rothwell - - Maciej W. Rozycki - - Mark Salyzyn - - Yoshinori Sato - - Deepak Saxena - - Holger Schurig - - Amit Shah - - Yoshihiro Shimoda - - Sergei Shtylyov - - Kay Sievers - - Sebastian Siewior - - Rik Snel - - Jes Sorensen - - Alexey Starikovskiy - - Alan Stern - - Timur Tabi - - Hirokazu Takata - - Eliezer Tamir - - Eugene Teo - - Doug Thompson - - FUJITA Tomonori - - Dmitry Torokhov - - Marcelo Tosatti - - Steven Toth - - Theodore Tso - - Matthias Urlichs - - Geert Uytterhoeven - - Arjan van de Ven - - Ivo van Doorn - - Rik van Riel - - Wim Van Sebroeck - - Hans Verkuil - - Horst H. von Brand - - Dmitri Vorobiev - - Anton Vorontsov - - Daniel Walker - - Johannes Weiner - - Harald Welte - - Matthew Wilcox - - Dan J. Williams - - Darrick J. Wong - - David Woodhouse - - Chris Wright - - Bryan Wu - - Rafael J. Wysocki - - Herbert Xu - - Vlad Yasevich - - Peter Zijlstra - - Bartlomiej Zolnierkiewicz - +.. SPDX-License-Identifier: GPL-2.0 + +.. _tw_process_statement_driver: + +.. include:: ../disclaimer-zh_TW.rst + +:Original: :ref:`Documentation/process/kernel-driver-statement.rst ` +:Translator: Alex Shi + Hu Haowen <2023002089@link.tyut.edu.cn> + +內核驅動聲明 +------------ + +關於Linux內核模塊的立場聲明 +=========================== + +我們,以下署名的Linux內核開發人員,認爲任何封閉源Linux內核模塊或驅動程序都是 +有害的和不可取的。我們已經一再發現它們對Linux用戶,企業和更大的Linux生態系統 +有害。這樣的模塊否定了Linux開發模型的開放性,穩定性,靈活性和可維護性,並使 +他們的用戶無法使用Linux社區的專業知識。提供閉源內核模塊的供應商迫使其客戶 +放棄Linux的主要優勢或選擇新的供應商。因此,爲了充分利用開源所提供的成本節省和 +共享支持優勢,我們敦促供應商採取措施,以開源內核代碼在Linux上爲其客戶提供支持。 + +我們只爲自己說話,而不是我們今天可能會爲之工作,過去或將來會爲之工作的任何公司。 + + - Dave Airlie + - Nick Andrew + - Jens Axboe + - Ralf Baechle + - Felipe Balbi + - Ohad Ben-Cohen + - Muli Ben-Yehuda + - Jiri Benc + - Arnd Bergmann + - Thomas Bogendoerfer + - Vitaly Bordug + - James Bottomley + - Josh Boyer + - Neil Brown + - Mark Brown + - David Brownell + - Michael Buesch + - Franck Bui-Huu + - Adrian Bunk + - François Cami + - Ralph Campbell + - Luiz Fernando N. Capitulino + - Mauro Carvalho Chehab + - Denis Cheng + - Jonathan Corbet + - Glauber Costa + - Alan Cox + - Magnus Damm + - Ahmed S. Darwish + - Robert P. J. Day + - Hans de Goede + - Arnaldo Carvalho de Melo + - Helge Deller + - Jean Delvare + - Mathieu Desnoyers + - Sven-Thorsten Dietrich + - Alexey Dobriyan + - Daniel Drake + - Alex Dubov + - Randy Dunlap + - Michael Ellerman + - Pekka Enberg + - Jan Engelhardt + - Mark Fasheh + - J. Bruce Fields + - Larry Finger + - Jeremy Fitzhardinge + - Mike Frysinger + - Kumar Gala + - Robin Getz + - Liam Girdwood + - Jan-Benedict Glaw + - Thomas Gleixner + - Brice Goglin + - Cyrill Gorcunov + - Andy Gospodarek + - Thomas Graf + - Krzysztof Halasa + - Harvey Harrison + - Stephen Hemminger + - Michael Hennerich + - Tejun Heo + - Benjamin Herrenschmidt + - Kristian Høgsberg + - Henrique de Moraes Holschuh + - Marcel Holtmann + - Mike Isely + - Takashi Iwai + - Olof Johansson + - Dave Jones + - Jesper Juhl + - Matthias Kaehlcke + - Kenji Kaneshige + - Jan Kara + - Jeremy Kerr + - Russell King + - Olaf Kirch + - Roel Kluin + - Hans-Jürgen Koch + - Auke Kok + - Peter Korsgaard + - Jiri Kosina + - Aaro Koskinen + - Mariusz Kozlowski + - Greg Kroah-Hartman + - Michael Krufky + - Aneesh Kumar + - Clemens Ladisch + - Christoph Lameter + - Gunnar Larisch + - Anders Larsen + - Grant Likely + - John W. Linville + - Yinghai Lu + - Tony Luck + - Pavel Machek + - Matt Mackall + - Paul Mackerras + - Roland McGrath + - Patrick McHardy + - Kyle McMartin + - Paul Menage + - Thierry Merle + - Eric Miao + - Akinobu Mita + - Ingo Molnar + - James Morris + - Andrew Morton + - Paul Mundt + - Oleg Nesterov + - Luca Olivetti + - S.Çağlar Onur + - Pierre Ossman + - Keith Owens + - Venkatesh Pallipadi + - Nick Piggin + - Nicolas Pitre + - Evgeniy Polyakov + - Richard Purdie + - Mike Rapoport + - Sam Ravnborg + - Gerrit Renker + - Stefan Richter + - David Rientjes + - Luis R. Rodriguez + - Stefan Roese + - Francois Romieu + - Rami Rosen + - Stephen Rothwell + - Maciej W. Rozycki + - Mark Salyzyn + - Yoshinori Sato + - Deepak Saxena + - Holger Schurig + - Amit Shah + - Yoshihiro Shimoda + - Sergei Shtylyov + - Kay Sievers + - Sebastian Siewior + - Rik Snel + - Jes Sorensen + - Alexey Starikovskiy + - Alan Stern + - Timur Tabi + - Hirokazu Takata + - Eliezer Tamir + - Eugene Teo + - Doug Thompson + - FUJITA Tomonori + - Dmitry Torokhov + - Marcelo Tosatti + - Steven Toth + - Theodore Tso + - Matthias Urlichs + - Geert Uytterhoeven + - Arjan van de Ven + - Ivo van Doorn + - Rik van Riel + - Wim Van Sebroeck + - Hans Verkuil + - Horst H. von Brand + - Dmitri Vorobiev + - Anton Vorontsov + - Daniel Walker + - Johannes Weiner + - Harald Welte + - Matthew Wilcox + - Dan J. Williams + - Darrick J. Wong + - David Woodhouse + - Chris Wright + - Bryan Wu + - Rafael J. Wysocki + - Herbert Xu + - Vlad Yasevich + - Peter Zijlstra + - Bartlomiej Zolnierkiewicz + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/process/magic-number.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/process/magic-number.rst index ead16c918..5582df6d7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/process/magic-number.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/process/magic-number.rst @@ -1,76 +1,76 @@ -.. SPDX-License-Identifier: GPL-2.0 - -.. _tw_magicnumbers: - -.. include:: ../disclaimer-zh_TW.rst - -:Original: :ref:`Documentation/staging/magic-number.rst ` - -如果想評論或更新本文的內容,請直接發信到LKML。如果你使用英文交流有困難的話,也可 -以向中文版維護者求助。如果本翻譯更新不及時或者翻譯存在問題,請聯繫中文版維護者:: - - 中文版維護者: 賈威威 Jia Wei Wei - 中文版翻譯者: 賈威威 Jia Wei Wei - 中文版校譯者: 賈威威 Jia Wei Wei - 胡皓文 Hu Haowen <2023002089@link.tyut.edu.cn> - -Linux 魔術數 -============ - -這個文件是有關當前使用的魔術值註冊表。當你給一個結構添加了一個魔術值,你也應該把這個魔術值添加到這個文件,因爲我們最好把用於各種結構的魔術值統一起來。 - -使用魔術值來保護內核數據結構是一個非常好的主意。這就允許你在運行期檢查(a)一個結構是否已經被攻擊,或者(b)你已經給一個例行程序通過了一個錯誤的結構。後一種情況特別地有用---特別是當你通過一個空指針指向結構體的時候。tty源碼,例如,經常通過特定驅動使用這種方法並且反覆地排列特定方面的結構。 - -使用魔術值的方法是在結構的開始處聲明的,如下:: - - struct tty_ldisc { - int magic; - ... - }; - -當你以後給內核添加增強功能的時候,請遵守這條規則!這樣就會節省數不清的調試時間,特別是一些古怪的情況,例如,數組超出範圍並且重新寫了超出部分。遵守這個規則,這些情況可以被快速地,安全地避免。 - - Theodore Ts'o - 31 Mar 94 - -給當前的Linux 2.1.55添加魔術表。 - - Michael Chastain - - 22 Sep 1997 - -現在應該最新的Linux 2.1.112.因爲在特性凍結期間,不能在2.2.x前改變任何東西。這些條目被數域所排序。 - - Krzysztof G.Baranowski - - 29 Jul 1998 - -更新魔術表到Linux 2.5.45。剛好越過特性凍結,但是有可能還會有一些新的魔術值在2.6.x之前融入到內核中。 - - Petr Baudis - - 03 Nov 2002 - -更新魔術表到Linux 2.5.74。 - - Fabian Frederick - - 09 Jul 2003 - -===================== ================ ======================== ========================================== -魔術數名 數字 結構 文件 -===================== ================ ======================== ========================================== -PG_MAGIC 'P' pg_{read,write}_hdr ``include/linux/pg.h`` -APM_BIOS_MAGIC 0x4101 apm_user ``arch/x86/kernel/apm_32.c`` -FASYNC_MAGIC 0x4601 fasync_struct ``include/linux/fs.h`` -SLIP_MAGIC 0x5302 slip ``drivers/net/slip.h`` -BAYCOM_MAGIC 0x19730510 baycom_state ``drivers/net/baycom_epp.c`` -HDLCDRV_MAGIC 0x5ac6e778 hdlcdrv_state ``include/linux/hdlcdrv.h`` -KV_MAGIC 0x5f4b565f kernel_vars_s ``arch/mips/include/asm/sn/klkernvars.h`` -CODA_MAGIC 0xC0DAC0DA coda_file_info ``fs/coda/coda_fs_i.h`` -YAM_MAGIC 0xF10A7654 yam_port ``drivers/net/hamradio/yam.c`` -CCB_MAGIC 0xf2691ad2 ccb ``drivers/scsi/ncr53c8xx.c`` -QUEUE_MAGIC_FREE 0xf7e1c9a3 queue_entry ``drivers/scsi/arm/queue.c`` -QUEUE_MAGIC_USED 0xf7e1cc33 queue_entry ``drivers/scsi/arm/queue.c`` -NMI_MAGIC 0x48414d4d455201 nmi_s ``arch/mips/include/asm/sn/nmi.h`` -===================== ================ ======================== ========================================== +.. SPDX-License-Identifier: GPL-2.0 + +.. _tw_magicnumbers: + +.. include:: ../disclaimer-zh_TW.rst + +:Original: :ref:`Documentation/staging/magic-number.rst ` + +如果想評論或更新本文的內容,請直接發信到LKML。如果你使用英文交流有困難的話,也可 +以向中文版維護者求助。如果本翻譯更新不及時或者翻譯存在問題,請聯繫中文版維護者:: + + 中文版維護者: 賈威威 Jia Wei Wei + 中文版翻譯者: 賈威威 Jia Wei Wei + 中文版校譯者: 賈威威 Jia Wei Wei + 胡皓文 Hu Haowen <2023002089@link.tyut.edu.cn> + +Linux 魔術數 +============ + +這個文件是有關當前使用的魔術值註冊表。當你給一個結構添加了一個魔術值,你也應該把這個魔術值添加到這個文件,因爲我們最好把用於各種結構的魔術值統一起來。 + +使用魔術值來保護內核數據結構是一個非常好的主意。這就允許你在運行期檢查(a)一個結構是否已經被攻擊,或者(b)你已經給一個例行程序通過了一個錯誤的結構。後一種情況特別地有用---特別是當你通過一個空指針指向結構體的時候。tty源碼,例如,經常通過特定驅動使用這種方法並且反覆地排列特定方面的結構。 + +使用魔術值的方法是在結構的開始處聲明的,如下:: + + struct tty_ldisc { + int magic; + ... + }; + +當你以後給內核添加增強功能的時候,請遵守這條規則!這樣就會節省數不清的調試時間,特別是一些古怪的情況,例如,數組超出範圍並且重新寫了超出部分。遵守這個規則,這些情況可以被快速地,安全地避免。 + + Theodore Ts'o + 31 Mar 94 + +給當前的Linux 2.1.55添加魔術表。 + + Michael Chastain + + 22 Sep 1997 + +現在應該最新的Linux 2.1.112.因爲在特性凍結期間,不能在2.2.x前改變任何東西。這些條目被數域所排序。 + + Krzysztof G.Baranowski + + 29 Jul 1998 + +更新魔術表到Linux 2.5.45。剛好越過特性凍結,但是有可能還會有一些新的魔術值在2.6.x之前融入到內核中。 + + Petr Baudis + + 03 Nov 2002 + +更新魔術表到Linux 2.5.74。 + + Fabian Frederick + + 09 Jul 2003 + +===================== ================ ======================== ========================================== +魔術數名 數字 結構 文件 +===================== ================ ======================== ========================================== +PG_MAGIC 'P' pg_{read,write}_hdr ``include/linux/pg.h`` +APM_BIOS_MAGIC 0x4101 apm_user ``arch/x86/kernel/apm_32.c`` +FASYNC_MAGIC 0x4601 fasync_struct ``include/linux/fs.h`` +SLIP_MAGIC 0x5302 slip ``drivers/net/slip.h`` +BAYCOM_MAGIC 0x19730510 baycom_state ``drivers/net/baycom_epp.c`` +HDLCDRV_MAGIC 0x5ac6e778 hdlcdrv_state ``include/linux/hdlcdrv.h`` +KV_MAGIC 0x5f4b565f kernel_vars_s ``arch/mips/include/asm/sn/klkernvars.h`` +CODA_MAGIC 0xC0DAC0DA coda_file_info ``fs/coda/coda_fs_i.h`` +YAM_MAGIC 0xF10A7654 yam_port ``drivers/net/hamradio/yam.c`` +CCB_MAGIC 0xf2691ad2 ccb ``drivers/scsi/ncr53c8xx.c`` +QUEUE_MAGIC_FREE 0xf7e1c9a3 queue_entry ``drivers/scsi/arm/queue.c`` +QUEUE_MAGIC_USED 0xf7e1cc33 queue_entry ``drivers/scsi/arm/queue.c`` +NMI_MAGIC 0x48414d4d455201 nmi_s ``arch/mips/include/asm/sn/nmi.h`` +===================== ================ ======================== ========================================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/process/stable-kernel-rules.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/process/stable-kernel-rules.rst index eaf5ffaf1..2f8f064f8 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/process/stable-kernel-rules.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/translations/zh_TW/process/stable-kernel-rules.rst @@ -1,68 +1,68 @@ -.. SPDX-License-Identifier: GPL-2.0 - -.. _tw_stable_kernel_rules: - -.. include:: ../disclaimer-zh_TW.rst - -:Original: :ref:`Documentation/process/stable-kernel-rules.rst ` - -如果想評論或更新本文的內容,請直接聯繫原文檔的維護者。如果你使用英文 -交流有困難的話,也可以向中文版維護者求助。如果本翻譯更新不及時或者翻 -譯存在問題,請聯繫中文版維護者:: - - 中文版維護者: 鍾宇 TripleX Chung - 中文版翻譯者: 鍾宇 TripleX Chung - 中文版校譯者: - - 李陽 Li Yang - - Kangkai Yin - - 胡皓文 Hu Haowen <2023002089@link.tyut.edu.cn> - -所有你想知道的事情 - 關於linux穩定版發佈 -======================================== - -關於Linux 2.6穩定版發佈,所有你想知道的事情。 - -關於哪些類型的補丁可以被接收進入穩定版代碼樹,哪些不可以的規則: ----------------------------------------------------------------- - - - 必須是顯而易見的正確,並且經過測試的。 - - 連同上下文,不能大於100行。 - - 必須只修正一件事情。 - - 必須修正了一個給大家帶來麻煩的真正的bug(不是“這也許是一個問題...” - 那樣的東西)。 - - 必須修正帶來如下後果的問題:編譯錯誤(對被標記爲CONFIG_BROKEN的例外), - 內核崩潰,掛起,數據損壞,真正的安全問題,或者一些類似“哦,這不 - 好”的問題。簡短的說,就是一些致命的問題。 - - 沒有“理論上的競爭條件”,除非能給出競爭條件如何被利用的解釋。 - - 不能存在任何的“瑣碎的”修正(拼寫修正,去掉多餘空格之類的)。 - - 必須被相關子系統的維護者接受。 - - 必須遵循Documentation/translations/zh_CN/process/submitting-patches.rst裏的規則。 - -向穩定版代碼樹提交補丁的過程: ------------------------------- - - - 在確認了補丁符合以上的規則後,將補丁發送到stable@vger.kernel.org。 - - 如果補丁被接受到隊列裏,發送者會收到一個ACK回覆,如果沒有被接受,收 - 到的是NAK回覆。回覆需要幾天的時間,這取決於開發者的時間安排。 - - 被接受的補丁會被加到穩定版本隊列裏,等待其他開發者的審查。 - - 安全方面的補丁不要發到這個列表,應該發送到security@kernel.org。 - -審查週期: ----------- - - - 當穩定版的維護者決定開始一個審查週期,補丁將被髮送到審查委員會,以 - 及被補丁影響的領域的維護者(除非提交者就是該領域的維護者)並且抄送 - 到linux-kernel郵件列表。 - - 審查委員會有48小時的時間,用來決定給該補丁回覆ACK還是NAK。 - - 如果委員會中有成員拒絕這個補丁,或者linux-kernel列表上有人反對這個 - 補丁,並提出維護者和審查委員會之前沒有意識到的問題,補丁會從隊列中 - 丟棄。 - - 在審查週期結束的時候,那些得到ACK回應的補丁將會被加入到最新的穩定版 - 發佈中,一個新的穩定版發佈就此產生。 - - 安全性補丁將從內核安全小組那裏直接接收到穩定版代碼樹中,而不是通過 - 通常的審查週期。請聯繫內核安全小組以獲得關於這個過程的更多細節。 - -審查委員會: ------------- - - 由一些自願承擔這項任務的內核開發者,和幾個非志願的組成。 - +.. SPDX-License-Identifier: GPL-2.0 + +.. _tw_stable_kernel_rules: + +.. include:: ../disclaimer-zh_TW.rst + +:Original: :ref:`Documentation/process/stable-kernel-rules.rst ` + +如果想評論或更新本文的內容,請直接聯繫原文檔的維護者。如果你使用英文 +交流有困難的話,也可以向中文版維護者求助。如果本翻譯更新不及時或者翻 +譯存在問題,請聯繫中文版維護者:: + + 中文版維護者: 鍾宇 TripleX Chung + 中文版翻譯者: 鍾宇 TripleX Chung + 中文版校譯者: + - 李陽 Li Yang + - Kangkai Yin + - 胡皓文 Hu Haowen <2023002089@link.tyut.edu.cn> + +所有你想知道的事情 - 關於linux穩定版發佈 +======================================== + +關於Linux 2.6穩定版發佈,所有你想知道的事情。 + +關於哪些類型的補丁可以被接收進入穩定版代碼樹,哪些不可以的規則: +---------------------------------------------------------------- + + - 必須是顯而易見的正確,並且經過測試的。 + - 連同上下文,不能大於100行。 + - 必須只修正一件事情。 + - 必須修正了一個給大家帶來麻煩的真正的bug(不是“這也許是一個問題...” + 那樣的東西)。 + - 必須修正帶來如下後果的問題:編譯錯誤(對被標記爲CONFIG_BROKEN的例外), + 內核崩潰,掛起,數據損壞,真正的安全問題,或者一些類似“哦,這不 + 好”的問題。簡短的說,就是一些致命的問題。 + - 沒有“理論上的競爭條件”,除非能給出競爭條件如何被利用的解釋。 + - 不能存在任何的“瑣碎的”修正(拼寫修正,去掉多餘空格之類的)。 + - 必須被相關子系統的維護者接受。 + - 必須遵循Documentation/translations/zh_CN/process/submitting-patches.rst裏的規則。 + +向穩定版代碼樹提交補丁的過程: +------------------------------ + + - 在確認了補丁符合以上的規則後,將補丁發送到stable@vger.kernel.org。 + - 如果補丁被接受到隊列裏,發送者會收到一個ACK回覆,如果沒有被接受,收 + 到的是NAK回覆。回覆需要幾天的時間,這取決於開發者的時間安排。 + - 被接受的補丁會被加到穩定版本隊列裏,等待其他開發者的審查。 + - 安全方面的補丁不要發到這個列表,應該發送到security@kernel.org。 + +審查週期: +---------- + + - 當穩定版的維護者決定開始一個審查週期,補丁將被髮送到審查委員會,以 + 及被補丁影響的領域的維護者(除非提交者就是該領域的維護者)並且抄送 + 到linux-kernel郵件列表。 + - 審查委員會有48小時的時間,用來決定給該補丁回覆ACK還是NAK。 + - 如果委員會中有成員拒絕這個補丁,或者linux-kernel列表上有人反對這個 + 補丁,並提出維護者和審查委員會之前沒有意識到的問題,補丁會從隊列中 + 丟棄。 + - 在審查週期結束的時候,那些得到ACK回應的補丁將會被加入到最新的穩定版 + 發佈中,一個新的穩定版發佈就此產生。 + - 安全性補丁將從內核安全小組那裏直接接收到穩定版代碼樹中,而不是通過 + 通常的審查週期。請聯繫內核安全小組以獲得關於這個過程的更多細節。 + +審查委員會: +------------ + - 由一些自願承擔這項任務的內核開發者,和幾個非志願的組成。 + diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/usb/authorization.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/usb/authorization.rst index 0fcd2d7b9..150a14970 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/usb/authorization.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/usb/authorization.rst @@ -1,129 +1,129 @@ -============================================================== -Authorizing (or not) your USB devices to connect to the system -============================================================== - -Copyright (C) 2007 Inaky Perez-Gonzalez Intel Corporation - -This feature allows you to control if a USB device can be used (or -not) in a system. This feature will allow you to implement a lock-down -of USB devices, fully controlled by user space. - -As of now, when a USB device is connected it is configured and -its interfaces are immediately made available to the users. With this -modification, only if root authorizes the device to be configured will -then it be possible to use it. - -Usage -===== - -Authorize a device to connect:: - - $ echo 1 > /sys/bus/usb/devices/DEVICE/authorized - -De-authorize a device:: - - $ echo 0 > /sys/bus/usb/devices/DEVICE/authorized - -Set new devices connected to hostX to be deauthorized by default (ie: -lock down):: - - $ echo 0 > /sys/bus/usb/devices/usbX/authorized_default - -Remove the lock down:: - - $ echo 1 > /sys/bus/usb/devices/usbX/authorized_default - -By default, all USB devices are authorized. Writing "2" to the -authorized_default attribute causes the kernel to authorize by default -only devices connected to internal USB ports. - - -Example system lockdown (lame) ------------------------------- - -Imagine you want to implement a lockdown so only devices of type XYZ -can be connected (for example, it is a kiosk machine with a visible -USB port):: - - boot up - rc.local -> - - for host in /sys/bus/usb/devices/usb* - do - echo 0 > $host/authorized_default - done - -Hookup an script to udev, for new USB devices:: - - if device_is_my_type $DEV - then - echo 1 > $device_path/authorized - done - - -Now, device_is_my_type() is where the juice for a lockdown is. Just -checking if the class, type and protocol match something is the worse -security verification you can make (or the best, for someone willing -to break it). If you need something secure, use crypto and Certificate -Authentication or stuff like that. Something simple for an storage key -could be:: - - function device_is_my_type() - { - echo 1 > authorized # temporarily authorize it - # FIXME: make sure none can mount it - mount DEVICENODE /mntpoint - sum=$(md5sum /mntpoint/.signature) - if [ $sum = $(cat /etc/lockdown/keysum) ] - then - echo "We are good, connected" - umount /mntpoint - # Other stuff so others can use it - else - echo 0 > authorized - fi - } - - -Of course, this is lame, you'd want to do a real certificate -verification stuff with PKI, so you don't depend on a shared secret, -etc, but you get the idea. Anybody with access to a device gadget kit -can fake descriptors and device info. Don't trust that. You are -welcome. - - -Interface authorization ------------------------ - -There is a similar approach to allow or deny specific USB interfaces. -That allows to block only a subset of an USB device. - -Authorize an interface:: - - $ echo 1 > /sys/bus/usb/devices/INTERFACE/authorized - -Deauthorize an interface:: - - $ echo 0 > /sys/bus/usb/devices/INTERFACE/authorized - -The default value for new interfaces -on a particular USB bus can be changed, too. - -Allow interfaces per default:: - - $ echo 1 > /sys/bus/usb/devices/usbX/interface_authorized_default - -Deny interfaces per default:: - - $ echo 0 > /sys/bus/usb/devices/usbX/interface_authorized_default - -Per default the interface_authorized_default bit is 1. -So all interfaces would authorized per default. - -Note: - If a deauthorized interface will be authorized so the driver probing must - be triggered manually by writing INTERFACE to /sys/bus/usb/drivers_probe - -For drivers that need multiple interfaces all needed interfaces should be -authorized first. After that the drivers should be probed. -This avoids side effects. +============================================================== +Authorizing (or not) your USB devices to connect to the system +============================================================== + +Copyright (C) 2007 Inaky Perez-Gonzalez Intel Corporation + +This feature allows you to control if a USB device can be used (or +not) in a system. This feature will allow you to implement a lock-down +of USB devices, fully controlled by user space. + +As of now, when a USB device is connected it is configured and +its interfaces are immediately made available to the users. With this +modification, only if root authorizes the device to be configured will +then it be possible to use it. + +Usage +===== + +Authorize a device to connect:: + + $ echo 1 > /sys/bus/usb/devices/DEVICE/authorized + +De-authorize a device:: + + $ echo 0 > /sys/bus/usb/devices/DEVICE/authorized + +Set new devices connected to hostX to be deauthorized by default (ie: +lock down):: + + $ echo 0 > /sys/bus/usb/devices/usbX/authorized_default + +Remove the lock down:: + + $ echo 1 > /sys/bus/usb/devices/usbX/authorized_default + +By default, all USB devices are authorized. Writing "2" to the +authorized_default attribute causes the kernel to authorize by default +only devices connected to internal USB ports. + + +Example system lockdown (lame) +------------------------------ + +Imagine you want to implement a lockdown so only devices of type XYZ +can be connected (for example, it is a kiosk machine with a visible +USB port):: + + boot up + rc.local -> + + for host in /sys/bus/usb/devices/usb* + do + echo 0 > $host/authorized_default + done + +Hookup an script to udev, for new USB devices:: + + if device_is_my_type $DEV + then + echo 1 > $device_path/authorized + done + + +Now, device_is_my_type() is where the juice for a lockdown is. Just +checking if the class, type and protocol match something is the worse +security verification you can make (or the best, for someone willing +to break it). If you need something secure, use crypto and Certificate +Authentication or stuff like that. Something simple for an storage key +could be:: + + function device_is_my_type() + { + echo 1 > authorized # temporarily authorize it + # FIXME: make sure none can mount it + mount DEVICENODE /mntpoint + sum=$(md5sum /mntpoint/.signature) + if [ $sum = $(cat /etc/lockdown/keysum) ] + then + echo "We are good, connected" + umount /mntpoint + # Other stuff so others can use it + else + echo 0 > authorized + fi + } + + +Of course, this is lame, you'd want to do a real certificate +verification stuff with PKI, so you don't depend on a shared secret, +etc, but you get the idea. Anybody with access to a device gadget kit +can fake descriptors and device info. Don't trust that. You are +welcome. + + +Interface authorization +----------------------- + +There is a similar approach to allow or deny specific USB interfaces. +That allows to block only a subset of an USB device. + +Authorize an interface:: + + $ echo 1 > /sys/bus/usb/devices/INTERFACE/authorized + +Deauthorize an interface:: + + $ echo 0 > /sys/bus/usb/devices/INTERFACE/authorized + +The default value for new interfaces +on a particular USB bus can be changed, too. + +Allow interfaces per default:: + + $ echo 1 > /sys/bus/usb/devices/usbX/interface_authorized_default + +Deny interfaces per default:: + + $ echo 0 > /sys/bus/usb/devices/usbX/interface_authorized_default + +Per default the interface_authorized_default bit is 1. +So all interfaces would authorized per default. + +Note: + If a deauthorized interface will be authorized so the driver probing must + be triggered manually by writing INTERFACE to /sys/bus/usb/drivers_probe + +For drivers that need multiple interfaces all needed interfaces should be +authorized first. After that the drivers should be probed. +This avoids side effects. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/usb/chipidea.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/usb/chipidea.rst index cd495c36e..d9920c24e 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/usb/chipidea.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/usb/chipidea.rst @@ -1,134 +1,134 @@ -============================================== -ChipIdea Highspeed Dual Role Controller Driver -============================================== - -1. How to test OTG FSM(HNP and SRP) ------------------------------------ - -To show how to demo OTG HNP and SRP functions via sys input files -with 2 Freescale i.MX6Q sabre SD boards. - -1.1 How to enable OTG FSM -------------------------- - -1.1.1 Select CONFIG_USB_OTG_FSM in menuconfig, rebuild kernel -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -Image and modules. If you want to check some internal -variables for otg fsm, mount debugfs, there are 2 files -which can show otg fsm variables and some controller registers value:: - - cat /sys/kernel/debug/ci_hdrc.0/otg - cat /sys/kernel/debug/ci_hdrc.0/registers - -1.1.2 Add below entries in your dts file for your controller node -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -:: - - otg-rev = <0x0200>; - adp-disable; - -1.2 Test operations -------------------- - -1) Power up 2 Freescale i.MX6Q sabre SD boards with gadget class driver loaded - (e.g. g_mass_storage). - -2) Connect 2 boards with usb cable: one end is micro A plug, the other end - is micro B plug. - - The A-device (with micro A plug inserted) should enumerate B-device. - -3) Role switch - - On B-device:: - - echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req - - B-device should take host role and enumerate A-device. - -4) A-device switch back to host. - - On B-device:: - - echo 0 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req - - or, by introducing HNP polling, B-Host can know when A-peripheral wishes to - be in the host role, so this role switch also can be triggered in - A-peripheral side by answering the polling from B-Host. This can be done on - A-device:: - - echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_req - - A-device should switch back to host and enumerate B-device. - -5) Remove B-device (unplug micro B plug) and insert again in 10 seconds; - A-device should enumerate B-device again. - -6) Remove B-device (unplug micro B plug) and insert again after 10 seconds; - A-device should NOT enumerate B-device. - - if A-device wants to use bus: - - On A-device:: - - echo 0 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_drop - echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_req - - if B-device wants to use bus: - - On B-device:: - - echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req - -7) A-device power down the bus. - - On A-device:: - - echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_drop - - A-device should disconnect with B-device and power down the bus. - -8) B-device does data pulse for SRP. - - On B-device:: - - echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req - - A-device should resume usb bus and enumerate B-device. - -1.3 Reference document ----------------------- -"On-The-Go and Embedded Host Supplement to the USB Revision 2.0 Specification -July 27, 2012 Revision 2.0 version 1.1a" - -2. How to enable USB as system wakeup source --------------------------------------------- -Below is the example for how to enable USB as system wakeup source -on an imx6 platform. - -2.1 Enable core's wakeup:: - - echo enabled > /sys/bus/platform/devices/ci_hdrc.0/power/wakeup - -2.2 Enable glue layer's wakeup:: - - echo enabled > /sys/bus/platform/devices/2184000.usb/power/wakeup - -2.3 Enable PHY's wakeup (optional):: - - echo enabled > /sys/bus/platform/devices/20c9000.usbphy/power/wakeup - -2.4 Enable roothub's wakeup:: - - echo enabled > /sys/bus/usb/devices/usb1/power/wakeup - -2.5 Enable related device's wakeup:: - - echo enabled > /sys/bus/usb/devices/1-1/power/wakeup - -If the system has only one usb port, and you want usb wakeup at this port, you -can use the below script to enable usb wakeup:: - - for i in $(find /sys -name wakeup | grep usb);do echo enabled > $i;done; +============================================== +ChipIdea Highspeed Dual Role Controller Driver +============================================== + +1. How to test OTG FSM(HNP and SRP) +----------------------------------- + +To show how to demo OTG HNP and SRP functions via sys input files +with 2 Freescale i.MX6Q sabre SD boards. + +1.1 How to enable OTG FSM +------------------------- + +1.1.1 Select CONFIG_USB_OTG_FSM in menuconfig, rebuild kernel +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Image and modules. If you want to check some internal +variables for otg fsm, mount debugfs, there are 2 files +which can show otg fsm variables and some controller registers value:: + + cat /sys/kernel/debug/ci_hdrc.0/otg + cat /sys/kernel/debug/ci_hdrc.0/registers + +1.1.2 Add below entries in your dts file for your controller node +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +:: + + otg-rev = <0x0200>; + adp-disable; + +1.2 Test operations +------------------- + +1) Power up 2 Freescale i.MX6Q sabre SD boards with gadget class driver loaded + (e.g. g_mass_storage). + +2) Connect 2 boards with usb cable: one end is micro A plug, the other end + is micro B plug. + + The A-device (with micro A plug inserted) should enumerate B-device. + +3) Role switch + + On B-device:: + + echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req + + B-device should take host role and enumerate A-device. + +4) A-device switch back to host. + + On B-device:: + + echo 0 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req + + or, by introducing HNP polling, B-Host can know when A-peripheral wishes to + be in the host role, so this role switch also can be triggered in + A-peripheral side by answering the polling from B-Host. This can be done on + A-device:: + + echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_req + + A-device should switch back to host and enumerate B-device. + +5) Remove B-device (unplug micro B plug) and insert again in 10 seconds; + A-device should enumerate B-device again. + +6) Remove B-device (unplug micro B plug) and insert again after 10 seconds; + A-device should NOT enumerate B-device. + + if A-device wants to use bus: + + On A-device:: + + echo 0 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_drop + echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_req + + if B-device wants to use bus: + + On B-device:: + + echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req + +7) A-device power down the bus. + + On A-device:: + + echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_drop + + A-device should disconnect with B-device and power down the bus. + +8) B-device does data pulse for SRP. + + On B-device:: + + echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req + + A-device should resume usb bus and enumerate B-device. + +1.3 Reference document +---------------------- +"On-The-Go and Embedded Host Supplement to the USB Revision 2.0 Specification +July 27, 2012 Revision 2.0 version 1.1a" + +2. How to enable USB as system wakeup source +-------------------------------------------- +Below is the example for how to enable USB as system wakeup source +on an imx6 platform. + +2.1 Enable core's wakeup:: + + echo enabled > /sys/bus/platform/devices/ci_hdrc.0/power/wakeup + +2.2 Enable glue layer's wakeup:: + + echo enabled > /sys/bus/platform/devices/2184000.usb/power/wakeup + +2.3 Enable PHY's wakeup (optional):: + + echo enabled > /sys/bus/platform/devices/20c9000.usbphy/power/wakeup + +2.4 Enable roothub's wakeup:: + + echo enabled > /sys/bus/usb/devices/usb1/power/wakeup + +2.5 Enable related device's wakeup:: + + echo enabled > /sys/bus/usb/devices/1-1/power/wakeup + +If the system has only one usb port, and you want usb wakeup at this port, you +can use the below script to enable usb wakeup:: + + for i in $(find /sys -name wakeup | grep usb);do echo enabled > $i;done; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/usb/linux-cdc-acm.inf b/image/debian/UFI003_MB_V02/kernel/Documentation/usb/linux-cdc-acm.inf index e832cfbc8..f0ffc27d4 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/usb/linux-cdc-acm.inf +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/usb/linux-cdc-acm.inf @@ -1,107 +1,107 @@ -; Windows USB CDC ACM Setup File - -; Based on INF template which was: -; Copyright (c) 2000 Microsoft Corporation -; Copyright (c) 2007 Microchip Technology Inc. -; likely to be covered by the MLPL as found at: -; . -; For use only on Windows operating systems. - -[Version] -Signature="$Windows NT$" -Class=Ports -ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} -Provider=%Linux% -DriverVer=11/15/2007,5.1.2600.0 - -[Manufacturer] -%Linux%=DeviceList, NTamd64 - -[DestinationDirs] -DefaultDestDir=12 - - -;------------------------------------------------------------------------------ -; Windows 2000/XP/Vista-32bit Sections -;------------------------------------------------------------------------------ - -[DriverInstall.nt] -include=mdmcpq.inf -CopyFiles=DriverCopyFiles.nt -AddReg=DriverInstall.nt.AddReg - -[DriverCopyFiles.nt] -usbser.sys,,,0x20 - -[DriverInstall.nt.AddReg] -HKR,,DevLoader,,*ntkern -HKR,,NTMPDriver,,USBSER.sys -HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" - -[DriverInstall.nt.Services] -AddService=usbser, 0x00000002, DriverService.nt - -[DriverService.nt] -DisplayName=%SERVICE% -ServiceType=1 -StartType=3 -ErrorControl=1 -ServiceBinary=%12%\USBSER.sys - -;------------------------------------------------------------------------------ -; Vista-64bit Sections -;------------------------------------------------------------------------------ - -[DriverInstall.NTamd64] -include=mdmcpq.inf -CopyFiles=DriverCopyFiles.NTamd64 -AddReg=DriverInstall.NTamd64.AddReg - -[DriverCopyFiles.NTamd64] -USBSER.sys,,,0x20 - -[DriverInstall.NTamd64.AddReg] -HKR,,DevLoader,,*ntkern -HKR,,NTMPDriver,,USBSER.sys -HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" - -[DriverInstall.NTamd64.Services] -AddService=usbser, 0x00000002, DriverService.NTamd64 - -[DriverService.NTamd64] -DisplayName=%SERVICE% -ServiceType=1 -StartType=3 -ErrorControl=1 -ServiceBinary=%12%\USBSER.sys - - -;------------------------------------------------------------------------------ -; Vendor and Product ID Definitions -;------------------------------------------------------------------------------ -; When developing your USB device, the VID and PID used in the PC side -; application program and the firmware on the microcontroller must match. -; Modify the below line to use your VID and PID. Use the format as shown -; below. -; Note: One INF file can be used for multiple devices with different -; VID and PIDs. For each supported device, append -; ",USB\VID_xxxx&PID_yyyy" to the end of the line. -;------------------------------------------------------------------------------ -[SourceDisksFiles] -[SourceDisksNames] -[DeviceList] -%DESCRIPTION%=DriverInstall, USB\VID_0525&PID_A4A7, USB\VID_1D6B&PID_0104&MI_02, USB\VID_1D6B&PID_0106&MI_00 - -[DeviceList.NTamd64] -%DESCRIPTION%=DriverInstall, USB\VID_0525&PID_A4A7, USB\VID_1D6B&PID_0104&MI_02, USB\VID_1D6B&PID_0106&MI_00 - - -;------------------------------------------------------------------------------ -; String Definitions -;------------------------------------------------------------------------------ -;Modify these strings to customize your device -;------------------------------------------------------------------------------ -[Strings] -Linux = "Linux Developer Community" -DESCRIPTION = "Gadget Serial" -SERVICE = "USB RS-232 Emulation Driver" +; Windows USB CDC ACM Setup File + +; Based on INF template which was: +; Copyright (c) 2000 Microsoft Corporation +; Copyright (c) 2007 Microchip Technology Inc. +; likely to be covered by the MLPL as found at: +; . +; For use only on Windows operating systems. + +[Version] +Signature="$Windows NT$" +Class=Ports +ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} +Provider=%Linux% +DriverVer=11/15/2007,5.1.2600.0 + +[Manufacturer] +%Linux%=DeviceList, NTamd64 + +[DestinationDirs] +DefaultDestDir=12 + + +;------------------------------------------------------------------------------ +; Windows 2000/XP/Vista-32bit Sections +;------------------------------------------------------------------------------ + +[DriverInstall.nt] +include=mdmcpq.inf +CopyFiles=DriverCopyFiles.nt +AddReg=DriverInstall.nt.AddReg + +[DriverCopyFiles.nt] +usbser.sys,,,0x20 + +[DriverInstall.nt.AddReg] +HKR,,DevLoader,,*ntkern +HKR,,NTMPDriver,,USBSER.sys +HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" + +[DriverInstall.nt.Services] +AddService=usbser, 0x00000002, DriverService.nt + +[DriverService.nt] +DisplayName=%SERVICE% +ServiceType=1 +StartType=3 +ErrorControl=1 +ServiceBinary=%12%\USBSER.sys + +;------------------------------------------------------------------------------ +; Vista-64bit Sections +;------------------------------------------------------------------------------ + +[DriverInstall.NTamd64] +include=mdmcpq.inf +CopyFiles=DriverCopyFiles.NTamd64 +AddReg=DriverInstall.NTamd64.AddReg + +[DriverCopyFiles.NTamd64] +USBSER.sys,,,0x20 + +[DriverInstall.NTamd64.AddReg] +HKR,,DevLoader,,*ntkern +HKR,,NTMPDriver,,USBSER.sys +HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" + +[DriverInstall.NTamd64.Services] +AddService=usbser, 0x00000002, DriverService.NTamd64 + +[DriverService.NTamd64] +DisplayName=%SERVICE% +ServiceType=1 +StartType=3 +ErrorControl=1 +ServiceBinary=%12%\USBSER.sys + + +;------------------------------------------------------------------------------ +; Vendor and Product ID Definitions +;------------------------------------------------------------------------------ +; When developing your USB device, the VID and PID used in the PC side +; application program and the firmware on the microcontroller must match. +; Modify the below line to use your VID and PID. Use the format as shown +; below. +; Note: One INF file can be used for multiple devices with different +; VID and PIDs. For each supported device, append +; ",USB\VID_xxxx&PID_yyyy" to the end of the line. +;------------------------------------------------------------------------------ +[SourceDisksFiles] +[SourceDisksNames] +[DeviceList] +%DESCRIPTION%=DriverInstall, USB\VID_0525&PID_A4A7, USB\VID_1D6B&PID_0104&MI_02, USB\VID_1D6B&PID_0106&MI_00 + +[DeviceList.NTamd64] +%DESCRIPTION%=DriverInstall, USB\VID_0525&PID_A4A7, USB\VID_1D6B&PID_0104&MI_02, USB\VID_1D6B&PID_0106&MI_00 + + +;------------------------------------------------------------------------------ +; String Definitions +;------------------------------------------------------------------------------ +;Modify these strings to customize your device +;------------------------------------------------------------------------------ +[Strings] +Linux = "Linux Developer Community" +DESCRIPTION = "Gadget Serial" +SERVICE = "USB RS-232 Emulation Driver" diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/usb/raw-gadget.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/usb/raw-gadget.rst index 627e13c6c..59b2132b5 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/usb/raw-gadget.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/usb/raw-gadget.rst @@ -1,91 +1,91 @@ -============== -USB Raw Gadget -============== - -USB Raw Gadget is a gadget driver that gives userspace low-level control over -the gadget's communication process. - -Like any other gadget driver, Raw Gadget implements USB devices via the -USB gadget API. Unlike most gadget drivers, Raw Gadget does not implement -any concrete USB functions itself but requires userspace to do that. - -Raw Gadget is currently a strictly debugging feature and should not be used -in production. Use GadgetFS instead. - -Enabled with CONFIG_USB_RAW_GADGET. - -Comparison to GadgetFS -~~~~~~~~~~~~~~~~~~~~~~ - -Raw Gadget is similar to GadgetFS but provides more direct access to the -USB gadget layer for userspace. The key differences are: - -1. Raw Gadget passes every USB request to userspace to get a response, while - GadgetFS responds to some USB requests internally based on the provided - descriptors. Note that the UDC driver might respond to some requests on - its own and never forward them to the gadget layer. - -2. Raw Gadget allows providing arbitrary data as responses to USB requests, - while GadgetFS performs sanity checks on the provided USB descriptors. - This makes Raw Gadget suitable for fuzzing by providing malformed data as - responses to USB requests. - -3. Raw Gadget provides a way to select a UDC device/driver to bind to, - while GadgetFS currently binds to the first available UDC. This allows - having multiple Raw Gadget instances bound to different UDCs. - -4. Raw Gadget explicitly exposes information about endpoints addresses and - capabilities. This allows the user to write UDC-agnostic gadgets. - -5. Raw Gadget has an ioctl-based interface instead of a filesystem-based - one. - -Userspace interface -~~~~~~~~~~~~~~~~~~~ - -The user can interact with Raw Gadget by opening ``/dev/raw-gadget`` and -issuing ioctl calls; see the comments in include/uapi/linux/usb/raw_gadget.h -for details. Multiple Raw Gadget instances (bound to different UDCs) can be -used at the same time. - -A typical usage scenario of Raw Gadget: - -1. Create a Raw Gadget instance by opening ``/dev/raw-gadget``. -2. Initialize the instance via ``USB_RAW_IOCTL_INIT``. -3. Launch the instance with ``USB_RAW_IOCTL_RUN``. -4. In a loop issue ``USB_RAW_IOCTL_EVENT_FETCH`` to receive events from - Raw Gadget and react to those depending on what kind of USB gadget must - be implemented. - -Note that some UDC drivers have fixed addresses assigned to endpoints, and -therefore arbitrary endpoint addresses cannot be used in the descriptors. -Nevertheless, Raw Gadget provides a UDC-agnostic way to write USB gadgets. -Once ``USB_RAW_EVENT_CONNECT`` is received via ``USB_RAW_IOCTL_EVENT_FETCH``, -``USB_RAW_IOCTL_EPS_INFO`` can be used to find out information about the -endpoints that the UDC driver has. Based on that, userspace must choose UDC -endpoints for the gadget and assign addresses in the endpoint descriptors -correspondingly. - -Raw Gadget usage examples and a test suite: - -https://github.com/xairy/raw-gadget - -Internal details -~~~~~~~~~~~~~~~~ - -Every Raw Gadget endpoint read/write ioctl submits a USB request and waits -until its completion. This is done deliberately to assist with coverage-guided -fuzzing by having a single syscall fully process a single USB request. This -feature must be kept in the implementation. - -Potential future improvements -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -- Support ``O_NONBLOCK`` I/O. This would be another mode of operation, where - Raw Gadget would not wait until the completion of each USB request. - -- Support USB 3 features (accept SS endpoint companion descriptor when - enabling endpoints; allow providing ``stream_id`` for bulk transfers). - -- Support ISO transfer features (expose ``frame_number`` for completed - requests). +============== +USB Raw Gadget +============== + +USB Raw Gadget is a gadget driver that gives userspace low-level control over +the gadget's communication process. + +Like any other gadget driver, Raw Gadget implements USB devices via the +USB gadget API. Unlike most gadget drivers, Raw Gadget does not implement +any concrete USB functions itself but requires userspace to do that. + +Raw Gadget is currently a strictly debugging feature and should not be used +in production. Use GadgetFS instead. + +Enabled with CONFIG_USB_RAW_GADGET. + +Comparison to GadgetFS +~~~~~~~~~~~~~~~~~~~~~~ + +Raw Gadget is similar to GadgetFS but provides more direct access to the +USB gadget layer for userspace. The key differences are: + +1. Raw Gadget passes every USB request to userspace to get a response, while + GadgetFS responds to some USB requests internally based on the provided + descriptors. Note that the UDC driver might respond to some requests on + its own and never forward them to the gadget layer. + +2. Raw Gadget allows providing arbitrary data as responses to USB requests, + while GadgetFS performs sanity checks on the provided USB descriptors. + This makes Raw Gadget suitable for fuzzing by providing malformed data as + responses to USB requests. + +3. Raw Gadget provides a way to select a UDC device/driver to bind to, + while GadgetFS currently binds to the first available UDC. This allows + having multiple Raw Gadget instances bound to different UDCs. + +4. Raw Gadget explicitly exposes information about endpoints addresses and + capabilities. This allows the user to write UDC-agnostic gadgets. + +5. Raw Gadget has an ioctl-based interface instead of a filesystem-based + one. + +Userspace interface +~~~~~~~~~~~~~~~~~~~ + +The user can interact with Raw Gadget by opening ``/dev/raw-gadget`` and +issuing ioctl calls; see the comments in include/uapi/linux/usb/raw_gadget.h +for details. Multiple Raw Gadget instances (bound to different UDCs) can be +used at the same time. + +A typical usage scenario of Raw Gadget: + +1. Create a Raw Gadget instance by opening ``/dev/raw-gadget``. +2. Initialize the instance via ``USB_RAW_IOCTL_INIT``. +3. Launch the instance with ``USB_RAW_IOCTL_RUN``. +4. In a loop issue ``USB_RAW_IOCTL_EVENT_FETCH`` to receive events from + Raw Gadget and react to those depending on what kind of USB gadget must + be implemented. + +Note that some UDC drivers have fixed addresses assigned to endpoints, and +therefore arbitrary endpoint addresses cannot be used in the descriptors. +Nevertheless, Raw Gadget provides a UDC-agnostic way to write USB gadgets. +Once ``USB_RAW_EVENT_CONNECT`` is received via ``USB_RAW_IOCTL_EVENT_FETCH``, +``USB_RAW_IOCTL_EPS_INFO`` can be used to find out information about the +endpoints that the UDC driver has. Based on that, userspace must choose UDC +endpoints for the gadget and assign addresses in the endpoint descriptors +correspondingly. + +Raw Gadget usage examples and a test suite: + +https://github.com/xairy/raw-gadget + +Internal details +~~~~~~~~~~~~~~~~ + +Every Raw Gadget endpoint read/write ioctl submits a USB request and waits +until its completion. This is done deliberately to assist with coverage-guided +fuzzing by having a single syscall fully process a single USB request. This +feature must be kept in the implementation. + +Potential future improvements +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- Support ``O_NONBLOCK`` I/O. This would be another mode of operation, where + Raw Gadget would not wait until the completion of each USB request. + +- Support USB 3 features (accept SS endpoint companion descriptor when + enabling endpoints; allow providing ``stream_id`` for bulk transfers). + +- Support ISO transfer features (expose ``frame_number`` for completed + requests). diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/dcdbas.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/dcdbas.rst index cff199bb0..309cc57a7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/dcdbas.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/dcdbas.rst @@ -1,99 +1,99 @@ -=================================== -Dell Systems Management Base Driver -=================================== - -Overview -======== - -The Dell Systems Management Base Driver provides a sysfs interface for -systems management software such as Dell OpenManage to perform system -management interrupts and host control actions (system power cycle or -power off after OS shutdown) on certain Dell systems. - -Dell OpenManage requires this driver on the following Dell PowerEdge systems: -300, 1300, 1400, 400SC, 500SC, 1500SC, 1550, 600SC, 1600SC, 650, 1655MC, -700, and 750. Other Dell software such as the open source libsmbios project -is expected to make use of this driver, and it may include the use of this -driver on other Dell systems. - -The Dell libsmbios project aims towards providing access to as much BIOS -information as possible. See http://linux.dell.com/libsmbios/main/ for -more information about the libsmbios project. - - -System Management Interrupt -=========================== - -On some Dell systems, systems management software must access certain -management information via a system management interrupt (SMI). The SMI data -buffer must reside in 32-bit address space, and the physical address of the -buffer is required for the SMI. The driver maintains the memory required for -the SMI and provides a way for the application to generate the SMI. -The driver creates the following sysfs entries for systems management -software to perform these system management interrupts:: - - /sys/devices/platform/dcdbas/smi_data - /sys/devices/platform/dcdbas/smi_data_buf_phys_addr - /sys/devices/platform/dcdbas/smi_data_buf_size - /sys/devices/platform/dcdbas/smi_request - -Systems management software must perform the following steps to execute -a SMI using this driver: - -1) Lock smi_data. -2) Write system management command to smi_data. -3) Write "1" to smi_request to generate a calling interface SMI or - "2" to generate a raw SMI. -4) Read system management command response from smi_data. -5) Unlock smi_data. - - -Host Control Action -=================== - -Dell OpenManage supports a host control feature that allows the administrator -to perform a power cycle or power off of the system after the OS has finished -shutting down. On some Dell systems, this host control feature requires that -a driver perform a SMI after the OS has finished shutting down. - -The driver creates the following sysfs entries for systems management software -to schedule the driver to perform a power cycle or power off host control -action after the system has finished shutting down: - -/sys/devices/platform/dcdbas/host_control_action -/sys/devices/platform/dcdbas/host_control_smi_type -/sys/devices/platform/dcdbas/host_control_on_shutdown - -Dell OpenManage performs the following steps to execute a power cycle or -power off host control action using this driver: - -1) Write host control action to be performed to host_control_action. -2) Write type of SMI that driver needs to perform to host_control_smi_type. -3) Write "1" to host_control_on_shutdown to enable host control action. -4) Initiate OS shutdown. - (Driver will perform host control SMI when it is notified that the OS - has finished shutting down.) - - -Host Control SMI Type -===================== - -The following table shows the value to write to host_control_smi_type to -perform a power cycle or power off host control action: - -=================== ===================== -PowerEdge System Host Control SMI Type -=================== ===================== - 300 HC_SMITYPE_TYPE1 - 1300 HC_SMITYPE_TYPE1 - 1400 HC_SMITYPE_TYPE2 - 500SC HC_SMITYPE_TYPE2 - 1500SC HC_SMITYPE_TYPE2 - 1550 HC_SMITYPE_TYPE2 - 600SC HC_SMITYPE_TYPE2 - 1600SC HC_SMITYPE_TYPE2 - 650 HC_SMITYPE_TYPE2 - 1655MC HC_SMITYPE_TYPE2 - 700 HC_SMITYPE_TYPE3 - 750 HC_SMITYPE_TYPE3 -=================== ===================== +=================================== +Dell Systems Management Base Driver +=================================== + +Overview +======== + +The Dell Systems Management Base Driver provides a sysfs interface for +systems management software such as Dell OpenManage to perform system +management interrupts and host control actions (system power cycle or +power off after OS shutdown) on certain Dell systems. + +Dell OpenManage requires this driver on the following Dell PowerEdge systems: +300, 1300, 1400, 400SC, 500SC, 1500SC, 1550, 600SC, 1600SC, 650, 1655MC, +700, and 750. Other Dell software such as the open source libsmbios project +is expected to make use of this driver, and it may include the use of this +driver on other Dell systems. + +The Dell libsmbios project aims towards providing access to as much BIOS +information as possible. See http://linux.dell.com/libsmbios/main/ for +more information about the libsmbios project. + + +System Management Interrupt +=========================== + +On some Dell systems, systems management software must access certain +management information via a system management interrupt (SMI). The SMI data +buffer must reside in 32-bit address space, and the physical address of the +buffer is required for the SMI. The driver maintains the memory required for +the SMI and provides a way for the application to generate the SMI. +The driver creates the following sysfs entries for systems management +software to perform these system management interrupts:: + + /sys/devices/platform/dcdbas/smi_data + /sys/devices/platform/dcdbas/smi_data_buf_phys_addr + /sys/devices/platform/dcdbas/smi_data_buf_size + /sys/devices/platform/dcdbas/smi_request + +Systems management software must perform the following steps to execute +a SMI using this driver: + +1) Lock smi_data. +2) Write system management command to smi_data. +3) Write "1" to smi_request to generate a calling interface SMI or + "2" to generate a raw SMI. +4) Read system management command response from smi_data. +5) Unlock smi_data. + + +Host Control Action +=================== + +Dell OpenManage supports a host control feature that allows the administrator +to perform a power cycle or power off of the system after the OS has finished +shutting down. On some Dell systems, this host control feature requires that +a driver perform a SMI after the OS has finished shutting down. + +The driver creates the following sysfs entries for systems management software +to schedule the driver to perform a power cycle or power off host control +action after the system has finished shutting down: + +/sys/devices/platform/dcdbas/host_control_action +/sys/devices/platform/dcdbas/host_control_smi_type +/sys/devices/platform/dcdbas/host_control_on_shutdown + +Dell OpenManage performs the following steps to execute a power cycle or +power off host control action using this driver: + +1) Write host control action to be performed to host_control_action. +2) Write type of SMI that driver needs to perform to host_control_smi_type. +3) Write "1" to host_control_on_shutdown to enable host control action. +4) Initiate OS shutdown. + (Driver will perform host control SMI when it is notified that the OS + has finished shutting down.) + + +Host Control SMI Type +===================== + +The following table shows the value to write to host_control_smi_type to +perform a power cycle or power off host control action: + +=================== ===================== +PowerEdge System Host Control SMI Type +=================== ===================== + 300 HC_SMITYPE_TYPE1 + 1300 HC_SMITYPE_TYPE1 + 1400 HC_SMITYPE_TYPE2 + 500SC HC_SMITYPE_TYPE2 + 1500SC HC_SMITYPE_TYPE2 + 1550 HC_SMITYPE_TYPE2 + 600SC HC_SMITYPE_TYPE2 + 1600SC HC_SMITYPE_TYPE2 + 650 HC_SMITYPE_TYPE2 + 1655MC HC_SMITYPE_TYPE2 + 700 HC_SMITYPE_TYPE3 + 750 HC_SMITYPE_TYPE3 +=================== ===================== diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/futex2.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/futex2.rst index f8208e23f..9693f47a7 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/futex2.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/futex2.rst @@ -1,86 +1,86 @@ -.. SPDX-License-Identifier: GPL-2.0 - -====== -futex2 -====== - -:Author: André Almeida - -futex, or fast user mutex, is a set of syscalls to allow userspace to create -performant synchronization mechanisms, such as mutexes, semaphores and -conditional variables in userspace. C standard libraries, like glibc, uses it -as a means to implement more high level interfaces like pthreads. - -futex2 is a followup version of the initial futex syscall, designed to overcome -limitations of the original interface. - -User API -======== - -``futex_waitv()`` ------------------ - -Wait on an array of futexes, wake on any:: - - futex_waitv(struct futex_waitv *waiters, unsigned int nr_futexes, - unsigned int flags, struct timespec *timeout, clockid_t clockid) - - struct futex_waitv { - __u64 val; - __u64 uaddr; - __u32 flags; - __u32 __reserved; - }; - -Userspace sets an array of struct futex_waitv (up to a max of 128 entries), -using ``uaddr`` for the address to wait for, ``val`` for the expected value -and ``flags`` to specify the type (e.g. private) and size of futex. -``__reserved`` needs to be 0, but it can be used for future extension. The -pointer for the first item of the array is passed as ``waiters``. An invalid -address for ``waiters`` or for any ``uaddr`` returns ``-EFAULT``. - -If userspace has 32-bit pointers, it should do a explicit cast to make sure -the upper bits are zeroed. ``uintptr_t`` does the tricky and it works for -both 32/64-bit pointers. - -``nr_futexes`` specifies the size of the array. Numbers out of [1, 128] -interval will make the syscall return ``-EINVAL``. - -The ``flags`` argument of the syscall needs to be 0, but it can be used for -future extension. - -For each entry in ``waiters`` array, the current value at ``uaddr`` is compared -to ``val``. If it's different, the syscall undo all the work done so far and -return ``-EAGAIN``. If all tests and verifications succeeds, syscall waits until -one of the following happens: - -- The timeout expires, returning ``-ETIMEOUT``. -- A signal was sent to the sleeping task, returning ``-ERESTARTSYS``. -- Some futex at the list was woken, returning the index of some waked futex. - -An example of how to use the interface can be found at ``tools/testing/selftests/futex/functional/futex_waitv.c``. - -Timeout -------- - -``struct timespec *timeout`` argument is an optional argument that points to an -absolute timeout. You need to specify the type of clock being used at -``clockid`` argument. ``CLOCK_MONOTONIC`` and ``CLOCK_REALTIME`` are supported. -This syscall accepts only 64bit timespec structs. - -Types of futex --------------- - -A futex can be either private or shared. Private is used for processes that -shares the same memory space and the virtual address of the futex will be the -same for all processes. This allows for optimizations in the kernel. To use -private futexes, it's necessary to specify ``FUTEX_PRIVATE_FLAG`` in the futex -flag. For processes that doesn't share the same memory space and therefore can -have different virtual addresses for the same futex (using, for instance, a -file-backed shared memory) requires different internal mechanisms to be get -properly enqueued. This is the default behavior, and it works with both private -and shared futexes. - -Futexes can be of different sizes: 8, 16, 32 or 64 bits. Currently, the only -supported one is 32 bit sized futex, and it need to be specified using -``FUTEX_32`` flag. +.. SPDX-License-Identifier: GPL-2.0 + +====== +futex2 +====== + +:Author: André Almeida + +futex, or fast user mutex, is a set of syscalls to allow userspace to create +performant synchronization mechanisms, such as mutexes, semaphores and +conditional variables in userspace. C standard libraries, like glibc, uses it +as a means to implement more high level interfaces like pthreads. + +futex2 is a followup version of the initial futex syscall, designed to overcome +limitations of the original interface. + +User API +======== + +``futex_waitv()`` +----------------- + +Wait on an array of futexes, wake on any:: + + futex_waitv(struct futex_waitv *waiters, unsigned int nr_futexes, + unsigned int flags, struct timespec *timeout, clockid_t clockid) + + struct futex_waitv { + __u64 val; + __u64 uaddr; + __u32 flags; + __u32 __reserved; + }; + +Userspace sets an array of struct futex_waitv (up to a max of 128 entries), +using ``uaddr`` for the address to wait for, ``val`` for the expected value +and ``flags`` to specify the type (e.g. private) and size of futex. +``__reserved`` needs to be 0, but it can be used for future extension. The +pointer for the first item of the array is passed as ``waiters``. An invalid +address for ``waiters`` or for any ``uaddr`` returns ``-EFAULT``. + +If userspace has 32-bit pointers, it should do a explicit cast to make sure +the upper bits are zeroed. ``uintptr_t`` does the tricky and it works for +both 32/64-bit pointers. + +``nr_futexes`` specifies the size of the array. Numbers out of [1, 128] +interval will make the syscall return ``-EINVAL``. + +The ``flags`` argument of the syscall needs to be 0, but it can be used for +future extension. + +For each entry in ``waiters`` array, the current value at ``uaddr`` is compared +to ``val``. If it's different, the syscall undo all the work done so far and +return ``-EAGAIN``. If all tests and verifications succeeds, syscall waits until +one of the following happens: + +- The timeout expires, returning ``-ETIMEOUT``. +- A signal was sent to the sleeping task, returning ``-ERESTARTSYS``. +- Some futex at the list was woken, returning the index of some waked futex. + +An example of how to use the interface can be found at ``tools/testing/selftests/futex/functional/futex_waitv.c``. + +Timeout +------- + +``struct timespec *timeout`` argument is an optional argument that points to an +absolute timeout. You need to specify the type of clock being used at +``clockid`` argument. ``CLOCK_MONOTONIC`` and ``CLOCK_REALTIME`` are supported. +This syscall accepts only 64bit timespec structs. + +Types of futex +-------------- + +A futex can be either private or shared. Private is used for processes that +shares the same memory space and the virtual address of the futex will be the +same for all processes. This allows for optimizations in the kernel. To use +private futexes, it's necessary to specify ``FUTEX_PRIVATE_FLAG`` in the futex +flag. For processes that doesn't share the same memory space and therefore can +have different virtual addresses for the same futex (using, for instance, a +file-backed shared memory) requires different internal mechanisms to be get +properly enqueued. This is the default behavior, and it works with both private +and shared futexes. + +Futexes can be of different sizes: 8, 16, 32 or 64 bits. Currently, the only +supported one is 32 bit sized futex, and it need to be specified using +``FUTEX_32`` flag. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/gpio/chardev.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/gpio/chardev.rst index 30bcc3de6..c58dd9771 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/gpio/chardev.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/gpio/chardev.rst @@ -1,116 +1,116 @@ -.. SPDX-License-Identifier: GPL-2.0 - -=================================== -GPIO Character Device Userspace API -=================================== - -This is latest version (v2) of the character device API, as defined in -``include/uapi/linux/gpio.h.`` - -First added in 5.10. - -.. note:: - Do NOT abuse userspace APIs to control hardware that has proper kernel - drivers. There may already be a driver for your use case, and an existing - kernel driver is sure to provide a superior solution to bitbashing - from userspace. - - Read Documentation/driver-api/gpio/drivers-on-gpio.rst to avoid reinventing - kernel wheels in userspace. - - Similarly, for multi-function lines there may be other subsystems, such as - Documentation/spi/index.rst, Documentation/i2c/index.rst, - Documentation/driver-api/pwm.rst, Documentation/w1/index.rst etc, that - provide suitable drivers and APIs for your hardware. - -Basic examples using the character device API can be found in ``tools/gpio/*``. - -The API is based around two major objects, the :ref:`gpio-v2-chip` and the -:ref:`gpio-v2-line-request`. - -.. _gpio-v2-chip: - -Chip -==== - -The Chip represents a single GPIO chip and is exposed to userspace using device -files of the form ``/dev/gpiochipX``. - -Each chip supports a number of GPIO lines, -:c:type:`chip.lines`. Lines on the chip are identified by an -``offset`` in the range from 0 to ``chip.lines - 1``, i.e. `[0,chip.lines)`. - -Lines are requested from the chip using gpio-v2-get-line-ioctl.rst -and the resulting line request is used to access the GPIO chip's lines or -monitor the lines for edge events. - -Within this documentation, the file descriptor returned by calling `open()` -on the GPIO device file is referred to as ``chip_fd``. - -Operations ----------- - -The following operations may be performed on the chip: - -.. toctree:: - :titlesonly: - - Get Line - Get Chip Info - Get Line Info - Watch Line Info - Unwatch Line Info - Read Line Info Changed Events - -.. _gpio-v2-line-request: - -Line Request -============ - -Line requests are created by gpio-v2-get-line-ioctl.rst and provide -access to a set of requested lines. The line request is exposed to userspace -via the anonymous file descriptor returned in -:c:type:`request.fd` by gpio-v2-get-line-ioctl.rst. - -Within this documentation, the line request file descriptor is referred to -as ``req_fd``. - -Operations ----------- - -The following operations may be performed on the line request: - -.. toctree:: - :titlesonly: - - Get Line Values - Set Line Values - Read Line Edge Events - Reconfigure Lines - -Types -===== - -This section contains the structs and enums that are referenced by the API v2, -as defined in ``include/uapi/linux/gpio.h``. - -.. kernel-doc:: include/uapi/linux/gpio.h - :identifiers: - gpio_v2_line_attr_id - gpio_v2_line_attribute - gpio_v2_line_changed_type - gpio_v2_line_config - gpio_v2_line_config_attribute - gpio_v2_line_event - gpio_v2_line_event_id - gpio_v2_line_flag - gpio_v2_line_info - gpio_v2_line_info_changed - gpio_v2_line_request - gpio_v2_line_values - gpiochip_info - -.. toctree:: - :hidden: - - error-codes +.. SPDX-License-Identifier: GPL-2.0 + +=================================== +GPIO Character Device Userspace API +=================================== + +This is latest version (v2) of the character device API, as defined in +``include/uapi/linux/gpio.h.`` + +First added in 5.10. + +.. note:: + Do NOT abuse userspace APIs to control hardware that has proper kernel + drivers. There may already be a driver for your use case, and an existing + kernel driver is sure to provide a superior solution to bitbashing + from userspace. + + Read Documentation/driver-api/gpio/drivers-on-gpio.rst to avoid reinventing + kernel wheels in userspace. + + Similarly, for multi-function lines there may be other subsystems, such as + Documentation/spi/index.rst, Documentation/i2c/index.rst, + Documentation/driver-api/pwm.rst, Documentation/w1/index.rst etc, that + provide suitable drivers and APIs for your hardware. + +Basic examples using the character device API can be found in ``tools/gpio/*``. + +The API is based around two major objects, the :ref:`gpio-v2-chip` and the +:ref:`gpio-v2-line-request`. + +.. _gpio-v2-chip: + +Chip +==== + +The Chip represents a single GPIO chip and is exposed to userspace using device +files of the form ``/dev/gpiochipX``. + +Each chip supports a number of GPIO lines, +:c:type:`chip.lines`. Lines on the chip are identified by an +``offset`` in the range from 0 to ``chip.lines - 1``, i.e. `[0,chip.lines)`. + +Lines are requested from the chip using gpio-v2-get-line-ioctl.rst +and the resulting line request is used to access the GPIO chip's lines or +monitor the lines for edge events. + +Within this documentation, the file descriptor returned by calling `open()` +on the GPIO device file is referred to as ``chip_fd``. + +Operations +---------- + +The following operations may be performed on the chip: + +.. toctree:: + :titlesonly: + + Get Line + Get Chip Info + Get Line Info + Watch Line Info + Unwatch Line Info + Read Line Info Changed Events + +.. _gpio-v2-line-request: + +Line Request +============ + +Line requests are created by gpio-v2-get-line-ioctl.rst and provide +access to a set of requested lines. The line request is exposed to userspace +via the anonymous file descriptor returned in +:c:type:`request.fd` by gpio-v2-get-line-ioctl.rst. + +Within this documentation, the line request file descriptor is referred to +as ``req_fd``. + +Operations +---------- + +The following operations may be performed on the line request: + +.. toctree:: + :titlesonly: + + Get Line Values + Set Line Values + Read Line Edge Events + Reconfigure Lines + +Types +===== + +This section contains the structs and enums that are referenced by the API v2, +as defined in ``include/uapi/linux/gpio.h``. + +.. kernel-doc:: include/uapi/linux/gpio.h + :identifiers: + gpio_v2_line_attr_id + gpio_v2_line_attribute + gpio_v2_line_changed_type + gpio_v2_line_config + gpio_v2_line_config_attribute + gpio_v2_line_event + gpio_v2_line_event_id + gpio_v2_line_flag + gpio_v2_line_info + gpio_v2_line_info_changed + gpio_v2_line_request + gpio_v2_line_values + gpiochip_info + +.. toctree:: + :hidden: + + error-codes diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/gpio/chardev_v1.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/gpio/chardev_v1.rst index 37ab96844..67124b1d0 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/gpio/chardev_v1.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/gpio/chardev_v1.rst @@ -1,131 +1,131 @@ -.. SPDX-License-Identifier: GPL-2.0 - -======================================== -GPIO Character Device Userspace API (v1) -======================================== - -.. warning:: - This API is obsoleted by chardev.rst (v2). - - New developments should use the v2 API, and existing developments are - encouraged to migrate as soon as possible, as this API will be removed - in the future. The v2 API is a functional superset of the v1 API so any - v1 call can be directly translated to a v2 equivalent. - - This interface will continue to be maintained for the migration period, - but new features will only be added to the new API. - -First added in 4.8. - -The API is based around three major objects, the :ref:`gpio-v1-chip`, the -:ref:`gpio-v1-line-handle`, and the :ref:`gpio-v1-line-event`. - -Where "line event" is used in this document it refers to the request that can -monitor a line for edge events, not the edge events themselves. - -.. _gpio-v1-chip: - -Chip -==== - -The Chip represents a single GPIO chip and is exposed to userspace using device -files of the form ``/dev/gpiochipX``. - -Each chip supports a number of GPIO lines, -:c:type:`chip.lines`. Lines on the chip are identified by an -``offset`` in the range from 0 to ``chip.lines - 1``, i.e. `[0,chip.lines)`. - -Lines are requested from the chip using either gpio-get-linehandle-ioctl.rst -and the resulting line handle is used to access the GPIO chip's lines, or -gpio-get-lineevent-ioctl.rst and the resulting line event is used to monitor -a GPIO line for edge events. - -Within this documentation, the file descriptor returned by calling `open()` -on the GPIO device file is referred to as ``chip_fd``. - -Operations ----------- - -The following operations may be performed on the chip: - -.. toctree:: - :titlesonly: - - Get Line Handle - Get Line Event - Get Chip Info - Get Line Info - Watch Line Info - Unwatch Line Info - Read Line Info Changed Events - -.. _gpio-v1-line-handle: - -Line Handle -=========== - -Line handles are created by gpio-get-linehandle-ioctl.rst and provide -access to a set of requested lines. The line handle is exposed to userspace -via the anonymous file descriptor returned in -:c:type:`request.fd` by gpio-get-linehandle-ioctl.rst. - -Within this documentation, the line handle file descriptor is referred to -as ``handle_fd``. - -Operations ----------- - -The following operations may be performed on the line handle: - -.. toctree:: - :titlesonly: - - Get Line Values - Set Line Values - Reconfigure Lines - -.. _gpio-v1-line-event: - -Line Event -========== - -Line events are created by gpio-get-lineevent-ioctl.rst and provide -access to a requested line. The line event is exposed to userspace -via the anonymous file descriptor returned in -:c:type:`request.fd` by gpio-get-lineevent-ioctl.rst. - -Within this documentation, the line event file descriptor is referred to -as ``event_fd``. - -Operations ----------- - -The following operations may be performed on the line event: - -.. toctree:: - :titlesonly: - - Get Line Value - Read Line Edge Events - -Types -===== - -This section contains the structs that are referenced by the ABI v1. - -The :c:type:`struct gpiochip_info` is common to ABI v1 and v2. - -.. kernel-doc:: include/uapi/linux/gpio.h - :identifiers: - gpioevent_data - gpioevent_request - gpiohandle_config - gpiohandle_data - gpiohandle_request - gpioline_info - gpioline_info_changed - -.. toctree:: - :hidden: - - error-codes +.. SPDX-License-Identifier: GPL-2.0 + +======================================== +GPIO Character Device Userspace API (v1) +======================================== + +.. warning:: + This API is obsoleted by chardev.rst (v2). + + New developments should use the v2 API, and existing developments are + encouraged to migrate as soon as possible, as this API will be removed + in the future. The v2 API is a functional superset of the v1 API so any + v1 call can be directly translated to a v2 equivalent. + + This interface will continue to be maintained for the migration period, + but new features will only be added to the new API. + +First added in 4.8. + +The API is based around three major objects, the :ref:`gpio-v1-chip`, the +:ref:`gpio-v1-line-handle`, and the :ref:`gpio-v1-line-event`. + +Where "line event" is used in this document it refers to the request that can +monitor a line for edge events, not the edge events themselves. + +.. _gpio-v1-chip: + +Chip +==== + +The Chip represents a single GPIO chip and is exposed to userspace using device +files of the form ``/dev/gpiochipX``. + +Each chip supports a number of GPIO lines, +:c:type:`chip.lines`. Lines on the chip are identified by an +``offset`` in the range from 0 to ``chip.lines - 1``, i.e. `[0,chip.lines)`. + +Lines are requested from the chip using either gpio-get-linehandle-ioctl.rst +and the resulting line handle is used to access the GPIO chip's lines, or +gpio-get-lineevent-ioctl.rst and the resulting line event is used to monitor +a GPIO line for edge events. + +Within this documentation, the file descriptor returned by calling `open()` +on the GPIO device file is referred to as ``chip_fd``. + +Operations +---------- + +The following operations may be performed on the chip: + +.. toctree:: + :titlesonly: + + Get Line Handle + Get Line Event + Get Chip Info + Get Line Info + Watch Line Info + Unwatch Line Info + Read Line Info Changed Events + +.. _gpio-v1-line-handle: + +Line Handle +=========== + +Line handles are created by gpio-get-linehandle-ioctl.rst and provide +access to a set of requested lines. The line handle is exposed to userspace +via the anonymous file descriptor returned in +:c:type:`request.fd` by gpio-get-linehandle-ioctl.rst. + +Within this documentation, the line handle file descriptor is referred to +as ``handle_fd``. + +Operations +---------- + +The following operations may be performed on the line handle: + +.. toctree:: + :titlesonly: + + Get Line Values + Set Line Values + Reconfigure Lines + +.. _gpio-v1-line-event: + +Line Event +========== + +Line events are created by gpio-get-lineevent-ioctl.rst and provide +access to a requested line. The line event is exposed to userspace +via the anonymous file descriptor returned in +:c:type:`request.fd` by gpio-get-lineevent-ioctl.rst. + +Within this documentation, the line event file descriptor is referred to +as ``event_fd``. + +Operations +---------- + +The following operations may be performed on the line event: + +.. toctree:: + :titlesonly: + + Get Line Value + Read Line Edge Events + +Types +===== + +This section contains the structs that are referenced by the ABI v1. + +The :c:type:`struct gpiochip_info` is common to ABI v1 and v2. + +.. kernel-doc:: include/uapi/linux/gpio.h + :identifiers: + gpioevent_data + gpioevent_request + gpiohandle_config + gpiohandle_data + gpiohandle_request + gpioline_info + gpioline_info_changed + +.. toctree:: + :hidden: + + error-codes diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/gpio/gpio-get-linehandle-ioctl.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/gpio/gpio-get-linehandle-ioctl.rst index 47aade325..9112a9d31 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/gpio/gpio-get-linehandle-ioctl.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/gpio/gpio-get-linehandle-ioctl.rst @@ -1,125 +1,125 @@ -.. SPDX-License-Identifier: GPL-2.0 - -.. _GPIO_GET_LINEHANDLE_IOCTL: - -************************* -GPIO_GET_LINEHANDLE_IOCTL -************************* - -.. warning:: - This ioctl is part of chardev_v1.rst and is obsoleted by - gpio-v2-get-line-ioctl.rst. - -Name -==== - -GPIO_GET_LINEHANDLE_IOCTL - Request a line or lines from the kernel. - -Synopsis -======== - -.. c:macro:: GPIO_GET_LINEHANDLE_IOCTL - -``int ioctl(int chip_fd, GPIO_GET_LINEHANDLE_IOCTL, struct gpiohandle_request *request)`` - -Arguments -========= - -``chip_fd`` - The file descriptor of the GPIO character device returned by `open()`. - -``request`` - The :c:type:`handle_request` specifying the lines to - request and their configuration. - -Description -=========== - -Request a line or lines from the kernel. - -While multiple lines may be requested, the same configuration applies to all -lines in the request. - -On success, the requesting process is granted exclusive access to the line -value and write access to the line configuration. - -The state of a line, including the value of output lines, is guaranteed to -remain as requested until the returned file descriptor is closed. Once the -file descriptor is closed, the state of the line becomes uncontrolled from -the userspace perspective, and may revert to its default state. - -Requesting a line already in use is an error (**EBUSY**). - -Closing the ``chip_fd`` has no effect on existing line handles. - -.. _gpio-get-linehandle-config-rules: - -Configuration Rules -------------------- - -The following configuration rules apply: - -The direction flags, ``GPIOHANDLE_REQUEST_INPUT`` and -``GPIOHANDLE_REQUEST_OUTPUT``, cannot be combined. If neither are set then the -only other flag that may be set is ``GPIOHANDLE_REQUEST_ACTIVE_LOW`` and the -line is requested "as-is" to allow reading of the line value without altering -the electrical configuration. - -The drive flags, ``GPIOHANDLE_REQUEST_OPEN_xxx``, require the -``GPIOHANDLE_REQUEST_OUTPUT`` to be set. -Only one drive flag may be set. -If none are set then the line is assumed push-pull. - -Only one bias flag, ``GPIOHANDLE_REQUEST_BIAS_xxx``, may be set, and -it requires a direction flag to also be set. -If no bias flags are set then the bias configuration is not changed. - -Requesting an invalid configuration is an error (**EINVAL**). - - -.. _gpio-get-linehandle-config-support: - -Configuration Support ---------------------- - -Where the requested configuration is not directly supported by the underlying -hardware and driver, the kernel applies one of these approaches: - - - reject the request - - emulate the feature in software - - treat the feature as best effort - -The approach applied depends on whether the feature can reasonably be emulated -in software, and the impact on the hardware and userspace if the feature is not -supported. -The approach applied for each feature is as follows: - -============== =========== -Feature Approach -============== =========== -Bias best effort -Direction reject -Drive emulate -============== =========== - -Bias is treated as best effort to allow userspace to apply the same -configuration for platforms that support internal bias as those that require -external bias. -Worst case the line floats rather than being biased as expected. - -Drive is emulated by switching the line to an input when the line should not -be driven. - -In all cases, the configuration reported by gpio-get-lineinfo-ioctl.rst -is the requested configuration, not the resulting hardware configuration. -Userspace cannot determine if a feature is supported in hardware, is -emulated, or is best effort. - -Return Value -============ - -On success 0 and the :c:type:`request.fd` contains the -file descriptor for the request. - -On error -1 and the ``errno`` variable is set appropriately. -Common error codes are described in error-codes.rst. +.. SPDX-License-Identifier: GPL-2.0 + +.. _GPIO_GET_LINEHANDLE_IOCTL: + +************************* +GPIO_GET_LINEHANDLE_IOCTL +************************* + +.. warning:: + This ioctl is part of chardev_v1.rst and is obsoleted by + gpio-v2-get-line-ioctl.rst. + +Name +==== + +GPIO_GET_LINEHANDLE_IOCTL - Request a line or lines from the kernel. + +Synopsis +======== + +.. c:macro:: GPIO_GET_LINEHANDLE_IOCTL + +``int ioctl(int chip_fd, GPIO_GET_LINEHANDLE_IOCTL, struct gpiohandle_request *request)`` + +Arguments +========= + +``chip_fd`` + The file descriptor of the GPIO character device returned by `open()`. + +``request`` + The :c:type:`handle_request` specifying the lines to + request and their configuration. + +Description +=========== + +Request a line or lines from the kernel. + +While multiple lines may be requested, the same configuration applies to all +lines in the request. + +On success, the requesting process is granted exclusive access to the line +value and write access to the line configuration. + +The state of a line, including the value of output lines, is guaranteed to +remain as requested until the returned file descriptor is closed. Once the +file descriptor is closed, the state of the line becomes uncontrolled from +the userspace perspective, and may revert to its default state. + +Requesting a line already in use is an error (**EBUSY**). + +Closing the ``chip_fd`` has no effect on existing line handles. + +.. _gpio-get-linehandle-config-rules: + +Configuration Rules +------------------- + +The following configuration rules apply: + +The direction flags, ``GPIOHANDLE_REQUEST_INPUT`` and +``GPIOHANDLE_REQUEST_OUTPUT``, cannot be combined. If neither are set then the +only other flag that may be set is ``GPIOHANDLE_REQUEST_ACTIVE_LOW`` and the +line is requested "as-is" to allow reading of the line value without altering +the electrical configuration. + +The drive flags, ``GPIOHANDLE_REQUEST_OPEN_xxx``, require the +``GPIOHANDLE_REQUEST_OUTPUT`` to be set. +Only one drive flag may be set. +If none are set then the line is assumed push-pull. + +Only one bias flag, ``GPIOHANDLE_REQUEST_BIAS_xxx``, may be set, and +it requires a direction flag to also be set. +If no bias flags are set then the bias configuration is not changed. + +Requesting an invalid configuration is an error (**EINVAL**). + + +.. _gpio-get-linehandle-config-support: + +Configuration Support +--------------------- + +Where the requested configuration is not directly supported by the underlying +hardware and driver, the kernel applies one of these approaches: + + - reject the request + - emulate the feature in software + - treat the feature as best effort + +The approach applied depends on whether the feature can reasonably be emulated +in software, and the impact on the hardware and userspace if the feature is not +supported. +The approach applied for each feature is as follows: + +============== =========== +Feature Approach +============== =========== +Bias best effort +Direction reject +Drive emulate +============== =========== + +Bias is treated as best effort to allow userspace to apply the same +configuration for platforms that support internal bias as those that require +external bias. +Worst case the line floats rather than being biased as expected. + +Drive is emulated by switching the line to an input when the line should not +be driven. + +In all cases, the configuration reported by gpio-get-lineinfo-ioctl.rst +is the requested configuration, not the resulting hardware configuration. +Userspace cannot determine if a feature is supported in hardware, is +emulated, or is best effort. + +Return Value +============ + +On success 0 and the :c:type:`request.fd` contains the +file descriptor for the request. + +On error -1 and the ``errno`` variable is set appropriately. +Common error codes are described in error-codes.rst. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/cec/cec-ioc-adap-g-caps.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/cec/cec-ioc-adap-g-caps.rst index eb0206559..1d5248979 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/cec/cec-ioc-adap-g-caps.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/cec/cec-ioc-adap-g-caps.rst @@ -1,152 +1,152 @@ -.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later -.. c:namespace:: CEC - -.. _CEC_ADAP_G_CAPS: - -********************* -ioctl CEC_ADAP_G_CAPS -********************* - -Name -==== - -CEC_ADAP_G_CAPS - Query device capabilities - -Synopsis -======== - -.. c:macro:: CEC_ADAP_G_CAPS - -``int ioctl(int fd, CEC_ADAP_G_CAPS, struct cec_caps *argp)`` - -Arguments -========= - -``fd`` - File descriptor returned by :c:func:`open()`. - -``argp`` - -Description -=========== - -All cec devices must support :ref:`ioctl CEC_ADAP_G_CAPS `. To query -device information, applications call the ioctl with a pointer to a -struct :c:type:`cec_caps`. The driver fills the structure and -returns the information to the application. The ioctl never fails. - -.. tabularcolumns:: |p{1.2cm}|p{2.5cm}|p{13.6cm}| - -.. c:type:: cec_caps - -.. flat-table:: struct cec_caps - :header-rows: 0 - :stub-columns: 0 - :widths: 1 1 16 - - * - char - - ``driver[32]`` - - The name of the cec adapter driver. - * - char - - ``name[32]`` - - The name of this CEC adapter. The combination ``driver`` and - ``name`` must be unique. - * - __u32 - - ``available_log_addrs`` - - The maximum number of logical addresses that can be configured. - * - __u32 - - ``capabilities`` - - The capabilities of the CEC adapter, see - :ref:`cec-capabilities`. - * - __u32 - - ``version`` - - CEC Framework API version, formatted with the ``KERNEL_VERSION()`` - macro. - -.. tabularcolumns:: |p{4.4cm}|p{2.5cm}|p{10.4cm}| - -.. _cec-capabilities: - -.. flat-table:: CEC Capabilities Flags - :header-rows: 0 - :stub-columns: 0 - :widths: 3 1 8 - - * .. _`CEC-CAP-PHYS-ADDR`: - - - ``CEC_CAP_PHYS_ADDR`` - - 0x00000001 - - Userspace has to configure the physical address by calling - :ref:`ioctl CEC_ADAP_S_PHYS_ADDR `. If - this capability isn't set, then setting the physical address is - handled by the kernel whenever the EDID is set (for an HDMI - receiver) or read (for an HDMI transmitter). - * .. _`CEC-CAP-LOG-ADDRS`: - - - ``CEC_CAP_LOG_ADDRS`` - - 0x00000002 - - Userspace has to configure the logical addresses by calling - :ref:`ioctl CEC_ADAP_S_LOG_ADDRS `. If - this capability isn't set, then the kernel will have configured - this. - * .. _`CEC-CAP-TRANSMIT`: - - - ``CEC_CAP_TRANSMIT`` - - 0x00000004 - - Userspace can transmit CEC messages by calling - :ref:`ioctl CEC_TRANSMIT `. This implies that - userspace can be a follower as well, since being able to transmit - messages is a prerequisite of becoming a follower. If this - capability isn't set, then the kernel will handle all CEC - transmits and process all CEC messages it receives. - * .. _`CEC-CAP-PASSTHROUGH`: - - - ``CEC_CAP_PASSTHROUGH`` - - 0x00000008 - - Userspace can use the passthrough mode by calling - :ref:`ioctl CEC_S_MODE `. - * .. _`CEC-CAP-RC`: - - - ``CEC_CAP_RC`` - - 0x00000010 - - This adapter supports the remote control protocol. - * .. _`CEC-CAP-MONITOR-ALL`: - - - ``CEC_CAP_MONITOR_ALL`` - - 0x00000020 - - The CEC hardware can monitor all messages, not just directed and - broadcast messages. - * .. _`CEC-CAP-NEEDS-HPD`: - - - ``CEC_CAP_NEEDS_HPD`` - - 0x00000040 - - The CEC hardware is only active if the HDMI Hotplug Detect pin is - high. This makes it impossible to use CEC to wake up displays that - set the HPD pin low when in standby mode, but keep the CEC bus - alive. - * .. _`CEC-CAP-MONITOR-PIN`: - - - ``CEC_CAP_MONITOR_PIN`` - - 0x00000080 - - The CEC hardware can monitor CEC pin changes from low to high voltage - and vice versa. When in pin monitoring mode the application will - receive ``CEC_EVENT_PIN_CEC_LOW`` and ``CEC_EVENT_PIN_CEC_HIGH`` events. - * .. _`CEC-CAP-CONNECTOR-INFO`: - - - ``CEC_CAP_CONNECTOR_INFO`` - - 0x00000100 - - If this capability is set, then :ref:`CEC_ADAP_G_CONNECTOR_INFO` can - be used. - * .. _`CEC-CAP-REPLY-VENDOR-ID`: - - - ``CEC_CAP_REPLY_VENDOR_ID`` - - 0x00000200 - - If this capability is set, then - :ref:`CEC_MSG_FL_REPLY_VENDOR_ID ` can be used. - -Return Value -============ - -On success 0 is returned, on error -1 and the ``errno`` variable is set -appropriately. The generic error codes are described at the -:ref:`Generic Error Codes ` chapter. +.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later +.. c:namespace:: CEC + +.. _CEC_ADAP_G_CAPS: + +********************* +ioctl CEC_ADAP_G_CAPS +********************* + +Name +==== + +CEC_ADAP_G_CAPS - Query device capabilities + +Synopsis +======== + +.. c:macro:: CEC_ADAP_G_CAPS + +``int ioctl(int fd, CEC_ADAP_G_CAPS, struct cec_caps *argp)`` + +Arguments +========= + +``fd`` + File descriptor returned by :c:func:`open()`. + +``argp`` + +Description +=========== + +All cec devices must support :ref:`ioctl CEC_ADAP_G_CAPS `. To query +device information, applications call the ioctl with a pointer to a +struct :c:type:`cec_caps`. The driver fills the structure and +returns the information to the application. The ioctl never fails. + +.. tabularcolumns:: |p{1.2cm}|p{2.5cm}|p{13.6cm}| + +.. c:type:: cec_caps + +.. flat-table:: struct cec_caps + :header-rows: 0 + :stub-columns: 0 + :widths: 1 1 16 + + * - char + - ``driver[32]`` + - The name of the cec adapter driver. + * - char + - ``name[32]`` + - The name of this CEC adapter. The combination ``driver`` and + ``name`` must be unique. + * - __u32 + - ``available_log_addrs`` + - The maximum number of logical addresses that can be configured. + * - __u32 + - ``capabilities`` + - The capabilities of the CEC adapter, see + :ref:`cec-capabilities`. + * - __u32 + - ``version`` + - CEC Framework API version, formatted with the ``KERNEL_VERSION()`` + macro. + +.. tabularcolumns:: |p{4.4cm}|p{2.5cm}|p{10.4cm}| + +.. _cec-capabilities: + +.. flat-table:: CEC Capabilities Flags + :header-rows: 0 + :stub-columns: 0 + :widths: 3 1 8 + + * .. _`CEC-CAP-PHYS-ADDR`: + + - ``CEC_CAP_PHYS_ADDR`` + - 0x00000001 + - Userspace has to configure the physical address by calling + :ref:`ioctl CEC_ADAP_S_PHYS_ADDR `. If + this capability isn't set, then setting the physical address is + handled by the kernel whenever the EDID is set (for an HDMI + receiver) or read (for an HDMI transmitter). + * .. _`CEC-CAP-LOG-ADDRS`: + + - ``CEC_CAP_LOG_ADDRS`` + - 0x00000002 + - Userspace has to configure the logical addresses by calling + :ref:`ioctl CEC_ADAP_S_LOG_ADDRS `. If + this capability isn't set, then the kernel will have configured + this. + * .. _`CEC-CAP-TRANSMIT`: + + - ``CEC_CAP_TRANSMIT`` + - 0x00000004 + - Userspace can transmit CEC messages by calling + :ref:`ioctl CEC_TRANSMIT `. This implies that + userspace can be a follower as well, since being able to transmit + messages is a prerequisite of becoming a follower. If this + capability isn't set, then the kernel will handle all CEC + transmits and process all CEC messages it receives. + * .. _`CEC-CAP-PASSTHROUGH`: + + - ``CEC_CAP_PASSTHROUGH`` + - 0x00000008 + - Userspace can use the passthrough mode by calling + :ref:`ioctl CEC_S_MODE `. + * .. _`CEC-CAP-RC`: + + - ``CEC_CAP_RC`` + - 0x00000010 + - This adapter supports the remote control protocol. + * .. _`CEC-CAP-MONITOR-ALL`: + + - ``CEC_CAP_MONITOR_ALL`` + - 0x00000020 + - The CEC hardware can monitor all messages, not just directed and + broadcast messages. + * .. _`CEC-CAP-NEEDS-HPD`: + + - ``CEC_CAP_NEEDS_HPD`` + - 0x00000040 + - The CEC hardware is only active if the HDMI Hotplug Detect pin is + high. This makes it impossible to use CEC to wake up displays that + set the HPD pin low when in standby mode, but keep the CEC bus + alive. + * .. _`CEC-CAP-MONITOR-PIN`: + + - ``CEC_CAP_MONITOR_PIN`` + - 0x00000080 + - The CEC hardware can monitor CEC pin changes from low to high voltage + and vice versa. When in pin monitoring mode the application will + receive ``CEC_EVENT_PIN_CEC_LOW`` and ``CEC_EVENT_PIN_CEC_HIGH`` events. + * .. _`CEC-CAP-CONNECTOR-INFO`: + + - ``CEC_CAP_CONNECTOR_INFO`` + - 0x00000100 + - If this capability is set, then :ref:`CEC_ADAP_G_CONNECTOR_INFO` can + be used. + * .. _`CEC-CAP-REPLY-VENDOR-ID`: + + - ``CEC_CAP_REPLY_VENDOR_ID`` + - 0x00000200 + - If this capability is set, then + :ref:`CEC_MSG_FL_REPLY_VENDOR_ID ` can be used. + +Return Value +============ + +On success 0 is returned, on error -1 and the ``errno`` variable is set +appropriately. The generic error codes are described at the +:ref:`Generic Error Codes ` chapter. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/cec/cec-ioc-adap-g-phys-addr.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/cec/cec-ioc-adap-g-phys-addr.rst index 7ae979067..fb22f6894 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/cec/cec-ioc-adap-g-phys-addr.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/cec/cec-ioc-adap-g-phys-addr.rst @@ -1,94 +1,94 @@ -.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later -.. c:namespace:: CEC - -.. _CEC_ADAP_PHYS_ADDR: -.. _CEC_ADAP_G_PHYS_ADDR: -.. _CEC_ADAP_S_PHYS_ADDR: - -**************************************************** -ioctls CEC_ADAP_G_PHYS_ADDR and CEC_ADAP_S_PHYS_ADDR -**************************************************** - -Name -==== - -CEC_ADAP_G_PHYS_ADDR, CEC_ADAP_S_PHYS_ADDR - Get or set the physical address - -Synopsis -======== - -.. c:macro:: CEC_ADAP_G_PHYS_ADDR - -``int ioctl(int fd, CEC_ADAP_G_PHYS_ADDR, __u16 *argp)`` - -.. c:macro:: CEC_ADAP_S_PHYS_ADDR - -``int ioctl(int fd, CEC_ADAP_S_PHYS_ADDR, __u16 *argp)`` - -Arguments -========= - -``fd`` - File descriptor returned by :c:func:`open()`. - -``argp`` - Pointer to the CEC address. - -Description -=========== - -To query the current physical address applications call -:ref:`ioctl CEC_ADAP_G_PHYS_ADDR ` with a pointer to a __u16 where the -driver stores the physical address. - -To set a new physical address applications store the physical address in -a __u16 and call :ref:`ioctl CEC_ADAP_S_PHYS_ADDR ` with a pointer to -this integer. The :ref:`ioctl CEC_ADAP_S_PHYS_ADDR ` is only available if -``CEC_CAP_PHYS_ADDR`` is set (the ``ENOTTY`` error code will be returned -otherwise). The :ref:`ioctl CEC_ADAP_S_PHYS_ADDR ` can only be called -by a file descriptor in initiator mode (see :ref:`CEC_S_MODE`), if not -the ``EBUSY`` error code will be returned. - -To clear an existing physical address use ``CEC_PHYS_ADDR_INVALID``. -The adapter will go to the unconfigured state. - -If logical address types have been defined (see :ref:`ioctl CEC_ADAP_S_LOG_ADDRS `), -then this ioctl will block until all -requested logical addresses have been claimed. If the file descriptor is in non-blocking mode -then it will not wait for the logical addresses to be claimed, instead it just returns 0. - -A :ref:`CEC_EVENT_STATE_CHANGE ` event is sent when the physical address -changes. - -The physical address is a 16-bit number where each group of 4 bits -represent a digit of the physical address a.b.c.d where the most -significant 4 bits represent 'a'. The CEC root device (usually the TV) -has address 0.0.0.0. Every device that is hooked up to an input of the -TV has address a.0.0.0 (where 'a' is ≥ 1), devices hooked up to those in -turn have addresses a.b.0.0, etc. So a topology of up to 5 devices deep -is supported. The physical address a device shall use is stored in the -EDID of the sink. - -For example, the EDID for each HDMI input of the TV will have a -different physical address of the form a.0.0.0 that the sources will -read out and use as their physical address. - -Return Value -============ - -On success 0 is returned, on error -1 and the ``errno`` variable is set -appropriately. The generic error codes are described at the -:ref:`Generic Error Codes ` chapter. - -The :ref:`ioctl CEC_ADAP_S_PHYS_ADDR ` can return the following -error codes: - -ENOTTY - The ``CEC_CAP_PHYS_ADDR`` capability wasn't set, so this ioctl is not supported. - -EBUSY - Another filehandle is in exclusive follower or initiator mode, or the filehandle - is in mode ``CEC_MODE_NO_INITIATOR``. - -EINVAL - The physical address is malformed. +.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later +.. c:namespace:: CEC + +.. _CEC_ADAP_PHYS_ADDR: +.. _CEC_ADAP_G_PHYS_ADDR: +.. _CEC_ADAP_S_PHYS_ADDR: + +**************************************************** +ioctls CEC_ADAP_G_PHYS_ADDR and CEC_ADAP_S_PHYS_ADDR +**************************************************** + +Name +==== + +CEC_ADAP_G_PHYS_ADDR, CEC_ADAP_S_PHYS_ADDR - Get or set the physical address + +Synopsis +======== + +.. c:macro:: CEC_ADAP_G_PHYS_ADDR + +``int ioctl(int fd, CEC_ADAP_G_PHYS_ADDR, __u16 *argp)`` + +.. c:macro:: CEC_ADAP_S_PHYS_ADDR + +``int ioctl(int fd, CEC_ADAP_S_PHYS_ADDR, __u16 *argp)`` + +Arguments +========= + +``fd`` + File descriptor returned by :c:func:`open()`. + +``argp`` + Pointer to the CEC address. + +Description +=========== + +To query the current physical address applications call +:ref:`ioctl CEC_ADAP_G_PHYS_ADDR ` with a pointer to a __u16 where the +driver stores the physical address. + +To set a new physical address applications store the physical address in +a __u16 and call :ref:`ioctl CEC_ADAP_S_PHYS_ADDR ` with a pointer to +this integer. The :ref:`ioctl CEC_ADAP_S_PHYS_ADDR ` is only available if +``CEC_CAP_PHYS_ADDR`` is set (the ``ENOTTY`` error code will be returned +otherwise). The :ref:`ioctl CEC_ADAP_S_PHYS_ADDR ` can only be called +by a file descriptor in initiator mode (see :ref:`CEC_S_MODE`), if not +the ``EBUSY`` error code will be returned. + +To clear an existing physical address use ``CEC_PHYS_ADDR_INVALID``. +The adapter will go to the unconfigured state. + +If logical address types have been defined (see :ref:`ioctl CEC_ADAP_S_LOG_ADDRS `), +then this ioctl will block until all +requested logical addresses have been claimed. If the file descriptor is in non-blocking mode +then it will not wait for the logical addresses to be claimed, instead it just returns 0. + +A :ref:`CEC_EVENT_STATE_CHANGE ` event is sent when the physical address +changes. + +The physical address is a 16-bit number where each group of 4 bits +represent a digit of the physical address a.b.c.d where the most +significant 4 bits represent 'a'. The CEC root device (usually the TV) +has address 0.0.0.0. Every device that is hooked up to an input of the +TV has address a.0.0.0 (where 'a' is ≥ 1), devices hooked up to those in +turn have addresses a.b.0.0, etc. So a topology of up to 5 devices deep +is supported. The physical address a device shall use is stored in the +EDID of the sink. + +For example, the EDID for each HDMI input of the TV will have a +different physical address of the form a.0.0.0 that the sources will +read out and use as their physical address. + +Return Value +============ + +On success 0 is returned, on error -1 and the ``errno`` variable is set +appropriately. The generic error codes are described at the +:ref:`Generic Error Codes ` chapter. + +The :ref:`ioctl CEC_ADAP_S_PHYS_ADDR ` can return the following +error codes: + +ENOTTY + The ``CEC_CAP_PHYS_ADDR`` capability wasn't set, so this ioctl is not supported. + +EBUSY + Another filehandle is in exclusive follower or initiator mode, or the filehandle + is in mode ``CEC_MODE_NO_INITIATOR``. + +EINVAL + The physical address is malformed. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/drivers/camera-sensor.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/drivers/camera-sensor.rst index c26402b29..919a50e8b 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/drivers/camera-sensor.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/drivers/camera-sensor.rst @@ -1,104 +1,104 @@ -.. SPDX-License-Identifier: GPL-2.0 - -.. _media_using_camera_sensor_drivers: - -Using camera sensor drivers -=========================== - -This section describes common practices for how the V4L2 sub-device interface is -used to control the camera sensor drivers. - -You may also find :ref:`media_writing_camera_sensor_drivers` useful. - -Frame size ----------- - -There are two distinct ways to configure the frame size produced by camera -sensors. - -Freely configurable camera sensor drivers -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Freely configurable camera sensor drivers expose the device's internal -processing pipeline as one or more sub-devices with different cropping and -scaling configurations. The output size of the device is the result of a series -of cropping and scaling operations from the device's pixel array's size. - -An example of such a driver is the CCS driver. - -Register list based drivers -~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Register list based drivers generally, instead of able to configure the device -they control based on user requests, are limited to a number of preset -configurations that combine a number of different parameters that on hardware -level are independent. How a driver picks such configuration is based on the -format set on a source pad at the end of the device's internal pipeline. - -Most sensor drivers are implemented this way. - -Frame interval configuration ----------------------------- - -There are two different methods for obtaining possibilities for different frame -intervals as well as configuring the frame interval. Which one to implement -depends on the type of the device. - -Raw camera sensors -~~~~~~~~~~~~~~~~~~ - -Instead of a high level parameter such as frame interval, the frame interval is -a result of the configuration of a number of camera sensor implementation -specific parameters. Luckily, these parameters tend to be the same for more or -less all modern raw camera sensors. - -The frame interval is calculated using the following equation:: - - frame interval = (analogue crop width + horizontal blanking) * - (analogue crop height + vertical blanking) / pixel rate - -The formula is bus independent and is applicable for raw timing parameters on -large variety of devices beyond camera sensors. Devices that have no analogue -crop, use the full source image size, i.e. pixel array size. - -Horizontal and vertical blanking are specified by ``V4L2_CID_HBLANK`` and -``V4L2_CID_VBLANK``, respectively. The unit of the ``V4L2_CID_HBLANK`` control -is pixels and the unit of the ``V4L2_CID_VBLANK`` is lines. The pixel rate in -the sensor's **pixel array** is specified by ``V4L2_CID_PIXEL_RATE`` in the same -sub-device. The unit of that control is pixels per second. - -Register list based drivers need to implement read-only sub-device nodes for the -purpose. Devices that are not register list based need these to configure the -device's internal processing pipeline. - -The first entity in the linear pipeline is the pixel array. The pixel array may -be followed by other entities that are there to allow configuring binning, -skipping, scaling or digital crop, see :ref:`VIDIOC_SUBDEV_G_SELECTION -`. - -USB cameras etc. devices -~~~~~~~~~~~~~~~~~~~~~~~~ - -USB video class hardware, as well as many cameras offering a similar higher -level interface natively, generally use the concept of frame interval (or frame -rate) on device level in firmware or hardware. This means lower level controls -implemented by raw cameras may not be used on uAPI (or even kAPI) to control the -frame interval on these devices. - -Rotation, orientation and flipping ----------------------------------- - -Some systems have the camera sensor mounted upside down compared to its natural -mounting rotation. In such cases, drivers shall expose the information to -userspace with the :ref:`V4L2_CID_CAMERA_SENSOR_ROTATION -` control. - -Sensor drivers shall also report the sensor's mounting orientation with the -:ref:`V4L2_CID_CAMERA_SENSOR_ORIENTATION `. - -Sensor drivers that have any vertical or horizontal flips embedded in the -register programming sequences shall initialize the :ref:`V4L2_CID_HFLIP -` and :ref:`V4L2_CID_VFLIP ` controls with the -values programmed by the register sequences. The default values of these -controls shall be 0 (disabled). Especially these controls shall not be inverted, -independently of the sensor's mounting rotation. +.. SPDX-License-Identifier: GPL-2.0 + +.. _media_using_camera_sensor_drivers: + +Using camera sensor drivers +=========================== + +This section describes common practices for how the V4L2 sub-device interface is +used to control the camera sensor drivers. + +You may also find :ref:`media_writing_camera_sensor_drivers` useful. + +Frame size +---------- + +There are two distinct ways to configure the frame size produced by camera +sensors. + +Freely configurable camera sensor drivers +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Freely configurable camera sensor drivers expose the device's internal +processing pipeline as one or more sub-devices with different cropping and +scaling configurations. The output size of the device is the result of a series +of cropping and scaling operations from the device's pixel array's size. + +An example of such a driver is the CCS driver. + +Register list based drivers +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Register list based drivers generally, instead of able to configure the device +they control based on user requests, are limited to a number of preset +configurations that combine a number of different parameters that on hardware +level are independent. How a driver picks such configuration is based on the +format set on a source pad at the end of the device's internal pipeline. + +Most sensor drivers are implemented this way. + +Frame interval configuration +---------------------------- + +There are two different methods for obtaining possibilities for different frame +intervals as well as configuring the frame interval. Which one to implement +depends on the type of the device. + +Raw camera sensors +~~~~~~~~~~~~~~~~~~ + +Instead of a high level parameter such as frame interval, the frame interval is +a result of the configuration of a number of camera sensor implementation +specific parameters. Luckily, these parameters tend to be the same for more or +less all modern raw camera sensors. + +The frame interval is calculated using the following equation:: + + frame interval = (analogue crop width + horizontal blanking) * + (analogue crop height + vertical blanking) / pixel rate + +The formula is bus independent and is applicable for raw timing parameters on +large variety of devices beyond camera sensors. Devices that have no analogue +crop, use the full source image size, i.e. pixel array size. + +Horizontal and vertical blanking are specified by ``V4L2_CID_HBLANK`` and +``V4L2_CID_VBLANK``, respectively. The unit of the ``V4L2_CID_HBLANK`` control +is pixels and the unit of the ``V4L2_CID_VBLANK`` is lines. The pixel rate in +the sensor's **pixel array** is specified by ``V4L2_CID_PIXEL_RATE`` in the same +sub-device. The unit of that control is pixels per second. + +Register list based drivers need to implement read-only sub-device nodes for the +purpose. Devices that are not register list based need these to configure the +device's internal processing pipeline. + +The first entity in the linear pipeline is the pixel array. The pixel array may +be followed by other entities that are there to allow configuring binning, +skipping, scaling or digital crop, see :ref:`VIDIOC_SUBDEV_G_SELECTION +`. + +USB cameras etc. devices +~~~~~~~~~~~~~~~~~~~~~~~~ + +USB video class hardware, as well as many cameras offering a similar higher +level interface natively, generally use the concept of frame interval (or frame +rate) on device level in firmware or hardware. This means lower level controls +implemented by raw cameras may not be used on uAPI (or even kAPI) to control the +frame interval on these devices. + +Rotation, orientation and flipping +---------------------------------- + +Some systems have the camera sensor mounted upside down compared to its natural +mounting rotation. In such cases, drivers shall expose the information to +userspace with the :ref:`V4L2_CID_CAMERA_SENSOR_ROTATION +` control. + +Sensor drivers shall also report the sensor's mounting orientation with the +:ref:`V4L2_CID_CAMERA_SENSOR_ORIENTATION `. + +Sensor drivers that have any vertical or horizontal flips embedded in the +register programming sequences shall initialize the :ref:`V4L2_CID_HFLIP +` and :ref:`V4L2_CID_VFLIP ` controls with the +values programmed by the register sequences. The default values of these +controls shall be 0 (disabled). Especially these controls shall not be inverted, +independently of the sensor's mounting rotation. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/drivers/ccs.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/drivers/ccs.rst index 250498599..03015b33d 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/drivers/ccs.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/drivers/ccs.rst @@ -1,114 +1,114 @@ -.. SPDX-License-Identifier: GPL-2.0-only - -.. include:: - -.. _media-ccs-uapi: - -MIPI CCS camera sensor driver -============================= - -The MIPI CCS camera sensor driver is a generic driver for `MIPI CCS -`_ compliant -camera sensors. It exposes three sub-devices representing the pixel array, -the binner and the scaler. - -As the capabilities of individual devices vary, the driver exposes -interfaces based on the capabilities that exist in hardware. - -Also see :ref:`the CCS driver kernel documentation `. - -Pixel Array sub-device ----------------------- - -The pixel array sub-device represents the camera sensor's pixel matrix, as well -as analogue crop functionality present in many compliant devices. The analogue -crop is configured using the ``V4L2_SEL_TGT_CROP`` on the source pad (0) of the -entity. The size of the pixel matrix can be obtained by getting the -``V4L2_SEL_TGT_NATIVE_SIZE`` target. - -Binner ------- - -The binner sub-device represents the binning functionality on the sensor. For -that purpose, selection target ``V4L2_SEL_TGT_COMPOSE`` is supported on the -sink pad (0). - -Additionally, if a device has no scaler or digital crop functionality, the -source pad (1) exposes another digital crop selection rectangle that can only -crop at the end of the lines and frames. - -Scaler ------- - -The scaler sub-device represents the digital crop and scaling functionality of -the sensor. The V4L2 selection target ``V4L2_SEL_TGT_CROP`` is used to -configure the digital crop on the sink pad (0) when digital crop is supported. -Scaling is configured using selection target ``V4L2_SEL_TGT_COMPOSE`` on the -sink pad (0) as well. - -Additionally, if the scaler sub-device exists, its source pad (1) exposes -another digital crop selection rectangle that can only crop at the end of the -lines and frames. - -Digital and analogue crop -------------------------- - -Digital crop functionality is referred to as cropping that effectively works by -dropping some data on the floor. Analogue crop, on the other hand, means that -the cropped information is never retrieved. In case of camera sensors, the -analogue data is never read from the pixel matrix that are outside the -configured selection rectangle that designates crop. The difference has an -effect in device timing and likely also in power consumption. - -Private controls ----------------- - -The MIPI CCS driver implements a number of private controls under -``V4L2_CID_USER_BASE_CCS`` to control the MIPI CCS compliant camera sensors. - -Analogue gain model -~~~~~~~~~~~~~~~~~~~ - -The CCS defines an analogue gain model where the gain can be calculated using -the following formula: - - gain = m0 * x + c0 / (m1 * x + c1) - -Either m0 or c0 will be zero. The constants that are device specific, can be -obtained from the following controls: - - V4L2_CID_CCS_ANALOGUE_GAIN_M0 - V4L2_CID_CCS_ANALOGUE_GAIN_M1 - V4L2_CID_CCS_ANALOGUE_GAIN_C0 - V4L2_CID_CCS_ANALOGUE_GAIN_C1 - -The analogue gain (``x`` in the formula) is controlled through -``V4L2_CID_ANALOGUE_GAIN`` in this case. - -Alternate analogue gain model -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -The CCS defines another analogue gain model called alternate analogue gain. In -this case, the formula to calculate actual gain consists of linear and -exponential parts: - - gain = linear * 2 ^ exponent - -The ``linear`` and ``exponent`` factors can be set using the -``V4L2_CID_CCS_ANALOGUE_LINEAR_GAIN`` and -``V4L2_CID_CCS_ANALOGUE_EXPONENTIAL_GAIN`` controls, respectively - -Shading correction -~~~~~~~~~~~~~~~~~~ - -The CCS standard supports lens shading correction. The feature can be controlled -using ``V4L2_CID_CCS_SHADING_CORRECTION``. Additionally, the luminance -correction level may be changed using -``V4L2_CID_CCS_LUMINANCE_CORRECTION_LEVEL``, where value 0 indicates no -correction and 128 indicates correcting the luminance in corners to 10 % less -than in the centre. - -Shading correction needs to be enabled for luminance correction level to have an -effect. - -**Copyright** |copy| 2020 Intel Corporation +.. SPDX-License-Identifier: GPL-2.0-only + +.. include:: + +.. _media-ccs-uapi: + +MIPI CCS camera sensor driver +============================= + +The MIPI CCS camera sensor driver is a generic driver for `MIPI CCS +`_ compliant +camera sensors. It exposes three sub-devices representing the pixel array, +the binner and the scaler. + +As the capabilities of individual devices vary, the driver exposes +interfaces based on the capabilities that exist in hardware. + +Also see :ref:`the CCS driver kernel documentation `. + +Pixel Array sub-device +---------------------- + +The pixel array sub-device represents the camera sensor's pixel matrix, as well +as analogue crop functionality present in many compliant devices. The analogue +crop is configured using the ``V4L2_SEL_TGT_CROP`` on the source pad (0) of the +entity. The size of the pixel matrix can be obtained by getting the +``V4L2_SEL_TGT_NATIVE_SIZE`` target. + +Binner +------ + +The binner sub-device represents the binning functionality on the sensor. For +that purpose, selection target ``V4L2_SEL_TGT_COMPOSE`` is supported on the +sink pad (0). + +Additionally, if a device has no scaler or digital crop functionality, the +source pad (1) exposes another digital crop selection rectangle that can only +crop at the end of the lines and frames. + +Scaler +------ + +The scaler sub-device represents the digital crop and scaling functionality of +the sensor. The V4L2 selection target ``V4L2_SEL_TGT_CROP`` is used to +configure the digital crop on the sink pad (0) when digital crop is supported. +Scaling is configured using selection target ``V4L2_SEL_TGT_COMPOSE`` on the +sink pad (0) as well. + +Additionally, if the scaler sub-device exists, its source pad (1) exposes +another digital crop selection rectangle that can only crop at the end of the +lines and frames. + +Digital and analogue crop +------------------------- + +Digital crop functionality is referred to as cropping that effectively works by +dropping some data on the floor. Analogue crop, on the other hand, means that +the cropped information is never retrieved. In case of camera sensors, the +analogue data is never read from the pixel matrix that are outside the +configured selection rectangle that designates crop. The difference has an +effect in device timing and likely also in power consumption. + +Private controls +---------------- + +The MIPI CCS driver implements a number of private controls under +``V4L2_CID_USER_BASE_CCS`` to control the MIPI CCS compliant camera sensors. + +Analogue gain model +~~~~~~~~~~~~~~~~~~~ + +The CCS defines an analogue gain model where the gain can be calculated using +the following formula: + + gain = m0 * x + c0 / (m1 * x + c1) + +Either m0 or c0 will be zero. The constants that are device specific, can be +obtained from the following controls: + + V4L2_CID_CCS_ANALOGUE_GAIN_M0 + V4L2_CID_CCS_ANALOGUE_GAIN_M1 + V4L2_CID_CCS_ANALOGUE_GAIN_C0 + V4L2_CID_CCS_ANALOGUE_GAIN_C1 + +The analogue gain (``x`` in the formula) is controlled through +``V4L2_CID_ANALOGUE_GAIN`` in this case. + +Alternate analogue gain model +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The CCS defines another analogue gain model called alternate analogue gain. In +this case, the formula to calculate actual gain consists of linear and +exponential parts: + + gain = linear * 2 ^ exponent + +The ``linear`` and ``exponent`` factors can be set using the +``V4L2_CID_CCS_ANALOGUE_LINEAR_GAIN`` and +``V4L2_CID_CCS_ANALOGUE_EXPONENTIAL_GAIN`` controls, respectively + +Shading correction +~~~~~~~~~~~~~~~~~~ + +The CCS standard supports lens shading correction. The feature can be controlled +using ``V4L2_CID_CCS_SHADING_CORRECTION``. Additionally, the luminance +correction level may be changed using +``V4L2_CID_CCS_LUMINANCE_CORRECTION_LEVEL``, where value 0 indicates no +correction and 128 indicates correcting the luminance in corners to 10 % less +than in the centre. + +Shading correction needs to be enabled for luminance correction level to have an +effect. + +**Copyright** |copy| 2020 Intel Corporation diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/drivers/dw100.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/drivers/dw100.rst index 2eb5e3d5d..fceea6ece 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/drivers/dw100.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/drivers/dw100.rst @@ -1,84 +1,84 @@ -.. SPDX-License-Identifier: GPL-2.0 - -DW100 dewarp driver -=================== - -The Vivante DW100 Dewarp Processor IP core found on i.MX8MP SoC applies a -programmable geometrical transformation on the input image to correct distortion -introduced by lenses. - -The transformation function is exposed by the hardware as a grid map with 16x16 -pixel macroblocks indexed using X, Y vertex coordinates. -:: - - Image width - <---------------------------------------> - - ^ .-------.-------.-------.-------.-------. - | | 16x16 | | | | | - I | | pixel | | | | | - m | | block | | | | | - a | .-------.-------.-------.-------.-------. - g | | | | | | | - e | | | | | | | - | | | | | | | - h | .-------.-------.-------.-------.-------. - e | | | | | | | - i | | | | | | | - g | | | | | | | - h | .-------.-------.-------.-------.-------. - t | | | | | | | - | | | | | | | - | | | | | | | - v '-------'-------'-------'-------'-------' - - Grid of Image Blocks for Dewarping Map - - -Each x, y coordinate register uses 16 bits to record the coordinate address in -an unsigned 12.4 fixed point format (UQ12.4). -:: - - .----------------------.--------..----------------------.--------. - | 31~20 | 19~16 || 15~4 | 3~0 | - | (integer) | (frac) || (integer) | (frac) | - '----------------------'--------''----------------------'--------' - <-------------------------------><-------------------------------> - Y coordinate X coordinate - - Remap Register Layout - -The dewarping map is set from applications using the -V4L2_CID_DW100_DEWARPING_16x16_VERTEX_MAP control. The control contains -an array of u32 values storing (x, y) destination coordinates for each -vertex of the grid. The x coordinate is stored in the 16 LSBs and the y -coordinate in the 16 MSBs. - -The number of elements in the array must match the image size: - -.. code-block:: C - - elems = (DIV_ROUND_UP(width, 16) + 1) * (DIV_ROUND_UP(height, 16) + 1); - -If the control has not been set by the application, the driver uses an identity -map. - -More details on the DW100 hardware operations can be found in -*chapter 13.15 DeWarp* of IMX8MP_ reference manual. - -The Vivante DW100 m2m driver implements the following driver-specific control: - -``V4L2_CID_DW100_DEWARPING_16x16_VERTEX_MAP (__u32 array)`` - Specifies to DW100 driver its dewarping map (aka LUT) blob as described in - *chapter 13.15.2.3 Dewarping Remap* of IMX8MP_ reference manual as an U32 - dynamic array. The image is divided into many small 16x16 blocks. If the - width/height of the image is not divisible by 16, the size of the - rightmost/bottommost block is the remainder. The dewarping map only saves - the vertex coordinates of the block. The dewarping grid map is comprised of - vertex coordinates for x and y. Each x, y coordinate register uses 16 bits - (UQ12.4) to record the coordinate address, with the Y coordinate in the - upper bits and X in the lower bits. The driver modifies the dimensions of - this control when the sink format is changed, to reflect the new input - resolution. - -.. _IMX8MP: https://www.nxp.com/webapp/Download?colCode=IMX8MPRM +.. SPDX-License-Identifier: GPL-2.0 + +DW100 dewarp driver +=================== + +The Vivante DW100 Dewarp Processor IP core found on i.MX8MP SoC applies a +programmable geometrical transformation on the input image to correct distortion +introduced by lenses. + +The transformation function is exposed by the hardware as a grid map with 16x16 +pixel macroblocks indexed using X, Y vertex coordinates. +:: + + Image width + <---------------------------------------> + + ^ .-------.-------.-------.-------.-------. + | | 16x16 | | | | | + I | | pixel | | | | | + m | | block | | | | | + a | .-------.-------.-------.-------.-------. + g | | | | | | | + e | | | | | | | + | | | | | | | + h | .-------.-------.-------.-------.-------. + e | | | | | | | + i | | | | | | | + g | | | | | | | + h | .-------.-------.-------.-------.-------. + t | | | | | | | + | | | | | | | + | | | | | | | + v '-------'-------'-------'-------'-------' + + Grid of Image Blocks for Dewarping Map + + +Each x, y coordinate register uses 16 bits to record the coordinate address in +an unsigned 12.4 fixed point format (UQ12.4). +:: + + .----------------------.--------..----------------------.--------. + | 31~20 | 19~16 || 15~4 | 3~0 | + | (integer) | (frac) || (integer) | (frac) | + '----------------------'--------''----------------------'--------' + <-------------------------------><-------------------------------> + Y coordinate X coordinate + + Remap Register Layout + +The dewarping map is set from applications using the +V4L2_CID_DW100_DEWARPING_16x16_VERTEX_MAP control. The control contains +an array of u32 values storing (x, y) destination coordinates for each +vertex of the grid. The x coordinate is stored in the 16 LSBs and the y +coordinate in the 16 MSBs. + +The number of elements in the array must match the image size: + +.. code-block:: C + + elems = (DIV_ROUND_UP(width, 16) + 1) * (DIV_ROUND_UP(height, 16) + 1); + +If the control has not been set by the application, the driver uses an identity +map. + +More details on the DW100 hardware operations can be found in +*chapter 13.15 DeWarp* of IMX8MP_ reference manual. + +The Vivante DW100 m2m driver implements the following driver-specific control: + +``V4L2_CID_DW100_DEWARPING_16x16_VERTEX_MAP (__u32 array)`` + Specifies to DW100 driver its dewarping map (aka LUT) blob as described in + *chapter 13.15.2.3 Dewarping Remap* of IMX8MP_ reference manual as an U32 + dynamic array. The image is divided into many small 16x16 blocks. If the + width/height of the image is not divisible by 16, the size of the + rightmost/bottommost block is the remainder. The dewarping map only saves + the vertex coordinates of the block. The dewarping grid map is comprised of + vertex coordinates for x and y. Each x, y coordinate register uses 16 bits + (UQ12.4) to record the coordinate address, with the Y coordinate in the + upper bits and X in the lower bits. The driver modifies the dimensions of + this control when the sink format is changed, to reflect the new input + resolution. + +.. _IMX8MP: https://www.nxp.com/webapp/Download?colCode=IMX8MPRM diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/drivers/imx-uapi.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/drivers/imx-uapi.rst index f0a0a37db..8d47712de 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/drivers/imx-uapi.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/drivers/imx-uapi.rst @@ -1,125 +1,125 @@ -.. SPDX-License-Identifier: GPL-2.0 - -========================= -i.MX Video Capture Driver -========================= - -Events -====== - -.. _imx_api_ipuX_csiY: - -ipuX_csiY ---------- - -This subdev can generate the following event when enabling the second -IDMAC source pad: - -- V4L2_EVENT_IMX_FRAME_INTERVAL_ERROR - -The user application can subscribe to this event from the ipuX_csiY -subdev node. This event is generated by the Frame Interval Monitor -(see below for more on the FIM). - -Controls -======== - -.. _imx_api_FIM: - -Frame Interval Monitor in ipuX_csiY ------------------------------------ - -The adv718x decoders can occasionally send corrupt fields during -NTSC/PAL signal re-sync (too little or too many video lines). When -this happens, the IPU triggers a mechanism to re-establish vertical -sync by adding 1 dummy line every frame, which causes a rolling effect -from image to image, and can last a long time before a stable image is -recovered. Or sometimes the mechanism doesn't work at all, causing a -permanent split image (one frame contains lines from two consecutive -captured images). - -From experiment it was found that during image rolling, the frame -intervals (elapsed time between two EOF's) drop below the nominal -value for the current standard, by about one frame time (60 usec), -and remain at that value until rolling stops. - -While the reason for this observation isn't known (the IPU dummy -line mechanism should show an increase in the intervals by 1 line -time every frame, not a fixed value), we can use it to detect the -corrupt fields using a frame interval monitor. If the FIM detects a -bad frame interval, the ipuX_csiY subdev will send the event -V4L2_EVENT_IMX_FRAME_INTERVAL_ERROR. Userland can register with -the FIM event notification on the ipuX_csiY subdev device node. -Userland can issue a streaming restart when this event is received -to correct the rolling/split image. - -The ipuX_csiY subdev includes custom controls to tweak some dials for -FIM. If one of these controls is changed during streaming, the FIM will -be reset and will continue at the new settings. - -- V4L2_CID_IMX_FIM_ENABLE - -Enable/disable the FIM. - -- V4L2_CID_IMX_FIM_NUM - -How many frame interval measurements to average before comparing against -the nominal frame interval reported by the sensor. This can reduce noise -caused by interrupt latency. - -- V4L2_CID_IMX_FIM_TOLERANCE_MIN - -If the averaged intervals fall outside nominal by this amount, in -microseconds, the V4L2_EVENT_IMX_FRAME_INTERVAL_ERROR event is sent. - -- V4L2_CID_IMX_FIM_TOLERANCE_MAX - -If any intervals are higher than this value, those samples are -discarded and do not enter into the average. This can be used to -discard really high interval errors that might be due to interrupt -latency from high system load. - -- V4L2_CID_IMX_FIM_NUM_SKIP - -How many frames to skip after a FIM reset or stream restart before -FIM begins to average intervals. - -- V4L2_CID_IMX_FIM_ICAP_CHANNEL / V4L2_CID_IMX_FIM_ICAP_EDGE - -These controls will configure an input capture channel as the method -for measuring frame intervals. This is superior to the default method -of measuring frame intervals via EOF interrupt, since it is not subject -to uncertainty errors introduced by interrupt latency. - -Input capture requires hardware support. A VSYNC signal must be routed -to one of the i.MX6 input capture channel pads. - -V4L2_CID_IMX_FIM_ICAP_CHANNEL configures which i.MX6 input capture -channel to use. This must be 0 or 1. - -V4L2_CID_IMX_FIM_ICAP_EDGE configures which signal edge will trigger -input capture events. By default the input capture method is disabled -with a value of IRQ_TYPE_NONE. Set this control to IRQ_TYPE_EDGE_RISING, -IRQ_TYPE_EDGE_FALLING, or IRQ_TYPE_EDGE_BOTH to enable input capture, -triggered on the given signal edge(s). - -When input capture is disabled, frame intervals will be measured via -EOF interrupt. - - -File list ---------- - -drivers/staging/media/imx/ -include/media/imx.h -include/linux/imx-media.h - - -Authors -------- - -- Steve Longerbeam -- Philipp Zabel -- Russell King - -Copyright (C) 2012-2017 Mentor Graphics Inc. +.. SPDX-License-Identifier: GPL-2.0 + +========================= +i.MX Video Capture Driver +========================= + +Events +====== + +.. _imx_api_ipuX_csiY: + +ipuX_csiY +--------- + +This subdev can generate the following event when enabling the second +IDMAC source pad: + +- V4L2_EVENT_IMX_FRAME_INTERVAL_ERROR + +The user application can subscribe to this event from the ipuX_csiY +subdev node. This event is generated by the Frame Interval Monitor +(see below for more on the FIM). + +Controls +======== + +.. _imx_api_FIM: + +Frame Interval Monitor in ipuX_csiY +----------------------------------- + +The adv718x decoders can occasionally send corrupt fields during +NTSC/PAL signal re-sync (too little or too many video lines). When +this happens, the IPU triggers a mechanism to re-establish vertical +sync by adding 1 dummy line every frame, which causes a rolling effect +from image to image, and can last a long time before a stable image is +recovered. Or sometimes the mechanism doesn't work at all, causing a +permanent split image (one frame contains lines from two consecutive +captured images). + +From experiment it was found that during image rolling, the frame +intervals (elapsed time between two EOF's) drop below the nominal +value for the current standard, by about one frame time (60 usec), +and remain at that value until rolling stops. + +While the reason for this observation isn't known (the IPU dummy +line mechanism should show an increase in the intervals by 1 line +time every frame, not a fixed value), we can use it to detect the +corrupt fields using a frame interval monitor. If the FIM detects a +bad frame interval, the ipuX_csiY subdev will send the event +V4L2_EVENT_IMX_FRAME_INTERVAL_ERROR. Userland can register with +the FIM event notification on the ipuX_csiY subdev device node. +Userland can issue a streaming restart when this event is received +to correct the rolling/split image. + +The ipuX_csiY subdev includes custom controls to tweak some dials for +FIM. If one of these controls is changed during streaming, the FIM will +be reset and will continue at the new settings. + +- V4L2_CID_IMX_FIM_ENABLE + +Enable/disable the FIM. + +- V4L2_CID_IMX_FIM_NUM + +How many frame interval measurements to average before comparing against +the nominal frame interval reported by the sensor. This can reduce noise +caused by interrupt latency. + +- V4L2_CID_IMX_FIM_TOLERANCE_MIN + +If the averaged intervals fall outside nominal by this amount, in +microseconds, the V4L2_EVENT_IMX_FRAME_INTERVAL_ERROR event is sent. + +- V4L2_CID_IMX_FIM_TOLERANCE_MAX + +If any intervals are higher than this value, those samples are +discarded and do not enter into the average. This can be used to +discard really high interval errors that might be due to interrupt +latency from high system load. + +- V4L2_CID_IMX_FIM_NUM_SKIP + +How many frames to skip after a FIM reset or stream restart before +FIM begins to average intervals. + +- V4L2_CID_IMX_FIM_ICAP_CHANNEL / V4L2_CID_IMX_FIM_ICAP_EDGE + +These controls will configure an input capture channel as the method +for measuring frame intervals. This is superior to the default method +of measuring frame intervals via EOF interrupt, since it is not subject +to uncertainty errors introduced by interrupt latency. + +Input capture requires hardware support. A VSYNC signal must be routed +to one of the i.MX6 input capture channel pads. + +V4L2_CID_IMX_FIM_ICAP_CHANNEL configures which i.MX6 input capture +channel to use. This must be 0 or 1. + +V4L2_CID_IMX_FIM_ICAP_EDGE configures which signal edge will trigger +input capture events. By default the input capture method is disabled +with a value of IRQ_TYPE_NONE. Set this control to IRQ_TYPE_EDGE_RISING, +IRQ_TYPE_EDGE_FALLING, or IRQ_TYPE_EDGE_BOTH to enable input capture, +triggered on the given signal edge(s). + +When input capture is disabled, frame intervals will be measured via +EOF interrupt. + + +File list +--------- + +drivers/staging/media/imx/ +include/media/imx.h +include/linux/imx-media.h + + +Authors +------- + +- Steve Longerbeam +- Philipp Zabel +- Russell King + +Copyright (C) 2012-2017 Mentor Graphics Inc. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/dvb/dmx-mmap.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/dvb/dmx-mmap.rst index 8aadae9e5..8826c6226 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/dvb/dmx-mmap.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/dvb/dmx-mmap.rst @@ -1,115 +1,115 @@ -.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later -.. c:namespace:: DTV.dmx - -.. _dmx-mmap: - -***************** -Digital TV mmap() -***************** - -Name -==== - -dmx-mmap - Map device memory into application address space - -.. warning:: this API is still experimental - -Synopsis -======== - -.. code-block:: c - - #include - #include - -.. c:function:: void *mmap( void *start, size_t length, int prot, int flags, int fd, off_t offset ) - -Arguments -========= - -``start`` - Map the buffer to this address in the application's address space. - When the ``MAP_FIXED`` flag is specified, ``start`` must be a - multiple of the pagesize and mmap will fail when the specified - address cannot be used. Use of this option is discouraged; - applications should just specify a ``NULL`` pointer here. - -``length`` - Length of the memory area to map. This must be a multiple of the - DVB packet length (188, on most drivers). - -``prot`` - The ``prot`` argument describes the desired memory protection. - Regardless of the device type and the direction of data exchange it - should be set to ``PROT_READ`` | ``PROT_WRITE``, permitting read - and write access to image buffers. Drivers should support at least - this combination of flags. - -``flags`` - The ``flags`` parameter specifies the type of the mapped object, - mapping options and whether modifications made to the mapped copy of - the page are private to the process or are to be shared with other - references. - - ``MAP_FIXED`` requests that the driver selects no other address than - the one specified. If the specified address cannot be used, - :c:func:`mmap()` will fail. If ``MAP_FIXED`` is specified, - ``start`` must be a multiple of the pagesize. Use of this option is - discouraged. - - One of the ``MAP_SHARED`` or ``MAP_PRIVATE`` flags must be set. - ``MAP_SHARED`` allows applications to share the mapped memory with - other (e. g. child-) processes. - - .. note:: - - The Linux Digital TV applications should not set the - ``MAP_PRIVATE``, ``MAP_DENYWRITE``, ``MAP_EXECUTABLE`` or ``MAP_ANON`` - flags. - -``fd`` - File descriptor returned by :c:func:`open()`. - -``offset`` - Offset of the buffer in device memory, as returned by - :ref:`DMX_QUERYBUF` ioctl. - -Description -=========== - -The :c:func:`mmap()` function asks to map ``length`` bytes starting at -``offset`` in the memory of the device specified by ``fd`` into the -application address space, preferably at address ``start``. This latter -address is a hint only, and is usually specified as 0. - -Suitable length and offset parameters are queried with the -:ref:`DMX_QUERYBUF` ioctl. Buffers must be allocated with the -:ref:`DMX_REQBUFS` ioctl before they can be queried. - -To unmap buffers the :c:func:`munmap()` function is used. - -Return Value -============ - -On success :c:func:`mmap()` returns a pointer to the mapped buffer. On -error ``MAP_FAILED`` (-1) is returned, and the ``errno`` variable is set -appropriately. Possible error codes are: - -EBADF - ``fd`` is not a valid file descriptor. - -EACCES - ``fd`` is not open for reading and writing. - -EINVAL - The ``start`` or ``length`` or ``offset`` are not suitable. (E. g. - they are too large, or not aligned on a ``PAGESIZE`` boundary.) - - The ``flags`` or ``prot`` value is not supported. - - No buffers have been allocated with the - :ref:`DMX_REQBUFS` ioctl. - -ENOMEM - Not enough physical or virtual memory was available to complete the - request. +.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later +.. c:namespace:: DTV.dmx + +.. _dmx-mmap: + +***************** +Digital TV mmap() +***************** + +Name +==== + +dmx-mmap - Map device memory into application address space + +.. warning:: this API is still experimental + +Synopsis +======== + +.. code-block:: c + + #include + #include + +.. c:function:: void *mmap( void *start, size_t length, int prot, int flags, int fd, off_t offset ) + +Arguments +========= + +``start`` + Map the buffer to this address in the application's address space. + When the ``MAP_FIXED`` flag is specified, ``start`` must be a + multiple of the pagesize and mmap will fail when the specified + address cannot be used. Use of this option is discouraged; + applications should just specify a ``NULL`` pointer here. + +``length`` + Length of the memory area to map. This must be a multiple of the + DVB packet length (188, on most drivers). + +``prot`` + The ``prot`` argument describes the desired memory protection. + Regardless of the device type and the direction of data exchange it + should be set to ``PROT_READ`` | ``PROT_WRITE``, permitting read + and write access to image buffers. Drivers should support at least + this combination of flags. + +``flags`` + The ``flags`` parameter specifies the type of the mapped object, + mapping options and whether modifications made to the mapped copy of + the page are private to the process or are to be shared with other + references. + + ``MAP_FIXED`` requests that the driver selects no other address than + the one specified. If the specified address cannot be used, + :c:func:`mmap()` will fail. If ``MAP_FIXED`` is specified, + ``start`` must be a multiple of the pagesize. Use of this option is + discouraged. + + One of the ``MAP_SHARED`` or ``MAP_PRIVATE`` flags must be set. + ``MAP_SHARED`` allows applications to share the mapped memory with + other (e. g. child-) processes. + + .. note:: + + The Linux Digital TV applications should not set the + ``MAP_PRIVATE``, ``MAP_DENYWRITE``, ``MAP_EXECUTABLE`` or ``MAP_ANON`` + flags. + +``fd`` + File descriptor returned by :c:func:`open()`. + +``offset`` + Offset of the buffer in device memory, as returned by + :ref:`DMX_QUERYBUF` ioctl. + +Description +=========== + +The :c:func:`mmap()` function asks to map ``length`` bytes starting at +``offset`` in the memory of the device specified by ``fd`` into the +application address space, preferably at address ``start``. This latter +address is a hint only, and is usually specified as 0. + +Suitable length and offset parameters are queried with the +:ref:`DMX_QUERYBUF` ioctl. Buffers must be allocated with the +:ref:`DMX_REQBUFS` ioctl before they can be queried. + +To unmap buffers the :c:func:`munmap()` function is used. + +Return Value +============ + +On success :c:func:`mmap()` returns a pointer to the mapped buffer. On +error ``MAP_FAILED`` (-1) is returned, and the ``errno`` variable is set +appropriately. Possible error codes are: + +EBADF + ``fd`` is not a valid file descriptor. + +EACCES + ``fd`` is not open for reading and writing. + +EINVAL + The ``start`` or ``length`` or ``offset`` are not suitable. (E. g. + they are too large, or not aligned on a ``PAGESIZE`` boundary.) + + The ``flags`` or ``prot`` value is not supported. + + No buffers have been allocated with the + :ref:`DMX_REQBUFS` ioctl. + +ENOMEM + Not enough physical or virtual memory was available to complete the + request. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/dvb/dvb-frontend-parameters.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/dvb/dvb-frontend-parameters.rst index f18fd1e46..9dd2f5424 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/dvb/dvb-frontend-parameters.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/dvb/dvb-frontend-parameters.rst @@ -1,119 +1,119 @@ -.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later - -.. c:type:: dvb_frontend_parameters - -******************* -frontend parameters -******************* - -The kind of parameters passed to the frontend device for tuning depend -on the kind of hardware you are using. - -The struct ``dvb_frontend_parameters`` uses a union with specific -per-system parameters. However, as newer delivery systems required more -data, the structure size weren't enough to fit, and just extending its -size would break the existing applications. So, those parameters were -replaced by the usage of -:ref:`FE_GET_PROPERTY/FE_SET_PROPERTY ` -ioctl's. The new API is flexible enough to add new parameters to -existing delivery systems, and to add newer delivery systems. - -So, newer applications should use -:ref:`FE_GET_PROPERTY/FE_SET_PROPERTY ` -instead, in order to be able to support the newer System Delivery like -DVB-S2, DVB-T2, DVB-C2, ISDB, etc. - -All kinds of parameters are combined as a union in the -``dvb_frontend_parameters`` structure: - - -.. code-block:: c - - struct dvb_frontend_parameters { - uint32_t frequency; /* (absolute) frequency in Hz for QAM/OFDM */ - /* intermediate frequency in kHz for QPSK */ - fe_spectral_inversion_t inversion; - union { - struct dvb_qpsk_parameters qpsk; - struct dvb_qam_parameters qam; - struct dvb_ofdm_parameters ofdm; - struct dvb_vsb_parameters vsb; - } u; - }; - -In the case of QPSK frontends the ``frequency`` field specifies the -intermediate frequency, i.e. the offset which is effectively added to -the local oscillator frequency (LOF) of the LNB. The intermediate -frequency has to be specified in units of kHz. For QAM and OFDM -frontends the ``frequency`` specifies the absolute frequency and is -given in Hz. - - -.. c:type:: dvb_qpsk_parameters - -QPSK parameters -=============== - -For satellite QPSK frontends you have to use the ``dvb_qpsk_parameters`` -structure: - - -.. code-block:: c - - struct dvb_qpsk_parameters { - uint32_t symbol_rate; /* symbol rate in Symbols per second */ - fe_code_rate_t fec_inner; /* forward error correction (see above) */ - }; - - -.. c:type:: dvb_qam_parameters - -QAM parameters -============== - -for cable QAM frontend you use the ``dvb_qam_parameters`` structure: - - -.. code-block:: c - - struct dvb_qam_parameters { - uint32_t symbol_rate; /* symbol rate in Symbols per second */ - fe_code_rate_t fec_inner; /* forward error correction (see above) */ - fe_modulation_t modulation; /* modulation type (see above) */ - }; - - -.. c:type:: dvb_vsb_parameters - -VSB parameters -============== - -ATSC frontends are supported by the ``dvb_vsb_parameters`` structure: - - -.. code-block:: c - - struct dvb_vsb_parameters { - fe_modulation_t modulation; /* modulation type (see above) */ - }; - - -.. c:type:: dvb_ofdm_parameters - -OFDM parameters -=============== - -DVB-T frontends are supported by the ``dvb_ofdm_parameters`` structure: - - -.. code-block:: c - - struct dvb_ofdm_parameters { - fe_bandwidth_t bandwidth; - fe_code_rate_t code_rate_HP; /* high priority stream code rate */ - fe_code_rate_t code_rate_LP; /* low priority stream code rate */ - fe_modulation_t constellation; /* modulation type (see above) */ - fe_transmit_mode_t transmission_mode; - fe_guard_interval_t guard_interval; - fe_hierarchy_t hierarchy_information; - }; +.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later + +.. c:type:: dvb_frontend_parameters + +******************* +frontend parameters +******************* + +The kind of parameters passed to the frontend device for tuning depend +on the kind of hardware you are using. + +The struct ``dvb_frontend_parameters`` uses a union with specific +per-system parameters. However, as newer delivery systems required more +data, the structure size weren't enough to fit, and just extending its +size would break the existing applications. So, those parameters were +replaced by the usage of +:ref:`FE_GET_PROPERTY/FE_SET_PROPERTY ` +ioctl's. The new API is flexible enough to add new parameters to +existing delivery systems, and to add newer delivery systems. + +So, newer applications should use +:ref:`FE_GET_PROPERTY/FE_SET_PROPERTY ` +instead, in order to be able to support the newer System Delivery like +DVB-S2, DVB-T2, DVB-C2, ISDB, etc. + +All kinds of parameters are combined as a union in the +``dvb_frontend_parameters`` structure: + + +.. code-block:: c + + struct dvb_frontend_parameters { + uint32_t frequency; /* (absolute) frequency in Hz for QAM/OFDM */ + /* intermediate frequency in kHz for QPSK */ + fe_spectral_inversion_t inversion; + union { + struct dvb_qpsk_parameters qpsk; + struct dvb_qam_parameters qam; + struct dvb_ofdm_parameters ofdm; + struct dvb_vsb_parameters vsb; + } u; + }; + +In the case of QPSK frontends the ``frequency`` field specifies the +intermediate frequency, i.e. the offset which is effectively added to +the local oscillator frequency (LOF) of the LNB. The intermediate +frequency has to be specified in units of kHz. For QAM and OFDM +frontends the ``frequency`` specifies the absolute frequency and is +given in Hz. + + +.. c:type:: dvb_qpsk_parameters + +QPSK parameters +=============== + +For satellite QPSK frontends you have to use the ``dvb_qpsk_parameters`` +structure: + + +.. code-block:: c + + struct dvb_qpsk_parameters { + uint32_t symbol_rate; /* symbol rate in Symbols per second */ + fe_code_rate_t fec_inner; /* forward error correction (see above) */ + }; + + +.. c:type:: dvb_qam_parameters + +QAM parameters +============== + +for cable QAM frontend you use the ``dvb_qam_parameters`` structure: + + +.. code-block:: c + + struct dvb_qam_parameters { + uint32_t symbol_rate; /* symbol rate in Symbols per second */ + fe_code_rate_t fec_inner; /* forward error correction (see above) */ + fe_modulation_t modulation; /* modulation type (see above) */ + }; + + +.. c:type:: dvb_vsb_parameters + +VSB parameters +============== + +ATSC frontends are supported by the ``dvb_vsb_parameters`` structure: + + +.. code-block:: c + + struct dvb_vsb_parameters { + fe_modulation_t modulation; /* modulation type (see above) */ + }; + + +.. c:type:: dvb_ofdm_parameters + +OFDM parameters +=============== + +DVB-T frontends are supported by the ``dvb_ofdm_parameters`` structure: + + +.. code-block:: c + + struct dvb_ofdm_parameters { + fe_bandwidth_t bandwidth; + fe_code_rate_t code_rate_HP; /* high priority stream code rate */ + fe_code_rate_t code_rate_LP; /* low priority stream code rate */ + fe_modulation_t constellation; /* modulation type (see above) */ + fe_transmit_mode_t transmission_mode; + fe_guard_interval_t guard_interval; + fe_hierarchy_t hierarchy_information; + }; diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/dvb/dvbproperty.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/dvb/dvbproperty.rst index 5f1b868e9..981da20af 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/dvb/dvbproperty.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/dvb/dvbproperty.rst @@ -1,126 +1,126 @@ -.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later - -.. _frontend-properties: - -************** -Property types -************** - -Tuning into a Digital TV physical channel and starting decoding it -requires changing a set of parameters, in order to control the tuner, -the demodulator, the Linear Low-noise Amplifier (LNA) and to set the -antenna subsystem via Satellite Equipment Control - SEC (on satellite -systems). The actual parameters are specific to each particular digital -TV standards, and may change as the digital TV specs evolves. - -In the past (up to DVB API version 3 - DVBv3), the strategy used was to have a -union with the parameters needed to tune for DVB-S, DVB-C, DVB-T and -ATSC delivery systems grouped there. The problem is that, as the second -generation standards appeared, the size of such union was not big -enough to group the structs that would be required for those new -standards. Also, extending it would break userspace. - -So, the legacy union/struct based approach was deprecated, in favor -of a properties set approach. On such approach, -:ref:`FE_GET_PROPERTY and FE_SET_PROPERTY ` are used -to setup the frontend and read its status. - -The actual action is determined by a set of dtv_property cmd/data pairs. -With one single ioctl, is possible to get/set up to 64 properties. - -This section describes the new and recommended way to set the frontend, -with supports all digital TV delivery systems. - -.. note:: - - 1. On Linux DVB API version 3, setting a frontend was done via - struct :c:type:`dvb_frontend_parameters`. - - 2. Don't use DVB API version 3 calls on hardware with supports - newer standards. Such API provides no support or a very limited - support to new standards and/or new hardware. - - 3. Nowadays, most frontends support multiple delivery systems. - Only with DVB API version 5 calls it is possible to switch between - the multiple delivery systems supported by a frontend. - - 4. DVB API version 5 is also called *S2API*, as the first - new standard added to it was DVB-S2. - -**Example**: in order to set the hardware to tune into a DVB-C channel -at 651 kHz, modulated with 256-QAM, FEC 3/4 and symbol rate of 5.217 -Mbauds, those properties should be sent to -:ref:`FE_SET_PROPERTY ` ioctl: - - :ref:`DTV_DELIVERY_SYSTEM ` = SYS_DVBC_ANNEX_A - - :ref:`DTV_FREQUENCY ` = 651000000 - - :ref:`DTV_MODULATION ` = QAM_256 - - :ref:`DTV_INVERSION ` = INVERSION_AUTO - - :ref:`DTV_SYMBOL_RATE ` = 5217000 - - :ref:`DTV_INNER_FEC ` = FEC_3_4 - - :ref:`DTV_TUNE ` - -The code that would that would do the above is show in -:ref:`dtv-prop-example`. - -.. code-block:: c - :caption: Example: Setting digital TV frontend properties - :name: dtv-prop-example - - #include - #include - #include - #include - - static struct dtv_property props[] = { - { .cmd = DTV_DELIVERY_SYSTEM, .u.data = SYS_DVBC_ANNEX_A }, - { .cmd = DTV_FREQUENCY, .u.data = 651000000 }, - { .cmd = DTV_MODULATION, .u.data = QAM_256 }, - { .cmd = DTV_INVERSION, .u.data = INVERSION_AUTO }, - { .cmd = DTV_SYMBOL_RATE, .u.data = 5217000 }, - { .cmd = DTV_INNER_FEC, .u.data = FEC_3_4 }, - { .cmd = DTV_TUNE } - }; - - static struct dtv_properties dtv_prop = { - .num = 6, .props = props - }; - - int main(void) - { - int fd = open("/dev/dvb/adapter0/frontend0", O_RDWR); - - if (!fd) { - perror ("open"); - return -1; - } - if (ioctl(fd, FE_SET_PROPERTY, &dtv_prop) == -1) { - perror("ioctl"); - return -1; - } - printf("Frontend set\\n"); - return 0; - } - -.. attention:: While it is possible to directly call the Kernel code like the - above example, it is strongly recommended to use - `libdvbv5 `__, as it - provides abstraction to work with the supported digital TV standards and - provides methods for usual operations like program scanning and to - read/write channel descriptor files. - -.. toctree:: - :maxdepth: 1 - - fe_property_parameters - frontend-stat-properties - frontend-property-terrestrial-systems - frontend-property-cable-systems - frontend-property-satellite-systems - frontend-header +.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later + +.. _frontend-properties: + +************** +Property types +************** + +Tuning into a Digital TV physical channel and starting decoding it +requires changing a set of parameters, in order to control the tuner, +the demodulator, the Linear Low-noise Amplifier (LNA) and to set the +antenna subsystem via Satellite Equipment Control - SEC (on satellite +systems). The actual parameters are specific to each particular digital +TV standards, and may change as the digital TV specs evolves. + +In the past (up to DVB API version 3 - DVBv3), the strategy used was to have a +union with the parameters needed to tune for DVB-S, DVB-C, DVB-T and +ATSC delivery systems grouped there. The problem is that, as the second +generation standards appeared, the size of such union was not big +enough to group the structs that would be required for those new +standards. Also, extending it would break userspace. + +So, the legacy union/struct based approach was deprecated, in favor +of a properties set approach. On such approach, +:ref:`FE_GET_PROPERTY and FE_SET_PROPERTY ` are used +to setup the frontend and read its status. + +The actual action is determined by a set of dtv_property cmd/data pairs. +With one single ioctl, is possible to get/set up to 64 properties. + +This section describes the new and recommended way to set the frontend, +with supports all digital TV delivery systems. + +.. note:: + + 1. On Linux DVB API version 3, setting a frontend was done via + struct :c:type:`dvb_frontend_parameters`. + + 2. Don't use DVB API version 3 calls on hardware with supports + newer standards. Such API provides no support or a very limited + support to new standards and/or new hardware. + + 3. Nowadays, most frontends support multiple delivery systems. + Only with DVB API version 5 calls it is possible to switch between + the multiple delivery systems supported by a frontend. + + 4. DVB API version 5 is also called *S2API*, as the first + new standard added to it was DVB-S2. + +**Example**: in order to set the hardware to tune into a DVB-C channel +at 651 kHz, modulated with 256-QAM, FEC 3/4 and symbol rate of 5.217 +Mbauds, those properties should be sent to +:ref:`FE_SET_PROPERTY ` ioctl: + + :ref:`DTV_DELIVERY_SYSTEM ` = SYS_DVBC_ANNEX_A + + :ref:`DTV_FREQUENCY ` = 651000000 + + :ref:`DTV_MODULATION ` = QAM_256 + + :ref:`DTV_INVERSION ` = INVERSION_AUTO + + :ref:`DTV_SYMBOL_RATE ` = 5217000 + + :ref:`DTV_INNER_FEC ` = FEC_3_4 + + :ref:`DTV_TUNE ` + +The code that would that would do the above is show in +:ref:`dtv-prop-example`. + +.. code-block:: c + :caption: Example: Setting digital TV frontend properties + :name: dtv-prop-example + + #include + #include + #include + #include + + static struct dtv_property props[] = { + { .cmd = DTV_DELIVERY_SYSTEM, .u.data = SYS_DVBC_ANNEX_A }, + { .cmd = DTV_FREQUENCY, .u.data = 651000000 }, + { .cmd = DTV_MODULATION, .u.data = QAM_256 }, + { .cmd = DTV_INVERSION, .u.data = INVERSION_AUTO }, + { .cmd = DTV_SYMBOL_RATE, .u.data = 5217000 }, + { .cmd = DTV_INNER_FEC, .u.data = FEC_3_4 }, + { .cmd = DTV_TUNE } + }; + + static struct dtv_properties dtv_prop = { + .num = 6, .props = props + }; + + int main(void) + { + int fd = open("/dev/dvb/adapter0/frontend0", O_RDWR); + + if (!fd) { + perror ("open"); + return -1; + } + if (ioctl(fd, FE_SET_PROPERTY, &dtv_prop) == -1) { + perror("ioctl"); + return -1; + } + printf("Frontend set\\n"); + return 0; + } + +.. attention:: While it is possible to directly call the Kernel code like the + above example, it is strongly recommended to use + `libdvbv5 `__, as it + provides abstraction to work with the supported digital TV standards and + provides methods for usual operations like program scanning and to + read/write channel descriptor files. + +.. toctree:: + :maxdepth: 1 + + fe_property_parameters + frontend-stat-properties + frontend-property-terrestrial-systems + frontend-property-cable-systems + frontend-property-satellite-systems + frontend-header diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/mediactl/media-ioc-enum-entities.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/mediactl/media-ioc-enum-entities.rst index 166710297..73bda0249 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/mediactl/media-ioc-enum-entities.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/mediactl/media-ioc-enum-entities.rst @@ -1,146 +1,146 @@ -.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later -.. c:namespace:: MC - -.. _media_ioc_enum_entities: - -***************************** -ioctl MEDIA_IOC_ENUM_ENTITIES -***************************** - -Name -==== - -MEDIA_IOC_ENUM_ENTITIES - Enumerate entities and their properties - -Synopsis -======== - -.. c:macro:: MEDIA_IOC_ENUM_ENTITIES - -``int ioctl(int fd, MEDIA_IOC_ENUM_ENTITIES, struct media_entity_desc *argp)`` - -Arguments -========= - -``fd`` - File descriptor returned by :c:func:`open()`. - -``argp`` - Pointer to struct :c:type:`media_entity_desc`. - -Description -=========== - -To query the attributes of an entity, applications set the id field of a -struct :c:type:`media_entity_desc` structure and -call the MEDIA_IOC_ENUM_ENTITIES ioctl with a pointer to this -structure. The driver fills the rest of the structure or returns an -EINVAL error code when the id is invalid. - -.. _media-ent-id-flag-next: - -Entities can be enumerated by or'ing the id with the -``MEDIA_ENT_ID_FLAG_NEXT`` flag. The driver will return information -about the entity with the smallest id strictly larger than the requested -one ('next entity'), or the ``EINVAL`` error code if there is none. - -Entity IDs can be non-contiguous. Applications must *not* try to -enumerate entities by calling MEDIA_IOC_ENUM_ENTITIES with increasing -id's until they get an error. - -.. c:type:: media_entity_desc - -.. tabularcolumns:: |p{1.5cm}|p{1.7cm}|p{1.6cm}|p{1.5cm}|p{10.6cm}| - -.. flat-table:: struct media_entity_desc - :header-rows: 0 - :stub-columns: 0 - :widths: 2 2 1 8 - - * - __u32 - - ``id`` - - - - Entity ID, set by the application. When the ID is or'ed with - ``MEDIA_ENT_ID_FLAG_NEXT``, the driver clears the flag and returns - the first entity with a larger ID. Do not expect that the ID will - always be the same for each instance of the device. In other words, - do not hardcode entity IDs in an application. - - * - char - - ``name``\ [32] - - - - Entity name as an UTF-8 NULL-terminated string. This name must be unique - within the media topology. - - * - __u32 - - ``type`` - - - - Entity type, see :ref:`media-entity-functions` for details. - - * - __u32 - - ``revision`` - - - - Entity revision. Always zero (obsolete) - - * - __u32 - - ``flags`` - - - - Entity flags, see :ref:`media-entity-flag` for details. - - * - __u32 - - ``group_id`` - - - - Entity group ID. Always zero (obsolete) - - * - __u16 - - ``pads`` - - - - Number of pads - - * - __u16 - - ``links`` - - - - Total number of outbound links. Inbound links are not counted in - this field. - - * - __u32 - - ``reserved[4]`` - - - - Reserved for future extensions. Drivers and applications must set - the array to zero. - - * - union { - - (anonymous) - - * - struct - - ``dev`` - - - - Valid for (sub-)devices that create a single device node. - - * - - - __u32 - - ``major`` - - Device node major number. - - * - - - __u32 - - ``minor`` - - Device node minor number. - - * - __u8 - - ``raw``\ [184] - - - - - * - } - - - -Return Value -============ - -On success 0 is returned, on error -1 and the ``errno`` variable is set -appropriately. The generic error codes are described at the -:ref:`Generic Error Codes ` chapter. - -EINVAL - The struct :c:type:`media_entity_desc` ``id`` - references a non-existing entity. +.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later +.. c:namespace:: MC + +.. _media_ioc_enum_entities: + +***************************** +ioctl MEDIA_IOC_ENUM_ENTITIES +***************************** + +Name +==== + +MEDIA_IOC_ENUM_ENTITIES - Enumerate entities and their properties + +Synopsis +======== + +.. c:macro:: MEDIA_IOC_ENUM_ENTITIES + +``int ioctl(int fd, MEDIA_IOC_ENUM_ENTITIES, struct media_entity_desc *argp)`` + +Arguments +========= + +``fd`` + File descriptor returned by :c:func:`open()`. + +``argp`` + Pointer to struct :c:type:`media_entity_desc`. + +Description +=========== + +To query the attributes of an entity, applications set the id field of a +struct :c:type:`media_entity_desc` structure and +call the MEDIA_IOC_ENUM_ENTITIES ioctl with a pointer to this +structure. The driver fills the rest of the structure or returns an +EINVAL error code when the id is invalid. + +.. _media-ent-id-flag-next: + +Entities can be enumerated by or'ing the id with the +``MEDIA_ENT_ID_FLAG_NEXT`` flag. The driver will return information +about the entity with the smallest id strictly larger than the requested +one ('next entity'), or the ``EINVAL`` error code if there is none. + +Entity IDs can be non-contiguous. Applications must *not* try to +enumerate entities by calling MEDIA_IOC_ENUM_ENTITIES with increasing +id's until they get an error. + +.. c:type:: media_entity_desc + +.. tabularcolumns:: |p{1.5cm}|p{1.7cm}|p{1.6cm}|p{1.5cm}|p{10.6cm}| + +.. flat-table:: struct media_entity_desc + :header-rows: 0 + :stub-columns: 0 + :widths: 2 2 1 8 + + * - __u32 + - ``id`` + - + - Entity ID, set by the application. When the ID is or'ed with + ``MEDIA_ENT_ID_FLAG_NEXT``, the driver clears the flag and returns + the first entity with a larger ID. Do not expect that the ID will + always be the same for each instance of the device. In other words, + do not hardcode entity IDs in an application. + + * - char + - ``name``\ [32] + - + - Entity name as an UTF-8 NULL-terminated string. This name must be unique + within the media topology. + + * - __u32 + - ``type`` + - + - Entity type, see :ref:`media-entity-functions` for details. + + * - __u32 + - ``revision`` + - + - Entity revision. Always zero (obsolete) + + * - __u32 + - ``flags`` + - + - Entity flags, see :ref:`media-entity-flag` for details. + + * - __u32 + - ``group_id`` + - + - Entity group ID. Always zero (obsolete) + + * - __u16 + - ``pads`` + - + - Number of pads + + * - __u16 + - ``links`` + - + - Total number of outbound links. Inbound links are not counted in + this field. + + * - __u32 + - ``reserved[4]`` + - + - Reserved for future extensions. Drivers and applications must set + the array to zero. + + * - union { + - (anonymous) + + * - struct + - ``dev`` + - + - Valid for (sub-)devices that create a single device node. + + * - + - __u32 + - ``major`` + - Device node major number. + + * - + - __u32 + - ``minor`` + - Device node minor number. + + * - __u8 + - ``raw``\ [184] + - + - + * - } + - + +Return Value +============ + +On success 0 is returned, on error -1 and the ``errno`` variable is set +appropriately. The generic error codes are described at the +:ref:`Generic Error Codes ` chapter. + +EINVAL + The struct :c:type:`media_entity_desc` ``id`` + references a non-existing entity. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/mediactl/media-ioc-enum-links.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/mediactl/media-ioc-enum-links.rst index 5646c6648..381804a91 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/mediactl/media-ioc-enum-links.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/mediactl/media-ioc-enum-links.rst @@ -1,145 +1,145 @@ -.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later -.. c:namespace:: MC - -.. _media_ioc_enum_links: - -************************** -ioctl MEDIA_IOC_ENUM_LINKS -************************** - -Name -==== - -MEDIA_IOC_ENUM_LINKS - Enumerate all pads and links for a given entity - -Synopsis -======== - -.. c:macro:: MEDIA_IOC_ENUM_LINKS - -``int ioctl(int fd, MEDIA_IOC_ENUM_LINKS, struct media_links_enum *argp)`` - -Arguments -========= - -``fd`` - File descriptor returned by :c:func:`open()`. - -``argp`` - Pointer to struct :c:type:`media_links_enum`. - -Description -=========== - -To enumerate pads and/or links for a given entity, applications set the -entity field of a struct :c:type:`media_links_enum` -structure and initialize the struct -:c:type:`media_pad_desc` and struct -:c:type:`media_link_desc` structure arrays pointed by -the ``pads`` and ``links`` fields. They then call the -MEDIA_IOC_ENUM_LINKS ioctl with a pointer to this structure. - -If the ``pads`` field is not NULL, the driver fills the ``pads`` array -with information about the entity's pads. The array must have enough -room to store all the entity's pads. The number of pads can be retrieved -with :ref:`MEDIA_IOC_ENUM_ENTITIES`. - -If the ``links`` field is not NULL, the driver fills the ``links`` array -with information about the entity's outbound links. The array must have -enough room to store all the entity's outbound links. The number of -outbound links can be retrieved with :ref:`MEDIA_IOC_ENUM_ENTITIES`. - -Only forward links that originate at one of the entity's source pads are -returned during the enumeration process. - -.. c:type:: media_links_enum - -.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.5cm}| - -.. flat-table:: struct media_links_enum - :header-rows: 0 - :stub-columns: 0 - :widths: 1 1 2 - - * - __u32 - - ``entity`` - - Entity id, set by the application. - - * - struct :c:type:`media_pad_desc` - - \*\ ``pads`` - - Pointer to a pads array allocated by the application. Ignored if - NULL. - - * - struct :c:type:`media_link_desc` - - \*\ ``links`` - - Pointer to a links array allocated by the application. Ignored if - NULL. - - * - __u32 - - ``reserved[4]`` - - Reserved for future extensions. Drivers and applications must set - the array to zero. - -.. c:type:: media_pad_desc - -.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.5cm}| - -.. flat-table:: struct media_pad_desc - :header-rows: 0 - :stub-columns: 0 - :widths: 1 1 2 - - * - __u32 - - ``entity`` - - ID of the entity this pad belongs to. - - * - __u16 - - ``index`` - - Pad index, starts at 0. - - * - __u32 - - ``flags`` - - Pad flags, see :ref:`media-pad-flag` for more details. - - * - __u32 - - ``reserved[2]`` - - Reserved for future extensions. Drivers and applications must set - the array to zero. - - -.. c:type:: media_link_desc - -.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.5cm}| - -.. flat-table:: struct media_link_desc - :header-rows: 0 - :stub-columns: 0 - :widths: 1 1 2 - - * - struct :c:type:`media_pad_desc` - - ``source`` - - Pad at the origin of this link. - - * - struct :c:type:`media_pad_desc` - - ``sink`` - - Pad at the target of this link. - - * - __u32 - - ``flags`` - - Link flags, see :ref:`media-link-flag` for more details. - - * - __u32 - - ``reserved[2]`` - - Reserved for future extensions. Drivers and applications must set - the array to zero. - -Return Value -============ - -On success 0 is returned, on error -1 and the ``errno`` variable is set -appropriately. The generic error codes are described at the -:ref:`Generic Error Codes ` chapter. - -EINVAL - The struct :c:type:`media_links_enum` ``id`` - references a non-existing entity. +.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later +.. c:namespace:: MC + +.. _media_ioc_enum_links: + +************************** +ioctl MEDIA_IOC_ENUM_LINKS +************************** + +Name +==== + +MEDIA_IOC_ENUM_LINKS - Enumerate all pads and links for a given entity + +Synopsis +======== + +.. c:macro:: MEDIA_IOC_ENUM_LINKS + +``int ioctl(int fd, MEDIA_IOC_ENUM_LINKS, struct media_links_enum *argp)`` + +Arguments +========= + +``fd`` + File descriptor returned by :c:func:`open()`. + +``argp`` + Pointer to struct :c:type:`media_links_enum`. + +Description +=========== + +To enumerate pads and/or links for a given entity, applications set the +entity field of a struct :c:type:`media_links_enum` +structure and initialize the struct +:c:type:`media_pad_desc` and struct +:c:type:`media_link_desc` structure arrays pointed by +the ``pads`` and ``links`` fields. They then call the +MEDIA_IOC_ENUM_LINKS ioctl with a pointer to this structure. + +If the ``pads`` field is not NULL, the driver fills the ``pads`` array +with information about the entity's pads. The array must have enough +room to store all the entity's pads. The number of pads can be retrieved +with :ref:`MEDIA_IOC_ENUM_ENTITIES`. + +If the ``links`` field is not NULL, the driver fills the ``links`` array +with information about the entity's outbound links. The array must have +enough room to store all the entity's outbound links. The number of +outbound links can be retrieved with :ref:`MEDIA_IOC_ENUM_ENTITIES`. + +Only forward links that originate at one of the entity's source pads are +returned during the enumeration process. + +.. c:type:: media_links_enum + +.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.5cm}| + +.. flat-table:: struct media_links_enum + :header-rows: 0 + :stub-columns: 0 + :widths: 1 1 2 + + * - __u32 + - ``entity`` + - Entity id, set by the application. + + * - struct :c:type:`media_pad_desc` + - \*\ ``pads`` + - Pointer to a pads array allocated by the application. Ignored if + NULL. + + * - struct :c:type:`media_link_desc` + - \*\ ``links`` + - Pointer to a links array allocated by the application. Ignored if + NULL. + + * - __u32 + - ``reserved[4]`` + - Reserved for future extensions. Drivers and applications must set + the array to zero. + +.. c:type:: media_pad_desc + +.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.5cm}| + +.. flat-table:: struct media_pad_desc + :header-rows: 0 + :stub-columns: 0 + :widths: 1 1 2 + + * - __u32 + - ``entity`` + - ID of the entity this pad belongs to. + + * - __u16 + - ``index`` + - Pad index, starts at 0. + + * - __u32 + - ``flags`` + - Pad flags, see :ref:`media-pad-flag` for more details. + + * - __u32 + - ``reserved[2]`` + - Reserved for future extensions. Drivers and applications must set + the array to zero. + + +.. c:type:: media_link_desc + +.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.5cm}| + +.. flat-table:: struct media_link_desc + :header-rows: 0 + :stub-columns: 0 + :widths: 1 1 2 + + * - struct :c:type:`media_pad_desc` + - ``source`` + - Pad at the origin of this link. + + * - struct :c:type:`media_pad_desc` + - ``sink`` + - Pad at the target of this link. + + * - __u32 + - ``flags`` + - Link flags, see :ref:`media-link-flag` for more details. + + * - __u32 + - ``reserved[2]`` + - Reserved for future extensions. Drivers and applications must set + the array to zero. + +Return Value +============ + +On success 0 is returned, on error -1 and the ``errno`` variable is set +appropriately. The generic error codes are described at the +:ref:`Generic Error Codes ` chapter. + +EINVAL + The struct :c:type:`media_links_enum` ``id`` + references a non-existing entity. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/rc/keytable.c.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/rc/keytable.c.rst index 18cacb7a3..243e02d26 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/rc/keytable.c.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/rc/keytable.c.rst @@ -1,176 +1,176 @@ -.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later - -file: uapi/v4l/keytable.c -========================= - -.. code-block:: c - - /* keytable.c - This program allows checking/replacing keys at IR - - Copyright (C) 2006-2009 Mauro Carvalho Chehab - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, version 2 of the License. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - */ - - #include - #include - #include - #include - #include - #include - #include - #include - - #include "parse.h" - - void prtcode (int *codes) - { - struct parse_key *p; - - for (p=keynames;p->name!=NULL;p++) { - if (p->value == (unsigned)codes[1]) { - printf("scancode 0x%04x = %s (0x%02x)\\n", codes[0], p->name, codes[1]); - return; - } - } - - if (isprint (codes[1])) - printf("scancode %d = '%c' (0x%02x)\\n", codes[0], codes[1], codes[1]); - else - printf("scancode %d = 0x%02x\\n", codes[0], codes[1]); - } - - int parse_code(char *string) - { - struct parse_key *p; - - for (p=keynames;p->name!=NULL;p++) { - if (!strcasecmp(p->name, string)) { - return p->value; - } - } - return -1; - } - - int main (int argc, char *argv[]) - { - int fd; - unsigned int i, j; - int codes[2]; - - if (argc<2 || argc>4) { - printf ("usage: %s to get table; or\\n" - " %s \\n" - " %s n",*argv,*argv,*argv); - return -1; - } - - if ((fd = open(argv[1], O_RDONLY)) < 0) { - perror("Couldn't open input device"); - return(-1); - } - - if (argc==4) { - int value; - - value=parse_code(argv[3]); - - if (value==-1) { - value = strtol(argv[3], NULL, 0); - if (errno) - perror("value"); - } - - codes [0] = (unsigned) strtol(argv[2], NULL, 0); - codes [1] = (unsigned) value; - - if(ioctl(fd, EVIOCSKEYCODE, codes)) - perror ("EVIOCSKEYCODE"); - - if(ioctl(fd, EVIOCGKEYCODE, codes)==0) - prtcode(codes); - return 0; - } - - if (argc==3) { - FILE *fin; - int value; - char *scancode, *keycode, s[2048]; - - fin=fopen(argv[2],"r"); - if (fin==NULL) { - perror ("opening keycode file"); - return -1; - } - - /* Clears old table */ - for (j = 0; j < 256; j++) { - for (i = 0; i < 256; i++) { - codes[0] = (j << 8) | i; - codes[1] = KEY_RESERVED; - ioctl(fd, EVIOCSKEYCODE, codes); - } - } - - while (fgets(s,sizeof(s),fin)) { - scancode=strtok(s,"\\n\\t =:"); - if (!scancode) { - perror ("parsing input file scancode"); - return -1; - } - if (!strcasecmp(scancode, "scancode")) { - scancode = strtok(NULL,"\\n\\t =:"); - if (!scancode) { - perror ("parsing input file scancode"); - return -1; - } - } - - keycode=strtok(NULL,"\\n\\t =:("); - if (!keycode) { - perror ("parsing input file keycode"); - return -1; - } - - // printf ("parsing %s=%s:", scancode, keycode); - value=parse_code(keycode); - // printf ("\\tvalue=%d\\n",value); - - if (value==-1) { - value = strtol(keycode, NULL, 0); - if (errno) - perror("value"); - } - - codes [0] = (unsigned) strtol(scancode, NULL, 0); - codes [1] = (unsigned) value; - - // printf("\\t%04x=%04x\\n",codes[0], codes[1]); - if(ioctl(fd, EVIOCSKEYCODE, codes)) { - fprintf(stderr, "Setting scancode 0x%04x with 0x%04x via ",codes[0], codes[1]); - perror ("EVIOCSKEYCODE"); - } - - if(ioctl(fd, EVIOCGKEYCODE, codes)==0) - prtcode(codes); - } - return 0; - } - - /* Get scancode table */ - for (j = 0; j < 256; j++) { - for (i = 0; i < 256; i++) { - codes[0] = (j << 8) | i; - if (!ioctl(fd, EVIOCGKEYCODE, codes) && codes[1] != KEY_RESERVED) - prtcode(codes); - } - } - return 0; - } +.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later + +file: uapi/v4l/keytable.c +========================= + +.. code-block:: c + + /* keytable.c - This program allows checking/replacing keys at IR + + Copyright (C) 2006-2009 Mauro Carvalho Chehab + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + */ + + #include + #include + #include + #include + #include + #include + #include + #include + + #include "parse.h" + + void prtcode (int *codes) + { + struct parse_key *p; + + for (p=keynames;p->name!=NULL;p++) { + if (p->value == (unsigned)codes[1]) { + printf("scancode 0x%04x = %s (0x%02x)\\n", codes[0], p->name, codes[1]); + return; + } + } + + if (isprint (codes[1])) + printf("scancode %d = '%c' (0x%02x)\\n", codes[0], codes[1], codes[1]); + else + printf("scancode %d = 0x%02x\\n", codes[0], codes[1]); + } + + int parse_code(char *string) + { + struct parse_key *p; + + for (p=keynames;p->name!=NULL;p++) { + if (!strcasecmp(p->name, string)) { + return p->value; + } + } + return -1; + } + + int main (int argc, char *argv[]) + { + int fd; + unsigned int i, j; + int codes[2]; + + if (argc<2 || argc>4) { + printf ("usage: %s to get table; or\\n" + " %s \\n" + " %s n",*argv,*argv,*argv); + return -1; + } + + if ((fd = open(argv[1], O_RDONLY)) < 0) { + perror("Couldn't open input device"); + return(-1); + } + + if (argc==4) { + int value; + + value=parse_code(argv[3]); + + if (value==-1) { + value = strtol(argv[3], NULL, 0); + if (errno) + perror("value"); + } + + codes [0] = (unsigned) strtol(argv[2], NULL, 0); + codes [1] = (unsigned) value; + + if(ioctl(fd, EVIOCSKEYCODE, codes)) + perror ("EVIOCSKEYCODE"); + + if(ioctl(fd, EVIOCGKEYCODE, codes)==0) + prtcode(codes); + return 0; + } + + if (argc==3) { + FILE *fin; + int value; + char *scancode, *keycode, s[2048]; + + fin=fopen(argv[2],"r"); + if (fin==NULL) { + perror ("opening keycode file"); + return -1; + } + + /* Clears old table */ + for (j = 0; j < 256; j++) { + for (i = 0; i < 256; i++) { + codes[0] = (j << 8) | i; + codes[1] = KEY_RESERVED; + ioctl(fd, EVIOCSKEYCODE, codes); + } + } + + while (fgets(s,sizeof(s),fin)) { + scancode=strtok(s,"\\n\\t =:"); + if (!scancode) { + perror ("parsing input file scancode"); + return -1; + } + if (!strcasecmp(scancode, "scancode")) { + scancode = strtok(NULL,"\\n\\t =:"); + if (!scancode) { + perror ("parsing input file scancode"); + return -1; + } + } + + keycode=strtok(NULL,"\\n\\t =:("); + if (!keycode) { + perror ("parsing input file keycode"); + return -1; + } + + // printf ("parsing %s=%s:", scancode, keycode); + value=parse_code(keycode); + // printf ("\\tvalue=%d\\n",value); + + if (value==-1) { + value = strtol(keycode, NULL, 0); + if (errno) + perror("value"); + } + + codes [0] = (unsigned) strtol(scancode, NULL, 0); + codes [1] = (unsigned) value; + + // printf("\\t%04x=%04x\\n",codes[0], codes[1]); + if(ioctl(fd, EVIOCSKEYCODE, codes)) { + fprintf(stderr, "Setting scancode 0x%04x with 0x%04x via ",codes[0], codes[1]); + perror ("EVIOCSKEYCODE"); + } + + if(ioctl(fd, EVIOCGKEYCODE, codes)==0) + prtcode(codes); + } + return 0; + } + + /* Get scancode table */ + for (j = 0; j < 256; j++) { + for (i = 0; i < 256; i++) { + codes[0] = (j << 8) | i; + if (!ioctl(fd, EVIOCGKEYCODE, codes) && codes[1] != KEY_RESERVED) + prtcode(codes); + } + } + return 0; + } diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/rc/lirc-get-features.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/rc/lirc-get-features.rst index c56ed782a..545137620 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/rc/lirc-get-features.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/rc/lirc-get-features.rst @@ -1,174 +1,174 @@ -.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later -.. c:namespace:: RC - -.. _lirc_get_features: - -*********************** -ioctl LIRC_GET_FEATURES -*********************** - -Name -==== - -LIRC_GET_FEATURES - Get the underlying hardware device's features - -Synopsis -======== - -.. c:macro:: LIRC_GET_FEATURES - -``int ioctl(int fd, LIRC_GET_FEATURES, __u32 *features)`` - -Arguments -========= - -``fd`` - File descriptor returned by open(). - -``features`` - Bitmask with the LIRC features. - -Description -=========== - -Get the underlying hardware device's features. If a driver does not -announce support of certain features, calling of the corresponding ioctls -is undefined. - -LIRC features -============= - -.. _LIRC-CAN-REC-RAW: - -``LIRC_CAN_REC_RAW`` - - Unused. Kept just to avoid breaking uAPI. - -.. _LIRC-CAN-REC-PULSE: - -``LIRC_CAN_REC_PULSE`` - - Unused. Kept just to avoid breaking uAPI. - :ref:`LIRC_MODE_PULSE ` can only be used for transmitting. - -.. _LIRC-CAN-REC-MODE2: - -``LIRC_CAN_REC_MODE2`` - - This is raw IR driver for receiving. This means that - :ref:`LIRC_MODE_MODE2 ` is used. This also implies - that :ref:`LIRC_MODE_SCANCODE ` is also supported, - as long as the kernel is recent enough. Use the - :ref:`lirc_set_rec_mode` to switch modes. - -.. _LIRC-CAN-REC-LIRCCODE: - -``LIRC_CAN_REC_LIRCCODE`` - - Unused. Kept just to avoid breaking uAPI. - -.. _LIRC-CAN-REC-SCANCODE: - -``LIRC_CAN_REC_SCANCODE`` - - This is a scancode driver for receiving. This means that - :ref:`LIRC_MODE_SCANCODE ` is used. - -.. _LIRC-CAN-SET-SEND-CARRIER: - -``LIRC_CAN_SET_SEND_CARRIER`` - - The driver supports changing the modulation frequency via - :ref:`ioctl LIRC_SET_SEND_CARRIER `. - -.. _LIRC-CAN-SET-SEND-DUTY-CYCLE: - -``LIRC_CAN_SET_SEND_DUTY_CYCLE`` - - The driver supports changing the duty cycle using - :ref:`ioctl LIRC_SET_SEND_DUTY_CYCLE `. - -.. _LIRC-CAN-SET-TRANSMITTER-MASK: - -``LIRC_CAN_SET_TRANSMITTER_MASK`` - - The driver supports changing the active transmitter(s) using - :ref:`ioctl LIRC_SET_TRANSMITTER_MASK `. - -.. _LIRC-CAN-SET-REC-CARRIER: - -``LIRC_CAN_SET_REC_CARRIER`` - - The driver supports setting the receive carrier frequency using - :ref:`ioctl LIRC_SET_REC_CARRIER `. - -.. _LIRC-CAN-SET-REC-CARRIER-RANGE: - -``LIRC_CAN_SET_REC_CARRIER_RANGE`` - - The driver supports - :ref:`ioctl LIRC_SET_REC_CARRIER_RANGE `. - -.. _LIRC-CAN-GET-REC-RESOLUTION: - -``LIRC_CAN_GET_REC_RESOLUTION`` - - The driver supports - :ref:`ioctl LIRC_GET_REC_RESOLUTION `. - -.. _LIRC-CAN-SET-REC-TIMEOUT: - -``LIRC_CAN_SET_REC_TIMEOUT`` - - The driver supports - :ref:`ioctl LIRC_SET_REC_TIMEOUT `. - -.. _LIRC-CAN-MEASURE-CARRIER: - -``LIRC_CAN_MEASURE_CARRIER`` - - The driver supports measuring of the modulation frequency using - :ref:`ioctl LIRC_SET_MEASURE_CARRIER_MODE `. - -.. _LIRC-CAN-USE-WIDEBAND-RECEIVER: - -``LIRC_CAN_USE_WIDEBAND_RECEIVER`` - - The driver supports learning mode using - :ref:`ioctl LIRC_SET_WIDEBAND_RECEIVER `. - -.. _LIRC-CAN-SEND-RAW: - -``LIRC_CAN_SEND_RAW`` - - Unused. Kept just to avoid breaking uAPI. - -.. _LIRC-CAN-SEND-PULSE: - -``LIRC_CAN_SEND_PULSE`` - - The driver supports sending (also called as IR blasting or IR TX) using - :ref:`LIRC_MODE_PULSE `. This implies that - :ref:`LIRC_MODE_SCANCODE ` is also supported for - transmit, as long as the kernel is recent enough. Use the - :ref:`lirc_set_send_mode` to switch modes. - -.. _LIRC-CAN-SEND-MODE2: - -``LIRC_CAN_SEND_MODE2`` - - Unused. Kept just to avoid breaking uAPI. - :ref:`LIRC_MODE_MODE2 ` can only be used for receiving. - -.. _LIRC-CAN-SEND-LIRCCODE: - -``LIRC_CAN_SEND_LIRCCODE`` - - Unused. Kept just to avoid breaking uAPI. - -Return Value -============ - -On success 0 is returned, on error -1 and the ``errno`` variable is set -appropriately. The generic error codes are described at the -:ref:`Generic Error Codes ` chapter. +.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later +.. c:namespace:: RC + +.. _lirc_get_features: + +*********************** +ioctl LIRC_GET_FEATURES +*********************** + +Name +==== + +LIRC_GET_FEATURES - Get the underlying hardware device's features + +Synopsis +======== + +.. c:macro:: LIRC_GET_FEATURES + +``int ioctl(int fd, LIRC_GET_FEATURES, __u32 *features)`` + +Arguments +========= + +``fd`` + File descriptor returned by open(). + +``features`` + Bitmask with the LIRC features. + +Description +=========== + +Get the underlying hardware device's features. If a driver does not +announce support of certain features, calling of the corresponding ioctls +is undefined. + +LIRC features +============= + +.. _LIRC-CAN-REC-RAW: + +``LIRC_CAN_REC_RAW`` + + Unused. Kept just to avoid breaking uAPI. + +.. _LIRC-CAN-REC-PULSE: + +``LIRC_CAN_REC_PULSE`` + + Unused. Kept just to avoid breaking uAPI. + :ref:`LIRC_MODE_PULSE ` can only be used for transmitting. + +.. _LIRC-CAN-REC-MODE2: + +``LIRC_CAN_REC_MODE2`` + + This is raw IR driver for receiving. This means that + :ref:`LIRC_MODE_MODE2 ` is used. This also implies + that :ref:`LIRC_MODE_SCANCODE ` is also supported, + as long as the kernel is recent enough. Use the + :ref:`lirc_set_rec_mode` to switch modes. + +.. _LIRC-CAN-REC-LIRCCODE: + +``LIRC_CAN_REC_LIRCCODE`` + + Unused. Kept just to avoid breaking uAPI. + +.. _LIRC-CAN-REC-SCANCODE: + +``LIRC_CAN_REC_SCANCODE`` + + This is a scancode driver for receiving. This means that + :ref:`LIRC_MODE_SCANCODE ` is used. + +.. _LIRC-CAN-SET-SEND-CARRIER: + +``LIRC_CAN_SET_SEND_CARRIER`` + + The driver supports changing the modulation frequency via + :ref:`ioctl LIRC_SET_SEND_CARRIER `. + +.. _LIRC-CAN-SET-SEND-DUTY-CYCLE: + +``LIRC_CAN_SET_SEND_DUTY_CYCLE`` + + The driver supports changing the duty cycle using + :ref:`ioctl LIRC_SET_SEND_DUTY_CYCLE `. + +.. _LIRC-CAN-SET-TRANSMITTER-MASK: + +``LIRC_CAN_SET_TRANSMITTER_MASK`` + + The driver supports changing the active transmitter(s) using + :ref:`ioctl LIRC_SET_TRANSMITTER_MASK `. + +.. _LIRC-CAN-SET-REC-CARRIER: + +``LIRC_CAN_SET_REC_CARRIER`` + + The driver supports setting the receive carrier frequency using + :ref:`ioctl LIRC_SET_REC_CARRIER `. + +.. _LIRC-CAN-SET-REC-CARRIER-RANGE: + +``LIRC_CAN_SET_REC_CARRIER_RANGE`` + + The driver supports + :ref:`ioctl LIRC_SET_REC_CARRIER_RANGE `. + +.. _LIRC-CAN-GET-REC-RESOLUTION: + +``LIRC_CAN_GET_REC_RESOLUTION`` + + The driver supports + :ref:`ioctl LIRC_GET_REC_RESOLUTION `. + +.. _LIRC-CAN-SET-REC-TIMEOUT: + +``LIRC_CAN_SET_REC_TIMEOUT`` + + The driver supports + :ref:`ioctl LIRC_SET_REC_TIMEOUT `. + +.. _LIRC-CAN-MEASURE-CARRIER: + +``LIRC_CAN_MEASURE_CARRIER`` + + The driver supports measuring of the modulation frequency using + :ref:`ioctl LIRC_SET_MEASURE_CARRIER_MODE `. + +.. _LIRC-CAN-USE-WIDEBAND-RECEIVER: + +``LIRC_CAN_USE_WIDEBAND_RECEIVER`` + + The driver supports learning mode using + :ref:`ioctl LIRC_SET_WIDEBAND_RECEIVER `. + +.. _LIRC-CAN-SEND-RAW: + +``LIRC_CAN_SEND_RAW`` + + Unused. Kept just to avoid breaking uAPI. + +.. _LIRC-CAN-SEND-PULSE: + +``LIRC_CAN_SEND_PULSE`` + + The driver supports sending (also called as IR blasting or IR TX) using + :ref:`LIRC_MODE_PULSE `. This implies that + :ref:`LIRC_MODE_SCANCODE ` is also supported for + transmit, as long as the kernel is recent enough. Use the + :ref:`lirc_set_send_mode` to switch modes. + +.. _LIRC-CAN-SEND-MODE2: + +``LIRC_CAN_SEND_MODE2`` + + Unused. Kept just to avoid breaking uAPI. + :ref:`LIRC_MODE_MODE2 ` can only be used for receiving. + +.. _LIRC-CAN-SEND-LIRCCODE: + +``LIRC_CAN_SEND_LIRCCODE`` + + Unused. Kept just to avoid breaking uAPI. + +Return Value +============ + +On success 0 is returned, on error -1 and the ``errno`` variable is set +appropriately. The generic error codes are described at the +:ref:`Generic Error Codes ` chapter. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/rc/rc-sysfs-nodes.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/rc/rc-sysfs-nodes.rst index 624ed9087..34d6a0a1f 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/rc/rc-sysfs-nodes.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/rc/rc-sysfs-nodes.rst @@ -1,144 +1,144 @@ -.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later - -.. _remote_controllers_sysfs_nodes: - -******************************* -Remote Controller's sysfs nodes -******************************* - -As defined at ``Documentation/ABI/testing/sysfs-class-rc``, those are -the sysfs nodes that control the Remote Controllers: - - -.. _sys_class_rc: - -/sys/class/rc/ -============== - -The ``/sys/class/rc/`` class sub-directory belongs to the Remote -Controller core and provides a sysfs interface for configuring infrared -remote controller receivers. - - -.. _sys_class_rc_rcN: - -/sys/class/rc/rcN/ -================== - -A ``/sys/class/rc/rcN`` directory is created for each remote control -receiver device where N is the number of the receiver. - - -.. _sys_class_rc_rcN_protocols: - -/sys/class/rc/rcN/protocols -=========================== - -Reading this file returns a list of available protocols, something like:: - - rc5 [rc6] nec jvc [sony] - -Enabled protocols are shown in [] brackets. - -Writing "+proto" will add a protocol to the list of enabled protocols. - -Writing "-proto" will remove a protocol from the list of enabled -protocols. - -Writing "proto" will enable only "proto". - -Writing "none" will disable all protocols. - -Write fails with ``EINVAL`` if an invalid protocol combination or unknown -protocol name is used. - - -.. _sys_class_rc_rcN_filter: - -/sys/class/rc/rcN/filter -======================== - -Sets the scancode filter expected value. - -Use in combination with ``/sys/class/rc/rcN/filter_mask`` to set the -expected value of the bits set in the filter mask. If the hardware -supports it then scancodes which do not match the filter will be -ignored. Otherwise the write will fail with an error. - -This value may be reset to 0 if the current protocol is altered. - - -.. _sys_class_rc_rcN_filter_mask: - -/sys/class/rc/rcN/filter_mask -============================= - -Sets the scancode filter mask of bits to compare. Use in combination -with ``/sys/class/rc/rcN/filter`` to set the bits of the scancode which -should be compared against the expected value. A value of 0 disables the -filter to allow all valid scancodes to be processed. - -If the hardware supports it then scancodes which do not match the filter -will be ignored. Otherwise the write will fail with an error. - -This value may be reset to 0 if the current protocol is altered. - - -.. _sys_class_rc_rcN_wakeup_protocols: - -/sys/class/rc/rcN/wakeup_protocols -================================== - -Reading this file returns a list of available protocols to use for the -wakeup filter, something like:: - - rc-5 nec nec-x rc-6-0 rc-6-6a-24 [rc-6-6a-32] rc-6-mce - -Note that protocol variants are listed, so ``nec``, ``sony``, ``rc-5``, ``rc-6`` -have their different bit length encodings listed if available. - -Note that all protocol variants are listed. - -The enabled wakeup protocol is shown in [] brackets. - -Only one protocol can be selected at a time. - -Writing "proto" will use "proto" for wakeup events. - -Writing "none" will disable wakeup. - -Write fails with ``EINVAL`` if an invalid protocol combination or unknown -protocol name is used, or if wakeup is not supported by the hardware. - - -.. _sys_class_rc_rcN_wakeup_filter: - -/sys/class/rc/rcN/wakeup_filter -=============================== - -Sets the scancode wakeup filter expected value. Use in combination with -``/sys/class/rc/rcN/wakeup_filter_mask`` to set the expected value of -the bits set in the wakeup filter mask to trigger a system wake event. - -If the hardware supports it and wakeup_filter_mask is not 0 then -scancodes which match the filter will wake the system from e.g. suspend -to RAM or power off. Otherwise the write will fail with an error. - -This value may be reset to 0 if the wakeup protocol is altered. - - -.. _sys_class_rc_rcN_wakeup_filter_mask: - -/sys/class/rc/rcN/wakeup_filter_mask -==================================== - -Sets the scancode wakeup filter mask of bits to compare. Use in -combination with ``/sys/class/rc/rcN/wakeup_filter`` to set the bits of -the scancode which should be compared against the expected value to -trigger a system wake event. - -If the hardware supports it and wakeup_filter_mask is not 0 then -scancodes which match the filter will wake the system from e.g. suspend -to RAM or power off. Otherwise the write will fail with an error. - -This value may be reset to 0 if the wakeup protocol is altered. +.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later + +.. _remote_controllers_sysfs_nodes: + +******************************* +Remote Controller's sysfs nodes +******************************* + +As defined at ``Documentation/ABI/testing/sysfs-class-rc``, those are +the sysfs nodes that control the Remote Controllers: + + +.. _sys_class_rc: + +/sys/class/rc/ +============== + +The ``/sys/class/rc/`` class sub-directory belongs to the Remote +Controller core and provides a sysfs interface for configuring infrared +remote controller receivers. + + +.. _sys_class_rc_rcN: + +/sys/class/rc/rcN/ +================== + +A ``/sys/class/rc/rcN`` directory is created for each remote control +receiver device where N is the number of the receiver. + + +.. _sys_class_rc_rcN_protocols: + +/sys/class/rc/rcN/protocols +=========================== + +Reading this file returns a list of available protocols, something like:: + + rc5 [rc6] nec jvc [sony] + +Enabled protocols are shown in [] brackets. + +Writing "+proto" will add a protocol to the list of enabled protocols. + +Writing "-proto" will remove a protocol from the list of enabled +protocols. + +Writing "proto" will enable only "proto". + +Writing "none" will disable all protocols. + +Write fails with ``EINVAL`` if an invalid protocol combination or unknown +protocol name is used. + + +.. _sys_class_rc_rcN_filter: + +/sys/class/rc/rcN/filter +======================== + +Sets the scancode filter expected value. + +Use in combination with ``/sys/class/rc/rcN/filter_mask`` to set the +expected value of the bits set in the filter mask. If the hardware +supports it then scancodes which do not match the filter will be +ignored. Otherwise the write will fail with an error. + +This value may be reset to 0 if the current protocol is altered. + + +.. _sys_class_rc_rcN_filter_mask: + +/sys/class/rc/rcN/filter_mask +============================= + +Sets the scancode filter mask of bits to compare. Use in combination +with ``/sys/class/rc/rcN/filter`` to set the bits of the scancode which +should be compared against the expected value. A value of 0 disables the +filter to allow all valid scancodes to be processed. + +If the hardware supports it then scancodes which do not match the filter +will be ignored. Otherwise the write will fail with an error. + +This value may be reset to 0 if the current protocol is altered. + + +.. _sys_class_rc_rcN_wakeup_protocols: + +/sys/class/rc/rcN/wakeup_protocols +================================== + +Reading this file returns a list of available protocols to use for the +wakeup filter, something like:: + + rc-5 nec nec-x rc-6-0 rc-6-6a-24 [rc-6-6a-32] rc-6-mce + +Note that protocol variants are listed, so ``nec``, ``sony``, ``rc-5``, ``rc-6`` +have their different bit length encodings listed if available. + +Note that all protocol variants are listed. + +The enabled wakeup protocol is shown in [] brackets. + +Only one protocol can be selected at a time. + +Writing "proto" will use "proto" for wakeup events. + +Writing "none" will disable wakeup. + +Write fails with ``EINVAL`` if an invalid protocol combination or unknown +protocol name is used, or if wakeup is not supported by the hardware. + + +.. _sys_class_rc_rcN_wakeup_filter: + +/sys/class/rc/rcN/wakeup_filter +=============================== + +Sets the scancode wakeup filter expected value. Use in combination with +``/sys/class/rc/rcN/wakeup_filter_mask`` to set the expected value of +the bits set in the wakeup filter mask to trigger a system wake event. + +If the hardware supports it and wakeup_filter_mask is not 0 then +scancodes which match the filter will wake the system from e.g. suspend +to RAM or power off. Otherwise the write will fail with an error. + +This value may be reset to 0 if the wakeup protocol is altered. + + +.. _sys_class_rc_rcN_wakeup_filter_mask: + +/sys/class/rc/rcN/wakeup_filter_mask +==================================== + +Sets the scancode wakeup filter mask of bits to compare. Use in +combination with ``/sys/class/rc/rcN/wakeup_filter`` to set the bits of +the scancode which should be compared against the expected value to +trigger a system wake event. + +If the hardware supports it and wakeup_filter_mask is not 0 then +scancodes which match the filter will wake the system from e.g. suspend +to RAM or power off. Otherwise the write will fail with an error. + +This value may be reset to 0 if the wakeup protocol is altered. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/v4l/audio.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/v4l/audio.rst index 0634bdb69..17f0b1c89 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/v4l/audio.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/v4l/audio.rst @@ -1,97 +1,97 @@ -.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later - -.. _audio: - -************************ -Audio Inputs and Outputs -************************ - -Audio inputs and outputs are physical connectors of a device. Video -capture devices have inputs, output devices have outputs, zero or more -each. Radio devices have no audio inputs or outputs. They have exactly -one tuner which in fact *is* an audio source, but this API associates -tuners with video inputs or outputs only, and radio devices have none of -these. [#f1]_ A connector on a TV card to loop back the received audio -signal to a sound card is not considered an audio output. - -Audio and video inputs and outputs are associated. Selecting a video -source also selects an audio source. This is most evident when the video -and audio source is a tuner. Further audio connectors can combine with -more than one video input or output. Assumed two composite video inputs -and two audio inputs exist, there may be up to four valid combinations. -The relation of video and audio connectors is defined in the -``audioset`` field of the respective struct -:c:type:`v4l2_input` or struct -:c:type:`v4l2_output`, where each bit represents the index -number, starting at zero, of one audio input or output. - -To learn about the number and attributes of the available inputs and -outputs applications can enumerate them with the -:ref:`VIDIOC_ENUMAUDIO` and -:ref:`VIDIOC_ENUMAUDOUT ` ioctl, respectively. -The struct :c:type:`v4l2_audio` returned by the -:ref:`VIDIOC_ENUMAUDIO` ioctl also contains signal -status information applicable when the current audio input is queried. - -The :ref:`VIDIOC_G_AUDIO ` and -:ref:`VIDIOC_G_AUDOUT ` ioctls report the current -audio input and output, respectively. - -.. note:: - - Note that, unlike :ref:`VIDIOC_G_INPUT ` and - :ref:`VIDIOC_G_OUTPUT ` these ioctls return a - structure as :ref:`VIDIOC_ENUMAUDIO` and - :ref:`VIDIOC_ENUMAUDOUT ` do, not just an index. - -To select an audio input and change its properties applications call the -:ref:`VIDIOC_S_AUDIO ` ioctl. To select an audio -output (which presently has no changeable properties) applications call -the :ref:`VIDIOC_S_AUDOUT ` ioctl. - -Drivers must implement all audio input ioctls when the device has -multiple selectable audio inputs, all audio output ioctls when the -device has multiple selectable audio outputs. When the device has any -audio inputs or outputs the driver must set the ``V4L2_CAP_AUDIO`` flag -in the struct :c:type:`v4l2_capability` returned by -the :ref:`VIDIOC_QUERYCAP` ioctl. - - -Example: Information about the current audio input -================================================== - -.. code-block:: c - - struct v4l2_audio audio; - - memset(&audio, 0, sizeof(audio)); - - if (-1 == ioctl(fd, VIDIOC_G_AUDIO, &audio)) { - perror("VIDIOC_G_AUDIO"); - exit(EXIT_FAILURE); - } - - printf("Current input: %s\\n", audio.name); - - -Example: Switching to the first audio input -=========================================== - -.. code-block:: c - - struct v4l2_audio audio; - - memset(&audio, 0, sizeof(audio)); /* clear audio.mode, audio.reserved */ - - audio.index = 0; - - if (-1 == ioctl(fd, VIDIOC_S_AUDIO, &audio)) { - perror("VIDIOC_S_AUDIO"); - exit(EXIT_FAILURE); - } - -.. [#f1] - Actually struct :c:type:`v4l2_audio` ought to have a - ``tuner`` field like struct :c:type:`v4l2_input`, not - only making the API more consistent but also permitting radio devices - with multiple tuners. +.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later + +.. _audio: + +************************ +Audio Inputs and Outputs +************************ + +Audio inputs and outputs are physical connectors of a device. Video +capture devices have inputs, output devices have outputs, zero or more +each. Radio devices have no audio inputs or outputs. They have exactly +one tuner which in fact *is* an audio source, but this API associates +tuners with video inputs or outputs only, and radio devices have none of +these. [#f1]_ A connector on a TV card to loop back the received audio +signal to a sound card is not considered an audio output. + +Audio and video inputs and outputs are associated. Selecting a video +source also selects an audio source. This is most evident when the video +and audio source is a tuner. Further audio connectors can combine with +more than one video input or output. Assumed two composite video inputs +and two audio inputs exist, there may be up to four valid combinations. +The relation of video and audio connectors is defined in the +``audioset`` field of the respective struct +:c:type:`v4l2_input` or struct +:c:type:`v4l2_output`, where each bit represents the index +number, starting at zero, of one audio input or output. + +To learn about the number and attributes of the available inputs and +outputs applications can enumerate them with the +:ref:`VIDIOC_ENUMAUDIO` and +:ref:`VIDIOC_ENUMAUDOUT ` ioctl, respectively. +The struct :c:type:`v4l2_audio` returned by the +:ref:`VIDIOC_ENUMAUDIO` ioctl also contains signal +status information applicable when the current audio input is queried. + +The :ref:`VIDIOC_G_AUDIO ` and +:ref:`VIDIOC_G_AUDOUT ` ioctls report the current +audio input and output, respectively. + +.. note:: + + Note that, unlike :ref:`VIDIOC_G_INPUT ` and + :ref:`VIDIOC_G_OUTPUT ` these ioctls return a + structure as :ref:`VIDIOC_ENUMAUDIO` and + :ref:`VIDIOC_ENUMAUDOUT ` do, not just an index. + +To select an audio input and change its properties applications call the +:ref:`VIDIOC_S_AUDIO ` ioctl. To select an audio +output (which presently has no changeable properties) applications call +the :ref:`VIDIOC_S_AUDOUT ` ioctl. + +Drivers must implement all audio input ioctls when the device has +multiple selectable audio inputs, all audio output ioctls when the +device has multiple selectable audio outputs. When the device has any +audio inputs or outputs the driver must set the ``V4L2_CAP_AUDIO`` flag +in the struct :c:type:`v4l2_capability` returned by +the :ref:`VIDIOC_QUERYCAP` ioctl. + + +Example: Information about the current audio input +================================================== + +.. code-block:: c + + struct v4l2_audio audio; + + memset(&audio, 0, sizeof(audio)); + + if (-1 == ioctl(fd, VIDIOC_G_AUDIO, &audio)) { + perror("VIDIOC_G_AUDIO"); + exit(EXIT_FAILURE); + } + + printf("Current input: %s\\n", audio.name); + + +Example: Switching to the first audio input +=========================================== + +.. code-block:: c + + struct v4l2_audio audio; + + memset(&audio, 0, sizeof(audio)); /* clear audio.mode, audio.reserved */ + + audio.index = 0; + + if (-1 == ioctl(fd, VIDIOC_S_AUDIO, &audio)) { + perror("VIDIOC_S_AUDIO"); + exit(EXIT_FAILURE); + } + +.. [#f1] + Actually struct :c:type:`v4l2_audio` ought to have a + ``tuner`` field like struct :c:type:`v4l2_input`, not + only making the API more consistent but also permitting radio devices + with multiple tuners. diff --git a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/v4l/dev-capture.rst b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/v4l/dev-capture.rst index 07bcd5866..fe58fd450 100644 --- a/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/v4l/dev-capture.rst +++ b/image/debian/UFI003_MB_V02/kernel/Documentation/userspace-api/media/v4l/dev-capture.rst @@ -1,101 +1,101 @@ -.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later -.. c:namespace:: V4L - -.. _capture: - -*********************** -Video Capture Interface -*********************** - -Video capture devices sample an analog video signal and store the -digitized images in memory. Today nearly all devices can capture at full -25 or 30 frames/second. With this interface applications can control the -capture process and move images from the driver into user space. - -Conventionally V4L2 video capture devices are accessed through character -device special files named ``/dev/video`` and ``/dev/video0`` to -``/dev/video63`` with major number 81 and minor numbers 0 to 63. -``/dev/video`` is typically a symbolic link to the preferred video -device. - -.. note:: The same device file names are used for video output devices. - -Querying Capabilities -===================== - -Devices supporting the video capture interface set the -``V4L2_CAP_VIDEO_CAPTURE`` or ``V4L2_CAP_VIDEO_CAPTURE_MPLANE`` flag in -the ``capabilities`` field of struct -:c:type:`v4l2_capability` returned by the -:ref:`VIDIOC_QUERYCAP` ioctl. As secondary device -functions they may also support the :ref:`video overlay ` -(``V4L2_CAP_VIDEO_OVERLAY``) and the :ref:`raw VBI capture ` -(``V4L2_CAP_VBI_CAPTURE``) interface. At least one of the read/write or -streaming I/O methods must be supported. Tuners and audio inputs are -optional. - -Supplemental Functions -====================== - -Video capture devices shall support :ref:`audio input